:root {
    color-scheme: dark;
    --bg: #181313;
    --bg-soft: #211a1b;
    --panel: #292022;
    --panel-strong: #341f26;
    --line: #403436;
    --line-soft: #32292b;
    --text: #f7f1ec;
    --muted: #b8aaab;
    --faint: #7f7375;
    --accent: #d94368;
    --accent-dark: #a92c4d;
    --accent-soft: #5a2636;
    --acid: #d9f275;
    --paper: #f1e6dc;
    --ink: #1b1516;
    --success: #7ed8a8;
    --warning: #f0b86b;
    --danger: #ef7d89;
    --sidebar: 232px;
    --topbar: 84px;
    --player: 92px;
    --radius: 18px;
    --small-radius: 12px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid var(--acid);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 100;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
}

.skip-link:focus {
    transform: translateY(0);
}

.app-shell {
    min-height: 100dvh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    border-inline-end: 1px solid var(--line-soft);
    background: #151112;
    padding: 24px 16px calc(var(--player) + 18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 8px;
    text-decoration: none;
}

.brand-mark,
.mobile-brand span,
.dialog-brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    background: var(--accent);
    color: var(--ink);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.03;
}

.nav-list {
    display: grid;
    gap: 6px;
    margin-block: 38px 24px;
}

.nav-item,
.source-button,
.profile-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    text-align: start;
}

.nav-item,
.source-button {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.nav-item svg,
.source-button svg,
.search-box svg,
.primary-action svg,
.secondary-action svg,
.player button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nav-item.is-active {
    background: var(--paper);
    color: var(--ink);
}

.nav-item:hover:not(.is-active),
.source-button:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.sidebar-lower {
    display: grid;
    gap: 12px;
    margin-block-start: auto;
}

.source-button {
    border-block: 1px solid var(--line-soft);
    border-radius: 0;
}

.source-summary {
    min-height: 16px;
    padding-inline: 12px;
    color: var(--faint);
    font-size: 11px;
    line-height: 1.4;
}

.profile-button {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line-soft);
    padding: 9px;
}

.profile-button:hover {
    border-color: var(--line);
    background: var(--bg-soft);
}

.profile-avatar,
.compact-profile span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--paper);
    font-weight: 800;
}

.profile-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.profile-copy strong,
.profile-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    font-size: 13px;
}

.profile-copy small {
    color: var(--faint);
    font-size: 10px;
}

.topbar {
    position: fixed;
    inset: 0 0 auto var(--sidebar);
    z-index: 25;
    display: flex;
    height: var(--topbar);
    align-items: center;
    gap: 16px;
    border-block-end: 1px solid rgba(64, 52, 54, 0.7);
    background: rgba(24, 19, 19, 0.93);
    padding: 0 clamp(20px, 4vw, 54px);
    backdrop-filter: blur(18px);
}

.mobile-brand,
.compact-profile {
    display: none;
}

.search-box {
    display: grid;
    width: min(620px, 70vw);
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--bg-soft);
    padding: 0 15px;
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-box input {
    height: 48px;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-box input::placeholder {
    color: var(--faint);
}

.search-box kbd {
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--faint);
    font-family: inherit;
    font-size: 10px;
    padding: 4px 6px;
}

main {
    min-height: 100dvh;
    margin-inline-start: var(--sidebar);
    padding: calc(var(--topbar) + 34px) clamp(20px, 4vw, 56px) calc(var(--player) + 70px);
}

.view {
    display: none;
    width: min(1180px, 100%);
    margin-inline: auto;
}

.view.is-visible {
    display: block;
}

.wave-hero {
    position: relative;
    display: grid;
    min-height: clamp(310px, 40vw, 420px);
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    overflow: hidden;
    border-radius: 26px;
    background: var(--paper);
    color: var(--ink);
}

.wave-copy {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 650px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 6vw, 74px);
}

.wave-kicker {
    margin: 0 0 10px;
    color: #7a3547;
    font-size: 13px;
    font-weight: 800;
}

.wave-copy h1,
.page-heading h1 {
    margin: 0;
    letter-spacing: -0.045em;
}

.wave-copy h1 {
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.94;
}

