:root {
    --bg-0: #030913;
    --bg-1: #071427;
    --bg-2: #102749;
    --bg-accent-a: 44, 111, 182;
    --bg-accent-b: 17, 43, 77;
    --surface: rgba(7, 15, 27, 0.78);
    --surface-2: rgba(12, 25, 42, 0.86);
    --line: rgba(143, 173, 220, 0.24);
    --line-soft: rgba(143, 173, 220, 0.14);
    --text: #eaf2ff;
    --muted: #9fb6d6;
    --accent: #2cc1ff;
    --ok: #6fd5a5;
    --warn: #f2c35b;
    --danger: #f08a8a;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-family: "Noto Sans", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(circle at 8% 6%, rgba(var(--bg-accent-a), 0.34), transparent 36%),
        radial-gradient(circle at 92% 8%, rgba(var(--bg-accent-b), 0.3), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(var(--bg-accent-a), 0.2), transparent 46%),
        linear-gradient(180deg, #040911 0%, #02060e 100%);
}

#dynamicBackground {
    display: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1680px, calc(100vw - 170px));
    height: calc(100vh - 34px);
    height: calc(100dvh - 34px);
    margin: 17px auto;
    padding: 10px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% -10%, rgba(var(--bg-accent-a), 0.18), transparent 42%),
        radial-gradient(circle at 82% 110%, rgba(var(--bg-accent-b), 0.2), transparent 44%),
        linear-gradient(180deg, rgba(4, 10, 18, 0.985), rgba(3, 8, 14, 0.995));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(5, 11, 21, 0.72);
}

.mobile-sidebar-close {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.brand {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.brand img {
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(36, 66, 102, 0.88), rgba(20, 39, 62, 0.95));
    object-fit: contain;
}

.brand small,
.brand strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand small {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8eb4e3;
}

.brand strong {
    margin-top: 2px;
    font-size: 1.02rem;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    appearance: none;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background: rgba(8, 17, 29, 0.86);
    color: var(--text);
    cursor: pointer;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    text-align: left;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-btn span {
    font-size: 1rem;
    font-weight: 600;
}

.nav-btn i {
    color: #bdd3ef;
}

.nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(41, 67, 102, 0.74);
    border-color: rgba(177, 202, 239, 0.44);
}

.nav-btn.is-active {
    background: linear-gradient(180deg, rgba(78, 112, 157, 0.9), rgba(55, 81, 119, 0.95));
    border-color: rgba(189, 212, 244, 0.45);
}

.quick {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-menu-btn {
    display: none;
}

.ghost-btn,
.primary-btn,
.icon-btn,
.link-btn,
.seg-btn {
    appearance: none;
    border: 1px solid var(--line-soft);
    background: rgba(10, 20, 33, 0.86);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ghost-btn {
    min-height: 40px;
    border-radius: 11px;
    padding: 0 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    min-height: 40px;
    border-radius: 11px;
    padding: 0 12px;
    font-weight: 700;
    border-color: rgba(146, 201, 255, 0.42);
    background: linear-gradient(180deg, rgba(52, 94, 138, 0.95), rgba(38, 73, 109, 0.98));
}

.ghost-btn:hover,
.primary-btn:hover,
.icon-btn:hover,
.link-btn:hover,
.seg-btn:hover {
    transform: translateY(-1px);
    background: rgba(43, 68, 101, 0.8);
    border-color: rgba(177, 202, 239, 0.44);
}

.ghost-btn:disabled,
.primary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.64;
    transform: none;
    border-color: rgba(127, 155, 193, 0.28);
    background: rgba(16, 28, 44, 0.78);
}

.ghost-btn:disabled:hover,
.primary-btn:disabled:hover {
    transform: none;
    border-color: rgba(127, 155, 193, 0.28);
    background: rgba(16, 28, 44, 0.78);
}

.ghost-btn.is-active {
    border-color: rgba(173, 198, 236, 0.46);
    background: linear-gradient(180deg, rgba(80, 113, 157, 0.9), rgba(56, 82, 119, 0.96));
}

.main-shell {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden;
}

.topbar {
    min-height: 56px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(6, 12, 22, 0.62);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
}

.topbar-left {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.topbar-pill {
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    padding: 0 10px;
    background: rgba(8, 16, 28, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.84rem;
}

.topbar-pill i {
    font-size: 0.96rem;
    color: #9ecbff;
    filter: drop-shadow(0 0 6px rgba(98, 176, 255, 0.28));
}

.top-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.datetime-card {
    min-width: 210px;
    padding: 7px 9px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 16, 27, 0.95), rgba(6, 12, 21, 0.97));
}

.datetime-card .dt-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.datetime-card .dt-copy {
    text-align: right;
}

.datetime-card .date-line {
    display: block;
    font-size: 0.61rem;
    color: #bad0ee;
}

.datetime-card .time-line {
    display: block;
    margin-top: 1px;
    font-size: 1.08rem;
    line-height: 1;
}

.datetime-card .tz {
    display: inline-flex;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.56rem;
    background: rgba(55, 83, 117, 0.86);
}

.panel-host {
    display: grid;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background:
        radial-gradient(circle at 62% -8%, rgba(var(--bg-accent-a), 0.22), transparent 56%),
        radial-gradient(circle at 0% 100%, rgba(var(--bg-accent-b), 0.24), transparent 58%),
        linear-gradient(180deg, rgba(8, 18, 33, 0.9), rgba(6, 13, 23, 0.93));
    overflow: hidden;
    position: relative;
}

.panel {
    display: none;
    height: 100%;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
}

.panel.is-active {
    display: grid;
    animation: panelIn 0.34s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#panel-live.is-active {
    grid-template-rows: minmax(210px, auto) minmax(0, 1fr);
    gap: 10px;
    position: relative;
    isolation: isolate;
}

#panel-live::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: 0;
    background-image: var(--live-cover-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    filter: blur(64px) saturate(1.28);
    transform: scale(1.12);
    pointer-events: none;
}

#panel-live::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(117, 220, 255, 0.18) 44%, transparent 72%);
    transform: translateX(-44%);
}

#panel-live.is-song-changing::after {
    animation: panelSongFlash 0.82s ease-out;
}

#panel-live > * {
    position: relative;
    z-index: 1;
}

.live-hero {
    min-height: 0;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr) minmax(280px, 340px);
    gap: 16px;
}

.cover-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 6px 0 4px;
}

.cover-card::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 22% 18%, rgba(var(--bg-accent-a, 44, 111, 182), 0.32), transparent 48%),
        radial-gradient(circle at 82% 78%, rgba(var(--bg-accent-b, 17, 43, 77), 0.34), transparent 50%);
    filter: blur(20px);
    opacity: 0.85;
    z-index: 0;
    animation: none;
    pointer-events: none;
}

.cover-card img {
    position: relative;
    z-index: 1;
    width: min(100%, 220px);
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid var(--line);
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
    --coverScale: calc(1 + (var(--cover-beat, 0) * 0.055));
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
    cursor: zoom-in;
    transform: scale(var(--coverScale));
    transform-origin: center center;
    filter: saturate(calc(1 + var(--cover-beat, 0) * 0.22)) brightness(calc(1 + var(--cover-beat, 0) * 0.05));
    will-change: transform, filter, box-shadow;
}

.cover-card img:hover {
    transform: scale(1.02);
}

.cover-card.is-song-changing img {
    animation: coverChange 0.72s cubic-bezier(.2,.8,.2,1);
}

.cover-card.is-song-changing::before {
    animation: coverHalo 0.9s ease-out;
}

#panel-live.is-playing .cover-card::before {
    animation: liveCoverPulse 2.4s ease-in-out infinite;
}

#panel-live.is-playing .cover-card:not(.is-song-changing) img {
    animation: coverGroove 2.8s cubic-bezier(.36, .06, .22, .99) infinite;
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(150, 197, 245, 0.16),
        0 0 calc(20px + (var(--cover-beat, 0) * 26px)) rgba(95, 195, 255, 0.33);
}

.chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: min(100%, 228px);
    justify-content: center;
}

