:root {
    --bg-1: #0f122c;
    --bg-2: #141b3c;
    --glow-1: #2f2e67;
    --glow-2: #1f3d6e;
    --card-1: #1a2347;
    --card-2: #111a37;
    --surface-1: #1e274d;
    --surface-2: #162241;
    --orange: #f97316;
    --orange-2: #fb923c;
    --accent-rgb: 249 115 22;
    --accent2-rgb: 251 146 60;
    --mini-1: #8d4c1e;
    --mini-2: #5f3b2f;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --line: rgba(255, 255, 255, 0.16);
    --card-outline: rgba(203, 213, 225, 0.28);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 10%, var(--glow-1) 0%, transparent 36%),
        radial-gradient(circle at 90% 78%, var(--glow-2) 0%, transparent 30%),
        linear-gradient(140deg, var(--bg-1), var(--bg-2));
    overflow-x: hidden;
    padding-bottom: 88px;
}

html,
body {
    overflow-y: auto;
}

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

@keyframes pulseLive {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
    }
    60% {
        box-shadow: 0 0 0 9px rgba(239, 68, 68, 0);
    }
}

@keyframes softGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(var(--accent-rgb), 0));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.35));
    }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(90deg, var(--card-1), var(--card-2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar-inner {
    width: min(1280px, 96vw);
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    min-width: 0;
}

.brand-text {
    display: grid;
    min-width: 0;
    line-height: 1.1;
}

.brand-text strong {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text small {
    margin-top: 3px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.top-link-btn {
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 14px;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.ghost-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.34);
}

.ghost-btn:active {
    transform: translateY(0) scale(0.98);
}

.station-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 16px;
}

.station-modal.hidden {
    display: none;
}

.station-modal-content {
    width: min(520px, 95vw);
    background: #101934;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 14px;
}

.station-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.station-modal-head button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.station-list {
    display: grid;
    gap: 8px;
}

.station-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.station-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.layout {
    width: min(1280px, 96vw);
    margin: 0 auto;
    padding: 18px 16px 24px;
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(260px, 300px);
    gap: 18px;
}

.layout.layout--no-main {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.layout.layout--no-side {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.layout.layout--left-only {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
}

.card {
    background: linear-gradient(160deg, var(--card-1), var(--card-2));
    border: 1px solid var(--card-outline);
    border-radius: 22px;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent2-rgb), 0.56);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(var(--accent2-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.player-card {
    padding: 16px;
    animation: fadeUp 0.55s var(--ease-out) both;
    position: relative;
}

.player-card:hover {
    transform: none;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-badge {
    background: linear-gradient(130deg, #ef4444, #f97316);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    animation: pulseLive 1.8s infinite;
}

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

.cover-wrapper {
    position: relative;
    width: min(260px, 72vw);
    aspect-ratio: 1 / 1;
    margin: 14px auto 10px;
}

.progress-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s linear;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-linecap: round;
    animation: softGlow 2.2s ease-in-out infinite;
}

.cover {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.music-info {
    text-align: center;
}

.label {
    color: #fdba74;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    margin-bottom: 8px;
}

#title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

#artist {
    margin-top: 4px;
    color: #dbeafe;
}

.controls {
    margin-top: 18px;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.player-main-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.play-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: var(--orange);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    box-shadow: none;
}

.play-btn-icon {
    font-size: 0.92rem;
    line-height: 1;
}

.play-btn-text {
    font-size: 1rem;
    line-height: 1;
}

.play-btn:hover {
    transform: none;
    filter: none;
    box-shadow: none;
}

.play-btn:active {
    transform: none;
}

.play-btn.playing {
    background: #fff;
    color: var(--orange);
    box-shadow: none;
}

.volume-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    width: min(300px, 100%);
}

.volume-icon {
    font-size: 1rem;
    line-height: 1;
    color: #ffffff;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.volume-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

input[type="range"] {
    width: 100%;
    accent-color: #ffffff;
}

#volume {
    width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

#miniVolume {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

#volume::-webkit-slider-runnable-track,
#miniVolume::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

#volume::-webkit-slider-thumb,
#miniVolume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: -7px;
    border: 0;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.18);
}

#volume::-moz-range-track,
#miniVolume::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
}

#volume::-moz-range-thumb,
#miniVolume::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 0;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.18);
}

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

.player-upcoming {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.player-upcoming .block-head {
    margin-bottom: 10px;
}

.player-upcoming .block-head h2 {
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.chip-btn {
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #fff;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
    box-shadow: none;
}

.chip-btn:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.44);
}

.chip-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chip-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.chip-count {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
    min-width: 1ch;
}

.chip-btn--like:hover {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.85);
    background: rgba(34, 197, 94, 0.12);
}

.chip-btn--dislike:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.85);
    background: rgba(239, 68, 68, 0.12);
}