.wave-copy > p:not(.wave-kicker) {
    max-width: 48ch;
    margin: 24px 0 0;
    color: #5e5051;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 30px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.primary-action {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    padding: 0 20px;
}

.primary-action:hover {
    background: #38262a;
}

.primary-action:disabled {
    border-color: var(--line);
    background: var(--line);
    color: var(--faint);
    cursor: not-allowed;
}

.secondary-action {
    border: 1px solid rgba(27, 21, 22, 0.23);
    background: transparent;
    color: var(--ink);
    padding: 0 17px;
}

.secondary-action:hover {
    border-color: var(--ink);
}

.wave-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--accent);
}

.record {
    position: absolute;
    width: min(31vw, 390px);
    aspect-ratio: 1;
    inset: 50% auto auto 0;
    transform: translate(-13%, -50%);
    border-radius: 50%;
    background: #171314;
    box-shadow: 0 24px 60px rgba(39, 8, 18, 0.26);
}

.record::before,
.record::after,
.record-groove {
    position: absolute;
    inset: 10%;
    border: 1px solid #413538;
    border-radius: 50%;
    content: "";
}

.record::after {
    inset: 28%;
    border-width: 14px;
    border-color: var(--acid);
    background: var(--paper);
}

.record-groove.groove-one {
    inset: 17%;
}

.record-groove.groove-two {
    inset: 23%;
}

.record-label {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    color: var(--ink);
    font-size: clamp(35px, 5vw, 66px);
    font-weight: 900;
}

.needle {
    position: absolute;
    width: 95px;
    height: 95px;
    inset: 14% 12% auto auto;
    border: 14px solid var(--paper);
    border-radius: 50%;
}

.needle span {
    position: absolute;
    width: 18px;
    height: 190px;
    inset: 52px auto auto 26px;
    transform: rotate(29deg);
    transform-origin: top center;
    border-radius: 12px;
    background: var(--paper);
}

.section-heading,
.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading {
    margin: 46px 0 15px;
}

.section-heading h2,
.page-heading h1,
.rating-panel h2 {
    margin: 0;
}

.section-heading h2 {
    font-size: clamp(22px, 3vw, 32px);
}

.section-heading p,
.page-heading p,
.rating-panel p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.result-count {
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.page-heading {
    align-items: start;
    margin-block: 14px 42px;
}

.page-heading h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.page-heading p {
    max-width: 52ch;
    text-align: end;
}

.track-list {
    display: grid;
}

.track-row {
    display: grid;
    min-height: 76px;
    grid-template-columns: 42px 52px minmax(170px, 1.25fr) minmax(120px, 0.8fr) auto;
    align-items: center;
    gap: 14px;
    border-block-end: 1px solid var(--line-soft);
    padding: 10px 8px;
}

.track-row:hover {
    background: var(--bg-soft);
}

.track-play {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.track-play:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.track-play svg {
    width: 18px;
    fill: currentColor;
}

.track-art {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--panel);
}

.track-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-art span {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
}

.track-main,
.track-album {
    min-width: 0;
}

.track-main strong,
.track-main span,
.track-album {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-main strong {
    font-size: 14px;
}

.track-main span,
.track-album {
    margin-block-start: 5px;
    color: var(--muted);
    font-size: 12px;
}

.track-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-block-start: 7px;
}

.track-badge {
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--faint);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    text-transform: uppercase;
}

.track-badge.explicit {
    border-color: #6a4d54;
    color: var(--paper);
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.track-action {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--faint);
    cursor: pointer;
}

.track-action:hover {
    background: var(--panel);
    color: var(--text);
}

.track-action.is-active[data-action="like"] {
    background: #234737;
    color: var(--success);
}

.track-action.is-active[data-action="dislike"] {
    background: #492a31;
    color: var(--danger);
}

.track-action[data-action="censored"]:hover {
    background: #4f3b22;
    color: var(--warning);
}

.track-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.provider-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-block-end: 30px;
}

.provider-state {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    padding: 0 11px;
}

.provider-state span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.provider-state.import-only span {
    background: var(--warning);
}

