:root {
    --bg: #16130f;
    --bg-2: #221c16;
    --line: #3a3128;
    --text: #f6f1e8;
    --muted: #cbbba6;
    --accent: #e07a3d;
    --accent-ink: #1a120c;
    --admin-bg: #f4efe6;
    --admin-surface: #fffaf3;
    --admin-text: #1c1612;
    --admin-muted: #5e5348;
    --admin-sidebar: #241c16;
    --admin-line: #e4d9c8;
}

body {
    background:
        radial-gradient(circle at 12% 0%, rgba(224, 122, 61, 0.16), transparent 32%),
        linear-gradient(180deg, #221c16 0%, #16130f 48%, #100e0c 100%);
    color: var(--text);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

h1,
h2,
.admin-main h1 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 560;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    color: var(--text);
}

.tagline,
.now-card p,
.deck-status,
.site-footer {
    color: var(--muted);
}

.hero-panel,
.side-panel,
.legal-card,
.history-list {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-2);
    box-shadow: 0 16px 40px rgba(22, 19, 15, 0.28);
    backdrop-filter: none;
}

.now-card {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #2a241c;
}

.live-pill,
.listeners-pill {
    border-radius: 999px;
    border-color: var(--line);
    background: #1a1612;
    color: var(--text);
}

.live-pill,
.label,
.panel-head span,
.site-footer a,
.back-link {
    color: var(--accent);
}

.stack-form input,
.stack-form textarea,
.stack-form select {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #1a1612;
    color: var(--text);
}

.stack-form button,
.admin-actions button,
.admin-actions a {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}

.history-button,
.ghost-button,
.request-type-tabs button {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}

.request-type-tabs button.is-active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.deck-glow {
    opacity: 0.45;
}

.vinyl {
    box-shadow:
        0 0 0 8px rgba(246, 241, 232, 0.05),
        0 18px 40px rgba(0, 0, 0, 0.45);
}

#playerFrame .vinyl.has-cover {
    background-color: #16130f;
    background-image:
        radial-gradient(circle at center, rgba(12, 10, 8, 0.42) 0 17%, transparent 18%),
        var(--cover-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow:
        0 0 0 8px rgba(246, 241, 232, 0.06),
        inset 0 0 0 8px rgba(12, 10, 8, 0.38),
        0 18px 40px rgba(0, 0, 0, 0.45);
}

.mobile-dock {
    border-top: 1px solid var(--line);
    background: var(--admin-sidebar);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.mobile-tabs button {
    min-height: 48px;
    color: var(--text);
    background: transparent;
}

.mobile-tabs button.is-active,
body[data-mobile-tab="hero"] .mobile-tabs button[data-target="hero"],
body[data-mobile-tab="request"] .mobile-tabs button[data-target="request"],
body[data-mobile-tab="chat"] .mobile-tabs button[data-target="chat"],
body[data-mobile-tab="queue"] .mobile-tabs button[data-target="queue"],
body[data-mobile-tab="history"] .mobile-tabs button[data-target="history"] {
    background: var(--accent);
    color: var(--accent-ink);
}

body.admin-body {
    background: var(--admin-bg);
    color: var(--admin-text);
}

.admin-nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 16px;
    background: var(--admin-sidebar);
    color: var(--text);
}

.admin-brand {
    margin: 0 8px 18px;
    color: var(--text);
    font-family: Fraunces, Georgia, serif;
    font-size: 22px;
    line-height: 1.1;
}

.admin-sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.admin-sidebar a.is-active {
    background: var(--accent);
    color: var(--accent-ink);
}

.admin-sidebar a.admin-logout {
    margin-top: auto;
}

.admin-main {
    min-width: 0;
    padding: 28px 28px 48px;
}

.admin-menu-button {
    display: none;
}

.admin-main h1 {
    margin: 0 0 18px;
    color: var(--admin-text);
    font-size: 28px;
}

body.admin-body .side-panel,
body.admin-body .now-card {
    background: var(--admin-surface);
    color: var(--admin-text);
    border: 1px solid var(--admin-line);
    box-shadow: 0 10px 28px rgba(22, 19, 15, 0.06);
}

body.admin-body .side-panel + .side-panel,
body.admin-body .admin-stack {
    margin-top: 18px;
}

body.admin-body .label,
body.admin-body .panel-head span,
body.admin-body .tagline,
body.admin-body .form-message,
body.admin-body .now-card p {
    color: var(--admin-muted);
}