.chip {
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(145, 176, 220, 0.27);
    background: rgba(7, 14, 25, 0.86);
    font-size: 0.73rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.chip.live {
    border-color: rgba(242, 195, 91, 0.4);
    position: relative;
    gap: 6px;
    color: #fff3c9;
    background: linear-gradient(180deg, rgba(78, 58, 17, 0.92), rgba(51, 38, 12, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(255, 220, 124, 0.08),
        0 0 0 1px rgba(242, 197, 93, 0.14),
        0 0 16px rgba(255, 183, 71, 0.24);
    animation: liveBadgeBreath 1.85s ease-in-out infinite;
}

.chip.live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #66ffab;
    box-shadow:
        0 0 0 2px rgba(63, 255, 162, 0.18),
        0 0 10px rgba(63, 255, 162, 0.6);
    animation: liveBadgeDot 1s ease-in-out infinite;
}

.chip.live.is-offline {
    border-color: rgba(242, 128, 128, 0.38);
    color: #ffd4d4;
    background: linear-gradient(180deg, rgba(66, 24, 24, 0.9), rgba(44, 18, 18, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 184, 184, 0.08);
    animation: none;
}

.chip.live.is-offline::before {
    background: #ff9d9d;
    box-shadow: 0 0 0 2px rgba(255, 157, 157, 0.16);
    animation: none;
}

.chip.requested {
    border-color: rgba(111, 213, 165, 0.4);
    color: #c9f7e2;
    background: rgba(16, 37, 33, 0.88);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip.requested.is-clickable {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chip.requested.is-clickable:hover {
    transform: translateY(-1px);
    border-color: rgba(152, 233, 193, 0.56);
    background: rgba(27, 60, 52, 0.9);
}

.chip.requested.pulse {
    animation: requestedPulse 1.1s ease;
}

.socials {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 7px;
    width: min(100%, 228px);
    justify-content: center;
}

.socials a {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--line-soft);
    background: rgba(10, 20, 33, 0.9);
    color: #d2e5ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.now-card {
    min-width: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.now-card.is-song-changing {
    animation: nowCardSwap 0.72s cubic-bezier(.2,.8,.2,1);
}

#panel-live.is-playing .now-card {
    animation: nowCardBreath 3.4s ease-in-out infinite;
}

.kicker {
    display: inline-block;
    font-size: 0.67rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8eb3e1;
    font-weight: 700;
}

.now-card h1 {
    margin: 8px 0 0;
    font-size: clamp(1.5rem, 3vw, 2.75rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    max-width: 12ch;
}

.now-card p {
    margin: 10px 0 0;
    color: #b6cbe4;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.song-like-panel {
    margin-top: 0;
    width: min(100%, 204px);
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(141, 176, 219, 0.26);
    background: linear-gradient(180deg, rgba(9, 19, 32, 0.84), rgba(7, 14, 24, 0.92));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.song-like-panel.is-loading {
    opacity: 0.82;
}

.song-like-btn {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(145, 179, 219, 0.32);
    background: rgba(11, 24, 41, 0.9);
    color: #d4e8ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.song-like-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(171, 207, 248, 0.44);
}

.song-like-btn.is-liked {
    border-color: rgba(255, 163, 188, 0.56);
    background: linear-gradient(180deg, rgba(73, 23, 36, 0.96), rgba(55, 18, 29, 0.98));
    color: #ffd7e4;
    box-shadow: 0 0 14px rgba(255, 101, 152, 0.24);
}

.song-like-btn:disabled {
    cursor: default;
}

.song-like-meta {
    min-width: 0;
    display: grid;
    gap: 1px;
    align-content: center;
}

.song-like-meta strong {
    display: block;
    line-height: 1;
    font-size: 0.94rem;
    color: #ebf4ff;
}

.song-like-meta small {
    display: block;
    color: #9db8d8;
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-like-panel--dock {
    grid-area: like;
    justify-self: end;
}

.now-card h1,
.now-card p,
.dock-track strong,
.dock-track span,
#listenersCount,
#stationChip {
    will-change: transform, opacity, filter;
}

.is-value-changing {
    animation: valueSwap 0.68s cubic-bezier(.2,.8,.2,1);
}

.playing-indicator {
    margin-top: 10px;
    min-height: 16px;
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    opacity: 0.45;
    transition: opacity 0.28s ease;
}

.playing-indicator span {
    width: 4px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(132, 228, 255, 0.96), rgba(34, 150, 232, 0.92));
    box-shadow: 0 0 12px rgba(54, 176, 255, 0.28);
    transform-origin: bottom center;
}

#panel-live.is-playing .playing-indicator {
    opacity: 1;
}

#panel-live.is-playing .playing-indicator span:nth-child(1) {
    animation: playingEq 0.72s ease-in-out infinite;
}

#panel-live.is-playing .playing-indicator span:nth-child(2) {
    animation: playingEq 0.84s ease-in-out infinite 0.08s;
}

#panel-live.is-playing .playing-indicator span:nth-child(3) {
    animation: playingEq 0.68s ease-in-out infinite 0.16s;
}

#panel-live.is-playing .playing-indicator span:nth-child(4) {
    animation: playingEq 0.9s ease-in-out infinite 0.24s;
}

#panel-live:not(.is-playing) .playing-indicator span {
    animation: none;
    transform: scaleY(0.55);
}

.mobile-live-controls {
    display: none;
}

.mobile-volume-wrap {
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 14, 25, 0.86);
    padding: 0 10px;
    display: grid;
    grid-template-columns: min-content minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.mobile-volume-wrap input {
    width: 100%;
    accent-color: var(--accent);
}

.mobile-volume-wrap .mute-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.mobile-volume-wrap span {
    min-width: 33px;
    text-align: right;
    font-size: 0.74rem;
    font-weight: 700;
}

.mobile-like-btn {
    display: none;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(145, 176, 220, 0.3);
    background: rgba(9, 18, 31, 0.88);
    color: #d7e8ff;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 12px;
}

.mobile-like-btn i {
    color: #ff97b4;
}

.mobile-like-btn strong {
    min-width: 18px;
    text-align: right;
}

.mobile-like-btn.is-liked {
    border-color: rgba(255, 169, 193, 0.5);
    background: linear-gradient(180deg, rgba(74, 24, 37, 0.96), rgba(57, 18, 30, 0.98));
    color: #ffd9e7;
}

.comments-card {
    min-height: 0;
    height: 100%;
    max-height: 400px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(9, 18, 31, 0.52);
    padding: 10px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
    position: relative;
}

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

.comments-head h3 {
    margin: 0;
    font-size: 0.98rem;
}

.comments-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.comments-actions .ghost-btn {
    min-height: 32px;
    border-radius: 10px;
    padding: 0 8px;
    font-size: 0.75rem;
}

.comment-stars {
    display: inline-flex;
    gap: 6px;
}

.star-btn {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 14, 25, 0.84);
    color: rgba(197, 214, 236, 0.6);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.star-btn.is-active {
    color: #ffd768;
    border-color: rgba(242, 200, 101, 0.52);
    background: rgba(64, 50, 21, 0.65);
}

.comments-card textarea {
    min-height: 70px;
    resize: none;
}

.comment-list {
    min-height: 0;
    padding-right: 4px;
    overflow: auto;
}

.comment-list.preview {
    max-height: 226px;
    padding-top: 4px;
    padding-bottom: 2px;
    overflow: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
    will-change: opacity, transform, filter;
}

.comment-list.preview.is-swapping {
    opacity: 0.34;
    transform: translateY(-8px) scale(0.986);
    filter: blur(1.2px) saturate(0.76);
}

.comment-list.preview.is-entering {
    animation: commentsPreviewEnter 0.42s cubic-bezier(.22,.88,.2,1);
}

.comment-row {
    margin-bottom: 8px;
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid rgba(145, 176, 220, 0.18);
    background: linear-gradient(90deg, rgba(38, 65, 99, 0.56), rgba(30, 52, 82, 0.42));
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease, opacity 0.2s ease;
}

.comment-row.is-spotlight {
    border-color: rgba(137, 208, 255, 0.46);
    box-shadow: 0 0 0 1px rgba(83, 178, 247, 0.22), 0 0 18px rgba(58, 180, 248, 0.24);
    transform: none;
}

.comment-row.is-preview-row {
    opacity: 0;
    animation: commentPreviewRowIn 0.46s cubic-bezier(.22,.9,.2,1) both;
    animation-delay: var(--comment-row-delay, 0s);
}

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

.comment-row strong {
    font-size: 0.86rem;
}

.comment-row p {
    margin: 6px 0 4px;
    font-size: 0.82rem;
    color: #d5e5fb;
    line-height: 1.3;
}

.comment-row small {
    color: var(--muted);
    font-size: 0.73rem;
}

