:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: #15161c;
  --panel-2: #1d1e26;
  --panel-3: #262732;
  --line: #ffffff14;
  --line-strong: #ffffff26;
  --ink: #f3f2f7;
  --quiet: #9b9aa8;
  --faint: #6d6c79;
  --accent: #33a896;
  --accent-soft: #33a89626;
  --accent-ink: #03120f;
  --brand: #ff7a3d;
  --radius: clamp(16px, 1.3vw, 26px);
  --gap: clamp(12px, 1.1vw, 22px);
  --side-w: clamp(224px, 15vw, 290px);
  --player-h: clamp(72px, 5.4vw, 92px);
  --player-space: 0px;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font: clamp(15px, calc(.42vw + 9.5px), 18px)/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; min-height: 100dvh; background: var(--bg); }
body.has-player { --player-space: var(--player-h); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; width: 100%; object-fit: cover; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: middle; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-150%); padding: 9px 15px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: var(--gap);
  max-width: 2400px;
  margin-inline: auto;
  padding: var(--gap);
  padding-bottom: calc(var(--gap) + var(--player-space));
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: var(--gap);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  height: calc(100dvh - var(--gap) * 2 - var(--player-space));
  padding: 1.6rem 1rem 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: .7rem; padding-inline: .6rem; font-weight: 750; font-size: 1.12rem; letter-spacing: -.03em; }
