/* ============================================================
   BASE.CSS — Reset, Design Tokens, Typography, Layout,
   Core Components, Animations, Accessibility
   Theme-agnostic foundation. Per-theme in themes.css.
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* --- Design Tokens (defaults — overridden per theme) --- */
:root {
  --color-primary: #1a5c2e;
  --color-primary-hover: #227539;
  --color-primary-rgb: 26, 92, 46;
  --color-surface: #0d1117;
  --color-surface-raised: #161b22;
  --color-surface-overlay: #1c2333;
  --color-border: #30363d;
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-text-dim: #6e7681;
  --color-text-inverse: #ffffff;
  --color-live: #ff4444;
  --color-live-glow: rgba(255, 68, 68, 0.4);
  --color-success: #3fb950;
  --color-accent: #58a6ff;
  --color-overlay: rgba(0, 0, 0, 0.75);
  --color-stream-bg: #000000;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--color-live-glow);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  --sidebar-width: 320px;
  --header-height: 56px;
  --max-width: 1280px;
  --grid-gap: 16px;
  --content-padding: 16px;
  --focus-ring: 2px solid var(--color-accent);
  --focus-ring-offset: 2px;
}

/* --- Focus Visible --- */
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }
:focus:not(:focus-visible) { outline: none; }

/* --- Typography --- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1rem, 2vw, 1.125rem); }
h4 { font-size: 1rem; }
small { font-size: 0.75rem; color: var(--color-text-muted); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  padding-top: calc(var(--header-height) + 12px);
  padding-bottom: 32px;
  min-height: 100vh;
}
.main-content { min-width: 0; }
.sidebar {
  position: static;
  max-height: none;
  overflow-y: visible;
  scrollbar-width: none;
  min-width: 0;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Sidebar placement per theme (applied at desktop breakpoint) */
/* Default: right sidebar */
/* Bravo: left sidebar — grid order reversed */

/* ============================================================
   HEADER — Base styles (theme-specific in themes.css)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon-img {
  width: auto;
  height: 40px;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
}

/* --- Header Actions (sidebar toggle) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-raised);
}
.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-open { display: none; }
.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-close { display: block !important; }

/* --- Referral Banner Side (match page) --- */
.referral-banner-side {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.referral-banner-side img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
}
.referral-banner-side a {
  display: block;
  width: 100%;
}

/* Nav link base styles */
.nav-link-alpha, .nav-link-charlie, .nav-link-delta, .nav-link-echo,
.nav-pill-bravo {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-link-alpha:hover, .nav-link-charlie:hover, .nav-link-delta:hover,
.nav-link-echo:hover, .nav-pill-bravo:hover {
  color: var(--color-text);
}
.nav-pill-bravo { border-radius: 20px; }

/* --- Sport Tabs --- */
.sport-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 36px;
}
.sport-tab:hover {
  color: var(--color-text);
  border-color: var(--color-text-dim);
  background: var(--color-surface-overlay);
}
.sport-tab[aria-selected="true"] {
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.sport-tab-icon { font-size: 1rem; line-height: 1; }

/* ============================================================
   MATCH CARD
   ============================================================ */
.match-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.match-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.match-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.match-league {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.match-time {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-overlay);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}
.match-time.is-live {
  background: var(--color-live);
  color: var(--color-text-inverse);
  animation: livePulse 2s ease-in-out infinite;
}
.match-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.match-team-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--color-surface-overlay);
}
.match-team-name {
  font-weight: 600;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-team-name.scrolling {
  display: inline-block;
  animation: scrollText 8s linear infinite;
  padding-right: 24px;
}
.match-team-name.scrolling:hover {
  animation-play-state: paused;
}
.match-card-footer {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.match-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-card-badge {
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.match-card-badge.viewers {
  background: var(--color-surface-overlay);
  color: var(--color-text-muted);
}
.match-card-arrow {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}
.match-card:hover .match-card-arrow { color: var(--color-primary); }

/* --- Match List (compact sidebar list) --- */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-list .match-card { padding: 10px 14px; }
.match-list .match-teams { flex-direction: row; align-items: center; }
.match-list .match-card-footer { display: none; }

/* --- Grid Layouts --- */
.match-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  gap: var(--grid-gap);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.section-header h2 { margin: 0; }
.section-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   LIVE INDICATORS
   ============================================================ */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-live);
  text-transform: uppercase;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-live);
  animation: livePulse 2s ease-in-out infinite;
}
.match-elapsed {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--color-live);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.match-countdown {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* ============================================================
   PROMO BANNERS & MODALS
   ============================================================ */
.promo-banner {
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--grid-gap);
  position: relative;
}
.promo-banner img { width: 100%; height: auto; display: block; object-fit: cover; }
.promo-banner-content { padding: 16px; }
.promo-banner-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.promo-banner-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.promo-cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.sidebar .promo-banner img { max-height: 200px; object-fit: contain; }
.promo-banner-referral img { max-height: 200px; object-fit: contain; }