.comment-composer-panel {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(153, 183, 222, 0.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(8, 17, 30, 0.98), rgba(6, 13, 24, 0.98));
    color-scheme: dark;
    padding: 10px;
    display: grid;
    grid-template-rows: auto auto auto minmax(96px, 1fr) auto auto;
    gap: 8px;
    align-content: start;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.comment-composer-panel input,
.comment-composer-panel textarea {
    width: 100%;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(6, 13, 23, 0.96);
    color: var(--text);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-text-fill-color: var(--text);
    caret-color: #d7e8ff;
}

.comment-composer-panel input {
    min-height: 36px;
    padding: 7px 10px;
}

.comment-composer-panel textarea {
    min-height: 96px;
    max-height: 190px;
    padding: 10px;
    resize: vertical;
}

.comment-composer-panel input::placeholder,
.comment-composer-panel textarea::placeholder {
    color: rgba(190, 210, 236, 0.72);
}

.comment-composer-panel input:-webkit-autofill,
.comment-composer-panel input:-webkit-autofill:hover,
.comment-composer-panel input:-webkit-autofill:focus,
.comment-composer-panel textarea:-webkit-autofill,
.comment-composer-panel textarea:-webkit-autofill:hover,
.comment-composer-panel textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px rgba(6, 13, 23, 0.96) inset;
    box-shadow: 0 0 0 1000px rgba(6, 13, 23, 0.96) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.comment-composer-panel.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.comment-composer-panel.mobile-detached {
    position: fixed;
    inset:
        max(10px, env(safe-area-inset-top))
        10px
        max(10px, env(safe-area-inset-bottom))
        10px;
    z-index: 70;
    max-height: calc(100dvh - 20px);
    box-shadow:
        0 0 0 9999px rgba(2, 8, 16, 0.58),
        0 18px 42px rgba(0, 0, 0, 0.62);
}

.comment-composer-panel h4 {
    margin: 0;
    font-size: 0.9rem;
}

.comment-composer-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.comments-modal {
    position: fixed;
    inset: 0;
    z-index: 41;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(4, 10, 18, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.comments-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.comments-modal-card {
    width: min(760px, calc(100vw - 24px));
    height: min(78vh, 760px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 16, 27, 0.98), rgba(5, 11, 20, 0.99));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
}

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

.comments-modal-head h3 {
    margin: 0;
    font-size: 1rem;
}

.comments-modal-tabs {
    display: inline-flex;
    gap: 6px;
}

.comments-modal-pane {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
}

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

#publicCommentsStatus.is-ok {
    border-color: rgba(111, 213, 165, 0.45);
    color: #d7f9ea;
    background: rgba(16, 37, 33, 0.85);
}

#publicCommentsStatus.is-error {
    border-color: rgba(240, 138, 138, 0.45);
    color: #ffd9d9;
    background: rgba(39, 19, 19, 0.78);
}

#publicCommentsStatus.is-muted {
    border-color: rgba(145, 176, 220, 0.27);
    color: #cfe1f9;
    background: rgba(7, 14, 25, 0.86);
}

.comments-modal-pane iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
}

.comments-facebook-fallback {
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(176, 133, 133, 0.36);
    background: rgba(39, 19, 19, 0.36);
    display: grid;
    gap: 8px;
}

.comments-facebook-fallback p {
    margin: 0;
    font-size: 0.84rem;
    color: #f1d9d9;
}

.comments-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 43;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(4, 10, 18, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.share-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.share-modal-card {
    width: min(480px, calc(100vw - 24px));
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 16, 27, 0.98), rgba(5, 11, 20, 0.99));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
    padding: 12px;
    display: grid;
    gap: 10px;
}

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

.share-modal-head h3 {
    margin: 0;
    font-size: 1rem;
}

.share-modal-copy {
    margin: 0;
    color: #bdd4f1;
    font-size: 0.85rem;
}

.share-url {
    margin: 0;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(145, 176, 220, 0.24);
    background: rgba(7, 14, 24, 0.72);
    color: #d5e8ff;
    font-size: 0.78rem;
    word-break: break-all;
}

.share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.share-actions .ghost-btn,
.share-actions .primary-btn {
    width: 100%;
}

#streamVisualizer {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0.96;
    filter: saturate(1.22) brightness(1.14);
}

#mobileVisualizer {
    display: none;
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 16, 29, 0.78);
}

.live-bottom {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.26fr) minmax(340px, 0.94fr);
    gap: 10px;
}

.live-bottom.is-requests-empty {
    grid-template-columns: minmax(0, 1.58fr) minmax(260px, 0.62fr);
}

.mobile-live-extra {
    display: none;
}

.mobile-live-peek {
    border: 1px solid rgba(145, 176, 220, 0.2);
    border-radius: 12px;
    background: rgba(9, 18, 31, 0.4);
    padding: 9px;
    display: grid;
    gap: 8px;
}

.mobile-live-peek header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mobile-live-peek h4 {
    margin: 0;
    font-size: 0.86rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9bbbe1;
}

.mobile-live-peek-list {
    display: grid;
    gap: 6px;
}

.mobile-peek-row {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(44, 65, 95, 0.66);
    color: var(--text);
    min-height: 46px;
    width: 100%;
    padding: 6px 7px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    text-align: left;
}

.mobile-peek-row img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(145, 176, 220, 0.28);
    object-fit: cover;
}

.mobile-peek-row span {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.mobile-peek-row strong,
.mobile-peek-row small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-queue-card,
.mobile-featured-comment-card {
    border: 1px solid rgba(145, 176, 220, 0.2);
    border-radius: 12px;
    background: rgba(9, 18, 31, 0.4);
    padding: 9px;
    display: grid;
    gap: 8px;
}

.mobile-queue-card header,
.mobile-featured-comment-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mobile-queue-card h4,
.mobile-featured-comment-card h4 {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9bbbe1;
}

.mobile-comment-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-comment-actions .ghost-btn {
    min-height: 28px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 0.72rem;
}

.mobile-queue-list {
    display: grid;
    gap: 6px;
}

.mobile-queue-row {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(44, 65, 95, 0.66);
    color: var(--text);
    min-height: 44px;
    width: 100%;
    padding: 5px 7px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    text-align: left;
}

.mobile-queue-row img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(145, 176, 220, 0.28);
    object-fit: cover;
}

.mobile-queue-row span {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.mobile-queue-row strong,
.mobile-queue-row small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-queue-row strong {
    font-size: 0.84rem;
}

.mobile-queue-row small {
    font-size: 0.72rem;
    color: #b8cae2;
}

.mobile-queue-row em {
    font-style: normal;
    font-size: 0.72rem;
    color: #c9ddf6;
    opacity: 0.9;
}

.mobile-featured-comment-body p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #e0edff;
}

.mobile-featured-comment-body small {
    margin-top: 3px;
    display: block;
    color: #a8bfdc;
    font-size: 0.72rem;
}

.mobile-peek-row strong {
    font-size: 0.79rem;
}

.mobile-peek-row small {
    font-size: 0.72rem;
    color: var(--muted);
}

.mobile-peek-row time {
    font-size: 0.71rem;
    color: #9bb6d8;
}

.list-card,
.requests-card {
    min-height: 0;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(9, 18, 31, 0.44);
    padding: 10px;
    display: grid;
}

.list-card {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 6px;
}

.requests-card {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
}

.requests-card.is-empty #requestsMiniList {
    overflow: auto;
    overscroll-behavior: contain;
}

.requests-empty-state {
    min-height: 100%;
    border: 1px dashed rgba(148, 181, 227, 0.34);
    border-radius: 12px;
    padding: 12px;
    background:
        radial-gradient(circle at 0% 0%, rgba(68, 115, 175, 0.24), transparent 58%),
        linear-gradient(165deg, rgba(14, 25, 41, 0.84), rgba(8, 15, 26, 0.9));
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 8px;
}

.requests-empty-badge {
    width: fit-content;
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(128, 208, 255, 0.35);
    background: rgba(10, 25, 43, 0.8);
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #d7ecff;
}

.requests-empty-state h4 {
    margin: 0;
    font-size: 1rem;
}

.requests-empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.38;
}

.requests-empty-suggestions {
    margin-top: 2px;
    border: 1px solid rgba(145, 176, 220, 0.18);
    border-radius: 10px;
    background: rgba(8, 16, 28, 0.64);
    padding: 8px;
    display: grid;
    gap: 4px;
    max-height: 200px;
    overflow: auto;
    overscroll-behavior: contain;
}

.requests-empty-suggestions small {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8eaed4;
}