body.admin-body .stack-form input,
body.admin-body .stack-form textarea,
body.admin-body .stack-form select,
body.admin-body .cron-editor {
    background: #fff;
    color: var(--admin-text);
    border: 1px solid #cfc3b2;
}

body.admin-body .admin-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    color: var(--admin-text);
}

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

body.admin-body .admin-table th {
    color: var(--admin-muted);
    font-size: 13px;
}

body.admin-body a {
    color: #8a3e16;
}

body.admin-body .admin-sidebar a {
    color: var(--text);
}

body.admin-body .admin-sidebar a.is-active {
    color: var(--accent-ink);
}

.admin-note {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4e8;
    color: var(--admin-text);
}

.admin-note-danger {
    background: #fdecef;
    color: #6d2030;
}

.cron-editor {
    width: 100%;
    min-height: 220px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 14px;
}

.login-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
}

@media (max-width: 900px) {
    h1 {
        font-size: 32px;
        white-space: normal;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-menu-button {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-bottom: 12px;
        padding: 0 14px;
        border-radius: 12px;
        background: var(--admin-sidebar);
        color: var(--text);
        font-weight: 700;
        cursor: pointer;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-nav-toggle:checked + .admin-shell .admin-sidebar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 5;
    }

    .admin-main {
        padding: 16px 14px 32px;
    }
}

.site-topbar,
.site-page,
.site-footer {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.site-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #221c16;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-family: Fraunces, Georgia, serif;
    font-size: 22px;
    text-decoration: none;
}

.site-page {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.history-button,
.top-actions .history-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
}

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

#toggleNightButton .bi-sun {
    display: none;
}

body[data-theme="night"] #toggleNightButton .bi-moon-stars {
    display: none;
}

body[data-theme="night"] #toggleNightButton .bi-sun {
    display: inline-block;
}

.panel-head h2,
.label,
.live-pill,
.admin-sidebar a,
.admin-brand,
.admin-menu-button,
.site-footer a,
.site-footer p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.panel-head h2 {
    margin: 0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 28px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #221c16;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.site-footer a {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: #1a1612;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.site-footer p {
    margin: 0;
}

.site-footer p a {
    display: inline;
    min-height: 0;
    padding: 0;
    background: transparent;
    color: var(--accent);
}

.mobile-tabs button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.mobile-tabs button .bi {
    font-size: 16px;
    line-height: 1;
}

.admin-sidebar a .bi,
.admin-brand .bi {
    width: 1.1em;
}

body[data-theme="night"] {
    background: #07080c;
    color: #f4f6fb;
}

body[data-theme="night"] .hero-panel,
body[data-theme="night"] .side-panel,
body[data-theme="night"] .now-card,
body[data-theme="night"] .legal-card,
body[data-theme="night"] .site-topbar,
body[data-theme="night"] .site-footer,
body[data-theme="night"] .site-footer a {
    background: #10131a;
    color: #f4f6fb;
    border-color: #2c3344;
}

body[data-theme="night"] .tagline,
body[data-theme="night"] .now-card p,
body[data-theme="night"] .deck-status,
body[data-theme="night"] .site-footer,
body[data-theme="night"] .legal-date {
    color: #c5cad6;
}

body[data-theme="night"] .stack-form input,
body[data-theme="night"] .stack-form textarea,
body[data-theme="night"] .stack-form select {
    background: #07080c;
    color: #f4f6fb;
    border-color: #2c3344;
}

body[data-bandwidth="low"] {
    background: #16130f;
}

body[data-bandwidth="low"] .deck-glow,
body[data-bandwidth="low"] .eq,
body[data-bandwidth="low"] .vinyl.is-spinning,
body[data-bandwidth="low"] .deck-meter i,
body[data-bandwidth="low"] .prep-meter i {
    animation: none !important;
}

body[data-bandwidth="low"] .deck-glow,
body[data-bandwidth="low"] .eq {
    display: none;
}

body[data-bandwidth="low"] .hero-panel,
body[data-bandwidth="low"] .side-panel,
body[data-bandwidth="low"] .now-card,
body[data-bandwidth="low"] .site-footer,
body[data-bandwidth="low"] .site-topbar {
    box-shadow: none;
    backdrop-filter: none;
}

