:root {
  --brand: #478ac9;
  --bg: #0d0d0d;
  --bg-alt: #161616;
  --text: #f2f2f2;
  --text-muted: #a0a0a0;
  --danger: #dc3545;
  --live: #e0b23a;
  --header-h: 104px;
  --bar-h: 64px;
}

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

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
}

a { color: inherit; text-decoration: none; }

/* Header — transparent by default so the hero's own background shows through
   behind it; gains a solid blurred backdrop once the page is scrolled so nav
   stays legible over whatever content sits underneath. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, top 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.player-bar-active .site-header { top: var(--bar-h); }
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.site-header__logo img { height: 40px; }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-nav a { color: #fff; }
.site-nav a:hover, .site-nav a.is-active { color: #0d0d0d; }

/* Social dropdown */
.site-nav__dropdown { position: relative; }
.site-nav__dropdown-trigger {
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.site-nav__dropdown-trigger:hover { color: #0d0d0d; }
.site-nav__caret { font-size: 0.75em; }
.site-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  /* Padding (not a margin/offset) keeps this element's hoverable box touching the
     trigger button — no dead zone for the mouse to lose :hover crossing the gap. */
  padding-top: 10px;
  min-width: 160px;
  z-index: 20;
}
.site-nav__dropdown:hover .site-nav__dropdown-menu { display: block; }
.site-nav__dropdown-menu-inner {
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.site-nav__dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #ccc;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.site-nav__dropdown-menu a:hover { color: var(--brand); background: #242424; }

/* Hero / sections */
/* The header is fixed with no flow height, so the page's content wrapper
   (the part the router swaps on navigation) reserves the space itself. */
.site-header + #page-content { padding-top: var(--header-h); transition: padding-top 0.3s ease; }
body.player-bar-active .site-header + #page-content { padding-top: calc(var(--header-h) + var(--bar-h)); }
/* The home hero supplies its own background behind the transparent header
   (see .hero--radio below), so its offset lives on the hero itself instead
   — otherwise the reserved gap would show plain body background instead of
   the hero's photo continuing up underneath the nav. */
.site-header + #page-content[data-page="home"] { padding-top: 0; }
body.player-bar-active .site-header + #page-content[data-page="home"] { padding-top: 0; }

.hero--radio {
  background:
    linear-gradient(180deg, rgba(6, 6, 10, 0.68) 0%, rgba(6, 6, 10, 0.32) 42%, rgba(13, 13, 13, 0.82) 80%, var(--bg) 100%),
    url('/images/radio-bg.jpg');
  background-position: center, 50% 30%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  min-height: 600px;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: padding-top 0.3s ease;
}
body.player-bar-active .hero--radio { padding-top: calc(var(--header-h) + var(--bar-h)); }
.hero-radio__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 0 20px;
  transition: opacity 0.2s linear, transform 0.2s linear;
}
.hero-radio__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--live);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-radio__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: stg-blink 1.2s infinite; }

/* Kinetic headline — each word gets its own size/weight/font, staggered into
   view on load (the one deliberate motion moment for this page). */
.hero-radio__headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em 0.5em;
  max-width: 780px;
  margin: 0;
  color: #fff;
}
.kinetic-word {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero--radio.is-ready .kinetic-word { opacity: 1; transform: translateY(0); }
.kinetic-word:nth-child(1) { transition-delay: 0.05s; }
.kinetic-word:nth-child(2) { transition-delay: 0.16s; }
.kinetic-word:nth-child(3) { transition-delay: 0.27s; }
.kinetic-word:nth-child(4) { transition-delay: 0.38s; }
.kinetic-word:nth-child(5) { transition-delay: 0.49s; }
.kinetic-word--xl { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: clamp(2.6rem, 9vw, 5rem); letter-spacing: -0.01em; text-transform: uppercase; }
.kinetic-word--serif { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 3.4vw, 2rem); color: #d8d8d8; }
.kinetic-word--sm { font-family: 'Roboto Condensed', sans-serif; font-weight: 400; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.kinetic-word--accent { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: clamp(2rem, 5.5vw, 3.1rem); color: var(--live); }

.hero-radio__play {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b2a9e, var(--brand));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(71, 138, 201, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-radio__play:hover { transform: scale(1.06); box-shadow: 0 14px 40px rgba(71, 138, 201, 0.55); }
.hero-radio__icon { fill: #fff; }
.hero-radio__play svg { width: 30px; height: 30px; }
.hero-radio__spinner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: radio-spin 0.8s linear infinite;
}
@keyframes radio-spin { to { transform: rotate(360deg); } }

.section { padding: 48px 16px; max-width: 1100px; margin: 0 auto; }
.section--dark { background: var(--bg-alt); max-width: none; }
.section--dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section--center { text-align: center; }
.section--center-content .section__title { text-align: center; }
.section--article { max-width: 720px; line-height: 1.7; }
.section__title { font-family: 'Roboto Condensed', sans-serif; margin-bottom: 20px; }
.page-title { font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: 1px; }
.back-link { color: var(--brand); display: inline-block; margin-bottom: 16px; }

.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card-grid--center {
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
}
.section__cta { text-align: center; margin-top: 28px; }

/* Scroll reveal — each section fades/slides into place the first time it
   enters the viewport (see /js/scroll-reveal.js). */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Section background photography — a dark gradient keeps text legible over
   whatever image is set inline per-section. */
.section--media-bg { position: relative; background-size: cover; background-position: center; }
.section--media-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.8) 45%, rgba(13, 13, 13, 0.94) 100%);
}
.section--media-bg > * { position: relative; z-index: 1; }
.card {
  background: #1b1b1b;
  border-radius: 10px;
  padding: 16px;
  display: block;
  position: relative;
}
.card h4 { margin: 0 0 6px; }
.card p { margin: 0 0 8px; color: var(--text-muted); font-size: 0.9rem; }
.card__cover { width: 100%; border-radius: 6px; margin-bottom: 10px; aspect-ratio: 16/9; object-fit: cover; }
.card__cover--square { aspect-ratio: 1/1; }
.card__video { width: 100%; border-radius: 6px; margin-top: 8px; }
.card__author { color: var(--text-muted); font-size: 0.8rem; }