.requests-empty-suggestions span {
    font-size: 0.78rem;
    color: #d7e7fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-suggestion-chip {
    width: 100%;
    border: 1px solid rgba(145, 176, 220, 0.22);
    border-radius: 9px;
    background: rgba(14, 29, 46, 0.64);
    color: #dfeeff;
    padding: 6px 8px;
    display: grid;
    gap: 2px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.request-suggestion-chip:hover {
    border-color: rgba(183, 211, 246, 0.46);
    background: rgba(28, 49, 74, 0.74);
    transform: translateY(-1px);
}

.request-suggestion-chip span,
.request-suggestion-chip small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-suggestion-chip span {
    font-size: 0.79rem;
    font-weight: 700;
}

.request-suggestion-chip small {
    font-size: 0.72rem;
    color: #9db6d8;
}

.requests-empty-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.requests-empty-actions .ghost-btn {
    flex: 1 1 146px;
}

.list-card header,
.requests-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.list-card h3,
.requests-card h3 {
    margin: 0;
    font-size: 1rem;
}

.live-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ghost-btn--sm {
    min-height: 30px;
    border-radius: 999px;
    padding: 0 11px;
    font-size: 0.78rem;
    font-weight: 700;
}

.segment {
    display: inline-flex;
    gap: 5px;
}

.seg-btn {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.seg-btn.is-active {
    background: linear-gradient(180deg, rgba(80, 113, 157, 0.9), rgba(56, 82, 119, 0.96));
    border-color: rgba(173, 198, 236, 0.42);
}

@media (min-width: 1280px) {
    #panel-live.is-active {
        grid-template-rows: minmax(196px, auto) minmax(0, 1fr);
    }

    .live-hero {
        grid-template-columns: 220px minmax(0, 1fr) minmax(286px, 320px);
        align-items: start;
        gap: 14px;
    }

    .cover-card {
        align-items: center;
    }

    .cover-card img {
        width: min(100%, 214px);
    }

    .cover-card .chips,
    .cover-card .socials {
        width: min(100%, 214px);
        justify-content: center;
    }

    .now-card {
        padding-top: 2px;
    }

    .now-card h1 {
        font-size: clamp(1.38rem, 2.46vw, 2.38rem);
        max-width: 13ch;
        line-height: 0.94;
    }

    .now-card p {
        margin-top: 8px;
        font-size: clamp(0.94rem, 1.04vw, 1.08rem);
        max-width: 42ch;
    }

    .comments-card {
        align-self: stretch;
        height: 100%;
        min-height: 300px;
        max-height: none;
    }

    .comment-list.preview {
        max-height: none;
        height: 100%;
    }

    .live-bottom {
        grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.86fr);
        align-items: stretch;
    }

    .requests-card {
        min-height: 0;
        height: 100%;
    }

    #panel-live #liveList,
    #panel-live #requestsMiniList {
        height: 100%;
        min-height: 0;
        overflow: auto;
    }

    #panel-live #requestsMiniList .card-row {
        margin-bottom: 10px;
    }

    #panel-live #requestsMiniList .card-row:last-child {
        margin-bottom: 2px;
    }
}

.table-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1.6fr) minmax(0, 1fr) 70px;
    gap: 10px;
    padding: 0 8px 8px;
    border-bottom: 1px solid rgba(145, 176, 220, 0.2);
    color: #8ea6c8;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.scroll-y {
    min-height: 0;
    height: 100%;
    overflow: auto;
    padding-right: 3px;
    overscroll-behavior: contain;
}

.row-item {
    width: 100%;
    min-height: 54px;
    margin-bottom: 6px;
    padding: 8px 9px;
    border-radius: 11px;
    border: 1px solid rgba(145, 176, 220, 0.18);
    background: linear-gradient(90deg, rgba(38, 65, 99, 0.7), rgba(30, 52, 82, 0.58));
    display: grid;
    grid-template-columns: 38px minmax(0, 1.6fr) minmax(0, 1fr) 70px;
    gap: 10px;
    align-items: center;
    animation: rowIn 0.3s ease both;
    animation-delay: var(--row-delay, 0s);
}

.row-item.clickable {
    cursor: pointer;
}

.row-item:hover {
    transform: translateY(-1px);
    border-color: rgba(173, 198, 236, 0.35);
}

button.row-item {
    appearance: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

@keyframes rowIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes commentSpotlight {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 180, 248, 0.04);
    }
    40% {
        box-shadow: 0 0 0 1px rgba(83, 178, 247, 0.24), 0 0 20px rgba(58, 180, 248, 0.34);
    }
    100% {
        box-shadow: 0 0 0 1px rgba(83, 178, 247, 0.18), 0 0 10px rgba(58, 180, 248, 0.2);
    }
}

@keyframes commentsPreviewEnter {
    0% {
        opacity: 0.44;
        transform: translateY(10px) scale(0.988);
        filter: blur(1.4px) saturate(0.82);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: none;
    }
}

@keyframes commentPreviewRowIn {
    0% {
        opacity: 0;
        transform: translateY(13px) scale(0.985);
        filter: blur(1.4px);
    }
    62% {
        opacity: 1;
        transform: translateY(-1px) scale(1.003);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: none;
    }
}

.row-index {
    color: #92acd1;
    text-align: center;
    font-size: 0.8rem;
}

.row-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.row-main i,
.row-main .row-cover {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(145, 176, 220, 0.24);
    background: rgba(7, 15, 24, 0.9);
    align-self: center;
    justify-self: center;
}

.row-main i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.row-main .row-cover {
    object-fit: cover;
    object-position: center center;
    display: block;
}

.row-main strong,
.row-main small,
.row-artist,
.row-time {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-main strong {
    font-size: 0.9rem;
}

.row-main small,
.row-artist,
.row-time {
    font-size: 0.78rem;
    color: var(--muted);
}

.row-item.is-locked {
    border-color: rgba(242, 199, 109, 0.42);
    background: linear-gradient(90deg, rgba(66, 58, 36, 0.72), rgba(48, 42, 29, 0.62));
}

.row-item.is-limited {
    border-color: rgba(240, 147, 141, 0.38);
    background: linear-gradient(90deg, rgba(63, 42, 49, 0.7), rgba(43, 34, 44, 0.58));
}

.row-artist.row-status-ok {
    color: #9fe1be;
}

.row-artist.row-status-locked {
    color: #ffd58f;
    font-weight: 700;
}

.row-artist.row-status-hourly {
    color: #f3aca5;
    font-weight: 700;
}

.row-time {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    text-align: right;
    overflow: visible;
}

.row-time .row-time-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-request-flag {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(112, 212, 165, 0.42);
    background: rgba(16, 38, 35, 0.85);
    color: #ccf5e3;
    font-size: 0.64rem;
    font-weight: 700;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mini-request-flag:hover {
    transform: translateY(-1px);
    border-color: rgba(152, 233, 193, 0.56);
    background: rgba(29, 61, 54, 0.9);
}

.link-btn {
    min-height: 34px;
    border-radius: 9px;
    font-weight: 700;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(145, 176, 220, 0.2);
}

.panel-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.history-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-tools input,
.history-tools select,
.library-filters input,
.library-filters select,
.composer input,
.composer textarea,
.comments-card input,
.comments-card textarea {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(6, 13, 23, 0.95);
    color: var(--text);
    outline: none;
}

.history-tools input,
.history-tools select,
.library-filters input,
.library-filters select,
.composer input,
.comments-card input {
    min-height: 36px;
    padding: 7px 10px;
}

.list-stack {
    padding-top: 10px;
    min-height: 0;
    height: 100%;
}

#liveList,
#requestsMiniList,
#historyList,
#topList,
#requestsList,
#libraryList {
    min-height: 0;
    height: 100%;
    overflow: auto;
}

.card-row {
    min-height: 72px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(145, 176, 220, 0.18);
    border-radius: 11px;
    background: linear-gradient(90deg, rgba(38, 65, 99, 0.72), rgba(30, 52, 82, 0.62));
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    animation: rowIn 0.3s ease both;
    animation-delay: var(--row-delay, 0s);
}

.card-row img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(145, 176, 220, 0.24);
    object-fit: cover;
}

.card-main strong,
.card-main small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-main strong {
    font-size: 0.95rem;
}

.card-main small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.82rem;
}

.request-note {
    margin-top: 3px;
    color: #c7d9f2;
    font-size: 0.75rem;
    opacity: 0.92;
}

.card-meta {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.song-google-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(8, 16, 27, 0.84);
    color: #dce9ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    flex: 0 0 auto;
}

.song-google-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(177, 202, 239, 0.44);
    background: rgba(43, 68, 101, 0.8);
}

