:root {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #ececef;
  --sidebar: rgba(247, 247, 249, 0.88);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --accent: #fa233b;
  --accent-dark: #d91c32;
  --accent-soft: #ffe8ec;
  --radius: 18px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(250, 35, 59, 0.45); outline-offset: 3px; }

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  height: 100svh;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand-symbol {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #ff6473, var(--accent) 58%, #c51631);
  box-shadow: 0 8px 22px rgba(250, 35, 59, 0.24);
}
.brand-symbol i { display: block; width: 3px; border-radius: 99px; background: currentColor; }
.brand-symbol i:nth-child(1) { height: 11px; }
.brand-symbol i:nth-child(2) { height: 20px; }
.brand-symbol i:nth-child(3) { height: 26px; }
.brand-symbol i:nth-child(4) { height: 15px; }
.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 16px; letter-spacing: -0.035em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.site-nav { display: grid; gap: 4px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  color: #3a3a3c;
  font-size: 14px;
  font-weight: 600;
}
.nav-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link:hover { background: rgba(29, 29, 31, 0.055); }
body:not(.albums-page) .nav-link[href="/"],
body.albums-page .nav-link[href="/albums"] { color: var(--accent); background: var(--accent-soft); }

.library-meta { margin: 32px 12px 0; }
.library-meta p { margin: 0 0 8px; color: #8e8e93; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.library-meta span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.sidebar-note { margin: auto 12px 0; color: #9a9a9f; font-size: 11px; }

.workspace { min-width: 0; overflow: hidden; }
main { min-height: 100svh; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 80px clamp(28px, 6vw, 100px) 110px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(26px);
  content: "";
  pointer-events: none;
}
.hero::before {
  top: -260px;
  right: -130px;
  background: radial-gradient(circle, rgba(255, 72, 110, 0.22), rgba(255, 72, 110, 0));
}
.hero::after {
  bottom: -300px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 183, 196, 0.32), rgba(255, 183, 196, 0));
}
.hero-content { width: min(100%, 820px); text-align: center; }
.hero-kicker, .section-kicker { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 700; }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.065em;
}
.type-character {
  opacity: 0;
  transition: opacity 76ms ease-out;
}
.type-character.is-visible { opacity: 1; }
.hero h1.is-typing::after {
  display: inline-block;
  width: 0.055em;
  height: 0.86em;
  margin-left: 0.08em;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: -0.05em;
  content: "";
  animation: type-caret-blink 720ms steps(1, end) infinite;
}
@keyframes type-caret-blink { 50% { opacity: 0; } }
.hero-description { margin: 24px 0 32px; color: var(--muted); font-size: 16px; }
.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 720px);
  height: 64px;
  margin: 0 auto;
  padding: 0 18px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 50px rgba(72, 32, 42, 0.09);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
}
.search-field:focus-within {
  border-color: rgba(250, 35, 59, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(250, 35, 59, 0.1), 0 18px 56px rgba(72, 32, 42, 0.11);
}
.search-field svg { flex: none; width: 23px; height: 23px; fill: none; stroke: var(--accent); stroke-width: 2; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; }
.search-field input::placeholder { color: #97979c; }
.search-key { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: #8e8e93; background: rgba(255,255,255,.65); font-size: 11px; }
.has-search .hero { min-height: auto; padding-top: 50px; padding-bottom: 34px; }
.has-search .hero::before, .has-search .hero::after { opacity: 0.45; }
.has-search .hero-kicker, .has-search .hero h1, .has-search .hero-description { display: none; }

.search-results,
.album-section { padding: 0 clamp(28px, 5vw, 72px) 100px; }
.search-results {
  width: min(100%, 1120px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}
.search-results.is-visible { opacity: 1; transform: translateY(0); }
.search-results.is-leaving { pointer-events: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); font-weight: 740; letter-spacing: -0.045em; }
.section-heading .section-kicker { margin-bottom: 7px; }
.section-count, #search-summary { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.text-action { border: 0; color: var(--accent); background: transparent; font-size: 13px; font-weight: 650; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.search-tabs button { padding: 8px 15px; border: 0; border-radius: 999px; color: #4a4a4f; background: var(--surface-soft); font-size: 13px; font-weight: 650; white-space: nowrap; }
.search-tabs button.is-active { color: #fff; background: var(--accent); }
.search-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.search-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  animation: search-item-in 280ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--result-index, 0) * 28ms + 35ms);
}
@keyframes search-item-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background: #f8f8fa; }
.search-artwork { position: relative; width: 48px; height: 48px; overflow: hidden; border-radius: 7px; color: #fff; background: linear-gradient(145deg, #ff7180, var(--accent)); }
.search-artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
.search-artwork:not(:has(img))::after { position: absolute; inset: 0; display: grid; place-items: center; content: "♪"; font-size: 20px; }
.search-item-copy { min-width: 0; }
.search-item-copy strong, .search-item-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-copy strong { font-size: 14px; font-weight: 620; }
.search-item-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.search-item-kind { color: var(--accent); font-size: 11px; font-weight: 650; }
.search-empty {
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  animation: search-item-in 220ms ease both;
}

.album-section { min-height: 100svh; padding-top: 54px; }
.album-shelf { position: relative; margin: 0 -20px 30px; }
.album-grid {
  display: flex;
  gap: 20px;
  padding: 20px 20px 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 20px;
  scroll-snap-type: x proximity;
  scrollbar-color: #b7b7bc transparent;
  scrollbar-width: thin;
}
.album-grid::-webkit-scrollbar { height: 5px; }
.album-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: #b7b7bc; }
.album-card { flex: 0 0 clamp(170px, 17vw, 222px); min-width: 0; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; scroll-snap-align: start; }
.album-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1;
  padding: 20px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ff7180, #b81936);
  box-shadow: 0 9px 22px rgba(43, 20, 26, 0.13);
  transition: transform 180ms, box-shadow 180ms;
}
.album-cover::before { position: absolute; top: 16%; left: 38%; width: 84%; aspect-ratio: 1; border: 22px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.album-cover::after { position: absolute; top: -42%; left: -55%; width: 112%; height: 112%; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; content: ""; }
.album-card:hover .album-cover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43, 20, 26, 0.18); }
.album-card.is-selected .album-cover { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 6px var(--accent), 0 14px 30px rgba(43, 20, 26, 0.18); }
.album-card.is-selected .album-card-text strong { color: var(--accent); }
.cover-top, .cover-bottom { position: relative; z-index: 1; font-size: 12px; font-weight: 650; }
.cover-center { position: relative; z-index: 1; align-self: center; margin-top: 18px; font-size: 46px; font-weight: 760; line-height: 1; letter-spacing: -0.09em; text-align: center; }
.cover-center small { display: block; margin-top: 9px; font-size: 11px; letter-spacing: 0.08em; }
.cover-bottom { display: flex; align-items: end; justify-content: space-between; }
.cover-bottom strong { max-width: 78%; font-size: 17px; line-height: 1.2; letter-spacing: -0.04em; }
.album-cover.has-image { padding: 0; }
.album-cover.has-image::before, .album-cover.has-image::after { display: none; }
.album-cover.has-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.album-card-text { display: block; padding: 12px 2px 0; }
.album-card-text strong, .album-card-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card-text strong { font-size: 14px; font-weight: 620; }
.album-card-text span { margin-top: 4px; color: var(--muted); font-size: 12px; }