.search-empty,
.empty-state {
    display: grid;
    min-height: 310px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.search-letter {
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    font-size: 44px;
    font-weight: 900;
}

.search-empty h2,
.empty-state h2 {
    margin: 24px 0 0;
}

.search-empty p,
.empty-state p {
    max-width: 48ch;
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.search-results-heading {
    margin-block-start: 20px;
}

.library-filters {
    display: flex;
    gap: 8px;
    margin-block-end: 26px;
}

.filter-button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0 14px;
}

.filter-button.is-active {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
}

.rating-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    border-block: 1px solid var(--line);
    padding: 24px 0;
}

.rating-value {
    display: flex;
    width: 114px;
    height: 88px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: var(--small-radius);
    background: var(--acid);
    color: var(--ink);
}

.rating-value strong {
    font-size: 34px;
    font-variant-numeric: tabular-nums;
}

.rating-value span {
    color: #6d6a1d;
}

.report-list {
    display: grid;
    gap: 12px;
    margin-block-start: 28px;
}

.report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border-block-end: 1px solid var(--line);
    padding: 18px 2px;
}

.report-row h3,
.report-row p {
    margin: 0;
}

.report-row p {
    margin-block-start: 7px;
    color: var(--muted);
    line-height: 1.45;
}

.report-status {
    align-self: start;
    border-radius: 7px;
    background: var(--panel);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    padding: 7px 9px;
}

.report-status.confirmed {
    background: #234737;
    color: var(--success);
}

.report-status.rejected {
    background: #492a31;
    color: var(--danger);
}

.moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 14px;
}

.moderation-actions input {
    min-height: 42px;
    flex: 1 1 280px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 0 12px;
}

.moderation-actions button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    padding: 0 12px;
}

.moderation-actions button[data-verdict="confirmed"] {
    border-color: #396b52;
    color: var(--success);
}

.moderation-actions button[data-verdict="rejected"] {
    border-color: #75424b;
    color: var(--danger);
}

.player {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    min-height: var(--player);
    grid-template-columns: minmax(230px, 1fr) minmax(320px, 1.1fr) minmax(190px, 1fr);
    align-items: center;
    gap: 18px;
    border-block-start: 1px solid #4b3f41;
    background: #1d1718;
    padding: 12px 20px;
}

.player-track {
    display: grid;
    min-width: 0;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.player-art {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--panel);
}

.player-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-art span {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
}

.player-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.player-copy strong,
.player-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-copy small {
    color: var(--muted);
}

.player-center {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.player-center button {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.player-play {
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: var(--paper) !important;
    color: var(--ink);
}

.player-play svg {
    fill: currentColor;
    stroke: none !important;
}

.player-skip {
    width: 36px;
    height: 36px;
    color: var(--muted);
}

.player-skip:hover {
    color: var(--text);
}

.player-progress {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 38px minmax(120px, 360px) 38px;
    align-items: center;
    gap: 9px;
    color: var(--faint);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.player-progress input {
    width: 100%;
    accent-color: var(--accent);
}

.player-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    color: var(--faint);
    font-size: 11px;
}

.player-meta a {
    color: var(--muted);
}

.mobile-nav {
    display: none;
}

.dialog {
    width: min(500px, calc(100vw - 28px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-soft);
    color: var(--text);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
    padding: clamp(24px, 5vw, 42px);
}

.dialog::backdrop {
    background: rgba(10, 7, 8, 0.75);
    backdrop-filter: blur(6px);
}

.dialog-close {
    position: absolute;
    width: 42px;
    height: 42px;
    inset: 14px 14px auto auto;
    border: 0;
    border-radius: 50%;
    background: var(--panel);
    cursor: pointer;
    font-size: 24px;
}

.dialog-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block-end: 34px;
}

.dialog h2 {
    margin: 0;
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: -0.035em;
}

.dialog > p {
    color: var(--muted);
    line-height: 1.55;
}

.dialog form {
    display: grid;
    gap: 15px;
    margin-block-start: 25px;
}

.dialog label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.dialog input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: var(--bg);
    color: var(--text);
    padding: 0 13px;
}

.dialog input:focus {
    border-color: var(--accent);
}

.wide {
    width: 100%;
}

.text-button {
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    margin-block-start: 10px;
}

.form-error {
    min-height: 20px;
    color: var(--danger) !important;
    font-size: 12px;
}

.onboarding-dialog {
    width: min(900px, calc(100vw - 28px));
}

.onboarding-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}

