/* =============================================
   ANONSTREAM - Complete Redesign
   Design System: Dark + Cyan Electric
   ============================================= */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --vh: 1vh;
  /* Colors */
  --bg-base: #09090b;
  --bg-surface: #111116;
  --bg-elevated: #18181f;
  --bg-card: #1c1c24;
  --bg-hover: #22222c;

  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-active: rgba(6,182,212,0.3);

  /* Text */
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  /* Accent */
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --accent-dim: rgba(6,182,212,0.12);
  --accent-glow: rgba(6,182,212,0.25);

  /* Status */
  --live-red: #ef4444;
  --live-glow: rgba(239,68,68,0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 24px rgba(6,182,212,0.15);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --transition: 0.2s var(--ease);

  /* Legacy aliases (stream picker / older templates) */
  --netflix-red: var(--accent);
  --red-hover: var(--accent-hover);
  --bg-black: var(--bg-base);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

body.fs-nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(9,9,11,0.95);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-icon {
    animation: fs-logo-breathe 4s ease-in-out infinite;
  }
}

.logo-text { color: var(--text-primary); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-icon {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all var(--transition);
}

.nav-search-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.nav-search-btn svg { opacity: 0.6; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.nav-search-btn--icon {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-search-btn--icon span,
.nav-search-btn--icon kbd {
  display: none !important;
}

.nav-search-kbd {
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: inherit;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  height: calc(var(--vh, 1vh) * 100);
  background: rgba(9,9,11,0.98);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: max(1.5rem, env(safe-area-inset-top, 0px)) 1.5rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-menu.active { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.mobile-menu-section { margin-bottom: 2rem; }

.mobile-menu-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: all var(--transition);
  margin-bottom: 0.25rem;
}

.mobile-menu-link:hover, .mobile-menu-link.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  min-height: 100vh;
  padding-top: 60px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-banner {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -200px; right: -100px;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: #818cf8;
  bottom: -200px; left: -100px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title-main {
  display: block;
  color: var(--text-primary);
}

.hero-title-sub {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* Hero aliases */
.hero-btn { }
.hero-btn-primary { @extend .btn; @extend .btn-primary; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 400px;
  margin: 0 auto;
}

.hero-stats--triple {
  max-width: min(100%, 640px);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  padding: 1.35rem 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* ----- Homepage: broadcast hero (editorial / TV-listing — not Netflix carousel) ----- */
.hero-banner--broadcast {
  padding: 5.5rem 1.5rem 4.25rem;
  background:
    radial-gradient(ellipse 120% 80% at 15% 20%, rgba(6, 182, 212, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 92% 75%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0c0c10 0%, var(--bg-surface) 45%, #08080b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-banner--broadcast .hero-bg {
  opacity: 1;
}

.hero-bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}

.hero-bg-glow--warm {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  background: rgba(251, 191, 36, 0.12);
  bottom: -12%;
  right: 5%;
}

.hero-bg-glow--cool {
  width: min(380px, 50vw);
  height: min(380px, 50vw);
  background: rgba(6, 182, 212, 0.1);
  top: -18%;
  left: -8%;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(105deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(-15deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px, 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 35%, rgba(0, 0, 0, 0.5) 0%, transparent 75%);
  pointer-events: none;
}

.hero-bg-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 182, 212, 0.03) 48%,
    rgba(251, 191, 36, 0.02) 52%,
    transparent 100%
  );
  background-size: 100% 180%;
  animation: hero-scan-drift 14s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes hero-scan-drift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 40%; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(200px, 0.55fr);
    gap: 3rem;
  }
}

.hero-copy {
  min-width: 0;
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.55);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title.hero-title--broadcast {
  margin: 0 0 1.1rem;
  font-size: unset;
  font-weight: unset;
  line-height: normal;
  letter-spacing: normal;
}

.hero-title-pre {
  display: block;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.hero-title-display {
  display: block;
  font-size: clamp(2.6rem, 6.5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  background: linear-gradient(102deg, #f4f4f5 0%, #22d3ee 38%, #fbbf24 92%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title-display {
    animation: fs-hero-title-shimmer 10s ease-in-out infinite;
  }
}

.hero-title-tag {
  display: block;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 34rem;
}

.hero-description--broadcast {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-banner--broadcast .hero-actions {
  justify-content: flex-start;
  margin-bottom: 2.25rem;
}

.hero-btn-glow {
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.25),
    0 4px 24px rgba(6, 182, 212, 0.22);
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.35);
}

.hero-stats--broadcast {
  margin: 0;
  max-width: 100%;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-visual {
  display: none;
  justify-content: center;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-visual {
    display: flex;
  }
}

.hero-visual-stack {
  --signal-strength: 0;
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px rgba(0, 0, 0, 0.45);
  padding-bottom: 1.5rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.hero-visual-stack--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hero-visual-stack--link:hover {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 28px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.hero-visual-stack--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-visual-stack--standby {
  opacity: 0.92;
}

.hero-visual-stack--standby .hero-visual-ring {
  border-color: rgba(255, 255, 255, 0.07);
  animation-duration: 12s !important;
}

.hero-visual-stack--standby .hero-visual-bars--meter .hero-visual-bar {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.45) 0%, rgba(51, 65, 85, 0.35) 100%);
}

.hero-visual-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  z-index: 2;
}

.hero-visual-label__title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-visual-label__meter {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: none;
}

.hero-visual-stack--standby .hero-visual-label__meter {
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual-hint {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.45;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}

.hero-visual-stack--link:hover .hero-visual-hint,
.hero-visual-stack--link:focus-visible .hero-visual-hint {
  opacity: 0.95;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-ring {
    animation: none !important;
  }
  .hero-visual-bars--meter .hero-visual-bar {
    transition: height 0.35s ease;
  }
  .hero-visual-stack--live .hero-visual-bars--meter .hero-visual-bar::after,
  .hero-visual-stack--live .hero-visual-rings,
  .hero-visual-stack--live .hero-signal-sport-ico,
  .hero-visual-stack--live {
    animation: none !important;
  }
  .hero-title-display,
  .logo-icon,
  main.main-content > script:first-of-type + *,
  .content-wrapper > section.home-section {
    animation: none !important;
  }
  .live-pulse-dot {
    animation: none !important;
  }
}

.hero-visual-rings {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-signal-sport-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-signal-sport-ico {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.125rem;
  height: 1.125rem;
  margin: -0.5625rem 0 0 -0.5625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
  transform: rotate(var(--a, 0deg)) translateY(calc(-1 * var(--r, 0px))) rotate(calc(-1 * var(--a, 0deg)));
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.85);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.hero-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.2);
  animation: hero-ring-pulse ease-in-out infinite;
  animation-duration: calc(11s - var(--signal-strength, 0) * 5.5s);
}

.hero-visual-ring:nth-child(1) {
  inset: 0;
  border-color: rgba(6, 182, 212, 0.18);
  animation-delay: 0s;
}

.hero-visual-ring:nth-child(2) {
  inset: 12%;
  border-color: rgba(251, 191, 36, 0.15);
  animation-delay: 0.4s;
}

.hero-visual-ring:nth-child(3) {
  inset: 24%;
  border-color: rgba(255, 255, 255, 0.1);
  animation-delay: 0.8s;
}

@keyframes hero-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.028); opacity: 1; }
}

.hero-visual-bars {
  position: absolute;
  z-index: 1;
  bottom: 1.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}

.hero-visual-bars--meter .hero-visual-bar {
  position: relative;
  overflow: hidden;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(6, 182, 212, 0.35) 100%);
  transform-origin: bottom center;
  transition: height 0.12s linear, opacity 0.25s var(--ease);
  animation: none;
  height: 22%;
  opacity: 0.92;
}

.hero-visual-bars--meter .hero-visual-bar:nth-child(3) {
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.hero-visual-stack--standby .hero-visual-bars--meter .hero-visual-bar {
  opacity: 0.65;
  box-shadow: none;
}

/* Stronger “broadcast signal” when live matches are on air */
.hero-visual-stack--live {
  animation: fs-signal-stack-glow 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual-stack--live .hero-visual-rings {
    animation: fs-signal-rings-drift 14s ease-in-out infinite;
  }

  .hero-visual-stack--live .hero-visual-ring {
    animation-duration: calc(5.5s - var(--signal-strength, 0) * 2.2s) !important;
  }

  .hero-visual-stack--live .hero-signal-sport-ico {
    animation: fs-signal-ico-twinkle 2.4s ease-in-out infinite;
  }

  .hero-visual-stack--live .hero-signal-sport-ico:nth-child(3n + 1) {
    animation-delay: 0s;
  }
  .hero-visual-stack--live .hero-signal-sport-ico:nth-child(3n + 2) {
    animation-delay: 0.35s;
  }
  .hero-visual-stack--live .hero-signal-sport-ico:nth-child(3n) {
    animation-delay: 0.7s;
  }

  .hero-visual-stack--live .hero-visual-label__meter {
    animation: fs-signal-readout-pulse 2s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual-stack--live .hero-visual-bars--meter .hero-visual-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -100%;
    height: 220%;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.22) 45%,
      transparent 75%
    );
    animation: fs-signal-bar-sheen 1.35s ease-in-out infinite;
    pointer-events: none;
  }

  .hero-visual-stack--live .hero-visual-bars--meter .hero-visual-bar:nth-child(1)::after {
    animation-delay: 0s;
  }
  .hero-visual-stack--live .hero-visual-bars--meter .hero-visual-bar:nth-child(2)::after {
    animation-delay: 0.12s;
  }
  .hero-visual-stack--live .hero-visual-bars--meter .hero-visual-bar:nth-child(3)::after {
    animation-delay: 0.24s;
  }
  .hero-visual-stack--live .hero-visual-bars--meter .hero-visual-bar:nth-child(4)::after {
    animation-delay: 0.36s;
  }
  .hero-visual-stack--live .hero-visual-bars--meter .hero-visual-bar:nth-child(5)::after {
    animation-delay: 0.48s;
  }
}

@media (max-width: 959px) {
  .hero-banner--broadcast {
    padding: 4.5rem 1rem 2.75rem;
  }
  .hero-title-display {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }
  .hero-stats--broadcast {
    padding: 1rem 1rem;
  }
}

/* =============================================
   SECTION HEADERS / CAROUSELS
   ============================================= */
.section-wrapper {
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.section-title-icon {
  font-size: 1rem;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity var(--transition);
}

.section-link:hover { opacity: 0.7; }

/* carousel alias */
.carousel-wrapper { }
.carousel-header { }
.carousel-title { }
.view-all { }

/* =============================================
   MATCH CARDS
   ============================================= */
.cards-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.cards-track::-webkit-scrollbar { display: none; }

.match-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-accent), var(--shadow-md);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  overflow: hidden;
}