/* --- CTA Banner (code-cta-banner) --- */
.cta-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
}
.cta-banner-link {
  display: block;
  position: relative;
}
.cta-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.cta-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.cta-banner-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 4px;
}
.cta-banner-text {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 8px;
}
.cta-banner-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* --- In-content promo (between match rows) --- */
.promo-inline {
  margin: 8px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.promo-inline img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

/* --- Promo Modal --- */
.promo-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.promo-modal-overlay.is-active { opacity: 1; visibility: visible; }
.promo-modal {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}
.promo-modal-overlay.is-active .promo-modal { transform: scale(1) translateY(0); }
.promo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface-overlay);
  color: var(--color-text-muted);
  font-size: 1.25rem;
  z-index: 1;
  transition: all var(--transition-fast);
}
.promo-modal-close:hover { background: var(--color-border); color: var(--color-text); }
.promo-modal img { width: 100%; display: block; }
.promo-modal-body { padding: 24px; }

/* ============================================================
   STREAM CONTROLS & OVERLAY
   ============================================================ */
.stream-wrapper {
  position: relative;
  background: var(--color-stream-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--grid-gap);
}
.stream-container {
  position: relative;
  padding-top: 56.25%;
  background: var(--color-stream-bg);
}
.stream-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.stream-wrapper[data-health="playing"] { box-shadow: inset 0 0 0 2px var(--color-success); }
.stream-wrapper[data-health="buffering"] { box-shadow: inset 0 0 0 2px #f0ad4e; }
.stream-wrapper[data-health="error"] { box-shadow: inset 0 0 0 2px var(--color-live); }

/* --- Top Bar --- */
.stream-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}
.stream-top-bar > * { pointer-events: auto; }
.stream-source-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.stream-source-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.stream-source-pill:hover { background: rgba(255, 255, 255, 0.25); }
.stream-source-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.stream-viewers {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
}
.stream-viewers-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-live);
  animation: livePulse 2s ease-in-out infinite;
}
.stream-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Stream Overlay (loading/offline/error) --- */
.stream-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: var(--color-stream-bg);
  padding: 16px;
}
.stream-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.stream-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.stream-overlay-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.stream-overlay-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-text-inverse);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.stream-overlay-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
}
.stream-overlay-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.stream-overlay-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.stream-overlay-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 400px;
}
.stream-overlay-ad {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stream-overlay-ad-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}
.stream-overlay-ad-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   MATCH DETAIL HEADER
   ============================================================ */
.match-detail-header {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: var(--grid-gap);
  text-align: center;
}
.match-detail-meta-top {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.match-detail-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.match-detail-team {
  text-align: center;
  flex: 1;
  max-width: 200px;
}
.match-detail-team-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--color-surface-overlay);
  margin: 0 auto 12px;
  display: block;
}
.match-detail-team-badge-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  background: var(--color-surface-overlay);
  margin: 0 auto 12px;
}
.match-detail-team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.match-detail-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}
.match-detail-score-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-detail-notify { margin-top: 20px; }
.match-page-main { padding-top: 0; }

