/* Chardonnay Nights — web player.
   Visual system from design/Chardonnay Nights-v5 (DEVELOPER-NOTES.md):
   glass over blurred album art, twilight palette, Instrument Serif /
   Geist / JetBrains Mono. Desktop-first; phones get a single column. */

/* ─── Fonts (OFL; subset to Latin from the iOS app's TTFs) ─────────────── */

@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("../fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2"); }

/* ─── Tokens ───────────────────────────────────────────────────────────── */

:root {
	--bg: #0a0815;
	--accent: #ec4899;
	--accent-glow: rgb(236 72 153 / 0.55);
	--ink: #f5edff;
	--ink-2: rgb(245 237 255 / 0.72);
	--ink-3: rgb(245 237 255 / 0.5);
	--rule: rgb(255 255 255 / 0.08);
	--glass-fill: rgb(255 255 255 / 0.05);
	--glass-border: rgb(255 255 255 / 0.12);
	--glass-blur: blur(24px) saturate(160%);

	--font-display: "Instrument Serif", "Times New Roman", serif;
	--font-body: "Geist", "Helvetica Neue", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	--page-max: 1320px;
	--gutter: clamp(16px, 4vw, 48px);
	--mini-h: 72px;
	--ease-drawer: cubic-bezier(0.3, 0.9, 0.3, 1);
	--ease-flip: cubic-bezier(0.7, 0, 0.3, 1);

	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

body.superkeith { background: #000 url("../img/SuperKeith.gif") repeat top left; }
body.superkeith .backdrop { opacity: 0.25; }

button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mono {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.accent { color: var(--accent); }
.dim { color: var(--ink-3); }

.visually-hidden {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── Backdrop: three heavily blurred covers + dim + grain ─────────────── */

.backdrop {
	position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
	background: var(--bg);
}
.backdrop__blob {
	position: absolute;
	width: 110%; height: 65%;
	object-fit: cover;
	filter: blur(80px) saturate(170%);
	opacity: 0;
	transform: translateZ(0);
	transition: opacity 0.9s ease;
}
.backdrop__blob.is-loaded { opacity: 0.92; }
.backdrop__blob:nth-child(1) { top: -25%; left: -30%; width: 120%; height: 70%; }
.backdrop__blob:nth-child(2) { top: 15%; right: -35%; }
.backdrop__blob:nth-child(3) { bottom: -30%; left: 15%; }
.backdrop::after {
	/* dim + vignette, then 4% overlay grain */
	content: ""; position: absolute; inset: 0;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.04'/></svg>"),
		radial-gradient(ellipse at 50% 0%, rgb(0 0 0 / 0.28) 0%, rgb(0 0 0 / 0.56) 100%),
		linear-gradient(180deg, rgb(2 1 8 / 0.22) 0%, rgb(2 1 8 / 0.71) 100%);
}
.backdrop--login {
	background:
		radial-gradient(ellipse at 20% 10%, rgb(236 72 153 / 0.35), transparent 55%),
		radial-gradient(ellipse at 85% 80%, rgb(99 60 200 / 0.35), transparent 55%),
		var(--bg);
}

/* ─── Glass ────────────────────────────────────────────────────────────── */

.glass {
	background: var(--glass-fill);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border: 0.5px solid var(--glass-border);
	border-radius: 22px;
	box-shadow:
		inset 0 0.5px 0 rgb(255 255 255 / 0.18),
		inset 0 -0.5px 0 rgb(0 0 0 / 0.18),
		0 12px 30px rgb(0 0 0 / 0.28);
}

.pill {
	appearance: none;
	display: inline-flex; align-items: center; gap: 8px;
	border: 0.5px solid rgb(255 255 255 / 0.14);
	background: rgb(255 255 255 / 0.07);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.2);
	color: inherit;
	padding: 9px 15px;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, border-color 0.2s;
}
.pill:hover { background: rgb(255 255 255 / 0.13); border-color: rgb(255 255 255 / 0.24); }
.pill.is-active { border-color: var(--accent); color: var(--accent); }
.pill svg { width: 12px; height: 12px; fill: currentColor; }
.pill:disabled, .btn-accent:disabled { opacity: 0.45; cursor: default; }

.btn-accent {
	appearance: none; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--accent); color: #000;
	padding: 13px 26px; border-radius: 999px;
	font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1;
	box-shadow: 0 8px 24px rgb(236 72 153 / 0.33), inset 0 0.5px 0 rgb(255 255 255 / 0.4);
	transition: transform 0.15s, box-shadow 0.2s;
}
.btn-accent:hover { box-shadow: 0 10px 32px rgb(236 72 153 / 0.5), inset 0 0.5px 0 rgb(255 255 255 / 0.4); }
.btn-accent:active { transform: scale(0.97); }
.btn-accent svg { width: 12px; height: 12px; fill: currentColor; }

.icon-btn {
	appearance: none; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px; padding: 0;
	border: 0.5px solid rgb(255 255 255 / 0.14);
	background: rgb(255 255 255 / 0.08);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	box-shadow: inset 0 0.5px 0 rgb(255 255 255 / 0.18);
	transition: background 0.2s;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.15); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn--play {
	background: var(--accent); color: #000; border: 0;
	box-shadow: 0 6px 20px rgb(236 72 153 / 0.45), inset 0 0.5px 0 rgb(255 255 255 / 0.4);
}
.icon-btn--play:hover { background: var(--accent); filter: brightness(1.08); }
.icon-btn--play svg { width: 18px; height: 18px; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass, .pill, .icon-btn:not(.icon-btn--play), .mini__bar { background: rgb(28 22 40 / 0.92); }
}

/* ─── Layout ───────────────────────────────────────────────────────────── */

.view {
	position: relative; z-index: 1;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 0 var(--gutter) calc(var(--mini-h) + 64px);
	min-height: 100vh;
}
.view:focus { outline: none; }

/* ─── Masthead + header ────────────────────────────────────────────────── */

.topbar {
	position: relative;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
	flex-wrap: wrap;
	padding-top: clamp(28px, 6vh, 64px);
}

.masthead__kicker { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; }
.masthead__kicker:hover { color: var(--ink); }
.logo-mark {
	width: 18px; height: 18px; flex: none;
	-webkit-mask: url("../img/chard-logo.png") center / contain no-repeat;
	mask: url("../img/chard-logo.png") center / contain no-repeat;
	background: var(--accent);
	animation: logo-pulse 3.6s ease-in-out infinite;
}
@keyframes logo-pulse {
	0%, 100% { filter: drop-shadow(0 0 0 rgb(236 72 153 / 0)); }
	50% { filter: drop-shadow(0 0 6px rgb(236 72 153 / 0.67)); }
}
.masthead__title {
	margin: 10px 0 0;
	font-family: var(--font-display); font-style: italic; font-weight: 400;
	font-size: clamp(52px, 7vw, 92px); line-height: 0.92; letter-spacing: -0.01em;
}
.masthead__title span { display: block; }
.masthead__title span + span { margin-top: -0.06em; }
.masthead__sub { margin: 14px 0 0; max-width: 34ch; color: var(--ink-2); font-size: 14px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex: none; max-width: 100%; }

.search {
	display: flex; align-items: center; gap: 8px;
	padding: 4px 4px 4px 16px;
	border-radius: 999px;
	width: 320px;
}
.search svg { width: 14px; height: 14px; fill: var(--ink-3); flex: none; }
.search input {
	flex: 1; min-width: 0;
	appearance: none; border: 0; background: transparent; color: var(--ink);
	font: inherit; font-size: 14px; padding: 8px 0;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; }
.search:focus-within { border-color: rgb(236 72 153 / 0.6); }
.search kbd {
	font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
	border: 0.5px solid var(--glass-border); border-radius: 6px; padding: 2px 6px; margin-right: 8px;
}

.user {
	position: absolute; top: clamp(28px, 6vh, 64px); right: 0;
	display: flex; align-items: center; gap: 14px; color: var(--ink-3);
}
.user a { color: var(--ink-2); text-decoration: none; }
.user a:hover { color: var(--accent); }

/* ─── Archive grid ─────────────────────────────────────────────────────── */

.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin: clamp(32px, 5vh, 52px) 0 18px;
	padding-bottom: 10px;
	border-bottom: 0.5px solid var(--rule);
	color: var(--ink-3);
}
.section-head h2 { margin: 0; font: inherit; }
.sort { display: flex; gap: 4px; }
.sort button {
	appearance: none; border: 0; background: none; cursor: pointer;
	color: var(--ink-3); padding: 4px 6px;
	font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
}
.sort button[aria-pressed="true"] { color: var(--accent); }

.wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
	gap: 28px 18px;
	list-style: none; margin: 0; padding: 0;
}
.tile {
	appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
	display: block; width: 100%; text-align: left; color: inherit; text-decoration: none;
}
.cover {
	position: relative;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: rgb(255 255 255 / 0.06);
	box-shadow: 0 10px 28px rgb(0 0 0 / 0.38), inset 0 0 0 0.5px rgb(255 255 255 / 0.1);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.tile .cover { transition: transform 0.25s var(--ease-drawer), box-shadow 0.25s; }
.tile:hover .cover, .tile:focus-visible .cover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(236 72 153 / 0.35);
}
.tile.is-playing .cover { box-shadow: 0 0 0 2px var(--accent), 0 12px 32px rgb(236 72 153 / 0.35); }
.tile__meta { margin-top: 10px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.tile__title {
	margin-top: 3px;
	font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.1;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile:hover .tile__title { color: var(--accent); }
.dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }

/* ─── Album page ───────────────────────────────────────────────────────── */

.album {
	display: grid;
	grid-template-columns: minmax(280px, 400px) 1fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
	padding-top: 28px;
}
.album__nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }
.album__aside { position: sticky; top: 28px; text-align: center; }
.album__cover {
	width: min(100%, 340px); margin: 12px auto 0;
	transform: perspective(800px) rotateX(8deg) rotateY(-3deg);
	filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.5));
}
.album__cover .cover { border-radius: 14px; }
.album__no { margin-top: 34px; color: var(--ink-2); letter-spacing: 0.24em; }
.album__title {
	margin: 6px 0 0;
	font-family: var(--font-display); font-style: italic; font-weight: 400;
	font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.01em;
	color: var(--accent);
	text-wrap: balance;
}
.album__facts { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.album__actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }

