/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --orange:        #E8420E;
  --orange-light:  #FF5A28;
  --orange-dark:   #B83208;
  --blue:          #1A5BE8;
  --blue-light:    #3A78FF;
  --blue-dark:     #1040B8;
  --dark:          #111111;
  --mid:           #1C1C1C;
  --card:          #242424;
  --raised:        #2E2E2E;
  --white:         #FFFFFF;
  --gray:          #999999;
  --gray-light:    #CCCCCC;
  --success:       #22C55E;
  --border:        rgba(255,255,255,0.08);
  --border-mid:    rgba(255,255,255,0.16);
  --font-display:  'Franklin Gothic Demi', 'Impact', Arial Narrow, sans-serif;
  --font-ui:       'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:     'Barlow', 'Arial', sans-serif;
  --radius:        2px;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ────────────────────────────────────────────────── */
nav {
  background: var(--mid);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 32px;
  flex-shrink: 0;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 32px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 34px; width: auto; display: block; }

.nav-links { display: flex; height: 100%; }
.nav-link {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-link.active { color: var(--white); border-bottom-color: var(--orange); }
.nav-link:hover  { color: var(--white); }

.nav-spacer { flex: 1; }

.nav-live-badge {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-map-btn {
  margin-left: 10px;
  background: var(--blue);
  border: none;
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 16px;
  height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-map-btn:hover { background: var(--blue-light); }

.nav-yt-link {
  margin-left: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-light);
  text-decoration: none;
  padding: 0 14px;
  height: 34px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.nav-yt-link:hover { color: #FF4500; border-color: #FF4500; }

/* ── Live dot ──────────────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: currentColor;
  border-radius: 50%;
  animation: livePulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin: 24px 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  height: 140px;
  background: linear-gradient(135deg, #1A5BE8 0%, #E8148C 50%, #E8420E 100%);
  flex-shrink: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}
.hero-btn {
  background: var(--orange);
  border: none;
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 18px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition: background 0.15s;
}
.hero-btn:hover { background: var(--orange-light); }

/* ── Main ──────────────────────────────────────────────────── */
main {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main section { margin-bottom: 32px; }
main section:last-child { margin-bottom: 0; }

/* ── Section header ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section-sub {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-spacer { flex: 1; }
.section-action {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.section-action:hover { text-decoration: underline; }

/* ── Video grid ────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── Video card ────────────────────────────────────────────── */
.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  border-color: var(--border-mid);
}

/* Thumbnail */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.video-card:hover .card-thumb-img { transform: scale(1.03); }

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%);
}

/* Play overlay */
.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-card:hover .card-play { opacity: 1; }
.card-play-icon {
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-play-icon::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--white);
  margin-left: 4px;
}

/* Badge positions */
.badges-tl { position: absolute; top: 8px; left: 8px; z-index: 2; }
.badges-tr { position: absolute; top: 8px; right: 8px; z-index: 2; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius);
}
.badge-live     { background: var(--orange);  color: var(--white); }
.badge-upcoming { background: var(--blue);    color: var(--white); }
.badge-replay   { background: #333;           color: var(--gray-light); }
.badge-hbs      { background: var(--orange);  color: var(--white); }
.badge-ext      { background: #444;           color: var(--gray-light); }

/* ── Card info ─────────────────────────────────────────────── */
.card-info {
  padding: 10px 12px 4px;
  flex: 1;
}
.card-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card button ───────────────────────────────────────────── */
.card-btn-wrap { padding: 8px 12px 12px; }
.card-btn {
  display: block;
  width: 100%;
  padding: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter 0.15s;
  text-decoration: none;
  color: var(--white);
}
.card-btn:hover { filter: brightness(1.15); }

.card-btn-live {
  background: linear-gradient(135deg, #cc0000, #E8420E);
  animation: pulseBg 1.8s ease-in-out infinite;
}
.card-btn-upcoming {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
}
.card-btn-replay {
  background: #2e2e2e;
  color: var(--gray-light);
}

@keyframes pulseBg {
  0%, 100% { opacity: 1;    box-shadow: 0 0 0 0   rgba(232,66,14,0.5); }
  50%       { opacity: 0.88; box-shadow: 0 0 0 5px rgba(232,66,14,0);   }
}

/* ── Skeleton loaders ──────────────────────────────────────── */
.card-skeleton {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  animation: shimmer 1.6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.card-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmerSlide 1.6s ease-in-out infinite;
}
@keyframes shimmerSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%);  }
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--mid);
  border-top: 1px solid var(--border);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-links { display: flex; gap: 20px; }
.footer-link {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--white); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 16px; }
  .nav-link { padding: 0 10px; font-size: 13px; }
  .hero { margin: 16px 16px 0; }
  main { padding: 20px 16px; }
  footer { padding: 16px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }
  .nav-logo { margin-right: auto; }
  .nav-links {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 2px;
  }
  .nav-link { height: 40px; padding: 0 10px; font-size: 13px; }
  .nav-spacer { display: none; }
  .nav-map-btn,
  .nav-yt-link { font-size: 11px; padding: 0 10px; height: 30px; }
  .hero { margin: 12px 12px 0; height: 120px; }
  .hero-title { font-size: 20px; }
  main { padding: 16px 12px; }
  .video-grid { grid-template-columns: 1fr; }
}
