/* ─── LiquidView — Vanilla CSS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Space+Grotesk:wght@300..700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg-primary:    #0A0F1F;
  --bg-secondary:  #111827;
  --surface:       #1E293B;
  --surface-raised:#253247;
  --accent:        #3B82F6;
  --accent-2:      #8B5CF6;
  --highlight:     #FF6B6B;
  --text-primary:  #F8FAFC;
  --text-secondary:#CBD5E1;
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(59,130,246,0.3);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --nav-height: 60px;
  --page-pad-x: 1rem;
  --section-pad-y: 3.25rem;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.0625rem;
  --text-xl:   1.125rem;
  --text-2xl:  1.375rem;
  --text-3xl:  1.75rem;
  --text-4xl:  2.125rem;
  --text-5xl:  2.5rem;
  --text-6xl:  2.75rem;
}

@media (min-width: 640px) {
  :root {
    --nav-height: 64px;
    --page-pad-x: 1.5rem;
    --section-pad-y: 4rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.5rem;
    --text-5xl:  3rem;
    --text-6xl:  3.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-pad-x: 2rem;
    --section-pad-y: 4.75rem;
    --text-lg:   1.1875rem;
    --text-xl:   1.375rem;
    --text-2xl:  1.75rem;
    --text-3xl:  2.25rem;
    --text-4xl:  3rem;
    --text-5xl:  3.5rem;
    --text-6xl:  4.25rem;
  }
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: linear-gradient(135deg, #0A0F1F 0%, #111827 45%, #1E293B 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0A0F1F; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3B82F6; }
::selection { background: rgba(59,130,246,0.35); color: #F8FAFC; }
:focus-visible { outline: 2px solid #3B82F6; outline-offset: 2px; border-radius: 4px; }

/* ── Utilities ───────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #006EFF, #00BCF9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass-dark {
  background: rgba(10, 15, 31, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes spin     { to{transform:rotate(360deg)} }

.live-pulse { animation: livePulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.fade-in    { animation: fadeIn 0.5s ease-out both; }
.fade-in-up { animation: fadeInUp 0.6s ease-out both; }
.live-dot   { width:8px; height:8px; border-radius:50%; background:var(--highlight); display:inline-block; flex-shrink:0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  transition: opacity .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 4px 15px rgba(59,130,246,0.35);
  font-family: var(--font);
  font-size: var(--text-base);
  display: inline-block;
}
.btn-primary:hover  { opacity:.9; transform:translateY(-1px); box-shadow:0 8px 25px rgba(59,130,246,0.45); }
.btn-primary:active { transform:translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #F8FAFC;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .3s, border-color .3s, transform .3s;
  font-family: var(--font);
  font-size: var(--text-base);
  display: inline-block;
}
.btn-secondary:hover  { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.2); transform:translateY(-1px); }
.btn-secondary:active { transform:translateY(0); }

.nav-links .btn-primary {
  font-size: var(--text-sm);
  padding: 0.5rem 1.125rem;
}

.mobile-links .btn-primary {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  padding: 0.625rem 1rem;
}

/* Audio Info */
.audio-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent);
}
.audio-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.audio-info-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
}
.audio-info-text strong {
  color: #fff;
  font-weight: 600;
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(10,15,31,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items:center;
  gap: 0.22em;
  text-decoration: none;
  user-select: none;
  min-width: 0;
  font-size: 1.05rem;
}
.logo img {
  height: 1.666em;
  width: auto;
  object-fit: contain;
}
.logo-icon {
  width: 25px; height: 25px;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: box-shadow .3s;
  color: #fff;
  flex-shrink: 0;
}
.logo:hover .logo-icon { box-shadow: 0 0 16px rgba(59,130,246,0.5); }
.logo-text { font-family: 'Fredoka', sans-serif; font-size: 1em; margin-bottom: -0.1em; font-weight: 500; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.logo-white { color: #fff; }
@media(min-width:640px) {
  .logo { font-size: 1.125rem; }
  .logo-icon { width: 32px; height: 32px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media(min-width:768px) { .nav-links { display: flex; } }
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .3s, background .3s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: var(--text-secondary);
  transition: color .3s, background .3s;
}
@media(min-width:768px) { .mobile-toggle { display: none; } }
.mobile-toggle:hover { color: #fff; background: rgba(255,255,255,0.05); }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease-out, opacity .3s ease-out;
  background: rgba(10,15,31,0.7);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.05);
}
@media(min-width:768px) { .mobile-menu { display: none; } }
.mobile-menu.open { max-height: 16rem; opacity: 1; }
.mobile-links { padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .3s, background .3s;
}
.mobile-link:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
@media(min-width: 640px) and (max-width: 1023px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay-b {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,15,31,0.8), rgba(10,15,31,0.5), #0A0F1F);
}
.hero-overlay-r {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,15,31,0.9), rgba(10,15,31,0.3), transparent);
}
.hero-content {
  position: relative; z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2.5rem) var(--page-pad-x) 4rem;
}
@media(min-width:1024px) { .hero-content { padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 5rem; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media(min-width:768px) {
  .hero-grid { grid-template-columns: 1fr 320px; gap: 3rem; }
}
@media(min-width:1024px) {
  .hero-grid { grid-template-columns: 1fr 360px; gap: 5rem; }
}

.hero-right { display: none; position: relative; }
@media(min-width:768px) { .hero-right { display: block; } }
.hero-glow {
  position: absolute;
  inset: -1rem;
  border-radius: 2.5rem;
  background: rgba(59,130,246,0.1);
  filter: blur(2rem);
  pointer-events: none;
}

.live-pill { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.live-pill-text { font-size: var(--text-xs); font-weight: 700; color: var(--highlight); text-transform: uppercase; letter-spacing: 0.1em; }

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 11ch;
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 32rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media(min-width:640px) { .hero-ctas { flex-direction: row; } }
.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
}

.hero-carousel-mobile { margin-top: 2.5rem; }
@media(min-width:768px) { .hero-carousel-mobile { display: none; } }

/* ── Carousel ────────────────────────────────────────────────────────── */
.carousel-card {
  background: rgba(30,41,59,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.carousel-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, #3B82F6, #8B5CF6, #FF6B6B);
}
.carousel-content { transition: opacity .3s, transform .3s; }
.carousel-content.animating-next { opacity: 0; transform: translateX(-12px); }
.carousel-content.animating-prev { opacity: 0; transform: translateX(12px); }

.carousel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.carousel-live { display: flex; align-items: center; gap: 0.5rem; }
.carousel-live-text { font-size: var(--text-xs); font-weight: 700; color: var(--highlight); text-transform: uppercase; letter-spacing: 0.1em; }
.carousel-counter { font-size: var(--text-xs); color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.team-row { display: flex; align-items: center; justify-content: space-between; }
.team-info { display: flex; align-items: center; gap: 0.625rem; }
.team-flag { font-size: var(--text-2xl); }
.team-name { font-weight: 700; font-size: var(--text-sm); color: #fff; }
.team-score { font-size: var(--text-2xl); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

.match-divider {
  display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0;
}
.divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.minute-chip {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: var(--text-xs); color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
}

.carousel-stadium { font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.carousel-btn {
  padding: 0.375rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  transition: background .2s, color .2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.carousel-dots { display: flex; align-items: center; gap: 0.375rem; }
.carousel-dot {
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  width: 6px; height: 6px;
  transition: all .3s;
  border: none;
  cursor: pointer;
}
.carousel-dot.active { background: #3B82F6; width: 20px; }
.carousel-dot:hover  { background: rgba(255,255,255,0.4); }

/* ── Section ─────────────────────────────────────────────────────────── */
.section { padding: var(--section-pad-y) 0; }
.section:first-of-type { padding-top: calc(var(--section-pad-y) + 1rem); }

.section-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.section-title { font-size: var(--text-3xl); font-weight: 900; color: #fff; line-height: 1.15; letter-spacing: 0; }
.live-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--highlight);
  background: rgba(255,107,107,0.1);
  border-radius: 9999px;
  padding: 0.125rem 0.75rem;
  margin-left: 0.25rem;
}

/* ── Today's Match Cards ─────────────────────────────────────────────── */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
@media(min-width:640px)  { .matches-grid { gap: 1.5rem; } }
@media(min-width:1024px) { .matches-grid { gap: 2rem; } }

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.match-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.2);
}
.match-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, #3B82F6, #8B5CF6, transparent);
}

.card-header { display: flex; align-items: center; justify-content: space-between; }
.card-live-badge { display: flex; align-items: center; gap: 0.5rem; }
.card-live-text { font-size: var(--text-xs); font-weight: 700; color: var(--highlight); text-transform: uppercase; letter-spacing: 0.1em; }
.card-minute { display: flex; align-items: center; gap: 0.25rem; font-size: var(--text-xs); color: var(--text-secondary); }

.card-teams { display: flex; flex-direction: column; gap: 0.75rem; }
.card-team { display: flex; align-items: center; justify-content: space-between; }
.card-team-info { display: flex; align-items: center; gap: 0.625rem; }
.card-team-flag { font-size: var(--text-xl); flex-shrink: 0; }
.card-team-name { font-weight: 700; font-size: var(--text-sm); color: #fff; word-break: break-word; text-align: center; min-width: 0; }
.card-team-score { font-size: var(--text-xl); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

.card-divider { display: flex; align-items: center; gap: 0.75rem; }
.card-div-line { flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.card-vs { font-size: var(--text-xs); color: var(--text-secondary); font-weight: 500; padding: 0 0.5rem; }

.card-meta { font-size: var(--text-xs); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Schedule Table ──────────────────────────────────────────────────── */
.schedule-table {
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.schedule-header {
  display: none;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media(min-width:640px) { .schedule-header { display: grid; } }

.schedule-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  transition: background .2s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background: rgba(255,255,255,0.025); }
@media(min-width:640px) {
  .schedule-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
  }
}

.sch-match-col {}
.sch-teams { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sch-team { font-weight: 600; font-size: var(--text-sm); color: #fff; }
.sch-vs { font-size: var(--text-xs); color: var(--text-secondary); background: rgba(255,255,255,0.06); border-radius: 9999px; padding: 0.125rem 0.5rem; font-weight: 500; }
.sch-venue { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; font-size: var(--text-xs); color: var(--text-secondary); }
.sch-mobile-time { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; font-size: var(--text-xs); color: var(--text-secondary); }
@media(min-width:640px) { .sch-mobile-time { display: none; } }

.sch-date-col { display: none; align-items: center; gap: 0.375rem; font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; }
@media(min-width:640px) { .sch-date-col { display: flex; } }
.sch-time-col { display: none; align-items: center; gap: 0.375rem; font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; }
@media(min-width:640px) { .sch-time-col { display: flex; } }

.sch-watch-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  opacity: 0.5;
  cursor: not-allowed;
  font-family: var(--font);
}

/* ── Features ────────────────────────────────────────────────────────── */
.features-header { text-align: center; margin-bottom: 3rem; }
.features-sub { color: var(--text-secondary); font-size: var(--text-base); max-width: 32rem; margin: 0.75rem auto 0; line-height: 1.6; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media(min-width:640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background .3s;
}
.feature-card:hover { background: var(--surface-raised); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-title { font-size: var(--text-base); font-weight: 700; color: #fff; margin-bottom: 0.375rem; line-height: 1.3; }
.feature-desc  { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
}
@media(min-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-heading { font-size: var(--text-xs); font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; max-width: 20rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--text-sm); color: var(--text-secondary); }
.footer-link { transition: color .3s; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media(min-width:640px) { .footer-bottom { flex-direction: row; } }
.footer-copy { font-size: var(--text-xs); color: var(--text-secondary); }

/* ── Watch Page ──────────────────────────────────────────────────────── */
.watch-main {
  min-height: 100vh;
  padding-top: var(--nav-height);
}
@media (max-width: 640px) {
  .watch-main {
    min-height: auto;
  }
}
.watch-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem var(--page-pad-x) 1.25rem;
  position: relative;
}
@media(min-width: 640px) {
  .watch-container { padding: 1.5rem var(--page-pad-x) 2rem; }
}

.watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color .3s;
}
.back-link:hover { color: #fff; }
.match-status { display: flex; align-items: center; gap: 0.5rem; }
.match-status .live-text { font-size: var(--text-xs); font-weight: 700; color: var(--highlight); text-transform: uppercase; letter-spacing: 0.1em; }
.watch-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0;
}

/* ── Video Player ────────────────────────────────────────────────────── */
.player-wrap {
  position: relative;
  background: #000;
  border-radius: 1.5rem;
  /* overflow: hidden removed so mobile menus can pop out of the video area */
  aspect-ratio: 16/9;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  margin-bottom: 1.5rem;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 640px) {
  .player-wrap {
    aspect-ratio: 16/11.5; /* Slightly taller than 16/9 for more control space */
    /* overflow: hidden removed to allow pop-menus to bleed out on mobile */
    border-radius: 1rem;
  }
  .video-el { border-radius: 0; }
  .controls-overlay { border-radius: 0; }
  .controls-scrim { border-radius: 0; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .player-wrap {
    aspect-ratio: 16/7.5; /* Decreased height relative to width for tablets */
  }
}

.player-wrap.theater { max-width: 100%; border-radius: 0; }

.video-el {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 1.5rem;
}
.player-wrap.theater .video-el { border-radius: 0; }

/* Controls overlay */
.controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity .3s, transform .3s;
  pointer-events: none; /* Let clicks pass through to the video */
  border-radius: 1.5rem;
  /* overflow: hidden removed to allow popup menus to extend outside */
}
.player-wrap.theater .controls-overlay { border-radius: 0; }

.controls-overlay.hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.controls-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3) 40%, transparent);
  pointer-events: none;
  border-radius: 1.5rem;
}
.player-wrap.theater .controls-scrim { border-radius: 0; }
.controls-inner {
  position: relative;
  padding: 0.75rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: auto; /* Re-enable clicks for the actual buttons/sliders */
}

/* Progress bar */
.progress-row { display: none !important; }
.time-label { font-size: var(--text-xs); color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; min-width: 2.5rem; }
#time-current { text-align: right; }
.progress-track {
  flex: 1; height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 9999px; overflow: hidden; cursor: pointer;
  transition: height .2s;
}
.progress-row:hover .progress-track { height: 6px; }
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #3B82F6, #8B5CF6);
  border-radius: 9999px;
  width: 100%;
  transition: width .3s;
}

/* Control buttons row */
.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  min-width: 0;
}
.ctrl-cluster {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  min-width: 0;
  flex-shrink: 0;
}
.ctrl-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.8);
  transition: color .2s, background .2s;
  font-family: var(--font);
}
.ctrl-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.ctrl-btn.active { background: rgba(59,130,246,0.2); color: #3B82F6; }
.ctrl-desktop-only { display: none; }
@media(min-width:640px) { .ctrl-desktop-only { display: flex; } }

.ctrl-text-btn {
  display: flex; align-items: center; gap: 0.25rem;
  height: 36px; padding: 0 0.625rem;
  border-radius: 0.75rem;
  font-size: var(--text-xs); font-weight: 700;
  color: rgba(255,255,255,0.8);
  transition: color .2s, background .2s;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.ctrl-text-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.ctrl-text-btn.active { background: rgba(59,130,246,0.2); color: #3B82F6; }

#player-other-matches {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
}

@media(max-width: 480px) {
  .controls-inner { padding: 0.5rem 0.5rem; gap: 0.375rem; }
  .ctrl-row { gap: 0.125rem; }
  .ctrl-cluster { gap: 0; }
  .ctrl-btn { width: 28px; height: 28px; }
  .ctrl-text-btn { height: 28px; padding: 0 0.3rem; font-size: 0.65rem; gap: 0.15rem; }
  .ctrl-text-btn svg { width: 11px; height: 11px; }
  .volume-wrap { display: none; }
  /* Hide speed and PiP; keep quality and source visible */
  #speed-wrap, #player-pip { display: none !important; }
  #quality-wrap, #source-wrap { display: flex !important; }
  .go-live-chip {
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    gap: 0.2rem;
  }
  .go-live-chip svg { width: 10px; height: 10px; }
  /* Progress row tighter */
  .progress-row { gap: 0.375rem; }
  .time-label { font-size: 0.6rem; min-width: 1.8rem; }
}

/* Volume slider */
.volume-wrap { display: flex; align-items: center; gap: 0.25rem; }
.vol-slider-wrap { overflow: hidden; width: 0; opacity: 0; transition: width .3s, opacity .3s; }
.volume-wrap:hover .vol-slider-wrap { width: 80px; opacity: 1; }
.vol-slider { width: 80px; accent-color: #3B82F6; cursor: pointer; }

/* Go live chip */
.go-live-chip {
  display: flex;
  align-items: center; gap: 0.375rem;
  margin-left: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(255,107,107,0.15);
  border: 1px solid rgba(255,107,107,0.25);
  color: var(--highlight);
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: background .2s;
  font-family: var(--font);
}
.go-live-chip:hover { background: rgba(255,107,107,0.25); }

/* Pop menus — contained within overflow:hidden controls-overlay */
.pop-wrap { position: relative; }
.pop-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  max-width: 85vw;
  max-height: min(250px, 45vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: rgba(17,24,39,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.875rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 20;
  transform-origin: bottom right;
  animation: fadeIn .15s ease-out;
}
@media(max-width: 480px) {
  .pop-menu {
    min-width: 130px;
    bottom: calc(100% + 0.35rem);
    right: 0;
    left: auto;
    max-height: min(200px, 40vh);
  }
  /* Leftmost source menu: anchor to left to avoid clipping */
  #source-menu { right: auto; left: 0; }
}
.pop-heading { font-size: var(--text-xs); color: rgba(255,255,255,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem 0.75rem 0.375rem; }
.pop-item {
  display: block; width: 100%;
  text-align: left;
  padding: 0.5rem 0.875rem;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  transition: color .15s, background .15s;
  font-family: var(--font);
  border-radius: 0;
  white-space: nowrap;
}
.pop-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.pop-item.active { color: #3B82F6; font-weight: 700; background: rgba(59,130,246,0.1); }

/* Big center play button — only rendered when paused, so pointer-events always active */
.big-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
  background: transparent;
  border: none;
}
.big-play-btn > svg {
  width: 72px; height: 72px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.big-play-btn:hover > svg {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 8px rgba(255,255,255,0.06);
}

/* Demo badge */
.demo-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  padding: 0.25rem 0.5rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Buffering spinner */
.buffering-spinner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.spinner {
  width: 64px; height: 64px;
  border: 4px solid rgba(255,255,255,0.4);
  border-top-color: #60A5FA;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(59,130,246,0.5);
}

/* Ad overlay */
.promo-overlay {
  position: absolute; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0A0F1F;
  animation: fadeIn .3s ease-out;
}
.promo-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #111827, #1E293B);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
}
.promo-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-4xl);
}
.promo-label { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; }
.promo-hint  { font-size: var(--text-xs); color: rgba(203,213,225,0.5); text-align: center; max-width: 20rem; }
.promo-countdown {
  position: absolute; bottom: 1rem; right: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm); font-weight: 600; color: #fff;
  pointer-events: none;
}
.promo-type-label { font-size: var(--text-xs); color: var(--text-secondary); }
.promo-top-label {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary);
  pointer-events: none;
}

/* ── Match Info Card ─────────────────────────────────────────────────── */
.match-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.25rem;
}
@media(min-width:640px) { .match-info-card { padding: 1.5rem; } }

.info-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.info-live-badge { display: flex; align-items: center; gap: 0.5rem; }
.info-live-text { font-size: var(--text-xs); font-weight: 700; color: var(--highlight); text-transform: uppercase; letter-spacing: 0.1em; }
.info-upcoming { font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; }
.info-group { font-size: var(--text-xs); color: var(--text-secondary); background: rgba(255,255,255,0.06); border-radius: 9999px; padding: 0.125rem 0.75rem; font-weight: 500; }
.info-minute { font-size: var(--text-xs); color: var(--text-secondary); margin-left: auto; font-variant-numeric: tabular-nums; font-family: monospace; }

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; flex: 1; }
.sb-flag { font-size: var(--text-5xl); }
.sb-name { font-weight: 700; color: #fff; font-size: var(--text-base); text-align: center; }
.sb-short { font-size: var(--text-xs); color: var(--text-secondary); font-weight: 500; }
.sb-score { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.sb-score-row { display: flex; align-items: center; gap: 0.75rem; }
.sb-num { font-size: var(--text-5xl); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.sb-sep { font-size: var(--text-2xl); color: var(--text-secondary); font-weight: 300; }
.sb-vs { font-size: var(--text-2xl); font-weight: 700; color: var(--text-secondary); }
.sb-min-chip { font-size: var(--text-xs); color: var(--text-secondary); background: rgba(255,255,255,0.06); border-radius: 9999px; padding: 0.125rem 0.5rem; font-variant-numeric: tabular-nums; }

.info-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media(min-width:640px) { .info-details { grid-template-columns: repeat(3, 1fr); } }

.info-detail { display: flex; align-items: center; gap: 0.625rem; }
.info-detail-icon {
  width: 32px; height: 32px;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-detail-label { font-size: var(--text-xs); color: var(--text-secondary); }
.info-detail-value { font-size: var(--text-sm); font-weight: 600; color: #fff; }


/* ── Auto-Status Engine Styles ───────────────────────────────────────── */

/* Badge shown when match is LIVE NOW */
.status-live-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.35);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 800;
  color: #ff6b6b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  gap: 0.375rem;
  animation: liveNowPulse 2s ease-in-out infinite;
}

/* Badge shown when match is upcoming */
.status-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Subtle glow on live match cards */
.card-live-glow {
  border-color: rgba(255, 68, 68, 0.3) !important;
  box-shadow: 0 0 0 1px rgba(255,68,68,0.15), 0 8px 32px rgba(255,68,68,0.1);
}
.card-live-glow .match-card-accent {
  background: linear-gradient(to right, #ff4444, #ff6b6b, transparent) !important;
}

/* Active watch button in schedule table when match is LIVE */
.sch-watch-btn.sch-watch-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  opacity: 1;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(255,68,68,0.4);
}
.sch-watch-btn.sch-watch-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,68,68,0.5);
}

/* Pulsing animation for LIVE NOW badge */
@keyframes liveNowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(255,68,68,0); }
}

/* Transition for card removal */
@keyframes cardFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-16px) scale(0.97); }
}

