:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #101720;
  --panel-2: #141e2a;
  --line: #273545;
  --text: #f4f7fb;
  --muted: #9ba8b8;
  --cyan: #69c9ee;
  --cyan-dim: #2e789b;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: radial-gradient(ellipse at 50% 12%, #142235 0, #090f18 38%, #05080d 78%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
.app { width: min(100%, 480px); min-height: 100svh; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 42px; }
.icon-button { border: 0; color: #e9f1fa; background: transparent; font-size: 25px; padding: 5px 8px; cursor: pointer; }
.live-indicator { color: #b9c6d4; font-size: 10px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px #69c9ee; }
.brand { text-align: center; padding: 18px 0 12px; }
.logo { display: block; width: min(54vw, 210px); height: min(54vw, 210px); object-fit: contain; margin: 0 auto 12px; }
h1 { margin: 0; font-size: clamp(23px, 6vw, 29px); letter-spacing: .2px; }
.tagline { margin: 7px 0 0; color: var(--muted); font-size: 10px; letter-spacing: 2px; }
.player { text-align: center; padding: 10px 0 16px; }
.status { color: var(--muted); font-size: 10px; letter-spacing: 2px; min-height: 18px; }
.play-button { width: 104px; height: 104px; margin: 13px auto 22px; border-radius: 50%; border: 2px solid var(--cyan); color: white; background: linear-gradient(145deg, #172534, #080d14); box-shadow: 0 0 0 5px #69c9ee12, 0 0 24px #42b9e52b; font-size: 35px; cursor: pointer; display: grid; place-items: center; }
.play-button:active { transform: scale(.97); }
.play-button.playing { color: var(--cyan); }
.track-card { display: flex; align-items: center; gap: 13px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, #141f2b, #0c121a); padding: 14px; min-height: 82px; }
.track-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #1a2a3a; color: var(--cyan); font-size: 25px; }
.track-copy { min-width: 0; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; margin-bottom: 5px; }
.track-title { color: var(--text); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.track-subtitle { color: var(--muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.error { color: #ff9b9b; font-size: 12px; min-height: 16px; margin: 7px 0 0; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 5px 0 24px; }
.quick-links a { min-width: 0; text-decoration: none; color: #dce5ef; border: 1px solid #263646; background: #101923; border-radius: 12px; padding: 12px 4px 10px; text-align: center; font-size: 10px; }
.quick-links a span { display: block; color: var(--cyan); font-size: 21px; margin-bottom: 5px; }
footer { display: flex; justify-content: space-between; gap: 8px; color: #657486; font-size: 9px; letter-spacing: 1px; margin-top: auto; padding-top: 15px; }
.install-banner { position: fixed; z-index: 5; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 456px; margin: auto; padding: 12px; border: 1px solid #34506a; border-radius: 14px; background: #111c29f5; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 30px #0009; font-size: 12px; }
.install-banner[hidden] { display: none; }
.install-banner span { flex: 1; }
.install-banner button { border: 1px solid var(--cyan-dim); background: #172b3b; color: white; border-radius: 8px; padding: 8px 10px; font-size: 10px; }
#dismissInstall { font-size: 18px; padding: 3px 8px; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: #101923; color: var(--text); width: calc(100% - 36px); max-width: 380px; }
dialog::backdrop { background: #000b; }
.dialog-inner { position: relative; padding: 18px; }
.dialog-close { position: absolute; top: 8px; right: 10px; border: 0; color: white; background: none; font-size: 24px; }
.dialog-inner p { color: var(--muted); line-height: 1.5; font-size: 14px; }
.dialog-inner a { color: var(--cyan); }
@media (max-height: 720px) { .logo { width: 140px; height: 140px; } .brand { padding-top: 8px; } .play-button { width: 88px; height: 88px; margin: 8px auto 14px; } }
