/* ============================================================
   WorldTV - Responsive Stylesheet
   css/responsive.css v1.0.0
   ============================================================ */

/* --- Mobile First: < 640px --- */
@media (max-width: 639px) {
  :root {
    --card-min: 220px;
    --nav-height: 54px;
  }

  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: 0.9rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .filter-bar__row {
    flex-direction: column;
  }
  .filter-bar__search { min-width: 100%; }
  .filter-bar__select { width: 100%; }

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

  .scroll-row > .card {
    min-width: 240px;
  }

  .player-controls {
    padding: var(--space-sm);
    gap: 4px;
  }
  .player-volume { width: 50px; }

  .player-info {
    flex-direction: column;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .admin-form__row {
    grid-template-columns: 1fr;
  }

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

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

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }
  .toast { max-width: 100%; }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header__title { font-size: 1.4rem; }
}

/* --- Small Tablet: 640px - 767px --- */
@media (min-width: 640px) and (max-width: 767px) {
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }

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

  .country-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Tablet: 768px+ --- */
@media (min-width: 768px) {
  .nav__mobile-toggle { display: none; }
  .nav__links { display: flex; }

  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .admin-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Desktop: 1024px+ --- */
@media (min-width: 1024px) {
  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .scroll-row > .card {
    min-width: 280px;
    max-width: 340px;
  }

  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* --- Large Desktop: 1280px+ --- */
@media (min-width: 1280px) {
  .channel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Print --- */
@media print {
  .nav, .mobile-menu, .network-bar, .toast-container, .footer {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
