/* ============================================================
   SPORTSTV — Global Stylesheet
   Monochrome premium theme · Black & White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary:    #000000;
  --bg-secondary:  #0d0d0d;
  --bg-card:       #141414;
  --bg-card-hover: #1c1c1c;
  --bg-glass:      rgba(10, 10, 10, 0.88);
  --border:        rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.18);

  /* B&W accent palette — replaces red/blue */
  --red:           #ffffff;
  --red-dark:      #cccccc;
  --red-glow:      rgba(255, 255, 255, 0.18);
  --blue:          #e0e0e0;
  --blue-light:    #ffffff;
  --blue-glow:     rgba(255, 255, 255, 0.12);
  --gold:          #d4d4d4;

  --text-primary:  #f5f5f5;
  --text-secondary:#9a9a9a;
  --text-muted:    #4a4a4a;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card:   0 4px 32px rgba(0,0,0,0.7);
  --shadow-glow-r: 0 0 30px rgba(255,255,255,0.10);
  --shadow-glow-b: 0 0 30px rgba(255,255,255,0.08);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --header-h:     64px;
  --sidebar-w:    300px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  height: var(--header-h);
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  width: 100%; padding: 0 20px;
  display: flex; align-items: center; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #ffffff, #555555);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.logo span { color: #ffffff; }

.header-search {
  flex: 1; max-width: 360px;
  position: relative;
}
.header-search input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 16px 9px 40px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.header-search input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.header-search .search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.header-nav a:hover, .header-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.header-live-badge {
  display: flex; align-items: center; gap: 6px;
  background: #ffffff;
  color: #000000;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.8px;
  animation: pulse-badge 2s ease-in-out infinite;
}
.header-live-badge::before {
  content: ''; width: 7px; height: 7px;
  background: #000; border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}

@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:0.8} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-card); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   AD ZONES
   ============================================================ */
.ad-leaderboard {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: center; align-items: center;
  padding: 10px;
}
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px; letter-spacing: 1px;
  font-family: var(--font-display);
}
.ad-leaderboard-inner { width: 728px; max-width: 100%; height: 90px; }

.ad-sticky-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 800;
  padding: 8px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.ad-sticky-mobile .ad-placeholder { height: 50px; }

.ad-sidebar .ad-placeholder { width: 100%; height: 250px; margin-bottom: 20px; }
.ad-sidebar .ad-placeholder-tall { width: 100%; height: 600px; }

.ad-in-content {
  margin: 28px 0;
}
.ad-in-content .ad-placeholder { width: 100%; height: 100px; }

.ad-footer-inner { width: 728px; max-width: 100%; height: 90px; }

/* ============================================================
   HERO / TICKER
   ============================================================ */
.ticker-bar {
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
  overflow: hidden; height: 34px;
  display: flex; align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  background: rgba(0,0,0,0.25);
  padding: 0 14px;
  height: 100%;
  display: flex; align-items: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.ticker-content {
  flex: 1; overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 40s linear infinite;
  font-size: 13px; font-weight: 500;
}
.ticker-track span { margin: 0 40px; }
.ticker-track .dot { color: rgba(255,255,255,0.5); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.page-wrapper {
  max-width: 1400px; margin: 0 auto;
  padding: 30px 20px 60px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 28px;
  align-items: start;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  display: block; width: 4px; height: 22px;
  background: #ffffff;
  border-radius: 2px;
}
.section-link {
  font-size: 13px; color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}
.section-link:hover { color: var(--text-primary); }

/* ============================================================
   FILTERS
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}
.filter-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

/* ============================================================
   MATCH CARDS
   ============================================================ */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.02));
  pointer-events: none;
}
.match-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-card);
}
.match-card.live-card {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10);
}
.match-card.live-card:hover {
  box-shadow: var(--shadow-glow-r);
}

.card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.competition-tag {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.status-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px;
}
.status-badge.live {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
}
.status-badge.live::before {
  content: ''; width: 6px; height: 6px;
  background: #ffffff; border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}
.status-badge.upcoming {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
}
.status-badge.finished {
  background: rgba(139, 154, 181, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(139,154,181,0.15);
}

.card-teams {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 14px;
}
.team-block {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  flex: 1;
}
.team-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: transform var(--transition);
}
.match-card:hover .team-logo { transform: scale(1.06); }
.team-logo-placeholder {
  width: 52px; height: 52px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  color: var(--text-secondary);
}
.team-name {
  font-size: 13px; font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.score-vs {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  min-width: 60px;
}
.score-display {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}
.score-display.live-score { color: #ffffff; }
.vs-text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text-muted);
}
.minute-badge {
  font-size: 11px; font-weight: 600;
  color: #ffffff; background: rgba(255,255,255,0.08);
  padding: 2px 8px; border-radius: 10px;
}
.countdown-display {
  font-size: 12px; color: var(--text-secondary);
  font-weight: 600; text-align: center;
  font-family: var(--font-display); letter-spacing: 0.5px;
}

.card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.match-time {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary); font-weight: 500;
}
.match-time .icon { font-size: 14px; }

