:root {
  --bg: #020910;
  --panel: rgba(4, 18, 27, .78);
  --panel-strong: rgba(3, 13, 21, .92);
  --lime: #00ff88;
  --cyan: #00e5ff;
  --gold: #ffd36a;
  --orange: #ff8a2a;
  --text: #eafff7;
  --muted: #9cc5c7;
  --danger: #ff477e;
  --radius: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% 5%, #063b4c 0%, var(--bg) 52%, #000 100%);
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.kirmes-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.sky-glow {
  position: absolute;
  width: 44vmax;
  height: 44vmax;
  border-radius: 50%;
  filter: blur(55px);
  opacity: .26;
  animation: floatGlow 9s ease-in-out infinite alternate;
}
.glow-a { left: -12vmax; top: 5vmax; background: #00e5ff; }
.glow-b { right: -10vmax; bottom: -8vmax; background: #ff8a2a; animation-delay: -3s; }

.ferris-wheel {
  position: absolute;
  right: 7vw;
  top: 12vh;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid rgba(0, 229, 255, .55);
  box-shadow: 0 0 40px rgba(0, 229, 255, .35), inset 0 0 35px rgba(255, 211, 106, .16);
  opacity: .38;
  animation: wheelSpin 26s linear infinite;
}
.ferris-wheel span,
.ferris-wheel i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 229, 255, .8), transparent);
  transform-origin: top center;
}
.ferris-wheel span:nth-child(1) { transform: rotate(0deg); }
.ferris-wheel span:nth-child(2) { transform: rotate(45deg); }
.ferris-wheel span:nth-child(3) { transform: rotate(90deg); }
.ferris-wheel span:nth-child(4) { transform: rotate(135deg); }
.ferris-wheel span:nth-child(5) { transform: rotate(180deg); }
.ferris-wheel i { transform: rotate(225deg); background: linear-gradient(to bottom, rgba(255, 211, 106, .9), transparent); }
.ferris-wheel::before {
  content: "";
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 35px var(--gold), 0 0 70px var(--orange);
}
.ferris-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 42%;
  height: 48%;
  border-left: 3px solid rgba(255, 211, 106, .55);
  border-right: 3px solid rgba(255, 211, 106, .55);
  transform: translateX(-50%);
}

.light-string {
  position: absolute;
  width: 150vw;
  height: 2px;
  left: -20vw;
  background: repeating-linear-gradient(90deg, transparent 0 42px, rgba(0,255,136,.9) 43px 48px, transparent 49px 75px, rgba(255,211,106,.9) 76px 81px);
  filter: drop-shadow(0 0 12px rgba(0,255,136,.7));
  opacity: .45;
}
.light-string-a { top: 18vh; transform: rotate(-8deg); }
.light-string-b { bottom: 18vh; transform: rotate(7deg); }
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 9px, rgba(0,255,136,.035) 10px 11px);
  mix-blend-mode: screen;
}
.particles::before, .particles::after {
  content: "";
  position: absolute;
  inset: -30%;
  background-image:
    radial-gradient(circle, rgba(0,255,136,.8) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,211,106,.75) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(0,229,255,.75) 0 1px, transparent 2px);
  background-size: 110px 120px, 160px 150px, 220px 210px;
  animation: drift 28s linear infinite;
}
.particles::after { animation-duration: 38s; opacity: .45; }

.topbar {
  width: min(1180px, calc(100% - 28px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0,255,136,.25);
  border-radius: 999px;
  background: rgba(1, 12, 18, .66);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 35px rgba(0,255,136,.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand strong { display: block; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.brand-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, white 0 7%, var(--lime) 8% 32%, #007f4c 33% 57%, transparent 58%);
  box-shadow: 0 0 24px var(--lime);
}
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav a {
  text-decoration: none;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  transition: .2s ease;
}
.topnav a:hover { color: var(--lime); background: rgba(0,255,136,.08); }

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 38px auto 24px;
}
.hero { text-align: center; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 800;
}
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(0,255,136,.28), 0 0 70px rgba(255,138,42,.25);
}
.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 18px auto 26px;
  max-width: 820px;
}

.signal-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 22px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(0,255,136,.26);
  background: linear-gradient(135deg, rgba(5, 26, 37, .78), rgba(1, 8, 13, .92));
  border-radius: var(--radius);
  box-shadow: 0 18px 70px rgba(0,0,0,.55), 0 0 60px rgba(0,255,136,.09);
  backdrop-filter: blur(18px);
}
.cover-stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 50% 45%, rgba(0,255,136,.13), transparent 32%),
    linear-gradient(145deg, rgba(0,0,0,.4), rgba(0, 229, 255, .08));
}
.cover-stage img,
.media-video {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 90px rgba(0,0,0,.6), 0 0 45px rgba(0,229,255,.12);
}
.media-video { display: none; background: #000; }
.jarvis-ring {
  position: absolute;
  inset: 50%;
  width: min(76vmin, 660px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0,255,136,.34);
  box-shadow: inset 0 0 30px rgba(0,255,136,.12), 0 0 44px rgba(0,255,136,.14);
  animation: ringPulse 2.4s ease-in-out infinite;
}
.jarvis-ring::before,
.jarvis-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  border: 1px dashed rgba(0,229,255,.38);
  animation: wheelSpin 18s linear infinite reverse;
}
.jarvis-ring::after { inset: 23%; border-color: rgba(255,211,106,.4); animation-duration: 12s; }
.corner-badge {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #1b1000;
  font-weight: 1000;
  letter-spacing: .1em;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 0 26px rgba(255,211,106,.5);
}

