:root {
    --bg: #07070a;
    --bg-elevated: rgba(18, 18, 24, 0.88);
    --bg-soft: rgba(29, 29, 40, 0.72);
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.075);
    --stroke: rgba(255, 255, 255, 0.08);
    --stroke-strong: rgba(255, 255, 255, 0.16);
    --text: #f6f6fa;
    --muted: #b4b6c6;
    --muted-strong: #7d8398;
    --accent: #8b5cf6;
    --accent-soft: #c4b5fd;
    --accent-cool: #6d28d9;
    --success: #4ade80;
    --warning: #facc15;
    --danger: #fb7185;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --sidebar-width: 280px;
    --player-height: 108px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    overscroll-behavior: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(139, 92, 246, 0.3), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(196, 181, 253, 0.18), transparent 24%),
        linear-gradient(160deg, #030304 0%, #09090f 35%, #100c1d 100%);
    background-color: #030304;
}

body {
    margin: 0;
    min-height: 100svh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(139, 92, 246, 0.3), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(196, 181, 253, 0.18), transparent 24%),
        linear-gradient(160deg, #030304 0%, #09090f 35%, #100c1d 100%);
    background-color: #030304;
    overscroll-behavior: none;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: calc(var(--player-height) + 24px + var(--safe-bottom));
}

body.player-collapsed {
    padding-bottom: calc(132px + 18px + var(--safe-bottom));
}

body.player-expanded {
    padding-bottom: 0;
    overflow: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(transparent, rgba(255, 255, 255, 0.02)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.01) 0,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 1px,
            transparent 120px
        );
    opacity: 0.55;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

.stream-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100svh;
}

#streaming-root {
    min-height: 100svh;
}

.stream-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100svh;
    padding: calc(28px + var(--safe-top)) calc(20px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(20px + var(--safe-left));
    background: linear-gradient(180deg, rgba(8, 6, 16, 0.92), rgba(14, 11, 28, 0.96));
    border-right: 1px solid var(--stroke);
    backdrop-filter: blur(24px);
    z-index: 30;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-mark-logo {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
}

.brand-lockup strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.04rem;
}

.brand-lockup span:last-child,
.sidebar-muted,
.sidebar-kicker,
.track-meta,
.page-copy,
.album-card p,
.artist-card p,
.inline-note span,
.metric-card p,
.player-meta span {
    color: var(--muted);
}

.sidebar-kicker {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.55;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.sidebar-utility {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.sidebar-account-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ghost-link,
.ghost-button,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ghost-link:hover,
.ghost-button:hover,
.filter-chip:hover,
.filter-chip.is-active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--stroke-strong);
    transform: translateY(-1px);
}

.ghost-button.is-active,
.player-btn.is-active {
    border-color: rgba(139, 92, 246, 0.42);
    background: rgba(139, 92, 246, 0.14);
    color: var(--accent-soft);
}

.danger-button {
    border-color: rgba(251, 113, 133, 0.3);
    color: #fecdd3;
}

.danger-button:hover {
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.42);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #0a0809;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(139, 92, 246, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 50px rgba(139, 92, 246, 0.34);
}

.button-row,
.page-actions,
.tab-row,
.chip-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stream-main {
    min-width: 0;
    padding: calc(26px + var(--safe-top)) calc(28px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(28px + var(--safe-left));
}

.stream-topbar {
    position: sticky;
    top: calc(16px + var(--safe-top));
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    margin-bottom: 22px;
    border: 1px solid var(--stroke);
    border-radius: 22px;
    background: rgba(14, 11, 28, 0.8);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
}

.stream-topbar h1,
.page-intro h2,
.hero-copy-block h2,
.auth-hero h2 {
    margin: 6px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 2vw + 1.2rem, 3.4rem);
    line-height: 1.06;
}

.eyebrow {
    margin: 0;
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.73rem;
    font-weight: 800;
}

.mobile-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.26);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(196, 181, 253, 0.08));
    color: var(--text);
    box-shadow: 0 14px 34px rgba(49, 24, 99, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mobile-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 181, 253, 0.34);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(196, 181, 253, 0.12));
}

.mobile-toggle.is-open {
    border-color: rgba(196, 181, 253, 0.42);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.4), rgba(139, 92, 246, 0.22));
}

.mobile-toggle-icon {
    display: inline-grid;
    gap: 4px;
}

.mobile-toggle-icon span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(196, 181, 253, 0.92));
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle.is-open .mobile-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.is-open .mobile-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-open .mobile-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-toggle-label {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.stream-sidebar-backdrop {
    display: none;
}

.stream-content {
    display: grid;
    gap: 22px;
    min-height: 46vh;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body[data-page="swap"] {
    padding-bottom: 0;
}

body[data-page="swap"]:not(.sidebar-open):not(.player-expanded) {
    overflow: hidden;
}

body[data-page="swap"] #streaming-root,
body[data-page="swap"] .stream-shell,
body[data-page="swap"] .stream-main {
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
}

body[data-page="swap"] .stream-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

body[data-page="swap"] .stream-content {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    align-content: stretch;
}

.stream-content.is-page-loading {
    opacity: 0.8;
    transform: translateY(4px);
}

.page-intro {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.page-copy {
    margin: 10px 0 0;
    max-width: 70ch;
    line-height: 1.65;
}

.hero-stage,
.content-panel,
.ambient-panel,
.metric-card,
.album-card,
.artist-card,
.plan-card,
.auth-hero,
.state-block,
.inline-note,
.fatal-error,
.moderation-card {
    border: 1px solid var(--stroke);
    background: var(--bg-elevated);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
}

.hero-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 18px;
    padding: 34px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.32), transparent 70%);
}