.cover-clickable {
    cursor: zoom-in;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cover-clickable:hover {
    transform: scale(1.04);
    border-color: rgba(177, 202, 239, 0.46);
    box-shadow: 0 0 0 2px rgba(89, 152, 220, 0.22);
}

.badge {
    min-height: 23px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    background: rgba(7, 14, 25, 0.84);
}

.badge.pending {
    border-color: rgba(242, 195, 91, 0.42);
    color: #ffe3ad;
}

.badge.played {
    border-color: rgba(111, 213, 165, 0.4);
    color: #cff4e4;
}

.badge.requested-hit {
    border-color: rgba(116, 223, 173, 0.54);
    color: #dcffef;
    background: rgba(17, 43, 37, 0.88);
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.badge.requested-hit:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 238, 197, 0.62);
    background: rgba(23, 55, 47, 0.9);
}

.badge.requested-hit:focus-visible {
    outline: 2px solid rgba(141, 222, 180, 0.68);
    outline-offset: 2px;
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.timeline .badge {
    min-height: 28px;
    padding: 4px 10px;
}

.requests-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 10px;
}

.request-details-card {
    min-height: 0;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(8, 16, 27, 0.7);
    padding: 10px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 7px;
}

.request-details-card h3 {
    margin: 0;
    font-size: 0.94rem;
}

.request-details-card p {
    margin: 0;
}

.muted {
    color: var(--muted);
    font-size: 0.82rem;
}

.card-row.is-selected {
    border-color: rgba(181, 210, 244, 0.5);
    background: linear-gradient(90deg, rgba(56, 87, 126, 0.78), rgba(39, 64, 96, 0.72));
}

#panel-top.is-active,
#panel-history.is-active,
#panel-requests.is-active {
    grid-template-rows: auto minmax(0, 1fr);
}

#panel-requests.is-active {
    grid-template-rows: auto auto minmax(0, 1fr);
}

#panel-library.is-active {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.library-header {
    align-items: center;
}

.request-limit {
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    padding: 0 10px;
    background: rgba(8, 16, 27, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.library-layout {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr) 290px;
    gap: 10px;
    overflow: hidden;
}

.library-filters,
.library-results,
.composer {
    min-height: 0;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(9, 18, 30, 0.56);
    padding: 10px;
}

.library-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}

.filters-advanced {
    border: 1px solid rgba(143, 173, 220, 0.18);
    border-radius: 10px;
    background: rgba(6, 12, 21, 0.72);
    padding: 6px 9px;
}

.filters-advanced > summary {
    cursor: pointer;
    color: #c3d9f5;
    font-size: 0.83rem;
    font-weight: 700;
    list-style: none;
    user-select: none;
}

.filters-advanced > summary::-webkit-details-marker {
    display: none;
}

.filters-grid {
    margin-top: 8px;
    display: grid;
    gap: 7px;
}

.library-filters label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.84rem;
}

.library-results {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 6px;
    overflow: hidden;
}

#libraryList {
    content-visibility: auto;
    contain: layout paint;
}

#libraryList .row-item {
    content-visibility: auto;
    contain-intrinsic-size: 54px;
}

.library-load-more-row {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 6px 10px;
}

.library-load-more-row small {
    color: var(--muted);
    font-size: 0.75rem;
}

.library-load-more-btn {
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
}

.library-results small {
    color: var(--muted);
    font-size: 0.78rem;
}

.composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
}

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

.composer-head h3 {
    margin: 0 0 2px;
}

#closeComposerBtn {
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.composer h3 {
    margin: 0 0 2px;
}

.selected-song {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 14, 24, 0.68);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.selected-song img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(143, 173, 220, 0.24);
    background: rgba(9, 18, 31, 0.7);
}

.selected-song-copy {
    min-width: 0;
}

.selected-song strong,
.selected-song span {
    display: block;
}

.selected-song span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}

.selected-song-lock {
    margin: 6px 0 0;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(140, 176, 219, 0.26);
    background: rgba(7, 14, 24, 0.62);
    color: #b8d7fa;
    font-size: 0.74rem;
    line-height: 1.3;
}

.selected-song-lock.is-ok {
    border-color: rgba(119, 212, 162, 0.4);
    color: #a9e9c5;
    background: rgba(14, 35, 30, 0.62);
}

.selected-song-lock.is-locked {
    border-color: rgba(242, 199, 109, 0.44);
    color: #ffd58f;
    background: rgba(45, 36, 21, 0.66);
}

.selected-song-lock.is-hourly {
    border-color: rgba(240, 147, 141, 0.44);
    color: #f5b2ad;
    background: rgba(48, 31, 34, 0.66);
}

.composer textarea {
    min-height: 110px;
    padding: 10px;
    resize: vertical;
}

.feedback {
    margin: 0;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 14, 24, 0.68);
    color: #cfe2fb;
    font-size: 0.82rem;
}

.library-results .pick-btn.is-disabled[disabled] {
    border-color: rgba(143, 173, 220, 0.24);
    background: rgba(15, 26, 41, 0.76);
    color: #9bb4d7;
    opacity: 0.78;
}

#sendRequestBtn.is-locked {
    border-color: rgba(242, 199, 109, 0.44);
    background: linear-gradient(180deg, rgba(120, 87, 35, 0.96), rgba(92, 68, 30, 0.98));
    color: #ffe6b8;
}

#sendRequestBtn.is-hourly {
    border-color: rgba(240, 147, 141, 0.44);
    background: linear-gradient(180deg, rgba(111, 58, 68, 0.95), rgba(79, 42, 50, 0.98));
    color: #ffd7d4;
}

.player-dock {
    min-height: 92px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 15, 25, 0.95), rgba(6, 12, 20, 0.98));
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

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

.dock-track img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    object-fit: cover;
}

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

.dock-track small {
    color: #8fb3de;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.64rem;
}

.dock-track strong {
    margin-top: 2px;
    font-size: 1.04rem;
}

.dock-track span {
    margin-top: 2px;
    font-size: 0.84rem;
    color: var(--muted);
}

.dock-main {
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0 4px;
}

#dockVisualizer {
    display: none;
}

.dock-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 54px minmax(170px, 0.9fr) auto;
    grid-template-areas: "play volume like";
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.play-btn {
    grid-area: play;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    border: 1px solid var(--line-soft);
    background: rgba(13, 26, 41, 0.86);
    color: var(--text);
    cursor: pointer;
}

.mute-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(133, 170, 214, 0.28);
    background: rgba(9, 19, 33, 0.9);
    color: #bcd5f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.mute-btn:hover {
    border-color: rgba(163, 199, 240, 0.48);
    color: #e0efff;
}

.mute-btn:active {
    transform: translateY(1px);
}

.mute-btn.is-muted {
    border-color: rgba(255, 166, 192, 0.52);
    background: rgba(62, 18, 33, 0.88);
    color: #ffc2d6;
    box-shadow: 0 0 14px rgba(255, 103, 155, 0.26);
}

.mute-btn i {
    pointer-events: none;
}

.volume-wrap {
    grid-area: volume;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(5, 11, 19, 0.68);
    padding: 0 9px;
    display: grid;
    grid-template-columns: 34px minmax(80px, 1fr) auto;
    align-items: center;
    gap: 8px;
    max-width: 286px;
    width: 100%;
    justify-self: stretch;
    position: relative;
    overflow: hidden;
}

#volumeSlider {
    width: 100%;
    accent-color: var(--accent);
    position: relative;
    z-index: 2;
}

#volumeLabel {
    min-width: 34px;
    text-align: right;
    font-size: 0.76rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}


.cover-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 8, 16, 0.84);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cover-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.cover-modal img {
    max-width: min(80vw, 760px);
    max-height: min(84vh, 760px);
    border-radius: 14px;
    border: 1px solid rgba(143, 173, 220, 0.35);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
    object-fit: cover;
}

.cover-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(143, 173, 220, 0.38);
    background: rgba(8, 18, 31, 0.92);
    color: #e7f2ff;
    cursor: pointer;
}