.card-actions { display: flex; align-items: center; gap: 8px; }

.fav-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
  color: var(--text-muted);
}
.fav-btn:hover { border-color: var(--gold); color: var(--gold); }
.fav-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(245,158,11,0.1); }

.watch-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  font-family: var(--font-display); letter-spacing: 0.5px;
  transition: all var(--transition);
}
.watch-btn.live-btn {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}
.watch-btn.live-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(255,255,255,0.25);
}
.watch-btn.upcoming-btn {
  background: #1e1e1e;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.watch-btn.upcoming-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(255,255,255,0.10);
}
.watch-btn.finished-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.watch-btn .btn-icon { font-size: 12px; }

/* ── No results ── */
.no-results {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.no-results .icon { font-size: 48px; margin-bottom: 12px; }
.no-results p { font-size: 16px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.widget-header {
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
.widget-header .icon { font-size: 16px; }
.widget-body { padding: 14px 18px; }

.mini-match {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
}
.mini-match:last-child { border-bottom: none; }
.mini-match:hover { background: var(--bg-card-hover); }
.mini-match-teams {
  flex: 1; min-width: 0;
}
.mini-team { font-size: 12px; font-weight: 600; }
.mini-comp {
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px;
}
.mini-score {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  color: #ffffff;
}
.mini-time {
  font-size: 11px; color: var(--text-secondary); font-weight: 600;
  white-space: nowrap;
}

.standings-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.standings-table th {
  text-align: left; padding: 4px 6px;
  color: var(--text-muted); font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px; margin-bottom: 4px;
}
.standings-table td { padding: 6px 6px; }
.standings-table tr:hover td { background: rgba(255,255,255,0.03); }
.standings-table .pos { color: var(--text-muted); width: 24px; }
.standings-table .pts { font-weight: 700; color: var(--text-primary); }
.standings-table .team-n { font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-ad {
  display: flex; justify-content: center;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 13px; color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto;
  font-size: 12px; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* ============================================================
   MATCH PAGE — Banner
   ============================================================ */
.match-banner {
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #0d1525 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 40px 20px;
}
.match-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
}
.banner-inner {
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 1;
}
.banner-comp {
  text-align: center; margin-bottom: 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 1px;
}
.banner-teams {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.banner-team {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  flex: 1;
}
.banner-logo {
  width: 90px; height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}
.banner-logo-placeholder {
  width: 90px; height: 90px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
}
.banner-team-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  text-align: center;
  letter-spacing: 0.5px;
}

.banner-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  min-width: 120px;
}
.banner-score {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 900;
  letter-spacing: 4px;
  line-height: 1;
}
.banner-vs {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--text-muted);
}
.banner-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.banner-status.live { color: #ffffff; }
.banner-status.live::before {
  content: ''; width: 8px; height: 8px;
  background: #ffffff; border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}
.banner-time {
  font-size: 13px; color: var(--text-secondary);
}

.banner-actions {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 24px; flex-wrap: wrap;
}
.btn-primary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: #ffffff;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
  color: #000000;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.25);
}
.btn-secondary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.btn-fav {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 18px;
  transition: all var(--transition);
}
.btn-fav:hover, .btn-fav.active { color: var(--gold); border-color: var(--gold); background: rgba(245,158,11,0.1); }

/* ============================================================
   MATCH PAGE — Content
   ============================================================ */
.match-page-wrapper {
  max-width: 1400px; margin: 0 auto;
  padding: 30px 20px 80px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 28px;
  align-items: start;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.block-header {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
.block-body { padding: 20px; }

/* Stream iframe */
.stream-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  background: #000;
}
.stream-container iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.stream-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85);
  gap: 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.stream-overlay:hover { background: rgba(0,0,0,0.7); }
.stream-play-btn {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.90);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 40px rgba(255,255,255,0.20);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stream-overlay:hover .stream-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(255,255,255,0.35);
}
.stream-overlay p {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* Stats */
.stats-grid { display: grid; gap: 12px; }
.stat-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px; align-items: center;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
}
.stat-val.left { text-align: right; color: #ffffff; }
.stat-val.right { text-align: left; color: #aaaaaa; }
.stat-bar {
  height: 5px; background: var(--bg-secondary);
  border-radius: 3px; overflow: hidden;
  display: flex;
}
.stat-fill-left {
  height: 100%;
  background: linear-gradient(to right, #555555, #ffffff);
  border-radius: 3px 0 0 3px;
  transition: width 0.8s ease;
}
.stat-fill-right {
  height: 100%;
  background: linear-gradient(to right, #aaaaaa, #cccccc);
  border-radius: 0 3px 3px 0;
  transition: width 0.8s ease;
}
.stat-label {
  text-align: center;
  font-size: 11px; color: var(--text-muted);
  font-weight: 600; letter-spacing: 0.3px;
  margin-top: 2px;
}
.stat-row-wrap { margin-bottom: 4px; }

/* ============================================================
   ARTICLE / SEO
   ============================================================ */
.article-content { line-height: 1.8; }
.article-content h1 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900;
  margin-bottom: 20px; line-height: 1.15;
  letter-spacing: 0.3px;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  margin: 28px 0 12px;
  color: var(--text-primary); letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 8px;
}
.article-content h2::before {
  content: '';
  display: block; width: 3px; height: 20px;
  background: #ffffff; border-radius: 2px;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text-secondary);
}
.article-content p {
  font-size: 15px; color: var(--text-secondary);
  margin-bottom: 14px;
}
.article-content ul {
  list-style: disc; padding-left: 20px;
  margin-bottom: 14px;
}
.article-content ul li {
  font-size: 15px; color: var(--text-secondary);
  margin-bottom: 6px;
}

.lineup-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 16px 0;
}
.lineup-col h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
  color: var(--text-secondary);
}
.lineup-col ol {
  list-style: decimal; padding-left: 18px;
}
.lineup-col ol li {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 5px; font-weight: 500;
}

.key-players-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 16px 0;
}
.key-player-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.kp-team { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 4px; }
.kp-name { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.kp-role { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
.kp-stat { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.prediction-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center; margin: 16px 0;
}
.prediction-label { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; font-weight: 600; margin-bottom: 8px; }
.prediction-score {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 900;
  background: linear-gradient(90deg, #aaaaaa, #ffffff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left;
  padding: 14px 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-body);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  cursor: pointer; background: none; border: none;
  transition: color var(--transition);
}
.faq-question:hover { color: #ffffff; }
.faq-arrow { font-size: 12px; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  font-size: 14px; color: var(--text-secondary);
  padding: 0 0 14px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CHAT
   ============================================================ */
.chat-box { height: 320px; overflow-y: auto; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #444444, #888888);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
}
.chat-bubble-wrap { flex: 1; }
.chat-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.chat-user { font-size: 13px; font-weight: 700; }
.chat-time { font-size: 11px; color: var(--text-muted); }
.chat-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.chat-input-row {
  display: flex; gap: 10px;
}
.chat-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: rgba(255,255,255,0.35); }
.chat-send {
  padding: 10px 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  color: #000000;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-display); letter-spacing: 0.5px;
  transition: background var(--transition);
}
.chat-send:hover { background: #cccccc; }

/* ============================================================
   RELATED MATCHES
   ============================================================ */
.related-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.related-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.related-card:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }
.related-teams { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.related-comp { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.related-status { margin-top: 8px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 80px; right: 20px; z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-card);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 280px;
}
.toast.show { transform: translateX(0); }
.toast.toast-success { border-color: rgba(255,255,255,0.3); }
.toast.toast-info { border-color: rgba(255,255,255,0.2); }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 468px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}
.match-card { animation: fadeInUp 0.4s ease both; }
.match-card:nth-child(1) { animation-delay: 0.05s; }
.match-card:nth-child(2) { animation-delay: 0.10s; }
.match-card:nth-child(3) { animation-delay: 0.15s; }
.match-card:nth-child(4) { animation-delay: 0.20s; }
.match-card:nth-child(5) { animation-delay: 0.25s; }
.match-card:nth-child(6) { animation-delay: 0.30s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .two-col, .match-page-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 100%; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .header-search { max-width: 100%; flex: 1; }
  .header-live-badge { display: none; }

  .matches-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .lineup-grid { grid-template-columns: 1fr; }
  .key-players-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  .ad-sticky-mobile { display: block; }
  .ad-leaderboard-inner { width: 320px; height: 50px; }

  .banner-logo, .banner-logo-placeholder { width: 60px; height: 60px; }
  .banner-team-name { font-size: 16px; }
  .banner-score { font-size: 40px; }

  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 6px 12px; }

  .page-wrapper { padding: 20px 14px 80px; }
  .match-page-wrapper { padding: 20px 14px 80px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .banner-teams { gap: 10px; }
  .banner-center { min-width: 90px; }
  .banner-score { font-size: 32px; }
}

/* ── Mobile nav overlay ── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 850;
  background: var(--bg-primary);
  padding: 80px 24px 24px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
