:root {
  --bg: #0a0614;
  --bg-2: #120a24;
  --panel: #17102b;
  --panel-2: #1e1438;
  --line: #2e2152;
  --text: #f4f1ff;
  --muted: #a99fd0;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --cyan: #22d3ee;
  --cyan-dark: #0e7490;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: radial-gradient(1100px 500px at 15% -5%, #2a165a 0%, transparent 55%),
              radial-gradient(900px 450px at 95% 0%, #083344 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.page { max-width: 1060px; margin: 0 auto; padding: 28px 20px 40px; }

/* Hero */
.hero { padding: 18px 0 8px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; gap: 18px; align-items: center; }
.logo { width: 84px; height: 84px; flex: 0 0 auto; filter: drop-shadow(0 8px 24px rgba(124,58,237,.45)); }
.eyebrow { margin: 0 0 4px; color: var(--cyan); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .95; letter-spacing: .02em; font-weight: 900; }
.hero-sub { color: var(--muted); max-width: 620px; font-size: 1.05rem; line-height: 1.55; margin: 18px 0 6px; }

.on-air {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: var(--panel);
  padding: 9px 14px; border-radius: 999px; font-weight: 800; letter-spacing: .12em; font-size: .82rem;
}
.on-air-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: pulse 1.8s infinite; }
.on-air.is-playing .on-air-dot { background: #f43f5e; box-shadow: 0 0 0 0 rgba(244,63,94,.55); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55); }
  70% { box-shadow: 0 0 0 9px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

/* Sections */
section { margin-top: 34px; }
h2 { font-size: 1.35rem; margin: 0 0 16px; letter-spacing: .01em; }

/* Stations */
.station-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.station-card {
  position: relative; text-align: left; cursor: pointer; color: var(--text);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 7px; font: inherit;
}
.station-card:hover { border-color: var(--purple-light); }
.station-card:focus-visible, .control-btn:focus-visible, .shop-btn:focus-visible, input[type="range"]:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
.station-card.is-active { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 14px 34px rgba(0,0,0,.35); }
.station-badge {
  position: absolute; top: 14px; right: 14px; background: var(--purple); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px;
}
.station-icon { font-size: 1.7rem; color: var(--cyan); }
.station-name { font-size: 1.18rem; font-weight: 800; line-height: 1.25; }
.station-desc { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.station-count { color: var(--purple-light); font-size: .82rem; font-weight: 700; margin-top: 4px; }

/* Player */
.player {
  background: linear-gradient(170deg, #1d123d, #120a26);
  border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  box-shadow: 0 22px 50px rgba(0,0,0,.38);
}
.now-playing { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.now-art { width: 76px; height: 76px; border-radius: 16px; background: var(--bg-2); flex: 0 0 auto; }
.now-meta { flex: 1 1 220px; min-width: 200px; }
.now-label { margin: 0; color: var(--cyan); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.now-title { margin: 4px 0 2px; font-size: 1.55rem; font-weight: 900; line-height: 1.15; }
.now-station, .now-genre { margin: 0; color: var(--muted); font-size: .94rem; }
.now-state { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.now-state.is-playing { color: var(--cyan); border-color: var(--cyan-dark); }

.progress-wrap { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; min-width: 40px; }
.time:last-child { text-align: right; }
input[type="range"] { accent-color: var(--cyan); cursor: pointer; }
.seek { flex: 1; height: 6px; }

.controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.control-btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-family: inherit;
}
.control-btn:hover { border-color: var(--purple-light); }
.control-btn.toggle { width: auto; min-width: 52px; border-radius: 999px; padding: 0 12px; font-size: .92rem; }
.control-btn.toggle.is-on { background: var(--purple); border-color: var(--purple-light); color: #fff; }
.play-btn { width: 64px; height: 64px; font-size: 1.45rem; background: var(--cyan); color: #06121a; border-color: var(--cyan); font-weight: 900; }
.play-btn:hover { background: #67e8f9; border-color: #67e8f9; }
.repeat-mode { font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.control-btn.small { width: 40px; height: 40px; font-size: .95rem; }

.volume-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.volume { width: 170px; }
.volume-value { color: var(--muted); font-size: .86rem; min-width: 38px; font-variant-numeric: tabular-nums; }

/* Playlist */
.playlist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.playlist-head h2 { margin-bottom: 10px; }
.playlist-station { color: var(--muted); margin: 0; font-size: .94rem; }
.playlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.track {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; color: var(--text); font: inherit;
}
.track:hover { border-color: var(--purple-light); }
.track:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.track.is-active { border-color: var(--cyan); background: var(--panel-2); }
.track-index { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 22px; font-weight: 700; }
.track.is-active .track-index { color: var(--cyan); }
.track-main { flex: 1; min-width: 0; }
.track-title { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-genre { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.track-duration { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.track-playing { color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: none; }
.track.is-active.is-playing .track-playing { display: inline; }

/* Shop */
.shop { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.shop-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.shop h2 { margin-bottom: 8px; }
.shop p { color: var(--muted); line-height: 1.55; max-width: 620px; margin: 0; }
.shop-cta { text-align: center; min-width: 180px; }
.shop-price { color: var(--text) !important; font-size: 2rem; font-weight: 900; margin: 0 0 10px !important; }
.shop-btn {
  display: inline-block; background: var(--purple); color: #fff; text-decoration: none; font-weight: 800;
  padding: 13px 18px; border-radius: 999px;
}
.shop-btn:hover { background: #8b5cf6; }
.shop-note { font-size: .82rem; margin-top: 10px !important; }

.footer { color: var(--muted); text-align: center; margin-top: 36px; font-size: .9rem; }

@media (max-width: 760px) {
  .page { padding: 20px 14px 32px; }
  .station-grid { grid-template-columns: 1fr; }
  .brand { align-items: flex-start; }
  .logo { width: 64px; height: 64px; }
  .player { padding: 18px; }
  .now-playing { align-items: flex-start; }
  .volume { width: 130px; }
  .shop-cta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .on-air-dot { animation: none; }
}

/* Site nav (added 2026-11-10 for the phantompacklab.com bundle — same markup pattern as the packs pages, radio palette) */
.nav{position:relative;z-index:5;padding:1rem 0 .4rem}
.nav-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.nav .brand{display:flex;align-items:center;gap:.55rem;color:#f3efff;text-decoration:none;font-weight:800;letter-spacing:.4px}
.nav .brand em{font-style:normal;color:#22d3ee}
.nav .brand img{border-radius:50%}
.nav .links{display:flex;gap:1.1rem;flex-wrap:wrap}
.nav .links a{color:#b9b3d9;text-decoration:none;font-size:.92rem;font-weight:600}
.nav .links a:hover,.nav .links a[aria-current="page"]{color:#22d3ee}
.nav .links a.cta-small{color:#0b0618;background:#22d3ee;padding:.32rem .8rem;border-radius:999px}
.footer a{color:#22d3ee}