.onboarding-head p,
.onboarding-head h2,
.onboarding-head span {
    margin: 0;
}

.onboarding-head p {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.onboarding-head h2 {
    margin-block-start: 7px;
}

.onboarding-head span {
    display: block;
    max-width: 60ch;
    margin-block-start: 11px;
    color: var(--muted);
    line-height: 1.5;
}

.onboarding-head > strong {
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    padding: 9px 11px;
}

.artist-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px !important;
}

.artist-search button {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    padding: 0 18px;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-block-start: 24px;
}

.artist-choice {
    display: grid;
    min-height: 92px;
    place-items: end start;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    line-height: 1.2;
    padding: 14px;
    text-align: start;
}

.artist-choice:hover {
    border-color: var(--accent);
}

.artist-choice.is-selected {
    border-color: var(--acid);
    background: var(--acid);
    color: var(--ink);
}

.artist-choice small {
    display: block;
    margin-block-start: 6px;
    opacity: 0.7;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    margin-block-start: 24px;
}

.embed-dialog {
    width: min(650px, calc(100vw - 28px));
}

.embed-frame {
    margin-block: 25px 18px;
}

.embed-frame iframe {
    width: 100%;
    min-height: 180px;
    border: 0;
    border-radius: 12px;
}

.embed-source {
    color: var(--text);
    border-color: var(--line);
}