.hero-stage-small {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.hero-copy-block {
    display: grid;
    gap: 16px;
    align-content: start;
}

.hero-copy-block > p {
    margin: 0;
    max-width: 68ch;
    line-height: 1.75;
}

.hero-supporting-copy {
    color: var(--accent-soft);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-stack {
    display: grid;
    gap: 14px;
}

.ambient-panel {
    padding: 18px 20px;
    border-radius: 20px;
}

.ambient-panel span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.ambient-panel strong {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
}

.content-panel {
    padding: 26px;
    border-radius: 24px;
}

.content-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.editor-panel {
    display: grid;
    gap: 18px;
    border-color: rgba(139, 92, 246, 0.22);
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 28%),
        var(--bg-elevated);
}

.editor-panel textarea {
    resize: vertical;
}

.swap-beta-lock {
    display: grid;
    gap: 20px;
}

.swap-shell {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 440px);
    gap: 24px;
    justify-content: center;
    align-items: start;
    width: min(100%, 1040px);
    margin: 0 auto;
}

body[data-page="swap"] .swap-shell {
    height: 100%;
    max-height: 100%;
    align-items: stretch;
}

.swap-rail,
.swap-stage {
    position: sticky;
    top: calc(20px + var(--safe-top));
}

.swap-rail {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(14, 11, 28, 0.9), rgba(10, 8, 20, 0.98));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

body[data-page="swap"] .swap-rail {
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
}

.swap-rail-copy {
    display: grid;
    gap: 10px;
}

.swap-rail-copy h2,
.swap-rail-copy p {
    margin: 0;
}

.swap-rail-copy h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.7rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.swap-rail-copy p {
    color: var(--muted);
    line-height: 1.62;
}

.swap-rail-actions {
    display: grid;
    gap: 10px;
}

.swap-rail-note {
    display: grid;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.swap-rail-note strong,
.swap-rail-badge span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.swap-rail-note strong {
    color: var(--accent-soft);
}

.swap-rail-note span {
    color: var(--muted);
    line-height: 1.55;
}

.swap-rail-badge {
    display: flex;
}

.swap-rail-badge span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(196, 181, 253, 0.22);
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-soft);
}

.swap-stage {
    height: clamp(560px, calc(100svh - 170px - var(--player-height) - var(--safe-top) - var(--safe-bottom)), 860px);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(139, 92, 246, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(9, 8, 17, 0.96), rgba(5, 5, 10, 0.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}

body[data-page="swap"] .swap-stage {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

.swap-feed {
    display: grid;
    grid-auto-rows: 100%;
    height: 100%;
    overflow-y: auto;
    gap: 12px;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
}

.swap-feed::-webkit-scrollbar {
    display: none;
}

.swap-card {
    position: relative;
    height: 100%;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    isolation: isolate;
    background: #090911;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.swap-card.is-active {
    border-color: rgba(196, 181, 253, 0.38);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
    transform: translateY(-2px);
}

.swap-card-media,
.swap-card-overlay {
    position: absolute;
    inset: 0;
}

.swap-card-media img,
.swap-card-fallback {
    width: 100%;
    height: 100%;
}

.swap-card-media img {
    object-fit: cover;
}

.swap-card-fallback {
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.94);
    background:
        radial-gradient(circle at top, rgba(196, 181, 253, 0.26), transparent 30%),
        linear-gradient(160deg, rgba(109, 40, 217, 0.78), rgba(7, 7, 10, 0.98));
}

.swap-card-overlay {
    background:
        linear-gradient(180deg, rgba(4, 4, 8, 0.16) 0%, rgba(4, 4, 8, 0.14) 20%, rgba(4, 4, 8, 0.42) 48%, rgba(4, 4, 8, 0.94) 100%),
        linear-gradient(90deg, rgba(4, 4, 8, 0.18), transparent 34%);
}

.swap-card-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.swap-card-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.swap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 7, 11, 0.38);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.78rem;
    white-space: nowrap;
    backdrop-filter: blur(18px);
}

.swap-badge-premium {
    border-color: rgba(250, 204, 21, 0.32);
    color: #fde68a;
    background: rgba(250, 204, 21, 0.14);
}

.swap-card-body {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: 22px;
}

.swap-card-main {
    display: grid;
    gap: 10px;
    max-width: min(360px, 100%);
}

.swap-card-main h3,
.swap-card-main p {
    margin: 0;
}