.player-shortcuts {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
}

.shortcut-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 8px;
    color: #fff;
    text-decoration: none;
    display: grid;
    justify-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
    min-width: 0;
    overflow: hidden;
    font-family: inherit;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.shortcut-btn span {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.shortcut-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--accent2-rgb), 0.7);
}

.shortcut-btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.shortcut-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.left-content,
.main-content,
.side-content {
    display: grid;
    gap: 18px;
    align-content: start;
    animation: fadeUp 0.7s var(--ease-out) both;
}

.left-content {
    position: sticky;
    top: 86px;
    align-self: start;
    height: fit-content;
}

.block {
    padding: 18px;
}

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

.block-head h2 {
    font-size: clamp(1.08rem, 1.9vw, 1.42rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: none;
    line-height: 1.15;
}

.title-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    opacity: 0.95;
    flex: 0 0 auto;
}

.days {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.day:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
}

.day.active {
    background: var(--orange);
    border-color: rgba(255, 255, 255, 0.3);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.left-content .schedule-grid,
.player-upcoming .schedule-grid {
    grid-template-columns: 1fr;
}

.show-item {
    border: 1px solid var(--card-outline);
    border-radius: 16px;
    background: linear-gradient(150deg, var(--surface-1), var(--surface-2));
    padding: 10px;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 10px;
    transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), background 0.22s var(--ease-out);
}

.show-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(150deg, rgba(var(--accent2-rgb), 0.18), rgba(255, 255, 255, 0.05));
    border-color: rgba(var(--accent2-rgb), 0.52);
}

.show-item[hidden] {
    display: none !important;
}

.show-item img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    justify-self: center;
    align-self: center;
}

.show-item > div {
    min-width: 0;
}

.show-item .hour {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.show-item h3 {
    margin-top: 4px;
    font-size: 1.02rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.show-item p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

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

.listener-kpi {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(150deg, var(--surface-1), var(--surface-2));
    padding: 12px;
    text-align: center;
}

.listener-kpi span {
    display: block;
    color: #93c5fd;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.listener-kpi strong {
    font-size: 1.4rem;
    font-weight: 800;
}

.latest-tracks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

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

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-outline);
    background: #0f172a;
    aspect-ratio: 16 / 9;
    min-height: 0;
    display: grid;
    place-items: center;
}

.gallery-item[hidden] {
    display: none !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    background: transparent;
    display: block;
    cursor: pointer;
    transition: transform 0.28s var(--ease-out), filter 0.28s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.02);
}

.gallery-more-btn {
    margin: 12px auto 0;
    width: fit-content;
    min-height: 44px;
    border-radius: 13px;
    border: 1px solid rgba(203, 213, 225, 0.35);
    background: linear-gradient(150deg, rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0.18));
    color: #e5e7eb;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.gallery-more-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent2-rgb), 0.65);
    background: linear-gradient(150deg, rgba(var(--accent2-rgb), 0.24), rgba(15, 23, 42, 0.24));
}

.gallery-more-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.gallery-more-btn.is-expanded {
    border-color: rgba(var(--accent2-rgb), 0.75);
}

.gallery-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    padding: 12px;
    color: var(--muted);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    display: none;
    place-items: center;
    z-index: 50;
    padding: 14px;
}

.gallery-modal.is-open {
    display: grid;
}

.gallery-modal__dialog {
    position: relative;
    width: min(92vw, 980px);
    max-height: min(82vh, 900px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.9);
    padding: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    display: grid;
    gap: 8px;
}

.gallery-modal__dialog img {
    width: 100%;
    max-height: min(68vh, 760px);
    object-fit: contain;
    border-radius: 10px;
    background: #020617;
}

.gallery-modal__close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.gallery-modal__caption {
    color: #e2e8f0;
    font-size: 0.92rem;
    min-height: 1.2em;
}

.gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-modal__nav--prev {
    left: 10px;
}

.gallery-modal__nav--next {
    right: 10px;
}

@media (min-width: 860px) {
    .gallery-modal__nav {
        display: inline-flex;
    }
}

.request-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
    display: none;
    place-items: center;
    z-index: 55;
    padding: 14px;
}

.request-modal.is-open {
    display: grid;
}

