/* ============================================
   SPORTIVA - Main Stylesheet
   Version: 1.0.0
   ============================================

   TABLE OF CONTENTS:
   01. CSS Variables
   02. Reset & Base
   03. Typography
   04. Scrollbar
   05. Header
   06. Navigation
   07. Search Overlay
   08. Mobile Navigation
   09. Hero Slider
   10. Featured Live Section
   11. Player Controls
   12. Ad Overlays
   13. Content Wrapper
   14. Section Styles
   15. Filter Buttons
   16. Channels Grid
   17. Highlights Grid
   18. News Grid
   19. Sidebar
   20. Modal
   21. Toast Notifications
   22. Scroll To Top
   23. Footer
   24. Animations
   25. Responsive
   ============================================ */

/* ============================================
   01. CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --primary:        #bbf517;
  --primary-dark:   #a0d900;
  --primary-light:  #b7f702;
  --accent:         #ff4655;
  --accent-orange:  #ff6b35;
  --live-red:       #eb0400;
  --success:        #00c853;
  --warning:        #ffab00;

  /* Backgrounds */
  --bg-primary:     #0e0e10;
  --bg-secondary:   #18181b;
  --bg-tertiary:    #1f1f23;
  --bg-card:        #26262c;
  --bg-hover:       #2e2e35;

  /* Text */
  --text-primary:   #efeff1;
  --text-secondary: #adadb8;
  --text-muted:     #6b6b7a;

  /* Borders */
  --border:         #2e2e35;
  --border-light:   #3a3a44;

  /* Spacing */
  --header-height:  64px;
  --sidebar-width:  320px;

  /* Border Radius */
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      16px;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.5);

  /* Transition */
  --transition:     all 0.2s ease;
}

/* ============================================
   02. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

/* ============================================
   03. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--primary-light);
}

/* ============================================
   04. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ============================================
   05. HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(14, 14, 16, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: 1600px;
  margin: 0 auto;
  gap: 20px;
}

/* Header Left */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo img {
  width: 210px;
  height: 37px;
  object-fit: contain;
}

.logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(100, 65, 165, 0.6));
}

.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-text span {
  color: var(--primary);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.live-indicator-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(235, 4, 0, 0.15);
  border: 1px solid rgba(235, 4, 0, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--live-red);
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: rgb(183 240 19);
  border-radius: 50%;
  flex-shrink: 0;
  animation: anim-live-pulse 1.5s ease-in-out infinite;
}

.search-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.header-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
}

/* ============================================
   06. NAVIGATION
   ============================================ */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav ul li a i {
  font-size: 13px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.main-nav ul li a.active {
  color: var(--primary-light);
}

/* ============================================
   07. SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  padding: 0 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 10;
}

.search-overlay.active {
  transform: translateY(0);
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-inner input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.search-inner input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(100, 65, 165, 0.2);
}

.search-inner input::placeholder {
  color: var(--text-muted);
}

.search-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-close:hover {
  background: var(--accent);
  color: white;
}

/* ============================================
   08. MOBILE NAVIGATION
   ============================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 1200;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-header .logo-text {
  font-size: 22px;
}

.mobile-nav-header button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav ul {
  padding: 12px 0;
}

.mobile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-nav ul li a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding-left: 28px;
}

/* ============================================
   09. HERO SLIDER
   ============================================ */
.main-content {
  padding-top: var(--header-height);
}

.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 14, 16, 0.95) 0%,
    rgba(14, 14, 16, 0.70) 50%,
    rgba(14, 14, 16, 0.20) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 600px;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slide-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px #bbf51770;
}

.slide-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #95ca0070;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   10. FEATURED LIVE SECTION
   ============================================ */
.featured-live-section {
  width: 100%;
  background: var(--bg-secondary);
}

