:root {
  color-scheme: dark;
  --text: #edf4f5;
  --muted: #a7bdc4;
  --cyan: #5af0dc;
  font-family: 'Montserrat', 'Avenir Next', 'Segoe UI', sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #020407; color: var(--text); }
body { -webkit-font-smoothing: antialiased; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; touch-action: manipulation; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nf3-player { position: relative; width: 100%; height: 100vh; height: 100dvh; isolation: isolate; overflow: hidden; }
.player-stage { position: absolute; inset: 0; touch-action: none; user-select: none; }
#spectrum { display: block; width: 100%; height: 100%; }
/* These fades belong to the controls; the field itself fills the entire screen. */
.nf3-player::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(#02040780, transparent 22%, transparent 48%, #020407b3 78%, #020407f5); pointer-events: none; }
.player-header { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: max(26px, env(safe-area-inset-top)) max(36px, env(safe-area-inset-right)) 0 max(36px, env(safe-area-inset-left)); pointer-events: none; }
.wordmark { display: flex; flex-direction: column; gap: 9px; font-size: 28px; font-weight: 300; letter-spacing: .22em; line-height: 1; text-shadow: 0 1px 14px #000; }
.wordmark i { height: 1px; background: linear-gradient(90deg, #00f4ba, #00e6fc, #7247ff); }
.tracks-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 17px; border: 1px solid #a7d4d033; border-radius: 24px; background: #020a1199; backdrop-filter: blur(12px); font-size: 11px; letter-spacing: .1em; pointer-events: auto; }
.tracks-toggle .icon { width: 19px; height: 19px; }
.tracks-toggle:hover, .icon-button:hover { background: #24414b88; }
.player-controls { position: absolute; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 800px); padding: 0 36px max(30px, env(safe-area-inset-bottom)); }
.track-info { text-align: center; margin-bottom: 22px; pointer-events: none; text-shadow: 0 2px 18px #000; }
.eyebrow { margin: 0 0 9px; color: #b2cad0; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .27em; }
.track-info h1 { margin: 0; font-size: clamp(27px, 4vw, 38px); font-weight: 300; letter-spacing: .07em; }
.seek-row { display: flex; align-items: center; gap: 16px; }
.seek-row span { min-width: 30px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.seek-row span:last-child { text-align: right; }
input[type='range'] { appearance: none; -webkit-appearance: none; height: 32px; accent-color: var(--cyan); cursor: pointer; background: transparent; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: #a7c8cf66; }
input[type='range']::-moz-range-track { height: 2px; border-radius: 1px; background: #a7c8cf66; }
input[type='range']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--cyan); }
input[type='range']::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--cyan); }
#seek { min-width: 0; flex: 1; }
.transport-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 9px; }
.transport { display: flex; align-items: center; gap: 20px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: transparent; color: #c8d9df; flex-shrink: 0; }
.previous .icon { transform: rotate(180deg); }
.player-toggle { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 1px solid #72f3dfaa; border-radius: 50%; color: #e4fff9; background: #0a292dbb; box-shadow: 0 0 24px #29e4c91a; }
.player-toggle:hover { background: #164249; border-color: var(--cyan); }
.player-toggle .icon { width: 24px; height: 24px; }
.cloud-status { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: transparent; color: var(--muted); font-size: 10px; line-height: 1.5; }
.cloud-status:hover { color: var(--text); }
.cloud-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #71848c; flex-shrink: 0; }
.cloud-status[data-state='live']::before { background: var(--cyan); box-shadow: 0 0 9px #00c8b6; }
.volume { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.volume .icon { width: 18px; height: 18px; color: var(--muted); }
.volume input { width: 84px; }
.player-status { color: #c9dce0; font-size: 12px; line-height: 1.6; text-align: center; margin: 14px 0 0; }
.player-status:empty { display: none; }
.playlist-dialog { position: fixed; inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: 0; padding: 14px 18px 18px; overflow: auto; overscroll-behavior: contain; border: 1px solid #527b7c66; border-radius: 18px; color: var(--text); background: #061018f5; box-shadow: 0 16px 80px #0009; }
.playlist-dialog::backdrop { background: #0006; backdrop-filter: blur(8px); }
.playlist-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.playlist-header h2 { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 0 12px; }
.playlist { margin: 0; padding: 0; list-style: none; }
.playlist button { display: grid; grid-template-columns: 24px 1fr 38px 20px; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; padding: 12px; border-radius: 8px; background: transparent; }
.playlist button:hover { background: #18303a; }
.playlist button[aria-current='true'] { background: #103937; }
.track-number, .track-duration { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.track-name { font-size: 13px; }
.playlist .icon { width: 17px; height: 17px; color: #b4e7df; }
.player-note { color: #90a8b0; font-size: 10px; line-height: 1.8; margin: 18px 12px 0; }
.noscript-message { position: fixed; z-index: 3; top: 100px; left: 16px; right: 16px; padding: 20px; text-align: center; background: #061018; font-size: 13px; line-height: 2; }
.noscript-message a { color: var(--cyan); }
@media (max-width: 600px) {
  .player-header { padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .wordmark { font-size: 25px; }
  .player-controls { padding: 0 max(24px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
  .track-info { margin-bottom: 16px; }
  .transport-row { grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
  .transport { grid-row: 1; justify-content: center; gap: 30px; }
  .cloud-status { justify-content: center; justify-self: center; margin-top: 4px; font-size: 9px; }
  /* Phones already expose hardware volume controls. */
  .volume { display: none; }
  .seek-row { gap: 12px; }
  .playlist-dialog { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) and (min-width: 601px) {
  .player-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .player-controls { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .track-info { margin-bottom: 2px; }
  .track-info h1 { font-size: 24px; }
  .eyebrow { margin-bottom: 5px; font-size: 8px; }
  .transport-row { margin-top: 0; }
  .player-toggle { width: 48px; height: 48px; }
  .player-status { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
