:root {
  --bg: #0f1413;
  --bg-raised: #151d1a;
  --surface: #18211e;
  --surface-strong: #1d2924;
  --surface-soft: #121917;
  --sidebar-bg: rgba(15, 20, 19, .92);
  --topbar-bg: rgba(15, 20, 19, .88);
  --panel-bg: rgba(24, 33, 30, .72);
  --search-bg: rgba(24, 33, 30, .72);
  --badge-bg: rgba(24, 33, 30, .78);
  --drop-bg: rgba(15, 20, 19, .76);
  --queue-bg: rgba(15, 20, 19, .7);
  --track-bg: rgba(24, 33, 30, .64);
  --player-bg: rgba(15, 20, 19, .96);
  --input-bg: #101613;
  --admin-bg: #17201c;
  --toast-bg: #1b2720;
  --welcome-start: #19221e;
  --welcome-end: #111917;
  --grid-line: rgba(201, 243, 107, .035);
  --art-ink: rgba(15, 20, 19, .76);
  --art-line: rgba(15, 20, 19, .3);
  --range-track: #2c3a32;
  --queue-track: #2a3a31;
  --drop-line: #53665a;
  --line: #2b3932;
  --line-soft: #213029;
  --text: #f4f7ec;
  --muted: #9aa99e;
  --muted-dark: #68786e;
  --lime: #c9f36b;
  --lime-bright: #ddff8d;
  --orange: #ff845f;
  --blue: #90c8ff;
  --rose: #ff86a0;
  --shadow: 0 24px 60px rgba(0, 0, 0, .22);
  --sans: 'Manrope', 'Segoe UI', sans-serif;
  --display: 'Sora', 'Manrope', sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}

:root[data-theme='light'] {
  --bg: #f6f7f2;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #edf2eb;
  --sidebar-bg: rgba(246, 247, 242, .94);
  --topbar-bg: rgba(246, 247, 242, .88);
  --panel-bg: rgba(255, 255, 252, .84);
  --search-bg: rgba(255, 255, 252, .9);
  --badge-bg: rgba(255, 255, 252, .78);
  --drop-bg: rgba(240, 244, 237, .88);
  --queue-bg: rgba(242, 246, 239, .9);
  --track-bg: rgba(255, 255, 252, .78);
  --player-bg: rgba(255, 255, 252, .94);
  --input-bg: #f3f6f1;
  --admin-bg: #ffffff;
  --toast-bg: #ffffff;
  --welcome-start: #f0f7df;
  --welcome-end: #f9fbf5;
  --grid-line: rgba(73, 108, 43, .085);
  --art-ink: rgba(24, 32, 26, .76);
  --art-line: rgba(24, 32, 26, .3);
  --range-track: #d8e2d4;
  --queue-track: #d8e2d4;
  --drop-line: #a3b29f;
  --line: #d6e0d4;
  --line-soft: #e5ebe2;
  --text: #172019;
  --muted: #66736a;
  --muted-dark: #8b998e;
  --lime: #71a832;
  --lime-bright: #8ec847;
  --orange: #df704c;
  --blue: #397fb8;
  --rose: #d5566f;
  --shadow: 0 24px 60px rgba(36, 57, 41, .12);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; transition: color 220ms ease, background-color 220ms ease; }