.tracks { list-style: none; margin: 0; padding: 0; }
.tracks__head {
	display: flex; justify-content: space-between;
	padding: 12px 0 10px; border-bottom: 0.5px solid var(--rule); color: var(--ink-3);
}
.track {
	appearance: none; border: 0; background: none; cursor: pointer; color: inherit;
	display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px;
	width: 100%; text-align: left;
	padding: 11px 10px; margin: 0 -10px; width: calc(100% + 20px);
	border-bottom: 0.5px solid var(--rule);
	border-radius: 8px;
	transition: background 0.15s;
}
.track:hover { background: rgb(255 255 255 / 0.05); }
.track__no { color: var(--ink-3); font-size: 10px; letter-spacing: 0.1em; }
.track__main { min-width: 0; }
.track__name, .track__by { display: block; }
.track .eq { display: none; }
.track.is-playing .eq { display: inline-flex; }
.track.is-playing .track__num { display: none; }
.tracks .status { padding: 32px 0; text-align: left; }
.track__name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__by { font-size: 13px; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__dur { color: var(--ink-3); letter-spacing: 0.08em; }
.track.is-playing .track__name { color: var(--accent); }
.track.is-playing .track__no { color: var(--accent); }

/* playing indicator: three bars */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.eq i { width: 2px; background: var(--accent); border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.is-paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }

/* ─── Search results / status ──────────────────────────────────────────── */

.page-title {
	margin: 0;
	font-family: var(--font-display); font-style: italic; font-weight: 400;
	font-size: clamp(36px, 4vw, 56px); line-height: 1;
}
.status { padding: 48px 0; text-align: center; color: var(--ink-3); }
.status .btn-accent { margin-top: 18px; }

/* ─── Mini player ──────────────────────────────────────────────────────── */

.mini {
	position: fixed; z-index: 20;
	left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	width: min(780px, calc(100% - 16px));
	animation: mini-in 0.34s var(--ease-drawer);
}
@keyframes mini-in { from { transform: translate(-50%, 24px); opacity: 0; } }
.mini__bar {
	position: relative; overflow: hidden;
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px;
	border-radius: 18px;
	background: rgb(255 255 255 / 0.07);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	border: 0.5px solid var(--glass-border);
	box-shadow: 0 12px 30px rgb(0 0 0 / 0.4), inset 0 0.5px 0 rgb(255 255 255 / 0.2);
}
.mini__progress {
	position: absolute; top: 0; left: 0; height: 1.5px; width: 0;
	background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.mini__open {
	appearance: none; border: 0; background: none; cursor: pointer; color: inherit; padding: 0;
	flex: 1; min-width: 0;
	display: flex; align-items: center; gap: 12px; text-align: left;
}
.mini__open .cover { width: 46px; height: 46px; flex: none; border-radius: 8px; box-shadow: none; }
.mini__text { min-width: 0; }
.mini__title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__sub { margin-top: 2px; color: var(--ink-2); font-size: 9px; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__controls { display: flex; align-items: center; gap: 8px; flex: none; }
.mini__time { color: var(--ink-3); min-width: 88px; text-align: right; letter-spacing: 0.08em; }

/* ─── Now Playing ──────────────────────────────────────────────────────── */

.now {
	position: fixed; inset: 0; z-index: 30;
	overflow-y: auto;
	background: var(--bg);
	animation: now-in 0.34s var(--ease-drawer);
}
@keyframes now-in { from { transform: translateY(32px); opacity: 0; } }
.now .backdrop { position: fixed; }
.now .backdrop__blob { filter: blur(90px) saturate(170%); }
.now__inner {
	position: relative; z-index: 1;
	max-width: var(--page-max); margin: 0 auto;
	min-height: 100%;
	padding: max(20px, env(safe-area-inset-top)) var(--gutter) 40px;
	display: grid;
	grid-template-columns: 1fr minmax(320px, 440px);
	grid-template-rows: auto 1fr;
	column-gap: clamp(32px, 6vw, 96px);
}
.now__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 8px 0 24px; }
.now__crumb {
	appearance: none; border: 0; background: none; cursor: pointer; color: inherit;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.now__crumb .logo-mark { width: 24px; height: 24px; background: var(--ink); opacity: 0.85; animation: none; }
.now__crumb span:last-child { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--accent); }
.now__crumb:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }

.now__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 420px; }
.now__panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-bottom: 20px; }