.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.match-card:hover .card-image img { transform: scale(1.05); }

.card-gradient-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-image > .card-gradient-placeholder,
.card-image > .card-teams-poster {
  position: absolute;
  inset: 0;
}

.card-teams-poster {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.card-teams-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at 50% 45%,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.card-teams-poster .team-badge-large,
.card-teams-poster .vs-divider {
  position: relative;
  z-index: 1;
}

.team-badge-large {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-badge-large img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.team-badge-fallback {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.vs-divider {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Card Badges */
.live-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: var(--live-red);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  box-shadow: 0 0 10px var(--live-glow);
}

.live-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.countdown-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.viewer-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.94) 0%, rgba(21, 128, 61, 0.98) 100%);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(134, 239, 172, 0.5);
  box-shadow:
    0 0 14px rgba(34, 197, 94, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 3;
  letter-spacing: 0.01em;
  line-height: 1;
}

.viewer-count svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.viewer-count__num {
  font-variant-numeric: tabular-nums;
}

.schedule-match > .viewer-count {
  position: static;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  box-shadow:
    0 0 16px rgba(34, 197, 94, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Card Info */
.card-info {
  padding: 0.875rem;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.card-teams {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   CAROUSEL NAV BUTTONS
   ============================================= */
.carousel-nav {
  position: relative;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.carousel-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.carousel-nav-left { left: -18px; }
.carousel-nav-right { right: -18px; }

/* =============================================
   LOADING STATES
   ============================================= */
.loading-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.carousel-loading, .page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* =============================================
   MATCHES GRID (Sport page / Live page)
   ============================================= */
.page-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Filters */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.4rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform 0.2s var(--ease);
}

.filter-chip:active {
  transform: scale(0.97);
}

.filter-chip:hover {
  border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent-dim);
  border-color: var(--border-active);
  color: var(--accent);
  transform: scale(1.03);
}

.filter-chip.active[data-sport="live"] {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 4px 20px rgba(239, 68, 68, 0.12);
}

/* Schedule page — same hero shell as sport genre; /schedule?filter=live */
.schedule-hero-icon {
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 55%, #4f46e5 100%);
}

.schedule-hero-icon.schedule-hero-icon--live,
.page-hero--live-mode .schedule-hero-icon {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
}

.page-hero--sport-genre.page-hero--schedule.page-hero--live-mode {
  border-bottom: 1px solid rgba(239, 68, 68, 0.22);
}

.page-hero--sport-genre.page-hero--schedule.page-hero--live-mode .page-hero--sport-genre__mesh {
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(239, 68, 68, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(239, 68, 68, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(239, 68, 68, 0.08) 0%, transparent 45%);
}

.page-hero--live-mode::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--live-red), rgba(239, 68, 68, 0.35));
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  z-index: 2;
}

.page-hero--live-mode .page-hero-inner,
.page-hero--live-mode .page-hero-inner--sport-genre {
  position: relative;
  z-index: 1;
}

.page-hero--live-mode .page-hero-label,
.page-hero--live-mode .page-hero-label--sport-genre {
  color: #fca5a5;
}

.page-hero--live-mode .page-hero-label svg {
  color: var(--live-red);
}

.page-hero--live-mode .page-hero-title,
.page-hero--live-mode .page-hero-title--sport-genre {
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(239, 68, 68, 0.12);
}

.page-hero--live-mode .page-hero-subtitle,
.page-hero--live-mode .page-hero-subtitle--sport-genre {
  color: var(--text-secondary);
  max-width: 36rem;
}

.page-hero--live-mode .sport-genre-pill {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
}

.schedule-section--live {
  position: relative;
  background: radial-gradient(ellipse 100% 40% at 50% 0%, rgba(239, 68, 68, 0.05) 0%, transparent 55%);
}

.schedule-section--live::before {
  content: '';
  display: block;
  height: 1px;
  margin: -0.5rem auto 1.75rem;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.45), transparent);
}

/* Search input in page */
.page-search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 400px;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition);
}

.page-search:focus-within {
  border-color: var(--border-active);
}

.page-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
}

.page-search input::placeholder { color: var(--text-muted); }

.page-search svg { color: var(--text-muted); flex-shrink: 0; }

/* Matches section */
.matches-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Date group */
.date-group { margin-bottom: 2.5rem; }

.date-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.date-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.date-group-count {
  padding: 0.15rem 0.6rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ----- Sport genre pages (/sport/:sportId) ----- */
.sport-genre-page {
  min-height: 60vh;
}

.sport-genre-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sport-genre-breadcrumb__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.sport-genre-breadcrumb__link:hover {
  color: var(--accent);
}

.sport-genre-breadcrumb__sep {
  opacity: 0.35;
  user-select: none;
}

.sport-genre-breadcrumb__current {
  color: var(--text-secondary);
  font-weight: 600;
}

.schedule-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0.85rem;
}

.sport-genre-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0;
  box-sizing: border-box;
}

.schedule-page-breadcrumb.sport-genre-breadcrumb,
.page-breadcrumb-pill.sport-genre-breadcrumb {
  width: fit-content;
  max-width: calc(100% - 3rem);
  margin: 0 1.5rem 0.85rem;
  padding: 0.3rem 0.4rem 0.3rem 0.3rem;
  gap: 0.15rem;
  font-size: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.links-page-breadcrumb.page-breadcrumb-pill {
  margin: 0 0 1.25rem;
  max-width: 100%;
}

.sport-page-breadcrumb.page-breadcrumb-pill {
  margin: 0;
  max-width: 100%;
}

.watch-page-breadcrumb.page-breadcrumb-pill {
  margin: 0 0 1rem;
  max-width: 100%;
}

.page-breadcrumb-pill .sport-genre-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    color var(--transition),
    background var(--transition);
}

.page-breadcrumb-pill .sport-genre-breadcrumb__link--home::before {
  content: "←";
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.65;
  transition: transform var(--transition), opacity var(--transition);
}

.page-breadcrumb-pill .sport-genre-breadcrumb__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.page-breadcrumb-pill .sport-genre-breadcrumb__link--home:hover::before {
  opacity: 1;
  transform: translateX(-2px);
}

.page-breadcrumb-pill .sport-genre-breadcrumb__sep {
  opacity: 1;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 400;
  margin: 0 0.05rem;
  user-select: none;
}

.page-breadcrumb-pill .sport-genre-breadcrumb__current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  margin-left: 0.1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5f3fc;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.24) 0%,
    rgba(99, 102, 241, 0.16) 100%
  );
  border: 1px solid rgba(6, 182, 212, 0.32);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.1);
}

.page-breadcrumb-pill .sport-genre-breadcrumb__current::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
}

.page-breadcrumb-pill--live .sport-genre-breadcrumb__current {
  color: #fecaca;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.26) 0%,
    rgba(153, 27, 27, 0.18) 100%
  );
  border-color: rgba(239, 68, 68, 0.38);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.14);
}

.page-breadcrumb-pill--live .sport-genre-breadcrumb__current::before {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.65);
  animation: watch-live-pulse 2s ease-in-out infinite;
}

.page-breadcrumb-pill--upcoming .sport-genre-breadcrumb__current {
  color: #cffafe;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.2) 0%,
    rgba(14, 165, 233, 0.14) 100%
  );
  border-color: rgba(6, 182, 212, 0.28);
}

.page-breadcrumb-pill--upcoming .sport-genre-breadcrumb__current::before {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  animation: none;
}