.swap-card-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.swap-card-main h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 2.2vw, 2.8rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.swap-card-credit {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 1rem;
}

.swap-card-description {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.56;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.swap-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.swap-card-stats {
    display: grid;
    gap: 4px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
}

.swap-card-actions {
    display: grid;
    gap: 10px;
}

.swap-card-actions > * {
    min-width: 132px;
}

.lyrics-panel {
    display: grid;
    gap: 18px;
}

.lyrics-shell {
    display: grid;
    gap: 8px;
    max-height: 420px;
    padding: 10px;
    overflow-y: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.lyrics-shell.is-synced {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 28%);
}

.subscription-status-panel {
    display: grid;
    gap: 16px;
}

.comment-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.comment-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.comment-head,
.comment-author {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.comment-author {
    justify-content: flex-start;
    flex: 1 1 auto;
}

.comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.18);
    color: var(--accent-soft);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-copy {
    display: grid;
    gap: 6px;
}

.comment-copy strong {
    font-size: 0.98rem;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.comment-message {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-form textarea {
    resize: vertical;
}

.lyrics-line {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--muted);
    line-height: 1.7;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lyrics-line.is-active {
    background: rgba(139, 92, 246, 0.16);
    color: var(--text);
    transform: translateX(4px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.metric-card {
    padding: 22px;
    border-radius: 22px;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.metric-card strong {
    display: block;
    margin-top: 14px;
    font-size: clamp(1.6rem, 2vw, 2.4rem);
    font-family: "Space Grotesk", sans-serif;
}

.track-list {
    display: grid;
    gap: 14px;
}

.artist-performance-list {
    display: grid;
    gap: 14px;
}

.artist-performance-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.9fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.artist-performance-main,
.artist-performance-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.artist-performance-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.artist-performance-metrics {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.artist-performance-value {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.artist-performance-value strong {
    font-size: 1rem;
}

.artist-performance-value span {
    color: var(--muted);
    font-size: 0.88rem;
}

.artist-performance-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.artist-performance-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-cool));
}

.track-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.track-row-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.play-button,
.player-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.34);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text);
    cursor: pointer;
}

.track-cover {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(196, 181, 253, 0.16));
    text-decoration: none;
}

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

.track-cover span {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
}

.track-cover-static {
    cursor: default;
}

.track-title,
.album-title,
.artist-name {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
}

.track-title:hover,
.album-title:hover,
.artist-name:hover {
    color: var(--accent-soft);
}

.track-row-main,
.track-row-side,
.track-row-actions {
    min-width: 0;
}

.track-row-main {
    display: grid;
    gap: 4px;
}

.track-row-main strong {
    display: block;
    font-size: 1rem;
}

.track-row-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.track-row-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 8px;
    font-size: 0.92rem;
}

.track-count {
    color: var(--muted-strong);
    font-size: 0.9rem;
}

.status-pill,
.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 0.84rem;
    white-space: nowrap;
}

.tag-chip-premium {
    border-color: rgba(250, 204, 21, 0.35);
    color: #fde68a;
    background: rgba(250, 204, 21, 0.08);
}

.tag-chip-danger {
    border-color: rgba(251, 113, 133, 0.34);
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.08);
}

.status-pending_review {
    border-color: rgba(250, 204, 21, 0.36);
    color: #fde68a;
}

.status-approved,
.status-published {
    border-color: rgba(74, 222, 128, 0.36);
    color: #bbf7d0;
}

.status-rejected {
    border-color: rgba(251, 113, 133, 0.36);
    color: #fecdd3;
}

.album-grid,
.artist-grid,
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.album-card,
.artist-card,
.plan-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
}

.album-cover,
.artist-avatar {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(196, 181, 253, 0.16));
    text-decoration: none;
}

.album-cover img,
.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.artist-card {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
}

.artist-avatar {
    width: 86px;
}

.plan-card.is-active-plan {
    border-color: rgba(139, 92, 246, 0.38);
}

.benefit-list,
.choice-grid,
.stack-actions {
    display: grid;
    gap: 10px;
}

.benefit-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.mini-heading {
    margin: 0 0 16px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 22px;
}

.auth-hero,
.state-block,
.fatal-error {
    padding: 28px;
    border-radius: 26px;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.stack-form label,
.stack-form fieldset {
    display: grid;
    gap: 8px;
}

.stack-form legend,
.stack-form span {
    color: var(--muted);
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(139, 92, 246, 0.48);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

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

.choice-card,
.checkbox-row,
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.choice-card {
    min-height: 54px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
}

.profile-media-card,
.artist-hero-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
}

.profile-media-card.is-disabled {
    opacity: 0.65;
}

.profile-media-copy p,
.artist-hero-card span {
    margin: 6px 0 0;
    color: var(--muted);
}

.profile-avatar-preview,
.artist-hero-avatar {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(196, 181, 253, 0.18));
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.profile-avatar-preview img,
.artist-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-hero-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
}

.artist-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.artist-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.inline-note {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
}

.success-note {
    border-color: rgba(74, 222, 128, 0.34);
    background: rgba(74, 222, 128, 0.08);
}