.featured-live-container {
  display: grid;
  grid-template-columns: 1fr 360px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Featured Player */
.featured-player-wrap {
  position: relative;
  background: #000;
}

.featured-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.featured-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Head Live Banner */
.head-live-banner {
  width: 100%;
  overflow: hidden;
  background: var(--bg-primary);
}

.head-live-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Featured Sidebar */
.featured-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.channel-info-card {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.channel-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.live-badge-sm {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(235, 4, 0, 0.15);
  border: 1px solid rgba(235, 4, 0, 0.4);
  color: var(--live-red);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.channel-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(100, 65, 165, 0.15);
  padding: 3px 8px;
  border-radius: 20px;
}

.channel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.channel-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.channel-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.channel-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-ad {
  padding: 16px;
  display: flex;
  justify-content: center;
}

.sidebar-ad img {
  border-radius: var(--radius-md);
  max-width: 100%;
}

/* ============================================
   11. PLAYER CONTROLS
   ============================================ */
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.featured-player:hover .player-overlay {
  opacity: 1;
}

.play-btn-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgb(183 240 19);
  color: #000;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.play-btn-large:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-player:hover .player-controls {
  opacity: 1;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Volume */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.volume-wrap:hover .volume-slider {
  width: 70px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/* Live Badge in Player */
.live-badge-player {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--live-red);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.viewer-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   12. AD OVERLAYS
   ============================================ */

/* Pause Ad */
.pause-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.pause-ad-inner {
  position: relative;
  text-align: center;
}

.pause-ad-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.pause-ad-inner img {
  max-width: 850px;
  max-height: 300px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.pause-ad-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.pause-ad-close:hover {
  background: var(--accent);
  color: white;
}

/* Pre-stream Ad */
.prestream-ad {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #000;
}

.prestream-ad video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-skip-wrap {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ad-timer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.ad-skip-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.ad-skip-btn:hover {
  background: white;
}

.ad-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   13. CONTENT WRAPPER
   ============================================ */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 20px;
}

.content-main {
  min-width: 0;
}

/* ============================================
   14. SECTION STYLES
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(100, 65, 165, 0.3);
}

.section-icon.live-pulse {
  animation: anim-icon-pulse 2s ease-in-out infinite;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.see-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(100, 65, 165, 0.3);
  transition: var(--transition);
}

.see-all-btn:hover {
  background: rgba(100, 65, 165, 0.15);
  border-color: var(--primary);
}

/* ============================================
   15. FILTER BUTTONS
   ============================================ */
.section-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* ============================================
   16. CHANNELS GRID
   ============================================ */
.channels-section {
  margin-bottom: 48px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Channel Card */
.channel-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.channel-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(100, 65, 165, 0.2);
}

.channel-card.is-live {
  border-color: rgba(235, 4, 0, 0.3);
}

.channel-card.is-live:hover {
  border-color: var(--live-red);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(235, 4, 0, 0.2);
}

.channel-card-link {
  display: block;
}

/* Channel Thumbnail */
.channel-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-primary);
}

.channel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.channel-card:hover .channel-thumb img {
  transform: scale(1.05);
}

.channel-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  font-size: 40px;
  color: var(--text-muted);
}

/* Channel Badges */
.channel-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--live-red);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
}

.channel-offline-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.channel-viewers {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Channel Hover Overlay */
.channel-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.channel-card:hover .channel-hover-overlay {
  opacity: 1;
}

.channel-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgb(183 240 19);
  color: #000;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.channel-card:hover .channel-play-btn {
  transform: scale(1);
}

/* Channel Info */
.channel-info {
  padding: 14px 16px;
}

.channel-category-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.channel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.channel-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.channel-live-info,
.channel-offline-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.live-indicator-sm {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--live-red);
  font-weight: 600;
}

.live-dot-sm {
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  animation: anim-live-pulse 1.5s ease-in-out infinite;
}

.viewer-sm {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.channel-offline-info {
  color: var(--text-muted);
}

/* ============================================
   17. HIGHLIGHTS GRID
   ============================================ */
.highlights-section {
  margin-bottom: 48px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Highlight Card */
.highlight-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.highlight-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-highlight {
  grid-column: span 2;
}

/* Highlight Thumbnail */
.highlight-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-primary);
}

.highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.highlight-card:hover .highlight-thumb img {
  transform: scale(1.05);
}

.highlight-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  font-size: 48px;
  color: var(--text-muted);
}

/* Highlight Play Overlay */
.highlight-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card:hover .highlight-play-overlay {
  opacity: 1;
}

.highlight-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgb(183 240 19);
  color: #000;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-play-btn {
  transform: scale(1);
}

/* Highlight Badges */
.highlight-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.highlight-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--warning);
  color: #000;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

/* Highlight Info */
.highlight-info {
  padding: 14px 16px;
}

.highlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.highlight-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(100, 65, 165, 0.15);
  padding: 2px 8px;
  border-radius: 20px;
}

.highlight-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.highlight-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.featured-highlight .highlight-title {
  font-size: 18px;
}

.highlight-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.highlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.highlight-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   18. NEWS GRID
   ============================================ */