/* ── Upcoming card preview button ──────────────────────────────────────── */
.btn-upcoming-preview {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  opacity: 0.75;
}
.btn-upcoming-preview:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  opacity: 1;
  border-color: rgba(255,255,255,0.2);
}

/* ── Schedule preview button (upcoming) ────────────────────────────────── */
.sch-watch-btn.sch-watch-preview {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity .2s, border-color .2s;
}
.sch-watch-btn.sch-watch-preview:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.25);
}

/* ── "Not Live Yet" Modal (index.html) ─────────────────────────────────── */
#nlm-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
#nlm-modal.nlm-open {
  opacity: 1;
  pointer-events: auto;
}
.nlm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nlm-card {
  position: relative;
  background: linear-gradient(160deg, rgba(15,23,42,0.98), rgba(10,15,31,0.99));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
#nlm-modal.nlm-open .nlm-card {
  transform: translateY(0) scale(1);
}
.nlm-x {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer;
  transition: background .2s, color .2s;
}
.nlm-x:hover { background: rgba(255,255,255,0.14); color: #fff; }
.nlm-badge-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.nlm-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25);
  color: #60a5fa; border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.nlm-group { font-size: 0.75rem; color: var(--text-secondary); }
.nlm-teams {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.nlm-team { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; }
.nlm-flag { font-size: 2.8rem; line-height: 1; }
.nlm-name { font-size: 0.85rem; font-weight: 700; color: #fff; text-align: center; }
.nlm-vs {
  font-size: 0.8rem; font-weight: 900; color: var(--text-secondary);
  background: rgba(255,255,255,0.05); padding: 0.35rem 0.9rem; border-radius: 999px;
  flex-shrink: 0;
}
.nlm-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 1.25rem; }
.nlm-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.nlm-info-item { display: flex; flex-direction: column; gap: 0.25rem; }
.nlm-info-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-secondary); font-weight: 600; }
.nlm-info-value { font-size: 0.82rem; color: #fff; font-weight: 600; }
.nlm-countdown { font-size: 1.1rem; font-weight: 800; color: #60a5fa; }
.nlm-hint { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.nlm-close-btn {
  display: block; width: 100%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px; padding: 0.75rem 1rem;
  color: var(--text-secondary); font-family: var(--font); font-size: var(--text-sm);
  cursor: pointer; transition: background .2s, color .2s;
}
.nlm-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media(max-width: 480px) {
  .nlm-info-grid { grid-template-columns: 1fr 1fr; }
  .nlm-card { padding: 1.5rem 1.25rem; }
}

/* ── Watch page "Not Live Yet" full screen (watch.html) ─────────────────── */
.watch-not-live-screen {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem 3rem;
  animation: fadeIn .4s ease;
}
.wnl-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 500px; width: 100%;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem; padding: 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.wnl-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25);
  color: #60a5fa; border-radius: 9999px; padding: 0.3rem 0.85rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
}
.wnl-teams {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; width: 100%; margin-bottom: 2rem;
}
.wnl-team { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; }
.wnl-flag { font-size: 3.5rem; line-height: 1; }
.wnl-name { font-size: 1rem; font-weight: 700; color: #fff; }
.wnl-vs {
  font-size: 0.85rem; font-weight: 900; color: var(--text-secondary);
  background: rgba(255,255,255,0.05); padding: 0.4rem 1.1rem; border-radius: 999px; flex-shrink: 0;
}
.wnl-countdown-box {
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 1rem; padding: 1rem 2rem; margin-bottom: 1.25rem;
  min-width: 180px;
}
.wnl-countdown-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 0.25rem; }
.wnl-countdown-value { font-size: 2rem; font-weight: 900; color: #60a5fa; }
.wnl-details {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.4rem; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 1rem;
}
.wnl-dot { opacity: 0.35; }
.wnl-hint strong { color: #fff; }

/* ── Watch Page Ad Banner (Mobile/Tablet) ────────────────────────────── */
.watch-ad-banner, .home-ad-banner {
  display: block;
  width: 100%;
  text-align: center;
  margin: 1.5rem auto 0;
}

/* Hide banner on desktop */
@media(min-width: 1024px) {
  .watch-ad-banner {
    display: none !important;
  }
}

/* Hide button on mobile/tablet */
@media(max-width: 1023px) {
  .watch-view-all-btn {
    display: none !important;
  }
}

/* ── Mobile ad unit: 1:1 square scaler (≤767px) ─────────────────────── */

/* Show mobile unit only on mobile, hide on tablet+ */
.watch-ad-mobile-unit { display: block; }
.watch-ad-tablet-unit { display: none;  }

@media(min-width: 768px) {
  .watch-ad-mobile-unit { display: none;  }
  .watch-ad-tablet-unit { display: block; }
}

/* ── Mobile ad unit: 1:1 square scaler (≤767px) ─────────────────────── */

/* 1:1 outer shell — caps at 300px so it's not full-screen wide */
@media(max-width: 767px) {
  .watch-ad-scaler {
    position: relative;
    width: min(300px, 88%);   /* smaller than 100% — feels compact */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
    margin: 0 auto;           /* center it */
    display: flex;            /* Use flexbox for bulletproof centering */
    justify-content: center;
    align-items: center;
  }

  .watch-ad-inner {
    /* Flex child, scales naturally from center without position hacks */
    flex-shrink: 0;
  }
}

/* ── Tablet ad unit: 320×50 centered banner (768px–1023px) ──────────── */
@media(min-width: 768px) and (max-width: 1023px) {
  .watch-ad-tablet-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px; /* Exactly matches the visual 100px height of the scaled ad */
    margin-top: -1rem; /* Pull up slightly to reduce combined excessive gaps */
  }

  /* Explicit wrapper to constrain the ad to 320x50, then scaled up 2x */
  .watch-ad-tablet-inner {
    width: 320px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: scale(2);
    transform-origin: center center;
  }

  /* Ensure the injected iframe itself renders at full 320×50 */
  .watch-ad-tablet-inner iframe {
    width: 320px !important;
    height: 50px !important;
    min-width: 320px !important;
    min-height: 50px !important;
    max-width: 320px !important;
    max-height: 50px !important;
    border: none;
    display: block;
  }
}




/* ── Watch Page — Desktop Side Skyscraper Banners (160×600) ──────────── */

/* We use position: absolute based on .watch-container so the player layout
   and size is completely unaffected. */
.watch-side-banner {
  display: none; /* hidden by default on mobile/tablet */
  position: absolute;
  top: 1rem;     /* padding from top of container */
  bottom: 0;     /* stretch down to container bottom */
  width: 160px;
  pointer-events: none; /* absolute container shouldn't block clicks */
}

/* Show only when screen has room for: 900px player + 160px*2 banners + 24px*2 gaps = 1268px minimum */
@media (min-width: 1280px) {
  .watch-side-banner {
    display: block;
  }
}

.watch-side-banner--left {
  /* position to the left of the container */
  left: calc(-160px - 1.5rem);
}

.watch-side-banner--right {
  /* position to the right of the container */
  right: calc(-160px - 1.5rem);
}

/* The visible sticky banner itself */
.side-banner-inner {
  position: sticky;
  top: calc(var(--nav-height, 80px) + 1rem); /* follow user scrolling */
  width: 160px;
  height: 600px;
  display: block;
  pointer-events: auto; /* re-enable clicks for the ad slot itself */
}