.request-modal__dialog {
    width: min(720px, 92vw);
    max-height: 80vh;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(160deg, var(--card-1), var(--card-2));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
    padding: 14px;
    display: grid;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.86) rgba(255, 255, 255, 0.08);
}

.request-modal__dialog::-webkit-scrollbar {
    width: 10px;
}

.request-modal__dialog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.request-modal__dialog::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange), var(--orange-2));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.request-modal__dialog::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.06);
}

.request-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.request-modal__head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.request-modal__close {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

.request-modal__info {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.request-modal__search {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    padding: 10px 11px;
    font-family: inherit;
}

.request-modal__search::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.request-modal__search:focus {
    outline: none;
    border-color: rgba(var(--accent2-rgb), 0.74);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.24);
}

.request-modal__list {
    display: grid;
    gap: 8px;
}

.request-song-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--card-outline);
    border-radius: 12px;
    padding: 9px 10px;
    background: linear-gradient(150deg, var(--surface-1), var(--surface-2));
}

.request-song-meta {
    min-width: 0;
}

.request-song-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
}

.request-song-artist {
    margin: 2px 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.request-song-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(var(--accent-rgb), 0.34);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.request-song-btn:hover {
    background: rgba(var(--accent2-rgb), 0.58);
    border-color: rgba(255, 255, 255, 0.52);
    color: #fff;
}

.request-song-btn[disabled] {
    opacity: 0.7;
    cursor: default;
}

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

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(1280px, 96vw);
    z-index: 60;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(120deg, var(--card-1), var(--card-2));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--orange), var(--orange-2));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.cookie-banner__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.cookie-banner__content strong {
    display: block;
    font-size: 1.12rem;
    margin-bottom: 4px;
}

.cookie-banner__content p {
    margin: 0;
    color: #dbe5f3;
    font-size: 0.93rem;
    line-height: 1.45;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner__actions .vote-btn {
    margin-top: 0;
    width: auto;
    min-width: 132px;
    min-height: 42px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    font-size: 0.96rem;
}

.terms-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
    display: none;
    place-items: center;
    z-index: 65;
    padding: 14px;
}

.terms-modal.is-open {
    display: grid;
}

.terms-modal__dialog {
    width: min(760px, 94vw);
    max-height: 84vh;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(160deg, var(--card-1), var(--card-2));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.terms-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.terms-modal__head h2 {
    font-size: 1.08rem;
}

.terms-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    font-size: 1.18rem;
    cursor: pointer;
}

.terms-modal__body {
    display: grid;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.terms-modal__body p {
    margin: 0;
}

#requestPageLabel {
    font-size: 0.9rem;
    color: var(--muted);
}

.track-item {
    border: 1px solid var(--card-outline);
    border-radius: 14px;
    background: linear-gradient(150deg, var(--surface-1), var(--surface-2));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.track-item:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent2-rgb), 0.52);
}

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

.track-item div {
    padding: 10px;
    display: grid;
    gap: 4px;
    align-content: start;
    flex: 1 1 auto;
}

.track-item h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-item p {
    color: var(--muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-item span {
    color: #fbbf24;
    font-size: 0.78rem;
}

.program-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.program-day-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    color: #e5e7eb;
    border-radius: 999px;
    min-width: 58px;
    padding: 8px 12px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.program-day-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
}

.program-day-btn.is-active {
    background: linear-gradient(130deg, var(--orange), var(--orange-2));
    border-color: transparent;
    color: #fff;
}

.program-viewport {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out), filter 0.24s var(--ease-out);
    will-change: opacity, transform;
    align-items: stretch;
}

.program-viewport.is-switching {
    opacity: 0.32;
    transform: translateY(6px) scale(0.995);
    filter: saturate(0.94);
}

.program-item {
    border: 1px solid var(--card-outline);
    border-radius: 14px;
    background: linear-gradient(150deg, var(--surface-1), var(--surface-2));
    padding: 8px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
        "cover time"
        "title title"
        "subtitle subtitle";
    column-gap: 6px;
    row-gap: 0;
    align-items: start;
    min-height: 106px;
    height: 100%;
    animation: programItemIn 0.34s var(--ease-out) both;
}

.program-item.is-live {
    position: relative;
    border-color: rgba(var(--accent2-rgb), 0.9);
    box-shadow:
        0 0 0 1px rgba(var(--accent2-rgb), 0.45),
        0 12px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.2), rgba(22, 34, 65, 0.95));
}