/* ============================================================
   SOURCE LIST
   ============================================================ */
.source-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-overlay);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}
.source-item:hover { border-color: var(--color-primary); }
.source-item.active {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.15);
}
.source-item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}
.source-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.source-item-label {
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-item-meta {
  font-size: 0.6875rem;
  color: var(--color-text);
  opacity: 0.65;
  display: flex;
  gap: 8px;
  align-items: center;
}
.source-item-badge {
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   HALFTIME OVERLAY
   ============================================================ */
.halftime-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.97));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.halftime-overlay.is-active { opacity: 1; visibility: visible; }
.halftime-content { text-align: center; padding: 40px 32px; max-width: 480px; }
.halftime-badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  animation: pulse 2s ease-in-out infinite;
}
.halftime-banner {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-sm);
  margin: 0 auto 16px;
  display: block;
}
.halftime-teams {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.halftime-message { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 24px; }
.halftime-promo {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.halftime-promo-title { font-family: var(--font-display); font-size: 0.875rem; text-transform: uppercase; color: var(--color-text); margin-bottom: 4px; }
.halftime-promo-text { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 12px; }
.halftime-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.halftime-promo-cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.halftime-dismiss {
  padding: 6px 16px;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 36px;
}
.halftime-dismiss:hover { color: var(--color-text); border-color: var(--color-text-dim); }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toast.is-visible { transform: translateX(0); }
.toast.is-dismissed { opacity: 0; transform: translateX(120%); }
.toast-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 0.8125rem; font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
.toast-text { font-size: 0.75rem; color: var(--color-text-muted); }
.toast-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}
.toast-close:hover { color: var(--color-text); }
.toast.goal { border-left-color: var(--color-live); }
.toast.halftime { border-left-color: var(--color-primary); }
.toast.live { border-left-color: var(--color-live); }

/* ============================================================
   NOTIFICATION BELL
   ============================================================ */
.notif-bell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 36px;
}
.notif-bell:hover { color: var(--color-text); border-color: var(--color-text-dim); background: var(--color-surface-raised); }
.notif-bell.active { color: var(--color-primary); border-color: var(--color-primary); background: rgba(var(--color-primary-rgb), 0.1); }
.notif-bell-label { font-size: 0.75rem; }

/* ============================================================
   SCROLL-TRIGGERED PROMO — Sticky bottom banner
   ============================================================ */
