/* ==========================================================================
   RESPONSIVE.CSS — VIEWPORT AND DEVICE-SPECIFIC ADAPTATIONS
   ========================================================================== */

/* Mobile Android Touch Adjustments (< 480px) */
@media (max-width: 480px) {
  .app-header {
    height: 56px;
    padding: 0 12px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .featured-section {
    margin: 10px 12px;
    border-radius: 16px;
  }

  .featured-content {
    padding: 18px 14px;
    gap: 12px;
  }

  .featured-logo-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .featured-title {
    font-size: 1.15rem;
  }

  .featured-desc {
    display: none; /* Keep hero clean on small phones */
  }

  .categories-wrapper {
    padding: 8px 12px;
  }

  .category-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .main-content {
    padding: 12px;
  }

  .channel-grid {
    gap: 10px;
  }

  .channel-card {
    border-radius: 14px;
  }

  .channel-meta {
    padding: 8px 10px;
  }

  .channel-name {
    font-size: 0.8125rem;
  }

  .channel-category-label {
    font-size: 0.65rem;
  }

  .card-live-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
  }

  .card-favorite-btn {
    width: 28px;
    height: 28px;
  }

  .card-favorite-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Tablet Screens (481px to 1023px) */
@media (min-width: 481px) and (max-width: 1023px) {
  .main-content {
    padding: 16px 20px;
  }

  .featured-section {
    margin: 16px 20px;
  }
}

/* Desktop Screens (1024px+) */
@media (min-width: 1024px) {
  .main-content {
    max-width: 1440px;
    padding: 24px 32px;
  }

  .featured-section {
    margin: 24px 32px;
  }

  /* Desktop card hover enhancements */
  .channel-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
}

/* Landscape Mode on Mobile */
@media (orientation: landscape) and (max-height: 500px) {
  .player-top-bar {
    padding: 8px 16px;
  }

  .player-bottom-bar {
    padding: 8px 16px;
  }

  .player-channel-logo {
    width: 28px;
    height: 28px;
  }

  .player-icon-btn {
    width: 36px;
    height: 36px;
  }
}

/* High-contrast and Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
