*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --wc-red: #c8102e;
  --wc-blue: #003da5;
  --wc-gold: #f5a623;
  --nv-red: #e8001c;
  --dark: #09090f;
  --mid: #0f1520;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--dark);
  color: #f8f8f6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(9, 9, 15, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-back:hover {
  color: #fff;
}

.nav-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pill {
  background: var(--nv-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  animation: liveblink 2s ease-in-out infinite;
}

@keyframes liveblink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* ── PLAYER WRAPPER ── */
.player-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
}

.match-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.match-label .badge {
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.35);
  color: var(--wc-red);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}

.match-label .match-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

.match-label .powered {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.match-label .powered a {
  color: var(--nv-red);
  text-decoration: none;
  font-weight: 700;
}

/* ── VIDEO CONTAINER ── */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

/* YouTube iframe */
#yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.5s;
}

#yt-frame.visible {
  opacity: 1;
}

/* ── AD OVERLAY ── */
#ad-overlay {
  position: absolute;
  inset: 0;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.6s;
}

#ad-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* NepaliVlog animated ad card */
.ad-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0010 0%, #160010 50%, #0a0010 100%);
}

/* Animated gradient burst */
.ad-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 50% at 50% 50%,
    rgba(232, 0, 28, 0.25) 0%,
    transparent 70%
  );
  animation: burstPulse 2s ease-in-out infinite;
}

@keyframes burstPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

/* Pitch lines inside ad */
.ad-pitch {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
}

.ad-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.ad-tagline {
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.ad-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  letter-spacing: 3px;
  line-height: 1;
  animation: logoIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logoIn {
  from {
    transform: scale(0.7) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.ad-logo .nv-red {
  color: var(--nv-red);
}

.ad-logo .nv-white {
  color: #fff;
}

.ad-sub {
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  letter-spacing: 1px;
}

.ad-sub strong {
  color: rgba(255, 255, 255, 0.9);
}

.ad-wc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--wc-gold);
}

/* Skip / countdown */
.ad-skip-row {
  position: absolute;
  bottom: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

.ad-timer {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

#skip-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: default;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
}

#skip-btn.ready {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

#skip-btn.ready:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* NV logo watermark on video */
.nv-watermark {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 9999 !important;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  padding: 5px 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.nv-watermark.visible {
  opacity: 1;
}

.nv-watermark span {
  color: var(--nv-red);
}

.nv-watermark a {
  text-decoration: none;
  color: inherit;
}

/* ── BELOW PLAYER ── */
.meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.match-meta h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 6px;
}

.match-meta p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.nv-subscribe {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sub-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nv-red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 11px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.sub-btn:hover {
  background: #c00017;
  transform: translateY(-1px);
}

/* ── UPCOMING MATCHES ── */
.upcoming {
  padding: 0 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.upcoming-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 20px;
  transition: border-color 0.2s;
}

.match-row:hover {
  border-color: rgba(200, 16, 46, 0.3);
}

.team-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.team-name.right {
  text-align: right;
}

.vs-badge {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 4px;
}

.match-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wc-gold);
  letter-spacing: 1px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 600px) {
  nav {
    padding: 12px 16px;
  }

  .player-section,
  .upcoming {
    padding-left: 14px;
    padding-right: 14px;
  }

  .match-row {
    grid-template-columns: 1fr auto 1fr;
  }

  .match-time {
    display: none;
  }

  .nv-subscribe {
    align-items: flex-start;
  }
}