.toast {
    position: fixed;
    inset: auto 24px calc(var(--player) + 18px) auto;
    z-index: 80;
    max-width: min(390px, calc(100vw - 32px));
    transform: translateY(20px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    opacity: 0;
    padding: 13px 16px;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.legal-footer {
    position: fixed;
    inset: auto auto calc(var(--player) + 7px) calc(var(--sidebar) + 20px);
    z-index: 5;
    display: flex;
    gap: 14px;
    color: var(--faint);
    font-size: 10px;
}

.legal-footer a:hover {
    color: var(--text);
}

.loading-row {
    display: grid;
    min-height: 84px;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-block-end: 1px solid var(--line-soft);
}

.loading-block {
    height: 12px;
    border-radius: 6px;
    background: var(--panel);
}

.loading-block.art {
    width: 52px;
    height: 52px;
    border-radius: 9px;
}

.loading-lines {
    display: grid;
    gap: 9px;
}

.loading-lines .loading-block:last-child {
    width: 45%;
}

@media (max-width: 980px) {
    :root {
        --sidebar: 82px;
    }

    .brand {
        justify-content: center;
        padding: 0;
    }

    .brand-name,
    .nav-item span,
    .source-button span,
    .source-summary,
    .profile-copy,
    .profile-button > span:last-child {
        display: none;
    }

    .nav-item,
    .source-button {
        justify-content: center;
        padding: 0;
    }

    .profile-button {
        display: flex;
        justify-content: center;
        border: 0;
        padding: 6px;
    }

    .profile-avatar {
        flex: 0 0 auto;
    }

    .page-heading {
        display: block;
    }

    .page-heading p {
        max-width: 60ch;
        text-align: start;
    }

    .track-row {
        grid-template-columns: 42px 52px minmax(0, 1fr) auto;
    }

    .track-album {
        display: none;
    }

    .player {
        grid-template-columns: minmax(200px, 0.9fr) minmax(300px, 1.1fr);
    }

    .player-meta {
        display: none;
    }

    .artist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --topbar: 70px;
        --player: 76px;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        inset-inline-start: 0;
        gap: 10px;
        padding: 0 12px;
    }

    .mobile-brand,
    .compact-profile {
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        border: 0;
        background: transparent;
        text-decoration: none;
    }

    .mobile-brand span {
        width: 40px;
        height: 40px;
    }

    .compact-profile {
        width: 42px;
        height: 42px;
        cursor: pointer;
    }

    .compact-profile span {
        width: 38px;
        height: 38px;
    }

    .search-box {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        padding-inline: 12px;
    }

    .search-box input {
        height: 44px;
    }

    .search-box kbd {
        display: none;
    }

    main {
        margin-inline-start: 0;
        padding: calc(var(--topbar) + 18px) 14px calc(var(--player) + 112px);
    }

    .wave-hero {
        min-height: 480px;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(250px, auto) 210px;
        border-radius: 20px;
    }

    .wave-copy {
        justify-content: start;
        padding: 30px 25px;
    }

    .wave-copy h1 {
        font-size: clamp(48px, 16vw, 72px);
    }

    .wave-copy > p:not(.wave-kicker) {
        margin-block-start: 16px;
    }

    .hero-actions {
        margin-block-start: 22px;
    }

    .wave-visual {
        min-height: 210px;
    }

    .record {
        width: 270px;
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
    }

    .needle {
        width: 72px;
        height: 72px;
        inset: 9% 9% auto auto;
        border-width: 10px;
    }

    .needle span {
        height: 130px;
        inset: 40px auto auto 20px;
    }

    .section-heading {
        align-items: start;
        margin-block-start: 34px;
    }

    .page-heading {
        margin-block: 8px 28px;
    }

    .page-heading h1 {
        font-size: 42px;
    }

    .track-row {
        min-height: 76px;
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 10px;
        padding-inline: 2px;
    }

    .track-play {
        display: none;
    }

    .track-art {
        width: 46px;
        height: 46px;
    }

    .track-actions {
        gap: 0;
    }

    .track-action {
        width: 36px;
        height: 36px;
    }

    .track-action[data-action="dislike"] {
        display: none;
    }

    .player {
        inset-block-end: 60px;
        min-height: var(--player);
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 12px;
    }

    .player-track {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .player-art {
        width: 48px;
        height: 48px;
    }

    .player-center {
        display: flex;
    }

    .player-skip,
    .player-progress {
        display: none !important;
    }

    .player-play {
        width: 44px;
        height: 44px;
    }

    .mobile-nav {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 45;
        display: grid;
        height: 60px;
        grid-template-columns: repeat(4, 1fr);
        border-block-start: 1px solid var(--line);
        background: #151112;
        padding-block-end: env(safe-area-inset-bottom);
    }

    .mobile-nav button {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 2px;
        border: 0;
        background: transparent;
        color: var(--faint);
        cursor: pointer;
        font-size: 10px;
    }

    .mobile-nav button span {
        font-size: 18px;
    }

    .mobile-nav button.is-active {
        color: var(--paper);
    }

    .artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .artist-choice {
        min-height: 82px;
    }

    .rating-panel {
        grid-template-columns: 1fr;
    }

    .rating-value {
        width: 100%;
    }

    .report-row {
        grid-template-columns: 1fr;
    }

    .report-status {
        justify-self: start;
    }

    .toast {
        inset: auto 16px calc(var(--player) + 78px) 16px;
    }

    .legal-footer {
        position: static;
        flex-wrap: wrap;
        margin: 0 14px calc(var(--player) + 90px);
    }
}

@media (max-width: 420px) {
    .search-box svg {
        display: none;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .track-action[data-action="like"] {
        display: none;
    }

    .artist-grid {
        grid-template-columns: 1fr 1fr;
    }

    .artist-choice {
        padding: 11px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.brand-copy,
.profile-button > span:last-child {
    display: grid;
    min-width: 0;
}

.brand-copy b {
    font-size: 15px;
    line-height: 1;
}

.brand-copy small,
.profile-button small {
    margin-block-start: 4px;
    color: var(--faint);
    font-size: 10px;
}

.side-nav {
    display: grid;
    gap: 6px;
    margin-block: 38px 24px;
}

.sidebar-foot {
    margin-block-start: auto;
}

.avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--paper);
    font-weight: 800;
}

.search-form {
    display: grid;
    width: min(640px, 66vw);
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--bg-soft);
    padding-inline-start: 15px;
}

.search-form:focus-within {
    border-color: var(--accent);
}

.search-form input {
    height: 48px;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-form button,
.import-button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    padding: 0 14px;
}

.search-form button {
    margin-inline-end: 4px;
    border: 0;
    background: var(--paper);
    color: var(--ink);
}

.import-button {
    margin-inline-start: auto;
    white-space: nowrap;
}

.top-profile {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    cursor: pointer;
    font-weight: 800;
}

.content {
    min-height: 100dvh;
}

.view.is-active {
    display: block;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 650px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 6vw, 74px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wave-hero .eyebrow {
    color: #7a3547;
}

.hero-copy h1,
.page-head h1 {
    margin: 0;
    letter-spacing: -.045em;
}

.hero-copy h1 {
    font-size: clamp(48px, 7vw, 92px);
    line-height: .94;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 48ch;
    margin: 24px 0 0;
    color: #5e5051;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.55;
}

.quiet-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 800;
    padding: 0 17px;
}

.record-art {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--accent);
}

.record-art > div {
    position: absolute;
    width: min(31vw, 390px);
    aspect-ratio: 1;
    inset: 50% auto auto 0;
    display: grid;
    transform: translate(-13%, -50%);
    place-items: center;
    border: 22px double #413538;
    border-radius: 50%;
    background: #171314;
    box-shadow: inset 0 0 0 58px #171314, inset 0 0 0 86px var(--acid), 0 24px 60px rgba(39, 8, 18, .26);
}

.record-art span {
    z-index: 1;
    color: var(--ink);
    font-size: 56px;
    font-weight: 900;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 46px 0 15px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
}

.section-head .eyebrow {
    margin-block-end: 5px;
}

.page-head {
    margin-block: 14px 38px;
}

.page-head h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.page-head > p:last-child {
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.55;
}

.track-row {
    grid-template-columns: 58px minmax(170px, 1fr) auto auto;
}

.track-cover {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    background: var(--panel);
    color: var(--accent);
    font-weight: 900;
}

.track-cover img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-play {
    position: absolute;
    inset: 0;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 0;
    background: rgba(20, 12, 14, .52);
    color: white;
    cursor: pointer;
    opacity: 0;
}

.track-row:hover .row-play,
.row-play:focus-visible {
    opacity: 1;
}

.track-info {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.track-info b,
.track-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-info span {
    color: var(--muted);
    font-size: 12px;
}

.source-pill {
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 10px;
    padding: 5px 7px;
}

.source-pill[data-explicit="true"]::after {
    content: " · Explicit";
    color: var(--paper);
}

.track-action.is-active {
    background: #234737;
    color: var(--success);
}

.report-action:hover {
    background: #4f3b22;
    color: var(--warning);
}

.provider-status {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 11px;
}

.provider-status > div {
    display: grid;
    gap: 2px;
}

.provider-status b {
    font-size: 12px;
}

.provider-status div span {
    color: var(--faint);
    font-size: 10px;
}

.status-on {
    color: var(--success);
}

.status-limited {
    color: var(--warning);
}

.segmented {
    display: flex;
    gap: 8px;
    margin-block-end: 26px;
}

.segmented button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0 14px;
}

.segmented button.is-active {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
}

.empty-state,
.loading-state,
.error-state {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong,
.error-state strong {
    color: var(--text);
    font-size: 20px;
}

.loading-state > span {
    width: 34px;
    height: 34px;
    border: 3px solid var(--line);
    border-block-start-color: var(--accent);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

.error-state button {
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    padding: 0 14px;
}

.report-card {
    display: grid;
    gap: 9px;
    border-block-end: 1px solid var(--line);
    padding: 18px 2px;
}

.report-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.report-card p {
    margin: 0;
    color: var(--muted);
}

.player-cover {
    display: grid;
    width: 58px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    background: var(--panel);
    color: var(--accent);
    font-weight: 900;
}

.player-track > div:last-child {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.player-track b,
.player-track span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-track span {
    color: var(--muted);
    font-size: 12px;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.player-controls button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
}

.player-controls .play-control {
    width: 46px;
    height: 46px;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-block-start: 1px solid var(--line-soft);
    margin-block-start: 60px;
    color: var(--faint);
    font-size: 11px;
    padding-block: 24px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.modal,
.embed-dialog {
    width: min(500px, calc(100vw - 28px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-soft);
    color: var(--text);
    box-shadow: 0 24px 90px rgba(0,0,0,.55);
    padding: 0;
}

.modal::backdrop,
.embed-dialog::backdrop {
    background: rgba(10,7,8,.75);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    display: grid;
    gap: 15px;
    padding: clamp(24px,5vw,42px);
}

.modal-card h2 {
    margin: 0;
    font-size: clamp(28px,5vw,42px);
    letter-spacing: -.035em;
}

.modal-card > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.modal-card label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.modal-card input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: var(--bg);
    color: var(--text);
    padding: 0 13px;
}

.modal-card input:focus {
    border-color: var(--accent);
}

.modal-close {
    position: absolute;
    width: 42px;
    height: 42px;
    inset: 14px 14px auto auto;
    z-index: 2;
    border: 0;
    border-radius: 50%;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
}

.full {
    width: 100%;
}

.modal-wide {
    width: min(850px, calc(100vw - 28px));
}

#artist-dialog {
    width: min(850px, calc(100vw - 28px));
}

.artist-choice {
    position: relative;
}

.artist-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.artist-choice:has(input:checked) {
    border-color: var(--acid);
    background: var(--acid);
    color: var(--ink);
}

.rating-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 14px;
    border-block: 1px solid var(--line);
    margin-block: 8px;
    padding-block: 20px;
}

.rating-card strong {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    color: var(--acid);
    font-size: 30px;
}

.rating-card small {
    color: var(--muted);
}

.danger {
    color: var(--danger);
}

.embed-dialog {
    position: relative;
    width: min(680px, calc(100vw - 28px));
    padding: 58px 18px 18px;
}

#embed-host iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 12px;
}

.toast-region {
    position: fixed;
    inset: auto 24px calc(var(--player) + 18px) auto;
    z-index: 90;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 8px;
}

.toast-region .toast {
    position: static;
    max-width: none;
    transform: none;
    opacity: 1;
}

.toast-region .toast.error {
    background: #f4d7da;
}

.toast-region .toast.success {
    background: #d7eadf;
}

.legal-page {
    background: var(--paper);
    color: var(--ink);
}

.legal-page main {
    width: min(800px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 850;
    text-decoration: none;
}

.legal-brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    background: var(--accent);
    font-size: 24px;
    font-weight: 900;
}

.legal-page article {
    margin-block-start: 70px;
}

.legal-page h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(42px,8vw,78px);
    letter-spacing: -.05em;
    line-height: .96;
}

.legal-date {
    color: #75676a;
}

.legal-page h2 {
    margin: 46px 0 12px;
    font-size: 23px;
}

.legal-page article > p:not(.eyebrow) {
    max-width: 68ch;
    color: #514648;
    font-size: 16px;
    line-height: 1.75;
}

.legal-page footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    border-block-start: 1px solid #cbbdb5;
    margin-block-start: 58px;
    padding-block-start: 24px;
}