@media (max-width: 980px) {
    :root {
        --mobile-footer-h: 0px;
    }

    .history-button,
    .top-actions .history-button,
    .site-topbar .history-button {
        display: inline-flex;
    }

    .site-footer {
        margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 720px) {
    .top-actions .history-button span,
    .site-topbar .history-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .site-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    body:not(.admin-body) h1 {
        font-size: 28px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

.admin-sidebar a {
    display: flex;
    width: 100%;
}

.art-stage {
    display: contents;
}

.editorial-scrub,
.deck-volume,
.next-up-queue,
.art-note,
.bitrate {
    display: none;
}

.next-up-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.deck-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 980px) {
    body {
        background: #efe6d6;
        color: #1c1612;
    }

    .hero-panel,
    .side-panel {
        background: #f7f1e6;
        color: #1c1612;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .club-shell,
    .club-shell > .hero-panel,
    .club-shell > .side-panel {
        min-height: 0;
    }

    .hero-panel {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 10px 14px 16px;
    }

    .tagline,
    .eq,
    .deck-glow,
    .deck-meter {
        display: none;
    }

    .deck-status,
    .fallback {
        width: 100%;
        margin-top: 14px;
        color: #5e5348;
        text-align: center;
    }

    .deck-status strong,
    .fallback strong {
        display: block;
        color: #1c1612;
        font-size: 16px;
    }

    .fallback span {
        color: #5e5348;
    }

    .hero-topline {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 0 0 10px;
        padding: 10px;
        border: 1px solid #e4d3c0;
        border-radius: 16px;
        background: #fffaf3;
    }

    .live-topline {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .top-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
        margin-left: 0;
    }

    .top-actions .history-button {
        position: relative;
        width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 10px;
        border: 1px solid #cbbba6;
        background: #fffaf3;
        color: #1c1612;
        box-shadow: none;
    }

    .top-actions .history-button .bi {
        font-size: 16px;
        color: #1c1612;
        line-height: 1;
    }

    .top-actions .history-button.is-active {
        background: #e07a3d;
        border-color: #e07a3d;
        color: #1a120c;
    }

    .top-actions .history-button.is-active .bi {
        color: #1a120c;
    }

    .language-switcher select {
        min-height: 36px;
        max-width: 108px;
        border: 1px solid #cbbba6;
        border-radius: 10px;
        background: #fffaf3;
        color: #1c1612;
        font-size: 13px;
    }

    .live-pill,
    .listeners-pill {
        display: block;
        max-width: 100%;
        background: transparent;
        color: #3a3128;
        border: 0;
        box-shadow: none;
        letter-spacing: 0.02em;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 0;
        min-height: 0;
        white-space: normal;
        overflow: visible;
    }

    .hero-panel h1 {
        margin: 0 0 10px;
        font-family: "Source Sans 3", "Segoe UI", sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: center;
        color: #1c1612;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stage,
    .player-frame,
    .radio-shell,
    .radio-deck {
        display: contents;
    }

    .art-stage {
        display: grid;
        place-items: center;
        order: 1;
        width: min(52vw, 196px);
        aspect-ratio: 1;
        margin: 0 auto 8px;
        border-radius: 22px;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        background:
            radial-gradient(circle at 72% 78%, rgba(42, 18, 12, 0.55) 0 18%, transparent 19%),
            radial-gradient(circle at 38% 32%, #ffc27a 0%, #e07a3d 36%, #9a3412 70%, #3a1810 100%);
        box-shadow: 0 12px 28px rgba(58, 24, 16, 0.28);
    }

    .art-stage::before,
    .art-stage::after {
        content: "";
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        border: 1.5px solid rgba(255, 255, 255, 0.55);
        pointer-events: none;
        box-sizing: border-box;
    }

    .art-stage::before {
        width: 78%;
        aspect-ratio: 1;
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.14);
        animation: art-spin 16s linear infinite;
    }

    .art-stage::after {
        width: 52%;
        aspect-ratio: 1;
        border-color: rgba(255, 255, 255, 0.35);
        animation: art-spin 10s linear infinite reverse;
    }

    .art-stage.has-cover {
        background-color: #3a1810;
        background-size: cover;
        background-position: center;
    }

    /* Păstrăm inelele animate și peste cover — altfel pe mobil dispare animația centrală. */
    .art-stage.has-cover::before,
    .art-stage.has-cover::after {
        display: block;
        border-color: rgba(255, 250, 243, 0.72);
        box-shadow: 0 0 0 10px rgba(255, 250, 243, 0.12);
    }

    .vinyl {
        width: auto;
        height: auto;
        aspect-ratio: auto;
        background: transparent;
        box-shadow: none;
        animation: none !important;
        border-radius: 0;
    }

    .vinyl.is-spinning,
    .vinyl.is-spinning .vinyl-label,
    .radio-deck.is-paused .vinyl.is-spinning,
    .radio-deck.is-paused .vinyl.is-spinning .vinyl-label {
        animation: none !important;
    }

    .vinyl-progress,
    .vinyl-time-elapsed,
    .vinyl-time-remain {
        display: none;
    }

    #playerFrame .art-stage .vinyl,
    #playerFrame .art-stage .vinyl-label {
        position: absolute;
        inset: 0;
        z-index: 3;
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border: 0;
        border-radius: 0;
    }

    #playerFrame .art-stage .vinyl-label {
        display: grid;
        place-items: center;
        inset: 0;
        pointer-events: none;
    }

    #playerFrame .art-stage .bitrate {
        display: flex !important;
        position: relative;
        z-index: 5;
        left: auto;
        top: auto;
        transform: none;
        align-items: flex-end;
        justify-content: center;
        gap: 4px;
        width: auto;
        height: 36px;
        margin: 0;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(28, 22, 18, 0.62);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
        pointer-events: none;
    }

    .bitrate i {
        display: block;
        width: 3px;
        height: 28%;
        border-radius: 2px;
        background: #fffaf3;
        animation: bitrate 0.85s ease-in-out infinite;
    }

    .bitrate i:nth-child(2) { animation-delay: 0.12s; }
    .bitrate i:nth-child(3) { animation-delay: 0.24s; }
    .bitrate i:nth-child(4) { animation-delay: 0.08s; }
    .bitrate i:nth-child(5) { animation-delay: 0.2s; }

    #playerFrame.is-paused .art-stage::before,
    #playerFrame.is-paused .art-stage::after {
        animation-play-state: paused;
    }

    #playerFrame.is-paused .bitrate i,
    body[data-bandwidth="low"] .bitrate i {
        animation: none;
        height: 35%;
    }

    .editorial-scrub {
        display: grid;
        order: 3;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
    }

    .editorial-time {
        font-variant-numeric: tabular-nums;
        font-size: 13px;
        font-weight: 600;
        color: #5e5348;
    }

    .editorial-rail {
        display: block;
        height: 6px;
        border-radius: 999px;
        background: #e4d3c0;
        overflow: hidden;
    }

    .editorial-fill {
        display: block;
        height: 100%;
        width: 0;
        border-radius: inherit;
        background: #e07a3d;
    }

    .now-card {
        order: 2;
        width: 100%;
        margin: 0 0 4px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        text-align: center;
    }

    .now-card .label {
        display: none;
    }

    #nowTitle {
        margin: 0;
        font-family: Fraunces, Georgia, serif;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -0.03em;
        color: #1c1612;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #nowMeta,
    #nowDebug {
        margin: 0;
        color: #6d5e51;
        font-size: 15px;
    }

    .deck-controls {
        position: static;
        transform: none;
        order: 4;
        width: 100%;
        margin-top: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .deck-status {
        order: 2;
    }

    .deck-btn {
        width: 52px;
        height: 52px;
        min-width: 52px;
        flex: 0 0 52px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #1c1612;
        color: #f7f1e6;
        box-shadow: 0 8px 18px rgba(28, 22, 18, 0.28);
    }

    .deck-btn .bi {
        font-size: 28px;
        line-height: 1;
    }

    .deck-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .deck-volume {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        width: min(100%, 210px);
        color: #5e5348;
    }

    .deck-volume input {
        width: 100%;
        accent-color: #e07a3d;
    }

    .next-up:not([hidden]) {
        display: block;
        width: 100%;
        margin: 12px 0 0;
        padding: 14px;
        border-radius: 16px;
        background: #fffaf3;
        color: #1c1612;
        border: 1px solid #e4d3c0;
        box-shadow: none;
    }

    .next-up-label,
    .next-up strong,
    .next-up-meta {
        color: #1c1612;
    }

    .next-up-label {
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-size: 12px;
        color: #5e5348;
    }

    .next-up strong {
        display: block;
        margin-top: 8px;
        color: #c2410c;
        font-size: 16px;
    }

    .next-up-meta {
        color: #5e5348;
    }

    .next-up-queue {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 0;
        background: transparent;
        color: #c2410c;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
    }

    .site-topbar,
    .site-footer,
    .legal-card,
    .history-list,
    .chat-item,
    .queue-item,
    .history-item {
        background: #fffaf3;
        color: #1c1612;
        border-color: #e4d3c0;
    }

    body:not(.admin-body) h1,
    body:not(.admin-body) h2,
    body:not(.admin-body) h3,
    .legal-date,
    .legal-intro,
    .legal-section h2,
    .legal-section p,
    .legal-section li,
    .side-panel li {
        color: #1c1612;
    }

    .site-footer {
        width: auto;
        margin: 8px 12px 88px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .site-footer nav {
        justify-content: center;
        gap: 6px;
    }

    .site-footer nav a span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .site-footer p {
        font-size: 11px;
        line-height: 1.3;
        text-align: center;
        color: #5e5348;
    }

    .site-brand,
    .site-footer,
    .site-footer a,
    .site-footer p,
    .chat-item strong,
    .chat-item p,
    .queue-item strong,
    .queue-item span,
    .history-item h2,
    .history-item p,
    .empty,
    .panel-head h2,
    .request-type-tabs button {
        color: #1c1612;
    }

    .site-footer nav a {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        min-height: 36px;
        padding: 0;
        background: #fffaf3;
        border: 1px solid #e4d3c0;
        color: #1c1612;
    }

    .site-footer p a {
        background: transparent;
        border: 0;
        color: #c2410c;
        padding: 0;
    }

    .chat-item,
    .queue-item,
    .history-item {
        border-radius: 14px;
        border: 1px solid #e4d3c0;
    }

    .queue-item.is-playing {
        box-shadow: inset 4px 0 0 #e07a3d;
    }

    .history-hero h1,
    .history-hero .tagline,
    .history-list .history-item,
    .history-list .history-item h2,
    .history-list .history-item p,
    .history-list .history-item .history-dedication,
    .history-list .history-requester,
    .history-limit-hint {
        color: #1c1612;
    }

    .history-list .history-item {
        background: #fffaf3;
        border: 1px solid #e4d3c0;
    }

    .history-pagination {
        background: #fffaf3;
        color: #1c1612;
        border: 1px solid #e4d3c0;
    }

    .history-pagination a {
        background: #fffaf3;
        color: #1c1612;
        border-color: #cbbba6;
    }

    .history-pagination a.is-active {
        background: #e07a3d;
        color: #1a120c;
        border-color: #e07a3d;
    }

    .history-requester,
    .history-played-at,
    .panel-head span,
    .history-list .history-requester {
        color: #5e5348;
    }

    .now-card p,
    .now-card .form-message,
    .input-help,
    .history-link,
    .back-link,
    .ghost-button,
    #voteSkipButton,
    #voteSkipStatus {
        color: #1c1612;
    }

    .ghost-button,
    #voteSkipButton {
        background: #fffaf3;
        border: 1px solid #c2410c;
    }

    .history-list .history-item,
    .history-panel .history-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
        align-items: center;
    }

    .history-list .history-thumb,
    .history-panel .history-thumb {
        width: 64px;
        aspect-ratio: 1;
        border-radius: 8px;
    }

    .history-list .history-item h2,
    .history-panel .history-item h2 {
        margin: 0;
        font-size: 15px;
        line-height: 1.2;
    }

    .history-list .history-item p,
    .history-panel .history-item p,
    .history-limit-hint {
        margin: 2px 0 0;
        font-size: 12px;
        line-height: 1.3;
    }

    .history-actions {
        margin-top: 6px;
        gap: 6px;
    }

    .history-link,
    .history-requeue {
        min-height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .request-type-tabs button.is-active {
        background: #e07a3d;
        color: #1a120c;
        border-color: #e07a3d;
    }

    .mobile-dock,
    .mobile-tabs {
        background: #fffaf3;
        border-color: #e4d3c0;
        box-shadow: 0 -6px 18px rgba(28, 22, 18, 0.08);
    }

    .mobile-tabs button,
    .mobile-tabs button .bi {
        color: #1c1612;
        background: transparent;
        box-shadow: none;
    }

    .mobile-tabs button.is-active,
    body[data-mobile-tab="hero"] .mobile-tabs button[data-target="hero"],
    body[data-mobile-tab="request"] .mobile-tabs button[data-target="request"],
    body[data-mobile-tab="chat"] .mobile-tabs button[data-target="chat"],
    body[data-mobile-tab="queue"] .mobile-tabs button[data-target="queue"],
    body[data-mobile-tab="history"] .mobile-tabs button[data-target="history"] {
        background: transparent;
        color: #c2410c;
        box-shadow: inset 0 -2px 0 #e07a3d;
    }

    .panel-head h2,
    .panel-head span,
    .chat-list,
    .queue-list,
    .history-list,
    .side-panel p,
    .form-message {
        color: #1c1612;
    }

    .stack-form input,
    .stack-form textarea {
        background: #fffaf3;
        color: #1c1612;
        border-color: #e4d3c0;
    }

    .stack-form button {
        background: #e07a3d;
        color: #1a120c;
        border: 0;
    }

    .stack-form .request-type-tabs button {
        background: #fffaf3;
        color: #1c1612;
        border: 1px solid #e4d3c0;
    }

    .stack-form .request-type-tabs button.is-active {
        background: #e07a3d;
        color: #1a120c;
        border-color: #e07a3d;
    }

    body[data-bandwidth="low"] .art-stage::before,
    body[data-bandwidth="low"] .art-stage::after,
    body[data-bandwidth="low"] .bitrate i {
        animation: none;
    }

    body[data-theme="night"],
    body[data-bandwidth="low"][data-theme="night"] {
        background: #12110f;
        color: #f6f1e8;
    }

    body[data-bandwidth="low"] {
        background: #efe6d6;
    }

    body[data-theme="night"] .hero-panel,
    body[data-theme="night"] .side-panel,
    body[data-theme="night"] .hero-topline {
        background: #1a1814;
        color: #f6f1e8;
        border-color: #3a3128;
    }

    body[data-theme="night"] .live-pill,
    body[data-theme="night"] .listeners-pill,
    body[data-theme="night"] .editorial-time,
    body[data-theme="night"] #nowMeta {
        color: #cbbba6;
    }

    body[data-theme="night"] h1,
    body[data-theme="night"] h2,
    body[data-theme="night"] h3,
    body[data-theme="night"] .hero-panel h1,
    body[data-theme="night"] #nowTitle,
    body[data-theme="night"] .deck-status,
    body[data-theme="night"] .deck-status strong,
    body[data-theme="night"] .fallback,
    body[data-theme="night"] .fallback strong,
    body[data-theme="night"] .fallback span,
    body[data-theme="night"] .legal-date,
    body[data-theme="night"] .legal-intro,
    body[data-theme="night"] .legal-section h2,
    body[data-theme="night"] .legal-section p,
    body[data-theme="night"] .legal-section li {
        color: #f6f1e8;
    }

    body[data-theme="night"] .editorial-rail {
        background: #3a3128;
    }

    body[data-theme="night"] .deck-btn {
        background: #f6f1e8;
        color: #1c1612;
    }

    body[data-theme="night"] .top-actions .history-button,
    body[data-theme="night"] .language-switcher select {
        background: #2a241c;
        color: #f6f1e8;
        border-color: #5e5348;
    }

    body[data-theme="night"] .top-actions .history-button .bi {
        color: #f6f1e8;
    }

    body[data-theme="night"] .site-topbar,
    body[data-theme="night"] .site-footer,
    body[data-theme="night"] .legal-card,
    body[data-theme="night"] .history-list,
    body[data-theme="night"] .history-pagination,
    body[data-theme="night"] .chat-item,
    body[data-theme="night"] .queue-item,
    body[data-theme="night"] .history-item,
    body[data-theme="night"] .next-up:not([hidden]) {
        background: #1a1814;
        color: #f6f1e8;
        border-color: #3a3128;
    }

    body[data-theme="night"] .site-brand,
    body[data-theme="night"] .site-footer,
    body[data-theme="night"] .site-footer a,
    body[data-theme="night"] .site-footer p,
    body[data-theme="night"] .chat-item strong,
    body[data-theme="night"] .chat-item p,
    body[data-theme="night"] .queue-item strong,
    body[data-theme="night"] .queue-item span,
    body[data-theme="night"] .ghost-button,
    body[data-theme="night"] #voteSkipButton,
    body[data-theme="night"] .now-card p,
    body[data-theme="night"] #voteSkipStatus {
        color: #f6f1e8;
    }

    body[data-theme="night"] .ghost-button,
    body[data-theme="night"] #voteSkipButton {
        background: #2a241c;
        border-color: #ffb067;
    }

    body[data-theme="night"] .history-pagination a {
        background: #2a241c;
        color: #f6f1e8;
        border-color: #3a3128;
    }

    body[data-theme="night"] .history-pagination a.is-active {
        background: #e07a3d;
        color: #1a120c;
        border-color: #e07a3d;
    }

    body[data-theme="night"] .history-item h2,
    body[data-theme="night"] .history-item p,
    body[data-theme="night"] .history-pagination,
    body[data-theme="night"] .history-pagination a,
    body[data-theme="night"] .next-up strong,
    body[data-theme="night"] .next-up-label,
    body[data-theme="night"] .next-up-meta,
    body[data-theme="night"] .empty {
        color: #f6f1e8;
    }

    body[data-theme="night"] .site-footer a {
        background: #2a241c;
    }

    body[data-theme="night"] .site-footer p a,
    body[data-theme="night"] .next-up strong,
    body[data-theme="night"] .next-up-queue {
        background: transparent;
        color: #ffb067;
    }

    body[data-theme="night"] .mobile-dock,
    body[data-theme="night"] .mobile-tabs {
        background: #1a1814;
        border-color: #3a3128;
    }

    body[data-theme="night"] .mobile-tabs button,
    body[data-theme="night"] .mobile-tabs button .bi {
        color: #f6f1e8;
        background: transparent;
    }

    body[data-theme="night"] .mobile-tabs button.is-active,
    body[data-theme="night"][data-mobile-tab="hero"] .mobile-tabs button[data-target="hero"],
    body[data-theme="night"][data-mobile-tab="request"] .mobile-tabs button[data-target="request"],
    body[data-theme="night"][data-mobile-tab="chat"] .mobile-tabs button[data-target="chat"],
    body[data-theme="night"][data-mobile-tab="queue"] .mobile-tabs button[data-target="queue"],
    body[data-theme="night"][data-mobile-tab="history"] .mobile-tabs button[data-target="history"] {
        background: transparent;
        color: #ffb067;
        box-shadow: inset 0 -2px 0 #e07a3d;
    }

    body[data-theme="night"] .panel-head h2,
    body[data-theme="night"] .panel-head span,
    body[data-theme="night"] .chat-list,
    body[data-theme="night"] .queue-list,
    body[data-theme="night"] .history-list,
    body[data-theme="night"] .side-panel p,
    body[data-theme="night"] .form-message {
        color: #f6f1e8;
    }

    body[data-theme="night"] .stack-form input,
    body[data-theme="night"] .stack-form textarea {
        background: #12110f;
        color: #f6f1e8;
        border-color: #3a3128;
    }

    body[data-theme="night"] .stack-form .request-type-tabs button {
        background: #2a241c;
        color: #f6f1e8;
        border-color: #3a3128;
    }

    body[data-theme="night"] .stack-form .request-type-tabs button.is-active {
        background: #e07a3d;
        color: #1a120c;
        border-color: #e07a3d;
    }
}