.warning-note {
    border-color: rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.08);
}

.danger-note {
    margin-top: -4px;
    border-color: rgba(251, 113, 133, 0.3);
    background: rgba(251, 113, 133, 0.08);
}

.inline-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--stroke);
}

.inline-list-item:last-child {
    border-bottom: 0;
}

.search-shell {
    display: flex;
}

.search-input {
    min-height: 62px;
    font-size: 1.02rem;
}

.table-shell {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid var(--stroke);
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.moderation-list {
    display: grid;
    gap: 16px;
}

.moderation-card {
    padding: 20px;
    border-radius: 22px;
}

.moderation-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.moderation-head-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.moderation-head-main > div {
    min-width: 0;
}

.moderation-head strong {
    display: block;
    margin-bottom: 4px;
}

.moderation-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.admin-notification-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
}

.admin-notification-panel__copy {
    display: grid;
    gap: 8px;
}

.admin-notification-panel__copy .mini-heading,
.admin-notification-panel__copy .page-copy {
    margin: 0;
}

.admin-notification-panel__status {
    justify-content: flex-start;
}

.admin-notification-panel__actions {
    justify-content: flex-end;
    align-self: end;
}

.ios-install-backdrop {
    position: fixed;
    inset: 0;
    z-index: 27;
    border: 0;
    padding: 0;
    background: rgba(4, 5, 8, 0.34);
    backdrop-filter: blur(14px);
}

.ios-install-prompt {
    position: fixed;
    right: 22px;
    bottom: calc(var(--player-height) + 26px + var(--safe-bottom));
    z-index: 28;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px 16px;
    width: min(420px, calc(100vw - 28px));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(19, 13, 37, 0.96), rgba(11, 9, 23, 0.96));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
}

