@font-face {
  font-family: "Noto Sans SC";
  src: url("/garden/assets/fonts/NotoSansSC-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #26304a;
  --muted: #6f7890;
  --paper: rgba(255, 255, 255, 0.84);
  --line: rgba(61, 72, 100, 0.12);
  --sun: #ffd95f;
  --mint: #bfe8d0;
  --sky: #badaf5;
  --berry: #f4a3a9;
  --lilac: #d7c4ef;
  --shadow: 0 18px 55px rgba(73, 68, 89, 0.13);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 9%, rgba(255, 220, 106, 0.7) 0 5%, transparent 5.2%),
    radial-gradient(circle at 86% 12%, rgba(195, 226, 250, 0.76) 0 7%, transparent 7.2%),
    linear-gradient(155deg, #fff9df 0%, #fff9f4 43%, #eef9f1 100%);
  -webkit-tap-highlight-color: transparent;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(55, 112, 202, 0.32);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.sky-decor { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.sky-decor i { position: absolute; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; filter: blur(.2px); animation: float-note 11s ease-in-out infinite alternate; }
.sky-decor i:nth-child(1) { width: 84px; height: 84px; left: -26px; top: 32%; background: rgba(244,163,169,.17); }
.sky-decor i:nth-child(2) { width: 42px; height: 42px; right: 7%; top: 23%; background: rgba(215,196,239,.24); animation-delay: -3s; }
.sky-decor i:nth-child(3) { width: 116px; height: 116px; right: -45px; top: 64%; background: rgba(191,232,208,.25); animation-delay: -7s; }
.sky-decor i:nth-child(4) { width: 30px; height: 30px; left: 12%; top: 76%; background: rgba(186,218,245,.32); animation-delay: -5s; }
@keyframes float-note { to { transform: translateY(-18px) rotate(8deg); } }

.eyebrow { margin: 0 0 8px; color: #597069; font-size: .69rem; font-weight: 800; letter-spacing: .17em; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; overflow: hidden; }
.login-card { width: min(100%, 440px); padding: 34px 26px 28px; border: 1px solid rgba(255,255,255,.8); border-radius: 34px; background: rgba(255,255,255,.74); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-card h1 { margin: 0; font-size: clamp(2.25rem, 12vw, 4rem); letter-spacing: -.06em; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.login-card label { display: block; margin-bottom: 9px; font-weight: 700; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.password-row input, .group-form input, .group-form select { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 13px 14px; color: var(--ink); }
.password-row button, .group-form button { border: 0; border-radius: 14px; padding: 0 20px; background: var(--ink); color: white; font-weight: 800; }
.form-status, #group-status { min-height: 1.4em; margin: 8px 0 0; color: #b14a55; font-size: .84rem; }
.back-link { display: inline-block; margin-top: 18px; color: #607086; text-decoration: none; font-weight: 650; }
.login-illustration { position: absolute; width: min(88vw, 600px); height: min(88vw, 600px); pointer-events: none; }
.login-illustration span { position: absolute; display: grid; place-items: center; border-radius: 50%; color: rgba(49,59,78,.54); font-weight: 900; }
.login-illustration span:nth-child(1) { width: 80px; height: 80px; right: 0; top: 8%; background: var(--sun); transform: rotate(13deg); }
.login-illustration span:nth-child(2) { width: 58px; height: 58px; left: 2%; bottom: 6%; background: var(--mint); transform: rotate(-16deg); }
.login-illustration span:nth-child(3) { width: 46px; height: 46px; left: 4%; top: 8%; background: var(--lilac); }

.app { min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.site-header { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(18px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: rgba(255,252,239,.7); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.brand span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: var(--sun); }
.header-actions { display: flex; gap: 7px; }
.header-actions button, .library-actions button, #filters-reset { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.74); padding: 8px 12px; font-size: .79rem; font-weight: 700; }

main, footer { width: min(1120px, calc(100% - 30px)); margin-inline: auto; }
.hero { min-height: 315px; display: grid; align-items: center; grid-template-columns: 1fr .62fr; gap: 24px; padding: 48px 12px 38px; }
.hero h1 { margin: 0; font-size: clamp(2.65rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: #d66e75; font-style: normal; }
.hero p:last-child { max-width: 620px; color: var(--muted); line-height: 1.75; }
.hero-orbit { position: relative; width: min(32vw, 300px); aspect-ratio: 1; justify-self: center; border: 1px dashed rgba(70,84,105,.2); border-radius: 50%; animation: spin 28s linear infinite; }
.hero-orbit::before { content: "♫"; position: absolute; inset: 22%; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--sun), #ffefaf); box-shadow: 0 16px 50px rgba(217,173,43,.2); font-size: clamp(2rem,6vw,4.5rem); }
.hero-orbit b { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: white; }
.hero-orbit b:nth-child(1) { left: 8%; top: 6%; }
.hero-orbit b:nth-child(2) { right: 4%; top: 27%; background: var(--berry); }
.hero-orbit b:nth-child(3) { left: 12%; bottom: 2%; background: var(--mint); }
.hero-orbit b:nth-child(4) { right: 17%; bottom: 5%; background: var(--sky); }
@keyframes spin { to { transform: rotate(360deg); } }

.search-panel, .library-section, .privacy-note { border: 1px solid rgba(255,255,255,.92); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.search-panel { padding: 18px; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 15px; }
.search-box span { font-size: 1.7rem; }
.search-box input { width: 100%; min-height: 52px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box > button { min-width: 48px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 999px; padding: 0 10px; background: #f2f1eb; color: var(--ink); font-size: .68rem; font-weight: 750; }
.search-box > button::first-letter { color: #d2606b; }
.search-box > button small { font-size: .68rem; }
.search-box > button.is-listening { background: #ffe2e4; color: #9e3f4a; animation: voice-pulse 1.1s ease-in-out infinite; }
.search-box > button.is-unsupported { display: none; }
.voice-status { min-height: 1.35em; margin: 7px 5px -2px; color: var(--muted); font-size: .72rem; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 7px rgba(210,96,107,.12); } }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.filter-row label { min-width: 135px; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 13px; border-radius: 14px; background: rgba(243,244,239,.9); font-size: .78rem; font-weight: 700; }
.filter-row select { max-width: 72%; border: 0; background: transparent; color: var(--ink); }

.mood-section, .library-section { margin-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 6vw, 3.1rem); letter-spacing: -.045em; }
.section-heading > span { color: var(--muted); font-size: .8rem; }
.collection-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 24%); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 10px; }
.collection-rail::-webkit-scrollbar { display: none; }
.collection-card { min-height: 155px; display: flex; flex-direction: column; justify-content: space-between; scroll-snap-align: start; border: 0; border-radius: 24px; padding: 18px; text-align: left; background: var(--tone, var(--sun)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); overflow: hidden; position: relative; }
.collection-card::after { content: "♪"; position: absolute; right: -3px; bottom: -28px; color: rgba(255,255,255,.52); font-size: 7rem; transform: rotate(-10deg); }
.collection-card strong, .collection-card span { position: relative; z-index: 1; }
.collection-card strong { font-size: 1.15rem; }
.collection-card span { font-size: .75rem; }

.library-section { padding: 22px; }
.library-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 9px; color: var(--muted); font-size: .8rem; }
.track-list { display: grid; gap: 9px; }
.track-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 68px; border: 1px solid transparent; border-radius: 18px; padding: 8px; transition: background .2s, border-color .2s, transform .2s; }
.track-row:hover, .track-row.is-current { background: #fff; border-color: var(--line); }
.track-row:active { transform: scale(.995); }
.track-play, .track-cover { width: 48px; height: 48px; border: 0; border-radius: 15px; background: var(--track-tone, var(--sky)); display: grid; place-items: center; font-weight: 900; overflow: hidden; }
.track-cover img, .mini-cover img, .large-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-copy { min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; }
.track-copy strong, .track-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.track-copy strong { font-size: .94rem; }
.track-copy small { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.track-end { display: flex; align-items: center; gap: 8px; }
.track-duration { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.track-groups { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #f3f1ea; font-size: 1.05rem; }
.track-cache { min-width: 46px; height: 36px; border: 0; border-radius: 12px; padding: 0 9px; background: #edf5ef; color: #407056; font-size: .68rem; font-weight: 800; }
.track-cache.is-cached { background: #d9efe1; color: #285d42; }
.cache-status { min-height: 1.3em; margin: -6px 0 12px; color: var(--muted); font-size: .72rem; }
.empty-library { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-library div { font-size: 4rem; color: #d6a64c; }
.empty-library h3 { color: var(--ink); }

.privacy-note { display: grid; grid-template-columns: auto 1fr; gap: 13px; margin-top: 18px; padding: 17px 19px; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.privacy-note strong { color: var(--ink); white-space: nowrap; }
.privacy-note p { margin: 0; }
footer { display: flex; justify-content: space-between; padding: 30px 4px 50px; color: var(--muted); font-size: .72rem; }

.player { position: fixed; z-index: 30; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); min-height: 72px; display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.95); border-radius: 21px; padding: 9px 11px 11px; background: rgba(255,255,255,.88); box-shadow: 0 16px 45px rgba(51,54,70,.22); backdrop-filter: blur(20px); overflow: hidden; }
.mini-cover { width: 50px; height: 50px; padding: 0; border: 0; border-radius: 15px; background: var(--sun); overflow: hidden; }
.now-copy { min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; }
.now-copy strong, .now-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.now-copy small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.mini-controls { display: flex; align-items: center; gap: 3px; }
.mini-controls button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 1.35rem; }
.mini-controls .play-button { background: var(--ink); color: white; font-size: .85rem; }
.mini-progress { position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: #eee; }
.mini-progress span { display: block; width: 0; height: 100%; background: #da777e; }

dialog { color: var(--ink); font-family: inherit; }
dialog::backdrop { background: rgba(35,39,53,.37); backdrop-filter: blur(6px); }
.player-sheet { width: min(94vw, 500px); max-height: 94vh; border: 0; border-radius: 32px; padding: 20px; background: #fffdf5; box-shadow: var(--shadow); }
.player-sheet { overflow-y: auto; scrollbar-width: none; }
.player-sheet::-webkit-scrollbar { display: none; }
.sheet-close { display: block; width: 44px; height: 32px; margin: -8px auto 8px; border: 0; background: transparent; font-size: 1.7rem; }
.large-cover { width: min(70vw, 330px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg,var(--sun),var(--berry)); font-size: 5rem; box-shadow: 0 20px 44px rgba(71,65,81,.17); }
.sheet-copy { margin: 20px 4px 12px; text-align: center; }
.sheet-copy p { margin: 0; color: #c76670; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.sheet-copy h2 { margin: 5px 0; font-size: 1.65rem; }
.sheet-copy span { color: var(--muted); font-size: .82rem; }
.seek-row { display: grid; grid-template-columns: 37px 1fr 37px; align-items: center; gap: 8px; font-size: .68rem; font-variant-numeric: tabular-nums; }
.seek-row input { width: 100%; accent-color: #d8737c; }
.sheet-controls { display: grid; grid-template-columns: repeat(5,1fr); align-items: center; margin: 12px 0; }
.sheet-controls button { min-height: 48px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; }
.sheet-controls button small { display: block; font-size: .55rem; }
.sheet-controls .sheet-play { width: 62px; height: 62px; justify-self: center; background: var(--ink); color: #fff; font-size: 1rem; }
.sheet-controls button[aria-pressed="true"] { color: #c65661; }
.player-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.player-options label { display: flex; justify-content: space-between; align-items: center; gap: 7px; border-radius: 14px; padding: 10px 12px; background: #f3f2ec; font-size: .72rem; font-weight: 700; }
.player-options select { max-width: 58%; border: 0; background: transparent; }

.groups-dialog, .track-groups-dialog { width: min(92vw, 620px); max-height: min(84vh, 720px); border: 0; border-radius: 28px; padding: 22px; background: #fffdf7; box-shadow: var(--shadow); }
.all-tracks-dialog { width: min(94vw, 680px); height: min(88vh, 780px); border: 0; border-radius: 28px; padding: 20px; background: #fffdf7; box-shadow: var(--shadow); overflow: hidden; }
.all-tracks-search { display: flex; align-items: center; gap: 9px; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 0 13px; background: white; }
.all-tracks-search span { font-size: 1.45rem; }
.all-tracks-search input { width: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; }
.all-tracks-count { margin: 10px 3px 8px; color: var(--muted); font-size: .72rem; }
.all-tracks-list { display: grid; gap: 7px; max-height: calc(min(88vh, 780px) - 166px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.all-tracks-list::-webkit-scrollbar { display: none; }
.all-track-item { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) 34px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; padding: 7px 8px; background: white; color: var(--ink); text-align: left; }
.all-track-item > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; overflow: hidden; background: var(--track-tone,var(--sun)); }
.all-track-item > span:nth-child(2) { min-width: 0; }
.all-track-item strong, .all-track-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.all-track-item small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.all-track-item b { font-size: .72rem; text-align: center; }
.all-track-item.is-current { border-color: #d66d76; background: #fff7f3; }
.all-track-item:disabled { opacity: .45; }
.history-dialog { width: min(92vw, 660px); max-height: min(86vh, 760px); border: 0; border-radius: 28px; padding: 22px; background: #fffdf7; box-shadow: var(--shadow); overflow-y: auto; scrollbar-width: none; }
.history-dialog::-webkit-scrollbar { display: none; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.dialog-heading h2 { margin: 0; font-size: 2rem; }
.dialog-heading > button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1efe8; font-size: 1.4rem; }
.group-form { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; margin-top: 20px; }
.group-form p { grid-column: 1 / -1; }
.custom-groups, .track-group-options { display: grid; gap: 9px; max-height: 43vh; overflow: auto; margin-top: 12px; scrollbar-width: thin; }
.group-item, .track-group-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: white; }
.group-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.group-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: var(--group-tone,var(--sun)); }
.group-name span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.group-item small { color: var(--muted); }
.group-delete { border: 0; border-radius: 10px; padding: 7px 9px; background: #fff0f0; color: #aa4651; }
.track-group-option label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.track-group-option input { width: 20px; height: 20px; accent-color: #d56b74; }
.history-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0 14px; }
.history-summary div { border-radius: 16px; padding: 13px 8px; background: #f2f4ee; text-align: center; }
.history-summary strong, .history-summary small { display: block; }
.history-summary strong { font-size: 1.35rem; }
.history-summary small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.history-section-title { margin: 18px 2px 9px; font-size: .82rem; letter-spacing: .08em; }
.track-stats-list { display: grid; gap: 8px; }
.track-stats-list > p { margin: 0; color: var(--muted); font-size: .76rem; }
.track-stat { display: grid; grid-template-columns: minmax(105px,1fr) minmax(260px,1.5fr); align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px; background: #fff; }
.track-stat > div:first-child { min-width: 0; }
.track-stat strong, .track-stat small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-stat small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.track-stat dl { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 0; }
.track-stat dl div { min-width: 0; border-radius: 10px; padding: 6px 4px; background: #f5f3ec; text-align: center; }
.track-stat dt { color: var(--muted); font-size: .52rem; white-space: nowrap; }
.track-stat dd { margin: 2px 0 0; font-size: .72rem; font-weight: 800; }
.history-list { display: grid; gap: 7px; max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.history-list::-webkit-scrollbar { display: none; }
.history-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; border-radius: 15px; padding: 9px; background: white; border: 1px solid var(--line); }
.history-item > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--history-tone,var(--sun)); }
.history-item strong, .history-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { color: var(--muted); font-size: .68rem; }
.history-item time { color: var(--muted); font-size: .62rem; white-space: nowrap; }

@media (max-width: 720px) {
  .site-header { height: 60px; }
  .header-actions button { padding: 7px 9px; }
  .header-actions { gap: 4px; }
  main, footer { width: min(100% - 20px, 1120px); }
  .hero { min-height: 295px; grid-template-columns: 1fr; padding: 38px 5px 26px; overflow: hidden; position: relative; }
  .hero > div:first-child { position: relative; z-index: 1; }
  .hero-orbit { position: absolute; width: 185px; right: -65px; bottom: 4px; opacity: .72; }
  .hero p:last-child { max-width: 79%; font-size: .87rem; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-row label { min-width: 0; }
  #filters-reset { width: 100%; }
  .collection-rail { grid-auto-columns: minmax(162px, 74%); }
  .mood-section, .library-section { margin-top: 34px; }
  .library-section { padding: 17px 12px; border-radius: 23px; }
  .section-heading { align-items: start; }
  .library-section .section-heading { flex-direction: column; }
  .library-actions { width: 100%; justify-content: space-between; }
  .all-tracks-dialog { width: calc(100vw - 16px); height: calc(100dvh - 24px); border-radius: 23px; padding: 16px 13px; }
  .all-tracks-list { max-height: calc(100dvh - 185px); }
  .track-row { grid-template-columns: 45px minmax(0,1fr) auto; gap: 9px; padding: 7px 4px; }
  .track-play { width: 45px; height: 45px; }
  .track-duration { display: none; }
  .track-end { gap: 4px; }
  .privacy-note { grid-template-columns: 1fr; }
  footer { padding-bottom: 30px; }
  .mini-controls #previous-button { display: none; }
  .player { grid-template-columns: 50px minmax(0,1fr) auto; }
  .group-form { grid-template-columns: 1fr auto; }
  .group-form input { grid-column: 1 / -1; }
  .track-stat { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 370px) {
  .brand strong { font-size: .9rem; }
  .header-actions button { font-size: .66rem; padding: 7px 6px; }
  .header-actions { gap: 2px; }
  .hero h1 { font-size: 2.45rem; }
  .filter-row { grid-template-columns: 1fr; }
  .mini-controls #next-button { display: none; }
  .player-options { grid-template-columns: 1fr; }
}

@media (min-width: 760px) {
  .player { left: 50%; right: auto; width: min(620px, calc(100vw - 30px)); transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