.scroll-promo {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--color-surface-raised);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--transition-normal);
}
.scroll-promo.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-promo-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.scroll-promo-close:hover { color: var(--color-text); }
.scroll-promo-link {
  display: block;
  max-height: 60px;
  overflow: hidden;
}
.scroll-promo-img {
  width: 100%;
  max-width: 600px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ============================================================
   MATCH REFERRAL BANNER
   ============================================================ */
.match-referral-banner { margin-bottom: var(--grid-gap); }
.match-referral-banner img {
  max-height: 400px;
  object-fit: contain;
  width: 100%;
  border-radius: var(--radius);
}

/* ============================================================
   SKELETONS
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-raised) 25%, var(--color-surface-overlay) 50%, var(--color-surface-raised) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { height: 140px; border-radius: var(--radius); }
.skeleton-match-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}
.skeleton-match-card .sk-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.skeleton-match-card .sk-league { width: 80px; height: 10px; border-radius: 2px; }
.skeleton-match-card .sk-time { width: 48px; height: 20px; border-radius: var(--radius-sm); }
.skeleton-match-card .sk-teams { display: flex; flex-direction: column; gap: 10px; }
.skeleton-match-card .sk-team { display: flex; align-items: center; justify-content: space-between; }
.skeleton-match-card .sk-team-left { display: flex; align-items: center; gap: 8px; }
.skeleton-match-card .sk-badge { width: 24px; height: 24px; border-radius: 50%; }
.skeleton-match-card .sk-team-name { width: 120px; height: 12px; border-radius: 2px; }
.skeleton-match-card .sk-team-name.away { width: 100px; }
.skeleton-match-card .sk-score { width: 24px; height: 14px; border-radius: 2px; }
.skeleton-match-card .sk-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--color-border); }
.skeleton-match-card .sk-badge-pill { width: 60px; height: 16px; border-radius: var(--radius-sm); }
.skeleton-match-card .sk-arrow { width: 16px; height: 16px; border-radius: 50%; }
.skeleton-list-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  overflow: hidden;
}
.skeleton-list-card .sk-list-teams { display: flex; align-items: center; gap: 8px; }
.skeleton-list-card .sk-list-badge { width: 20px; height: 20px; border-radius: 50%; }
.skeleton-list-card .sk-list-name { height: 10px; border-radius: 2px; flex: 1; }
.skeleton-list-card .sk-list-name:nth-child(2) { flex: 0.8; }
.skeleton-list-card .sk-list-time { width: 40px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.skeleton-hero {
  background: linear-gradient(135deg, var(--color-surface-raised), var(--color-surface-overlay));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  margin-bottom: var(--grid-gap);
  padding: 28px 32px;
  overflow: hidden;
}
.skeleton-hero .sk-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skeleton-hero .sk-hero-league { width: 100px; height: 10px; border-radius: 2px; }
.skeleton-hero .sk-hero-status { width: 60px; height: 20px; border-radius: 20px; }
.skeleton-hero .sk-hero-teams { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.skeleton-hero .sk-hero-team { display: flex; align-items: center; gap: 10px; }
.skeleton-hero .sk-hero-badge { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-hero .sk-hero-name { width: 140px; height: 16px; border-radius: 2px; }
.skeleton-hero .sk-hero-vs { width: 24px; height: 10px; border-radius: 2px; }
.skeleton-hero .sk-hero-viewers { width: 100px; height: 12px; border-radius: 2px; }
.skeleton-sidebar-widget {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.skeleton-sidebar-widget .sk-widget-title { width: 80px; height: 12px; border-radius: 2px; margin-bottom: 12px; }
.skeleton-sidebar-widget .sk-widget-items { display: flex; flex-direction: column; gap: 8px; }
.skeleton-sidebar-widget .sk-widget-item { display: flex; align-items: center; gap: 8px; height: 32px; }
.skeleton-sidebar-widget .sk-widget-badge { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.skeleton-sidebar-widget .sk-widget-text { height: 10px; border-radius: 2px; flex: 1; }
.skeleton-sidebar-widget .sk-widget-text:nth-child(2) { flex: 0.6; }
.skeleton-stream {
  position: relative;
  background: var(--color-stream-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--grid-gap);
}
.skeleton-stream .sk-stream-aspect { padding-top: 56.25%; }
.skeleton-stream .sk-stream-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.skeleton-stream .sk-stream-spinner { width: 40px; height: 40px; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: rgba(255, 255, 255, 0.5); border-radius: 50%; animation: spin 0.8s linear infinite; }
.skeleton-stream .sk-stream-text { width: 140px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.skeleton-stream .sk-stream-sub { width: 200px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); }
.skeleton-detail-header {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: var(--grid-gap);
  overflow: hidden;
  text-align: center;
}
.skeleton-detail-header .sk-detail-league { width: 60px; height: 10px; border-radius: 2px; margin: 0 auto 16px; }
.skeleton-detail-header .sk-detail-teams { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 16px; }
.skeleton-detail-header .sk-detail-team { text-align: center; flex: 1; }
.skeleton-detail-header .sk-detail-badge { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; }
.skeleton-detail-header .sk-detail-name { width: 100px; height: 14px; border-radius: 2px; margin: 0 auto; }
.skeleton-detail-header .sk-detail-score { width: 48px; height: 20px; border-radius: var(--radius-sm); }
.content-loading { opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.content-loaded { opacity: 1; transform: translateY(0); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  min-height: 36px;
}
.btn-primary { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-outline { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
.btn-outline:hover { color: var(--color-text); border-color: var(--color-text-dim); }
.btn-sm { padding: 4px 10px; font-size: 0.75rem; min-height: 28px; }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-overlay);
  color: var(--color-text-muted);
}
.btn-icon:hover { background: var(--color-border); color: var(--color-text); }

/* ============================================================
   ERROR/EMPTY STATES
   ============================================================ */
.error-state { text-align: center; padding: 48px 16px; color: var(--color-text-muted); }
.error-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.error-state-text { font-size: 1rem; margin-bottom: 16px; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--color-text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }
.empty-state-text { font-size: 0.9375rem; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  z-index: 999;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-dim); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% + 100%)); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.fade-in { animation: fadeIn var(--transition-normal) both; }
.slide-up { animation: slideUp var(--transition-slow) both; }

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