.brand-name { color: var(--brand); white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 1.3rem; flex: none; }
.brand-mark i { width: 4px; border-radius: 3px; background: var(--brand); }
.brand-mark i:nth-child(1) { height: 55%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 70%; }
.brand-mark i:nth-child(4) { height: 40%; }
.main-nav { display: grid; gap: .3rem; }
.main-nav a, .side-link {
  display: flex; align-items: center; gap: .85rem;
  min-height: 2.9rem; padding: .55rem .85rem;
  border-radius: 14px;
  color: var(--quiet); font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.main-nav a .icon, .side-link .icon { width: 1.3rem; height: 1.3rem; }
.main-nav a:hover, .side-link:hover { color: var(--ink); background: #ffffff0a; }
.main-nav a[aria-current], .side-link[aria-current] { color: var(--ink); background: var(--panel-3); }
.side-playlists { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.side-label { margin: 0 0 .5rem; padding-inline: .85rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.side-playlists ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff22 transparent; }
.side-playlists a { display: flex; align-items: center; gap: .75rem; padding: .45rem .85rem; border-radius: 12px; color: var(--quiet); font-size: .9rem; transition: background .2s, color .2s; }
.side-playlists a:hover { color: var(--ink); background: #ffffff0a; }
.side-playlists a[aria-current] { color: var(--ink); background: var(--panel-3); }
.side-playlists img { width: 2.1rem; height: 2.1rem; border-radius: 8px; flex: none; }
.side-playlists a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-empty { padding: .4rem .85rem; color: var(--faint); font-size: .85rem; }
.side-foot { flex: none; display: grid; gap: .4rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.side-link { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.account-chip { display: flex; align-items: center; gap: .65rem; padding: .45rem .5rem .45rem .6rem; border-radius: 14px; background: var(--panel-2); }
.avatar { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #c44f8c); color: #fff; font-weight: 750; font-size: .9rem; }
.account-name { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.account-name strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name small { font-size: .72rem; color: var(--quiet); }
.account-logout { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--quiet); }
.account-logout:hover { background: #ffffff14; color: var(--ink); }
.account-logout .icon { width: 1.05rem; height: 1.05rem; }
.account-switch { margin: 0; color: var(--quiet); font-size: .85rem; }
.account-switch .text-button { font-size: inherit; color: var(--accent); font-weight: 650; }

.workspace { min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.topbar { display: flex; align-items: center; gap: .8rem; }
.search-box { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--panel); border: 1px solid transparent; color: var(--quiet); transition: border-color .2s, background .2s; }
.search-box:focus-within { border-color: var(--line-strong); background: var(--panel-2); }
.search-box input { min-width: 0; flex: 1; border: 0; background: transparent; font-size: .92rem; color: var(--ink); outline: none; }
.search-box input::placeholder { color: var(--faint); }
.top-search { width: min(30rem, 100%); }
#main { min-width: 0; outline: none; }
#main > .empty { margin: 0; }

/* ---------- Buttons ---------- */
.button { min-height: 2.6rem; padding: .5rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; line-height: 1.3; font-size: .88rem; font-weight: 650; white-space: nowrap; transition: background .18s, border-color .18s; }
.button:hover { background: #ffffff10; }
.button .icon { width: 1rem; height: 1rem; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: #3dbba8; }
.circle-button { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; transition: background .18s; }
.circle-button:hover { background: #ffffff12; }
.text-button { border: 0; background: none; padding: .2rem .3rem; color: var(--quiet); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--ink); }
.button-row, .explore-actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1.6rem; color: var(--quiet); }
.empty a { color: var(--accent); }

/* ---------- Home: hero coverflow ---------- */
@property --gallery-glow { syntax: '<color>'; inherits: true; initial-value: #6b5470; }
.library-deck .archive-stage {
  --gallery-glow: #6b5470;
  position: relative;
  height: clamp(280px, min(33vw, 56dvh), 680px);
  container-type: size;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: radial-gradient(ellipse 48% 60% at 50% 55%, color-mix(in srgb, var(--gallery-glow), transparent 55%), transparent 100%);
  transition: --gallery-glow .6s ease;
}
.archive-stage[data-palette="rust"] { --gallery-glow: #9a5a2e; }
.archive-stage[data-palette="green"] { --gallery-glow: #3f6b56; }
.archive-stage[data-palette="rose"] { --gallery-glow: #6a548f; }
.record-rack {
  --preferred-cover: clamp(200px, 21vw, 460px);
  --cover-aspect: .8;
  --record-size: min(var(--preferred-cover), max(1px, calc((100cqh - 28px) * var(--cover-aspect))));
  --spacing: .7;
  --record-step: calc(var(--record-size) * var(--spacing));
  position: absolute;
  inset: 0;
  perspective: 1600px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  animation: rack-in .65s cubic-bezier(.22,.78,.25,1) both;
}
.rack-cover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--record-size);
  aspect-ratio: var(--cover-aspect);
  border: 0;
  border-radius: clamp(14px, 1.4vw, 28px);
  padding: 0;
  background: none;
  opacity: var(--rack-opacity, 0);
  transform: translate(-50%,-50%)
    translate3d(calc(var(--rack-x, 0) * var(--record-step)), 0, var(--rack-depth, 0px))
    rotateY(var(--rack-tilt, 0deg)) scale(var(--rack-scale, 1));
  transition: transform .62s cubic-bezier(.18,.79,.21,1), opacity .47s ease;
}
.rack-cover[inert] { visibility: hidden; }
.rack-echo { cursor: pointer; }
.rack-jacket {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--panel-2);
  box-shadow: 0 18px 50px #000a;
  transition: translate .28s ease, box-shadow .48s ease, filter .4s ease;
}
.rack-jacket img { height: 100%; pointer-events: none; }
.rack-jacket::after { content: ''; position: absolute; inset: 0; border: 1px solid #ffffff1f; border-radius: inherit; pointer-events: none; }
.library-deck .rack-cover:not([aria-pressed="true"]) .rack-jacket { filter: brightness(.62) saturate(.9); }
.library-deck .rack-cover[aria-pressed="true"] { cursor: zoom-in; }
.rack-cover:focus-visible { outline-offset: 6px; }
@media (hover: hover) {
  .record-rack:not(.dragging) .rack-cover:not([aria-pressed="true"]):hover .rack-jacket { translate: 0 -6px; filter: brightness(.8); }
  .track-deck .record-rack:not(.dragging) .rack-cover[aria-pressed="true"]:hover .rack-jacket { translate: 0 -6px; }
}
.record-rack.dragging, .record-rack.dragging * { cursor: grabbing; }
.record-rack.dragging .rack-cover { transition: none; }
@keyframes rack-in { from { opacity: 0; translate: 0 15px; } to { opacity: 1; translate: 0 0; } }
.hero-focus {
  position: absolute;
  z-index: 200;
  left: 50%;
  top: 50%;
  width: var(--record-size);
  aspect-ratio: var(--cover-aspect);
  transform: translate(-50%, -50%);
  border-radius: clamp(14px, 1.4vw, 28px);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 52%, #000000b8);
  pointer-events: none;
  transition: opacity .25s;
}
.record-rack.dragging .hero-focus { opacity: 0; }
.hero-caption { display: flex; align-items: flex-end; gap: .8rem; width: 100%; padding: clamp(14px, 1.6vw, 30px); animation: caption-in .5s ease both; }
.hero-title { flex: 1; min-width: 0; }
.hero-title h2 { margin: 0; font-size: clamp(1.15rem, 1.7vw, 2.1rem); line-height: 1.15; letter-spacing: -.035em; text-shadow: 0 2px 14px #0008; overflow-wrap: anywhere; }
.hero-title span { display: block; margin-top: .3rem; color: #ffffffbf; font-size: .88rem; }
.hero-play { pointer-events: auto; display: grid; place-items: center; flex: none; width: clamp(44px, 3.4vw, 64px); height: clamp(44px, 3.4vw, 64px); padding: 0; border: 1px solid #ffffff40; border-radius: 50%; background: #ffffff2b; color: #fff; backdrop-filter: blur(12px); transition: background .2s, transform .2s; }
.hero-play:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.06); }
.hero-play .icon { width: 42%; height: 42%; margin-left: 6%; }
@keyframes caption-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.stage-arrows { position: absolute; inset: 50% 1rem auto; z-index: 210; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.stage-arrows .circle-button { pointer-events: auto; width: 2.6rem; height: 2.6rem; background: #0b0c10a6; border-color: var(--line-strong); backdrop-filter: blur(10px); }
.stage-arrows .circle-button:hover { background: #ffffff26; }

/* ---------- Home: sections ---------- */
.home-section { margin-top: clamp(1.2rem, 2vw, 2.2rem); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.section-head h2 { margin: 0; font-size: clamp(1.15rem, 1.25vw, 1.5rem); letter-spacing: -.03em; }
.row-arrows { display: flex; gap: .3rem; }
.row-arrows .circle-button { border: 0; color: var(--quiet); }
.row-arrows .circle-button:hover { color: var(--ink); }
.chip-row { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.4rem; padding: .4rem 1.25rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: .9rem; font-weight: 550; color: var(--ink); white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: #ffffff55; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chip.small { min-height: 2rem; padding: .25rem .6rem .25rem .85rem; font-size: .8rem; }
.chip.small .icon { width: .9rem; height: .9rem; }
.track-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(140px, 10.5vw, 230px);
  gap: clamp(10px, 1vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-block: 8px 6px;
  margin-top: -8px;
}
.track-shelf::-webkit-scrollbar { display: none; }
.track-tile {
  scroll-snap-align: start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: .15rem;
  padding: .55rem .55rem .8rem;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--tint);
  text-align: center;
  transition: transform .25s ease;
}
/* Blurred, dimmed copy of the cover behind cards */
.cover-backdrop {
  position: absolute;
  z-index: -1;
  inset: -30%;
  width: 160%;
  max-width: none;
  height: 160%;
  object-fit: cover;
  filter: blur(26px) saturate(1.35) brightness(.55);
  pointer-events: none;
  transition: filter .3s ease;
}
.track-tile:hover { transform: translateY(-4px); }
.track-tile:hover .cover-backdrop, .playlist-card:hover .cover-backdrop { filter: blur(26px) saturate(1.35) brightness(.68); }
.tile-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) - 6px); margin-bottom: .55rem; }
.tile-art img { height: 100%; }
.tile-play, .tile-art .eq { position: absolute; right: .5rem; bottom: .5rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); opacity: 0; translate: 0 6px; transition: opacity .2s, translate .2s; }
.tile-play .icon { width: 1rem; height: 1rem; margin-left: 2px; }
.track-tile:hover .tile-play, .track-tile:focus-visible .tile-play { opacity: 1; translate: 0 0; }
.track-tile strong { text-shadow: 0 1px 8px #0006; font-size: .88rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-tile small { font-size: .76rem; color: #ffffffb8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-tile.is-current .tile-play { display: none; }
.track-tile.is-current .tile-art .eq { opacity: 1; translate: 0 0; }
.shelf-empty { color: var(--quiet); margin: .5rem 0; }

/* equalizer */
.eq { display: none; align-items: center; justify-content: center; gap: 2.5px; }
.is-current .eq, .tile-art .eq { display: flex; }
.eq i { width: 3px; height: 14px; border-radius: 3px; background: currentColor; transform: scaleY(.4); transform-origin: 50% 50%; }
.eq i:nth-child(2) { transform: scaleY(.85); }
.eq i:nth-child(3) { transform: scaleY(.6); }
.eq i:nth-child(4) { transform: scaleY(.75); }
.is-playing .is-current .eq i { animation: eq-bounce 1s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.is-playing .is-current .eq i:nth-child(1) { animation-duration: .8s; animation-delay: -.4s; }
.is-playing .is-current .eq i:nth-child(2) { animation-duration: 1.1s; animation-delay: -.9s; }
.is-playing .is-current .eq i:nth-child(3) { animation-duration: .95s; animation-delay: -.2s; }
.is-playing .is-current .eq i:nth-child(4) { animation-duration: 1.25s; animation-delay: -.6s; }
@keyframes eq-bounce { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------- Playlist browse ---------- */
.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .3rem 0 1.2rem; }
.browse-head h1 { margin: 0; font-size: clamp(1.4rem, 1.8vw, 2.2rem); letter-spacing: -.04em; }
.browse-head h1 small { font-size: .5em; font-weight: 500; color: var(--quiet); letter-spacing: 0; margin-left: .3rem; }
.view-toggle { display: flex; gap: .2rem; padding: .25rem; border-radius: 12px; background: var(--panel); }
.view-toggle button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 9px; background: none; color: var(--faint); }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink); }
.browse-body { display: grid; grid-template-columns: clamp(200px, 13vw, 260px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.filter-panel { position: sticky; top: var(--gap); display: grid; gap: .4rem; padding: 1rem; border-radius: var(--radius); background: var(--panel); }
.filter-panel details + details { border-top: 1px solid var(--line); padding-top: .4rem; }
.filter-panel summary { display: flex; align-items: center; justify-content: space-between; padding: .45rem .4rem; list-style: none; cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-radius: 8px; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary .icon { width: 1rem; height: 1rem; transition: rotate .2s; }
.filter-panel details:not([open]) summary .icon { rotate: 180deg; }
.filter-panel ul { list-style: none; margin: 0 0 .4rem; padding: 0; }
.facet { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .5rem .5rem; border: 0; border-radius: 9px; background: none; color: var(--quiet); font-size: .9rem; text-align: left; transition: background .15s, color .15s; }
.facet span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.facet small { color: var(--faint); font-size: .75rem; }
.facet .icon { width: 1rem; height: 1rem; opacity: 0; color: var(--accent); }
.facet:hover { background: #ffffff0a; color: var(--ink); }
.facet[aria-pressed="true"] { color: var(--ink); }
.facet[aria-pressed="true"] .icon { opacity: 1; }
.filter-empty { margin: .2rem .4rem .6rem; font-size: .82rem; color: var(--faint); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(170px, 13vw, 260px), 1fr)); gap: var(--gap); }
.playlist-card { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; background: var(--tint); transition: transform .25s ease, box-shadow .25s; }
.playlist-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #0008; }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-art { display: block; aspect-ratio: 1; overflow: hidden; }
.card-art img { height: 100%; transition: transform .5s ease; }
.playlist-card:hover .card-art img { transform: scale(1.04); }
.card-body { display: grid; gap: .3rem; padding: .85rem 1rem 1rem; align-content: start; flex: 1; }
.card-body strong { font-size: .98rem; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.card-desc { font-size: .8rem; color: #ffffffa0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: .55rem; margin-top: .35rem; font-size: .78rem; color: #ffffffb0; }
.badge { padding: .1rem .5rem; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .74rem; }
.card-play { position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px #0007; opacity: 0; translate: 0 8px; transition: opacity .2s, translate .2s, transform .2s; }
.card-play .icon { width: 1.1rem; height: 1.1rem; margin-left: 2px; }
.card-play:hover { transform: scale(1.08); }
.playlist-card:hover .card-play, .card-play:focus-visible { opacity: 1; translate: 0 0; }
.playlist-grid .playlist-card { container-type: inline-size; }
.playlist-grid .card-play { top: calc(100cqw - 3.6rem); }
.playlist-list { display: grid; gap: .6rem; }
.playlist-list .playlist-card { display: block; }
.playlist-list .playlist-card:hover { transform: none; }
.playlist-list .card-link { flex-direction: row; align-items: center; gap: 1rem; padding: .6rem; padding-right: 4.5rem; }
.playlist-list .card-art { width: clamp(64px, 5vw, 96px); flex: none; border-radius: 12px; }
.playlist-list .card-body { padding: 0; }
.playlist-list .card-desc { -webkit-line-clamp: 1; }
.playlist-list .card-play { top: 50%; translate: 0 -50%; opacity: 1; }
.playlist-list .playlist-card:hover .card-play { translate: 0 -50%; }

/* ---------- Playlist detail ---------- */
.playlist-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); padding: clamp(1rem, 2vw, 2.4rem); background: color-mix(in srgb, var(--tint), var(--panel) 40%); }
.hero-backdrop { position: absolute; inset: -20%; z-index: -2; width: 140%; height: 140%; filter: blur(70px) saturate(1.3); opacity: .55; }
.playlist-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b0c1033, #0b0c10b3); }
.back-link { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem .35rem .5rem; border-radius: 999px; background: #0006; font-size: .84rem; color: #ffffffd0; backdrop-filter: blur(8px); }
.back-link:hover { background: #000a; color: #fff; }
.hero-inner { display: grid; grid-template-columns: clamp(150px, 15vw, 300px) minmax(0, 1fr); align-items: end; gap: clamp(1.2rem, 2.5vw, 3rem); margin-top: clamp(1rem, 2vw, 2rem); }
.hero-cover { aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) - 4px); box-shadow: 0 24px 60px #000a; }
.hero-cover img { height: 100%; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffffffb3; }
.hero-text h1 { margin: .3rem 0 0; font-size: clamp(2rem, 4.2vw, 5rem); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero-desc { margin: .8rem 0 0; color: #ffffffcc; max-width: 46rem; }
.hero-meta { margin: .5rem 0 0; color: #ffffff99; font-size: .88rem; }
.hero-text .button-row { margin-top: 1.2rem; }
.track-table { margin-top: var(--gap); padding: .5rem; border-radius: var(--radius); background: var(--panel); }
.track-head, .track-row { display: grid; grid-template-columns: 2.4rem 3rem minmax(0, 1.4fr) minmax(0, 1fr) auto 3.5rem 2.6rem; align-items: center; gap: .9rem; padding: .5rem .8rem; }
.track-head { color: var(--faint); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.track-head .icon { width: 1rem; height: 1rem; }
.track-list { list-style: none; padding: 0; margin: 0; }
.track-row { position: relative; border-radius: 12px; transition: background .15s; }
.track-row:hover { background: #ffffff0a; }
.track-number { display: grid; place-items: center; color: var(--quiet); font-size: .86rem; font-variant-numeric: tabular-nums; }
.track-number .eq { height: 1rem; color: var(--accent); gap: 2px; }
.track-number .eq i { width: 2.5px; height: 12px; }
.is-current .track-number > span:first-child { display: none; }
.track-row img { width: 3rem; height: 3rem; border-radius: 8px; }
.card-meta { min-width: 0; }
.card-meta strong { display: block; font-size: .95rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta small { display: block; margin-top: .1rem; color: var(--quiet); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row.is-current strong { color: var(--accent); }
.row-album, .row-duration { color: var(--quiet); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-duration { font-variant-numeric: tabular-nums; }
.row-play { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--quiet); }
.row-play::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.row-play .icon { width: 1rem; height: 1rem; }
.track-row:hover .row-play { background: var(--accent); color: var(--accent-ink); }


/* ---------- Discover ---------- */
#main[data-page="discover"] {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--gap) * 3 - 2.9rem - var(--player-space));
  border-radius: var(--radius);
  overflow: hidden;
  color: #faf7f5;
  background: linear-gradient(180deg, #0d0a10b0, #110d1440 49%, #0d0a10e0), url('/assets/archive-listening-room.jpg') center / cover;
}
#main[data-page="discover"] .deck, [data-discover-results] { display: flex; flex: 1; flex-direction: column; min-height: 0; }
#main[data-page="discover"] .empty { margin: auto; color: #fff; border-color: #fff4; }
.explore-hint { flex: none; color: #f5efeee1; text-align: center; font-size: .88rem; margin: 1.2rem 0 0; }
.track-deck .archive-stage { position: relative; flex: none; height: clamp(260px, calc(100dvh - var(--player-space) - 15rem), 820px); container-type: size; overflow: hidden; }
#main[data-page="discover"] .track-deck { justify-content: center; }
.track-deck .record-rack { --preferred-cover: clamp(218px, 26vw, 520px); --cover-aspect: .84; --spacing: .69; cursor: grab; }
.track-deck .rack-jacket { background: #292229; box-shadow: 0 16px 52px #0b0709ab; }
.track-deck .rack-cover { transition: transform .85s cubic-bezier(.22, .8, .2, 1), opacity .6s ease; }
/* The card that just became current settles in, and its title slides up. */
.track-deck .rack-cover.arriving .rack-jacket { animation: jacket-arrive 1s cubic-bezier(.2, .8, .2, 1) both; }
.track-deck .rack-cover.arriving .track-plaque > * { animation: plaque-in .75s .25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes jacket-arrive {
  0% { scale: .9; filter: brightness(.5) saturate(.75); }
  55% { scale: 1.025; filter: brightness(1.04); }
  100% { scale: 1; filter: none; }
}
@keyframes plaque-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.track-deck .rack-cover[aria-pressed="true"] .rack-jacket { box-shadow: 0 26px 74px #100b13b8, 0 0 0 1px #fff5; }
.track-deck .rack-jacket::after { border-color: #fff6; }
.track-plaque { position: absolute; inset: auto 0 0; display: grid; text-align: left; gap: 4px; padding: 54px clamp(13px,2vw,30px) clamp(16px,2vw,30px); color: #fff; background: linear-gradient(transparent, #130d18d9 62%, #18131bf2); pointer-events: none; }
.track-plaque strong { font-size: clamp(1.2rem,2.2vw,2.6rem); line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.track-plaque > span { font-size: .86rem; color: #f1e9ee; overflow-wrap: anywhere; }
.track-deck .rack-cover[data-side="right"] .track-plaque { text-align: right; }
.track-plaque .track-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.track-tags span { font-size: .75rem; border: 1px solid #fff5; border-radius: 18px; padding: 1px 7px; }
.track-plaque .track-meter { display: none; height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--accent) var(--preview-progress,0%), #ffffff38 var(--preview-progress,0%)); border-radius: 5px; }
.track-deck[data-playing] .rack-cover[aria-pressed="true"] .track-meter { display: block; }
.track-deck .deck-footer { flex: none; display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 6px; width: fit-content; max-width: calc(100% - 26px); margin: 0 auto clamp(14px, 2.5dvh, 28px); padding: 6px; border: 1px solid #fff4; border-radius: 44px; background: #1a1418a6; backdrop-filter: blur(18px); }
.track-deck .rack-controls { display: contents; }
.track-deck .rack-controls .circle-button { border-color: #fff3; background: #ffffff12; color: #fff; }
.track-deck .rack-controls .circle-button:hover, .explore-actions .button:hover { background: #ffffff30; }
.track-deck [data-deck-selection] { grid-area: 1 / 2; }
.explore-actions { flex-wrap: nowrap; gap: 3px; }
.explore-actions .button { min-height: 2.3rem; color: #fff; border-color: transparent; padding-inline: .8rem; }

/* ---------- Player ---------- */
.player {
  position: fixed;
  z-index: 6;
  inset: auto 0 0;
  height: calc(var(--player-h) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(150px, 1fr) max-content minmax(160px, 2.2fr) minmax(120px, .8fr);
  align-items: center;
  gap: clamp(14px, 2vw, 40px);
  padding: 0 clamp(16px, 2vw, 40px) env(safe-area-inset-bottom);
  background: #121318f2;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.now-playing, .transport, .timeline, .sound { display: flex; align-items: center; min-width: 0; }
.now-playing { gap: .9rem; }
.player-cover { width: calc(var(--player-h) - 26px); height: calc(var(--player-h) - 26px); flex: none; border-radius: 12px; }
.player-meta { min-width: 0; display: grid; }
.player-meta strong, .player-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta strong { font-size: .98rem; }
.player-meta span { font-size: .82rem; color: var(--quiet); }
.transport { gap: .8rem; }
.player-button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background .15s; }
.player-button:hover { background: #ffffff14; }
.player-play { width: 3.1rem; height: 3.1rem; background: var(--panel-3); }
.player-play:hover { background: #3a3b48; }
.player-play .icon { width: 1.25rem; height: 1.25rem; }
.timeline { gap: .7rem; }
.timeline span { font-size: .76rem; font-variant-numeric: tabular-nums; color: var(--quiet); }
.sound { justify-content: flex-end; gap: .3rem; }
.range { appearance: none; height: 4px; min-width: 0; margin: 10px 0; border-radius: 10px; background: linear-gradient(90deg, var(--ink) var(--fill,0%), #ffffff26 var(--fill,0%)); cursor: pointer; }
.range::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #ffffff33; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.seek { flex: 1; width: 100%; }
.volume { width: clamp(70px, 6vw, 120px); }
.toast { z-index: 8; position: fixed; bottom: calc(var(--player-space) + 20px); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); margin: 0; padding: 11px 17px; color: var(--bg); background: var(--ink); border-radius: 12px; font-size: .88rem; box-shadow: 0 6px 24px #0008; }

/* ---------- Locked ---------- */
body[data-page="locked"] .app { grid-template-columns: 1fr; }
body[data-page="locked"] :is(.sidebar, .topbar) { display: none; }
.locked { margin: 16vh auto; max-width: 520px; text-align: center; }
.locked .brand-mark { height: 2.4rem; gap: 5px; }
.locked .brand-mark i { width: 7px; }
.locked h1 { margin: 1rem 0 .6rem; font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -.06em; }
.locked p { color: var(--quiet); }
.locked .button-row { justify-content: center; margin-top: 1.6rem; }
.locked .locked-note { margin-top: 1rem; font-size: .85rem; color: var(--faint); }

/* ---------- Studio ---------- */
.subhead { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; justify-content: space-between; margin: .3rem 0 1.4rem; }
.subhead h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -.05em; line-height: 1.1; }
.subhead p { margin: .4rem 0 0; color: var(--quiet); }
.studio-tabs { display: flex; gap: .3rem; width: fit-content; max-width: 100%; padding: .3rem; margin-bottom: var(--gap); border-radius: 14px; background: var(--panel); overflow-x: auto; scrollbar-width: none; }
.studio-tabs button { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .4rem 1rem; border: 0; border-radius: 10px; background: none; color: var(--quiet); font-weight: 650; font-size: .9rem; white-space: nowrap; }
.studio-tabs button span { min-width: 1.5rem; padding: .05rem .45rem; border-radius: 999px; background: #ffffff14; font-size: .74rem; text-align: center; }
.studio-tabs button:hover { color: var(--ink); }
.studio-tabs button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink); }
.studio-tabs button[aria-pressed="true"] span { background: var(--accent); color: var(--accent-ink); }
.studio-panel { padding: clamp(1rem, 1.4vw, 1.6rem); border-radius: var(--radius); background: var(--panel); }
.studio-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.studio-bar p { margin: 0; color: var(--quiet); font-size: .9rem; }
.studio-list { list-style: none; margin: 0; padding: 0; }
.studio-row { display: grid; grid-template-columns: 3.2rem minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .7rem .5rem; border-top: 1px solid var(--line); }
.studio-row > img, .studio-icon { width: 3.2rem; height: 3.2rem; border-radius: 10px; }
.studio-icon { display: grid; place-items: center; background: var(--panel-3); color: var(--quiet); }
.invite-row { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
.studio-main { min-width: 0; }
.studio-main strong { display: block; font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-main small { display: block; margin-top: .15rem; color: var(--quiet); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; min-width: 0; color: var(--quiet); font-size: .82rem; font-variant-numeric: tabular-nums; }
.studio-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.studio-meta .icon { width: .95rem; height: .95rem; }
.studio-tags { gap: .25rem; flex-wrap: wrap; }
.studio-tags em { font-style: normal; padding: .05rem .5rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .74rem; }
.studio-row .button-row { flex-wrap: nowrap; gap: .35rem; justify-content: flex-end; }
.studio-row .button { min-height: 2.1rem; padding: .3rem .8rem; }
.studio-empty { margin: 0; padding: 1.4rem .5rem; border-top: 1px solid var(--line); color: var(--quiet); }
.add-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-options .button { min-height: 3.4rem; border-radius: 14px; }

/* ---------- Editor ---------- */
.editor { color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); width: min(620px, calc(100% - 24px)); max-height: min(87vh, 820px); padding: 0; }
.editor::backdrop { background: #000000a8; backdrop-filter: blur(6px); }
.editor form { display: grid; gap: 14px; padding: 1.5rem; }
.editor h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.04em; }
.editor-header { display: flex; justify-content: space-between; align-items: center; }
.editor-header .circle-button, .editor .order-button { width: 2rem; height: 2rem; }
.editor label { display: grid; gap: 5px; font-size: .86rem; font-weight: 650; min-width: 0; }
.editor input:not([type=checkbox]), .editor select, .editor textarea { width: 100%; min-width: 0; padding: .6rem .75rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-2); color: var(--ink); }
.editor label:has(.file-input) { position: relative; }
.editor input.file-input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.file-picker { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .45rem .5rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-2); font-weight: 500; cursor: pointer; }
.file-button { flex: none; padding: .3rem .75rem; border-radius: 7px; background: var(--panel-3); font-size: .82rem; font-weight: 650; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--quiet); font-size: .84rem; }
.file-picker:hover .file-button { background: #3a3b48; }
.file-input:focus-visible + .file-picker { outline: 2px solid var(--accent); outline-offset: 3px; }
.editor select { appearance: none; padding-right: 2rem; }
.select-wrap { position: relative; }
.select-wrap > .icon { position: absolute; right: .7rem; bottom: .75rem; pointer-events: none; }
.editor fieldset { min-width: 0; margin: 0; padding: .6rem .9rem .9rem; border: 1px solid var(--line-strong); border-radius: 12px; }
.editor legend { padding-inline: 5px; font-size: .84rem; font-weight: 700; }
.editor .form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor .checkbox { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-weight: 500; overflow-wrap: anywhere; }
.editor input[type=checkbox] { accent-color: var(--accent); }
.editor .hint, .form-error, .form-duration { margin: 4px 0 0; font-size: .82rem; font-weight: 400; color: var(--quiet); }
.form-error { color: #ff8a7a; }
.editor .order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.editor .order-row:last-child { border: 0; }
.editor .order-row .button-row { flex: none; gap: 4px; }
.editor .order-button .icon { width: .9rem; height: .9rem; }
.pick-search { display: flex !important; grid-template-columns: none; align-items: center; gap: .5rem !important; margin: .2rem 0 .5rem; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel-2); color: var(--quiet); font-weight: 400 !important; }
.editor .pick-search input { border: 0 !important; background: none !important; padding: .55rem 0 !important; outline: none; }
.pick-list { display: grid; gap: .15rem; max-height: 17rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff22 transparent; }
.editor .pick-row { display: grid; grid-template-columns: auto 2.4rem minmax(0, 1fr); align-items: center; gap: .7rem; padding: .35rem .5rem; border-radius: 10px; font-weight: 500; cursor: pointer; }
.editor .pick-row:hover { background: #ffffff0a; }
.editor .pick-row:has(input:checked) { background: var(--accent-soft); }
.pick-row img { width: 2.4rem; height: 2.4rem; border-radius: 7px; }
.pick-row span { display: grid; min-width: 0; line-height: 1.3; }
.pick-row strong, .pick-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row small { color: var(--quiet); font-size: .76rem; font-weight: 400; }
.order-title { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.order-title em { width: 1.2rem; font-style: normal; color: var(--quiet); font-size: .8rem; text-align: right; }
.order-title img { width: 2rem; height: 2rem; border-radius: 6px; flex: none; }

/* ---------- Responsive ---------- */
/* Large monitors: give the hero and grids more room */
@media (min-width: 1800px) {
  .track-shelf { grid-auto-columns: clamp(180px, 9.5vw, 240px); }
}
/* Laptops: collapse the filter column a bit */
@media (max-width: 1280px) {
  .player { grid-template-columns: minmax(140px, 1fr) max-content minmax(140px, 1.8fr) max-content; }
}
/* Tablets: icon rail sidebar */
@media (max-width: 1100px) {
  :root { --side-w: 76px; }
  .sidebar { align-items: center; padding: 1.2rem .6rem; gap: 1.2rem; }
  .brand { padding: 0; justify-content: center; }
  .brand-name, .side-label { display: none; }
  .main-nav a > span, .side-link > span, .side-playlists a span, .account-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .main-nav a, .side-link { justify-content: center; width: 3rem; padding: 0; }
  .side-foot { justify-items: center; width: 100%; }
  .account-chip { flex-direction: column; gap: .3rem; padding: .4rem; background: none; }
  .side-playlists { align-items: center; }
  .side-playlists ul { display: grid; gap: .4rem; scrollbar-width: none; }
  .side-playlists a { padding: .25rem; justify-content: center; }
  .side-playlists img { width: 2.6rem; height: 2.6rem; }
  .side-empty { display: none; }
  .browse-body { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem 1.4rem; padding: .7rem 1rem; }
  .filter-panel details + details { border: 0; padding: 0; }
  .filter-panel details[open] { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
  .filter-panel summary .icon { display: none; }
  .filter-panel ul { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
  .facet { width: auto; padding: .3rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .82rem; }
  .facet .icon { display: none; }
  .facet[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .facet[aria-pressed="true"] small { color: inherit; }
  .studio-row { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
  .studio-row .studio-meta { grid-column: 2 / -1; grid-row: 2; }
}
/* Phones */
@media (max-width: 720px) {
  :root { --gap: 12px; --player-h: 112px; --radius: 16px; }
  .app { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sidebar { position: sticky; top: 0; z-index: 5; flex-direction: row; align-items: center; justify-content: space-between; height: auto; margin: calc(var(--gap) * -1) calc(var(--gap) * -1) 0; padding: .6rem .9rem; border-radius: 0; background: #0b0c10e6; backdrop-filter: blur(16px); gap: .5rem; overflow: visible; }
  .side-playlists { display: none; }
  .main-nav { display: flex; gap: .2rem; }
  .main-nav a, .side-link { width: 2.6rem; min-height: 2.6rem; border-radius: 12px; }
  .side-foot { display: flex; align-items: center; gap: .2rem; width: auto; border: 0; padding: 0; }
  .account-chip { flex-direction: row; padding: 0; gap: .1rem; }
  .avatar { width: 2rem; height: 2rem; font-size: .8rem; }
  .studio-row { grid-template-columns: 2.8rem minmax(0, 1fr); gap: .4rem .8rem; }
  .studio-row > img, .studio-icon { width: 2.8rem; height: 2.8rem; }
  .studio-row .studio-meta, .studio-row .button-row { grid-column: 2; grid-row: auto; justify-content: flex-start; }
  .studio-bar .button { width: 100%; }
  .topbar { gap: .5rem; }
  .top-search { width: auto; flex: 1; padding: .55rem .9rem; }
  .library-deck .archive-stage { height: clamp(260px, 92vw, 460px); }
  .library-deck .record-rack { --preferred-cover: clamp(170px, 58vw, 300px); --spacing: .6; perspective: 1100px; }
  .stage-arrows { inset-inline: .4rem; }
  .stage-arrows .circle-button { width: 2.2rem; height: 2.2rem; }
  .hero-title h2 { font-size: 1.15rem; }
  .track-shelf { grid-auto-columns: clamp(124px, 38vw, 170px); }
  .browse-head h1 small { display: block; margin: .2rem 0 0; }
  .playlist-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card-body { padding: .7rem .75rem .8rem; }
  .card-desc { display: none; }
  .card-play { opacity: 1; translate: 0 0; width: 2.4rem; height: 2.4rem; }
  .playlist-grid .card-play { top: calc(100cqw - 3rem); right: .6rem; }
  .hero-inner { grid-template-columns: 1fr; justify-items: start; }
  .hero-cover { width: min(56vw, 220px); }
  .track-head, .track-row { grid-template-columns: 1.6rem 2.6rem minmax(0, 1fr) auto 2.8rem 2.2rem; gap: .6rem; padding-inline: .4rem; }
  .track-row img { width: 2.6rem; height: 2.6rem; }
  .row-album { display: none; }
  #main[data-page="discover"] { min-height: calc(100dvh - 9.5rem - var(--player-space)); }
  .track-deck .archive-stage { height: clamp(260px, calc(100dvh - var(--player-space) - 17rem), 560px); }
  .track-deck .record-rack { --preferred-cover: clamp(188px, 62vw, 330px); --spacing: .61; }
  .track-plaque { padding-top: 38px; }
  .explore-actions .button { font-size: .8rem; gap: 4px; padding-inline: 6px; }
  .player { grid-template-columns: minmax(0, 1fr) max-content; grid-template-rows: auto auto; row-gap: 0; column-gap: .6rem; align-content: center; padding-top: .4rem; }
  .now-playing { gap: .6rem; }
  .player-cover { width: 2.6rem; height: 2.6rem; border-radius: 8px; }
  .transport { gap: .2rem; }
  .player-play { width: 2.6rem; height: 2.6rem; }
  .timeline { grid-column: 1 / -1; grid-row: 2; }
  .sound { display: none; }
  .editor form { padding: 1rem; }
}
@media (max-width: 470px) {
  .add-options { grid-template-columns: 1fr; }
}
@media (max-height: 640px) and (min-width: 721px) {
  .library-deck .archive-stage { height: clamp(240px, 52dvh, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Personal library: likes, add-to-playlist, My Library ---------- */
.like-button { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--quiet); transition: background .15s, color .15s, transform .15s; }
.like-button:hover { background: #ffffff14; color: var(--ink); }
.like-button .icon { width: 1.15rem; height: 1.15rem; }
.like-button[aria-pressed="true"] { color: var(--brand); }
.like-button[aria-pressed="true"] .icon { fill: currentColor; }
.like-button[aria-pressed="true"]:active { transform: scale(.88); }
.row-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: .1rem; }
.row-actions .circle-button { width: 2rem; height: 2rem; border-color: transparent; color: var(--quiet); }
.row-actions .circle-button:hover { color: var(--ink); }
.row-actions .circle-button .icon { width: 1rem; height: 1rem; }
.tile-cell { position: relative; display: grid; scroll-snap-align: start; }
.tile-like { position: absolute; top: .9rem; right: .9rem; background: #0b0c10a6; color: #fff; backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s, background .15s; }
.tile-cell:hover .tile-like, .tile-like:focus-visible, .tile-like[aria-pressed="true"] { opacity: 1; }
.tile-like:hover { background: #0b0c10d9; }
.deck-like { color: #fff; width: 2.3rem; height: 2.3rem; }
.deck-like:hover { background: #ffffff30; }
.player-like { margin-left: .2rem; }
.side-heart { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #c44f8c); color: #fff; }
.side-heart .icon { width: 1rem; height: 1rem; fill: currentColor; }
.side-mine { flex: 0 1 auto; max-height: 40%; }
.locked-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--panel); }
.locked-inline p { margin: 0; color: var(--quiet); }
.empty .icon { width: 1rem; height: 1rem; vertical-align: -2px; }
@media (hover: none) { .tile-like { opacity: 1; } }
@media (max-width: 1100px) {
  .side-heart { width: 2.6rem; height: 2.6rem; }
  .player { grid-template-columns: minmax(200px, 1.4fr) max-content minmax(110px, 1.3fr) max-content; gap: clamp(10px, 1.6vw, 24px); }
  .volume { width: 64px; }
}
@media (max-width: 720px) {
  .row-actions .circle-button, .row-actions .like-button { width: 1.9rem; height: 1.9rem; }
  .row-actions [data-action="add-to-playlist"] { display: none; }
  /* In your own playlist the edit buttons get their own line so the title keeps its width. */
  .track-row.editable { row-gap: 0; }
  .track-row.editable .row-actions { grid-column: 3 / -1; grid-row: 2; margin: -.2rem 0 0 -.4rem; }
  .track-row.editable .track-number, .track-row.editable > img { grid-row: 1 / 3; }
  .player-like { display: none; }
}
.side-link.side-signup { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.side-link.side-signup:hover { background: #3dbba8; color: var(--accent-ink); }
/* Narrow screens hide sidebar labels; keep "Sign up" readable as text. */
@media (max-width: 1100px) {
  .side-link.side-signup { width: auto; min-height: 2.4rem; padding: 0 .55rem; border-radius: 10px; font-size: .74rem; white-space: nowrap; }
  .side-link.side-signup > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .side-link.side-signup .icon { display: none; }
}
/* Narrow screens show nav icons only; "My" is shown as a word so listeners can find it. */
@media (max-width: 1100px) {
  .main-nav a.nav-my .icon { display: none; }
  .main-nav a.nav-my > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-weight: 800; font-size: .92rem; letter-spacing: -.02em; }
}

/* ---------- Touch: no zoom on tap or when focusing a field ---------- */
/* iOS zooms into inputs whose text is smaller than 16px, and double-tapping a button zooms too. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, button, a, input, select, textarea, label, summary { touch-action: manipulation; }
@media (pointer: coarse), (max-width: 1100px) {
  input, select, textarea, .search-box input, .editor input:not([type=checkbox]), .editor select, .editor textarea { font-size: 16px !important; }
}

/* ---------- Account button, menus (popover / bottom sheet), profile ---------- */
.top-brand, .top-account, .row-more { display: none; }
button.account-chip { width: 100%; border: 0; color: inherit; text-align: left; cursor: pointer; transition: background .15s; }
button.account-chip:hover { background: var(--panel-3); }
.account-chip > .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--quiet); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.large { width: 3.4rem; height: 3.4rem; font-size: 1.3rem; }
.sheet { color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-strong); padding: 0; inset: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 82dvh; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px #0009; }
.sheet::backdrop { background: #00000080; }
.sheet:not(.as-popover)[open] { animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-up { from { translate: 0 30%; opacity: .4; } }
.sheet.as-popover { inset: auto; margin: 0; width: 17.5rem; border-radius: 16px; box-shadow: 0 18px 48px #000a; }
.sheet.as-popover::backdrop { background: transparent; }
.sheet-body { display: grid; gap: 2px; padding: .55rem .5rem calc(.6rem + env(safe-area-inset-bottom)); }
.sheet:not(.as-popover) .sheet-body::before { content: ''; justify-self: center; width: 2.4rem; height: 4px; margin: .1rem 0 .4rem; border-radius: 4px; background: #ffffff38; }
.sheet-head { display: flex; align-items: center; gap: .8rem; padding: .5rem .7rem .8rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line); }
.sheet-head > img { width: 3rem; height: 3rem; border-radius: 8px; flex: none; }
.sheet-head > div { display: grid; min-width: 0; line-height: 1.3; }
.sheet-head strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head small { color: var(--quiet); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-item { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 3rem; padding: .55rem .8rem; border: 0; border-radius: 10px; background: none; font-size: .95rem; font-weight: 550; text-align: left; }
.sheet-item:hover, .sheet-item:focus-visible { background: #ffffff10; }
.sheet-item .icon { width: 1.25rem; height: 1.25rem; color: var(--quiet); }
.sheet-item[data-action="logout"] { color: #ff9b8f; }
.sheet-item[data-action="logout"] .icon { color: inherit; }
.profile-photo { display: flex; align-items: center; gap: 1rem; }
.profile-photo > label { flex: 1; }
.profile-preview .avatar { width: 4.6rem; height: 4.6rem; font-size: 1.7rem; }

/* ---------- Phones: YouTube Music–style layout ---------- */
@media (max-width: 720px) {
  :root { --nav-h: 58px; --mini-h: 64px; --player-h: var(--mini-h); }
  .app { padding-bottom: calc(var(--nav-h) + var(--player-space) + env(safe-area-inset-bottom) + 18px); }
  body.np-open { overflow: hidden; }

  /* Bottom tab bar */
  .sidebar { position: fixed; z-index: 7; inset: auto 0 0; top: auto; display: block; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); margin: 0; padding: 0 0 env(safe-area-inset-bottom); border-radius: 0; border-top: 1px solid var(--line); background: #0d0e12f5; backdrop-filter: blur(18px); }
  .sidebar .brand, .side-foot, .side-playlists { display: none !important; }
  .main-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; height: 100%; }
  .main-nav a, .main-nav a.nav-my { flex-direction: column; justify-content: center; gap: 3px; width: auto; min-height: 0; height: 100%; padding: 0; border-radius: 0; background: none !important; color: var(--quiet); font-size: .68rem; font-weight: 600; }
  .main-nav a > span, .main-nav a.nav-my > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: .68rem; font-weight: 600; letter-spacing: 0; }
  .main-nav a .icon, .main-nav a.nav-my .icon { display: inline-block; width: 1.5rem; height: 1.5rem; }
  .main-nav a[aria-current] { color: var(--ink); }
  .main-nav a[aria-current] .icon { stroke-width: 2.1; }

  /* Top bar: logo · search · profile */
  .topbar { position: sticky; top: 0; z-index: 5; gap: .55rem; margin: calc(var(--gap) * -1) calc(var(--gap) * -1) 0; padding: .55rem var(--gap); background: #0b0c10eb; backdrop-filter: blur(16px); }
  .top-brand { display: flex; align-items: center; flex: none; padding: .3rem; }
  .top-brand .brand-name { display: none; }
  .top-search { flex: 1; width: auto; padding: .5rem .85rem; }
  .top-account { display: flex; align-items: center; gap: .35rem; flex: none; }
  .top-avatar { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border: 0; border-radius: 50%; background: var(--panel-3); color: var(--ink); }
  .top-avatar .avatar { width: 2.3rem; height: 2.3rem; font-size: .9rem; }
  .top-avatar .icon { width: 1.2rem; height: 1.2rem; }
  .top-signup { min-height: 2.2rem; padding: 0 .85rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .82rem; font-weight: 750; }

  /* Mini player above the tab bar */
  .player { inset: auto 0 calc(var(--nav-h) + env(safe-area-inset-bottom)); height: var(--mini-h); grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr; gap: .3rem; padding: 0 .35rem 0 .55rem; border-top: 0; border-bottom: 1px solid var(--line); background: #1b1c23f7; cursor: pointer; }
  .player::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: var(--progress, 0%); background: var(--ink); }
  .player .timeline, .player .sound, .player .previous, .player .player-like { display: none; }
  .now-playing { gap: .7rem; }
  .player-cover { width: 2.75rem; height: 2.75rem; border-radius: 6px; }
  .player-meta strong { font-size: .92rem; }
  .player-meta span { font-size: .8rem; }
  .transport { gap: 0; }
  .player-play { width: 2.9rem; height: 2.9rem; background: none; }
  .player-play:hover { background: #ffffff14; }
  .player-play .icon, .player .next .icon { width: 1.45rem; height: 1.45rem; }
  .player .next { width: 2.9rem; height: 2.9rem; }
  .toast { bottom: calc(var(--nav-h) + var(--player-space) + env(safe-area-inset-bottom) + 14px); }


  /* Song lists: cover · title/artist · ⋮ — tap the row to play */
  .track-table { padding: 0; background: none; }
  .track-head { display: none; }
  .track-row, .track-row.editable { grid-template-columns: 3rem minmax(0, 1fr) 2.5rem; gap: .85rem; padding: .4rem .1rem; border-radius: 8px; }
  .track-row .track-number, .track-row .row-album, .track-row .row-actions, .track-row .row-duration { display: none !important; }
  .track-row > img, .track-row.editable > img { grid-row: auto; width: 3rem; height: 3rem; border-radius: 6px; }
  .track-row .row-play { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; border-radius: 8px; opacity: 0; }
  .track-row:hover .row-play { background: none; }
  .row-more { position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--quiet); }
  .row-more:active { background: #ffffff14; }
  .row-more .icon { width: 1.3rem; height: 1.3rem; }
  .card-meta strong { font-size: .95rem; font-weight: 600; }

  /* Home: square covers with text underneath */
  .section-head h2 { font-size: 1.3rem; letter-spacing: -.03em; }
  .track-shelf { grid-auto-columns: clamp(130px, 40vw, 170px); gap: 12px; }
  .track-tile { padding: 0 1px; background: none; text-align: left; gap: .1rem; }
  .track-tile:hover { transform: none; }
  .track-tile .cover-backdrop, .tile-like, .tile-play { display: none; }
  .tile-art { border-radius: 8px; margin-bottom: .45rem; }
  .track-tile strong { font-size: .9rem; font-weight: 600; text-shadow: none; }
  .track-tile small { color: var(--quiet); font-size: .8rem; }

  /* Playlist pages: centered header like an album page */
  .hero-inner { justify-items: center; text-align: center; }
  .hero-cover { width: min(62vw, 240px); }
  .hero-text .button-row { justify-content: center; }

  /* Discover fits between the top bar and the tab bar */
  #main[data-page="discover"] { min-height: calc(100dvh - 4.6rem - var(--nav-h) - var(--player-space) - env(safe-area-inset-bottom)); }
  .track-deck .archive-stage { height: clamp(250px, calc(100dvh - var(--nav-h) - var(--player-space) - 16rem), 540px); }
}
.sheet-body:focus { outline: none; }

/* ---------- Now playing: turntable ---------- */
.np { display: none; }
.np:not([hidden]) {
  position: fixed; z-index: 9; inset: 0; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 10px) 22px calc(env(safe-area-inset-bottom) + 28px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint, #333) 62%, #0b0c10) 0%, #0b0c10 80%);
  animation: np-up .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes np-up { from { translate: 0 10%; opacity: .3; } }
body.np-open { overflow: hidden; }
.np-backdrop { position: absolute; z-index: -1; inset: -25%; width: 150%; max-width: none; height: 75%; object-fit: cover; filter: blur(70px) saturate(1.4) brightness(.45); opacity: .9; pointer-events: none; }
.np-head { display: flex; align-items: center; justify-content: space-between; }
.np-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffffffb3; }
.np-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.np-icon:hover, .np-icon:active { background: #ffffff18; }
.np-icon .icon { width: 1.55rem; height: 1.55rem; }
.np-art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 18px 0 24px; }
.np-turntable { --size: min(76vw, 46dvh, 560px); position: relative; width: var(--size); aspect-ratio: 1; }
/* The record: fine grooves, a soft rim, the cover as the centre label. It spins only while playing. */
.np-record {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, #0a0a0c 31.4% 33%, transparent 33.4%),
    repeating-radial-gradient(circle, #121215 0 1.2px, #1b1b20 1.2px 2.6px),
    #141417;
  box-shadow: 0 0 0 1px #ffffff14, 0 0 0 7px #0d0d10, 0 0 0 8px #ffffff12, 0 30px 70px #000c;
  animation: record-spin 7s linear infinite; animation-play-state: paused;
}
body.is-playing .np-record { animation-play-state: running; }
@keyframes record-spin { to { rotate: 360deg; } }
.np-cover { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; translate: -50% -50%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #0a0a0c, 0 0 0 4px #ffffff1c; }
.np-record::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4.2%; height: 4.2%; translate: -50% -50%; border-radius: 50%; background: #e6e5ea; box-shadow: 0 0 0 3px #0a0a0cb0; }
/* A still light sheen over the spinning record makes the rotation read as real. */
.np-turntable::before { content: ''; position: absolute; z-index: 1; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from 25deg, transparent 0 10%, #ffffff1c 15%, transparent 22% 55%, #ffffff14 62%, transparent 70%); mix-blend-mode: screen; }
.np-arm { position: absolute; z-index: 2; top: -6%; right: -6%; width: 30%; height: 54%; overflow: visible; transform-origin: 80% 7.8%; rotate: -24deg; transition: rotate .7s cubic-bezier(.4, .1, .2, 1); filter: drop-shadow(0 8px 10px #0009); }
body.is-playing .np-arm { rotate: 6deg; }
.np-panel { display: grid; gap: 0; }
.np-meta { display: flex; align-items: center; gap: .8rem; }
.np-text { display: grid; flex: 1; min-width: 0; }
.np-text strong { font-size: 1.45rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-text span { color: #ffffffb0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-like { width: 2.9rem; height: 2.9rem; color: var(--ink); }
.np-like .icon { width: 1.6rem; height: 1.6rem; }
.np-timeline { margin-top: 18px; }
.np-seek { width: 100%; margin: 6px 0 4px; }
.np-times { display: flex; justify-content: space-between; color: #ffffffa0; font-size: .78rem; font-variant-numeric: tabular-nums; }
.np-transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; margin-top: 16px; }
.np-transport .np-icon { width: 3.4rem; height: 3.4rem; }
.np-transport .np-icon .icon { width: 2rem; height: 2rem; }
.np-prev { justify-self: end; }
.np-next { justify-self: start; }
.np-play { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #0b0c10; box-shadow: 0 10px 30px #0007; }
.np-play .icon { width: 1.8rem; height: 1.8rem; }
/* Tablets and computers: record on the left, song details on the right. */
@media (min-width: 721px) {
  .np:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 440px); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(32px, 6vw, 110px); padding: 20px clamp(24px, 5vw, 90px) 40px; }
  .np-head { grid-column: 1 / -1; }
  .np-art { padding: 10px 0; }
  .np-turntable { --size: min(42vw, 72dvh, 620px); }
  .np-panel { align-self: center; }
  .np-text strong { font-size: clamp(1.6rem, 2.4vw, 2.4rem); white-space: normal; }
  .player-cover, .player-meta { cursor: pointer; }
}
@media (max-width: 720px) and (max-height: 640px) {
  .np-turntable { --size: min(70vw, 38dvh); }
}

/* ---------- CD cases (My library) ---------- */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 11vw, 200px), 1fr)); gap: clamp(18px, 1.6vw, 28px) clamp(12px, 1.2vw, 22px); }
.disc-card { display: grid; gap: .55rem; min-width: 0; }
.disc-card strong { font-size: .95rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.disc-card small { display: block; margin-top: -.35rem; color: var(--quiet); font-size: .8rem; }
.disc-card:hover .cd-case { translate: 0 -3px; }
.disc-card[aria-current] strong { color: var(--accent); }
.cd-case {
  position: relative; display: block; aspect-ratio: 1; border-radius: 5%; overflow: hidden;
  background: linear-gradient(135deg, #ffffff22, #ffffff06 38%, #ffffff10 70%, #ffffff1c), #08090c;
  border: 1px solid #ffffff4d;
  box-shadow: inset 0 0 0 2px #ffffff0d, inset 0 1px 0 #ffffff66, 0 12px 26px #000a;
  transition: translate .25s ease;
}
/* Hinge strip on the left edge, with two clips. */
.cd-case::before { content: ''; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 10%; border-right: 1px solid #ffffff38; background: linear-gradient(90deg, #ffffff30, #ffffff0c 70%), linear-gradient(#0000 22%, #ffffff40 22% 30%, #0000 30% 70%, #ffffff40 70% 78%, #0000 78%); }
/* Glare across the clear plastic. */
.cd-case::after { content: ''; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(118deg, #ffffff2e 0 12%, transparent 26% 64%, #ffffff12 74%, transparent 86%); }
.cd-disc { position: absolute; z-index: 1; top: 50%; left: 14.5%; width: 81%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px #ffffff55, 0 4px 14px #0009; background: #2a2a30; }
.cd-disc img { width: 100%; height: 100%; object-fit: cover; }
/* Centre hole, clear hub ring and a rainbow sheen like a real disc. */
.cd-disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle, #08090c 0 8.5%, #ffffffc0 9% 10%, #ffffff30 10.5% 17%, #00000040 17.5% 18.5%, transparent 19%),
  conic-gradient(from 200deg, transparent 0 8%, #ffffff30 13%, transparent 20% 48%, #9ee7ff26 55%, #ffd6f526 60%, transparent 68%);
}
.cd-disc.liked { background: radial-gradient(circle at 30% 25%, #ffb38a, #ff7a3d 35%, #c44f8c 75%, #5d2c6e); display: grid; place-items: center; }
.cd-disc.liked .icon { position: relative; z-index: 1; width: 28%; height: 28%; translate: 0 -92%; color: #fff; fill: currentColor; filter: drop-shadow(0 2px 6px #0005); }
.hero-cover.hero-disc { overflow: visible; border-radius: 0; box-shadow: none; }
.hero-disc .cd-case { width: 100%; }
.hero-disc .cd-disc img { height: 100%; }
@media (max-width: 720px) {
  .disc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .disc-card strong { font-size: .88rem; }
  .disc-card small { font-size: .76rem; }
}
