.layout { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { border-right: 1px solid #213035; background: var(--side); padding: 1.8rem 1rem 7.2rem; display: flex; flex-direction: column; min-height: 100vh; }
.sidebar .brand { margin-left: .4rem; }
.navigation { display: grid; gap: .35rem; margin-top: 2.4rem; }
.navigation button {
  background: transparent; color: var(--muted); display: flex; gap: .8rem; align-items: center;
  text-align: left; border: 0; padding: .68rem .8rem; border-radius: 10px; min-height: 47px; font-weight: 670;
}
.navigation button:hover { background: #162429; color: var(--text); }
.navigation button[aria-current="page"] { color: var(--accent); background: #243327; }
.sidebar-footer { margin-top: auto; padding: 1.5rem .5rem 0; }
.availability { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .86rem; }
.availability > span:first-child { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
.main { min-width: 0; padding: 1.6rem clamp(1rem, 4vw, 3.3rem) 8.8rem; width: 100%; max-width: 1490px; margin: 0 auto; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.topline .search { flex: 1 1 auto; max-width: 490px; }
.top-actions { display: flex; gap: .6rem; align-items: center; }
.account-button { white-space: nowrap; }
.hero { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #2e4144; border-radius: 21px; min-height: 294px; background: #101e21; display: flex; align-items: center; }
.hero-art { inset: 0; position: absolute; z-index: -2; background: #17282d url("/assets/vinyl.webp") center right / auto 132% no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101c20 0%, #101c20e8 41%, #101c2000 88%); }
.hero.has-cover .hero-art { background-image: var(--art); background-size: auto 120%; }
.hero-content { padding: clamp(1.3rem, 4vw, 3rem); width: min(720px, 81%); }
.hero-label { color: var(--accent); display: inline-flex; align-items: center; gap: .52rem; font-weight: 700; font-size: .88rem; }
.hero h1 { color: #f4fffa; font-size: clamp(1.65rem, 4.4vw, 3.75rem); margin: .52rem 0; letter-spacing: -.067em; overflow-wrap: anywhere; }
.hero p { margin-top: .55rem; }
.hero .primary { margin-top: 1.25rem; padding-inline: 1.07rem; }
.local-intro { display: flex; justify-content: space-between; align-items: center; gap: .85rem; flex-wrap: wrap; padding: .8rem 0; }
.local-intro h1 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin-bottom: .35rem; }
.tracks-section { margin-top: 1.7rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.section-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem; }
.section-head h2 { font-size: clamp(1.28rem, 2vw, 1.68rem); letter-spacing: -.034em; }
.section-head .muted { font-size: .89rem; }
.track-table { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.track-head, .track-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 54px; gap: .72rem;
  align-items: center; text-align: left; padding: .68rem .95rem; width: 100%;
}
.track-head { font-size: .85rem; color: var(--muted); background: #142125; border-bottom: 1px solid var(--border); }
.track-row { background: transparent; color: var(--text); border: 0; border-bottom: 1px solid #213239; min-height: 63px; }
.track-row:last-child { border-bottom: 0; }
.track-row:hover { background: #1c3035; }
.track-row.is-current { background: #20352c; }
.track-row.is-current .track-name { color: var(--accent); }
.track-main { display: flex; align-items: center; gap: .72rem; min-width: 0; }
.track-main .cover { width: 42px; border-radius: 8px; }
.track-copy { display: grid; min-width: 0; gap: .13rem; }
.track-name, .track-artist, .track-album, .current-copy > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-name { font-size: .94rem; font-weight: 720; }
.track-artist, .track-album, .track-time { font-size: .85rem; color: var(--muted); }
.track-time { font-variant-numeric: tabular-nums; }
.empty { text-align: center; border: 1px solid var(--border); padding: 2.8rem .95rem; border-radius: var(--radius); background: var(--panel); }
.empty > i { font-size: 1.55rem; color: var(--accent); margin-bottom: .72rem; }
.empty h3 { font-size: 1.15rem; }
.empty p { margin-top: .4rem; }
.empty button { margin-top: .9rem; }
.player-bar {
  position: fixed; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 1.48fr) minmax(0, 1fr);
  align-items: center; inset: auto 0 0; padding: .75rem 1.3rem max(.72rem, env(safe-area-inset-bottom));
  background: #142125f5; border-top: 1px solid #2b3d42; gap: 1rem; backdrop-filter: blur(16px);
}
.current-track { display: flex; align-items: center; gap: .72rem; text-align: left; min-width: 0; background: transparent; color: var(--text); border: 0; border-radius: 9px; padding: 0; }
.current-cover { width: 49px; border-radius: 9px; }
.current-copy { display: grid; gap: .11rem; min-width: 0; }
.current-copy strong { font-size: .9rem; }
.current-copy span { font-size: .84rem; color: var(--muted); }
.expand-icon { margin-left: .15rem; color: var(--muted); }
.transport { display: grid; gap: .4rem; }
.transport-buttons { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.transport-buttons .icon-button { min-height: 33px; width: 37px; }
.circle-play { color: var(--accent-ink); background: var(--accent); border: 0; width: 38px !important; height: 38px; border-radius: 50%; }
.circle-play:hover:enabled { background: #e7ffc3; }
.timeline { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: .53rem; color: var(--muted); font-size: .77rem; font-variant-numeric: tabular-nums; }
.timeline > :last-child { text-align: right; }
.player-extra { justify-content: end; display: flex; align-items: center; gap: .28rem; }
.player-extra input { width: min(6rem, 36%); }
.now-playing {
  max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; border: 0;
  padding: 1.2rem clamp(1.05rem, 5vw, 5rem); background: radial-gradient(ellipse at 23% 22%, #294c3b, #121f24 45%, #0c1417 90%); color: var(--text);
}
.close-now { position: absolute; top: 1rem; right: 1.1rem; z-index: 1; }
.now-body { max-width: 1300px; margin: 0 auto; min-height: 100%; align-items: center; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); gap: clamp(1.6rem, 7vw, 7rem); padding-top: 1.4rem; }
.now-info { align-self: center; max-width: 560px; min-width: 0; }
.now-cover { width: min(100%, 55svh, 470px); border-radius: 16px; box-shadow: 0 20px 70px #0008; font-size: clamp(2.5rem, 8vw, 6rem); }
.now-info h2 { margin: .85rem 0 .27rem; font-size: clamp(1.25rem, 3vw, 2.3rem); overflow-wrap: anywhere; }
.now-info .timeline { margin: .95rem 0 .65rem; }
.now-lyrics { align-self: center; min-width: 0; }
.now-lyrics h3 { font-size: 1.04rem; color: var(--muted); margin-bottom: .7rem; }
.lyric-lines { max-height: 68svh; overflow: auto; scroll-padding-block: 15%; overscroll-behavior: contain; scrollbar-color: var(--border) transparent; }
.lyric-line { display: block; text-align: left; width: 100%; border: 0; padding: .44rem 0; color: #bdceca; font-weight: 650; font-size: clamp(1rem, 2.4vw, 1.75rem); line-height: 1.5; background: transparent; }
.lyric-line:hover, .lyric-line.active { color: var(--accent); }
@media (max-width: 900px) {
  .layout { grid-template-columns: 180px minmax(0, 1fr); }
  .sidebar { padding-inline: .65rem; }
  .player-bar { grid-template-columns: minmax(140px, 1fr) minmax(185px, 1.2fr) minmax(100px, 1fr); gap: .65rem; }
}
@media (max-width: 690px) {
  .layout { display: block; }
  .sidebar { min-height: unset; display: block; padding: 1rem .85rem .72rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar-footer { display: none; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; }
  .navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; margin-top: .85rem; }
  .navigation button { min-height: 41px; padding: .5rem .35rem; justify-content: center; gap: .4rem; font-size: .85rem; }
  .main { padding: .9rem .85rem 8.5rem; }
  .topline { margin-bottom: .85rem; gap: .48rem; }
  .top-actions { gap: .2rem; }
  .top-actions .icon-button { width: 34px; }
  .account-button { padding-inline: .52rem; }
  .account-button > i { display: none; }
  .hero { min-height: 217px; }
  .hero-art { background-size: auto 105%; }
  .hero-content { width: 87%; }
  .player-bar { display: grid; grid-template-columns: minmax(0, 1fr) max-content; padding-inline: .8rem; }
  .current-cover { width: 42px; }
  .transport { min-width: 115px; }
  .transport .timeline { grid-template-columns: 25px minmax(0, 1fr) 25px; font-size: .71rem; gap: .28rem; }
  .player-extra { display: none; }
  .track-head, .track-row { grid-template-columns: minmax(0, 1fr) 42px; padding-inline: .65rem; }
  .track-album, .track-head > :nth-child(2) { display: none; }
  .now-body { grid-template-columns: 1fr; gap: 1.05rem; padding-top: 1.7rem; align-content: start; }
  .now-cover { width: min(65vw, 35svh); margin-inline: auto; }
  .now-info { text-align: center; }
  .lyric-lines { max-height: 38svh; }
}