.cookie-settings-btn {
    position: fixed;
    right: 18px;
    bottom: 16px;
    z-index: 70;
    display: none !important;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(143, 173, 220, 0.36);
    background: rgba(6, 15, 28, 0.9);
    color: var(--text);
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cookie-settings-btn:hover {
    border-color: rgba(160, 194, 238, 0.52);
}

.cookie-settings-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 71;
    width: min(920px, calc(100vw - 24px));
    transform: translate(-50%, 12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(143, 173, 220, 0.32);
    border-radius: 14px;
    background:
        radial-gradient(circle at 14% 30%, rgba(32, 80, 132, 0.2), transparent 44%),
        linear-gradient(180deg, rgba(7, 15, 27, 0.98), rgba(4, 10, 20, 0.98));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-banner.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cookie-banner-copy {
    display: grid;
    gap: 3px;
}

.cookie-banner-copy strong {
    font-size: 0.95rem;
}

.cookie-banner-copy p {
    margin: 0;
    color: #bdd0ea;
    font-size: 0.83rem;
    line-height: 1.35;
}

.cookie-banner-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-banner-actions .primary-btn,
.cookie-banner-actions .ghost-btn {
    min-height: 34px;
    padding-inline: 13px;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(4, 10, 18, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cookie-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-card {
    width: min(640px, calc(100vw - 24px));
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 16, 27, 0.98), rgba(5, 11, 20, 0.99));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
    padding: 12px;
    display: grid;
    gap: 10px;
}

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

.cookie-modal-head h3 {
    margin: 0;
    font-size: 1rem;
}

.cookie-modal-intro {
    margin: 0;
    color: #c4d6ee;
    font-size: 0.85rem;
}

.cookie-options {
    display: grid;
    gap: 8px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 11px;
    border: 1px solid rgba(143, 173, 220, 0.24);
    background: rgba(10, 20, 35, 0.56);
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cookie-option.is-required input[type="checkbox"] {
    opacity: 0.7;
}

.cookie-option-copy {
    display: grid;
    gap: 3px;
}

.cookie-option-copy strong {
    font-size: 0.89rem;
}

.cookie-option-copy small {
    color: #aec4e3;
    font-size: 0.78rem;
    line-height: 1.32;
}

.cookie-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes coverHalo {
    from {
        transform: scale(0.985);
        opacity: 0.58;
    }
    to {
        transform: scale(1.03);
        opacity: 0.92;
    }
}

.hidden {
    display: none !important;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(153, 178, 211, 0.35);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 178, 211, 0.52);
}

@media (max-width: 1360px) {
    .live-hero {
        grid-template-columns: 220px minmax(0, 1fr) minmax(250px, 290px);
    }

    .cover-card img {
        width: min(100%, 210px);
    }

    .library-layout {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .live-bottom {
        grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.95fr);
    }

    .composer {
        grid-column: 1 / -1;
    }

    .dock-controls {
        grid-template-columns: 54px minmax(140px, 0.95fr) auto;
        gap: 7px 9px;
    }

    .song-like-panel--dock {
        width: min(100%, 176px);
    }

    .volume-wrap {
        max-width: 256px;
    }
}

@media (max-width: 1050px) {
    .app-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        width: calc(100vw - 8px);
        height: calc(100vh - 8px);
        height: calc(100dvh - 8px);
        margin: 4px auto;
    }

    .sidebar {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        gap: 8px;
    }

    .brand {
        border-bottom: none;
        padding: 0;
        grid-template-columns: 40px;
    }

    .brand div {
        display: none;
    }

    .nav {
        flex-direction: row;
    }

    .quick {
        margin-top: 0;
        flex-direction: row;
    }

    .ghost-btn {
        min-height: 38px;
        padding: 0 10px;
    }

    .main-shell {
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .live-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "cover now"
            "comments comments";
        align-items: start;
    }

    .cover-card {
        grid-area: cover;
        align-items: center;
    }

    .now-card {
        grid-area: now;
        text-align: center;
    }

    .now-card .song-like-panel {
        margin-left: auto;
        margin-right: auto;
    }

    .comments-card {
        grid-area: comments;
    }

    .now-card h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .chips,
    .socials {
        justify-content: center;
    }

    .live-bottom {
        grid-template-columns: 1fr;
    }

    .live-bottom.is-requests-empty {
        grid-template-columns: 1fr;
    }

    .requests-layout {
        grid-template-columns: 1fr;
    }

    .player-dock {
        grid-template-columns: 1fr;
        min-height: 98px;
    }
}

@media (max-width: 900px) {
    body {
        overflow: hidden;
    }

    .app-shell {
        width: calc(100vw - 6px);
        height: calc(100vh - 6px);
        height: calc(100dvh - 6px);
        margin: 3px auto;
        padding: 6px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        gap: 8px;
        border-radius: 16px;
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(84vw, 290px);
        z-index: 52;
        transform: translateX(-108%);
        transition: transform 0.24s ease;
        box-shadow: 20px 0 42px rgba(0, 0, 0, 0.52);
        border-radius: 0 16px 16px 0;
        border-left: 0;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        overflow: auto;
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: rgba(2, 7, 13, 0.56);
        transition: opacity 0.2s ease;
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-sidebar-close {
        display: inline-flex;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        border: 1px solid var(--line-soft);
        background: rgba(8, 16, 28, 0.88);
        color: var(--text);
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        margin-bottom: 4px;
    }

    .brand {
        padding-bottom: 8px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .nav {
        flex-direction: column;
        gap: 6px;
    }

    .nav-btn {
        min-height: 40px;
        grid-template-columns: 18px minmax(0, 1fr);
        padding: 0 11px;
    }

    .quick {
        margin-top: auto;
    }

    .quick .ghost-btn {
        min-height: 38px;
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .topbar {
        min-height: 48px;
        padding: 6px;
        gap: 6px;
        justify-content: space-between;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .main-shell {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .topbar-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .topbar-pill {
        min-height: 32px;
        font-size: 0.71rem;
        padding: 0 8px;
        max-width: 138px;
    }

    .topbar-pill i {
        font-size: 0.82rem;
    }

    .datetime-card {
        min-width: 116px;
        width: auto;
        padding: 4px 6px;
    }

    .datetime-card .date-line {
        font-size: 0.52rem;
    }

    .datetime-card .time-line {
        font-size: 0.84rem;
    }

    .top-share-btn {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .share-modal-card {
        width: calc(100vw - 16px);
        padding: 10px;
    }

    .share-actions {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 9px;
        overflow-x: hidden;
    }

    #panel-live.is-active {
        grid-template-rows: auto auto;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
        align-content: center;
        justify-content: center;
    }

    #panel-live::before {
        inset: -14px;
        filter: blur(46px) saturate(1.16);
        opacity: 0.18;
    }

    .live-hero {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
        align-content: start;
    }

    .cover-card {
        align-items: center;
        gap: 7px;
    }

    .cover-card img {
        width: min(100%, 170px);
    }

    .cover-card::before {
        display: none;
    }

    .now-card {
        text-align: center;
    }

    .song-like-panel {
        display: none;
    }

    .now-card h1 {
        margin: 2px auto 0;
        font-size: clamp(1.2rem, 8vw, 1.72rem);
        max-width: 100%;
    }

    .now-card p {
        margin-top: 5px;
        font-size: 0.94rem;
    }

    .chips,
    .socials {
        justify-content: center;
    }

    .comments-card,
    .live-bottom {
        display: none;
    }

    .mobile-live-extra {
        display: grid;
        grid-template-rows: auto;
        gap: 8px;
        align-self: start;
        align-items: start;
        height: auto;
    }

    .mobile-live-peek {
        align-content: start;
        height: auto;
    }

    .mobile-live-peek-list {
        align-content: start;
    }

    .mobile-live-controls {
        margin-top: 9px;
        display: flex;
        flex-direction: column;
        gap: 7px;
        align-items: stretch;
        width: min(100%, 280px);
        margin-left: auto;
        margin-right: auto;
    }

    #mobileVisualizer {
        display: block;
    }

    .play-btn--mobile {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        align-self: center;
    }

    .mobile-volume-wrap {
        min-height: 35px;
        width: 100%;
        grid-template-columns: min-content minmax(0, 1fr) auto;
        gap: 7px;
    }

    .mobile-like-btn {
        display: inline-flex;
        width: 100%;
    }

    #volumeSliderMobile {
        width: 100%;
    }

    .player-dock {
        display: none;
    }

    #panel-top.is-active,
    #panel-history.is-active,
    #panel-requests.is-active,
    #panel-library.is-active {
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 0;
    }

    .requests-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .request-details-card {
        display: grid;
        min-height: 0;
        max-height: 30vh;
        overflow: auto;
    }

    #panel-requests #requestsList {
        min-height: 0;
        height: 100%;
    }

    .panel-header {
        flex-wrap: wrap;
    }

    .panel-header h2 {
        font-size: 1.14rem;
    }

    .history-tools {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .history-tools input,
    .history-tools select {
        min-width: 140px;
    }

    #panel-requests .timeline {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 8px 0;
    }

    #panel-requests .timeline .badge {
        min-height: 22px;
        border-radius: 9px;
        justify-content: center;
        font-size: 0.64rem;
        padding: 2px 6px;
    }

    #requestsList .card-row {
        min-height: 58px;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        padding: 8px;
    }

    #requestsList .card-row img {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    #requestsList .card-main strong {
        font-size: 0.85rem;
    }

    #requestsList .card-main small {
        font-size: 0.74rem;
    }

    #requestsList .request-note {
        display: none;
    }

    #requestsList .card-meta {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 4px;
    }

    #requestsList .badge {
        min-height: 20px;
        padding: 1px 7px;
        font-size: 0.65rem;
    }

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

    .library-filters {
        max-height: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        overflow: visible;
    }

    .library-filters .filters-advanced {
        grid-column: 1 / -1;
    }

    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .library-results .table-head,
    .library-results .row-item {
        grid-template-columns: 26px minmax(0, 1fr) 70px;
        gap: 7px;
    }

    .library-results .table-head span:nth-child(3),
    .library-results .row-item .row-artist {
        display: none;
    }

    .library-results .row-item {
        min-height: 50px;
        padding: 7px 8px;
    }

    .library-results .row-main strong {
        font-size: 0.84rem;
    }

    .library-results .row-main small {
        font-size: 0.73rem;
    }

    .library-results .pick-btn {
        min-height: 29px;
        border-radius: 9px;
        padding: 0 9px;
        font-size: 0.7rem;
    }

    .request-limit {
        width: 100%;
        justify-content: space-between;
        font-size: 0.76rem;
    }

    .composer {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 62;
        max-height: min(70vh, 480px);
        border: 1px solid var(--line);
        background: linear-gradient(180deg, rgba(6, 14, 25, 0.98), rgba(4, 10, 18, 0.99));
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        isolation: isolate;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56);
        transform: translateY(calc(100% + 20px));
        transition: transform 0.24s ease;
        pointer-events: none;
    }

    .composer.mobile-open {
        transform: translateY(0);
        pointer-events: auto;
        box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.58),
            0 0 0 120vmax rgba(2, 7, 13, 0.48);
    }

    #closeComposerBtn {
        display: inline-flex;
    }

    .comments-modal {
        padding: 8px;
    }

    .comments-modal-card {
        width: calc(100vw - 16px);
        height: min(84vh, 760px);
    }

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

    .selected-song img {
        width: 48px;
        height: 48px;
    }
}