.program-live-badge {
    display: none;
    margin-left: 0;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(130deg, #ef4444, #f97316);
    border: 1px solid rgba(255, 255, 255, 0.28);
    vertical-align: middle;
    flex: 0 0 auto;
}

.program-item.is-live .program-live-badge {
    display: inline-flex;
    align-items: center;
}

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

.program-item[hidden] {
    display: none !important;
}

.program-item img {
    width: 54px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
    grid-area: cover;
    align-self: start;
    border: 1px solid rgba(203, 213, 225, 0.42);
}

.program-time {
    grid-area: time;
    min-width: 0;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
}

.program-time-text {
    white-space: nowrap;
    min-width: 0;
}

.program-title {
    grid-area: title;
    font-size: 0.92rem;
    line-height: 1.15;
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.program-subtitle {
    grid-area: subtitle;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.1;
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.program-nav {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.program-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.program-arrow:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.program-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.program-dot.is-active {
    background: var(--orange);
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-row {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(150deg, var(--surface-1), var(--surface-2));
}

.schedule-time {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.86rem;
}

.schedule-day {
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-row h3 {
    margin-top: 3px;
    font-size: 1rem;
    line-height: 1.2;
}

.schedule-row p {
    color: var(--muted);
    font-size: 0.9rem;
}

.question {
    color: #fef3c7;
    margin-bottom: 10px;
    font-weight: 700;
}

.poll-list {
    display: grid;
    gap: 8px;
}

.poll-list label {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    display: flex;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.poll-list label:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent2-rgb), 0.5);
    background: linear-gradient(130deg, rgba(var(--accent2-rgb), 0.2), rgba(255, 255, 255, 0.05));
}

.poll-list label:has(input:checked) {
    border-color: rgba(var(--accent2-rgb), 0.72);
    background: linear-gradient(130deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent2-rgb), 0.1));
}

.vote-btn {
    margin-top: 12px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 11px;
    background: linear-gradient(130deg, var(--orange), var(--orange-2));
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), filter 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.vote-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: 0 8px 16px rgba(var(--accent-rgb), 0.32);
}

.vote-btn:active {
    transform: translateY(0) scale(0.99);
}

.is-pressed {
    transform: scale(0.97) !important;
}

.app-card .app-help {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.app-actions {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.app-actions .ghost-btn {
    width: 100%;
}

.app-actions button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.ad-link {
    display: none;
    gap: 8px;
    text-decoration: none;
    color: #fff;
}

.ad-link.is-active {
    display: grid;
}

.ad-carousel {
    display: grid;
}

.ad-link img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--card-outline);
    display: block;
    object-fit: contain;
    object-position: center;
    background: rgba(2, 6, 23, 0.08);
    aspect-ratio: auto;
    height: auto;
    max-height: 380px;
}

.ad-link p {
    color: #e2e8f0;
    font-size: 0.92rem;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.socials a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.socials a[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.mini-player {
    position: fixed;
    left: 50%;
    right: auto;
    width: min(1280px, 96vw);
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 8;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: linear-gradient(90deg, var(--card-1), var(--card-2));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 52px 8px 12px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow: hidden;
}

.mini-player.is-hidden {
    transform: translate(-50%, 120%);
    opacity: 0;
    pointer-events: none;
}

.mini-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: min(58vw, 780px);
    flex: 1 1 auto;
}

.mini-left div {
    min-width: 0;
}

.mini-left img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

#miniTitle {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#miniArtist {
    color: #f1f5f9;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: clamp(10px, 2vw, 22px);
    margin-right: 34px;
    flex: 0 0 auto;
}

.mini-controls button {
    border: 0;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fbbf24;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), background 0.18s var(--ease-out), filter 0.18s var(--ease-out);
}

.mini-controls button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.mini-controls button svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.mini-controls .mini-chip-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mini-controls .mini-chip-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mini-controls .mini-chip-btn.chip-btn--like:hover {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.85);
    background: rgba(34, 197, 94, 0.12);
}

.mini-controls .mini-chip-btn.chip-btn--dislike:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.85);
    background: rgba(239, 68, 68, 0.12);
}

#playBtnMini {
    width: auto;
    height: auto;
    border-radius: 999px;
    background: #fff;
    color: var(--orange);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 1rem;
}

.mini-volume-icon {
    color: #ffffff;
    opacity: 1;
}

#closeMiniPlayerBtn {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

#closeMiniPlayerBtn:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(0, 0, 0, 0.7);
}

#miniVolume {
    width: 125px;
}