@keyframes art-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes bitrate {
    0%,
    100% {
        height: 28%;
    }

    50% {
        height: 100%;
    }
}

@keyframes art-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.14);
    }
}

body.admin-body {
    background: #f4efe6;
    color: #1c1612;
}

body.admin-body h1,
body.admin-body h2,
body.admin-body h3,
body.admin-body p,
body.admin-body li,
body.admin-body label,
body.admin-body small,
body.admin-body strong,
body.admin-body td,
body.admin-body th,
body.admin-body .empty,
body.admin-body .hint,
body.admin-body .tagline,
body.admin-body .form-message,
body.admin-body .now-card,
body.admin-body .now-card h2,
body.admin-body .now-card p,
body.admin-body .panel-head h2,
body.admin-body .side-panel,
body.admin-body .chat-item,
body.admin-body .chat-item strong,
body.admin-body .chat-item p,
body.admin-body .queue-item,
body.admin-body .queue-item strong,
body.admin-body .queue-item span,
body.admin-body .admin-table,
body.admin-body .admin-note,
body.admin-body code {
    color: #1c1612;
}

body.admin-body .label,
body.admin-body .panel-head span,
body.admin-body .admin-table th,
body.admin-body .form-message,
body.admin-body .hint,
body.admin-body .admin-note {
    color: #3f342c;
}

