@font-face { font-family: "InterCustom"; src: url("assets/fonts/Inter_18pt-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; }
@font-face { font-family: "InterCustom"; src: url("assets/fonts/Inter_18pt-Bold.ttf") format("truetype"); font-weight: 800; font-style: normal; }
:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #111;
  --text: #f5f5f5;
  --muted: #a4a4a4;
  --accent: #ff2d8a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #101010 0%, #000 45%, #000 100%);
  color: var(--text);
  font-family: InterCustom, Inter, system-ui, sans-serif;
  overflow: hidden;
}
button { font: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-shell {
  width: 100%;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.screen {
  position: absolute;
  inset: 0;
  padding: 18px 18px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity .28s ease, transform .28s ease;
}
.screen.active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.icon-btn, .control-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 18px;
  backdrop-filter: blur(10px);
}
.icon-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer;
}
.live-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
#liveDot {
  width: 10px; height: 10px; border-radius: 50%; background: #555;
}
#liveDot.live {
  background: var(--accent);
  animation: pulse 1.3s infinite;
  box-shadow: 0 0 14px var(--accent);
}
@keyframes pulse { 0%{transform:scale(1);opacity:1} 50%{transform:scale(1.18);opacity:.7} 100%{transform:scale(1);opacity:1} }
.player-main {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-rows: auto auto auto minmax(110px, 1fr) auto;
  gap: 14px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}
.station-meta { text-align: center; margin-top: 4px; }
.logo-badge {
  width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px;
  display: grid; place-items: center; font-weight: 800; letter-spacing: -.04em;
  color: #fff;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.3), transparent 55%), linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff 10%), color-mix(in srgb, var(--accent) 60%, #000 40%));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 28%, transparent);
}
.station-number {
  font-size: clamp(58px, 17vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--accent);
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 28%, transparent);
}
.station-name {
  margin-top: 10px;
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 300;
}
.meta-card {
  margin: 14px auto 0;
  max-width: 330px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}
.meta-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.meta-label { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.meta-status { font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.song-meta {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: #f3f3f3;
  min-height: 38px;
}
.dial-wrap { position: relative; height: 160px; margin-top: 4px; overflow: hidden; }
.dial-glow {
  position: absolute; inset: 28px 10% auto;
  height: 100px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%);
  filter: blur(18px);
}
.dial-scale {
  position: absolute; left: 50%; top: 48px; transform: translateX(-50%);
  width: 720px; height: 90px; display: flex; align-items: flex-end;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.tick { flex: 1; position: relative; height: 100%; }
.tick::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 28px;
  width: 3px; height: 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 88%, #fff 12%);
}
.tick.major::before { height: 34px; width: 4px; }
.tick-label {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 56px;
  font-size: 13px; color: #f0f0f0; opacity: .92; white-space: nowrap;
}
.needle-track {
  position: absolute; left: 8%; right: 8%; bottom: 22px; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, #fff 40%), transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.needle {
  position: absolute; left: 50%; bottom: 18px; width: 3px; height: 110px;
  background: linear-gradient(180deg, #fff, var(--accent));
  border-radius: 999px; transform: translateX(-50%);
  transition: left .35s cubic-bezier(.2,.8,.2,1), background .2s ease;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent);
}
.needle-knob {
  position: absolute; bottom: 10px; width: 56px; height: 36px; border-radius: 16px;
  left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff 8%), color-mix(in srgb, var(--accent) 72%, #000 28%));
  border: 1px solid rgba(255,255,255,.18);
  transition: left .35s cubic-bezier(.2,.8,.2,1), background .2s ease;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.28);
}
.visualizer-wrap {
  align-self: stretch;
  min-height: 118px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 24px;
  padding: 10px 12px;
}
#visualizer { width: 100%; height: 110px; display: block; }
.controls {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  position: sticky; bottom: 0; z-index: 5;
  padding: 12px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55) 24%, rgba(0,0,0,.95));
}
.control-btn {
  width: 64px; height: 64px; display: grid; place-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.control-btn:active, .icon-btn:active, .station-item:active { transform: scale(.97); }
.play-btn {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 80%, #fff 20%), color-mix(in srgb, var(--accent) 65%, #000 35%));
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 40%, transparent);
}
.control-btn svg { width: 26px; height: 26px; }
.play-btn svg { width: 30px; height: 30px; }
.list-screen { background: linear-gradient(180deg, #050505, #000); }
.list-topbar { gap: 14px; }
.screen-title { flex: 1; text-align: center; font-size: 18px; font-weight: 700; }
.topbar-spacer { width: 48px; }
.station-list {
  margin-top: 18px; display: grid; gap: 12px;
  max-height: calc(100vh - 100px); overflow: auto; padding-bottom: 20px;
}
.station-item {
  width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 22px; padding: 14px 16px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
}
.station-item.active-item { border-color: color-mix(in srgb, var(--accent) 70%, rgba(255,255,255,.15)); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 18%, transparent); }
.station-item-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.station-color { width: 14px; height: 44px; border-radius: 999px; flex: 0 0 auto; box-shadow: 0 0 16px currentColor; }
.station-item-name { font-size: 16px; font-weight: 600; }
.station-item-number { font-size: 13px; color: var(--muted); margin-top: 2px; }
.station-item svg { width: 18px; height: 18px; opacity: .75; }
.hint-row { margin-top: 10px; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 400px) {
  .dial-wrap { height: 144px; }
  .dial-scale { width: 650px; }
  .tick-label { font-size: 12px; }
  .control-btn { width: 58px; height: 58px; }
  .play-btn { width: 76px; height: 76px; }
  .meta-card { max-width: 100%; }
}
@media (max-height: 760px) {
  .station-number { font-size: clamp(50px, 15vw, 72px); }
  .station-name { font-size: clamp(18px, 5vw, 24px); }
  .dial-wrap { height: 138px; }
  #visualizer { height: 86px; }
  .meta-card { padding: 10px 12px; }
}
