/* Direction: Midnight Broadcast — deep navy studio, electric cyan signal, warm amber spotlight */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #101a2c;
  --surface: #17263d;
  --surface-2: #1e3250;
  --border: #273a55;
  --border-strong: #585f6b;
  --ink: #f5f7fa;
  --muted: #92a0b4;
  --accent: #35c6d9;
  --accent-hover: #53cfdf;
  --accent-ink: #06202a;
  --accent-text: #6ed8e6;
  --accent-strong: #7fe0ec;
  --accent-soft: #14384a;
  --accent-border: #21677a;
  --success: #46d6a5;
  --success-ink: #ffffff;
  --success-soft: #1c4347;
  --success-strong: #46d6a5;
  --warning: #ffb454;
  --warning-ink: #ffffff;
  --warning-soft: #453c35;
  --warning-strong: #ffb454;
  --danger: #ff6b6b;
  --danger-ink: #ffffff;
  --danger-soft: #452c3a;
  --danger-strong: #ff6b6b;
  --chart-1: #35c6d9;
  --chart-2: #b8b4fc;
  --chart-3: #c37ac1;
  --chart-4: #fda296;
  --chart-5: #b6901b;
  --chart-6: #80d58e;

  --x-amber: #ffb454;
  --x-amber-soft: #3b2b14;
  --x-on-photo: #ffffff;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --shadow-card: 0 20px 44px -26px rgb(0 0 0 / 0.8);
  --card-pad: 1.1rem;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f4;
  --border: #dcdfe0;
  --border-strong: #b5bbbc;
  --ink: #101a2c;
  --muted: #676d76;
  --accent: #35c6d9;
  --accent-hover: #2da8b8;
  --accent-ink: #071c1e;
  --accent-text: #207984;
  --accent-strong: #207984;
  --accent-soft: #e3f7fa;
  --accent-border: #a4e5ee;
  --success: #46d6a5;
  --success-ink: #101a2c;
  --success-soft: #e9faf4;
  --success-strong: #27795c;
  --warning: #ffb454;
  --warning-ink: #101a2c;
  --warning-soft: #fff6ea;
  --warning-strong: #8f652f;
  --danger: #ff6b6b;
  --danger-ink: #101a2c;
  --danger-soft: #ffeded;
  --danger-strong: #a84646;
  --chart-1: #029eaf;
  --chart-2: #708ee2;
  --chart-3: #9c569a;
  --chart-4: #dd766a;
  --chart-5: #8c6d08;
  --chart-6: #4ca15d;
}

.glow {
  background-image:
    radial-gradient(900px 420px at 12% -14%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%),
    radial-gradient(760px 340px at 88% -6%, color-mix(in srgb, var(--x-amber) 16%, transparent), transparent 70%);
}

.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.rail::-webkit-scrollbar {
  height: 8px;
}
.rail::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.art {
  box-shadow: var(--shadow-card);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-btn);
  color: var(--muted);
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 2px 0 0 var(--accent);
}

.player-glass {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

input[type="range"] {
  accent-color: var(--accent);
  height: 1.1rem;
  cursor: pointer;
}

.track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--x-amber));
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  transition: opacity 0.2s ease;
}
.eq i {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: var(--accent);
  animation: eqbar 1s ease-in-out infinite;
}
.eq i:nth-child(2) {
  animation-delay: 0.18s;
}
.eq i:nth-child(3) {
  animation-delay: 0.36s;
}
.eq i:nth-child(4) {
  animation-delay: 0.54s;
}
@keyframes eqbar {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}
html.reduced-motion .eq i {
  animation: none;
  height: 60%;
}

.cardhover {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cardhover:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow-card);
}
html.reduced-motion .cardhover:hover {
  transform: none;
}