@keyframes requestedPulse {
    0% { transform: scale(1); }
    32% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes playingEq {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1.65); }
}

@keyframes nowCardBreath {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes liveBadgeBreath {
    0%, 100% {
        transform: translateY(0);
        box-shadow:
            inset 0 0 0 1px rgba(255, 220, 124, 0.08),
            0 0 0 1px rgba(242, 197, 93, 0.14),
            0 0 14px rgba(255, 183, 71, 0.2);
    }
    50% {
        transform: translateY(-1px);
        box-shadow:
            inset 0 0 0 1px rgba(255, 230, 148, 0.12),
            0 0 0 1px rgba(242, 206, 109, 0.24),
            0 0 20px rgba(255, 199, 95, 0.34);
    }
}

@keyframes liveBadgeDot {
    0%, 100% { transform: scale(0.86); opacity: 0.86; }
    50% { transform: scale(1.28); opacity: 1; }
}

@keyframes coverGroove {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(var(--coverScale));
    }
    25% {
        transform: translateY(-1px) rotate(-0.22deg) scale(calc(var(--coverScale) * 1.008));
    }
    50% {
        transform: translateY(-2px) rotate(0.2deg) scale(calc(var(--coverScale) * 1.016));
    }
    75% {
        transform: translateY(-1px) rotate(-0.16deg) scale(calc(var(--coverScale) * 1.01));
    }
}

@keyframes liveCoverPulse {
    0%, 100% { opacity: 0.76; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.018); }
}

@keyframes panelSongFlash {
    0% { opacity: 0; transform: translateX(-44%); }
    36% { opacity: 1; transform: translateX(3%); }
    100% { opacity: 0; transform: translateX(18%); }
}

@keyframes coverChange {
    0% { opacity: 0.2; transform: scale(0.88) rotate(-4deg); filter: blur(2px) saturate(1.28); }
    55% { opacity: 1; transform: scale(1.03) rotate(0.45deg); filter: blur(0) saturate(1.14); }
    100% { opacity: 1; transform: scale(var(--coverScale)) rotate(0deg); filter: none; }
}

@keyframes nowCardSwap {
    0% { opacity: 0.22; transform: translateY(10px); filter: blur(2px); }
    55% { opacity: 1; transform: translateY(-2px); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: none; }
}

@keyframes valueSwap {
    0% { opacity: 0.24; transform: translateY(8px); filter: blur(1.6px); }
    58% { opacity: 1; transform: translateY(-1px); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    #panel-live.is-playing .cover-card::before,
    #panel-live.is-playing .cover-card img,
    .chip.live,
    .chip.live::before {
        animation: none !important;
    }
}

/* Final mobile override block to prevent mixed breakpoints from breaking layout. */
@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
        width: calc(100vw - 6px) !important;
        height: calc(100vh - 6px) !important;
        height: calc(100dvh - 6px) !important;
        margin: 3px auto !important;
        padding: 6px !important;
        gap: 8px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(84vw, 290px) !important;
        z-index: 52 !important;
        transform: translateX(-112%) !important;
        transition: transform 0.24s ease !important;
        box-shadow: 20px 0 42px rgba(0, 0, 0, 0.52) !important;
        border-radius: 0 16px 16px 0 !important;
        border-left: 0 !important;
        padding: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        overflow: auto !important;
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    .app-shell:not(.sidebar-open) .sidebar {
        pointer-events: none !important;
    }

    .main-shell {
        min-height: 0 !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .panel-host {
        min-height: 0 !important;
        height: 100% !important;
    }

    .panel {
        min-height: 0 !important;
        padding: 9px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    #panel-live.is-active {
        display: grid !important;
        grid-template-rows: auto auto !important;
        align-content: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
        overflow-x: hidden !important;
    }

    .live-hero {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
        gap: 10px !important;
        align-items: start !important;
        align-content: start !important;
    }

    .cover-card {
        align-items: center !important;
    }

    .cover-card img {
        width: min(100%, 170px) !important;
    }

    .now-card {
        text-align: center !important;
    }

    .now-card h1 {
        max-width: 100% !important;
    }

    .mobile-live-controls {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 7px !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 8px auto 0 !important;
    }

    #mobileVisualizer {
        display: block !important;
    }

    .mobile-like-btn {
        display: inline-flex !important;
        width: 100% !important;
    }

    .play-btn--mobile {
        align-self: center !important;
    }

    .comments-card,
    .live-bottom,
    .player-dock {
        display: none !important;
    }

    .mobile-live-extra {
        display: grid !important;
        grid-template-rows: auto !important;
        gap: 8px !important;
        align-self: start !important;
        align-items: start !important;
        height: auto !important;
    }

    .mobile-live-peek {
        align-content: start !important;
        height: auto !important;
    }

    .mobile-live-peek-list {
        align-content: start !important;
    }

    #panel-top.is-active,
    #panel-history.is-active,
    #panel-library.is-active {
        grid-template-rows: auto minmax(0, 1fr) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #panel-requests.is-active {
        grid-template-rows: auto auto minmax(0, 1fr) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #historyList,
    #topList,
    #requestsList,
    #libraryList {
        min-height: 0 !important;
        height: 100% !important;
        overflow: auto !important;
    }

    .requests-layout {
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        gap: 8px !important;
    }

    .request-details-card {
        display: grid !important;
        min-height: 0 !important;
        max-height: 30vh !important;
        overflow: auto !important;
    }

    #panel-requests #requestsList {
        min-height: 0 !important;
        height: 100% !important;
    }

    #panel-requests .timeline {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 8px 0 !important;
        overflow-x: auto !important;
        padding-bottom: 2px !important;
    }

    #panel-requests .timeline .badge {
        flex: 0 0 auto !important;
        min-height: 24px !important;
        border-radius: 999px !important;
        justify-content: center !important;
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    #requestsList .card-row {
        min-height: 0 !important;
        padding: 8px !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: center !important;
    }

    #requestsList .card-row img {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
    }

    #requestsList .card-main strong {
        font-size: 0.84rem !important;
    }

    #requestsList .card-main small {
        font-size: 0.73rem !important;
    }

    #requestsList .request-note {
        display: none !important;
    }

    #requestsList .card-meta {
        justify-content: flex-start !important;
        gap: 5px !important;
        flex-wrap: wrap !important;
    }

    #requestsList .badge {
        min-height: 20px !important;
        padding: 1px 7px !important;
        font-size: 0.65rem !important;
    }

    .library-layout {
        min-height: 0 !important;
        height: 100% !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    .library-filters {
        max-height: none !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .library-filters .filters-advanced {
        grid-column: 1 / -1 !important;
    }

    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .library-results {
        min-height: 0 !important;
        height: 100% !important;
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) auto !important;
        overflow: hidden !important;
    }

    .library-results .table-head,
    .library-results .row-item {
        grid-template-columns: 26px minmax(0, 1fr) 70px !important;
        gap: 7px !important;
    }

    .library-results .table-head span:nth-child(3),
    .library-results .row-item .row-artist {
        display: none !important;
    }

    .library-results .row-item {
        min-height: 48px !important;
        padding: 7px 8px !important;
    }

    .composer {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        z-index: 62 !important;
        max-height: min(70vh, 480px) !important;
        border: 1px solid var(--line) !important;
        background: linear-gradient(180deg, rgba(6, 14, 25, 0.98), rgba(4, 10, 18, 0.99)) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        backdrop-filter: blur(8px) !important;
        isolation: isolate !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56) !important;
        transform: translateY(calc(100% + 20px)) !important;
        transition: transform 0.24s ease !important;
        pointer-events: none !important;
    }

    .composer.mobile-open {
        transform: translateY(0) !important;
        pointer-events: auto !important;
        box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.58),
            0 0 0 120vmax rgba(2, 7, 13, 0.48) !important;
    }

    #closeComposerBtn {
        display: inline-flex !important;
    }
}