@media (max-width: 640px) {
  .schedule-page-breadcrumb.sport-genre-breadcrumb,
  .page-breadcrumb-pill.sport-genre-breadcrumb {
    max-width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .sport-genre-page-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sport-genre-page-wrap .sport-page-breadcrumb.page-breadcrumb-pill {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .links-page-breadcrumb.page-breadcrumb-pill,
  .watch-page-breadcrumb.page-breadcrumb-pill,
  .sport-page-breadcrumb.page-breadcrumb-pill {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .page-breadcrumb-pill .sport-genre-breadcrumb__link {
    padding: 0.32rem 0.55rem;
  }

  .page-breadcrumb-pill .sport-genre-breadcrumb__current {
    padding: 0.32rem 0.65rem;
    font-size: 0.66rem;
  }
}

.page-hero--sport-genre {
  position: relative;
  padding: 0 1.5rem 2.25rem;
  background: var(--bg-base, var(--bg-black));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero--sport-genre__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(6, 182, 212, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
  opacity: 1;
}

.page-hero-inner--sport-genre {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.sport-genre-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 0.5rem;
  margin-bottom: 1.75rem;
}

.sport-genre-hero-icon {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sport-genre-hero-icon__emoji {
  font-size: 2.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.sport-genre-hero-copy {
  min-width: 0;
  flex: 1;
}

.page-hero-label--sport-genre {
  margin-bottom: 0.4rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.page-hero-title--sport-genre {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.page-hero-subtitle--sport-genre {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 0.85rem;
  max-width: 36rem;
}

.sport-genre-meta-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sport-genre-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-full);
}

.sport-genre-meta-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sport-genre-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.sport-genre-search {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
}

.sport-genre-filter-bar {
  margin: 0;
}

.matches-content--sport-genre {
  padding-top: 2.25rem;
  padding-bottom: 4rem;
}

.date-group--sport-genre {
  margin-bottom: 2.75rem;
}

.date-group-header--sport-genre {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0;
  border-bottom: none;
}

.date-group-rule {
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.date-group-rule--end {
  flex: 1.5;
}

.date-group-label--sport-genre {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
  max-width: min(100%, 22rem);
  line-height: 1.35;
}

.date-group-count--sport-genre {
  padding: 0.2rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.match-card-grid--sport-genre {
  gap: 1.15rem;
}

.no-matches--sport-genre {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.no-matches--empty-genre {
  max-width: 28rem;
  margin: 2rem auto 0;
}

.no-matches-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.no-matches--sport-genre .no-matches-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.no-matches--sport-genre .no-matches-text a:hover {
  text-decoration: underline;
}

.no-matches-icon--large {
  font-size: 3rem;
  opacity: 0.45;
  margin-bottom: 0.5rem;
}

.sport-genre-back-btn {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .sport-genre-hero-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sport-genre-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-hero-subtitle--sport-genre {
    max-width: none;
  }

  .sport-genre-meta-line {
    justify-content: center;
  }

  .date-group-header--sport-genre {
    flex-wrap: wrap;
    justify-content: center;
  }

  .date-group-rule {
    display: none;
  }

  .date-group-rule--end {
    display: none;
  }

  .date-group-label--sport-genre {
    width: 100%;
    order: -1;
    margin-bottom: 0.35rem;
  }
}

/* Match list items */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.match-list-item:hover {
  border-color: var(--border-active);
  background: var(--bg-hover);
  transform: translateX(2px);
}

.match-thumb {
  width: 64px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.match-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.match-info { flex: 1; min-width: 0; }

.match-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.match-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-live {
  background: var(--live-red);
  color: #fff;
  box-shadow: 0 0 8px var(--live-glow);
}

.badge-live::before {
  content: '';
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.badge-upcoming {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* =============================================
   WATCH PAGE
   ============================================= */
.watch-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.watch-main {}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--text-primary); }

.breadcrumb-sep { opacity: 0.4; }

/* Watch header */
.watch-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.watch-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.watch-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Player */
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Stream sources */
.streams-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.streams-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stream-btn {
  padding: 0.45rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.stream-btn:hover {
  border-color: var(--border-active);
  color: var(--accent);
}

.stream-btn.active {
  background: var(--accent-dim);
  border-color: var(--border-active);
  color: var(--accent);
}

/* Watch sidebar */
.watch-sidebar {}

/* =============================================
   CHAT COMPONENT
   ============================================= */
.chat-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.chat-widget-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.chat-widget-title {
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-online-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.chat-user-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}

.chat-welcome {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.chat-welcome-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.875rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.chat-message:hover { border-color: rgba(255,255,255,0.1); }

.chat-message.own-message {
  background: var(--accent-dim);
  border-color: var(--border-active);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-username {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.own-message .message-username { color: var(--accent-hover); }

.message-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.message-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.chat-system-message {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.35rem;
  font-style: italic;
}

.chat-system-message--error {
  color: #f87171;
  font-style: normal;
  font-weight: 600;
}

.chat-typing-indicator {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* Chat input area */
.chat-input-area {
  padding: 0.875rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.chat-join-form {
  display: flex;
  gap: 0.5rem;
}

.chat-message-form {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input:focus {
  border-color: var(--border-active);
}

.chat-input::placeholder { color: var(--text-muted); }

.chat-send-btn {
  width: 36px; height: 36px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.chat-send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.chat-join-btn {
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
}

.chat-join-btn:hover { background: var(--accent-hover); }

/* =============================================
   CHAT PAGE
   ============================================= */
.chat-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.chat-page-hero {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  margin-bottom: 2rem;
}

.chat-page-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.chat-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.chat-page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.chat-page-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.chat-stat {
  text-align: center;
}

.chat-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.chat-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.chat-page-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}

/* =============================================
   SEARCH MODAL
   ============================================= */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  width: 100%;
  max-width: 640px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  transition: transform 0.2s var(--ease);
}

.search-modal.active .search-modal-content {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.search-modal-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.search-modal-close {
  width: 28px; height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.search-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.search-modal-input-wrapper {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-modal-search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-modal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
}

.search-modal-input::placeholder { color: var(--text-muted); }

.search-modal-filters-wrap {
  padding: 0.65rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.search-modal-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.45) transparent;
}

.search-modal-filters::-webkit-scrollbar {
  height: 5px;
}

.search-modal-filters::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 4px;
}

.search-modal-genre-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
  touch-action: manipulation;
}

.search-modal-genre-chip:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.search-modal-genre-chip.active {
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.12);
}

.search-modal-genre-chip--accent:not(.active):hover {
  border-color: rgba(239, 68, 68, 0.35);
}

.search-modal-genre-chip__emoji {
  font-size: 0.85rem;
  line-height: 1;
}

.search-modal-genre-chip__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.55);
}

.search-modal-genre-chip.active .search-modal-genre-chip__live {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.search-modal-results {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card) transparent;
}

.search-modal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

.search-modal-item:last-child { border-bottom: none; }

.search-modal-item:hover { background: var(--bg-card); }

.search-modal-item-poster {
  width: 80px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-item-poster .search-modal-thumb,
.search-modal-item-poster .home-row-thumb {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

.search-modal-item-poster .home-row-thumb-badge {
  width: 26px;
  height: 26px;
}

.search-modal-item-poster .home-row-thumb-letter {
  width: 24px;
  height: 24px;
  font-size: 0.6rem;
}

.search-modal-item-poster .home-row-thumb-gicon {
  font-size: 1.2rem;
}

.search-modal-item-poster img.home-row-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.search-modal-live-badge {
  position: absolute;
  top: 3px; left: 3px;
  padding: 1px 5px;
  background: var(--live-red);
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

.search-modal-time-badge {
  position: absolute;
  bottom: 3px; right: 3px;
  padding: 1px 5px;
  background: rgba(0,0,0,0.8);
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #fff;
}

.search-modal-item-info { flex: 1; min-width: 0; }

.search-modal-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-modal-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.search-modal-empty, .search-modal-loading, .search-no-results, .search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* =============================================
   SCHEDULE PAGE
   ============================================= */
.schedule-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* =============================================
   FAQ PAGE
   ============================================= */
.faq-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 0;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover { background: var(--bg-hover); }

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: max-height 0.4s var(--ease), padding 0.35s var(--ease);
}

.faq-answer.open {
  max-height: min(120vh, 2800px);
  padding: 0 1.25rem 1.15rem;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--accent-hover);
}

.faq-answer--prose p {
  margin: 0 0 0.85rem;
}

.faq-answer--prose p:last-of-type {
  margin-bottom: 0;
}

.faq-steps {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  list-style: decimal;
}

.faq-steps li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.faq-steps li:last-child {
  margin-bottom: 0;
}

.faq-category-block {
  margin-bottom: 0.5rem;
}

.faq-category-block .faq-category-title {
  margin-top: 0;
}

.faq-category-block:first-of-type .faq-category-title {
  margin-top: 0;
}

/* =============================================
   MIRRORS PAGE
   ============================================= */
.mirrors-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.mirror-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.625rem;
  transition: all var(--transition);
}

.mirror-item:hover {
  border-color: var(--border-active);
}

.mirror-url {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.mirror-status {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* =============================================
   TV CHANNELS
   ============================================= */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.channel-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.channel-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.channel-info {
  padding: 0.75rem;
}

.channel-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.channel-category {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =============================================
   INDEX PAGE FILTERS
   ============================================= */
.index-controls {
  padding: 1.5rem 1.5rem 0;
  max-width: 1440px;
  margin: 0 auto;
}

.index-filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.index-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =============================================
   CAROUSEL WRAPPER
   ============================================= */
.carousel-section {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  max-width: 1440px;
  margin: 0 auto;
}

.carousel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.carousel-title-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-view-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}

.carousel-view-all:hover { opacity: 0.7; }

.carousel-container {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-nav-left,
.carousel-nav-right {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.carousel-nav-left:hover,
.carousel-nav-right:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.carousel-nav-left { left: -17px; }
.carousel-nav-right { right: -17px; }

/* =============================================
   GENERIC CARD IN CAROUSEL
   ============================================= */
.carousel-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .watch-page {
    grid-template-columns: 1fr;
    max-width: 800px;
  }

  .watch-sidebar {
    max-width: 100%;
  }

  .chat-widget {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search-btn:not(.nav-search-btn--icon) { display: none; }
  .nav-search-btn--icon { display: flex; }
  .mobile-menu-btn { display: flex; }

  .nav-container {
    padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
    gap: 0.75rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .hero-banner { padding: 4rem 1rem 2.5rem; }
  .hero-banner--broadcast { padding: 4.25rem 1rem 2.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-title.hero-title--broadcast .hero-title-display {
    font-size: clamp(2rem, 8vw, 2.85rem);
  }
  .hero-description { font-size: 0.95rem; }
  .hero-stats { gap: 1.5rem; padding: 1rem; }
  .stat-value { font-size: 1.35rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .carousel-section { padding: 1.5rem 1rem; }

  .carousel-nav-left { left: 0; }
  .carousel-nav-right { right: 0; }

  .watch-page { padding: 1rem; }
  .chat-page { padding: 1rem 1rem 3rem; }

  .page-hero { padding: 2rem 1rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 1rem; }
}

/* =============================================
   LEGACY SELECTORS COMPAT
   (mapped to new system)
   ============================================= */
.content-wrapper { }
.hero-animated-bg { display: none; }

/* Map old carousel wrappers to new */
.carousel-wrapper {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.carousel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.view-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}

.view-all:hover { opacity: 0.7; }

/* Legacy sport page compatibility */
.sport-page-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.sport-hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.sport-icon-large {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.sport-page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.sport-page-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.sport-search-container {
  position: relative;
  max-width: 380px;
  margin-bottom: 1.25rem;
}

.sport-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.sport-search-input:focus { border-color: var(--border-active); }
.sport-search-input::placeholder { color: var(--text-muted); }

.sport-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%; transform: translateY(-50%);
  font-size: 0.875rem;
  opacity: 0.5;
}

.sport-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sport-status-filter {
  padding: 0.4rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.sport-status-filter:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.12); }
.sport-status-filter.active { background: var(--accent-dim); border-color: var(--border-active); color: var(--accent); }

/* Match cards in grid (sport pages + home) — 4 columns on wide screens */
.match-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.match-card-grid .match-card {
  flex: none;
  min-width: 0;
  width: 100%;
}

@media (max-width: 1100px) {
  .match-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .match-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .match-card-grid { grid-template-columns: 1fr; }
}

/* Watch page legacy */
.watch-page-new {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .watch-page-new { grid-template-columns: 1fr; }
}

.watch-main-content {}

.watch-header-section {
  margin-bottom: 1.25rem;
}

.back-button-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.back-button-watch:hover { color: var(--text-primary); }

.watch-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.watch-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.watch-breadcrumb a:hover { color: var(--text-primary); }
.watch-breadcrumb span { opacity: 0.4; }

.watch-page-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.watch-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sport-badge {
  padding: 0.2rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.watch-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-player-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.watch-hero-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center top;
}

.watch-hero-banner--poster {
  min-height: 140px;
  max-height: 220px;
}

.watch-hero-banner--gradient {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-hero-icon {
  font-size: 2.75rem;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.player-countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.player-countdown-overlay.is-visible {
  display: flex;
  z-index: 7;
}

.player-countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.player-countdown-digits {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.watch-player-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  min-height: 200px;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}

/* Watch player — badge vs badge preview before embed loads */
.player-poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.player-poster-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-poster-overlay__bg,
.player-poster-overlay__shade,
.player-poster-overlay__content {
  position: absolute;
  inset: 0;
}

.player-poster-overlay__bg {
  background: var(--player-poster-gradient, linear-gradient(135deg, #e50914 0%, #8b0000 100%));
  z-index: 0;
}

.player-poster-overlay__shade {
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.player-poster-overlay__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.player-poster-overlay--poster .player-poster-overlay__bg {
  opacity: 0;
}

.player-poster-overlay--poster .player-poster-overlay__poster {
  z-index: 1;
}

.player-poster-overlay--poster .player-poster-overlay__shade {
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.player-poster-overlay--poster .player-poster-overlay__content {
  z-index: 3;
  padding: 0;
  pointer-events: none;
}

.player-poster-overlay--poster .player-poster-play {
  pointer-events: auto;
}

.player-poster-overlay--badges .player-poster-overlay__bg {
  background: var(--player-poster-gradient, linear-gradient(135deg, #e50914 0%, #8b0000 100%));
}

.player-poster-overlay--badges .player-poster-overlay__shade {
  background:
    radial-gradient(ellipse 85% 75% at 50% 42%, rgba(255, 255, 255, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.32) 100%);
}

.video-player-wrapper--badge-preview,
.video-player-wrapper--poster-preview {
  background: var(--player-poster-gradient, #111);
}

.player-poster-overlay__content {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.player-poster-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vh, 1.5rem);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.player-poster-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 2rem);
  width: 100%;
}

.player-poster-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  max-width: 90%;
}

.player-poster-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.player-poster-badge {
  width: clamp(64px, 14vw, 96px);
  height: clamp(64px, 14vw, 96px);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.player-poster-badge--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #fff;
  backdrop-filter: blur(8px);
}

.player-poster-team-name {
  font-size: clamp(0.72rem, 2.2vw, 0.88rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  line-height: 1.25;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.player-poster-vs {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player-wrapper--clean .player-countdown-overlay {
  z-index: 6;
}

.player-poster-fallback__icon {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.player-poster-fallback__title {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.player-poster-play {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(76px, 14vw, 96px);
  height: clamp(76px, 14vw, 96px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.player-poster-play:hover {
  transform: scale(1.07);
}

.player-poster-play:active {
  transform: scale(0.96);
}

.player-poster-play__glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(229, 9, 20, 0.35) 45%, transparent 70%);
  animation: player-poster-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

.player-poster-play__disc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.player-poster-play:hover .player-poster-play__disc {
  background: rgba(229, 9, 20, 0.82);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(229, 9, 20, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.player-poster-play__icon {
  margin-left: 3px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

@keyframes player-poster-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.watch-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  margin-bottom: 1rem;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.watch-panel:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.watch-matchup-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.watch-matchup-team {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.watch-matchup-badge {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
}

.watch-matchup-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.watch-matchup-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.watch-matchup-vs {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 0 0.35rem;
  flex-shrink: 0;
}

.watch-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.watch-panel-meta .watch-meta-line:last-of-type {
  border-bottom: none;
}

.watch-meta-k {
  color: var(--text-muted);
}

.watch-meta-v {
  font-weight: 600;
  color: var(--text-secondary);
}

.watch-meta-v.is-hd {
  color: var(--accent);
}

.watch-meta-hint {
  padding: 0.85rem 0 0;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.watch-meta-hint--hero {
  margin-top: 0.35rem;
  padding: 0;
  border-top: none;
}

.stream-sources-section {
  margin-top: 1rem;
}

.stream-sources-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.stream-sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stream-source-btn, .stream-quality-btn {
  padding: 0.4rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.stream-source-btn:hover, .stream-quality-btn:hover {
  border-color: var(--border-active);
  color: var(--accent);
}

.stream-source-btn.active, .stream-quality-btn.active {
  background: var(--accent-dim);
  border-color: var(--border-active);
  color: var(--accent);
}

/* ----- Watch page: clean layout (watch.ejs) ----- */
.watch-page--clean.watch-page-new {
  max-width: 1320px;
  padding: 1.25rem 1.25rem 1.25rem;
  gap: 1.5rem;
}

.watch-page--clean .watch-main-content {
  align-self: start;
}

.watch-content-grid--clean .stream-sources-section--clean:not(.watch-theater__footer) {
  margin-bottom: 0;
  padding-bottom: 0;
}

.watch-top-clean {
  margin-bottom: 1.35rem;
}

.watch-breadcrumb--clean {
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.watch-bc-sep {
  margin: 0 0.35rem;
  opacity: 0.4;
}

.watch-title-row-clean {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.watch-thumb-clean {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.watch-thumb-clean img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-thumb-clean--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
}

.watch-thumb-clean--badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem;
}

.watch-thumb-clean--badges img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.watch-thumb-clean__vs {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.watch-thumb-clean__letter {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.watch-title-stack-clean {
  min-width: 0;
  flex: 1;
}

.watch-eyebrow-clean {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.watch-eyebrow-ico {
  font-size: 1rem;
  line-height: 1;
}

.watch-page-title--clean {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  color: var(--text-primary);
}

.watch-meta-row--clean {
  margin-bottom: 0;
  gap: 0.65rem 1rem;
}

.watch-content-grid--clean {
  gap: 1.25rem;
}

.video-player-wrapper--clean {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: none;
  background: #000;
}

/* Links + watch: SEO-style summary + quick facts */
.match-meta-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem auto 1.75rem;
}

.match-meta-panel {
  width: 100%;
}

.match-meta-panels--page-bottom {
  margin-top: 2.75rem;
  margin-bottom: 2.5rem;
}

.match-meta-panels--watch.match-meta-panels--page-bottom {
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.35rem;
  margin-bottom: 1.75rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.match-meta-panels--links-bottom {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.match-meta-panels--schedule-page.match-meta-panels--page-bottom {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.match-meta-panels--chat-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 1.25rem;
}

.match-meta-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.match-meta-panel__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.match-meta-panel__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.match-meta-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-meta-fact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.82rem;
}

.match-meta-fact dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
  min-width: 4.5rem;
}

.match-meta-fact dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 720px) {
  .match-meta-panels {
    grid-template-columns: 1fr;
  }
}

.watch-cast-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0.5rem 0 0.25rem;
}

.watch-cast-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.watch-cast-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.watch-cast-btn.is-active {
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--accent);
  background: var(--accent-dim);
}

.watch-cast-btn__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.watch-cast-btn.is-active .watch-cast-btn__icon {
  opacity: 1;
}

.stream-sources-section--clean .stream-sources-title {
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
}

.stream-sources-grid--clean {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.stream-sources-grid--clean .stream-source-btn:not(.stream-source-btn--card) {
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  font-size: 0.76rem;
}

.watch-sidebar-column--clean {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-sidebar--clean {
  border-radius: var(--radius-md);
  height: auto;
  min-height: 280px;
}

@media (max-width: 1100px) {
  .watch-page--clean.watch-page-new {
    padding: 1rem 1rem 1rem;
  }

  .match-meta-panels--watch.match-meta-panels--page-bottom {
    padding: 0 1rem;
  }

  .watch-sidebar-column--clean {
    order: 3;
  }
}

@media (max-width: 640px) {
  .watch-title-row-clean {
    flex-direction: column;
  }

  .watch-thumb-clean {
    width: 72px;
    height: 72px;
  }
}

/* Watch page v2 — theater shell + mobile jump nav */
.watch-page--v2 {
  scroll-margin-top: 0;
}

.watch-mobile-jump {
  display: none;
  position: sticky;
  top: calc(60px + env(safe-area-inset-top, 0px));
  z-index: 40;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.5rem;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.watch-mobile-jump__link {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.watch-mobile-jump__link:hover,
.watch-mobile-jump__link:focus-visible {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.12);
  outline: none;
}

@media (max-width: 1100px) {
  .watch-mobile-jump {
    display: flex;
  }

  #watch-player-anchor,
  #watch-sources-anchor,
  #chat-sidebar {
    scroll-margin-top: calc(60px + env(safe-area-inset-top, 0px) + 52px);
  }
}

.watch-hero-header {
  margin-bottom: 1.25rem;
}

.watch-theater {
  border-radius: 16px;
  padding: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.watch-theater__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-theater__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.watch-theater__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-theater__badge--live {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  animation: watch-live-pulse 2s ease-in-out infinite;
}

@keyframes watch-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .watch-theater__badge--live {
    animation: none;
  }
}

.watch-theater__frame {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

.stream-sources-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  vertical-align: middle;
}

/* Legacy pill row — watch page cards use --cards flex layout instead */
.stream-sources-grid--scroll:not(.stream-sources-grid--cards) {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 0.25rem;
  gap: 0.5rem;
}

.stream-sources-grid--scroll:not(.stream-sources-grid--cards) .stream-source-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  touch-action: manipulation;
}

.stream-pill-hd {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  margin-right: 0.35rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(99, 102, 241, 0.25));
  color: #e0f2fe;
  border-radius: 4px;
  vertical-align: middle;
}

.stream-source-btn__label {
  vertical-align: middle;
}

@media (min-width: 1101px) {
  .stream-sources-grid--scroll {
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
  }

  .stream-sources-grid--cards.stream-sources-grid--scroll {
    overflow: visible;
    mask-image: none;
  }

  .stream-source-btn--card {
    flex: 1 1 calc(25% - 0.38rem);
    min-width: 0;
  }
}

.watch-page--v2 .chat-sidebar--clean {
  height: min(520px, 58dvh);
}

@media (min-width: 1101px) {
  .watch-page--v2 .chat-sidebar--clean {
    height: 520px;
  }
}

/* Watch page v3 — hero card, source cards, sticky sidebar */
.watch-page--v3.watch-page-new {
  gap: 1.75rem;
}

.watch-hero-card {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 1.2rem 1.35rem 1.35rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(6, 182, 212, 0.14), transparent 55%),
    linear-gradient(165deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.watch-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(99, 102, 241, 0.75), transparent);
  opacity: 0.9;
}

.watch-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.watch-back-link:hover {
  color: var(--accent);
  transform: translateX(-2px);
}

.watch-back-link svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.watch-title-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.watch-hero-status {
  flex-shrink: 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.watch-hero-status--live {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
}

.watch-hero-status--scheduled {
  color: #a5f3fc;
  border-color: rgba(6, 182, 212, 0.35);
  background: var(--accent-dim);
}

.watch-page--v3 .watch-thumb-clean--poster,
.watch-page--v3 .watch-thumb-clean--icon,
.watch-page--v3 .watch-thumb-clean--badges {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.watch-page--v3 .meta-item--chip {
  padding: 0.3rem 0.7rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.watch-page--v3 .watch-theater {
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.1),
    0 28px 56px rgba(0, 0, 0, 0.5),
    var(--shadow-accent);
}

.watch-theater__head-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.watch-page--v3 .watch-theater__head {
  padding: 0.75rem 1rem;
}

.watch-cast-btn--compact {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
}

.watch-theater__footer {
  padding: 1.1rem 1.25rem 1.75rem;
  background: rgba(0, 0, 0, 0.32);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-theater__footer.stream-sources-section--clean {
  margin-bottom: 0;
  padding-bottom: 1.75rem;
}

.watch-theater__footer .stream-sources-grid--cards {
  margin-bottom: 0;
}

.stream-sources-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.stream-sources-header .stream-sources-title {
  margin-bottom: 0;
}

.stream-sources-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stream-sources-grid--cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.stream-source-btn--card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 calc(50% - 0.25rem);
  width: auto;
  min-width: 7.25rem;
  max-width: 100%;
  min-height: 3.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.stream-source-btn--card:hover {
  border-color: var(--border-active);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.stream-source-btn--card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  outline: 1px solid rgba(6, 182, 212, 0.35);
  outline-offset: 0;
  box-shadow: var(--shadow-accent);
}

.stream-source-btn__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.12);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.stream-source-btn--card.active .stream-source-btn__num {
  color: #000;
  background: var(--accent);
  border-color: transparent;
}

.stream-source-btn__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.stream-source-btn__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.stream-source-btn--card.active .stream-source-btn__label {
  color: var(--accent);
}

.watch-panel__heading {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.watch-meta-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.watch-meta-chip {
  padding: 0.55rem 0.5rem;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.watch-meta-chip__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.watch-meta-chip__value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.watch-meta-chip__value.is-hd {
  color: var(--accent);
}

.watch-page--v3 .watch-panel-matchup {
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(6, 182, 212, 0.08), transparent 60%),
    var(--bg-card);
}

.watch-page--v3 .watch-matchup-badge {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.watch-page--v3 .watch-matchup-vs {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent);
}

.chat-welcome--watch {
  margin: auto;
  max-width: 14rem;
}

.chat-welcome-title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

@media (min-width: 1101px) {
  .watch-page--v3 .watch-sidebar-column--clean {
    position: sticky;
    top: 76px;
    align-self: start;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .watch-page--v3 .watch-sidebar-column--clean {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .watch-page--v3 .chat-sidebar--clean {
    flex: 1 1 auto;
    min-height: 280px;
    height: auto;
    max-height: none;
  }
}

@media (min-width: 480px) and (max-width: 1100px) {
  .stream-source-btn--card {
    flex: 1 1 calc(33.333% - 0.34rem);
  }
}

@media (max-width: 1100px) {
  .stream-sources-grid--cards.stream-sources-grid--scroll {
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
  }

  .stream-sources-grid--cards .stream-source-btn--card {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 7.25rem;
    scroll-snap-align: unset;
  }

  .watch-meta-chips {
    grid-template-columns: 1fr 1fr;
  }

  .watch-meta-chips .watch-meta-chip:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .watch-hero-card {
    padding: 1rem;
  }

  .watch-meta-chips {
    grid-template-columns: 1fr;
  }

  .watch-meta-chips .watch-meta-chip:last-child {
    grid-column: auto;
  }
}

/* TV watch page */
.watch-page--tv.watch-page-new {
  max-width: 1320px;
}

.tv-watch-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.tv-watch-layout .watch-sidebar-column--clean {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tv-players-section {
  margin-top: 0;
}

.tv-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.55rem;
}

.tv-player-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tv-player-btn:hover {
  border-color: var(--border-active);
  background: var(--bg-hover);
}

.tv-player-btn.active {
  border-color: var(--border-active);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.watch-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.watch-feature-badge {
  padding: 0.28rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.watch-feature-badge--accent {
  color: var(--accent);
  border-color: var(--border-active);
  background: var(--accent-dim);
}

.watch-feature-badge--live {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 1100px) {
  .tv-watch-layout {
    grid-template-columns: 1fr;
  }
}

/* Homepage: lighter paint on small screens */
@media (max-width: 959px) {
  .hero-banner--broadcast .hero-bg-scan {
    animation: none;
    opacity: 0.45;
  }

  .hero-bg-noise {
    opacity: 0.025;
  }

  .hero-title-display {
    animation: none !important;
    background-size: 100% 100%;
  }

  .hero-kicker-dot {
    animation: none;
  }

  .live-strip-scroll {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
}

.home-seo-section,
#sports-grid-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* Watch sidebar styles */
.watch-sidebar-column {}

.chat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.chat-title {
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-user-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-count-badge {
  background: var(--bg-card);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}

.chat-input-container {
  padding: 0.875rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.username-input {
  display: flex;
  gap: 0.5rem;
}

.username-input input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.username-input input:focus { border-color: var(--border-active); }
.username-input input::placeholder { color: var(--text-muted); }

.username-input button {
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.username-input button:hover { background: var(--accent-hover); }

.message-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.message-input-wrapper input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.message-input-wrapper input:focus { border-color: var(--border-active); }
.message-input-wrapper input::placeholder { color: var(--text-muted); }

.message-input-wrapper button {
  width: 36px; height: 36px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  font-family: inherit;
}

.message-input-wrapper button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.message-input-wrapper button:active { transform: scale(0.95); }

.chat-typing-indicator {
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

.welcome-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.welcome-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* countdown watch compat */
.countdown-watch {
  padding: 0.35rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* index filter legacy compat */
.index-filters-wrapper-center { padding: 1.5rem 1.5rem 0; }
.index-filters-container-center { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.index-filter-section { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.index-filter-label-center { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); white-space: nowrap; }
.index-filters-center { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.index-filter-btn-center, .index-sport-filter-btn {
  padding: 0.35rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.index-filter-btn-center:hover, .index-sport-filter-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.12); }
.index-filter-btn-center.active, .index-sport-filter-btn.active { background: var(--accent-dim); border-color: var(--border-active); color: var(--accent); }

/* Chat page compat */
.chat-page-container { }
.chat-page-hero { padding: 3rem 1.5rem 2rem; background: var(--bg-surface); border-bottom: 1px solid var(--border); text-align: center; }
.chat-hero-content { max-width: 600px; margin: 0 auto; }
.chat-hero-icon { font-size: 3rem; margin-bottom: 0.75rem; animation: float 3s ease-in-out infinite; }
.chat-hero-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.chat-hero-subtitle { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.chat-stats { display: flex; align-items: center; justify-content: center; gap: 2.5rem; }
.chat-stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 0.35rem; }
.chat-page-main { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }
.chat-container-full { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; height: 580px; }
.chat-container-full .chat-sidebar { height: 100%; border: none; border-radius: 0; }

/* Sport matches section */
.sport-matches-section { }

/* Schedule & other pages */
.schedule-section { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 1.5rem; }
.schedule-day { margin-bottom: 2rem; }
.schedule-day-header { padding: 0.625rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.schedule-day-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.schedule-match {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.schedule-match:hover {
  border-color: var(--border-active);
  background: var(--bg-hover);
}

.schedule-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  width: 50px;
  flex-shrink: 0;
}

.schedule-match-title {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.schedule-when {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}

.schedule-section .schedule-when--today {
  color: var(--live-red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.schedule-section .schedule-when--tomorrow {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-active);
}

/* Inline row countdown (not card overlay) */
.schedule-section .schedule-when--countdown.countdown-badge {
  position: static;
  top: auto;
  left: auto;
  backdrop-filter: blur(6px);
}

.schedule-section .schedule-when--countdown.countdown-badge--realtime {
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 5.25rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.schedule-sport {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Schedule: all rows — poster / badges / sport icon (homepage parity) */
.schedule-section .schedule-match--with-thumb {
  align-items: center;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  gap: 0.65rem;
  min-height: 56px;
}

.schedule-section .schedule-match--with-thumb .schedule-time {
  width: 3.35rem;
  text-align: right;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', 'SFMono-Regular', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}

.schedule-section .schedule-match--with-thumb .schedule-match-body {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.schedule-section .schedule-match--with-thumb .schedule-match-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-section .schedule-match--with-thumb .schedule-match-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.schedule-section .schedule-match--with-thumb .schedule-match-meta:empty {
  display: none;
}

.schedule-section .schedule-match--with-thumb .home-row-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.schedule-section .schedule-match--with-thumb .home-row-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.schedule-section .schedule-match--with-thumb .home-row-thumb--badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.1rem;
}

.schedule-section .schedule-match--with-thumb .home-row-thumb-badge {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .schedule-section .schedule-match--with-thumb {
    flex-wrap: wrap;
    min-height: 0;
  }

  .schedule-section .schedule-match--with-thumb .schedule-time {
    width: auto;
    margin-left: auto;
  }

  .schedule-section .schedule-match--with-thumb .schedule-match-body {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .schedule-section .schedule-match--with-thumb .schedule-match-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }
}

.schedule-section .schedule-match.is-live {
  border-color: rgba(239, 68, 68, 0.32);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card) 14%);
  box-shadow: inset 4px 0 0 var(--live-red);
}

.schedule-section .schedule-match.is-live:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, var(--bg-hover) 16%);
}

.schedule-section--live .schedule-day-header {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-elevated) 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.schedule-section--live .schedule-day-title {
  color: #fca5a5;
  letter-spacing: 0.1em;
}

/* FAQ page compat */
.faq-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.faq-section .faq-category-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.faq-section .faq-category-block:first-child .faq-category-title {
  margin-top: 0;
}

/* Mirrors page compat */
.mirrors-section { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.mirror-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mirror-link { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition); text-decoration: none; color: inherit; }
.mirror-link:hover { border-color: var(--border-active); }
.mirror-link-url { font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* Streams page */
.streams-section { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.streams-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.stream-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; transition: all var(--transition); cursor: pointer; }
.stream-card:hover { border-color: var(--border-active); }

.watch-streams-page .streams-container--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.stream-card--polished {
  cursor: default;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stream-card--polished:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.stream-card--polished .stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stream-card--polished .stream-player {
  margin: 0;
  border: none;
  border-radius: 0;
}

.stream-card--polished .btn-stream-open {
  display: block;
  margin: 0.85rem 1rem 1rem;
  text-align: center;
}

/* Gradient placeholder */
.gradient-icon { font-size: 2.5rem; }

/* Old stat compat */
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); }

/* image error handler */
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-image { position: relative; }

/* No matches */
.no-matches {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  text-align: center;
  gap: 1rem;
}

.no-matches-icon { font-size: 3rem; opacity: 0.4; }
.no-matches-text { font-size: 0.875rem; }

/* Touch & interaction */
* { -webkit-tap-highlight-color: transparent; }
.btn, button, a { touch-action: manipulation; }

/* =============================================
   HOMEPAGE — NEW LAYOUT
   ============================================= */

/* Home section blocks */
.home-section {
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-matches-section.home-section {
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

#live-section .home-section-header {
  justify-content: center;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live-red);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: live-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  45% {
    transform: scale(1.12);
  }
  70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Live Now — carousel shell, arrows, horizontal scroll + compact cards */
.home-section--live-now {
  margin-bottom: 0.25rem;
}

.home-section-header--live-now {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.home-live-now-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
  max-width: 36rem;
  text-align: center;
}

#live-section .home-section-header.home-section-header--live-now {
  justify-content: center;
  align-items: center;
}

.live-strip-outer {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.35rem 0.15rem 0.5rem;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(239, 68, 68, 0.07) 0%,
    rgba(12, 12, 18, 0.65) 38%,
    rgba(6, 182, 212, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.12) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.live-strip-outer--few {
  justify-content: center;
}

.live-strip-outer--empty {
  padding-bottom: 0.35rem;
}

.live-strip-outer--empty .live-strip-scroll {
  min-height: 0;
  overflow: visible;
}

.live-strip-outer--empty .live-strip-nav {
  display: none;
}

.live-strip-outer:not(.live-strip-outer--scrollable) .live-strip-nav {
  opacity: 0.35;
  pointer-events: none;
}

.live-strip-nav {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(40, 40, 48, 0.95) 0%, rgba(22, 22, 30, 0.98) 100%);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease),
    opacity 0.2s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.live-strip-nav:hover:not(:disabled) {
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2), 0 8px 24px rgba(6, 182, 212, 0.12);
  transform: scale(1.04);
}

.live-strip-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.live-strip-nav:disabled {
  cursor: default;
  opacity: 0.28;
}

@media (max-width: 480px) {
  .live-strip-nav {
    width: 40px;
    height: 40px;
  }

  .live-strip-outer {
    gap: 0.35rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }
}

.live-strip-scroll {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 0.45rem 0.35rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.55) rgba(255, 255, 255, 0.05);
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.live-strip-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.live-strip-scroll::-webkit-scrollbar {
  height: 8px;
}

.live-strip-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  margin: 0 4px;
}

.live-strip-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.8) 0%, rgba(99, 102, 241, 0.6) 100%);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.live-strip-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.95) 0%, rgba(99, 102, 241, 0.8) 100%);
  background-clip: padding-box;
}

.live-strip-scroll.is-grabbing-horizontal {
  cursor: grabbing;
  user-select: none;
}

/* Fewer than 6 live cards: center row + shrink bordered track to content */
.live-strip-scroll--few {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

@supports (justify-content: safe center) {
  .live-strip-scroll--few {
    justify-content: safe center;
  }
}

.live-strip-scroll--few .live-strip--horizontal {
  flex-shrink: 0;
}

.live-strip.live-strip--horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  width: max-content;
  min-height: 0;
  padding: 0.1rem 0.35rem 0.15rem;
}

/* Compact cards — row layout */
.live-strip-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 172px;
  max-width: 172px;
  scroll-snap-align: start;
  background: linear-gradient(165deg, rgba(38, 38, 48, 0.98) 0%, rgba(14, 14, 20, 1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s var(--ease), box-shadow 0.24s var(--ease), border-color 0.2s var(--ease);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}

.live-strip-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow:
    0 10px 28px rgba(239, 68, 68, 0.18),
    0 0 0 1px rgba(239, 68, 68, 0.15) inset;
}

.live-strip-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.live-strip-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76px;
  background: var(--bg-elevated);
}

.live-strip-card .home-row-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.live-strip-card .home-row-thumb-img {
  object-position: center center;
}

.live-strip-card .home-row-thumb-badge {
  width: 28px;
  height: 28px;
}

.live-strip-card .home-row-thumb-letter {
  width: 24px;
  height: 24px;
  font-size: 0.62rem;
}

.live-strip-card .home-row-thumb-gicon {
  font-size: 1.45rem;
}

.live-strip-card__media .viewer-count {
  position: absolute;
  bottom: 0.3rem;
  right: 0.3rem;
  z-index: 4;
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
}

.live-strip-card__live {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(185, 28, 28, 0.98) 100%);
  padding: 0.15rem 0.38rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

.live-strip-card__live::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: live-pulse 1.8s ease-in-out infinite;
}

.live-strip-card__body {
  padding: 0.4rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 0;
}

.live-strip-card__title {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.live-strip-card__sport {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 480px) {
  .live-strip-card {
    width: 156px;
    max-width: 156px;
  }

  .live-strip-card__media {
    max-height: 74px;
  }
}

.live-strip--horizontal > .live-strip-loading,
.live-strip--horizontal > .no-live-msg {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.live-strip-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.no-live-msg {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.no-live-msg a { color: var(--accent); }

.home-matches-content {
  padding-bottom: 1rem;
}

/* —— Homepage events: centered title + subtitle; search + chips below —— */
.home-events-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.home-events-header .section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-events-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.5;
  margin: 0 auto;
}

.home-events-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.home-events-search-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.home-events-search {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  margin-bottom: 0;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.home-events-search:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.home-events-search input {
  font-size: 0.95rem;
}

.home-genres-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.35rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
}

.home-genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.25rem;
}

.home-genre-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.home-genre-chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.home-genre-chip.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-active);
  box-shadow: 0 0 20px var(--accent-glow);
}

.home-genre-chip--accent:not(.active):hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--live-red);
}

.home-genre-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.home-genre-chip.active .home-genre-chip__dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.home-genre-chip__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.home-genre-chip__emoji {
  font-size: 1rem;
  line-height: 1;
}

.home-events-board {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Program-guide listing: vertical rows, monospace kickoff, day panels — not poster carousels */
.home-events-board--guide .home-events-day {
  margin-bottom: 1.75rem;
  padding: 1.15rem 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 48px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.home-events-board--guide .home-events-day:last-child {
  margin-bottom: 0;
}

.home-events-board--guide .home-events-day__head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-events-board--guide .home-events-day__title {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.home-events-board--guide .home-events-day__badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.22);
  color: var(--accent-hover);
}

.home-events-board--guide .home-events-list {
  gap: 0.4rem;
}

.home-events-board--guide .schedule-match--with-thumb.schedule-match--home-board {
  border-radius: 6px 14px 14px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #23232f 0%, #18181f 52%, #13131a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.home-events-board--guide .schedule-match--with-thumb.schedule-match--home-board:hover {
  border-color: rgba(6, 182, 212, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (hover: hover) {
  .home-events-board--guide .schedule-match--with-thumb.schedule-match--home-board:hover {
    transform: translateY(-2px);
  }
}

.home-events-board--guide .schedule-time {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', 'SFMono-Regular', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  width: 3.85rem;
  text-align: right;
  flex-shrink: 0;
}

.home-events-board--guide .schedule-match.is-live .schedule-time {
  font-weight: 800;
}

.home-events-board--guide .home-row-thumb {
  border-radius: 5px 11px 11px 5px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.home-events-board--guide .schedule-sport {
  font-size: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.home-events-board--guide .schedule-match-body {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.home-events-board--guide .schedule-match-body .schedule-match-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-events-board--guide .schedule-match-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.home-events-board--guide .schedule-match-meta:empty {
  display: none;
}

.home-events-day {
  margin-bottom: 2.75rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.home-events-day:last-child {
  margin-bottom: 0;
}

.home-events-day__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.home-events-day__rule {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.home-events-day__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.home-events-day__badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.2rem 0.65rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
}

.home-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-events-list .schedule-match {
  margin-bottom: 0;
}

.home-day-expand-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.home-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 1.35rem 0 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Homepage-only polish: live rows read clearer without changing /schedule */
.home-events-board .schedule-match.is-live {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: inset 3px 0 0 var(--live-red);
}

.home-events-board .schedule-match.is-live:hover {
  border-color: rgba(239, 68, 68, 0.42);
}

/* Homepage: optional sport filter chips still use these */
.home-genre-block {
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.home-genre-block:last-child {
  margin-bottom: 0;
}

.home-genre-block__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.home-genre-block__icon {
  font-size: 1.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.home-genre-block__text {
  flex: 1;
  min-width: 0;
}

.home-genre-block__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-genre-block__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.home-genre-block__more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.home-genre-block__more:hover {
  border-color: var(--border-active);
  background: var(--accent-dim);
}

.home-events-board .home-event-when {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
}

.home-events-board .home-event-when--today {
  color: var(--live-red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.home-events-board .home-event-when--tomorrow {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-active);
}

/* Row countdown: not overlay-positioned like card badges */
.home-events-board .schedule-match .home-event-when--countdown.countdown-badge {
  position: static;
  top: auto;
  left: auto;
  backdrop-filter: blur(6px);
}

.home-events-board .countdown-badge--realtime {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 5.5rem;
  text-align: center;
}

/* Homepage horizontal rows: event thumbnails (poster → badges → sport icon) */
.home-events-board .schedule-match--with-thumb {
  align-items: center;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  gap: 0.65rem;
  min-height: 56px;
}

.home-row-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
}

.home-row-thumb .viewer-count {
  display: none;
}

.home-row-thumb--poster {
  padding: 0;
}

.home-row-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-row-thumb--badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.15rem 0.35rem;
}

.home-row-thumb--badges::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.home-row-thumb--badges .home-row-thumb-badge,
.home-row-thumb--badges .home-row-thumb-vs,
.home-row-thumb--badges .home-row-thumb-letter {
  position: relative;
  z-index: 1;
}

.home-row-thumb-badge {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.home-row-thumb-vs {
  font-size: 0.55rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.home-row-thumb-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  flex-shrink: 0;
}

.home-row-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-row-thumb-gicon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

@media (max-width: 520px) {
  .home-events-board .schedule-match--with-thumb {
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    gap: 0.45rem;
    min-height: 50px;
  }

  .home-row-thumb {
    width: 72px;
    height: 42px;
  }

  .home-row-thumb-badge {
    width: 24px;
    height: 24px;
  }

  .home-row-thumb-letter {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }

  .home-row-thumb-gicon {
    font-size: 1.15rem;
  }

  /* Program-guide homepage: stack title + meta, tighter day panels */
  .home-events-board--guide .home-events-day {
    margin-bottom: 1.35rem;
    padding: 0.95rem 0.75rem 1rem;
  }

  .home-events-board--guide .home-events-day__head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    gap: 0.5rem;
  }

  .home-events-board--guide .home-events-day__title {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-align: center;
    max-width: 100%;
  }

  .home-events-board--guide .home-events-day__badge {
    flex-shrink: 0;
  }

  .home-events-board--guide .schedule-time {
    width: 3.45rem;
    font-size: 0.78rem;
  }

  .home-events-board--guide .schedule-match-body {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

  .home-events-board--guide .schedule-match-body .schedule-match-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
    font-size: 0.82rem;
  }

  .home-events-board--guide .schedule-match-meta {
    justify-content: flex-start;
  }

  .home-events-board--guide .home-event-when,
  .home-events-board--guide .schedule-sport {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }

  .home-events-board--guide .home-event-when--countdown.countdown-badge--realtime {
    font-size: 0.68rem;
    min-width: 5rem;
  }
}

@media (max-width: 400px) {
  .home-events-board--guide .home-events-day {
    padding: 0.85rem 0.6rem 0.95rem;
  }

  .home-events-board--guide .home-events-day__rule {
    min-width: 24px;
  }

  .home-events-board--guide .schedule-time {
    width: 3.2rem;
  }
}

@media (max-width: 640px) {
  .hero-stats--triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
    padding: 1.1rem 0.85rem;
    max-width: 100%;
  }

  .hero-stats--triple .stat-divider {
    display: none;
  }

  .hero-stats--triple .stat-value {
    font-size: 1.35rem;
  }

  .home-genres {
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: none;
  }

  .home-genre-chip {
    min-height: 44px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    align-items: center;
  }

}

.live-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(20, 20, 28, 0.95) 55%);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 8px 20px 20px 8px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.live-chip:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(28, 28, 36, 0.98) 60%);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.12);
}
.live-chip-dot {
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  animation: live-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.live-chip-sport { font-size: 1rem; }
.live-chip-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.live-chip-sport-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 0.5rem;
}

/* Section filter bar */
.section-filters {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.section-filters::-webkit-scrollbar { display: none; }

.section-filter-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.section-filter-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); }
.section-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

/* Match feed — timeline rows */
.match-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.match-feed-row {
  display: grid;
  grid-template-columns: 64px 28px 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s;
}
.match-feed-row:last-child { border-bottom: none; }
.match-feed-row:hover { background: rgba(255,255,255,0.04); }

.feed-time {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
}
.feed-time-live {
  color: var(--live-red);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.feed-sport-icon {
  font-size: 1.1rem;
  text-align: center;
}

.feed-teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.feed-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 0;
}
.feed-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.feed-badge-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.feed-badge-ph {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.feed-vs {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.feed-title-solo {
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-sport-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.feed-watch-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.match-feed-row:hover .feed-watch-btn { opacity: 1; }

/* Sports browse grid */
.sports-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.sport-browse-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
  text-align: center;
}
.sport-browse-tile:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.06);
  transform: translateY(-2px);
}
.sport-tile-icon { font-size: 2rem; line-height: 1; }
.sport-tile-name { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.sport-tile-count { font-size: 0.7rem; color: var(--text-muted); }

/* Homepage SEO explainer (bottom) */
.home-seo-section {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.25rem;
  padding-bottom: 2.75rem;
  border-top: 1px solid var(--border);
}

.home-seo-main-title {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.home-seo-main-title--second {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-seo-block {
  margin-bottom: 0.25rem;
}

.home-seo-text {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.home-seo-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.home-seo-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-seo-text a:hover {
  color: var(--accent-hover);
}

.home-seo-steps {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.72;
}

.home-seo-steps li {
  margin-bottom: 0.65rem;
}

.home-seo-steps strong {
  color: var(--text-primary);
}

.home-seo-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.home-seo-note a {
  color: var(--accent);
  font-weight: 600;
}

.home-seo-note a:hover {
  color: var(--accent-hover);
}

@media (max-width: 520px) {
  .home-seo-section {
    padding-left: 0;
    padding-right: 0;
  }

  .home-seo-text,
  .home-seo-steps {
    font-size: 0.86rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-section { padding: 1.75rem 1rem; }
  .home-matches-section.home-section {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .match-feed-row {
    grid-template-columns: 48px 22px 1fr auto;
  }
  .feed-sport-tag { display: none; }
  .feed-team span { max-width: 90px; }
  .sports-browse-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }
  .sport-browse-tile { padding: 1rem 0.5rem; }
}

/* =============================================
   Motion layer — page enter, hero signal keyframes
   (respects prefers-reduced-motion above)
   ============================================= */
@keyframes fs-logo-breathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
    filter: brightness(1.06);
  }
}

@keyframes fs-hero-title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fs-signal-stack-glow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 24px 48px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(6, 182, 212, 0.12);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 28px 52px rgba(0, 0, 0, 0.5),
      0 0 28px rgba(6, 182, 212, 0.28),
      0 0 0 1px rgba(251, 191, 36, 0.18);
  }
}

@keyframes fs-signal-rings-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes fs-signal-ico-twinkle {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
  }
  50% {
    opacity: 0.82;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.55));
  }
}

@keyframes fs-signal-readout-pulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 12px rgba(6, 182, 212, 0.45); }
}

@keyframes fs-signal-bar-sheen {
  0% { transform: translateY(100%); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

@keyframes fs-page-root-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fs-section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fs-tile-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main.main-content > script:first-of-type + * {
    animation: fs-page-root-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .content-wrapper > section.home-section:nth-of-type(2) {
    animation: fs-section-rise 0.55s ease both;
    animation-delay: 0.06s;
  }
  .content-wrapper > section.home-section:nth-of-type(3) {
    animation: fs-section-rise 0.55s ease both;
    animation-delay: 0.11s;
  }
  .content-wrapper > section.home-section:nth-of-type(4) {
    animation: fs-section-rise 0.55s ease both;
    animation-delay: 0.16s;
  }
  .content-wrapper > section.home-section:nth-of-type(5) {
    animation: fs-section-rise 0.55s ease both;
    animation-delay: 0.21s;
  }

  .sports-browse-grid .sport-browse-tile {
    animation: fs-tile-pop 0.45s ease backwards;
  }
  .sports-browse-grid .sport-browse-tile:nth-child(1) { animation-delay: 0.02s; }
  .sports-browse-grid .sport-browse-tile:nth-child(2) { animation-delay: 0.05s; }
  .sports-browse-grid .sport-browse-tile:nth-child(3) { animation-delay: 0.08s; }
  .sports-browse-grid .sport-browse-tile:nth-child(4) { animation-delay: 0.11s; }
  .sports-browse-grid .sport-browse-tile:nth-child(5) { animation-delay: 0.14s; }
  .sports-browse-grid .sport-browse-tile:nth-child(6) { animation-delay: 0.17s; }
  .sports-browse-grid .sport-browse-tile:nth-child(7) { animation-delay: 0.2s; }
  .sports-browse-grid .sport-browse-tile:nth-child(8) { animation-delay: 0.23s; }
  .sports-browse-grid .sport-browse-tile:nth-child(n + 9) {
    animation-delay: 0.26s;
  }

  .btn-primary:active {
    transform: translateY(0);
  }
}

/* =============================================
   SITE-WIDE RESPONSIVE & MOBILE OPTIMIZATION
   ============================================= */

/* Fluid media & overflow guardrails */
img,
video,
iframe,
svg {
  max-width: 100%;
}

/* Touch-friendly controls (44px min) */
.btn,
.filter-chip,
.index-filter-btn-center,
.index-sport-filter-btn,
.sport-status-filter,
.stream-source-btn,
.tv-player-btn,
.mobile-menu-link,
.carousel-nav-left,
.carousel-nav-right {
  min-height: 44px;
}

.nav-link {
  min-height: 40px;
}

button,
a.btn,
input,
select,
textarea {
  touch-action: manipulation;
}

/* Prevent iOS zoom on focus — use 16px+ on primary inputs */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
textarea,
.page-search input,
.search-modal-input,
.username-input input,
.message-input-wrapper input,
.search-input-advanced,
.search-input-main,
#tv-search-input {
  font-size: max(16px, 1rem);
}

/* Layout containers */
.content-wrapper,
.section-wrapper,
.carousel-wrapper,
.schedule-section,
.faq-section,
.mirrors-section,
.streams-section,
.chat-page-main,
.watch-streams-page {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.main-content {
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}

.navbar {
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(60px + env(safe-area-inset-top, 0px));
}

.footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

/* Search modal — sheet on phones */
@media (max-width: 640px) {
  .search-modal {
    padding: 0;
    align-items: stretch;
  }

  .search-modal-content {
    max-width: none;
    min-height: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
    border-radius: 0;
    border-left: none;
    border-right: none;
    display: flex;
    flex-direction: column;
  }

  .search-modal-results {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  .search-modal-filters-wrap {
    padding-bottom: 0.35rem;
  }

  .search-modal-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .search-modal-genre-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .search-modal-close {
    width: 44px;
    height: 44px;
  }
}

/* Sport genre toolbar — horizontal chips on narrow screens */
@media (max-width: 640px) {
  .sport-genre-toolbar {
    padding: 0.9rem;
  }

  .sport-genre-filter-bar,
  .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.45rem;
    padding-bottom: 0.2rem;
    margin: 0 -0.15rem;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }

  .sport-genre-filter-bar .filter-chip,
  .filter-bar .filter-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .page-hero {
    padding: 2rem max(1rem, env(safe-area-inset-left, 0px)) 1.5rem;
  }

  .page-hero-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .matches-content--sport-genre {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Index: filters & live strip */
@media (max-width: 768px) {
  .index-filters-wrapper-center {
    padding: 1rem max(1rem, env(safe-area-inset-left, 0px)) 0;
  }

  .index-filters-center {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 0.2rem;
  }

  .index-filter-btn-center,
  .index-sport-filter-btn {
    flex: 0 0 auto;
  }

  .live-strip-scroll {
    scroll-padding-inline: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .hero-stats--triple {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .chat-page-main {
    padding: 1rem;
  }

  .chat-container-full {
    height: min(560px, calc(var(--vh, 1vh) * 100 - 220px));
  }

  .chat-page-hero {
    padding: 2.5rem 1rem 1.5rem;
  }
}

/* Watch / TV watch — player & sidebars */
@media (max-width: 1100px) {
  .watch-page--v3 .watch-sidebar-column--clean {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .watch-page--v3 .chat-sidebar--clean {
    min-height: 360px;
    max-height: min(480px, calc(var(--vh, 1vh) * 55));
  }

  .watch-page-new {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 480px) {
  .watch-hero-card {
    margin-bottom: 1rem;
  }

  .watch-theater__head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .stream-sources-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .video-player-wrapper,
  .video-player-wrapper--clean {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

/* TV channels listing */
.tv-page.content-wrapper {
  padding-bottom: 3rem;
}

.tv-channels-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  box-sizing: border-box;
}

.tv-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.tv-page .tv-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.tv-page .tv-channel-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tv-page .tv-channel-card .card-link {
  display: block;
}

.tv-page .tv-channel-card .card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-bottom: 0;
}

.tv-page .tv-channel-card .card-info {
  padding: 0.85rem 1rem 1rem;
  text-align: left;
}

.tv-page .tv-channel-card .card-title {
  font-size: 0.92rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.tv-page .tv-search-wrap {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.tv-page .search-input-main {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tv-page .search-input-main:focus {
  outline: none;
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.tv-page .tv-results-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.tv-page .tv-results-count {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .tv-channels-container {
    padding: 0 1rem 2.5rem;
  }

  .tv-channels-grid {
    grid-template-columns: 1fr;
  }

  .tv-page .index-filters-wrapper-center {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Dedicated search page (/search) — avoid double nav offset */
.search-page {
  padding-top: 0;
  min-height: 0;
}

/* Dedicated search page (/search) */
@media (max-width: 768px) {
  .search-page .search-hero {
    padding: 2.5rem 1rem 1.5rem;
  }

  .search-page .search-title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .search-page .search-input-section {
    padding: 0 1rem;
  }

  .search-page .filters-section {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .search-page .filter-chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .search-page .filter-chip {
    flex: 0 0 auto;
  }
}

/* Links / mirrors / FAQ padding */
@media (max-width: 640px) {
  .links-wrapper--clean {
    padding: 1rem max(1rem, env(safe-area-inset-left, 0px)) 2rem;
  }

  .links-head-clean {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .faq-section,
  .mirrors-section,
  .schedule-section {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .match-meta-panels--watch.match-meta-panels--page-bottom,
  .match-meta-panels--page-bottom {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

/* Tablet landscape & small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
  .match-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-container {
    padding: 0 1.25rem;
    gap: 1.25rem;
  }
}

/* Large screens — cap readable line lengths in prose blocks */
@media (min-width: 1440px) {
  .home-seo-section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Coarse pointer — reduce hover-only motion */
@media (hover: none) and (pointer: coarse) {
  .match-card:hover,
  .tv-page .tv-channel-card:hover,
  .stream-source-btn--card:hover {
    transform: none;
  }

  .feed-watch-btn {
    opacity: 1;
  }
}

/* ----- Enhanced chat: emojis, @mentions, optional username ----- */
.chat-input-container--enhanced {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.username-input--optional {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.username-input__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.username-input__hint {
  font-weight: 400;
  opacity: 0.85;
}

.username-input__row {
  display: flex;
  gap: 0.4rem;
}

.username-input__row input {
  flex: 1;
}

.username-input__apply {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.username-input__apply:hover {
  filter: brightness(1.08);
}

.chat-emoji-dropdown {
  position: relative;
  flex-shrink: 0;
}

.message-input-wrapper .chat-emoji-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.message-input-wrapper .chat-emoji-toggle:hover {
  border-color: var(--border-active);
  background: var(--bg-elevated);
  transform: none;
  box-shadow: none;
}

.chat-emoji-menu {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(4, 2rem);
  gap: 0.2rem;
  padding: 0.45rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.chat-emoji-dropdown.is-open .chat-emoji-menu {
  display: grid;
}

.message-input-wrapper .chat-emoji-menu .chat-emoji-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

.message-input-wrapper .chat-emoji-menu .chat-emoji-btn:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.message-input-wrapper--mentions {
  position: relative;
}

.chat-mention {
  color: #67e8f9;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.12);
  padding: 0 0.15rem;
  border-radius: 3px;
}

.chat-mention--self {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.22);
}

.chat-mention-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  z-index: 40;
  max-height: 11rem;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.chat-mention-menu__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.chat-mention-menu__item:hover,
.chat-mention-menu__item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.chat-mention-menu__at {
  color: var(--accent);
  opacity: 0.85;
}

.chat-welcome {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
}

.chat-welcome-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.chat-welcome-sub {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

/* ----- Links page ----- */
.links-page--clean.links-page-modern {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

.links-page-modern {
  min-height: 100vh;
  background: var(--bg-base, var(--bg-black));
  padding: 80px 0 3rem;
}

.links-wrapper--clean {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 1.25rem 2rem;
}

.links-back-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.65rem;
}

.links-back-clean:hover {
  color: var(--accent);
}

.links-bc-clean {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.links-bc-clean a {
  color: var(--text-muted);
  text-decoration: none;
}

.links-bc-clean a:hover {
  color: var(--accent);
}

.links-bc-dot {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.links-eyebrow-clean {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.links-eyebrow-ico {
  font-size: 1rem;
  line-height: 1;
}

.links-title-clean {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.links-meta-row-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.links-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.links-chip--accent {
  color: var(--accent);
  border-color: var(--border-active);
  background: var(--accent-dim);
}

.links-streams-h {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}

.links-streams-lead {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.links-stream-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links-stream-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, background 0.15s;
}

.links-stream-row:hover {
  border-color: var(--border-active);
  background: var(--accent-dim);
}

.links-stream-num {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--accent);
  flex-shrink: 0;
}

.links-stream-mid {
  flex: 1;
  min-width: 0;
}

.links-stream-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.links-stream-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.links-tag-hd {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-active);
}

.links-stream-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s, transform 0.15s;
}

.links-stream-row:hover .links-stream-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* Branded channel streams (e.g. TNT Sports, Paramount+) */
.links-stream-row--channel {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(99, 102, 241, 0.12) 100%);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow:
    0 0 18px rgba(6, 182, 212, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: links-channel-glow 3s ease-in-out infinite;
}

.links-stream-row--channel:hover {
  border-color: rgba(6, 182, 212, 0.65);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(99, 102, 241, 0.16) 100%);
  box-shadow:
    0 0 28px rgba(6, 182, 212, 0.32),
    0 0 12px rgba(99, 102, 241, 0.2);
}

.links-stream-row--channel .links-stream-num {
  background: rgba(6, 182, 212, 0.22);
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.35);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

.links-stream-row--channel .links-stream-name {
  color: #e0f2fe;
}

.links-stream-row--channel .links-stream-arrow {
  color: #67e8f9;
}

@keyframes links-channel-glow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(6, 182, 212, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow:
      0 0 26px rgba(6, 182, 212, 0.28),
      0 0 10px rgba(99, 102, 241, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

.links-wait-panel,
.empty-streams {
  text-align: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.empty-streams {
  padding: 2rem 1.25rem;
}

.links-wait-panel--upcoming {
  text-align: center;
}

.links-wait-panel__hero,
.links-wait-panel__banner {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.links-wait-panel__hero::after,
.links-wait-panel__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.links-wait-panel__hero--muted::after,
.links-wait-panel__banner--muted::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.links-wait-panel__icon {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.links-wait-panel__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.25rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.links-wait-panel__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.links-wait-panel__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.links-wait-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.links-wait-lead {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.links-wait-panel__back {
  margin-top: 1.25rem;
}

/* ----- Links countdown ----- */
.countdown-modern {
  margin: 0.85rem 0 0;
}

.countdown-modern--hero {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(6, 182, 212, 0.02) 100%
  );
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
}

.countdown-modern--wait {
  margin: 1.25rem auto;
  max-width: 420px;
  padding: 1.25rem 1.5rem;
  background: var(--bg-base, var(--bg-black));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.links-wait-panel .countdown-modern .countdown-display {
  justify-content: center;
}

.countdown-modern .countdown-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-modern .countdown-display,
.countdown-modern .countdown-display--wait {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
}

.countdown-modern .time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.45rem 0.35rem 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.countdown-modern--hero .time-unit,
.links-hero-v2--upcoming .countdown-modern .time-unit {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--border-active);
}

.countdown-modern .time-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.countdown-modern--wait .time-num {
  font-size: 1.75rem;
}

.countdown-modern .time-text {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-modern .countdown-sep {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.65;
  padding: 0 0.05rem;
  align-self: center;
  user-select: none;
}

.links-hero-v2--upcoming .links-hero-v2__facts {
  margin-top: 0.75rem;
}

.links-hero-v2__sport-fallback {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.links-hero-v2__sport-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.links-hero-v2__sport-icon {
  position: relative;
  z-index: 1;
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

@media (max-width: 720px) {
  .countdown-modern .countdown-display {
    flex-wrap: wrap;
    justify-content: center;
  }

  .links-hero-v2--upcoming .countdown-modern .countdown-display {
    justify-content: center;
  }

  .countdown-modern .time-unit {
    min-width: 2.75rem;
    padding: 0.4rem 0.3rem;
  }

  .countdown-modern .time-num {
    font-size: 1.15rem;
  }

  .countdown-modern .time-text {
    font-size: 0.52rem;
  }
}

/* ----- Links page v2 hero ----- */
.links-wrapper--v2 {
  max-width: 960px;
}

.links-page--v2 .links-head-clean {
  display: none;
}

.links-hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
}

.links-hero-v2--upcoming {
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.06);
}

.links-hero-v2__media {
  position: relative;
  min-height: 220px;
  height: 100%;
  align-self: stretch;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.links-hero-v2__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.links-hero-v2__poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

.links-hero-v2__matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  min-height: 220px;
  height: 100%;
  position: relative;
}

.links-hero-v2__matchup--badges {
  overflow: hidden;
  position: absolute;
  inset: 0;
  min-height: 0;
}

.links-hero-v2__matchup--badges::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 45%,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.links-hero-v2__matchup--badges .links-hero-v2__team,
.links-hero-v2__matchup--badges .links-hero-v2__vs {
  position: relative;
  z-index: 1;
}

.links-hero-v2__matchup--badges .links-hero-v2__team-name {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.links-hero-v2__matchup--badges .links-hero-v2__vs {
  color: rgba(255, 255, 255, 0.85);
}

.links-hero-v2__matchup--overlay {
  position: absolute;
  inset: auto 0 0;
  min-height: auto;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.links-hero-v2__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
  max-width: 140px;
}

.links-hero-v2__badge {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.links-hero-v2__badge-fallback {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-active);
  color: var(--accent);
}

.links-hero-v2__team-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  color: var(--text-primary);
}

.links-hero-v2__matchup--overlay .links-hero-v2__team-name {
  color: #fff;
}

.links-hero-v2__vs {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.links-hero-v2__matchup--overlay .links-hero-v2__vs {
  color: rgba(255, 255, 255, 0.75);
}

.links-hero-v2__sport-fallback {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.links-hero-v2__sport-icon {
  position: relative;
  z-index: 1;
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.links-hero-v2__status {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
}

.links-hero-v2__status--live {
  background: rgba(229, 9, 20, 0.95);
  color: #fff;
}

.links-hero-v2__status--upcoming {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent);
  border: 1px solid var(--border-active);
}

.links-hero-v2__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.links-hero-v2__scoreline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.links-hero-v2__score-sep {
  opacity: 0.5;
}

.links-hero-v2__minute {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--live-red);
}

.links-chip--viewers {
  color: #bbf7d0;
  font-weight: 700;
  font-size: 0.82rem;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
}

.links-chip--viewers-pending:not(:has(.links-chip__viewer-num:not(:empty))) {
  opacity: 0.65;
}

.viewer-count--pending {
  display: none;
}

.links-hero-v2__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.links-hero-v2__facts dt {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.links-hero-v2__facts dd {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-weight: 600;
}

.links-hero-v2__code {
  font-size: 0.72rem;
  word-break: break-all;
  opacity: 0.85;
}

.links-streams-clean--v2 {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .links-hero-v2 {
    grid-template-columns: 1fr;
  }

  .links-hero-v2__facts {
    grid-template-columns: 1fr;
  }
}