.ios-install-prompt__media {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.ios-install-prompt__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ios-install-prompt__copy {
    display: grid;
    gap: 6px;
}

.ios-install-prompt__copy strong,
.ios-install-prompt__copy p {
    margin: 0;
}

.ios-install-prompt__copy p {
    color: var(--muted);
    line-height: 1.5;
}

.ios-install-prompt__steps {
    color: var(--text) !important;
    font-weight: 700;
}

.ios-install-prompt__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.sidebar-open .ios-install-prompt {
    opacity: 0.38;
    transform: translateY(8px);
    pointer-events: none;
}

body.player-expanded .ios-install-prompt,
body.player-expanded .ios-install-backdrop {
    opacity: 0;
    pointer-events: none;
}

body.sidebar-open .ios-install-backdrop {
    opacity: 0;
    pointer-events: none;
}

.state-block {
    display: grid;
    gap: 10px;
    place-items: center;
    text-align: center;
}

.state-pulse {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.9), transparent 62%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes playerMiniFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

@keyframes playerMiniPulse {
    0% {
        opacity: 0.55;
        transform: scale(0.94);
    }
    70% {
        opacity: 0;
        transform: scale(1.12);
    }
    100% {
        opacity: 0;
        transform: scale(1.14);
    }
}

.player-shell {
    position: fixed;
    left: calc(var(--sidebar-width) + 34px + var(--safe-left));
    right: calc(26px + var(--safe-right));
    bottom: calc(16px + var(--safe-bottom));
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1.4fr) minmax(230px, 0.8fr);
    gap: 20px;
    align-items: center;
    min-height: var(--player-height);
    padding: 18px 22px;
    border: 1px solid var(--stroke);
    border-radius: 28px;
    background: rgba(13, 10, 25, 0.94);
    backdrop-filter: blur(28px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        left 0.25s ease,
        right 0.25s ease,
        top 0.25s ease,
        bottom 0.25s ease,
        width 0.25s ease,
        min-height 0.25s ease,
        padding 0.25s ease,
        gap 0.25s ease,
        border-radius 0.25s ease;
    z-index: 60;
}

.player-shell.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.sidebar-open .player-shell {
    z-index: 12;
    opacity: 0.32;
    pointer-events: none;
    transform: translateY(12px);
}

body.sidebar-open .player-shell.is-expanded {
    z-index: 70;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.player-now,
.player-center,
.player-volume {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.player-center {
    flex-direction: column;
    gap: 10px;
}

.player-volume {
    justify-content: flex-end;
}

.player-mobile-toggle,
.player-expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background: rgba(139, 92, 246, 0.1);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: auto;
    flex: 0 0 auto;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.player-mobile-toggle:hover,
.player-expand-toggle:hover {
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(196, 181, 253, 0.3);
    color: var(--text);
    transform: translateY(-1px);
}

.player-cover {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(196, 181, 253, 0.18));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.player-cover-button {
    padding: 0;
    border: 0;
    color: inherit;
    appearance: none;
    cursor: default;
}

.player-cover-button.is-clickable {
    cursor: pointer;
}

.player-cover-button:disabled {
    opacity: 1;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(196, 181, 253, 0.24);
    opacity: 0;
}

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

.player-meta strong {
    display: block;
    margin-bottom: 0;
    min-width: 0;
}

.player-meta {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px 10px;
    align-items: start;
}

.player-meta strong,
.player-meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-meta span {
    grid-column: 1 / -1;
}

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

.player-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #0b0707;
    font-weight: 800;
}

.player-progress {
    width: min(100%, 420px);
}

.player-progress input,
.player-volume input {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.player-volume input {
    min-width: 96px;
    flex: 1 1 auto;
}

.player-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.player-shell.is-collapsed {
    left: auto;
    right: calc(22px + var(--safe-right));
    width: 108px;
    min-height: 108px;
    padding: 10px;
    gap: 0;
    border-radius: 28px;
    grid-template-columns: 1fr;
    grid-template-areas: "now";
}

.player-shell.is-collapsed .player-mobile-toggle,
.player-shell.is-collapsed .player-expand-toggle,
.player-shell.is-collapsed .player-meta,
.player-shell.is-collapsed .player-center,
.player-shell.is-collapsed .player-volume {
    display: none;
}

.player-shell.is-collapsed .player-now {
    width: auto;
    justify-content: center;
}

.player-shell.is-collapsed .player-cover {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    box-shadow: 0 22px 52px rgba(49, 24, 99, 0.34);
}

.player-shell.is-collapsed.is-playing .player-cover {
    animation: playerMiniFloat 2.8s ease-in-out infinite;
}

.player-shell.is-collapsed.is-playing .player-cover::after {
    opacity: 1;
    animation: playerMiniPulse 1.8s ease-out infinite;
}

.player-shell.is-expanded {
    top: calc(18px + var(--safe-top));
    bottom: calc(18px + var(--safe-bottom));
    left: calc(18px + var(--safe-left));
    right: calc(18px + var(--safe-right));
    min-height: calc(100svh - 36px - var(--safe-top) - var(--safe-bottom));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "now"
        "center"
        "side";
    align-content: center;
    justify-items: center;
    gap: 22px;
    padding: clamp(26px, 4vw, 40px);
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(139, 92, 246, 0.22), transparent 40%),
        linear-gradient(180deg, rgba(18, 13, 36, 0.98), rgba(10, 8, 20, 0.98));
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.54);
    overflow: auto;
}

.player-shell.is-expanded .player-now {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: min(100%, 780px);
}

.player-shell.is-expanded .player-cover {
    width: min(58vw, 360px);
    height: min(58vw, 360px);
    border-radius: 34px;
    box-shadow: 0 36px 100px rgba(49, 24, 99, 0.36);
}

.player-shell.is-expanded .player-meta,
.player-shell.is-expanded .player-center,
.player-shell.is-expanded .player-volume {
    width: min(100%, 780px);
}

.player-shell.is-expanded .player-meta strong {
    font-size: clamp(1.5rem, 1.8vw + 1rem, 2.4rem);
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.08;
}

.player-shell.is-expanded .player-meta span {
    font-size: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.player-shell.is-expanded .player-center,
.player-shell.is-expanded .player-volume {
    justify-content: center;
}

.player-shell.is-expanded .player-center {
    gap: 16px;
}

.player-shell.is-expanded .player-controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.player-shell.is-expanded .player-controls .player-btn,
.player-shell.is-expanded .player-volume .player-btn {
    min-width: 140px;
}

.player-shell.is-expanded .player-progress {
    width: 100%;
}

.player-shell.is-expanded .player-volume {
    flex-wrap: wrap;
    gap: 12px;
}

.player-shell.is-expanded .player-volume input {
    max-width: 220px;
}

#toast-root {
    position: fixed;
    right: 24px;
    bottom: calc(var(--player-height) + 36px);
    display: grid;
    gap: 12px;
    z-index: 80;
}

body.player-expanded #toast-root {
    bottom: calc(24px + var(--safe-bottom));
}

.toast {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 260px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: rgba(12, 13, 18, 0.94);
    box-shadow: var(--shadow);
}

.toast-success {
    border-color: rgba(74, 222, 128, 0.32);
}

.toast-warning {
    border-color: rgba(250, 204, 21, 0.32);
}

.toast-action {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 700;
}

.toast-out {
    opacity: 0;
    transform: translateX(8px);
}

