* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 245, 200, 0.14), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(255, 44, 128, 0.12), transparent 26%),
        radial-gradient(circle at 50% 120%, rgba(255, 170, 0, 0.08), transparent 35%),
        linear-gradient(135deg, #07080c, #12131c 42%, #090b10);
    color: #f6f7fb;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

.club-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
    grid-template-areas:
        "hero chat"
        "request queue";
    gap: 18px;
    width: min(1420px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.hero-panel,
.side-panel {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(13, 16, 25, 0.86);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.hero-panel {
    grid-area: hero;
    min-height: 620px;
    padding: 30px;
    min-width: 0;
}

.chat-panel {
    grid-area: chat;
}

.request-panel {
    grid-area: request;
}

.queue-panel {
    grid-area: queue;
}

.history-panel {
    display: none;
    grid-area: history;
}

.live-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.listeners-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #e8ebf3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.listeners-pill.is-live {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent), transparent 55%);
}

.hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

h1 {
    max-width: 900px;
    margin: 0 0 10px;
    font-size: clamp(42px, 8vw, 112px);
    line-height: 0.96;
}

.tagline {
    margin: 0 0 28px;
    color: #b8bdca;
    font-size: 18px;
}

.stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: stretch;
    min-width: 0;
}

.hero-panel h1 {
    letter-spacing: -0.03em;
}

.player-frame,
.radio-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, #0b0d14 0%, #050608 100%);
    overflow: hidden;
}

.radio-shell {
    aspect-ratio: 1 / 1;
    max-height: 420px;
}

.radio-deck {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 320px;
    padding: 28px;
    isolation: isolate;
}

.deck-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 55%), transparent 70%);
    filter: blur(18px);
    opacity: 0.85;
    z-index: 0;
}

