/* Listener surface: graphite housings, raised controls and recessed tracks.
   The original Rollout logo is used without filters or recoloring. */
:root {
  --ground: #202124;
  --safe-t: env(safe-area-inset-top, 0px);
  --panel: #292a2d;
  --panel-2: #252629;
  --panel-3: #333438;
  --line: #424448;
  --body: #d0d1d4;
  --dim: #b0b3b9;
  --radius: 22px;
  --raised: -5px -5px 14px #ffffff07, 7px 9px 18px #00000070, inset 1px 1px 1px #ffffff18, inset -1px -1px 1px #00000075;
  --control: -3px -3px 7px #ffffff0d, 4px 5px 9px #00000080, inset 1px 1px 1px #ffffff20, inset -1px -1px 1px #000000a0;
  --key-face: linear-gradient(180deg, #484b51, #36393e 52%, #292c31);
  --key-silver: linear-gradient(180deg, #f5f7f9, #d7dde3 55%, #b5bec9);
  --key-blue: linear-gradient(180deg, #a9f0ff, #0ad2ff 58%, #08acd5);
  --key-shadow: inset 0 1px 1px #ffffff40, inset 1px 0 1px #ffffff10, inset 0 -1px 1px #00000055, 0 3px 1px #14171b, 0 7px 12px #0000004d;
  --key-down: inset 0 2px 4px #00000065, inset 0 -1px 0 #ffffff12, 0 1px 2px #00000045;
  --recessed: inset 3px 3px 6px #00000080, inset -2px -2px 4px #ffffff0b;
}
body { background: radial-gradient(ellipse at 10% 0, #343538, #202124 70%); }
.app { gap: 18px; padding: 4px 20px 18px; grid-template-columns: 236px minmax(0, 1fr) 320px; grid-template-rows: 72px minmax(0, 1fr) 92px; grid-template-areas: "top top top" "side main now" "nav player player"; }
.topbar { padding: 0 4px; }
.brand-logo { width: 46px; height: 46px; }
.sidebar, .main { background: linear-gradient(145deg, #303134, #27282b 65%); box-shadow: var(--raised); }
.sidebar { padding-top: 10px; }
.side-head { padding-bottom: 18px; }
.side-empty { background: transparent; padding: 16px 8px 24px; margin: 8px; border-bottom: 1px solid #ffffff0d; border-radius: 0; }
.side-empty:last-child { border: 0; }
.nowpanel { display: block; padding: 2px 2px 14px; background: transparent; border-radius: 0; }
.nowpanel > .np-title, .nowpanel > .np-empty { padding: 12px 18px; }
.home-top { padding-top: 26px; background: transparent; }
.home-top h1 { font-weight: 800 !important; }
.chips { gap: 12px; margin-bottom: 24px; }
.chip { background: linear-gradient(145deg, #323337, #26272a); box-shadow: var(--control); height: 36px; padding: 0 16px; color: var(--body); }
.chip.on { background: #222326; color: var(--blue); box-shadow: var(--recessed); }
.quick { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
.quick a { background: #2c2d30; box-shadow: var(--control); border-radius: 12px; height: 62px; }
.quick img { width: 62px; height: 62px; }
.section { margin-bottom: 24px; }
.shelf { grid-auto-columns: clamp(148px, 13vw, 180px); gap: 10px; padding-bottom: 18px; }
.card { padding: 10px; }
.card .art, .v-cover { border-radius: 12px; }
.card .art { box-shadow: var(--control); }
.card:hover { background: #ffffff04; }
.card b { font-weight: 600; }
.t-row { border-radius: 8px; border-bottom: 1px solid #ffffff08; }
.t-row:hover { background: #ffffff06; }
.banner { background: #252629; color: var(--text); box-shadow: var(--recessed); border-radius: 14px; margin-top: 8px; padding: 20px; }
.banner p { color: var(--dim); line-height: 1.6; }
.banner .pill { flex-shrink: 0; }
.searchbox, .form input, .form textarea, .form select { background: #232427; border: 1px solid #ffffff09; box-shadow: var(--recessed); }
.searchbox:focus-within { border-color: var(--blue); }
/* Shared Rollout keycaps: lit top bevel, solid edge and a short downstroke. */
.pill, .iconbtn, .playbtn, .bigplay, .npc-play, .npc-go, .avatar-btn, .song-buy, .chip, .install-app {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms ease-out, color 160ms ease-out;
}
.pill { min-height: 44px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--key-face); color: #e6eaf0; box-shadow: var(--key-shadow); font-weight: 650; letter-spacing: -.01em; }
.pill.ghost { border: 0; background: var(--key-face); }
.pill.white { background: var(--key-silver); color: #18212c; }
.pill.blue, .bigplay, .playbtn, .npc-play { background: var(--key-blue); color: #092335; box-shadow: var(--key-shadow); }
.pill.blue:hover, .bigplay:hover { background: var(--key-blue); }
.pill.big { min-height: 50px; }
.iconbtn.round, .p-controls .iconbtn, .npc-ctrl .iconbtn, .sheet .iconbtn, .entry .iconbtn, .actions .iconbtn, .npc-go {
  background: var(--key-face); box-shadow: var(--key-shadow); color: #d9e0e8;
}
.iconbtn[aria-pressed="true"], .iconbtn.liked { color: var(--blue); box-shadow: var(--key-down); }
.pill:hover, .iconbtn:hover, .bigplay:hover, .playbtn:hover { transform: none; }
.pill:active:not(:disabled), .iconbtn:active:not(:disabled), .playbtn:active, .bigplay:active, .npc-play:active, .npc-go:active, .song-buy:active:not(:disabled), .install-app:active { transform: translateY(2px); box-shadow: var(--key-down); }
.pill:disabled, .iconbtn:disabled { transform: none; opacity: .55; box-shadow: var(--key-down); cursor: default; }
.iconbtn:focus-visible, .pill:focus-visible, .song-buy:focus-visible { outline: 2px solid #9aeaff; outline-offset: 4px; }
.range { height: 22px; background: transparent; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: linear-gradient(to right, var(--blue) var(--fill, 0%), #1d1e20 var(--fill, 0%)); box-shadow: inset 2px 2px 3px #000000b0, 0 1px 1px #ffffff12; }
.range::-moz-range-track { height: 6px; border-radius: 4px; background: linear-gradient(to right, var(--blue) var(--fill, 0%), #1d1e20 var(--fill, 0%)); box-shadow: inset 2px 2px 3px #000000b0, 0 1px 1px #ffffff12; }
.range::-webkit-slider-thumb { box-shadow: 0 2px 4px #00000080; background: #e5e6e8; }
.range::-moz-range-thumb { box-shadow: 0 2px 4px #00000080; background: #e5e6e8; }
.player { padding: 8px 18px; border-radius: 20px; background: linear-gradient(150deg, #323337, #242528); box-shadow: var(--raised); grid-template-columns: minmax(130px, 29%) minmax(0, 44%) minmax(100px, 27%); }
.p-cover { border-radius: 50%; box-shadow: var(--control); }
.p-controls { gap: 16px; }
.p-controls .iconbtn { width: 34px; height: 34px; }
.p-controls .playbtn { width: 42px; height: 42px; }
.p-right { gap: 3px; }
.p-progress { font-size: 10px; }
.p-right .range.vol { max-width: 72px; }
.p-mini-progress i { background: var(--blue); }
.player.empty { opacity: .6; }

/* A moving overhead light follows the active route, as in the supplied menu. */
.tabbar { --tab-index: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-area: nav; align-self: center; height: 72px; position: relative; overflow: hidden; border-radius: 19px; background: linear-gradient(145deg, #343539, #242528); box-shadow: var(--raised); isolation: isolate; }
.tabbar a { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; min-width: 0; font-size: 10px; font-weight: 500; color: var(--dim); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: #fff; }
.tabbar a:focus-visible { outline-offset: -5px; border-radius: 14px; }
.nav-light { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; z-index: -1; pointer-events: none; transform: translateX(calc(var(--tab-index) * 100%)); transition: transform 250ms var(--ease-out); }
.nav-light::before { content: ''; position: absolute; top: 1px; left: 25%; width: 50%; height: 3px; border-radius: 0 0 5px 5px; background: #b4efff; box-shadow: 0 0 8px #75ddff70; }
.nav-light::after { content: ''; position: absolute; inset: 4px 3% 0; background: linear-gradient(#93dcf92b, #93dcf900 85%); clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }

/* Circular record artwork is the centerpiece of both player sizes. */
.npc, .npc:hover { background: linear-gradient(145deg, #333437, #252629); box-shadow: var(--raised); border: 0; border-radius: 24px; }
.npc-head { padding: 22px 20px 12px; gap: 10px; }
.npc-mark { background: transparent; width: 38px; height: 38px; }
.npc-brand b { font-size: 14px; }
.npc-brand small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-top: 5px; }
.npc-art { padding: 30px 30px 34px; }
.npc-art .vinyl { --v-size: 100%; }
.npc-art .v-disc { display: none; }
.npc-art .v-cover { border-radius: 50%; border: 5px solid #202123; box-shadow: -8px -8px 22px #ffffff10, 10px 14px 24px #00000085, 0 0 0 1px #ffffff07; }
.npc-art .v-cover img { border-radius: 50%; }
.npc .v-chips, .npc-waves { display: none; }
.npc-strip { display: flex; flex-direction: column; background: #0000000d; border-top: 1px solid #00000055; box-shadow: 0 -1px 0 #ffffff04; padding: 22px 22px 26px; }
.npc-meta { order: -1; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.npc-meta b { font-size: 16px; font-weight: 600; }
.npc-meta small { margin-top: 7px; font-size: 12px; }
.npc:hover .npc-meta b { color: #fff; }
.npc-time { font-size: 10px; align-self: flex-end; }
.npc-ctrl { flex-direction: column; gap: 22px; margin-top: 16px; }
.npc-ctrl > div { width: 100%; justify-content: space-between; gap: 8px; }
.npc-ctrl > div:last-child { justify-content: center; }
.npc-ctrl .iconbtn { width: 34px; height: 34px; font-size: 16px; }
.npc-ctrl .npc-play { width: 56px; height: 56px; font-size: 24px; }
.npc-ctrl .range.vol { width: 100px; }
.np-card { background: #292a2d; border-radius: 18px; box-shadow: var(--raised); margin-top: 22px; }
.np-card .np-row > span { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.np-card .np-row .pill { flex-shrink: 0; }
.now-idle { border-radius: 24px; padding: 28px 24px 36px; text-align: center; background: linear-gradient(145deg, #333437, #252629); box-shadow: var(--raised); }
.now-idle .idle-record { aspect-ratio: 1; margin: 32px 12px; border-radius: 50%; display: grid; place-items: center; border: 5px solid #202123; background: repeating-radial-gradient(circle, #252629 0 2px, #202123 3px 4px); box-shadow: -8px -8px 22px #ffffff10, 10px 14px 24px #00000085; }
.idle-record img { width: 48%; }
.now-idle .np-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.now-idle h2 { font-size: 20px; margin-bottom: 10px; }
.now-idle p { color: var(--dim); font-size: 13px; line-height: 1.6; }
.sheet { background: linear-gradient(145deg, #353639, #252629 70%); }
.sheet .s-top { margin: 8px auto 32px; max-width: 420px; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; gap: 18px; }
.sheet .s-top > span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sheet .s-top .iconbtn { width: 44px; height: 44px; flex-shrink: 0; font-size: 20px; }
.sheet .s-art { position: relative; isolation: isolate; padding: 28px 16px 40px; margin-bottom: 20px; }
.sheet .s-art::before { content: ''; position: absolute; z-index: -1; inset: -10% -6% 0; border-radius: 50%; background: radial-gradient(ellipse at 30% 28%, #ffffff18, transparent 58%), radial-gradient(ellipse at 78% 54%, #0ad2ff12, transparent 55%); filter: blur(16px); pointer-events: none; }
.sheet .s-art::after { content: ''; position: absolute; z-index: -1; left: 12%; right: 8%; bottom: 16px; height: 24px; border-radius: 50%; background: #0009; filter: blur(12px); pointer-events: none; }
.sheet .s-art .vinyl { --v-size: 75%; margin: 0; }
.sheet .s-art .v-disc { display: block; opacity: 1; transform: translateX(38%); border: 1px solid #66696e; box-shadow: inset 0 1px 2px #ffffff40, 8px 12px 20px #0009, -4px -5px 16px #ffffff0d; }
.sheet .s-art .v-cover { border-radius: 12px; border: 1px solid #ffffff26; box-shadow: -3px -4px 12px #ffffff12, 7px 12px 18px #000b, 0 3px 0 #151618; }
.sheet .s-art .v-cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, #ffffff18, transparent 40%, #0000000d 75%); box-shadow: inset 1px 1px 1px #ffffff45; pointer-events: none; }
.sheet .s-meta b { font-size: 21px; font-weight: 600; }
.sheet .s-meta a { font-size: 14px; display: inline-block; margin-top: 7px; color: var(--dim); }
.sheet .s-meta .iconbtn { width: 44px; height: 44px; flex: none; font-size: 22px; }
.sheet .s-ctrl { margin: 28px auto 32px; }
.sheet .s-ctrl .iconbtn { width: 44px; height: 44px; font-size: 21px; color: var(--dim); }
.sheet .s-ctrl .playbtn { width: 64px; height: 64px; font-size: 27px; }
.sheet .s-prog .times { margin-top: 10px; font-size: 11px; }
.sheet .np-card { margin-top: 30px; }
.dialog, .menu { background: #2d2e32; box-shadow: var(--raised); }

/* Real session loading, followed by the first visit brand entrance. */
.startup { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #27282b; }
.startup img { object-fit: contain; }
.startup > span { font: 800 26px var(--display); }
.startup b { color: var(--blue); }
.startup small { color: var(--dim); font-size: 12px; }
.script-notice { position: fixed; inset: 0; z-index: 120; padding: 40px; background: var(--panel); }
body.entry-open { overflow: hidden; }
body.entry-open #app { visibility: hidden; height: 100dvh; min-height: 0; overflow: hidden; }
.entry { position: fixed; inset: 0; z-index: 100; overflow-y: auto; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 25% 10%, #393a3d, #1c1d20 75%); }
.entry-card { position: relative; width: min(100%, 420px); padding: 40px 36px 32px; border-radius: 32px; text-align: center; background: linear-gradient(145deg, #353639, #27282b 65%); box-shadow: -8px -8px 28px #ffffff05, 18px 24px 60px #00000080, inset 1px 1px 2px #ffffff25, inset -1px -1px 2px #00000080; }
.entry-mark { width: 140px; height: 140px; margin: 0 auto 14px; }
.entry-mark img { width: 100%; height: 100%; object-fit: contain; }
.entry.entry-intro { overflow: hidden; }
.entry-intro .entry-card { opacity: 0; pointer-events: none; }
.entry-intro .entry-mark img { visibility: hidden; }
.entry-intro.entry-intro-reveal .entry-card { opacity: 1; pointer-events: auto; transition: opacity 240ms var(--ease-out); }
.radio-intro { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.radio-intro-backdrop { position: absolute; inset: 0; background: #27282b; }
.entry-intro-reveal .radio-intro-backdrop { opacity: 0; transition: opacity 240ms var(--ease-out); }
.radio-intro-video { position: absolute; left: 50%; top: 50%; width: min(560px, 100vw, 100dvh); aspect-ratio: 1; object-fit: cover; background: #27282b; transform: translate(-50%, -50%); -webkit-mask-image: radial-gradient(closest-side, #000 52%, #0009 80%, transparent); mask-image: radial-gradient(closest-side, #000 52%, #0009 80%, transparent); will-change: transform, opacity; pointer-events: none; }
.radio-intro-logo { position: absolute; left: 50%; top: 50%; width: 216px; height: 216px; object-fit: contain; opacity: 0; transform: translate(-50%, -50%); will-change: transform, opacity; }
.radio-intro-skip { position: absolute; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); min-width: 88px; min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff26; border-radius: 12px; background: #27282b; color: var(--body); font: 600 13px var(--ui); pointer-events: auto; cursor: pointer; }
.radio-intro-skip:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .radio-intro { display: none; }
  .entry-intro .entry-card { opacity: 1; pointer-events: auto; }
  .entry-intro .entry-mark img { visibility: visible; }
}
.entry-brand { font: 800 23px var(--display); letter-spacing: -.04em; }
.entry-brand b { color: var(--blue); }
.entry h1 { margin: 32px 0 12px; font: 800 26px/1.16 var(--display); letter-spacing: -.035em; }
.entry h1:focus { outline: 0; }
.entry-copy { color: var(--dim); font-size: 14px; line-height: 1.65; margin: 0 0 28px; }
.entry-welcome h1 { font-size: 44px; margin-top: 36px; }
.entry-actions { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.entry-actions .pill { width: 100%; }
.entry-explore { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; margin-top: 2px; font-size: 13px; color: var(--body); }
.entry-explore svg { width: 16px; height: 16px; }
.entry-foot { margin: 30px 0 0; font-size: 11px; color: var(--dim); line-height: 1.6; }
.entry .entry-back, .entry .entry-close { position: absolute; top: 24px; width: 40px; height: 40px; font-size: 18px; }
.entry-back { left: 22px; }
.entry-close { right: 22px; }
.entry .form { text-align: left; margin-top: 28px; }
.entry .field { margin-bottom: 18px; }
.entry .field label { font-size: 12px; font-weight: 500; margin: 0 0 9px 5px; color: var(--body); }
.entry .field input { width: 100%; height: 50px; padding: 0 18px; border-radius: 25px; font-size: 16px; }
.entry .field input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.entry .form > .pill { width: 100%; margin-top: 8px; }
.entry .err { color: #ffb0a8; font-size: 13px; line-height: 1.5; }
.entry .err:empty { margin: 0; }
/* Keyboard users jump past the sidebar to the music (WCAG 2.4.1). Hidden until focused. */
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 10000; padding: 12px 16px; border-radius: 10px; background: #fff; color: #000; font: 700 15px/1 Inter, Arial, sans-serif; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid #0ad2ff; outline-offset: 2px; }
.entry-legal { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--dim); text-align: center; }
.entry-legal a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.entry-switch { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 28px; font-size: 13px; color: var(--dim); }
.entry-switch .linkish { color: var(--blue); font-weight: 600; min-height: 32px; }
.entry-switch > span .linkish { margin-left: 6px; }
.entry .pill:disabled { opacity: .7; cursor: wait; }
.toast { z-index: 130; }
@media (min-width: 769px) and (max-height: 820px) {
  .entry:has(#authForm) { padding: 20px; }
  .entry-card:has(#authForm) { padding: 24px 36px; }
  .entry-card:has(#authForm) .entry-mark { width: 72px; height: 72px; margin-bottom: 10px; }
  .entry-card:has(#authForm) .entry-brand { font-size: 18px; }
  .entry-card:has(#authForm) h1 { margin: 20px 0 8px; font-size: 24px; }
  .entry-card:has(#authForm) .entry-copy { margin-bottom: 14px; font-size: 13px; }
  .entry-card:has(#authForm) .form { margin-top: 16px; gap: 12px; }
  .entry-card:has(#authForm) .field { margin-bottom: 0; }
  .entry-card:has(#authForm) .field input { height: 44px; }
  .entry-card:has(#authForm) .err:empty { display: none; }
  .entry-card:has(#authForm) .entry-switch { margin-top: 18px; gap: 12px; }
  .entry-card:has(#authForm) .entry-foot { margin-top: 16px; }
}
@media (hover: hover) and (pointer: fine) {
  .pill:hover, .bigplay:hover, .playbtn:hover, .npc-play:hover { transform: translateY(-1px); }
  .iconbtn:hover { color: #fff; transform: translateY(-1px); }
  .tabbar a:hover { color: #fff; }
}
@media (min-width: 769px) {
  .app { padding-top: calc(12px + var(--safe-t)); }
  .topbar { position: relative; z-index: 40; }
  .topright .pill { min-height: 44px; }
}
@media (min-width: 769px) and (max-width: 1280px) {
  .app, .app.no-now { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "top top" "side main" "nav player"; }
  .nowpanel { display: none; }
  .p-right { display: none; }
  .player { grid-template-columns: minmax(120px, 40%) minmax(0, 60%); }
}
@media (max-width: 768px) {
  :root { --tab-h: 74px; --header-h: calc(88px + var(--safe-t)); }
  .app { display: block; padding: 0; }
  /* Keep account controls below iPhone status chrome, including while sticky. */
  .topbar { height: var(--header-h); padding: calc(12px + var(--safe-t)) 22px 0; background: #2d2e31; box-shadow: 0 1px 0 #ffffff05; backdrop-filter: none; }
  .brand { gap: 6px; font-size: 16px; }
  .brand-logo { width: 44px; height: 44px; }
  .topright .pill { min-height: 44px; font-size: 12px; padding: 0 16px; }
  .topright .avatar-btn { flex: none; width: 44px; height: 44px; }
  .main { border-radius: 0; box-shadow: none; min-height: calc(100dvh - var(--header-h)); background: linear-gradient(150deg, #303134, #27282b 65%); padding-bottom: calc(180px + var(--safe-b)); }
  .sidebar, .nowpanel { display: none; }
  .home-top { padding: 24px 22px 2px; }
  .home-top h1 { font-size: 27px !important; margin-bottom: 22px !important; }
  .chips { margin-bottom: 26px; }
  .chip { height: 34px; font-size: 12px; }
  .quick { gap: 12px; margin-bottom: 26px; }
  .quick a { height: 58px; font-size: 12px; gap: 8px; }
  .quick img { width: 52px; height: 58px; }
  .pad { padding-left: 22px; padding-right: 22px; }
  .shelf { grid-auto-columns: 160px; gap: 12px; margin: 0; padding: 6px 0 20px; }
  .card { padding: 4px; }
  .card b { font-size: 14px; }
  .card small { font-size: 12px; }
  .card .art { margin-bottom: 14px; }
  .banner { margin: 0 22px 26px; padding: 18px; gap: 14px; }
  .banner b { font-size: 15px; }
  .banner p { font-size: 12px; }
  .banner .pill { min-height: 44px; font-size: 13px; }
  .t-row { padding-left: 22px; padding-right: 22px; height: 70px; }
  .t-row .row-more { min-width: 40px; min-height: 44px; }
  .search-mobile .searchbox { background: #252629; border-radius: 24px; color: var(--body); }
  .search-mobile .searchbox input, .search-mobile .searchbox svg { color: #fff; }
  .search-mobile .searchbox input::placeholder { color: var(--dim); }
  .player { left: 14px; right: 14px; bottom: calc(86px + var(--safe-b)); padding: 0 14px; border-radius: 18px; }
  .player.empty { display: none; }
  .p-left { gap: 12px; }
  .p-cover { width: 44px; height: 44px; }
  .p-title { font-size: 13px; }
  .p-controls .playbtn { width: 48px; height: 48px; font-size: 22px; }
  .p-mini-progress { bottom: 4px; left: 66px; right: 66px; background: #161719; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(74px + var(--safe-b)); padding: 0 10px var(--safe-b); border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #35383e, #282b30 65%); box-shadow: inset 0 1px 0 #ffffff20, 0 -6px 18px #11151b38; z-index: 30; }
  .nav-light { left: 10px; bottom: var(--safe-b); width: calc(25% - 5px); }
  .tabbar a { font-size: 10px; gap: 7px; }
  .tabbar a svg { width: 23px; height: 23px; }
  .entry { padding: 0; display: block; background: #28292c; }
  .entry-card { display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 100dvh; border-radius: 0; padding: max(36px, env(safe-area-inset-top)) 32px max(28px, env(safe-area-inset-bottom)); box-shadow: inset 1px 1px 2px #ffffff12; }
  .entry-mark { width: 126px; height: 126px; margin-bottom: 10px; }
  .entry-welcome h1 { font-size: 46px; }
  .entry .entry-back, .entry .entry-close { position: fixed; z-index: 1; top: calc(22px + var(--safe-t)); width: 44px; height: 44px; }
  .entry .form { margin-top: 12px; }
  .entry h1 { font-size: 26px; margin-top: 28px; }
  .entry-welcome h1 { font-size: 46px; }
  .entry-copy { margin-bottom: 22px; }
}
@media (max-width: 360px) {
  .entry-card { padding-left: 24px; padding-right: 24px; }
  .brand { font-size: 14px; }
  .brand-word { display: none; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .sheet { padding-left: 20px; padding-right: 20px; }
  .sheet .s-ctrl .iconbtn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .pill:hover, .iconbtn:hover, .playbtn:hover, .bigplay:hover, .npc-play:hover,
  .pill:active, .iconbtn:active, .playbtn:active, .bigplay:active, .npc-play:active { transform: none; }
}

/* Song purchase stays in the action column, clear of title and artist text. */
.t-head, .t-row { grid-template-columns: 32px minmax(0, 1fr) minmax(0, .65fr) 60px 212px; }
.tracks.compact .t-head, .tracks.compact .t-row { grid-template-columns: 32px minmax(0, 1fr) 60px 212px; }
.t-row { min-height: 68px; }
.t-row .dur { gap: 8px; }
.t-row .ttl > div { flex: 1; min-width: 0; }
.t-row .ttl .song-line { display: block; margin-top: 4px; line-height: 1.3; }
.song-buy { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 5px; min-width: 64px; height: 44px; padding: 0 10px; border-radius: 12px; background: var(--key-face); color: #b6efff; box-shadow: var(--key-shadow); font: 700 13px var(--ui); cursor: pointer; }
.song-buy .buy-label { font-size: 11px; font-weight: 500; color: #c1d5dd; }
.song-buy .buy-price { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.song-buy:disabled { opacity: 1; color: #b3c5ce; background: #24282d; box-shadow: var(--recessed); cursor: default; font-size: 10px; }
.song-buy:disabled svg { width: 14px; height: 14px; color: #95def0; }
.song-purchase { display:flex; align-items:center; gap:18px; margin:24px 0; }
.song-purchase img { width:88px; height:88px; object-fit:cover; border-radius:12px; box-shadow:5px 5px 14px #10131780,inset 0 1px 0 #ffffff12; }
.song-purchase > div { min-width:0; }
.song-purchase b { overflow-wrap:anywhere; }
.purchase-error { color:#ffb4b4; }

.carousel-controls { display:flex; gap:10px; }
.carousel-controls .iconbtn { width:44px; height:44px; flex:none; }
.carousel-controls .iconbtn:disabled { opacity:.3; cursor:default; }
.release-carousel .shelf { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:8px; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#62656b transparent; padding:8px 8px 20px; margin:0 -8px; gap:18px; }
.release-carousel .shelf > .card { flex:0 0 clamp(160px,18vw,220px); width:clamp(160px,18vw,220px); min-width:0; scroll-snap-align:start; }
@media (max-width:768px) { .release-carousel .shelf > .card { flex-basis:160px; width:160px; } }

.carousel-controls .iconbtn { background:var(--key-face); box-shadow:var(--key-shadow); }
.carousel-controls [data-action=carousel-next] svg { transform:rotate(180deg); }

@media (min-width: 769px) and (max-width: 1000px) {
  .t-head, .t-row { grid-template-columns: 28px minmax(0, 1fr) 48px 204px; }
}

/* Phone layout keeps metadata readable and transport controls within thumb reach. */
@media (max-width: 768px) {
  :root { --player-h: 72px; --mobile-gutter: 20px; }
  .topbar { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .topright .pill { padding: 0 16px; }
  .home-top { padding: 24px var(--mobile-gutter) 2px; }
  .home-top h1 { font-size: 28px !important; letter-spacing: -.03em; }
  .chips { gap: 10px; margin-bottom: 24px; }
  .chip { height: 44px; min-width: 52px; border-radius: 13px; padding: 0 16px; font-size: 13px; background: var(--key-face); box-shadow: var(--key-shadow); }
  .chip.on { color: #a2eaff; background: #22282e; box-shadow: var(--key-down); }
  .pad, .search-mobile, .actions, .artist-grid, .rel-foot, .foot { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .quick { gap: 12px; margin-bottom: 28px; }
  .quick a { height: 64px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.35; }
  .quick img { width: 50px; height: 64px; object-fit: cover; }
  .card small { line-height: 1.45; margin-top: 5px; }
  .sec-head { align-items: baseline; gap: 12px; margin-bottom: 12px; }
  .sec-head h2 { font-size: 20px; letter-spacing: -.025em; }
  .banner { margin: 8px var(--mobile-gutter) 28px; padding: 20px; gap: 16px; }
  .banner p { margin-top: 7px; font-size: 13px; line-height: 1.55; }
  .banner .pill { align-self: stretch; }
  .hero:not(.artist-hero) { padding: 32px var(--mobile-gutter) 24px; gap: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, #343940), #27282b 85%); }
  .hero .h-art { width: min(58vw, 224px); border-radius: 14px; box-shadow: 0 14px 24px #10131880, inset 0 1px 0 #ffffff18; }
  .hero .h-info { width: 100%; min-width: 0; }
  .hero:not(.artist-hero) h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.1; overflow-wrap: anywhere; }
  .hero .meta { flex-wrap: wrap; row-gap: 8px; line-height: 1.5; }
  .actions { gap: 16px; padding-top: 20px; padding-bottom: 24px; flex-wrap: wrap; }
  .actions .iconbtn { width: 44px; height: 44px; flex: none; }
  /* The artist action row stays on one line on a phone (owner 2026-10-07): play, shuffle, Subscribe,
     Follow and the more button share the width; the two word buttons give up padding first. */
  .actions { flex-wrap: nowrap; gap: 10px; }
  .actions .bigplay { flex: none; }
  .actions .pill { flex: 0 1 auto; min-width: 0; padding: 0 14px; white-space: nowrap; }
  .actions .iconbtn:last-child { margin-left: auto; }
  .t-row, .tracks.compact .t-row { grid-template-columns: minmax(0, 1fr) 60px 44px; gap: 8px; height: auto; min-height: 80px; margin: 0; padding: 12px 12px 12px var(--mobile-gutter); border-radius: 0; }
  .t-row .ttl { gap: 10px; }
  .t-row .ttl img { width: 44px; height: 44px; border-radius: 9px; }
  .t-row .ttl b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; }
  .t-row .ttl .song-line { font-size: 12px; margin-top: 4px; }
  .t-row .dur { display: contents; }
  .song-buy { min-width: 0; width: 60px; height: 48px; padding: 4px 8px; gap: 1px; flex-direction: column; border-radius: 12px; }
  .song-buy .buy-label { font-size: 10px; line-height: 1.2; }
  .song-buy .buy-price { font-size: 17px; line-height: 1.25; }
  .t-row .row-more { width: 44px; height: 44px; min-width: 44px; color: #c0cad5; opacity: 1; }
  .t-row .row-more:active { box-shadow: var(--key-down); background: #23272c; }
  .player { height: var(--player-h); padding: 0 12px; }
  .p-left { min-width: 0; gap: 10px; }
  .p-left .p-like { flex: none; width: 44px; height: 44px; }
  .p-center { flex: none; }
  .p-mini-progress { left: 68px; right: 72px; bottom: 5px; height: 3px; border-radius: 3px; }
  .sheet { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .sheet .s-top { margin-bottom: 24px; }
  .sheet .s-meta { align-items: center; gap: 12px; }
  .sheet .s-meta > div { min-width: 0; }
  .sheet .s-meta b { font-size: clamp(20px, 6vw, 25px); line-height: 1.25; }
  .sheet .s-ctrl { gap: 10px; margin: 24px auto 28px; }
  .sheet .s-ctrl .iconbtn { flex: none; }
  .sheet .pill { white-space: normal; }
  .modal { padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px); }
  .dialog { padding: 24px; border-radius: 20px; max-height: 100%; }
  .dialog h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
  .dialog .pill { width: 100%; min-height: 48px; height: auto; padding: 12px 16px; white-space: normal; line-height: 1.3; text-align: center; }
  .dialog .row { gap: 12px; }
  .dialog .row > * { flex: 1 1 100%; }
  .song-purchase { gap: 16px; margin: 24px 0; }
  .song-purchase img { width: 72px; height: 72px; flex: none; }
  .song-purchase b { display: block; font-size: 16px; line-height: 1.35; }
  .song-purchase p { margin: 5px 0 0; font-size: 13px; }
  .acct { padding: 28px var(--mobile-gutter); }
  .acct h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; }
  .acct .card-box { padding: 20px; border-radius: 16px; box-shadow: var(--recessed); }
  .acct .card-box .pill { min-height: 44px; }
  .sub-row { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .sub-row > .pill { margin-left: 0; }
  .promise { gap: 0; }
  .promise div { padding: 18px 0; border-radius: 0; background: transparent; border-bottom: 1px solid #ffffff0d; }
  .promise div:last-child { border-bottom: 0; }
  .tier { border-radius: 16px; }
  .tier .pill { width: 100%; }
  .menu { border-radius: 16px; padding: 6px; max-width: calc(100vw - 24px); }
  .menu button, .menu a { min-height: 48px; border-radius: 10px; }
  .entry-actions .pill, .entry .form > .pill { border-radius: 16px; }
  .entry-switch .linkish { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 360px) {
  :root { --mobile-gutter: 16px; }
  .dialog { padding: 22px 20px; }
  .song-purchase { gap: 12px; }
  .song-purchase img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .song-buy, .install-app { transition: none; }
  .pill:active:not(:disabled), .iconbtn:active:not(:disabled), .song-buy:active:not(:disabled), .install-app:active { transform: none; }
}

/* The trim everywhere (owner 2026-10-06): banners, heroes, boxes and artwork sit in lit housings,
   light from the top left, shade to the bottom right, a rim light on every edge. Inputs stay recessed. */
:root {
  --rim: inset 0 1px 1px #ffffff3a, inset 1px 0 1px #ffffff12, inset 0 -2px 5px #00000085, inset -1px 0 2px #00000040;
  --housing: linear-gradient(150deg, #323337, #26272a 70%);
}
.hero { position: relative; margin: 16px 16px 0; border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid #ffffff10; box-shadow: var(--raised); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: var(--rim); }
.hero:not(.artist-hero) { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 30%, #30353c), #27282b 88%); }
.hero.artist-hero { background-color: #2a2b2f; }
.hero.artist-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.74) 100%); }
.under-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, #2b2c30) 0, #27282b 260px); padding-top: 20px; }
.hero .h-art { position: relative; border-radius: 16px; border: 1px solid #ffffff1a; box-shadow: -4px -4px 12px #ffffff10, 9px 12px 26px #000000a8, 0 2px 0 #15171a; }
.hero .h-art::after, .card .art::after, .vinyl .v-cover::after, .about::after, .browse a::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: var(--rim); }
.hero.artist-hero .h-art.round { border: 4px solid #2b2d31; box-shadow: -5px -5px 14px #ffffff12, 9px 12px 28px #000000b0, 0 0 0 1px #ffffff1f; }
.hero.artist-hero .h-art.round::after { box-shadow: inset 0 2px 3px #ffffff45, inset 0 -4px 8px #00000080; }
.card .art { box-shadow: var(--control), 0 2px 0 #15171a; }
.vinyl .v-cover { border-radius: 14px; box-shadow: -4px -4px 12px #ffffff0e, 9px 12px 26px #000000a8, 0 2px 0 #15171a; }
.banner { position: relative; background: var(--housing); border: 1px solid #ffffff0e; box-shadow: var(--raised), var(--rim); color: var(--text); }
.banner .pill { background: var(--key-silver); color: #18212c; box-shadow: var(--key-shadow); }
.tier, .tiers .tier { position: relative; background: var(--housing); border: 1px solid #ffffff0c; border-radius: 18px; box-shadow: var(--raised), var(--rim); }
.about { border-radius: 20px; border: 1px solid #ffffff12; box-shadow: var(--raised); }
.about:hover { transform: none; }
.browse a { position: relative; border-radius: 16px; box-shadow: var(--control), 0 2px 0 #15171a; }
.card-box, .acct .card-box { background: var(--housing); border: 1px solid #ffffff0c; border-radius: 18px; box-shadow: var(--raised), var(--rim); }
.promise div { background: var(--housing); border-radius: 16px; box-shadow: var(--control), inset 0 1px 0 #ffffff22; }
.quick a { box-shadow: var(--control), inset 0 1px 0 #ffffff22; }
.side-item .thumb, .t-row .ttl img, .song-purchase img, .mini-av { box-shadow: 0 3px 8px #00000080, 0 0 0 1px #ffffff14, inset 0 1px 0 #ffffff20; }
.live-creator { box-shadow: var(--key-shadow); }
@media (max-width: 768px) {
  /* Every background on the phone frames the whole width, no card (owner 2026-10-06): the artist
     banner and the song, release and playlist heroes alike. The lighting stays on the top and
     bottom edges and each one throws a shadow on the page below. */
  .hero { margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 24px var(--mobile-gutter, 20px) 22px; box-shadow: 0 10px 26px #00000075; }
  .hero::after { box-shadow: inset 0 1px 1px #ffffff3a, inset 0 -2px 6px #00000090; }
  .hero.artist-hero { min-height: 340px; }
  .hero.artist-hero .h-art.round { width: 96px; border-width: 3px; }
  .under-hero { padding-top: 16px; }
  .topbar { box-shadow: inset 0 -1px 0 #00000070, 0 1px 0 #ffffff08, 0 8px 18px #00000042; }
  .main { background: linear-gradient(150deg, #2d2e31, #27282b 65%); }
  .tier { border-radius: 18px; }
  .acct .card-box { box-shadow: var(--raised), var(--rim); }
  .promise div { padding: 18px; border-bottom: 0; margin-bottom: 12px; background: var(--housing); border-radius: 16px; }
}