@media (max-width: 1180px) {
    .stream-shell {
        grid-template-columns: 1fr;
    }

    .stream-sidebar {
        position: fixed;
        left: calc(16px + var(--safe-left));
        top: calc(16px + var(--safe-top));
        bottom: calc(16px + var(--safe-bottom));
        width: min(320px, calc(100vw - 32px - var(--safe-left) - var(--safe-right)));
        transform: translateX(-112%);
        transition: transform 0.24s ease;
        border-radius: 28px;
        min-height: auto;
        box-shadow: var(--shadow);
        overflow-y: auto;
    }

    .stream-sidebar.is-open {
        transform: translateX(0);
    }

    .stream-sidebar-backdrop {
        position: fixed;
        inset: 0;
        border: 0;
        padding: 0;
        background: rgba(4, 5, 8, 0.62);
        backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 25;
        display: block;
    }

    body.sidebar-open .stream-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .stream-main {
        padding: calc(20px + var(--safe-top)) calc(18px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(18px + var(--safe-left));
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-stage,
    .hero-stage-small,
    .content-split,
    .auth-layout,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .swap-shell {
        grid-template-columns: 1fr;
        width: min(100%, 720px);
        gap: 16px;
    }

    body[data-page="swap"] .swap-shell {
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 0;
    }

    .swap-rail,
    .swap-stage {
        position: static;
    }

    .swap-rail {
        padding: 20px;
        border-radius: 24px;
    }

    .swap-stage {
        height: min(78svh, 820px);
    }

    body[data-page="swap"] .swap-stage {
        height: 100%;
        min-height: 0;
    }

    .player-shell {
        left: calc(14px + var(--safe-left));
        right: calc(14px + var(--safe-right));
        bottom: calc(12px + var(--safe-bottom));
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "now side"
            "center center";
        align-items: start;
    }

    .player-now {
        grid-area: now;
    }

    .player-center {
        grid-area: center;
    }

    .player-volume {
        grid-area: side;
        justify-content: flex-end;
        align-self: center;
    }

    .player-volume input {
        width: 120px;
    }

    .artist-performance-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .artist-performance-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .artist-performance-actions > * {
        flex: 1 1 160px;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: calc(var(--player-height) + 70px + var(--safe-bottom));
    }

    body.player-collapsed {
        padding-bottom: calc(104px + 18px + var(--safe-bottom));
    }

    .stream-topbar {
        flex-wrap: wrap;
        padding: 16px;
    }

    .content-panel,
    .hero-stage,
    .auth-hero {
        padding: 20px;
    }

    .page-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .swap-shell {
        width: 100%;
        gap: 12px;
    }

    .swap-rail {
        padding: 16px;
        border-radius: 20px;
    }

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

    .swap-stage {
        height: calc(100svh - 280px - var(--player-height) - var(--safe-top) - var(--safe-bottom));
        min-height: 460px;
        padding: 8px;
        border-radius: 24px;
    }

    body[data-page="swap"] .swap-stage {
        height: 100%;
        min-height: 0;
    }

    .swap-feed {
        gap: 10px;
    }

    .swap-card {
        border-radius: 22px;
    }

    .swap-card-top {
        top: 14px;
        left: 14px;
        right: 14px;
    }

    .swap-card-body {
        padding: 18px 16px;
    }

    .swap-card-main h3 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .swap-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .swap-card-stats {
        font-size: 0.82rem;
    }

    .swap-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .swap-card-actions > * {
        width: 100%;
        min-width: 0;
    }

    .lyrics-shell {
        max-height: 320px;
        padding: 8px;
    }

    .lyrics-line {
        padding: 12px 14px;
    }

    .button-row,
    .page-actions,
    .tab-row {
        width: 100%;
    }

    .button-row > *,
    .page-actions > *,
    .tab-row > * {
        flex: 1 1 100%;
        width: 100%;
    }

    .track-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .track-row-head {
        gap: 12px;
    }

    .track-cover {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .track-row-side,
    .track-row-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .track-row-actions {
        flex-wrap: wrap;
    }

    .track-row-actions > * {
        flex: 1 1 160px;
    }

    .admin-notification-panel {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-notification-panel__status,
    .admin-notification-panel__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-notification-panel__actions > * {
        flex: 1 1 100%;
    }

    .inline-note,
    .inline-list-item,
    .moderation-head,
    .comment-head,
    .profile-media-card,
    .artist-hero-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .inline-list-item > *,
    .inline-note > *,
    .comment-head > * {
        width: 100%;
    }

    .player-shell {
        gap: 12px;
        min-height: auto;
        padding: 14px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "now"
            "center"
            "side";
    }

    .player-mobile-toggle,
    .player-expand-toggle {
        min-height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid rgba(139, 92, 246, 0.24);
        background: rgba(139, 92, 246, 0.1);
        color: var(--muted);
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .player-progress {
        width: 100%;
    }

    .player-now,
    .player-center,
    .player-volume {
        width: 100%;
        justify-content: flex-start;
    }

    .player-now {
        align-items: flex-start;
    }

    .player-meta {
        flex: 1 1 auto;
    }

    .player-controls {
        width: 100%;
        justify-content: space-between;
    }

    .player-controls .player-btn,
    .player-volume .player-btn {
        flex: 1 1 0;
    }

    .player-progress span {
        font-size: 0.82rem;
        min-width: 34px;
    }

    .player-volume {
        flex-wrap: wrap;
        gap: 8px;
    }

    .player-volume input {
        display: none;
    }

    .player-meta strong {
        font-size: 0.96rem;
    }

    .player-meta span {
        font-size: 0.84rem;
    }

    .player-shell.is-collapsed {
        left: auto;
        right: calc(14px + var(--safe-right));
        width: 84px;
        min-height: 84px;
        padding: 8px;
        gap: 0;
        border-radius: 24px;
        grid-template-columns: 1fr;
        grid-template-areas: "now";
    }

    .player-shell.is-collapsed .player-mobile-toggle,
    .player-shell.is-collapsed .player-expand-toggle,
    .player-shell.is-collapsed .player-meta,
    .player-shell.is-collapsed .player-center,
    .player-shell.is-collapsed .player-volume {
        display: none;
    }

    .player-shell.is-collapsed .player-now {
        width: auto;
        justify-content: center;
    }

    .player-shell.is-collapsed .player-cover {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .player-shell.is-expanded {
        top: calc(12px + var(--safe-top));
        right: calc(12px + var(--safe-right));
        bottom: calc(12px + var(--safe-bottom));
        left: calc(12px + var(--safe-left));
        min-height: calc(100svh - 24px - var(--safe-top) - var(--safe-bottom));
        padding: 18px 14px 20px;
        border-radius: 26px;
        align-content: start;
    }

    .player-shell.is-expanded .player-now,
    .player-shell.is-expanded .player-center,
    .player-shell.is-expanded .player-volume {
        width: 100%;
    }

    .player-shell.is-expanded .player-cover {
        width: min(72vw, 280px);
        height: min(72vw, 280px);
        border-radius: 28px;
    }

    .player-shell.is-expanded .player-controls .player-btn,
    .player-shell.is-expanded .player-volume .player-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        padding: 16px 0;
        border-bottom: 1px solid var(--stroke);
    }

    .admin-table td {
        border-bottom: 0;
        padding: 8px 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .admin-table td select,
    .admin-table td .ghost-button,
    .admin-table td .primary-button {
        width: 100%;
    }

    .checkbox-inline {
        display: flex;
        width: 100%;
    }

    .moderation-head-main {
        width: 100%;
    }

    .moderation-head-main .track-cover,
    .moderation-head-main .track-cover-static {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .ios-install-backdrop {
        backdrop-filter: blur(12px);
    }

    .ios-install-prompt {
        left: calc(14px + var(--safe-left));
        right: calc(14px + var(--safe-right));
        width: auto;
        bottom: calc(var(--player-height) + 22px + var(--safe-bottom));
    }

    body.player-collapsed .ios-install-prompt {
        bottom: calc(96px + 16px + var(--safe-bottom));
    }

    #toast-root {
        left: 14px;
        right: 14px;
        bottom: calc(var(--player-height) + 22px);
    }

    body.player-collapsed #toast-root {
        bottom: calc(96px + 16px + var(--safe-bottom));
    }

    .toast {
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    body::before {
        opacity: 0.22;
    }

    .stream-main {
        padding: calc(16px + var(--safe-top)) calc(12px + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(12px + var(--safe-left));
    }

    .stream-topbar {
        top: calc(8px + var(--safe-top));
        gap: 10px;
        padding: 10px 12px;
        border-radius: 16px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .stream-topbar h1,
    .page-intro h2,
    .hero-copy-block h2,
    .auth-hero h2 {
        font-size: clamp(1.55rem, 6vw, 2.1rem);
    }

    .hero-stage,
    .content-panel,
    .auth-hero,
    .state-block,
    .fatal-error {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .metrics-grid,
    .choice-grid,
    .album-grid,
    .artist-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .swap-shell {
        gap: 10px;
    }

    .swap-rail {
        padding: 14px;
        border-radius: 18px;
    }

    .swap-rail-copy h2 {
        font-size: clamp(1.45rem, 6vw, 2rem);
    }

    .swap-stage {
        height: calc(100svh - 250px - var(--player-height) - var(--safe-top) - var(--safe-bottom));
        min-height: 410px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body[data-page="swap"] .swap-stage {
        height: 100%;
        min-height: 0;
    }

    .swap-card {
        border-radius: 22px;
    }

    .swap-card-top {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .swap-card-body {
        gap: 14px;
        padding: 16px 14px;
    }

    .swap-card-main {
        gap: 9px;
    }

    .swap-card-main h3 {
        font-size: clamp(1.55rem, 8.2vw, 2.1rem);
    }

    .swap-card-credit {
        font-size: 0.92rem;
    }

    .swap-card-description {
        font-size: 0.9rem;
        line-height: 1.52;
        -webkit-line-clamp: 2;
    }

    .swap-badge {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .stream-topbar .eyebrow,
    .sidebar-kicker {
        display: none;
    }

    .stream-sidebar {
        left: calc(12px + var(--safe-left));
        top: calc(12px + var(--safe-top));
        bottom: calc(12px + var(--safe-bottom));
        width: min(300px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
        gap: 18px;
        padding: 20px 16px 24px;
    }

    .sidebar-link {
        min-height: 44px;
        padding: 0 14px;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .brand-lockup {
        gap: 12px;
    }

    .track-meta {
        gap: 8px 12px;
        font-size: 0.86rem;
    }

    .sidebar-utility {
        gap: 8px;
    }

    .player-shell {
        left: calc(10px + var(--safe-left));
        right: calc(10px + var(--safe-right));
        bottom: calc(10px + var(--safe-bottom));
        padding: 12px;
        border-radius: 20px;
        gap: 10px;
    }

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

    .player-shell.is-collapsed {
        right: calc(10px + var(--safe-right));
        width: 78px;
        min-height: 78px;
        padding: 7px;
        border-radius: 22px;
    }

    .player-shell.is-collapsed .player-cover {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .player-shell.is-expanded {
        top: calc(10px + var(--safe-top));
        right: calc(10px + var(--safe-right));
        bottom: calc(10px + var(--safe-bottom));
        left: calc(10px + var(--safe-left));
        padding: 16px 12px 18px;
        border-radius: 22px;
    }

    .player-shell.is-expanded .player-cover {
        width: min(76vw, 250px);
        height: min(76vw, 250px);
        border-radius: 24px;
    }

    .player-volume input {
        min-width: 0;
        width: 100%;
    }

    .player-btn,
    .play-button {
        min-height: 38px;
        padding: 0 12px;
    }

    .artist-performance-row {
        padding: 16px;
        border-radius: 18px;
    }

    .profile-avatar-preview,
    .artist-hero-avatar {
        width: 76px;
        height: 76px;
        border-radius: 20px;
    }

    .moderation-card {
        padding: 16px;
        border-radius: 18px;
    }

    .moderation-head-main .track-cover,
    .moderation-head-main .track-cover-static {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    .ios-install-prompt {
        left: calc(10px + var(--safe-left));
        right: calc(10px + var(--safe-right));
        padding: 14px;
        border-radius: 20px;
    }

    .ios-install-prompt__media {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

@media (max-width: 430px) {
    body {
        padding-bottom: calc(var(--player-height) + 54px + var(--safe-bottom));
    }

    body.player-collapsed {
        padding-bottom: calc(88px + 14px + var(--safe-bottom));
    }

    .stream-main {
        padding: calc(14px + var(--safe-top)) calc(10px + var(--safe-right)) calc(22px + var(--safe-bottom)) calc(10px + var(--safe-left));
    }

    .mobile-toggle {
        min-height: 42px;
        padding: 0 14px 0 12px;
        gap: 8px;
    }

    .swap-rail {
        padding: 13px 12px;
        border-radius: 16px;
    }

    .swap-stage {
        height: calc(100svh - 236px - var(--player-height) - var(--safe-top) - var(--safe-bottom));
        min-height: 360px;
    }

    body[data-page="swap"] .swap-stage {
        height: 100%;
        min-height: 0;
    }

    .swap-card {
        border-radius: 20px;
    }

    .swap-card-body {
        gap: 12px;
        padding: 14px 12px;
    }

    .swap-card-main h3 {
        font-size: clamp(1.45rem, 8.4vw, 1.85rem);
    }

    .swap-rail-note strong {
        font-size: 0.7rem;
    }

    .swap-rail-actions,
    .swap-card-actions {
        grid-template-columns: 1fr;
    }

    .swap-card-stats {
        font-size: 0.78rem;
    }

    .mobile-toggle-label {
        font-size: 0.92rem;
    }

    .player-shell {
        left: calc(8px + var(--safe-left));
        right: calc(8px + var(--safe-right));
        bottom: calc(8px + var(--safe-bottom));
        padding: 10px;
        gap: 8px;
        border-radius: 18px;
    }

    .player-now {
        gap: 10px;
    }

    .player-shell.is-collapsed {
        right: calc(8px + var(--safe-right));
        width: 72px;
        min-height: 72px;
        padding: 6px;
        border-radius: 20px;
    }

    .player-shell.is-collapsed .player-cover {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .player-shell.is-expanded {
        top: calc(8px + var(--safe-top));
        right: calc(8px + var(--safe-right));
        bottom: calc(8px + var(--safe-bottom));
        left: calc(8px + var(--safe-left));
        min-height: calc(100svh - 16px - var(--safe-top) - var(--safe-bottom));
        padding: 14px 10px 16px;
        border-radius: 20px;
    }

    .player-shell.is-expanded .player-cover {
        width: min(78vw, 220px);
        height: min(78vw, 220px);
        border-radius: 22px;
    }

    .player-center {
        gap: 8px;
    }

    .player-progress span {
        display: none;
    }

    .player-progress input {
        width: 100%;
    }

    .player-controls,
    .player-volume {
        gap: 6px;
    }

    .player-btn {
        font-size: 0.84rem;
    }

    .admin-notification-panel__status .tag-chip {
        white-space: normal;
    }

    .ios-install-prompt {
        left: calc(8px + var(--safe-left));
        right: calc(8px + var(--safe-right));
        bottom: calc(var(--player-height) + 14px + var(--safe-bottom));
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    body.player-collapsed .ios-install-prompt {
        bottom: calc(82px + 10px + var(--safe-bottom));
    }

    .ios-install-prompt__actions {
        display: grid;
    }

    .ios-install-prompt__actions > * {
        width: 100%;
    }

    .ios-install-prompt__copy strong {
        font-size: 0.98rem;
    }

    .ios-install-prompt__copy p {
        font-size: 0.84rem;
    }

    body.player-collapsed #toast-root {
        bottom: calc(82px + 10px + var(--safe-bottom));
    }
}