/* ============================================================
   UTILITIES
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.font-mono { font-family: var(--font-mono); }


/* --- Sidebar Handle (mobile drag indicator) --- */
.sidebar-handle {
  display: none;                     /* hidden on desktop */
  width: 40px;
  height: 4px;
  background: var(--color-text-dim);
  border-radius: 2px;
  margin: 8px auto 0;
  cursor: grab;
}
@media (max-width: 1023px) {
  .sidebar-handle {
    display: block;
  }
}

/* --- Sidebar expanded state (mobile) --- */
.sidebar.expanded {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 50vh;
  overflow-y: auto;
  z-index: 150;
  background: var(--color-surface-raised);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  padding-bottom: 16px;
}

/* Stream sources bar (horizontal under player) */
.stream-sources-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
  padding: 0 4px;
}
.stream-sources-bar .stream-source-pill {
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.stream-sources-bar .stream-source-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Dropdown source select */
.stream-source-select {
  width: 100%;
  max-width: 200px;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* Dropdown source select */
.stream-source-select {
  width: 100%;
  max-width: 200px;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* Dropdown source select */
.stream-source-select {
  width: 100%;
  max-width: 200px;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* Redesigned live badge – compact red pill with pulse */
.match-card-header .match-time.is-live {
  background: #e53935;
  color: #fff;
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(229,57,53,0.5);
  animation: livePulse 2s infinite;
}
/* Hide the old LIVE text, use dot + text */
.match-time.is-live .live-indicator {
  display: contents;
}
.match-time.is-live .live-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-right: 2px;
}
/* Mobile promo banner – clean, full-width, no absolute positioning */
.inline-promo {
  margin: 0 0 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
}
.inline-promo .promo-banner {
  margin-bottom: 0;   /* remove bottom margin inside the wrapper */
  border: none;
}
.inline-promo .promo-banner img {
  max-height: 120px;    /* restrict height on mobile */
  object-fit: cover;
  width: 100%;
}


/* Live badge – always readable on any theme (themes may override) */
.match-time.is-live {
  color: #fff !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
}
.match-time.is-live .live-dot {
  background: currentColor;
}
/* Buttons – ensure legible text */
.btn-primary, .promo-cta, .halftime-promo-cta,
.filter-chip[aria-pressed="true"],
.sport-tab[aria-selected="true"] {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Mobile promo banner – respects flow */
.inline-promo {
  margin: 0 0 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
}
.inline-promo .promo-banner {
  margin-bottom: 0;
  border: none;
}
.inline-promo .promo-banner img {
  max-height: 120px;
  object-fit: cover;
  width: 100%;
}

/* Match page slim promo banner */
.mobile-match-promo {
  margin: 12px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mobile-promo-link {
  display: flex;
  align-items: center;
  background: var(--color-surface-overlay);
  text-decoration: none;
}
.mobile-promo-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}
.mobile-promo-text {
  flex: 1;
  padding: 0 12px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}