.flip {
	appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
	position: relative;
	width: clamp(260px, 32vw, 400px); aspect-ratio: 1;
	perspective: 1200px;
}
.flip::before {
	content: ""; position: absolute; inset: -30%; pointer-events: none;
	background: radial-gradient(circle, rgb(236 72 153 / 0.27) 0%, transparent 55%);
	filter: blur(28px);
}
.flip__card {
	position: absolute; inset: 0;
	transform-style: preserve-3d;
	transform: rotateX(10deg);
	transition: transform 0.8s var(--ease-flip);
}
.flip.is-flipped .flip__card { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__face--back { transform: rotateY(180deg); }
.flip__face--back .cover { width: 100%; height: 100%; border-radius: 12px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.6), 0 0 40px rgb(236 72 153 / 0.2); }

.vinyl { position: absolute; inset: 0; }
.vinyl__disc, .vinyl__label { animation: spin 6s linear infinite; animation-play-state: paused; }
.is-playing .vinyl__disc, .is-playing .vinyl__label { animation-play-state: running; }
.vinyl__disc {
	position: absolute; inset: 0; border-radius: 50%;
	background:
		conic-gradient(from 30deg, rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / 0.06) 40deg, rgb(255 255 255 / 0) 80deg, rgb(255 255 255 / 0) 180deg, rgb(255 255 255 / 0.05) 220deg, rgb(255 255 255 / 0) 260deg),
		repeating-radial-gradient(circle, #1a0f1a 0 1.5%, #0a050a 1.5% 3%);
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.7), inset 0 0 30px rgb(0 0 0 / 0.5);
}
.vinyl__label {
	position: absolute; top: 28%; left: 28%; width: 44%; height: 44%;
	border-radius: 50%; overflow: hidden;
	box-shadow: 0 0 0 2px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.vinyl__label img { width: 100%; height: 100%; object-fit: cover; }
.vinyl__hole { position: absolute; top: 48.5%; left: 48.5%; width: 3%; height: 3%; border-radius: 50%; background: #000; }
@keyframes spin { to { transform: rotate(360deg); } }

.flip-hint { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 9px; }
.flip-hint .dot { width: 4px; height: 4px; }

.now__title {
	margin: 0;
	font-family: var(--font-display); font-style: italic; font-weight: 400;
	font-size: clamp(30px, 3vw, 42px); line-height: 1.02; letter-spacing: -0.01em;
	text-wrap: balance;
}
.now__artist { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

.scrub { margin-top: 26px; }
.scrub input[type="range"] {
	--p: 0%;
	appearance: none; -webkit-appearance: none;
	width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer;
}
.scrub input[type="range"]::-webkit-slider-runnable-track {
	height: 3px; border-radius: 999px;
	background: linear-gradient(90deg, var(--accent) var(--p), rgb(255 255 255 / 0.14) var(--p));
}
.scrub input[type="range"]::-moz-range-track { height: 3px; border-radius: 999px; background: rgb(255 255 255 / 0.14); }
.scrub input[type="range"]::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--accent); }
.scrub input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 12px; height: 12px; margin-top: -4.5px; border-radius: 999px; border: 0;
	background: var(--accent); box-shadow: 0 0 14px var(--accent), 0 0 4px rgb(255 255 255 / 0.4);
}
.scrub input[type="range"]::-moz-range-thumb {
	width: 12px; height: 12px; border-radius: 999px; border: 0;
	background: var(--accent); box-shadow: 0 0 14px var(--accent), 0 0 4px rgb(255 255 255 / 0.4);
}
.scrub__times { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ink-3); font-size: 9px; letter-spacing: 0.1em; }

