/* ==========================================================================
   ⚡ SNATCH — Responsive & Adaptive Media Queries (responsive.css)
   Precision layout rules from 360px Mobile to 4K Ultra-Wide
   ========================================================================== */

/* Large Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    padding: 3rem 0 1.5rem 0;
  }

  .media-main-grid {
    grid-template-columns: 240px 1fr;
    gap: 1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .header-nav {
    display: none !important;
  }

  /* The install option is available inside the mobile menu. Strictly hide in header */
  #headerInstallBtn,
  .header-install-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .hero-section {
    padding: 2.5rem 0 1rem 0;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .platform-badges {
    gap: 0.45rem;
    margin-bottom: 1.75rem;
  }

  .platform-dot {
    width: 42px;
    height: 42px;
  }

  .platform-dot img {
    width: 21px;
    height: 21px;
  }

  /* Console Layout on Tablet */
  .console-wrapper {
    gap: 0.55rem;
  }

  .console-card {
    padding: 0.35rem 0.4rem;
    border-radius: 99px;
  }

  .paste-btn {
    padding: 0.8rem 1rem;
  }

  .snatch-btn {
    padding: 0.8rem 1.25rem;
  }

  /* Result Card Stacking */
  .media-main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .thumb-wrapper {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }

  .skeleton-card {
    grid-template-columns: 1fr;
  }

  .downloads-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Toast Notification */
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo {
    height: 32px;
  }

  .status-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }

  .hero-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.75rem;
  }

  .hero-title {
    font-size: 1.95rem;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .platform-badges {
    gap: 0.4rem;
    width: 100%;
  }

  .platform-dot {
    width: 40px;
    height: 40px;
  }

  .platform-dot img {
    width: 20px;
    height: 20px;
  }

  /* Master Console compact mobile form */
  .console-card {
    gap: 0.4rem;
    padding: 0.3rem 0.35rem;
    min-height: 54px;
  }

  .snatch-input {
    font-size: 0.95rem;
  }

  .console-actions-row {
    gap: 0.5rem;
  }

  .paste-btn {
    min-width: 96px;
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
  }

  .snatch-btn {
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    padding: 1.1rem;
  }

  .media-title {
    font-size: 1rem;
  }

  .secondary-btn {
    flex: 1;
    justify-content: center;
  }

  /* 3-Tab Pro Result Card Mobile Adaptation */
  .media-card-pro {
    padding: 1rem 0.85rem;
    border-radius: 16px;
  }

  .snatch-tab-btn {
    gap: 0.3rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
  }

  .snatch-tab-btn .tab-ico {
    width: 15px;
    height: 15px;
  }

  .format-dl-row {
    padding: 0.55rem 0.7rem;
    gap: 0.5rem;
  }

  .format-title-wrap {
    min-width: 105px;
  }

  .format-name {
    font-size: 0.82rem;
  }

  .dl-action-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .thumb-res-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .thumb-res-btn {
    padding: 0.5rem 0.4rem;
    font-size: 0.78rem;
  }

  .time-inputs-container {
    gap: 0.35rem;
  }

  .time-group {
    padding: 0.3rem 0.45rem;
  }

  .time-num-input {
    width: 20px;
    font-size: 0.85rem;
  }
}

/* Micro Mobile Screens (max-width: 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .platform-badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* 4K & Ultra-Wide Screens (min-width: 2000px) */
@media (min-width: 2000px) {
  .hero-title {
    font-size: 5rem;
  }

  .media-main-grid {
    grid-template-columns: 320px 1fr;
  }
}

/* --------------------------------------------------------------------------
   Wide Screens (min-width: 1024px) — content uses the full screen width
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Two download rows per line so the card fills wide screens nicely */
  .format-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Bottom preview: thumbnail keeps its own ratio at full width on wide screens */
  .bottom-media-thumb-wrap {
    width: 100%;
  }

  .bottom-media-info {
    padding: 0.35rem 1.25rem 0.35rem 0;
  }

  .bottom-media-title {
    font-size: 1rem;
  }

  /* Media previews stay a sane size on huge screens */
  .thumb-preview-box {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .trim-player-box {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .time-inputs-container,
  .dual-slider-wrap,
  .trim-ctrl-row {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .thumb-res-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  /* Ultra-wide: three download rows per line */
  .format-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

