:root {
  --sky-1: #0b1a3a;
  --sky-2: #1e3a6b;
  --sky-3: #3d6ea0;
  --sun:   #ffb15c;
  --sun-2: #ff6f61;
  --snow:  #f6f9ff;
  --peak-1:#1a2a4a;
  --peak-2:#253d63;
  --peak-3:#345680;
  --saffron:#ff8a3d;
  --maroon:#7a1f2b;
  --text:  #f3f6fb;
  --muted: #aeb9cf;
  --card:  rgba(10, 18, 38, 0.62);
  --card-2:rgba(10, 18, 38, 0.45);
  --line:  rgba(255,255,255,0.08);
  --accent:#ffb15c;
  --accent-2:#ff6f61;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #05091a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ---------- Mountain scene ---------- */
.scene {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
}
.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, #ffd49f33, transparent 60%),
    radial-gradient(900px 500px at 15% 10%, #ff6f6122, transparent 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}
.sun {
  position: absolute;
  top: 12%; right: 14%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff2d6, var(--sun) 55%, var(--sun-2));
  box-shadow:
    0 0 60px 20px rgba(255,177,92,0.45),
    0 0 160px 60px rgba(255,111,97,0.22);
  filter: blur(0.3px);
}
.range { position: absolute; left: 0; right: 0; width: 100%; height: auto; display: block; }
.range path { stroke: none; }
.range-3 { bottom: 16%; fill: var(--peak-3); opacity: 0.9; }
.range-2 { bottom: 6%;  fill: var(--peak-2); }
.range-1 { bottom: 0;   fill: var(--peak-1); }
.mist {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(5,9,26,0.8) 80%);
  pointer-events: none;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(5,9,26,0.55), rgba(5,9,26,0.0));
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffb15c, #ff6f61);
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(255,111,97,0.35);
}
.brand-name {
  font-weight: 700; letter-spacing: 0.3px; font-size: 18px;
}
.brand-tag { color: var(--muted); font-size: 12px; margin-top: 2px; }

.live-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffd6d6;
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
}
.live-chip .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff5050;
  box-shadow: 0 0 0 0 rgba(255,80,80,0.8);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,80,80,0.8); }
  70%  { box-shadow: 0 0 0 12px rgba(255,80,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,80,80,0); }
}

/* ---------- Stage layout ---------- */
.stage {
  max-width: 780px;
  margin: 48px auto 64px;
  padding: 0 24px;
  display: block;
}

/* ---------- Player ---------- */
.player {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
@media (max-width: 680px) {
  .player { grid-template-columns: 1fr; text-align: center; padding: 24px; }
}

.disc {
  width: 220px; height: 220px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, #0c1428 0 2px, #0a1022 2px 4px),
    #0a1022;
  box-shadow:
    inset 0 0 0 6px #1a2648,
    0 20px 40px rgba(0,0,0,0.5),
    0 0 0 2px rgba(255,177,92,0.25);
  display: grid; place-items: center;
  margin: 0 auto;
  position: relative;
  animation: spin 20s linear infinite;
  animation-play-state: paused;
}
.disc.playing { animation-play-state: running; }
.disc::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent 55%);
  pointer-events: none;
}
.disc-inner {
  width: 82px; height: 82px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb15c, #ff6f61);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px #0a1022, 0 0 30px rgba(255,111,97,0.5);
}
.disc-center { font-size: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-body { min-width: 0; }
.player-kicker {
  display: flex; gap: 10px; align-items: center;
  color: var(--muted);
  font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase;
}
.freq {
  color: var(--sun);
  font-weight: 700;
}
.sep { opacity: 0.6; }
.track-title {
  margin: 8px 0 4px;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
@media (max-width: 680px) {
  .track-title { white-space: normal; }
}

.controls {
  margin-top: 22px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.ctrl {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease;
}
.ctrl:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.ctrl:active { transform: scale(0.96); }
.ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.ctrl.primary {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--sun), var(--sun-2));
  color: #1a1020;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(255,111,97,0.35);
}
.ctrl.primary svg { width: 24px; height: 24px; }
.ctrl[aria-pressed="true"] { color: var(--sun); border-color: rgba(255,177,92,0.4); }

.volume {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.vol-ico { width: 20px; height: 20px; fill: var(--muted); }
#volume {
  width: 110px;
  accent-color: var(--sun);
}

.marquee {
  margin-top: 22px;
  overflow: hidden;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: slide 30s linear infinite;
  padding-left: 100%;
}
@keyframes slide { to { transform: translateX(-100%); } }

/* ---------- Footer ---------- */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px 36px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* ---------- About dialog ---------- */
dialog {
  border: 1px solid var(--line);
  background: #0b132b;
  color: var(--text);
  border-radius: 18px;
  padding: 22px 24px;
  max-width: 520px;
}
dialog::backdrop { background: rgba(3,6,16,0.7); backdrop-filter: blur(4px); }
dialog h3 { margin-top: 0; }
dialog p { color: var(--muted); line-height: 1.55; font-size: 14px; }
dialog menu { padding: 0; margin: 14px 0 0; display: flex; justify-content: flex-end; }
dialog button {
  background: linear-gradient(135deg, var(--sun), var(--sun-2));
  color: #1a1020; border: 0;
  padding: 8px 16px; border-radius: 10px; font-weight: 600; cursor: pointer;
}