body.admin-body .side-panel,
body.admin-body .now-card,
body.admin-body .login-card,
body.admin-body .chat-item,
body.admin-body .queue-item {
    background: #fffaf3;
    border-color: #d9cbb8;
}

body.admin-body .login-card h1 {
    margin-bottom: 12px;
    color: #1c1612;
    font-size: 32px;
}

body.admin-body .stack-form input,
body.admin-body .stack-form textarea,
body.admin-body .stack-form select,
body.admin-body .cron-editor,
body.admin-body .skip-controls input {
    background: #fff;
    color: #1c1612;
    border: 1px solid #8d7b68;
}

body.admin-body .stack-form input::placeholder,
body.admin-body .stack-form textarea::placeholder {
    color: #6d5e51;
}

body.admin-body a {
    color: #9a3412;
}

body.admin-body .form-message.is-ok,
body.admin-body .admin-vip {
    color: #9a3412;
    font-weight: 700;
}

body.admin-body .form-message.is-error,
body.admin-body .admin-note-danger {
    color: #7f1d1d;
}

body.admin-body .admin-note-danger {
    background: #fdecef;
}

body.admin-body .ghost-button {
    background: #fff;
    color: #1c1612;
    border: 1px solid #9a3412;
}

body.admin-body .stack-form button,
body.admin-body .admin-actions button,
body.admin-body .admin-actions a,
body.admin-body .skip-controls button {
    background: #e07a3d;
    color: #1a120c;
    border: 0;
}