.news-section {
  margin-bottom: 48px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* News Card */
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-featured {
  grid-column: span 2;
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-featured .news-card-link {
  flex-direction: row;
}

/* News Thumbnail */
.news-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  flex-shrink: 0;
}

.news-card:not(.news-featured) .news-thumb {
  aspect-ratio: 16 / 9;
}

.news-featured .news-thumb {
  width: 45%;
  min-height: 220px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  font-size: 40px;
  color: var(--text-muted);
}

.news-source-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgb(183 240 19);
  color: #000;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* News Info */
.news-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.news-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.news-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: var(--transition);
}

.news-featured .news-title {
  font-size: 18px;
}

.news-card:hover .news-title {
  color: var(--primary-light);
}

.news-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.news-read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ============================================
   19. SIDEBAR
   ============================================ */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar Banner */
.sidebar-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sidebar-banner img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.sidebar-banner:hover img {
  transform: scale(1.02);
}

/* Sidebar Live Channels */
.sidebar-live-channels {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-live-channels h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.sidebar-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.sidebar-channel-item:last-child {
  border-bottom: none;
}

.sidebar-channel-item:hover {
  background: var(--bg-hover);
}

.sidebar-channel-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-channel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.sidebar-live-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--live-red);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  animation: anim-live-pulse 1.5s ease-in-out infinite;
}