@media (min-width: 901px) and (max-width: 1366px) and (pointer: coarse) {
    body {
        overflow-y: auto;
    }

    .app-shell {
        width: min(1700px, calc(100vw - 24px));
        height: calc(100vh - 14px);
        height: calc(100dvh - 14px);
        margin: 7px auto;
        border-radius: 20px;
    }

    .panel {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 900px) {
    .cookie-settings-btn {
        right: 12px;
        bottom: 74px;
        min-height: 34px;
        padding-inline: 10px;
    }

    .cookie-banner {
        width: min(520px, calc(100vw - 18px));
        bottom: 56px;
        padding: 10px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: flex-end;
    }

    .cookie-modal-card {
        width: min(520px, calc(100vw - 20px));
        padding: 10px;
    }

    .cookie-option {
        align-items: flex-start;
    }
}

/* Mobile UX pack: compact layout, balanced vertical centering and unobtrusive cookie access. */
@media (max-width: 900px) {
    .app-shell {
        padding-top: max(6px, env(safe-area-inset-top)) !important;
        padding-right: max(6px, env(safe-area-inset-right)) !important;
        padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
        padding-left: max(6px, env(safe-area-inset-left)) !important;
    }

    .topbar {
        min-height: 44px !important;
        padding: 5px 6px !important;
        gap: 6px !important;
    }

    .topbar-left {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .topbar-pill {
        min-height: 30px !important;
        max-width: 122px !important;
        padding: 0 7px !important;
        font-size: 0.7rem !important;
    }

    .datetime-card {
        min-width: 106px !important;
        padding: 3px 6px !important;
    }

    .datetime-card .date-line {
        font-size: 0.5rem !important;
    }

    .datetime-card .time-line {
        font-size: 0.8rem !important;
    }

    .datetime-card .tz {
        display: none !important;
    }

    #panel-live.is-active {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 10px !important;
        overflow-y: auto !important;
    }

    .live-hero {
        gap: 8px !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
        flex: 0 0 auto !important;
    }

    .cover-card {
        gap: 5px !important;
    }

    .cover-card img {
        width: min(100%, 180px) !important;
    }

    .now-card {
        margin-top: 12px !important;
    }

    .chips,
    .socials {
        width: min(100%, 248px) !important;
        gap: 5px !important;
    }

    .chips {
        row-gap: 6px !important;
    }

    .chip.requested {
        max-width: 100% !important;
    }

    .chip.live {
        border-color: rgba(255, 215, 118, 0.55) !important;
        box-shadow:
            inset 0 0 0 1px rgba(255, 236, 164, 0.14),
            0 0 0 1px rgba(255, 211, 109, 0.28),
            0 0 20px rgba(255, 188, 79, 0.38) !important;
    }

    .chip.live::before {
        width: 8px !important;
        height: 8px !important;
        box-shadow:
            0 0 0 2px rgba(63, 255, 162, 0.22),
            0 0 14px rgba(63, 255, 162, 0.74) !important;
    }

    .now-card h1 {
        margin: 0 auto !important;
        font-size: clamp(1.16rem, 7.6vw, 1.62rem) !important;
        line-height: 1.07 !important;
    }

    .now-card p {
        margin-top: 5px !important;
        font-size: 0.9rem !important;
    }

    .mobile-live-controls {
        display: grid !important;
        grid-template-columns: 46px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "play volume like"
            "viz viz viz" !important;
        align-items: center !important;
        column-gap: 9px !important;
        row-gap: 8px !important;
        width: min(100%, 334px) !important;
        max-width: 334px !important;
        margin: 8px auto 0 !important;
        padding-bottom: 6px !important;
    }

    .play-btn--mobile {
        grid-area: play !important;
        width: 46px !important;
        height: 46px !important;
        border-radius: 12px !important;
    }

    .mobile-volume-wrap {
        grid-area: volume !important;
        min-height: 36px !important;
        width: 100% !important;
        padding: 0 10px !important;
        grid-template-columns: min-content minmax(0, 1fr) auto !important;
        gap: 7px !important;
    }

    #volumeSliderMobile {
        width: 100% !important;
    }

    #volumeLabelMobile {
        min-width: 30px !important;
        font-size: 0.72rem !important;
    }

    .mobile-like-btn {
        grid-area: like !important;
        display: inline-flex !important;
        width: auto !important;
        min-height: 36px !important;
        padding: 0 11px !important;
        gap: 6px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }

    .mobile-like-btn strong {
        min-width: 12px !important;
    }

    #mobileVisualizer {
        grid-area: viz !important;
        display: block !important;
        height: 44px !important;
        border: 1px solid rgba(120, 164, 214, 0.28) !important;
        background: rgba(8, 18, 32, 0.82) !important;
        border-radius: 12px !important;
        margin-top: 2px !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .mobile-live-extra {
        gap: 8px !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 8px auto 0 !important;
        display: grid !important;
        grid-template-rows: auto !important;
        align-content: start !important;
        flex: 1 1 auto !important;
    }

    .mobile-live-peek {
        padding: 9px !important;
        gap: 8px !important;
        min-height: 286px !important;
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        position: relative !important;
        z-index: 2 !important;
        background: rgba(9, 18, 31, 0.62) !important;
        flex: 1 1 auto !important;
    }

    .mobile-live-peek-list {
        max-height: min(47vh, 420px) !important;
        min-height: 0 !important;
        overflow: auto !important;
        padding-right: 2px !important;
    }

    .mobile-queue-card {
        display: none !important;
    }

    .mobile-featured-comment-card {
        display: grid !important;
        min-height: 118px !important;
    }

    .mobile-comment-actions {
        gap: 5px !important;
    }

    .mobile-comment-actions .ghost-btn {
        min-height: 27px !important;
        padding: 0 8px !important;
        font-size: 0.7rem !important;
    }

    .comments-card {
        display: none !important;
    }

    .comments-card .comments-head,
    .comments-card #commentList {
        display: none !important;
    }

    .comments-card .comments-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .comments-card .comment-composer-panel {
        position: fixed !important;
        inset:
            max(10px, env(safe-area-inset-top))
            10px
            max(10px, env(safe-area-inset-bottom))
            10px !important;
        z-index: 70 !important;
        max-height: calc(100dvh - 20px) !important;
    }

    .mobile-queue-list {
        gap: 5px !important;
    }

    .mobile-featured-comment-body p {
        font-size: 0.82rem !important;
    }

    .mobile-featured-comment-body small {
        font-size: 0.71rem !important;
    }

    .mobile-peek-row {
        min-height: 54px !important;
    }

    .cookie-settings-btn {
        display: none !important;
    }

    .cookie-menu-btn {
        display: inline-flex !important;
        width: 100% !important;
        min-height: 36px !important;
    }
}

@media (max-width: 390px) {
    .topbar-pill {
        max-width: 108px !important;
    }

    .datetime-card {
        min-width: 96px !important;
    }

    .mobile-like-btn .mobile-like-text {
        display: none !important;
    }
}