.vinyl {
    position: relative;
    width: min(72%, 280px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #111 0 18%, transparent 19%),
        repeating-radial-gradient(circle at center, #111 0 2px, #1d1f28 2px 4px);
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.vinyl.is-spinning {
    animation: spin 4.8s linear infinite;
}

.radio-deck.is-paused .vinyl.is-spinning {
    animation-play-state: paused;
}

.vinyl-progress {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.vinyl-progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

.vinyl-progress-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.35s linear;
}

.vinyl-label {
    position: absolute;
    inset: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 50%;
    background:
        radial-gradient(circle, color-mix(in srgb, var(--accent), #111 35%), #090b10 72%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    font-variant-numeric: tabular-nums;
    text-align: center;
    z-index: 2;
}

.vinyl.is-spinning .vinyl-label {
    animation: spin-label 4.8s linear infinite;
}

.radio-deck.is-paused .vinyl.is-spinning .vinyl-label {
    animation-play-state: paused;
}

.vinyl-time-elapsed {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.vinyl-time-remain {
    font-size: 0.72rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--accent), #fff 35%);
    letter-spacing: 0.03em;
}

.deck-controls {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 4;
}

.deck-btn {
    min-width: 54px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.deck-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.deck-meter,
.prep-meter {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 34px;
}

.deck-meter i,
.prep-meter i {
    width: 5px;
    min-height: 8px;
    background: var(--accent);
    border-radius: 999px;
    animation: bounce 1s infinite ease-in-out;
}

.deck-status {
    position: relative;
    z-index: 3;
    max-width: 80%;
    text-align: center;
    color: #c8ccd7;
}

.deck-status strong {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 18px;
}

.radio-deck.is-loading .vinyl {
    animation: spin 2.2s linear infinite;
    opacity: 0.72;
}

.radio-deck.is-loading .vinyl-label {
    animation: spin-label 2.2s linear infinite;
}

.radio-deck.is-spot {
    background: linear-gradient(180deg, #1a1424 0%, #090b10 100%);
}

.radio-deck.is-spot .spot-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 4px 12px;
    border: 1px solid color-mix(in srgb, var(--accent), #fff 20%);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.radio-deck.is-spot .spot-status {
    bottom: 12px;
}

#radioAudio {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-label {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.dedication-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    transform: translateY(18px);
    opacity: 0;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.78);
    border-left: 4px solid var(--accent);
    color: #fff;
    font-weight: 800;
    line-height: 1.35;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.mobile-dock {
    display: contents;
}

.mobile-tabs {
    display: none;
}


.fallback {
    display: grid;
    place-content: center;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: #b8bdca;
}

.fallback strong {
    display: block;
    color: #fff;
    margin-bottom: 8px;
}

.now-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 0;
    padding: 22px;
    background: linear-gradient(180deg, rgba(0, 245, 200, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.label,
.panel-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.now-card h2 {
    margin: 14px 0 8px;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.12;
}

.now-card p {
    color: #c8ccd7;
    overflow-wrap: anywhere;
}

.next-up {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.next-up-label {
    display: block;
    margin-bottom: 4px;
    color: color-mix(in srgb, var(--accent), #fff 20%);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.next-up strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.next-up-meta,
.next-up span:not(.next-up-label) {
    display: block;
    margin-top: 3px;
    color: #aeb6c6;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eq {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 80px;
}

.eq i {
    width: 100%;
    min-width: 10px;
    background: var(--accent);
    animation: bounce 1.1s infinite ease-in-out;
}

.eq i:nth-child(2) { animation-delay: 0.1s; }
.eq i:nth-child(3) { animation-delay: 0.2s; }
.eq i:nth-child(4) { animation-delay: 0.3s; }
.eq i:nth-child(5) { animation-delay: 0.4s; }
.eq i:nth-child(6) { animation-delay: 0.5s; }
.eq i:nth-child(7) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { height: 18%; }
    50% { height: 95%; }
}

.side-panel {
    padding: 18px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin: 0;
    font-size: 22px;
}

.chat-list,
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.chat-item,
.queue-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-item strong,
.queue-item strong {
    display: block;
    color: #fff;
    margin-bottom: 5px;
}

.chat-item p,
.queue-item span,
.empty {
    margin: 0;
    color: #bdc3d0;
    font-size: 14px;
}

.queue-item.is-playing {
    border-color: color-mix(in srgb, var(--accent), white 8%);
    box-shadow: inset 4px 0 0 var(--accent);
}

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

.stack-form input,
.stack-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 11px 12px;
    outline: none;
}

.stack-form textarea {
    min-height: 86px;
    resize: vertical;
}

.stack-form input:focus,
.stack-form textarea:focus {
    border-color: var(--accent);
}

.stack-form button {
    min-height: 46px;
    border: 0;
    background: var(--accent);
    color: #06100f;
    font-weight: 800;
    cursor: pointer;
}

.ghost-button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.ghost-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.form-message {
    min-height: 20px;
    margin: 0;
    color: #c8ccd7;
    font-size: 13px;
}

.request-status {
    color: var(--accent);
    font-weight: 700;
}

.history-link,
.back-link,
.history-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.22);
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.history-button {
    min-height: 38px;
    margin-bottom: 0;
    padding: 0 16px;
    border: 0;
    background: var(--accent);
    color: #06100f;
    box-shadow: 0 14px 34px rgba(0, 245, 200, 0.18);
}

.top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: auto;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c8ccd7;
    font-size: 13px;
    font-weight: 700;
}

.language-switcher select {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    padding: 0 10px;
}

.history-button:hover,
.history-link:hover,
.back-link:hover {
    transform: translateY(-1px);
}

.history-button:hover {
    color: #06100f;
    filter: brightness(1.08);
}

.history-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
}

.history-hero {
    margin-bottom: 22px;
}

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

.history-list-embedded {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item--compact {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.history-item--compact .history-thumb {
    width: 72px;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}

.history-item--compact .history-item-body {
    min-width: 0;
}

.history-item--compact .history-item-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-item--compact .history-played-at {
    font-size: 9px;
    letter-spacing: 0.05em;
}

.history-item--compact h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.history-item--compact .history-requester,
.history-item--compact .history-dedication {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: #b8bfcd;
}

.history-item--compact .history-dedication {
    color: #e8ebf2;
    font-weight: 600;
}

.history-item--compact .history-actions {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    gap: 8px;
    touch-action: manipulation;
}

.history-item--compact .history-link,
.history-item--compact .history-requeue {
    position: relative;
    z-index: 3;
    min-height: 44px;
    min-width: 44px;
    padding: 0 12px;
    font-size: 11px;
    border-radius: 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 245, 200, 0.25);
    cursor: pointer;
}

.history-panel .history-limit-hint {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.4;
    flex-shrink: 0;
}

.history-panel .panel-head {
    flex-shrink: 0;
}

.history-link-desktop {
    font-size: 11px;
    white-space: nowrap;
}

.history-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(13, 16, 25, 0.86);
}

.history-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020304;
}

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

.history-item h2 {
    margin: 8px 0;
    overflow-wrap: anywhere;
    font-size: 24px;
    line-height: 1.12;
}

.history-item p {
    margin: 0 0 8px;
    color: #c8ccd7;
}

.history-limit-hint {
    margin: 0 0 18px;
    color: #9ea5b4;
    font-size: 14px;
}

.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.history-requeue {
    min-height: 38px;
    padding: 0 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 245, 200, 0.25);
    cursor: pointer;
}

.history-requeue:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.history-requeue-msg {
    margin-top: 8px;
    min-height: 18px;
}

.history-dedication {
    color: #fff;
    font-weight: 700;
}

.site-footer {
    width: min(1420px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 30px;
    color: #9ea5b4;
    font-size: 14px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.site-footer a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.site-footer p {
    margin: 0;
}

.legal-shell {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
}

.legal-shell h1 {
    margin-bottom: 8px;
}

.legal-date {
    color: #b8bdca;
}

.legal-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(13, 16, 25, 0.86);
    color: #e6e8ee;
    line-height: 1.7;
}

.legal-intro {
    margin-top: 0;
    color: #f6f7fb;
    font-weight: 700;
}

.legal-section {
    margin-top: 24px;
}

.legal-section h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.legal-section p {
    margin: 0;
}

.legal-section ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.legal-section li + li {
    margin-top: 6px;
}

@media (max-width: 980px) {
    :root {
        --mobile-tabs-h: 48px;
        --mobile-footer-h: 54px;
        --mobile-dock-h: calc(var(--mobile-tabs-h) + var(--mobile-footer-h) + env(safe-area-inset-bottom, 0px));
    }

    body {
        display: block;
    }

    .mobile-dock {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: flex;
        flex-direction: column;
        width: 100%;
        border-top: 2px solid #000;
        background: linear-gradient(180deg, #2a2d35 0%, #101218 100%);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
    }

    .mobile-dock .site-footer {
        display: block;
        width: 100%;
        margin: 0;
        padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0));
        font-size: 10px;
        line-height: 1.35;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: linear-gradient(180deg, #14161c 0%, #0a0b0f 100%);
    }

    .mobile-dock .site-footer nav {
        gap: 6px 10px;
        margin-bottom: 4px;
    }

    .mobile-dock .site-footer a {
        font-size: 10px;
    }

    .mobile-dock .site-footer p {
        font-size: 9px;
        color: #8b93a3;
    }

    .mobile-tabs {
        display: grid;
        position: static;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.55);
        background: linear-gradient(180deg, #353840 0%, #1a1c22 55%, #101218 100%);
        box-shadow: none;
    }

    .mobile-tabs button {
        min-height: var(--mobile-tabs-h);
        padding: 0 4px;
        border: none;
        border-radius: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.45);
        background: transparent;
        color: #c5cad6;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        box-shadow: none;
    }

    .mobile-tabs button:last-child {
        border-right: none;
    }

    .mobile-tabs button.is-active {
        background: linear-gradient(180deg, color-mix(in srgb, var(--accent), #1a1a1a 40%) 0%, #14161c 100%);
        color: #fff;
        box-shadow: inset 0 2px 0 var(--accent);
    }

    .history-button {
        display: none;
    }

    .club-shell {
        display: block;
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        gap: 0;
        padding: 0 0 var(--mobile-dock-h);
        min-height: calc(100dvh - var(--mobile-dock-h));
    }

    .club-shell > .hero-panel,
    .club-shell > .side-panel,
    .club-shell > .history-panel {
        display: none;
        width: 100%;
        min-height: calc(100dvh - var(--mobile-dock-h));
    }

    body:not([data-mobile-tab]) .club-shell > .hero-panel,
    body[data-mobile-tab="hero"] .club-shell > .hero-panel,
    body[data-mobile-tab="request"] .club-shell > .request-panel,
    body[data-mobile-tab="chat"] .club-shell > .chat-panel,
    body[data-mobile-tab="queue"] .club-shell > .queue-panel,
    body[data-mobile-tab="history"] .club-shell > .history-panel {
        display: block;
    }

    .history-panel .history-list-embedded {
        max-height: calc(100dvh - var(--mobile-dock-h) - 140px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .history-requeue-form {
        display: inline-block;
        margin: 0;
    }

    .history-requeue-flash {
        color: var(--accent);
        margin: 0 0 10px;
    }

    .hero-panel,
    .side-panel {
        border-radius: 4px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 4px 16px rgba(0, 0, 0, 0.35);
    }

    .stage {
        grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
        gap: 10px;
        align-items: stretch;
    }

    .player-frame,
    .radio-shell {
        min-height: 0;
        max-height: none;
        aspect-ratio: 1;
    }

    .radio-deck {
        min-height: 0;
        padding: 12px;
    }

    .vinyl {
        width: min(88%, 120px);
    }

    .deck-controls {
        bottom: 8px;
        gap: 8px;
    }

    .deck-btn {
        min-width: 44px;
        height: 34px;
        padding: 0 10px;
        font-size: 11px;
        border-radius: 3px;
    }

    .deck-meter,
    .prep-meter {
        height: 26px;
        gap: 3px;
    }

    .hero-panel {
        min-height: auto;
        padding: 12px;
    }

    h1 {
        font-size: 1.15rem;
        line-height: 1.15;
        margin: 0 0 4px;
        letter-spacing: 0;
    }

    .tagline {
        display: none;
    }

    .hero-topline {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }

    .top-actions {
        width: auto;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .history-button {
        width: auto;
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    .language-switcher {
        width: auto;
    }

    .language-switcher label {
        display: none;
    }

    .now-card {
        min-height: 0;
        padding: 10px 12px;
    }

    .now-card h2 {
        margin: 6px 0 4px;
        font-size: 15px;
        -webkit-line-clamp: 3;
    }

    .now-card p {
        font-size: 12px;
        line-height: 1.35;
    }

    .eq {
        height: 40px;
        gap: 4px;
        margin-top: 6px;
    }

    .side-panel {
        padding: 12px;
    }

    .panel-head {
        margin-bottom: 8px;
    }

    .panel-head h2 {
        font-size: 16px;
    }

    .chat-list,
    .queue-list {
        max-height: min(42vh, 320px);
    }

}

@media (max-width: 560px) {
    body {
        background:
            radial-gradient(circle at 50% 0%, rgba(0, 245, 200, 0.08), transparent 40%),
            linear-gradient(180deg, #12141a 0%, #07080c 100%);
    }

    .hero-panel,
    .side-panel {
        border-left: none;
        border-right: none;
        border-radius: 0;
        border-top: none;
        box-shadow: none;
        background: linear-gradient(180deg, #22252d 0%, #14161c 100%);
    }

    .hero-panel {
        padding: 10px 12px 12px;
        border-bottom: 1px solid #000;
    }

    .side-panel {
        padding: 10px 12px 14px;
        min-height: calc(100dvh - var(--mobile-dock-h));
    }

    .hero-topline {
        margin-bottom: 6px;
    }

    .live-topline {
        gap: 6px;
    }

    .live-pill,
    .listeners-pill {
        min-height: 24px;
        padding: 0 8px;
        font-size: 9px;
    }

    h1 {
        font-size: 14px;
        margin: 0 0 8px;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stage {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 8px;
    }

    .player-frame,
    .radio-shell {
        aspect-ratio: 1;
        max-height: 118px;
        border: 2px solid #000;
        border-radius: 3px;
        background: linear-gradient(145deg, #0a0c10 0%, #151820 100%);
        box-shadow:
            inset 1px 1px 0 rgba(255, 255, 255, 0.08),
            inset -1px -1px 0 rgba(0, 0, 0, 0.65);
    }

    .radio-deck {
        padding: 8px;
        min-height: 0;
    }

    .vinyl {
        width: min(92%, 96px);
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.03),
            0 8px 24px rgba(0, 0, 0, 0.5),
            inset 0 0 16px rgba(0, 0, 0, 0.55);
    }

    .vinyl-time-elapsed {
        font-size: 0.78rem;
    }

    .vinyl-time-remain {
        font-size: 0.62rem;
    }

    .deck-controls {
        bottom: 4px;
        gap: 4px;
        flex-direction: column;
    }

    .deck-btn {
        min-width: 40px;
        height: 28px;
        padding: 0 8px;
        font-size: 10px;
        border-radius: 2px;
        border-color: #000;
        background: linear-gradient(180deg, #4a4e58 0%, #2a2d35 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .deck-meter {
        display: none;
    }

    .now-card {
        min-height: 0;
        padding: 8px 10px;
        border: 2px solid #000;
        border-radius: 3px;
        background: linear-gradient(180deg, color-mix(in srgb, var(--accent), #1a1c22 18%) 0%, #12141a 100%);
        box-shadow:
            inset 1px 1px 0 rgba(255, 255, 255, 0.06),
            inset -1px -1px 0 rgba(0, 0, 0, 0.5);
    }

    .now-card .label {
        font-size: 9px;
    }

    .now-card h2 {
        margin: 4px 0 2px;
        font-size: 13px;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .now-card p {
        font-size: 11px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .next-up:not([hidden]) {
        display: block;
        margin-top: 6px;
        padding-top: 6px;
    }

    .next-up-label {
        font-size: 8px;
        margin-bottom: 2px;
    }

    .next-up strong {
        font-size: 12px;
    }

    .next-up span:not(.next-up-label) {
        font-size: 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .eq {
        height: 28px;
        gap: 3px;
        margin-top: 4px;
    }

    .eq i {
        min-width: 4px;
    }

    .dedication-overlay {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .panel-head h2 {
        font-size: 14px;
    }

    .panel-head span {
        font-size: 10px;
    }

    .panel-head {
        margin-bottom: 6px;
    }

    .stack-form {
        gap: 8px;
    }

    .stack-form input,
    .stack-form textarea,
    .stack-form button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 3px;
    }

    .stack-form button {
        min-height: 40px;
        font-weight: 800;
        border: 1px solid #000;
        background: linear-gradient(180deg, color-mix(in srgb, var(--accent), #2a2d35 35%) 0%, #252830 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .chat-list,
    .queue-list {
        max-height: calc(100dvh - 200px - env(safe-area-inset-bottom, 0));
        gap: 6px;
    }

    .chat-item,
    .queue-item {
        padding: 8px 10px;
        border-radius: 3px;
    }

    .chat-item strong,
    .queue-item strong {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .chat-item p,
    .queue-item span {
        font-size: 12px;
    }

    .form-message {
        font-size: 12px;
        margin: 4px 0 0;
    }

    body[data-mobile-tab="history"] .history-panel .panel-head h2 {
        font-size: 15px;
    }

    body[data-mobile-tab="history"] .history-list-embedded {
        padding-bottom: 6px;
    }
}