.transport { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 22px; }
.transport .icon-btn { width: 54px; height: 54px; }
.transport .icon-btn--play { width: 74px; height: 74px; box-shadow: 0 8px 30px rgb(236 72 153 / 0.53), inset 0 0.5px 0 rgb(255 255 255 / 0.4), 0 0 30px rgb(236 72 153 / 0.27); }
.transport .icon-btn--play svg { width: 22px; height: 22px; }

.queue { margin-top: 34px; min-height: 0; }
.queue__head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 0.5px solid var(--rule); color: var(--ink-3); }
.queue__list { list-style: none; margin: 0; padding: 0; max-height: 34vh; overflow-y: auto; scrollbar-width: thin; }
.queue .track { padding: 8px 10px; grid-template-columns: 26px 1fr auto; }
.queue .track__name { font-size: 14px; }
.queue .track__by { font-size: 12px; }
.queue .track.is-past { opacity: 0.45; }

.kbd-help { margin-top: 26px; color: var(--ink-3); font-size: 9px; letter-spacing: 0.12em; line-height: 2; }
.kbd-help kbd { font-family: inherit; border: 0.5px solid var(--glass-border); border-radius: 5px; padding: 1px 5px; color: var(--ink-2); }

/* ─── Login ────────────────────────────────────────────────────────────── */