.player-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 26px;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(1, 9, 14, .74);
  border: 1px solid rgba(0,229,255,.16);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 28px;
}
.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
  animation: blink 1.2s ease-in-out infinite;
}
.track-label {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  color: var(--lime);
  background: rgba(0,255,136,.09);
  border: 1px solid rgba(0,255,136,.24);
  border-radius: 999px;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.track-info h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
}
.equalizer {
  display: flex;
  gap: 7px;
  height: 50px;
  align-items: end;
  margin: 26px 0 10px;
}
.equalizer span {
  width: 11px;
  height: 16px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(to top, var(--lime), var(--cyan), var(--gold));
  opacity: .42;
  transform-origin: bottom;
}
.equalizer.playing span { animation: eq 780ms ease-in-out infinite; opacity: 1; }
.equalizer span:nth-child(2) { animation-delay: -120ms; }
.equalizer span:nth-child(3) { animation-delay: -240ms; }
.equalizer span:nth-child(4) { animation-delay: -80ms; }
.equalizer span:nth-child(5) { animation-delay: -180ms; }
.equalizer span:nth-child(6) { animation-delay: -310ms; }

.progress-wrap {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin: 10px 0 24px;
}
.time-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.seek {
  width: 100%;
  accent-color: var(--lime);
  cursor: pointer;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.control-btn,
.play-btn,
.mode-btn,
.download-btn,
.youtube-btn {
  border: 1px solid rgba(0,255,136,.28);
  color: var(--text);
  background: rgba(0,255,136,.08);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.control-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2rem;
}
.play-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  font-size: 2rem;
  background: radial-gradient(circle, rgba(255,255,255,.95), var(--lime) 34%, #00784b 100%);
  color: #00140d;
  box-shadow: 0 0 38px rgba(0,255,136,.42);
}
.control-btn:hover,
.play-btn:hover,
.mode-btn:hover,
.download-btn:hover,
.youtube-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0,255,136,.7);
  box-shadow: 0 0 26px rgba(0,255,136,.18);
}
.mode-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mode-btn {
  flex: 1 1 90px;
  border-radius: 999px;
  padding: 11px 12px;
  font-weight: 800;
}
.mode-btn.active { background: rgba(0,255,136,.18); color: var(--lime); }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.metric-card,
.cta-panel,
.playlist-panel,
.youtube-panel {
  border: 1px solid rgba(0,255,136,.22);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
}
.metric-card { padding: 20px; text-align: center; }
.metric-card span { color: var(--muted); font-size: .9rem; display: block; margin-bottom: 8px; }
.metric-card strong { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--lime); text-shadow: 0 0 24px rgba(0,255,136,.28); }
.cta-panel,
.playlist-panel,
.youtube-panel { padding: 28px; margin-top: 20px; }
.cta-panel h2,
.playlist-panel h2,
.youtube-panel h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.cta-panel p,
.youtube-panel p { color: var(--muted); line-height: 1.6; max-width: 840px; }
code {
  color: var(--lime);
  background: rgba(0,255,136,.08);
  padding: 2px 6px;
  border-radius: 8px;
}
.download-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.download-btn,
.youtube-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
}
.download-btn { background: linear-gradient(135deg, rgba(0,255,136,.22), rgba(0,229,255,.12)); }
.download-btn.secondary { background: linear-gradient(135deg, rgba(255,211,106,.22), rgba(255,138,42,.12)); border-color: rgba(255,211,106,.32); }
.download-btn.disabled { pointer-events: none; opacity: .42; filter: grayscale(1); }
.pulse { animation: buttonPulse 1.7s ease-in-out infinite; }
.playlist-panel { display: grid; grid-template-columns: .45fr 1fr; gap: 18px; align-items: start; }
.playlist { display: grid; gap: 10px; }
.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  border-radius: 16px;
  cursor: pointer;
}
.playlist-item.active { border-color: var(--lime); box-shadow: 0 0 22px rgba(0,255,136,.13); }
.playlist-item span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.playlist-item strong { display: block; }
.youtube-panel {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,71,126,.16), rgba(0,255,136,.08));
}
.youtube-btn { margin-top: 8px; background: rgba(255,71,126,.2); border-color: rgba(255,71,126,.4); }
.footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: .9rem;
}
.footer a { color: var(--lime); text-decoration: none; }

@keyframes floatGlow { to { transform: translate3d(5vw, 3vh, 0) scale(1.08); } }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
@keyframes ringPulse { 50% { transform: translate(-50%, -50%) scale(1.04); opacity: .65; } }
@keyframes drift { to { transform: translate3d(12vw, 14vh, 0); } }
@keyframes blink { 50% { opacity: .35; transform: scale(.78); } }
@keyframes eq { 0%, 100% { height: 12px; } 50% { height: 48px; } }
@keyframes buttonPulse { 50% { box-shadow: 0 0 26px rgba(0,255,136,.35); } }

@media (max-width: 920px) {
  .signal-card { grid-template-columns: 1fr; }
  .cover-stage { min-height: 330px; }
  .player-panel { text-align: center; }
  .status-row, .equalizer { justify-content: center; }
  .playlist-panel { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { border-radius: 24px; align-items: flex-start; }
  .topnav { display: none; }
  .page-shell { margin-top: 24px; }
  .signal-card { padding: 10px; }
  .cover-stage { min-height: 260px; }
  .player-panel { padding: 18px; }
  .progress-wrap { grid-template-columns: 42px 1fr 42px; }
  .download-btn { width: 100%; }
  .footer { flex-direction: column; text-align: center; }
}