/* Release cover — play button + progress bar overlaid on the cover art */
.release-cover { position: relative; margin-bottom: 10px; border-radius: 6px; overflow: hidden; }
.release-cover .card__cover { margin-bottom: 0; display: block; }
.release-cover__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.55);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.release-cover__play:hover { background: rgba(13, 13, 13, 0.75); transform: translate(-50%, -50%) scale(1.06); }
.release-cover__icon { fill: #fff; }
.release-cover__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #3a3a3a, #6b6b6b);
}
.release-cover__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5b2a9e, #8e4fd1);
}
.badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--brand); color: #fff;
  font-size: 0.7rem; padding: 3px 8px; border-radius: 4px;
}
.empty-state { color: var(--text-muted); }

.article__meta { color: var(--text-muted); margin-top: -8px; }
.article__body { white-space: pre-wrap; }

/* TV player */
.tv-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
#stgVideo { width: 100%; height: 100%; display: block; }
.stg-live-badge {
  position: absolute; top: 14px; left: 14px; z-index: 10;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(220,53,69,.9); border-radius: 4px;
  padding: 4px 12px; font-size: 12px; font-weight: 700; color: #fff;
}
.stg-live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: stg-blink 1.2s infinite; }
@keyframes stg-blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.stg-offline {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; background: #000;
}
.stg-offline__badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--danger); border-radius: 8px; padding: 12px 28px;
  color: var(--danger); font-weight: 800; letter-spacing: 3px;
}
.stg-offline__badge .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--danger); }

/* Footer */
.site-footer { background: #000; border-top: 1px solid #222; margin-top: 40px; }
.site-footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 32px 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 220px)); gap: 24px;
  justify-content: center; text-align: center;
}
.site-footer__logo { height: 32px; margin-bottom: 8px; }
.site-footer__col h4 { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.site-footer__col a { display: block; color: #ccc; margin-bottom: 6px; font-size: 0.9rem; }
.site-footer__bottom { text-align: center; padding: 16px; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid #1a1a1a; }
.site-footer__social { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 0 16px 24px; }
.site-footer__social a { display: inline-flex; width: 22px; height: 22px; opacity: 0.85; transition: opacity 0.2s ease; }
.site-footer__social a:hover { opacity: 1; }
.site-footer__social svg { width: 100%; height: 100%; fill: #fff; }

/* Top player bar — shared "now playing" strip for radio + music, see
   /js/player-bar.js. Sits above the header and pushes it down while active. */
.player-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.player-bar.is-active { transform: translateY(0); }
.player-bar__art { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.player-bar__info { min-width: 0; flex: 1 1 auto; }
.player-bar__title { color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__subtitle { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); border: none; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.player-bar__icon { fill: #fff; }
.player-bar__stop {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); border: none; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.player-bar__stop:hover { background: rgba(255, 255, 255, 0.2); }
.player-bar__close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; flex-shrink: 0;
}
.player-bar__close:hover { color: #fff; }
.player-bar__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #3a3a3a, #6b6b6b);
}
.player-bar__progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #5b2a9e, #8e4fd1); }

/* Floating video — keeps a video playing (TV live stream, or a video card)
   visible in a small corner window while navigating to another section. */
.floating-video {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 12px;
  z-index: 65;
  width: 260px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, top 0.3s ease;
}
.floating-video.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
body.player-bar-active .floating-video { top: calc(var(--header-h) + var(--bar-h) + 12px); }
.floating-video__slot { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.floating-video__slot video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.floating-video__label {
  padding: 6px 10px; font-size: 0.78rem; color: #fff; background: rgba(0, 0, 0, 0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.floating-video__close {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); border: none; color: #fff;
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.floating-video__close:hover { background: rgba(0, 0, 0, 0.8); }
@media (max-width: 480px) { .floating-video { width: 170px; left: 8px; } }