.login {
	position: relative; z-index: 1;
	min-height: 100vh;
	display: grid; place-content: center; gap: 36px;
	padding: 32px 16px;
	grid-template-columns: min(380px, 100%);
}
.login__form { padding: 26px; display: grid; gap: 16px; }
.login__msg { margin: 0; color: var(--accent); }
.field { display: grid; gap: 8px; color: var(--ink-3); }
.field input {
	appearance: none;
	background: rgb(0 0 0 / 0.25); color: var(--ink);
	border: 0.5px solid var(--glass-border); border-radius: 12px;
	padding: 12px 14px; font: inherit; font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(236 72 153 / 0.2); }
.login__form .btn-accent { margin-top: 6px; }

.noscript { position: relative; z-index: 1; text-align: center; padding: 80px 16px; }

/* ─── Narrow screens ───────────────────────────────────────────────────── */

@media (max-width: 860px) {
	.album { grid-template-columns: 1fr; gap: 28px; }
	.album__aside { position: static; }
	.now__inner { grid-template-columns: 1fr; }
	.now__stage { min-height: 0; padding: 8px 0 20px; }
	.flip { width: min(72vw, 320px); }
	.queue__list { max-height: none; }
	.kbd-help { display: none; }
}

@media (max-width: 600px) {
	:root { --mini-h: 66px; }
	.topbar { align-items: stretch; flex-direction: column; }
	.toolbar { width: 100%; flex: 1 1 auto; }
	.search { flex: 1; width: auto; min-width: 0; }
	.search kbd { display: none; }
	.user { position: static; order: -1; width: 100%; justify-content: space-between; }
	.topbar { padding-top: 20px; }
	.wall { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
	.tile__title { font-size: 17px; }
	.mini__time, .mini__controls .icon-btn--prev { display: none; }
	.mini__open .cover { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.vinyl__disc, .vinyl__label { animation: none; }
}
