@font-face {
  font-family: Manrope;
  src: url(/font.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/font-cyrillic.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root {
  color-scheme: dark;
  --base: #07090d;
  --rail: #0c0f15;
  --panel: #111621;
  --surface: #171e2a;
  --hover: #202a3a;
  --border: #252c39;
  --ink: #f5f7fb;
  --muted: #a7b2c4;
  --accent: #7dceff;
  --on-fill: #082039;
  --player-height: 84px;
  --nav-height: calc(60px + env(safe-area-inset-bottom, 0px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  font: 500 15px/1.5 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--base);
  color: var(--ink);
  scroll-padding-bottom: calc(var(--player-height) + 12px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
::selection { background: var(--accent); color: var(--on-fill); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; }
button:disabled, input:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
i[data-icon] { display: inline-flex; flex: none; width: 18px; height: 18px; }
i > svg { width: 100%; height: 100%; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; padding-bottom: var(--player-height); }
.sidebar { position: sticky; top: 0; height: calc(100dvh - var(--player-height)); display: flex; flex-direction: column; padding: 24px 16px 16px; background: var(--rail); border-right: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font-size: 19px; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.brand img { border-radius: 10px; }
.sidebar .brand { margin: 0 0 36px 8px; }
.side-nav { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.side-nav button[data-view] { display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 14px; text-align: left; }
.side-nav button[data-view] > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav button[data-view]:hover { color: var(--ink); background: var(--surface); }
.side-nav button[data-view][aria-current] { color: var(--ink); background: var(--hover); font-weight: 700; }
.side-nav button[data-view][aria-current] i { color: var(--accent); }
.nav-group { margin-top: 24px; }
.nav-label, .side-foot { display: flex; align-items: center; justify-content: space-between; }
.nav-label { gap: 4px; padding: 0 4px 4px 0; color: var(--muted); }
.nav-label .nav-library { font-weight: 750; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding: 12px 0 0 8px; font-size: 13px; color: var(--muted); }
.side-foot a { display: inline-flex; align-items: center; gap: 8px; }
.side-foot a:hover { color: var(--ink); }
.workspace { min-width: 0; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 40px; border-bottom: 1px solid var(--border); }
.mobile-brand { display: none; }
.topbar .mobile-search { display: none; }
#searchbar { width: min(440px, 100%); min-width: 0; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--rail); color: var(--muted); }
#searchbar:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
#query { width: 100%; height: 100%; min-width: 0; outline: 0; border: 0; padding: 0; color: var(--ink); background: transparent; font-size: 14px; }
input::placeholder { color: var(--muted); opacity: 1; }
#query::-webkit-search-cancel-button { display: none; }
#searchbar:has(.search-clear:not([hidden])) kbd { display: none; }
kbd { border: 1px solid var(--border); border-radius: 4px; font: 500 12px/20px Manrope, sans-serif; min-width: 24px; text-align: center; }
.soft-btn, .primary-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.soft-btn { border: 1px solid var(--border); background: var(--surface); }
.soft-btn:hover { background: var(--hover); }
.primary-btn { background: var(--accent); color: var(--on-fill); }
.primary-btn:hover { background: #acd7ff; }
.soft-btn, .primary-btn, .icon-btn, .round-play, .text-btn { transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.soft-btn:active, .primary-btn:active, .icon-btn:active, .round-play:active { transform: scale(.97); }
main { max-width: 1340px; margin: auto; padding: 24px 40px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.035em; font-weight: 750; overflow-wrap: anywhere; }
.picks { margin-top: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 24px; line-height: 1.25; font-weight: 725; letter-spacing: -.025em; }
.section-head h3 { font-size: 16px; font-weight: 700; }
.text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; font-weight: 650; font-size: 13px; color: var(--ink); }
.text-btn:hover { color: var(--accent); }
.text-btn i { width: 16px; height: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.music-card, .track-label { min-width: 0; }
.card-play { position: relative; display: block; width: 100%; text-align: left; }
.cover { display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.cover img, .now-art img, .mini-art img { width: 100%; height: 100%; object-fit: cover; }
.card-play .cover { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; }
.card-play .cover img, .now-art img { position: absolute; inset: 0; }
.art-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; pointer-events: none; }
.art-play i { padding: 10px; width: 40px; height: 40px; border-radius: 50%; background: #181818ed; color: var(--ink); transition: background-color .16s var(--ease), color .16s var(--ease); }
.card-play:hover .art-play i, .card-play[aria-pressed="true"] .art-play i { background: var(--ink); color: var(--base); }
.card-name, .card-artist, .track-name, .track-artist { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-name { margin-top: 8px; font-size: 15px; font-weight: 700; }
.card-artist { color: var(--muted); font-size: 13px; }
.artist-link { display: inline-block; max-width: 100%; padding: 0; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; vertical-align: top; }
.artist-link:hover:not(:disabled) { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
#now-artist { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; }
#now-artist:disabled { opacity: 1; }
#now-artist-name { overflow: hidden; text-overflow: ellipsis; }
.now-artist-avatar { display: grid; place-items: center; position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--hover); }
.now-artist-avatar i { width: 15px; height: 15px; }
.now-artist-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.track-list { border-top: 1px solid var(--border); }
.track-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--border); }
.track-row:hover { background: var(--rail); }
.track-row .track-start { display: flex; width: 100%; min-height: 64px; gap: 12px; align-items: center; text-align: left; min-width: 0; }
.track-main { position: relative; min-width: 0; }
.track-main .track-label { transform: translateY(-9px); }
.track-main > .track-artist { position: absolute; top: 34px; left: 92px; right: 0; pointer-events: none; }
.track-main .artist-link { pointer-events: auto; }
.track-index { width: 28px; text-align: center; color: var(--muted); font-size: 12px; flex: none; }
.track-index i { vertical-align: middle; width: 16px; height: 16px; color: var(--accent); }
.track-thumb { width: 40px; height: 40px; border-radius: 6px; flex: none; }
.track-name { font-weight: 700; font-size: 14px; }
.track-artist { color: var(--muted); font-size: 12px; }
.track-start[aria-pressed="true"] .track-name { color: var(--accent); }
.track-time { color: var(--muted); text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; }
.icon-btn { display: inline-grid; place-items: center; border-radius: 8px; width: 40px; height: 40px; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { color: var(--accent); }
.icon-btn[data-action="favorite"][aria-pressed="true"] svg { fill: currentColor; }
.icon-btn.small { width: 32px; height: 32px; }
.detail { --panel-offset: calc(var(--player-height) + 12px); position: fixed; z-index: 6; inset: auto 16px var(--panel-offset) auto; visibility: hidden; opacity: 0; transform: translateY(10px); overflow: auto; overscroll-behavior: contain; scroll-padding-top: 56px; width: min(432px, calc(100% - 32px)); max-height: calc(100dvh - var(--panel-offset) - 12px); padding: 0 20px 20px; border: 1px solid var(--border); border-radius: 16px; scrollbar-width: thin; background: var(--panel); box-shadow: 0 16px 48px #0008; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.detail.is-open { opacity: 1; visibility: visible; transform: none; }
.panel-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; min-height: 56px; margin: 0 -12px 8px; padding: 4px 12px; background: var(--panel); }
.panel-top p { flex: 1; font-size: 13px; font-weight: 750; color: var(--muted); }
.now-art { position: relative; display: grid; place-items: center; width: min(100%, 41dvh); margin-inline: auto; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface); }
.now-art > i { width: 42px; height: 42px; color: var(--accent); }
.now-art:has(img:not([hidden])) > i { visibility: hidden; }
.now-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 16px; }
.now-meta > div { min-width: 0; }
.now-meta > .icon-btn { margin-top: 2px; background: var(--surface); }
.now-meta > .icon-btn:hover { background: var(--hover); }
.now-meta h2 { font-size: clamp(20px, 5vw, 25px); line-height: 1.24; font-weight: 750; overflow-wrap: anywhere; letter-spacing: -.025em; }
.up-next { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.up-next .section-head { margin: 0 0 3px; }
.up-next .queue-row { padding-inline: 8px 4px; }
.up-next .queue-row:first-child { border-radius: 8px; background: var(--surface); }
.inline-queue-tools { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.queue-clear { margin-left: auto; }
.queue-row { display: flex; gap: 4px; align-items: center; min-height: 52px; }
.queue-row:hover { background: var(--hover); border-radius: 8px; }
.queue-row .track-start { display: flex; gap: 8px; min-width: 0; width: 100%; min-height: 48px; align-items: center; text-align: left; }
.queue-row .track-thumb { width: 36px; height: 36px; }
.player { position: fixed; inset: auto 0 0; z-index: 4; height: var(--player-height); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 440px) minmax(0, 1fr); align-items: center; gap: 16px; padding: 0 24px; background: var(--panel); border-top: 1px solid var(--border); }
.playing, .mini-track, .transport-buttons, .player-tools { display: flex; align-items: center; }
.playing { min-width: 0; gap: 8px; }
.mini-track { gap: 12px; text-align: left; min-width: 0; min-height: 44px; }
.mini-art { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface); flex: none; }
.mini-art { display: grid; place-items: center; color: var(--accent); }
.mini-art:has(img:not([hidden])) > i { display: none; }
.mini-info { display: grid; min-width: 0; }
.mini-info strong, .mini-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-info strong { font-size: 14px; font-weight: 700; }
.mini-info small { font-size: 12px; color: var(--muted); }
#mini-status:empty { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.transport-buttons { justify-content: center; gap: 8px; }
.round-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--base); }
.round-play:hover { background: var(--accent); }
.round-play[aria-busy="true"] { opacity: .68; }
.seekline { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; min-height: 24px; font-variant-numeric: tabular-nums; }
.seekline span:first-child { text-align: right; }
.player-tools { justify-content: end; gap: 4px; }
input[type="range"] { --progress: 0%; appearance: none; background: transparent; margin: 0; min-height: 24px; width: 100%; min-width: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--progress), #414141 var(--progress)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #414141; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; border-radius: 50%; margin-top: -3px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { border: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
#seek:disabled::-webkit-slider-thumb { opacity: 0; }
#seek:disabled::-moz-range-thumb { opacity: 0; }
#volume { max-width: 80px; }
.mobile-nav { display: none; }
.empty { max-width: 540px; padding: 20px 0; color: var(--muted); }
.empty .soft-btn { margin-top: 12px; }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); gap: 36px; align-items: start; }
.library-layout section { min-width: 0; }
.library-recent { grid-column: 1 / -1; }
.library-layout .section-head { min-height: 40px; margin-bottom: 8px; }
.library-layout .section-head h2 { font-size: 22px; }
.library-layout .section-head .text-btn { flex: none; }
.library-list { border-block: 1px solid var(--border); }
.library-list-item { display: flex; align-items: center; gap: 8px; padding-right: 4px; }
.library-list-item + .library-list-item { border-top: 1px solid var(--border); }
.library-list-link { display: flex; align-items: center; flex: 1; min-width: 0; gap: 14px; padding: 10px 4px 10px 0; text-align: left; }
.library-list-copy, .library-collection-link > span { display: grid; min-width: 0; gap: 3px; }
.library-list-copy > *, .library-collection-link > span > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-list-link:hover strong, .library-collection-link:hover strong { color: var(--accent); }
.library-list-copy small, .library-collection-link small { color: var(--muted); font-size: 13px; }
.library-cover { position: relative; display: grid; align-items: stretch; justify-items: stretch; width: 60px; aspect-ratio: 1; flex: none; border-radius: 9px; background: #122335; }
.library-cover > i { position: absolute; z-index: 0; place-self: center; color: var(--accent); width: 38%; height: 38%; }
.library-cover > img { z-index: 1; position: relative; min-width: 0; min-height: 0; }
.library-cover.is-mosaic { grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); gap: 1px; }
.library-cover.is-mosaic > i { display: none; }
.library-empty { display: flex; align-items: center; gap: 20px; min-height: 200px; padding: 24px; background: var(--rail); border: 1px solid var(--border); border-radius: 14px; }
.library-empty .library-cover { width: clamp(56px, 8vw, 100px); }
.library-empty h3 { font-size: 17px; }
.library-empty p { max-width: 35ch; color: var(--muted); font-size: 14px; margin-top: 5px; }
.library-empty .text-btn { color: var(--accent); margin-top: 4px; }
.library-collection-link { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; width: 100%; padding: 10px 8px; min-height: 62px; border-top: 1px solid var(--border); text-align: left; }
.library-collection-link:last-child { border-bottom: 1px solid var(--border); }
.library-collection-link > i:first-child { color: var(--accent); }
.library-collection-link > i:last-child { color: var(--muted); width: 16px; }
.playlist-tools { display: flex; align-items: center; gap: 4px; flex: none; }
body[data-view="library"] .page-heading, body[data-view^="playlist-"] .page-heading { flex-wrap: wrap; }
.shared-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
.shared-heading .library-cover { width: clamp(92px, 22vw, 156px); }
.shared-heading > div { min-width: 0; }
.shared-heading p { margin: 6px 0 12px; color: var(--muted); }
.shared-preview { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.shared-preview li { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-height: 62px; border-bottom: 1px solid var(--border); }
.search-caption { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.search-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.search-more { margin-top: 16px; }
.chart-tail { min-height: 1px; }
.chart-tail .chart-more-status { margin: 12px 0; }
.chart-tail .chart-more-status:empty { margin: 0; }
.search-intro { max-width: 720px; margin-bottom: 32px; }
.search-intro h1 { margin-bottom: 16px; }
#search-entry #searchbar { display: flex; width: 100%; height: 56px; padding-inline: 16px 8px; border-radius: 12px; }
#search-entry #query { font-size: 16px; }
body[data-view="search"] .topbar .add-btn { margin-inline-start: auto; }
.search-discover { max-width: 720px; }
.search-discover h2, .search-results-head h2, .chart-toolbar h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -.025em; }
.search-artists { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 24px; }
.search-artists button { text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.search-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.search-shortcuts button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding-inline: 12px; border-block: 1px solid var(--border); text-align: left; }
.search-shortcuts button:hover { background: var(--rail); }
.search-shortcuts i, .chart-sources i { color: var(--muted); }
.search-results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px; }
.search-caption:empty, .chart-toolbar .chart-meta:empty { display: none; }
.chart-sources { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.chart-sources button { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding-inline: 4px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 650; }
.chart-sources button[aria-current] { border-color: var(--accent); color: var(--ink); }
.chart-sources button[aria-current] i { color: var(--accent); }
.chart-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px; border-radius: 12px; background: var(--rail); border: 1px solid var(--border); margin-bottom: 8px; }
.chart-toolbar .chart-meta { margin: 6px 0 0; }
.chart-select { display: grid; gap: 4px; min-width: 160px; color: var(--muted); font-size: 13px; }
.chart-select select { background: var(--base); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; padding-inline: 12px; min-height: 44px; font: inherit; }
.chart-provider-link { margin-bottom: 4px; }
.chart-meta { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.chart-list .track-index { font-variant-numeric: tabular-nums; color: var(--muted); }
.chart-list .track-row:nth-child(-n+3) .track-index { color: var(--accent); }
.home-charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.genre-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--rail); text-align: left; }
.genre-card i { color: var(--accent); width: 16px; height: 16px; }
.genre-card:hover { background: var(--hover); }
.home-stage { display: grid; grid-template-columns: minmax(160px, .26fr) minmax(0, 1fr); grid-template-areas: "shortcuts wave"; gap: 20px; align-items: stretch; }
.wave-hero { grid-area: wave; position: relative; display: grid; place-items: center; isolation: isolate; min-height: clamp(465px, 55vh, 590px); overflow: clip; }
.wave-hero-art { position: absolute; inset: 0; z-index: -1; background: url(/wave.svg) center / contain no-repeat; }
.wave-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, #07090d50 66%, var(--base) 100%); }
.wave-hero-copy { width: 100%; min-width: 0; padding: 56px 20px 20px; text-align: center; }
.wave-hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; text-shadow: 0 4px 38px #09132fd9; }
.wave-hero-copy p { margin: 14px auto 24px; max-width: 38ch; color: #d3dded; font-size: 15px; line-height: 1.5; text-wrap: balance; }
.wave-hero-controls { display: flex; justify-content: center; align-items: center; gap: 12px; }
.round-play.wave-button { width: 62px; height: 62px; background: var(--accent); color: var(--on-fill); box-shadow: 0 8px 26px #050d25a0; }
.wave-button i { width: 25px; height: 25px; }
.round-play.wave-button:hover { background: #bde8ff; }
.wave-settings { width: 44px; height: 44px; border-radius: 50%; background: #111620dd; color: var(--ink); }
.home-shortcuts { grid-area: shortcuts; display: grid; align-content: center; gap: 12px; }
.home-shortcuts button { display: flex; min-width: 0; align-items: center; gap: 12px; min-height: 66px; padding: 8px; border-radius: 12px; color: var(--muted); text-align: left; font-size: 14px; font-weight: 700; }
.home-shortcuts button:hover { color: var(--ink); background: var(--rail); }
.home-shortcuts button > span { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--surface); color: var(--accent); }
.home-shortcuts button:nth-child(2) > span { background: #102855; color: #9ab8ff; }
.home-shortcuts button:nth-child(3) > span { background: #192538; color: #b7cfff; }
#popular-title, #viral-title { scroll-margin-top: 20px; }
.wave-setup { max-width: 640px; padding: 24px; background: var(--rail); border: 1px solid var(--border); border-radius: 16px; }
.wave-setup > p { color: var(--muted); margin: 0 0 12px; }
.wave-selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 20px 0 16px; }
.wave-select, .catalog-sort { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.wave-select select, .catalog-sort select { min-height: 44px; min-width: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--base); color: var(--ink); font: inherit; font-size: 14px; }
.wave-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wave-setup .wave-status { margin: 12px 0 0; }
.profile-placeholder { display: flex; align-items: flex-start; gap: 16px; max-width: 540px; padding: 16px 0; }
.profile-placeholder > span { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--surface); color: var(--muted); }
.profile-placeholder > span i { width: 24px; height: 24px; }
.profile-placeholder h2 { font-size: 18px; font-weight: 650; }
.profile-placeholder p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.account-card { max-width: 448px; }
.account-card .profile-placeholder { padding-top: 4px; }
.account-avatar { position: relative; overflow: hidden; }
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-avatar img[hidden] { display: none; }
.account-options { display: grid; gap: 8px; margin: 8px 0 16px; }
.account-provider { justify-content: space-between; text-align: left; }
.account-provider small, .account-note { color: var(--muted); font-size: 13px; }
.account-note { margin: 0 0 12px; }
.login-gate { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
body:has(.shell[hidden]) > .skip { display: none; }
.login-card { width: min(100%, 416px); padding: clamp(24px, 6vw, 36px); border: 1px solid var(--border); border-radius: 16px; background: var(--rail); }
.login-card > img { border-radius: 12px; margin-bottom: 20px; }
.login-card h1 { font-size: clamp(26px, 6vw, 34px); margin-bottom: 12px; }
.login-card .account-options { margin-block: 20px 0; }
.login-card .account-provider { min-height: 48px; }
.login-gate.is-ready .login-card { animation: login-enter .2s var(--ease); }
@keyframes login-enter { from { opacity: .8; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.artist-hero { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 4vw, 36px); margin: 0 0 40px; }
.artist-avatar { display: grid; place-items: center; position: relative; flex: none; width: clamp(84px, 19vw, 168px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--rail); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.artist-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artist-avatar i { width: 34%; height: 34%; }
.artist-info { min-width: 0; }
.artist-info h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 60px); line-height: 1.06; overflow-wrap: anywhere; }
.artist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
[data-action="artist-like"][aria-pressed="true"] { color: var(--accent); }
[data-action="artist-like"][aria-pressed="true"] svg { fill: currentColor; }
.artist-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.artist-toolbar h2, .artist-toolbar .chart-meta { margin: 0; }
.artist-toolbar .chart-meta { margin-top: 4px; }
.artist-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.artist-entry { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.artist-entry-link { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; text-align: left; }
.artist-entry-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-entry .artist-avatar { width: 48px; }
.external-chart .track-row { grid-template-columns: minmax(0,1fr) auto; }
dialog { color: var(--ink); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; width: min(440px, calc(100vw - 32px)); padding: 20px; }
dialog::backdrop { background: #000b; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 20px; }
.dialog-form, .menu-actions { display: grid; gap: 8px; }
.dialog-form label, .dialog-note, .form-error { line-height: 1.5; font-size: 14px; color: var(--muted); }
.dialog-form input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--base); color: var(--ink); }
.dialog-form .primary-btn { justify-self: start; margin-top: 4px; }
.form-error { color: #ffd1c2; }
.menu-actions .soft-btn { justify-content: flex-start; }
.dialog-note a { color: var(--accent); text-decoration: underline; }
#notice { position: fixed; z-index: 8; right: 12px; bottom: calc(var(--player-height) + 12px); max-width: min(400px, calc(100vw - 24px)); padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--hover); font-size: 13px; }
#notice:empty { display: none; }
.playback-message { margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; }
.playback-message p { margin-bottom: 8px; }
.playback-message button { margin-right: 8px; }
#soundcloud-frame { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
#soundcloud-frame.is-visible { position: static; width: 100%; height: 166px; margin-top: 12px; clip-path: none; border-radius: 8px; pointer-events: auto; }
#soundcloud-frame iframe { border: 0; width: 100%; height: 166px; display: block; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 192px minmax(0, 1fr); }
  .topbar, main { padding-inline: 24px; }
  .card-grid { gap: 16px; }
  .home-stage { grid-template-columns: minmax(128px, .3fr) minmax(0,1fr); gap: 8px; }
}
@media (max-width: 860px) {
  .library-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 700px), (max-width: 1100px) and (orientation: portrait) {
  :root { --player-height: 64px; scroll-padding-bottom: calc(var(--player-height) + var(--nav-height) + 12px); }
  .shell { display: block; padding-bottom: calc(var(--player-height) + var(--nav-height)); }
  .sidebar { display: none; }
  .topbar { min-height: 64px; padding: 8px 12px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; border-bottom-color: transparent; }
  .mobile-brand { display: inline-flex; grid-area: 1 / 2; justify-self: center; align-self: center; min-height: 44px; font-size: 19px; }
  .topbar .mobile-search { display: inline-grid; grid-area: 1 / 3; width: 44px; height: 44px; color: var(--ink); }
  #searchbar { display: none; grid-area: 2 / 1 / 3 / 4; width: 100%; }
  #searchbar kbd { display: none; }
  .add-btn { grid-area: 1 / 1; width: 44px; padding: 0; border-color: transparent; background: transparent; }
  .add-btn span { display: none; }
  main { padding: 16px 16px 32px; }
  .page-heading { margin-bottom: 16px; }
  h1 { font-size: 30px; }
  .picks { margin-top: 24px; }
  .home-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-card { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .section-head h2 { font-size: 22px; }
  .section-head { margin-bottom: 8px; }
  .library-empty { min-height: 158px; padding: 16px; gap: 12px; }
  .library-empty h3 { font-size: 16px; }
  .card-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-play i { width: 36px; height: 36px; padding: 8px; }
  .track-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px; }
  .track-row .icon-btn, .transport .icon-btn, .close-panel { width: 44px; height: 44px; }
  .track-time, .track-index { display: none; }
  .track-main > .track-artist { left: 52px; }
  .artist-catalog .track-start { padding-block: 8px; }
  .artist-catalog .track-main .track-label { padding-bottom: 18px; transform: none; }
  .artist-catalog .track-main > .track-artist { top: auto; bottom: 8px; }
  .artist-catalog .track-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
  .player { bottom: calc(var(--nav-height) + 4px); inset-inline: 8px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px; gap: 4px; border: 1px solid var(--border); border-radius: 14px; }
  .mini-art { width: 40px; height: 40px; }
  .mini-track { gap: 8px; }
  .transport .extras, .transport .prev, .player-tools, .seekline span { display: none; }
  .player-heart { width: 36px; }
  .transport-buttons { gap: 4px; }
  .round-play { width: 44px; height: 44px; }
  .seekline { position: absolute; inset: -11px 0 auto; display: block; min-height: 0; }
  #seek { display: block; }
  #seek::-webkit-slider-runnable-track { height: 2px; }
  #seek::-webkit-slider-thumb { margin-top: -4px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 5; height: var(--nav-height); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--base); border-top: 1px solid var(--border); padding: 0 4px env(safe-area-inset-bottom, 0px); }
  .mobile-nav button { display: grid; align-content: center; justify-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
  .mobile-nav button[aria-current], .mobile-nav button[aria-expanded="true"] { color: var(--accent); }
  .detail { --panel-offset: calc(var(--player-height) + var(--nav-height) + 8px); inset-inline: 8px; width: auto; padding-inline: 16px; }
  .home-stage { display: block; }
  .wave-hero { min-height: clamp(360px, 54svh, 520px); margin-inline: -16px; }
  .wave-hero-art { background-size: auto 96%; }
  .wave-hero-copy { padding: 48px 16px 16px; }
  .wave-hero-copy p { font-size: 13px; margin: 10px auto 20px; }
  .round-play.wave-button { width: 57px; height: 57px; }
  .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-shortcuts button { min-height: 52px; padding: 6px; gap: 8px; background: var(--rail); font-size: 12px; }
  .home-shortcuts button > span { width: 36px; height: 36px; border-radius: 9px; }
  .external-chart .track-index { display: block; width: 20px; }
  .chart-list .track-index { display: block; width: 20px; }
  .chart-list .track-start { gap: 8px; }
  .chart-list .track-main > .track-artist { left: 76px; }
  .search-intro { margin-bottom: 24px; }
  .chart-toolbar { padding: 12px; }
  #notice { bottom: calc(var(--player-height) + var(--nav-height) + 8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