.sidebar-channel-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sidebar-channel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-channel-viewers {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Sidebar Trending */
.sidebar-trending {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-trending h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.sidebar-trending h3 i {
  color: var(--accent-orange);
}

.trending-list {
  padding: 8px 0;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.trending-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.trending-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 14px;
}

/* ============================================
   20. MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  border: 1px solid var(--border);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: white;
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-video-wrap iframe,
.modal-video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   21. TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: anim-toast-in 0.3s ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--accent); }
.toast.info    { border-left: 3px solid var(--primary); }

/* ============================================
   22. SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ============================================
   23. FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Footer Top */
.footer-top {
  padding: 48px 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.logo-text-footer {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}

.logo-text-footer span {
  color: var(--primary);
}

.footer-about {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Footer Links */
.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-links ul li a i {
  font-size: 10px;
  color: var(--primary);
}

.footer-links ul li a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

/* Footer Articles */
.footer-articles {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  background: var(--bg-primary);
}

.footer-articles-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.footer-articles-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-articles-title i {
  color: var(--primary);
}

.footer-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.footer-article-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition);
}

.footer-article-item:hover {
  opacity: 0.8;
}

.footer-article-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.footer-article-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-article-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
    transition: var(--transition);
}

.footer-article-item:hover .footer-article-title {
  color: var(--text-primary);
}

.footer-article-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Footer Bottom */
.footer-bottom {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.footer-bottom-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copyright span {
  color: var(--primary-light);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   24. ANIMATIONS
   ============================================ */
@keyframes anim-live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

@keyframes anim-icon-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgb(187 245 23 / 49%);
  }
  50% {
    box-shadow: 0 4px 24px #bbf517c2;
  }
}

@keyframes anim-toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes anim-toast-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes anim-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes anim-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes anim-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Animation Utility Classes */
.animate-fade-in-up {
  animation: anim-fade-in-up 0.4s ease forwards;
}

.animate-fade-in {
  animation: anim-fade-in 0.3s ease forwards;
}

.fa-spin {
  animation: anim-spin 1s linear infinite;
}

/* ============================================
   25. RESPONSIVE
   ============================================ */

/* Large Desktop: 1400px */
@media (max-width: 1400px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-highlight {
    grid-column: span 2;
  }

  .footer-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: 1200px */
@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }

  .featured-live-container {
    grid-template-columns: 1fr 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer-grid .footer-brand {
    grid-column: span 3;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-highlight {
    grid-column: span 2;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-featured {
    grid-column: span 2;
  }
}

/* Tablet: 1024px */
@media (max-width: 1024px) {
  /* Header */
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Featured Live */
  .featured-live-container {
    grid-template-columns: 1fr;
  }

  .featured-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
  }

  .channel-info-card {
    flex: 1;
    min-width: 280px;
  }

  .sidebar-ad {
    flex: 1;
    min-width: 200px;
  }

  /* Content */
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Hero */
  .hero-slider {
    height: 485px;
  }

  .slide-content h2 {
    font-size: 40px;
  }

  .slide-content {
    padding: 0 40px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-grid .footer-brand {
    grid-column: span 2;
  }

  .footer-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Small: 768px */
@media (max-width: 768px) {
  /* Hero */
  .hero-slider {
    height: 364px;
  }

  .slide-content {
    padding: 0 24px;
    max-width: 100%;
  }

  .slide-content h2 {
    font-size: 30px;
  }

  .slide-content p {
    font-size: 14px;
    display: none;
  }

  .slide-cta {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Channels */
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Highlights */
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .featured-highlight {
    grid-column: span 2;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-featured {
    grid-column: span 1;
  }

  .news-featured .news-card-link {
    flex-direction: column;
  }

  .pause-ad-inner img {
    max-width: 300px;
    max-height: 300px;
  }

  .news-featured .news-thumb {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Content */
  .content-wrapper {
    padding: 20px 16px;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid .footer-brand {
    grid-column: span 1;
  }

  .footer-articles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    padding: 32px 16px;
  }

  /* Section */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-filter {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Tablet Small: 768px */
@media (max-width: 600px) {
    .hero-slider {
        height: 256px;
    }
    .play-btn-large {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  /* Header */
  .header-inner {
    padding: 0 12px;
    gap: 10px;
  }

  .header-time {
    display: none;
  }

  .live-indicator-header {
    display: none;
  }

  /* Hero */
  .hero-slider {
    height: 200px;
  }

  .slide-content h2 {
    font-size: 24px;
  }

  .slide-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Channels */
  .channels-grid {
    grid-template-columns: 1fr;
  }

  /* Highlights */
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .featured-highlight {
    grid-column: span 1;
  }

  /* Footer */
  .footer-articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* Toast */
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  /* Scroll Top */
  .scroll-top-btn {
    bottom: 16px;
    left: 16px;
  }

  /* Section */
  .section-title {
    font-size: 20px;
  }

  .section-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

/* Mobile XS: 360px */
@media (max-width: 360px) {
  .hero-slider {
    height: 180px;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .channels-grid,
  .highlights-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==================================================
   SPORTIVA PROMO FRAME PLAYER
   Safe Area Legacy Container Only
   - Frame layer berdiri sendiri sebagai sibling player
   - Yang mengecil: #featuredPlayer / .watch-player-container
   - #featuredVideo tidak diberi transform
   ================================================== */
.promo-frame-safe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  --promo-safe-top: 0%;
  --promo-safe-left: 0%;
  --promo-player-scale-x: 1;
  --promo-player-scale-y: 1;
}

.promo-frame-safe-stage > .promo-frame-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  background: #000;
  transition: opacity .28s ease, visibility .28s ease;
}

.promo-frame-safe-stage > .promo-frame-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.promo-frame-safe-stage > .promo-frame-layer.is-clickable {
  pointer-events: auto;
}

.promo-frame-safe-stage .promo-frame-item {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.promo-frame-safe-stage > .promo-frame-layer.is-clickable .promo-frame-item {
  pointer-events: auto;
}

.promo-frame-safe-stage .promo-frame-item img,
.promo-frame-safe-stage .promo-frame-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  border: 0;
}

.promo-frame-safe-stage > .featured-player,
.promo-frame-safe-stage > .watch-player-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 5 !important;
  transform-origin: left top !important;
  transform: translate(0%, 0%) scale(1, 1);
  transition: transform 2000ms ease-in-out !important;
  will-change: transform;
  overflow: hidden;
}

.promo-frame-safe-stage.promo-frame-active > .featured-player,
.promo-frame-safe-stage.promo-frame-active > .watch-player-container {
  transform: translate(var(--promo-safe-left, 0%), var(--promo-safe-top, 0%)) scale(var(--promo-player-scale-x, .846), var(--promo-player-scale-y, .845)) !important;
}

/* Layer lama di dalam player harus tidak ikut menutup video jika cache HTML lama masih ada. */
.featured-player > .promo-frame-layer,
.watch-player-container > .promo-frame-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Jangan transform video langsung. Semua transform hanya di container. */
.featured-player.promo-frame-fit-inside > video#featuredVideo,
.watch-player-container.promo-frame-fit-inside > video#featuredVideo,
.featured-player.promo-frame-fit-inside > iframe,
.watch-player-container.promo-frame-fit-inside > iframe {
  transform: none !important;
  transition: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.featured-player.promo-frame-fit-inside .player-overlay,
.watch-player-container.promo-frame-fit-inside .player-overlay {
  z-index: 12 !important;
}

.featured-player.promo-frame-fit-inside .player-controls,
.watch-player-container.promo-frame-fit-inside .player-controls,
.featured-player.promo-frame-fit-inside .quality-menu,
.watch-player-container.promo-frame-fit-inside .quality-menu {
  z-index: 50 !important;
}

/* Penting: ad-playing dipertahankan hanya untuk prestream/offline ads.
   Promo frame memakai promo-frame-active agar tidak memicu overlay iklan hitam. */
.promo-frame-safe-stage:has(.ad-playing) > .promo-frame-layer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