@media (max-width: 980px) {
    .brand-copy,
    .profile-button > span:last-child {
        display: none;
    }

    .track-row {
        grid-template-columns: 52px minmax(0,1fr) auto auto;
    }
}

@media (max-width: 720px) {
    .top-profile {
        display: grid;
        flex: 0 0 auto;
    }

    .import-button {
        display: none;
    }

    .search-form {
        width: auto;
        min-width: 0;
        flex: 1;
    }

    .search-form button,
    .search-form > span {
        display: none;
    }

    .search-form {
        grid-template-columns: minmax(0,1fr);
        padding-inline: 12px;
    }

    .hero-copy {
        justify-content: start;
        padding: 30px 25px;
    }

    .record-art {
        min-height: 210px;
    }

    .record-art > div {
        width: 270px;
        inset: 50% auto auto 50%;
        transform: translate(-50%,-50%);
    }

    .track-row {
        grid-template-columns: 46px minmax(0,1fr) auto;
    }

    .source-pill {
        display: none;
    }

    .track-action:nth-child(2) {
        display: none;
    }

    .player {
        grid-template-columns: minmax(0,1fr) auto;
    }

    .player-cover {
        width: 48px;
        height: 48px;
    }

    .player-controls button:not(.play-control) {
        display: none;
    }

    .site-footer {
        display: grid;
    }

    .toast-region {
        inset: auto 16px calc(var(--player) + 78px) 16px;
        width: auto;
    }

    .modal-card {
        padding: 28px 20px;
    }
}