body::before { position: fixed; inset: 0; z-index: -3; content: ''; pointer-events: none; opacity: .42; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, black 0, transparent 82%); -webkit-mask-image: linear-gradient(to bottom, black 0, transparent 82%); }
button, input { font: inherit; }
button { border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, .drop-zone:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.ambient { position: fixed; z-index: -2; pointer-events: none; border-radius: 999px; filter: blur(2px); opacity: .35; }
.ambient-one { width: 54vw; height: 54vw; top: -35vw; right: -12vw; background: radial-gradient(circle, rgba(201, 243, 107, .18), transparent 68%); }
.ambient-two { width: 38vw; height: 38vw; bottom: -24vw; left: 20vw; background: radial-gradient(circle, rgba(255, 132, 95, .1), transparent 68%); }

.app-shell { display: flex; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 232px; flex-direction: column; padding: 27px 18px 21px; border-right: 1px solid var(--line-soft); background: var(--sidebar-bg); backdrop-filter: blur(20px); }
.sidebar-top { display: grid; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: flex; width: 27px; height: 26px; align-items: end; gap: 3px; }
.brand-mark i { display: block; width: 5px; border-radius: 6px 6px 1px 1px; background: var(--lime); transform: skew(-16deg); }
.brand-mark i:nth-child(1) { height: 12px; opacity: .5; }
.brand-mark i:nth-child(2) { height: 24px; }
.brand-mark i:nth-child(3) { height: 17px; opacity: .72; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { color: var(--text); font-family: var(--display); font-size: 13px; letter-spacing: .1em; }
.brand-copy small { color: var(--muted-dark); font-family: var(--mono); font-size: 8px; letter-spacing: .18em; }
.brand-live { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid rgba(201, 243, 107, .2); border-radius: 999px; color: var(--lime); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.status-dot, .context-pulse, .secure-dot, .mini-dot, .background-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(201, 243, 107, .11); }
.main-nav { display: grid; gap: 4px; margin-top: 40px; }
.nav-secondary { margin-top: 31px; }
.nav-label { margin: 0 11px 9px; color: var(--muted-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.nav-link { display: flex; min-height: 43px; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 12px; text-decoration: none; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.nav-link:hover { border-color: var(--line); color: var(--text); background: var(--surface-soft); transform: translateX(2px); }
.nav-link.active { border-color: rgba(201, 243, 107, .18); color: var(--text); background: rgba(201, 243, 107, .09); }
.nav-icon { display: grid; width: 20px; place-items: center; color: var(--lime); font-family: var(--mono); font-size: 16px; line-height: 1; }
.nav-count { margin-left: auto; color: var(--muted-dark); font-family: var(--mono); font-size: 9px; }
.sidebar-spacer { flex: 1; }
.public-badge { display: flex; gap: 10px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--badge-bg); }
.public-badge-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--bg); background: var(--lime); font-family: var(--mono); font-size: 13px; }
.public-badge strong, .public-badge span { display: block; }
.public-badge strong { margin-bottom: 4px; color: var(--text); font-size: 10px; font-weight: 700; }
.public-badge div span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.sidebar-footnote { display: grid; gap: 5px; margin-top: 19px; color: var(--muted-dark); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; line-height: 1.6; }
.sidebar-footnote span:first-child { color: var(--muted); }

.main-content { width: calc(100% - 232px); max-width: 1480px; margin-left: 232px; padding: 0 clamp(22px, 4.8vw, 70px) 176px; }
.topbar { position: sticky; top: 0; z-index: 15; display: grid; min-height: 76px; grid-template-columns: 1fr minmax(220px, 360px) auto; align-items: center; gap: 24px; border-bottom: 1px solid rgba(43, 57, 50, .7); background: var(--topbar-bg); backdrop-filter: blur(20px); }
.topbar-context { display: flex; align-items: center; gap: 8px; color: var(--muted-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.topbar-context b { color: var(--line); font-weight: 400; }
.topbar-context strong { color: var(--muted); font-weight: 500; }
.context-pulse { width: 5px; height: 5px; margin-right: 2px; box-shadow: 0 0 0 3px rgba(201, 243, 107, .08); }
.topbar-actions { display: flex; align-items: center; justify-content: end; gap: 9px; }
.search-box { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-dark); background: var(--search-bg); }
.search-box span { font-family: var(--mono); font-size: 16px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: var(--muted-dark); }
.global-search { width: 100%; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.icon-button:hover { border-color: var(--lime); color: var(--lime); }
.icon-button.is-spinning { transform: rotate(180deg); }
.theme-toggle { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.theme-toggle:hover { border-color: var(--lime); color: var(--text); background: var(--surface-soft); transform: translateY(-1px); }
.theme-toggle-icon { color: var(--lime); font-size: 15px; line-height: 1; }
.theme-toggle-label { font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.admin-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--lime); border-radius: 999px; color: var(--bg); background: var(--lime); font-size: 11px; font-weight: 700; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.admin-button:hover, .primary-button:hover { background: var(--lime-bright); box-shadow: 0 8px 22px rgba(201, 243, 107, .14); transform: translateY(-1px); }
.admin-button-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bg); }

.welcome-strip { position: relative; display: grid; min-height: 266px; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 25px; margin: 30px 0 28px; padding: 32px 34px 46px; overflow: hidden; border: 1px solid rgba(201, 243, 107, .2); border-radius: 18px; background: radial-gradient(circle at 77% 45%, rgba(201, 243, 107, .13), transparent 24%), linear-gradient(122deg, var(--welcome-start) 0%, var(--welcome-end) 72%); box-shadow: var(--shadow); }
.welcome-strip::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(112deg, transparent 35%, rgba(201, 243, 107, .05) 35.1%, transparent 35.4%, transparent 62%, rgba(255, 132, 95, .06) 62.1%, transparent 62.35%); }
.welcome-copy { position: relative; z-index: 1; max-width: 600px; }
.eyebrow { margin: 0 0 11px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .18em; line-height: 1.4; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 13px; color: var(--text); font-family: var(--display); font-size: clamp(36px, 5vw, 70px); font-weight: 600; letter-spacing: -.08em; line-height: .96; text-wrap: balance; }
h1 em { color: var(--lime); font-style: normal; }
.welcome-lede { max-width: 480px; margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.primary-link { display: inline-flex; align-items: center; gap: 9px; color: var(--lime); font-family: var(--mono); font-size: 10px; text-decoration: none; }
.primary-link span { font-size: 16px; transition: transform 160ms ease; }
.primary-link:hover span { transform: translate(3px, -3px); }
.welcome-art { position: relative; z-index: 1; display: grid; width: 250px; height: 190px; place-items: center; justify-self: end; }
.art-grid { position: absolute; inset: 15px 0 10px; opacity: .34; background-image: linear-gradient(rgba(201, 243, 107, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 243, 107, .15) 1px, transparent 1px); background-size: 19px 19px; mask-image: radial-gradient(circle, black 0, transparent 68%); -webkit-mask-image: radial-gradient(circle, black 0, transparent 68%); }
.art-disc { position: absolute; border: 1px solid rgba(201, 243, 107, .5); border-radius: 50%; transform: rotate(-18deg); }
.art-disc-one { width: 182px; height: 115px; border-right-color: transparent; animation: float-disc 8s ease-in-out infinite; }
.art-disc-two { width: 145px; height: 145px; border-bottom-color: var(--orange); transform: rotate(25deg); animation: float-disc-reverse 9s ease-in-out infinite; }
.art-core { display: grid; width: 78px; height: 78px; place-content: center; justify-items: center; border: 1px solid var(--lime); border-radius: 50%; color: var(--bg); background: var(--lime); box-shadow: 0 0 0 8px rgba(201, 243, 107, .08), 0 12px 35px rgba(0, 0, 0, .25); transform: rotate(-7deg); }
.art-core span { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.art-core small { margin-top: 5px; font-family: var(--mono); font-size: 7px; letter-spacing: .14em; }
.art-label { position: absolute; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: rgba(15, 20, 19, .78); font-family: var(--mono); font-size: 8px; }
.art-label-one { top: 10px; right: 0; color: var(--lime); }
.art-label-two { bottom: 3px; left: 4px; color: var(--orange); }
.welcome-meta { position: absolute; right: 34px; bottom: 17px; z-index: 1; display: flex; gap: 24px; color: var(--muted-dark); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.welcome-meta b { margin-right: 5px; color: var(--text); font-size: 10px; font-weight: 500; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 330px); align-items: start; gap: 22px; }
.feed-column { min-width: 0; }
.side-column { display: grid; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .09); }
.upload-card, .info-card { padding: 21px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin-bottom: 0; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.055em; line-height: 1.05; }
.panel-index { color: var(--muted-dark); font-family: var(--mono); font-size: 9px; }
.drop-zone { display: grid; min-height: 192px; grid-template-columns: auto 1fr; align-items: center; gap: 15px; padding: 18px; border: 1px dashed var(--drop-line); border-radius: 11px; background: var(--drop-bg); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--lime); background: rgba(201, 243, 107, .06); }
.drop-zone.is-dragging { transform: translateY(-2px); }
.drop-mark { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(201, 243, 107, .5); border-radius: 12px; color: var(--bg); background: var(--lime); font-family: var(--mono); font-size: 25px; }
.drop-copy { display: grid; gap: 6px; }
.drop-copy strong { color: var(--text); font-size: 13px; }
.drop-copy span { color: var(--muted); font-size: 11px; }
.text-button { color: var(--lime); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.drop-meta { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 6px; align-self: end; }
.drop-meta span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.drop-meta .drop-limit { margin-left: auto; color: var(--lime); border-color: rgba(201, 243, 107, .32); }
.upload-foot { display: flex; justify-content: space-between; gap: 13px; margin-top: 13px; color: var(--muted-dark); font-family: var(--mono); font-size: 8px; }
.upload-foot span { display: inline-flex; align-items: center; gap: 6px; }
.upload-foot .mini-dot { width: 5px; height: 5px; box-shadow: none; }
.upload-queue { display: grid; gap: 8px; margin-top: 14px; }
.queue-item { padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--queue-bg); animation: reveal 220ms ease-out both; }
.queue-item.is-complete { border-color: rgba(201, 243, 107, .35); }
.queue-item.is-error { border-color: rgba(255, 134, 160, .45); }
.queue-top, .queue-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.queue-name { display: flex; min-width: 0; align-items: center; gap: 8px; }
.queue-file-icon { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 5px; color: var(--bg); background: var(--lime); font-size: 11px; }
.queue-name strong { overflow: hidden; color: var(--text); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.queue-percent, .queue-bottom { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.queue-progress { height: 4px; margin: 8px 0 6px; overflow: hidden; border-radius: 99px; background: var(--queue-track); }
.queue-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width 120ms linear; }
.is-error .queue-progress i { background: var(--rose); }
.queue-status { overflow: hidden; max-width: 75%; text-overflow: ellipsis; white-space: nowrap; }

.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.library-heading h2 { font-size: 27px; }
.heading-dot { color: var(--lime); }
.library-heading h2 > span:last-child { color: var(--muted-dark); font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.library-tools { display: flex; align-items: center; gap: 8px; }
.filter-button { display: inline-flex; align-items: center; gap: 12px; min-height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 9px; cursor: pointer; }
.filter-button:hover { border-color: var(--lime); color: var(--text); }
.feed-tabs { display: flex; align-items: center; gap: 17px; padding: 15px 0 11px; border-bottom: 1px solid var(--line-soft); }
.feed-tab { position: relative; color: var(--muted-dark); font-family: var(--mono); font-size: 9px; cursor: default; }
.feed-tab.is-active { color: var(--lime); }
.feed-tab.is-active::after { position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; content: ''; background: var(--lime); }
.track-list { min-height: 120px; padding-top: 11px; }
.track-row { display: grid; grid-template-columns: 38px 58px minmax(160px, 1fr) minmax(100px, .42fr) 58px 31px; align-items: center; gap: 13px; min-height: 88px; margin-bottom: 9px; padding: 12px 13px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--track-bg); transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; animation: reveal 330ms ease-out both; }
.track-row:hover { border-color: rgba(201, 243, 107, .28); background: var(--surface); box-shadow: 0 12px 27px rgba(0, 0, 0, .15); transform: translateY(-2px); }
.track-row.is-active { border-color: rgba(201, 243, 107, .48); background: rgba(201, 243, 107, .08); }
.track-play { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.track-play:hover, .track-play.is-playing { border-color: var(--lime); color: var(--bg); background: var(--lime); transform: scale(1.05); }
.track-play span { margin-left: 1px; font-family: var(--mono); font-size: 10px; }
.track-art, .now-cover { position: relative; display: grid; overflow: hidden; place-items: center; border-radius: 10px; }
.track-art { width: 58px; height: 58px; }
.track-art span { position: relative; z-index: 1; color: var(--art-ink); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.track-art i { position: absolute; display: block; width: 140%; height: 1px; background: var(--art-line); transform: rotate(-39deg); }
.track-art i:nth-child(2) { transform: rotate(39deg); }
.track-art i:nth-child(3) { width: 78%; transform: rotate(90deg); }
.art-lime { background: var(--lime); }
.art-orange { background: var(--orange); }
.art-blue { background: var(--blue); }
.art-rose { background: var(--rose); }
.art-sand { background: #e8d49f; }
.track-detail { min-width: 0; }
.track-detail strong { display: block; overflow: hidden; color: var(--text); font-family: var(--display); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.track-detail span { display: block; margin-top: 6px; overflow: hidden; color: var(--muted-dark); font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.track-wave { display: flex; height: 25px; align-items: center; gap: 2px; opacity: .55; }
.track-wave i { display: block; width: 3px; height: var(--h); min-height: 4px; border-radius: 4px; background: var(--lime); }
.track-row:not(.is-active) .track-wave i { background: var(--muted-dark); }
.track-time { color: var(--muted-dark); font-family: var(--mono); font-size: 8px; text-align: right; }
.track-share { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid transparent; border-radius: 50%; color: var(--muted-dark); background: transparent; font-family: var(--mono); font-size: 14px; cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.track-share:hover { border-color: var(--lime); color: var(--lime); }
.empty-state { display: grid; min-height: 250px; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--text); font-size: 14px; }
.empty-state span { font-size: 11px; }
.empty-state a { margin-top: 9px; color: var(--lime); font-family: var(--mono); font-size: 10px; text-decoration: none; }
.empty-orb { display: grid; width: 45px; height: 45px; margin-bottom: 5px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lime); font-family: var(--mono); font-size: 20px; }

.fast-list { display: grid; gap: 0; }
.fast-item { display: grid; grid-template-columns: 30px 1fr; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.fast-number { color: var(--lime); font-family: var(--mono); font-size: 9px; }
.fast-item strong { color: var(--text); font-size: 11px; font-weight: 700; }
.fast-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.tip-box { display: flex; gap: 9px; margin-top: 10px; padding: 11px; border: 1px solid rgba(255, 132, 95, .22); border-radius: 8px; background: rgba(255, 132, 95, .06); }
.tip-icon { color: var(--orange); font-family: var(--mono); font-size: 14px; }
.tip-box p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.page-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 46px; color: var(--muted-dark); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; }

.player-bar { position: fixed; inset: auto 0 0; z-index: 30; display: grid; min-height: 88px; grid-template-columns: minmax(190px, 1fr) minmax(300px, 1.25fr) minmax(190px, 1fr); align-items: center; gap: 28px; padding: 12px clamp(22px, 4.8vw, 70px); border-top: 1px solid var(--line); background: var(--player-bg); box-shadow: 0 -16px 45px rgba(0, 0, 0, .2); backdrop-filter: blur(20px); }
.now-playing { display: flex; min-width: 0; align-items: center; gap: 11px; }
.now-cover { width: 48px; height: 48px; flex: 0 0 auto; color: var(--bg); background: var(--lime); }
.now-cover span { position: relative; z-index: 1; font-size: 20px; }
.now-copy { min-width: 0; }
.now-copy strong, .now-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-copy strong { color: var(--text); font-family: var(--display); font-size: 11px; font-weight: 600; }
.now-copy span { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.now-open-button { display: grid; width: 31px; height: 31px; flex: 0 0 auto; margin-left: auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-family: var(--mono); font-size: 15px; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.now-open-button:hover { border-color: var(--lime); color: var(--lime); background: var(--surface-soft); transform: rotate(-7deg) scale(1.05); }
.player-main { display: grid; gap: 8px; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.player-button, .play-button { display: grid; place-items: center; color: var(--muted); background: transparent; cursor: pointer; }
.player-button { width: 27px; height: 27px; font-family: var(--mono); font-size: 10px; transition: color 160ms ease, transform 160ms ease; }
.player-button:hover, .player-button.is-selected { color: var(--lime); }
.player-button:active { transform: scale(.92); }
.player-button.subtle { color: var(--muted-dark); font-size: 15px; }
.play-button { width: 38px; height: 38px; border-radius: 50%; color: var(--bg); background: var(--lime); font-family: var(--mono); font-size: 13px; transition: transform 160ms ease, background-color 160ms ease; }
.play-button:hover { background: var(--lime-bright); transform: scale(1.06); }
.timeline-row { display: flex; align-items: center; gap: 9px; color: var(--muted-dark); font-family: var(--mono); font-size: 8px; }
input[type='range'] { width: 100%; height: 4px; -webkit-appearance: none; appearance: none; border-radius: 99px; outline: 0; background: var(--range-track); cursor: pointer; }
input[type='range']::-webkit-slider-thumb { width: 10px; height: 10px; appearance: none; border: 2px solid var(--bg); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
input[type='range']::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid var(--bg); border-radius: 50%; background: var(--lime); }
.player-extra { display: flex; align-items: center; justify-content: end; gap: 14px; }
.volume-control { display: flex; width: 95px; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.background-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.background-dot { width: 5px; height: 5px; box-shadow: none; }
.player-bar audio { display: none; }

.listen-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(14px, 3vw, 42px); }
.listen-overlay[hidden] { display: none; }
.listen-overlay:fullscreen, .listen-overlay:-webkit-full-screen { padding: 0; background: #0b100e; }
.listen-overlay:fullscreen .listen-panel, .listen-overlay:-webkit-full-screen .listen-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
.listen-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 5, .82); backdrop-filter: blur(16px); }
.listen-panel { position: relative; width: min(1120px, 100%); max-height: min(780px, calc(100dvh - 28px)); overflow: auto; padding: clamp(20px, 3vw, 36px); border: 1px solid rgba(201, 243, 107, .24); border-radius: 24px; color: #f4f7ec; background: radial-gradient(circle at 17% 25%, rgba(201, 243, 107, .14), transparent 27%), radial-gradient(circle at 82% 80%, rgba(255, 132, 95, .1), transparent 26%), linear-gradient(135deg, #1b2721 0%, #0b100e 78%); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); animation: listen-reveal 260ms ease-out both; }
.listen-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #98aa9b; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.listen-topline > span { display: inline-flex; align-items: center; gap: 8px; }
.listen-live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 243, 107, .13); }
.listen-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #c8d3c7; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; transition: color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.listen-close:hover { border-color: var(--lime); color: var(--lime); transform: rotate(90deg); }
.listen-layout { display: grid; min-height: 530px; grid-template-columns: minmax(320px, 1.05fr) minmax(280px, .95fr); align-items: center; gap: clamp(25px, 5vw, 78px); padding: clamp(26px, 5vw, 62px) clamp(0px, 3vw, 35px) clamp(10px, 2vw, 18px); }
.listen-visual { position: relative; display: grid; min-height: 370px; place-items: center; }
.listen-halo { position: absolute; width: min(90%, 480px); aspect-ratio: 1; border: 1px solid rgba(201, 243, 107, .2); border-radius: 50%; box-shadow: 0 0 0 22px rgba(201, 243, 107, .035), 0 0 0 58px rgba(201, 243, 107, .02); }
.vinyl-stage { position: relative; width: min(80%, 390px); aspect-ratio: 1; }
.vinyl-record { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: radial-gradient(circle at 50% 50%, #252c29 0 5%, transparent 5.2%), repeating-radial-gradient(circle at center, #161c1a 0 3px, #242b28 4px 5px, #0c100f 6px 8px), conic-gradient(from 15deg, #111614, #3a443e 11%, #0c100f 23%, #2a342e 39%, #111614 55%, #455146 67%, #0c100f 82%, #2c362f); box-shadow: 0 24px 55px rgba(0, 0, 0, .45), inset 0 0 0 11px rgba(0, 0, 0, .28), inset 0 0 0 13px rgba(255, 255, 255, .05); transform: rotate(-12deg); }
.vinyl-record.is-spinning { animation: vinyl-spin 8s linear infinite; }
.vinyl-grooves { position: absolute; inset: 8%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; box-shadow: 0 0 0 7px rgba(0, 0, 0, .12), 0 0 0 16px rgba(255, 255, 255, .04), 0 0 0 23px rgba(0, 0, 0, .12), 0 0 0 31px rgba(255, 255, 255, .03), 0 0 0 42px rgba(0, 0, 0, .12), 0 0 0 53px rgba(255, 255, 255, .03); }
.vinyl-label { position: absolute; top: 50%; left: 50%; display: grid; width: 28%; aspect-ratio: 1; place-items: center; border: 4px solid rgba(255, 255, 255, .14); border-radius: 50%; color: #0c100f; background: radial-gradient(circle at 32% 30%, #e8ff9d, var(--lime) 58%, #82a934); box-shadow: 0 0 0 5px rgba(0, 0, 0, .28); font-family: var(--display); font-size: clamp(19px, 3vw, 31px); font-weight: 700; letter-spacing: -.08em; transform: translate(-50%, -50%); }
.vinyl-hole { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border: 2px solid #0c100f; border-radius: 50%; background: #adcc5c; transform: translate(-50%, -50%); }
.turntable-arm { position: absolute; top: 3%; right: -8%; width: 32%; height: 72%; border-top: 8px solid #7e8e81; border-right: 8px solid #7e8e81; border-radius: 0 35px 0 0; transform: rotate(12deg); transform-origin: top right; filter: drop-shadow(0 9px 8px rgba(0, 0, 0, .3)); }
.turntable-arm::before { position: absolute; top: -15px; right: -15px; width: 22px; height: 22px; content: ''; border: 5px solid #aebcaf; border-radius: 50%; background: #222c26; }
.turntable-arm i { position: absolute; right: -13px; bottom: -8px; width: 23px; height: 34px; border-radius: 4px 4px 7px 7px; background: #d5e2d1; transform: rotate(-17deg); }
.listen-eq { position: absolute; right: 5%; bottom: 3%; display: flex; height: 32px; align-items: end; gap: 3px; opacity: .7; }
.listen-eq i { display: block; width: 3px; height: 35%; border-radius: 3px; background: var(--lime); animation: eq-bounce 1.1s ease-in-out infinite alternate; }
.listen-eq i:nth-child(2n) { animation-delay: -.4s; }
.listen-eq i:nth-child(3n) { height: 70%; animation-delay: -.8s; }
.listen-eq i:nth-child(4n) { animation-delay: -.2s; }
.listen-copy { max-width: 430px; }
.listen-copy .eyebrow { color: #94a79a; }
.listen-copy h2 { max-width: 470px; color: #f4f7ec; font-size: clamp(31px, 4vw, 62px); letter-spacing: -.075em; line-height: 1.02; overflow-wrap: anywhere; }
.listen-copy > p:not(.eyebrow) { max-width: 390px; margin-top: 15px; color: #a5b3a8; font-size: 13px; line-height: 1.65; }
.listen-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.listen-secondary { min-height: 36px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 999px; color: #c4d0c6; background: transparent; cursor: pointer; font-family: var(--mono); font-size: 9px; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.listen-secondary:hover { border-color: var(--lime); color: var(--lime); background: rgba(201, 243, 107, .08); }
.listen-timeline { display: flex; align-items: center; gap: 10px; margin-top: 31px; color: #839387; font-family: var(--mono); font-size: 8px; }
.listen-timeline input[type='range'] { background: rgba(255, 255, 255, .19); }
.listen-timeline input[type='range']::-webkit-slider-thumb { border-color: #0b100e; }
.listen-note { display: flex; gap: 9px; margin-top: 28px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .12); color: #86968b; }
.listen-note > span { color: var(--lime); font-size: 17px; }
.listen-note p { margin: 0; font-family: var(--mono); font-size: 8px; line-height: 1.6; }
body.listen-open { overflow: hidden; }

.toast { position: fixed; right: 24px; bottom: 111px; z-index: 50; max-width: min(390px, calc(100vw - 48px)); padding: 12px 14px; border: 1px solid rgba(201, 243, 107, .32); border-radius: 8px; color: var(--text); background: var(--toast-bg); font-size: 11px; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: rgba(255, 134, 160, .38); background: #28191e; }

.admin-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(4, 7, 6, .78); backdrop-filter: blur(9px); }
.admin-overlay[hidden] { display: none; }
.admin-panel { width: min(760px, 100%); max-height: 90vh; overflow: auto; padding: 23px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: var(--admin-bg); box-shadow: 0 28px 90px rgba(0, 0, 0, .42); }
.admin-heading, .admin-toolbar, .admin-row, .admin-actions { display: flex; align-items: center; gap: 12px; }
.admin-heading { justify-content: space-between; margin-bottom: 20px; }
.admin-login { display: grid; gap: 13px; }
.admin-login label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.admin-login input, .admin-row input { border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--input-bg); padding: 10px; outline: 0; }
.admin-login input:focus, .admin-row input:focus { border-color: var(--lime); }
.admin-error { min-height: 1.2em; margin: 0; color: var(--rose); font-size: 11px; }
.admin-toolbar { justify-content: space-between; margin-bottom: 14px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
.admin-list { display: grid; gap: 8px; }
.admin-row { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.admin-row input { flex: 1; min-width: 0; }
.admin-row span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.admin-row .text-button, .admin-toolbar .text-button { color: var(--lime); background: transparent; cursor: pointer; }
.text-button.danger { color: var(--rose); cursor: pointer; background: transparent; }

:root[data-theme='light'] .admin-overlay { background: rgba(20, 31, 23, .48); }
:root[data-theme='light'] .toast.is-error { background: #fff5f5; }
:root[data-theme='light'] .topbar { border-bottom-color: rgba(117, 139, 119, .34); }
:root[data-theme='light'] .player-bar { box-shadow: 0 -16px 45px rgba(36, 57, 41, .1); }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-disc { 0%, 100% { transform: rotate(-18deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-6px); } }
@keyframes float-disc-reverse { 0%, 100% { transform: rotate(25deg) translateY(0); } 50% { transform: rotate(16deg) translateY(6px); } }
@keyframes listen-reveal { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes vinyl-spin { from { transform: rotate(-12deg); } to { transform: rotate(348deg); } }
@keyframes eq-bounce { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

@media (max-width: 1120px) {
  .main-content { padding-right: 3.5vw; padding-left: 3.5vw; }
  .player-bar { gap: 16px; padding-right: 3.5vw; padding-left: 3.5vw; }
  .background-pill { display: none; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .welcome-art { width: 220px; }
}
@media (max-width: 930px) {
  .sidebar { width: 72px; align-items: center; padding: 24px 10px; }
  .brand { gap: 0; }
  .brand-copy, .brand-live, .nav-label, .nav-link > span:not(.nav-icon), .public-badge, .sidebar-footnote { display: none; }
  .main-nav { width: 100%; margin-top: 38px; }
  .nav-secondary { margin-top: 24px; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-icon { width: auto; }
  .nav-count { display: none; }
  .main-content { width: calc(100% - 72px); margin-left: 72px; }
  .content-layout { grid-template-columns: 1fr; }
  .side-column { grid-row: 1; grid-template-columns: minmax(0, 1fr) minmax(250px, .75fr); align-items: start; }
  .track-row { grid-template-columns: 38px 58px minmax(150px, 1fr) 62px 31px; }
  .track-wave { display: none; }
  .welcome-strip { grid-template-columns: minmax(0, 1fr) 220px; }
  .welcome-meta { left: 34px; right: auto; }
  .player-bar { grid-template-columns: minmax(160px, .85fr) minmax(250px, 1.15fr); }
  .player-extra { display: none; }
  .listen-layout { grid-template-columns: minmax(260px, .9fr) minmax(250px, 1fr); gap: 25px; }
  .listen-copy h2 { font-size: clamp(29px, 5vw, 48px); }
}
@media (max-width: 650px) {
  html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .sidebar { display: none; }
  .main-content { width: 100%; margin-left: 0; padding: 0 16px 194px; }
  .topbar { min-height: 70px; grid-template-columns: 1fr auto; gap: 12px; }
  .topbar-context { display: none; }
  .global-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 11px; }
  .topbar-actions { grid-column: 2; grid-row: 1; }
  .theme-toggle { width: 36px; justify-content: center; padding: 0; }
  .theme-toggle-label { display: none; }
  .admin-button { padding: 0 11px; }
  .welcome-strip { display: block; min-height: 285px; margin-top: 20px; padding: 25px 22px 61px; }
  h1 { font-size: clamp(39px, 12vw, 59px); }
  .welcome-lede { max-width: 330px; font-size: 12px; }
  .welcome-art { position: absolute; right: -45px; bottom: 9px; width: 210px; height: 160px; opacity: .48; transform: scale(.8); transform-origin: bottom right; }
  .welcome-meta { right: 22px; bottom: 17px; left: 22px; gap: 11px; justify-content: space-between; font-size: 7px; }
  .welcome-meta b { font-size: 9px; }
  .side-column { display: grid; grid-template-columns: 1fr; }
  .library-heading { display: block; }
  .library-heading h2 { font-size: 23px; }
  .library-tools { margin-top: 13px; }
  .feed-tabs { gap: 12px; overflow-x: auto; white-space: nowrap; }
  .track-row { grid-template-columns: 32px 48px minmax(0, 1fr) 30px; gap: 10px; min-height: 77px; padding: 10px 9px; }
  .track-play { width: 30px; height: 30px; }
  .track-art { width: 48px; height: 48px; }
  .track-detail strong { font-size: 11px; }
  .track-time { display: none; }
  .track-share { width: 27px; height: 27px; }
  .page-footer { display: grid; gap: 7px; margin-top: 35px; font-size: 7px; }
  .page-footer span:nth-child(2) { display: none; }
  .player-bar { min-height: 174px; grid-template-columns: 1fr auto; gap: 12px 15px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .now-cover { width: 43px; height: 43px; }
  .player-main { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .player-controls { gap: 18px; }
  .timeline-row { gap: 7px; }
  .volume-control { width: 78px; }
  .toast { right: 14px; bottom: 185px; max-width: calc(100vw - 28px); }
  .admin-panel { padding: 17px; }
  .admin-row { flex-wrap: wrap; }
  .admin-row input { flex-basis: 100%; }
  .listen-overlay { padding: 0; align-items: end; }
  .listen-panel { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 23px 23px 0 0; padding: 17px 18px max(25px, env(safe-area-inset-bottom)); }
  .listen-layout { display: flex; min-height: 0; flex-direction: column; align-items: stretch; gap: 15px; padding: 25px 0 0; }
  .listen-visual { min-height: 275px; }
  .listen-halo { width: 250px; }
  .vinyl-stage { width: 245px; }
  .turntable-arm { right: -3%; }
  .listen-eq { right: 15%; bottom: 0; }
  .listen-copy { max-width: none; }
  .listen-copy h2 { font-size: clamp(31px, 10vw, 51px); }
  .listen-copy > p:not(.eyebrow) { margin-top: 10px; font-size: 12px; }
  .listen-actions { margin-top: 18px; }
  .listen-note { margin-top: 21px; }
}