body.admin-body .danger,
body.admin-body button.danger {
    background: #9f1239;
    color: #fffaf3;
}

body.admin-body .admin-sidebar,
body.admin-body .admin-sidebar p,
body.admin-body .admin-sidebar a,
body.admin-body .admin-brand {
    background: #241c16;
    color: #f6f1e8;
}

body.admin-body .admin-sidebar a {
    background: transparent;
}

body.admin-body .admin-sidebar a.is-active {
    background: #e07a3d;
    color: #1a120c;
}

body.admin-body .admin-menu-button {
    background: #241c16;
    color: #f6f1e8;
}

html:has(body.radio-embed),
body.radio-embed {
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: #100e0c;
    color: #f6f1e8;
}

body.radio-embed .embed-app {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(224, 122, 61, 0.18), transparent 42%),
        #100e0c;
}

body.radio-embed .embed-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: min(100%, 420px);
}

body.radio-embed .embed-live {
    color: #e07a3d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.radio-embed .embed-station,
body.radio-embed .embed-listeners {
    min-width: 0;
    overflow: hidden;
    color: #cbbba6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.radio-embed .embed-station {
    color: #f6f1e8;
}

body.radio-embed .embed-refresh {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e07a3d;
    opacity: 0.28;
}

body.radio-embed .embed-refresh.is-on {
    animation: embed-dot 0.9s ease;
}

body.radio-embed .embed-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.radio-embed .player-frame,
body.radio-embed .radio-shell,
body.radio-embed .radio-deck {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 70vw);
    height: auto;
    max-height: 100%;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.radio-embed .vinyl {
    width: 100%;
    max-width: none;
}

body.radio-embed .deck-controls,
body.radio-embed .deck-status,
body.radio-embed .deck-glow {
    display: none;
}

body.radio-embed .embed-copy {
    width: min(100%, 420px);
    min-height: 0;
    overflow: hidden;
    text-align: center;
}

body.radio-embed .embed-kicker {
    margin: 0 0 4px;
    color: #cbbba6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.radio-embed #nowTitle {
    margin: 0;
    color: #f6f1e8;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(22px, 4vh, 34px);
    font-weight: 560;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.radio-embed #nowTitle.is-title-refresh {
    animation: embed-title 0.55s ease;
}

body.radio-embed #nowMeta,
body.radio-embed .next-up,
body.radio-embed .next-up-meta {
    margin: 6px 0 0;
    color: #cbbba6;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.radio-embed .next-up {
    display: block;
}

body.radio-embed .next-up[hidden] {
    display: none;
}

body.radio-embed .next-up-label {
    display: block;
    margin-bottom: 2px;
    color: #8d7b68;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.radio-embed #nextUpTitle {
    display: block;
    color: #f6f1e8;
    font-weight: 700;
}

body.radio-embed .embed-transport {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 168px;
    height: 64px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #e07a3d;
    color: #1a120c;
    box-shadow: 0 12px 28px rgba(224, 122, 61, 0.28);
    font: 800 16px/1 "Source Sans 3", sans-serif;
    cursor: pointer;
}

body.radio-embed .embed-transport .bi {
    font-size: 26px;
    line-height: 1;
}

audio[data-overlay] {
    position: fixed;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

body.radio-embed .embed-transport .deck-btn-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
}

@keyframes embed-title {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

@keyframes embed-dot {
    0% { opacity: 0.28; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.6); }
    100% { opacity: 0.28; transform: scale(1); }
}
