:root {
  --bg: #120a1c;
  --ink: #f4ecdf;
  --muted: #b9a9c9;
  --pink: #ff3d8b;
  --amber: #ffb547;
  --cyan: #5fe1ff;
  --card: rgba(24, 14, 36, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--head);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--amber); }
button { font: inherit; color: inherit; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header-h);
  padding: 0 clamp(14px, 3vw, 32px);
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(to bottom, rgba(18,10,28,.9), rgba(18,10,28,0));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo {
  color: var(--ink); text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(20px, 3.2vw, 30px); line-height: 1;
  text-shadow: 0 0 18px rgba(255, 61, 139, .55);
  white-space: nowrap;
}
.links { display: flex; gap: 8px; }
.links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .03em;
  transition: background .2s, border-color .2s;
}
.links a:hover, .links a:focus-visible { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.links svg { width: 18px; height: 18px; }
.link-spotify svg { color: #1ed760; }
.link-youtube svg { color: #ff3b3b; }

/* Stage */
.stage { position: fixed; inset: 0; }
#scene { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--type); color: var(--muted); letter-spacing: .05em;
  background: var(--bg); transition: opacity .6s; z-index: 5;
}
.loaded .loader { opacity: 0; pointer-events: none; }

.intro {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 0 20px calc(18px + env(safe-area-inset-bottom));
  text-align: center; pointer-events: none;
  background: linear-gradient(to top, rgba(18,10,28,.85), rgba(18,10,28,0));
}
.tagline { font-family: var(--type); font-size: clamp(15px, 2vw, 19px); margin: 0 0 6px; color: var(--ink); }
.hint { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

/* Hotspots */
.hotspot {
  position: absolute; left: 0; top: 0; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(18,10,28,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s, background .2s;
}
.loaded .hotspot { opacity: 1; }
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-hover { background: rgba(255,61,139,.85); border-color: transparent; }
.hotspot .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,61,139,.7); animation: ping 1.8s infinite; }
#hot-tv .dot { background: var(--cyan); box-shadow: 0 0 0 0 rgba(95,225,255,.7); animation-name: ping-cyan; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,61,139,0); } 100% { box-shadow: 0 0 0 0 rgba(255,61,139,0); } }
@keyframes ping-cyan { 70% { box-shadow: 0 0 0 10px rgba(95,225,255,0); } 100% { box-shadow: 0 0 0 0 rgba(95,225,255,0); } }

/* Now playing pill */
.now-playing {
  position: absolute; z-index: 7; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 0;
  background: #1ed760; color: #08130b; font-size: 14px; letter-spacing: .03em;
}
/* hidden must win over display */
.now-playing[hidden], .hotspot[hidden] { display: none; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: currentColor; animation: eq .8s infinite ease-in-out alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* WebGL fallback */
.fallback { display: none; }
.no-webgl #scene, .no-webgl .hotspot, .no-webgl .hint { display: none; }
.no-webgl .loader { opacity: 0; pointer-events: none; }
.no-webgl body, body.no-webgl { overflow: auto; }
.no-webgl .stage { position: static; min-height: 100%; padding: calc(var(--header-h) + 16px) 16px 24px;
  background: radial-gradient(ellipse at 50% 0%, #3a1d52 0%, var(--bg) 70%); }
.no-webgl .fallback { display: block; max-width: 760px; margin: 0 auto; }
.fallback-note { font-family: var(--type); color: var(--muted); text-align: center; margin: 8px 0 22px; }
.fallback-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fallback-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
}
.fallback-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 8px; background: #000; }
.fc-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.fc-title { font-size: 24px; font-weight: 600; }
.no-webgl .intro { position: static; background: none; padding-top: 28px; }

/* Panels */
.panel { position: fixed; inset: 0; z-index: 30; }
.panel[hidden] { display: none; }
.panel-backdrop { position: absolute; inset: 0; background: rgba(8, 4, 14, .35); }
.panel-card {
  position: absolute; top: calc(var(--header-h) + 8px); right: 16px; bottom: 16px;
  width: min(440px, calc(100vw - 32px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 20px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  animation: slide-in .35s cubic-bezier(.2,.8,.2,1);
}
#panel-tv .panel-card { width: min(560px, calc(100vw - 32px)); }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kicker { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
#panel-tv .kicker { color: var(--cyan); }
.panel h2 { margin: 2px 0 10px; font-size: 30px; text-transform: uppercase; letter-spacing: .03em; }
.close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.06); font-size: 26px; line-height: 1;
}
.close:hover, .close:focus-visible { background: rgba(255,255,255,.16); }
.panel-copy { font-family: var(--type); color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.note { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 12px 0 0; }
.embed { border-radius: 12px; overflow: hidden; background: #000; }
.embed-spotify { min-height: 352px; background: #282828; }
.embed-spotify iframe { display: block; width: 100%; height: 352px; border: 0; }
.embed-youtube { position: relative; aspect-ratio: 16 / 9; }
.embed-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.now-title { font-size: 18px; font-weight: 600; margin: 12px 0 10px; letter-spacing: .02em; }
.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.video-list button {
  width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center;
  padding: 6px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.04);
  text-align: left; cursor: pointer;
}
.video-list button:hover, .video-list button:focus-visible { background: rgba(255,255,255,.1); }
.video-list button[aria-current="true"] { border-color: var(--cyan); background: rgba(95,225,255,.1); }
.video-list img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; background: #000; }
.vl-title { display: block; font-size: 15px; line-height: 1.25; }
.vl-meta { display: block; font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; text-transform: uppercase; }
.noscript { position: fixed; inset: 40% 20px auto; text-align: center; font-family: var(--type); z-index: 50; }

/* Phones: bottom sheets */
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .links a { padding: 8px; }
  .links a span { display: none; }
  .links svg { width: 20px; height: 20px; }
  .panel-card, #panel-tv .panel-card {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 82vh; max-height: 82dvh;
    border-radius: 18px 18px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom));
    animation-name: slide-up;
  }
  @keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
  .panel h2 { font-size: 26px; }
  .video-list button { grid-template-columns: 96px 1fr; }
  .video-list img { width: 96px; }
  .hotspot { font-size: 12px; padding: 6px 10px 6px 8px; }
  .now-playing { left: 50%; right: auto; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot .dot, .eq i { animation: none; }
  .panel-card { animation: none; }
}