.album-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: transparent; box-shadow: 0 12px 36px rgba(38, 23, 27, 0.06); scroll-margin-top: 20px; }
.album-detail-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: end;
  gap: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #fff0f2, #f7f7fa 70%);
}
.album-detail-art { width: 100%; }
.album-detail-art .album-cover { width: 100%; box-shadow: 0 18px 40px rgba(44, 22, 28, 0.17); }
.album-detail-copy { min-width: 0; padding-bottom: 5px; }
.album-detail-copy > p { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; }
.album-detail-copy h3 { margin: 0; font-size: clamp(32px, 4.2vw, 58px); font-weight: 760; line-height: 1.04; letter-spacing: -0.055em; }
.album-detail-copy > span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }
.album-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.primary-button { padding: 11px 19px; border: 0; border-radius: 999px; color: #fff; background: var(--accent); font-size: 13px; font-weight: 680; }
.primary-button:hover { background: var(--accent-dark); }
.album-pending { color: var(--muted); font-size: 12px; }
.track-list { padding: 8px 30px 14px; }
.track-entry { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.track-entry:last-child { border-bottom: 0; }
.track-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 58px 26px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.track-row:hover { background: #fafafa; }
.track-add-next { display: grid; place-items: center; flex: 0 0 54px; border: 0; color: var(--muted); background: transparent; }
.track-add-next:hover { color: var(--accent); background: #fafafa; }
.track-add-next svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.track-number { color: #a1a1a6; font-size: 12px; text-align: center; }
.track-title { overflow: hidden; font-size: 14px; font-weight: 560; white-space: nowrap; text-overflow: ellipsis; }
.track-duration { color: var(--muted); font-size: 12px; text-align: right; }
.track-icon { display: grid; place-items: center; color: var(--accent); }
.track-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.track-row.is-current .track-title, .track-row.is-current .track-number { color: var(--accent); }
.track-row.is-unavailable { cursor: default; }
.track-row.is-unavailable:hover { background: transparent; }
.track-row.is-unavailable .track-duration { white-space: nowrap; font-size: 11px; }
.album-empty { padding: 48px; color: var(--muted); text-align: center; }

.queue-panel { position: fixed; right: 16px; bottom: 94px; z-index: 19; width: min(390px, calc(100vw - 32px)); max-height: min(520px, calc(100dvh - 120px)); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: rgba(252,252,253,.98); box-shadow: 0 18px 60px rgba(29,29,31,.18); }
.queue-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 18px 12px; border-bottom: 1px solid var(--line); }
.queue-panel-head strong, .queue-panel-head span { display: block; }
.queue-panel-head strong { font-size: 16px; }
.queue-panel-head span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.queue-panel-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 22px; }
.queue-panel-head button:hover { background: var(--surface-soft); }
.queue-list { overflow-y: auto; padding: 6px; }
.queue-item { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 54px; padding: 7px 10px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }
.queue-item:hover { background: var(--surface-soft); }
.queue-item.is-current { color: var(--accent); background: var(--accent-soft); }
.queue-item-number, .queue-item-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.queue-item.is-current .queue-item-number { color: var(--accent); }
.queue-item-copy { min-width: 0; }
.queue-item-copy strong, .queue-item-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.queue-item-copy strong { font-size: 12px; font-weight: 650; }
.queue-item-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.audio-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 248px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 1.4fr) minmax(170px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 9px 24px;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
  background: rgba(252, 252, 253, 0.94);
  box-shadow: 0 -10px 30px rgba(29, 29, 31, 0.07);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  animation: dock-enter 220ms cubic-bezier(.2,.7,.2,1) both;
}
.dock-now-playing { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dock-art { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 5px; color: #fff; background: linear-gradient(145deg, #ff7180, var(--accent)); box-shadow: 0 2px 8px rgba(29, 29, 31, 0.18); }
.dock-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dock-art span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 11px; font-weight: 700; }
.dock-track { min-width: 0; }
.dock-track strong, .dock-track span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dock-track strong { color: #1d1d1f; font-size: 12px; font-weight: 650; }
.dock-track span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.dock-center { display: grid; gap: 4px; width: 100%; max-width: 590px; justify-self: center; }
.dock-controls { display: flex; align-items: center; justify-content: center; gap: 14px; height: 32px; }
.dock-controls button, .dock-queue, .dock-mute, .dock-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; color: #2c2c2e; background: transparent; }
.dock-controls button:hover, .dock-queue:hover, .dock-mute:hover, .dock-close:hover { background: rgba(29, 29, 31, 0.07); }
.dock-controls button:active, .dock-queue:active, .dock-mute:active, .dock-close:active { transform: scale(0.93); }
.dock-controls svg, .dock-queue svg, .dock-mute svg, .dock-close svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.dock-queue[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.dock-queue svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-controls #previous-track svg { transform: translateX(-1.5px); }
.dock-controls #next-track svg { transform: translateX(1.5px); }
.dock-controls .dock-play { width: 34px; height: 34px; color: #1d1d1f; }
.dock-controls .dock-play svg { width: 22px; height: 22px; }
.dock-play .icon-pause, .dock-play[data-playing="true"] .icon-play { display: none; }
.dock-play[data-playing="true"] .icon-pause { display: block; }
.dock-progress { display: grid; grid-template-columns: 36px minmax(140px, 1fr) 36px; align-items: center; gap: 8px; color: #8e8e93; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dock-progress span:first-child { text-align: right; }
.dock-progress input, .dock-volume {
  --range-value: 0%;
  width: 100%;
  height: 12px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.dock-progress input::-webkit-slider-runnable-track, .dock-volume::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--range-value), #d2d2d7 var(--range-value)); }
.dock-progress input::-moz-range-track, .dock-volume::-moz-range-track { height: 3px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--range-value), #d2d2d7 var(--range-value)); }
.dock-progress input::-webkit-slider-thumb, .dock-volume::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; appearance: none; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(29,29,31,.32); opacity: 0; transition: opacity 120ms; }
.dock-progress input::-moz-range-thumb, .dock-volume::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(29,29,31,.32); opacity: 0; transition: opacity 120ms; }
.dock-progress input:hover::-webkit-slider-thumb, .dock-volume:hover::-webkit-slider-thumb, .dock-progress input:focus-visible::-webkit-slider-thumb, .dock-volume:focus-visible::-webkit-slider-thumb { opacity: 1; }
.dock-progress input:hover::-moz-range-thumb, .dock-volume:hover::-moz-range-thumb, .dock-progress input:focus-visible::-moz-range-thumb, .dock-volume:focus-visible::-moz-range-thumb { opacity: 1; }
.dock-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.dock-mute svg, .dock-close svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-mute .icon-muted, .dock-mute[data-muted="true"] .icon-volume { display: none; }
.dock-mute[data-muted="true"] .icon-muted { display: block; }
.dock-volume { width: min(8vw, 92px); }
.dock-close { margin-left: 7px; color: #6e6e73; }

@keyframes dock-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.toast { position: fixed; bottom: 106px; left: calc(50% + 124px); z-index: 30; padding: 10px 15px; border-radius: 999px; color: #fff; background: rgba(29,29,31,.9); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 160ms, transform 160ms; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; height: auto; min-height: 68px; flex-direction: row; align-items: center; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand-symbol { width: 36px; height: 36px; }
  .site-nav { display: flex; gap: 4px; margin-left: auto; }
  .nav-link { min-height: 40px; padding: 0 11px; }
  .library-meta, .sidebar-note { display: none; }
  main { min-height: calc(100svh - 68px); }
  .hero { min-height: calc(100svh - 68px); }
  .audio-dock { left: 0; }
  .toast { left: 50%; }
}

@media (max-width: 650px) {
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 14px; }
  .nav-link { gap: 7px; font-size: 12px; }
  .nav-link svg { width: 18px; height: 18px; }
  .hero { min-height: calc(100svh - 68px); padding: 48px 20px 138px; }
  .hero h1 { font-size: clamp(30px, 9vw, 56px); line-height: 1.12; }
  .hero-description { margin-top: 19px; font-size: 14px; }
  .search-field { height: 58px; padding: 0 15px; border-radius: 14px; }
  .search-field input { font-size: 15px; }
  .search-key { display: none; }
  .has-search .hero { padding: 36px 20px 25px; }
  .has-search .hero-kicker, .has-search .hero h1 { display: none; }
  .search-results, .album-section { padding-right: 20px; padding-left: 20px; }
  .search-results { padding-top: 4px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 36px; }
  .section-count { max-width: none; white-space: nowrap; text-align: right; }
  .search-item { grid-template-columns: 44px minmax(0, 1fr); }
  .search-artwork { width: 44px; height: 44px; }
  .search-item-kind { display: none; }
  .album-section { padding-top: 36px; }
  .album-grid { gap: 16px; }
  .album-card { flex-basis: 145px; }
  .album-card-text strong { font-size: 13px; }
  .album-detail { border-radius: 20px; }
  .album-detail-head { grid-template-columns: 128px minmax(0, 1fr); gap: 18px; padding: 20px; }
  .album-detail-copy h3 { font-size: clamp(25px, 7vw, 36px); }
  .album-detail-copy > span { margin-top: 8px; font-size: 11px; }
  .album-actions { margin-top: 15px; }
  .primary-button { padding: 9px 14px; font-size: 12px; }
  .track-list { padding: 5px 16px 10px; }
  .track-row { grid-template-columns: 25px minmax(0, 1fr) 44px 20px; gap: 7px; padding: 13px 2px; }
  .track-add-next { flex-basis: 46px; }
  .track-title { font-size: 13px; }
  .track-duration { font-size: 10px; }
  .audio-dock { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; min-height: 96px; padding: 8px 12px 7px; }
  .queue-panel { right: 10px; bottom: 108px; width: calc(100vw - 20px); max-height: min(480px, calc(100dvh - 140px)); }
  .dock-now-playing { grid-column: 1; grid-row: 1; }
  .dock-art { width: 44px; height: 44px; }
  .dock-center { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; max-width: none; }
  .dock-controls { gap: 4px; }
  .dock-progress { grid-template-columns: 32px minmax(80px, 1fr) 32px; gap: 6px; }
  .dock-actions { grid-column: 2; grid-row: 1; }
  .dock-mute, .dock-volume { display: none; }
  .dock-close { margin-left: 0; }
  .toast { bottom: 112px; }
}

@media (max-width: 430px) {
  .sidebar { padding: 11px 14px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 13px; white-space: nowrap; }
  .nav-link { padding: 0 9px; }
  .dock-progress { grid-template-columns: minmax(80px, 1fr); }
  .dock-progress span { display: none; }
  .album-detail-head { grid-template-columns: 104px minmax(0, 1fr); padding: 16px; }
  .album-detail-copy > p { margin-bottom: 5px; }
  .album-detail-copy h3 { font-size: 23px; }
  .album-actions { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