@media (max-width: 1180px) {
    .layout {
        grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
    }

    .side-content {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 12px 20px;
    }

    .side-content {
        grid-template-columns: 1fr;
    }

    .schedule-grid,
    .latest-tracks,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .block-head h2 {
        font-size: 1.22rem;
    }

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

    .player-card {
        padding: 14px;
    }

    .card-actions {
        gap: 8px;
    }

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

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

@media (max-width: 580px) {
    body {
        padding-bottom: 118px;
    }

    .brand {
        flex: 1;
        min-width: 0;
    }

    .brand-text {
        min-width: 0;
    }

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

    .ghost-btn {
        padding: 8px 10px;
    }

    .topbar-inner {
        width: 94vw;
        padding: 10px 0;
    }

    .top-link-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .cover-wrapper {
        width: min(240px, 74vw);
    }

    .player-main-actions {
        flex-wrap: wrap;
    }

    .play-btn {
        width: 100%;
        justify-content: center;
    }

    .schedule-grid,
    .latest-tracks {
        grid-template-columns: 1fr;
    }

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

    .track-item img {
        height: 108px;
    }

    .ad-link img {
        max-height: 170px;
        border-radius: 10px;
    }

    .program-viewport {
        grid-template-columns: 1fr;
    }

    .program-day-btn {
        min-width: 52px;
        padding: 7px 10px;
        font-size: 0.88rem;
    }

    .program-item {
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-areas:
            "cover time"
            "title title"
            "subtitle subtitle";
        padding: 8px;
        min-height: 100px;
    }

    .program-item img {
        width: 52px;
        height: 52px;
    }

    .program-live-badge {
        margin-left: 0;
        padding: 2px 6px;
        font-size: 0.62rem;
    }

    .program-arrow {
        width: 38px;
        height: 38px;
    }

    .block {
        padding: 14px;
    }

    .block-head h2 {
        font-size: 1.08rem;
    }

    .show-item {
        grid-template-columns: 52px 1fr;
        gap: 8px;
        padding: 9px;
    }

    .show-item img {
        width: 52px;
        height: 52px;
    }

    .show-item .hour {
        font-size: 0.88rem;
    }

    .show-item h3 {
        font-size: 0.96rem;
    }

    .show-item p {
        font-size: 0.88rem;
    }

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

    .mini-player {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        left: 50%;
        right: auto;
        width: 94vw;
        bottom: 6px;
        padding: 9px 12px 8px;
        transform: translateX(-50%);
    }

    .mini-left {
        max-width: 100%;
        padding-right: 30px;
    }

    .mini-controls {
        margin-left: 0;
        justify-self: center;
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
    }

    #closeMiniPlayerBtn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }

    #miniVolume {
        width: min(120px, 32vw);
    }

    .mini-controls button {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .mini-controls .mini-chip-btn {
        width: 42px;
        height: 42px;
    }

    #playBtnMini {
        width: auto;
        height: auto;
        padding: 9px 14px;
        font-size: 0.95rem;
    }

    .mini-volume-icon {
        font-size: 0.9rem;
    }

    .cookie-banner {
        grid-template-columns: 1fr;
        gap: 10px;
        bottom: 8px;
        width: 94vw;
        padding: 12px;
    }

    .cookie-banner__icon {
        width: 42px;
        height: 42px;
    }

    .cookie-banner__content strong {
        font-size: 1rem;
    }

    .cookie-banner__content p {
        font-size: 0.88rem;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-banner__actions .vote-btn {
        min-width: 0;
        width: 100%;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .program-item {
        grid-template-columns: 54px minmax(0, 1fr);
        grid-template-areas:
            "cover time"
            "title title"
            "subtitle subtitle";
        align-items: start;
        min-height: 0;
    }

    .program-item img {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 420px) {
    .layout {
        width: 94vw;
        padding: 12px 0 18px;
    }

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

    .brand-text strong {
        font-size: 0.95rem;
    }

    .brand-text small {
        font-size: 0.7rem;
    }

    .live-badge {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .status {
        font-size: 0.7rem;
    }

    .block {
        padding: 12px;
    }

    .track-item img {
        height: 96px;
    }

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

    .ad-link img {
        max-height: 148px;
        border-radius: 9px;
    }

    .gallery-modal__dialog {
        width: min(94vw, 980px);
        max-height: 84vh;
        padding: 10px;
    }

    .request-modal__dialog {
        width: min(94vw, 720px);
        max-height: 82vh;
        padding: 10px;
    }

    .terms-modal__dialog {
        width: min(94vw, 760px);
        max-height: 82vh;
        padding: 12px;
    }

    .request-song-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .request-song-btn {
        width: 100%;
    }

    .gallery-modal__dialog img {
        max-height: 68vh;
    }

    #miniVolume {
        width: min(108px, 30vw);
    }
}
