.live-radio-widget,
.live-radio-room {
    position: relative;
    overflow: hidden;
    margin: 18px 0;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at 12% 10%, rgba(255,60,75,.22), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(36,242,154,.16), transparent 28%),
        linear-gradient(135deg, rgba(8,14,22,.98), rgba(31,10,20,.94));
    box-shadow: 0 22px 70px rgba(0,0,0,.24);
}

.dashboard-radio-deck {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 12px;
    margin: 12px 0 16px;
    padding: 13px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(36,242,154,.22);
    background:
        radial-gradient(circle at 12% 18%, rgba(36,242,154,.2), transparent 14rem),
        radial-gradient(circle at 84% 12%, rgba(40,183,255,.16), transparent 14rem),
        radial-gradient(circle at 70% 92%, rgba(255,48,69,.16), transparent 14rem),
        linear-gradient(135deg, rgba(5, 12, 18, .98), rgba(9, 22, 24, .98) 54%, rgba(16, 6, 18, .98));
    box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.dashboard-radio-deck::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(36,242,154,.1), transparent),
        repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 18px);
    opacity: .62;
    animation: radioDeckScan 5.8s linear infinite;
}

.dashboard-radio-deck > * {
    position: relative;
    z-index: 1;
}

.radio-deck-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.radio-deck-glow span {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(36,242,154,.25);
    animation: radioDeckWave 2.8s ease-out infinite;
}

.radio-deck-glow span:nth-child(1) { width: 120px; height: 120px; left: 22px; top: 14px; }
.radio-deck-glow span:nth-child(2) { width: 170px; height: 170px; right: 18px; top: -28px; animation-delay: .5s; border-color: rgba(40,183,255,.22); }
.radio-deck-glow span:nth-child(3) { width: 140px; height: 140px; left: 45%; bottom: -62px; animation-delay: 1s; border-color: rgba(255,48,69,.2); }

.dashboard-radio-deck .live-sound-access,
.dashboard-radio-deck .live-radio-widget {
    margin: 0;
    min-height: 0;
    border-radius: 18px;
    background: rgba(5, 14, 18, .72);
    border-color: rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 34px rgba(0,0,0,.18);
    backdrop-filter: blur(16px);
}

.dashboard-radio-deck .live-sound-access {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
        "control copy"
        "button button"
        "audio audio"
        "status status";
    align-items: center;
    gap: 10px 13px;
    padding: 14px;
}

.radio-control-stack {
    grid-area: control;
    display: grid;
    justify-items: center;
    gap: 9px;
}

.radio-power-orb {
    position: relative;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #06100f;
    background:
        radial-gradient(circle at 35% 30%, #fff, #24f29a 24%, #28b7ff 58%, #5a56ff);
    box-shadow: 0 0 0 8px rgba(36,242,154,.08), 0 0 34px rgba(36,242,154,.32);
}

.radio-power-orb i {
    font-size: 28px;
    z-index: 1;
}

.radio-power-orb span {
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(255,255,255,.38);
    border-radius: 50%;
    animation: radioDial 9s linear infinite;
}

.dashboard-radio-volume {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    width: 100%;
    padding: 7px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
}

.dashboard-radio-volume i {
    color: var(--green, #24f29a);
}

.dashboard-radio-volume input {
    width: 100%;
    accent-color: #24f29a;
}

.dashboard-radio-deck .live-sound-copy {
    grid-area: copy;
    align-items: flex-start;
}

.dashboard-radio-deck .live-sound-copy h3 {
    font-size: 20px;
    line-height: 1.08;
}

.dashboard-radio-deck .live-sound-copy p {
    font-size: 12px;
}

.dashboard-radio-deck .live-radio-badge {
    padding: 6px 9px;
    font-size: 10px;
}

.dashboard-radio-deck .radio-control-btn {
    grid-area: button;
    width: 100%;
    min-height: 42px;
    justify-content: space-between;
    padding: 7px 9px 7px 14px;
    border-radius: 999px;
    color: #04110e;
    background:
        linear-gradient(135deg, #24f29a, #28b7ff);
    box-shadow: 0 12px 30px rgba(36,242,154,.2);
}

.dashboard-radio-deck .radio-control-btn span {
    order: 2;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: rgba(4, 17, 14, .24);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}

.dashboard-radio-deck .radio-control-btn span::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.28);
    transition: transform .18s ease;
}

.dashboard-radio-deck .radio-control-btn.listening span::after {
    transform: translateX(22px);
    background: #f4c85b;
}

.dashboard-radio-deck .radio-control-btn b {
    font-size: 12px;
}

.dashboard-radio-deck .live-sound-access > audio {
    grid-area: audio;
    width: 100%;
}

.dashboard-radio-deck .dashboard-radio-status {
    grid-area: status;
}

.dashboard-radio-deck .live-radio-widget {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
}

.dashboard-radio-deck .radio-dial {
    width: 70px;
    height: 70px;
    box-shadow: 0 0 0 7px rgba(255,255,255,.06), 0 14px 34px rgba(255,48,69,.22);
}

.dashboard-radio-deck .radio-dial::before {
    font-size: 10px;
}

.dashboard-radio-deck .radio-widget-main h3 {
    font-size: 21px;
}

.dashboard-radio-deck .radio-time-row {
    gap: 7px;
    margin: 9px 0;
}

.dashboard-radio-deck .radio-time-row span {
    padding: 7px 9px;
    font-size: 11px;
}

.dashboard-radio-deck .join-radio-btn {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.dashboard-radio-deck .radio-upcoming-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.dashboard-radio-deck .radio-waves {
    right: 8px;
    top: 4px;
    transform: scale(.72);
    opacity: .45;
}

@keyframes radioDeckWave {
    from { opacity: .55; transform: scale(.45); }
    to { opacity: 0; transform: scale(1.5); }
}

@keyframes radioDeckScan {
    from { transform: translateX(-18%); }
    to { transform: translateX(18%); }
}

.live-radio-widget.is-live {
    border-color: rgba(255,60,75,.44);
    box-shadow: 0 0 30px rgba(255,60,75,.16), 0 22px 70px rgba(0,0,0,.28);
}

.live-radio-widget {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.live-radio-widget > *,
.live-radio-room > * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.radio-dial {
    position: relative;
    z-index: 1;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 32%, rgba(255,255,255,.32), transparent 22%),
        linear-gradient(145deg, #ff3045, #ff9f35);
    box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 18px 48px rgba(255,48,69,.2);
}

.radio-dial::before {
    content: "RADIO";
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.radio-dial span {
    position: absolute;
    inset: 15px;
    border: 2px dashed rgba(255,255,255,.5);
    border-radius: 50%;
    animation: radioDial 8s linear infinite;
}

.radio-widget-main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.radio-widget-main h3 {
    font-size: 28px;
    font-weight: 950;
    margin-bottom: 6px;
}

.live-radio-badge {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: #ff3045;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 0 20px rgba(255,48,69,.5);
    animation: liveBlink 1.1s infinite;
}

.is-live .live-radio-badge {
    animation: liveBlink .8s infinite;
}

.live-radio-badge.muted {
    background: rgba(255,255,255,.14);
    color: #cde0dc;
    animation: none;
    box-shadow: none;
}

.radio-time-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.radio-time-row span {
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    font-weight: 900;
    color: #f2fffb;
}

.join-radio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff3045, #ff9f35);
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(255,48,69,.18);
    animation: livePulse 1.8s ease-in-out infinite;
}

.join-radio-btn.muted {
    background: linear-gradient(135deg, #24f29a, #28b7ff);
    color: #06100f;
}

.join-radio-btn.listening {
    background: linear-gradient(135deg, #24f29a, #f4c85b);
    color: #06100f;
}

.live-radio-audio,
.live-radio-player,
.mic-listen-box audio {
    display: block;
    width: 100%;
    margin-top: 14px;
}

.no-forward-audio::-webkit-media-controls-timeline,
.no-forward-audio::-webkit-media-controls-current-time-display,
.no-forward-audio::-webkit-media-controls-time-remaining-display {
    display: none;
}

.mic-listen-box {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(36,242,154,.16);
    background: rgba(255,255,255,.06);
}

.live-sound-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-color: rgba(40,183,255,.3);
    background:
        linear-gradient(135deg, rgba(40,183,255,.13), rgba(36,242,154,.08)),
        rgba(10, 24, 29, .86);
}

.live-sound-access.is-live {
    border-color: rgba(255,48,69,.55);
    box-shadow: 0 0 28px rgba(255,48,69,.16), 0 18px 50px rgba(0,0,0,.22);
}

.live-sound-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-sound-copy h3 {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.live-sound-access > audio {
    width: min(360px, 100%);
}

.dashboard-radio-status {
    width: 100%;
    grid-column: 1 / -1;
}

.radio-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(0,0,0,.24);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.radio-control-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.1);
}

.radio-control-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.radio-control-btn span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255,255,255,.16);
}

.radio-control-btn.mini {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
}

.radio-control-btn.mic-on,
.radio-control-btn.listen-live {
    background: linear-gradient(135deg, #ff3045, #ff9f35);
}

.radio-control-btn.mic-on span,
.radio-control-btn.listen-live span {
    animation: liveBlink 1s infinite;
}

.radio-control-btn.mic-off {
    background: linear-gradient(135deg, #2b3542, #79828c);
}

.radio-upcoming-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.radio-upcoming-list div {
    padding: 11px;
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
}

.radio-upcoming-list span {
    display: block;
    color: #a9bfba;
    font-size: 12px;
    margin-top: 4px;
}

.radio-waves {
    position: absolute;
    right: 22px;
    top: 18px;
    width: 120px;
    height: 120px;
    opacity: .7;
}

.radio-waves span {
    position: absolute;
    inset: 30px;
    border: 2px solid rgba(255,48,69,.45);
    border-radius: 50%;
    animation: radioWave 2.2s infinite;
}

.radio-waves span:nth-child(2) { animation-delay: .4s; }
.radio-waves span:nth-child(3) { animation-delay: .8s; }

@keyframes radioWave {
    from { transform: scale(.3); opacity: 1; }
    to { transform: scale(1.45); opacity: 0; }
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

@keyframes radioDial {
    to { transform: rotate(360deg); }
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 18px 40px rgba(255,48,69,.18); }
    50% { box-shadow: 0 0 28px rgba(255,48,69,.34), 0 18px 40px rgba(255,48,69,.18); }
}

@media (max-width: 820px) {
    .dashboard-radio-deck {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        border-radius: 18px;
    }

    .dashboard-radio-deck .live-sound-access {
        grid-template-columns: 76px minmax(0, 1fr);
        padding: 12px;
        border-radius: 16px;
    }

    .dashboard-radio-deck .live-radio-widget {
        grid-template-columns: 70px minmax(0, 1fr);
        padding: 12px;
        border-radius: 16px;
    }

    .dashboard-radio-deck .radio-upcoming-list {
        grid-template-columns: 1fr;
    }

    .live-sound-access,
    .live-sound-copy {
        align-items: stretch;
        flex-direction: column;
    }

    .live-sound-access .radio-control-btn,
    .live-sound-access > audio {
        width: 100%;
        max-width: 100%;
    }

    .live-radio-widget,
    .live-radio-room {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 12px 0;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .live-radio-widget {
        grid-template-columns: 1fr;
    }
    .radio-dial {
        width: 88px;
        height: 88px;
    }
    .radio-upcoming-list {
        grid-template-columns: 1fr;
    }

    .radio-widget-main h3,
    .live-radio-room h2,
    .mic-listen-box h4 {
        overflow-wrap: anywhere;
    }

    .radio-time-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .radio-time-row span,
    .join-radio-btn,
    .radio-control-btn {
        width: 100%;
        max-width: 100%;
    }

    .live-radio-player,
    .live-radio-audio,
    .mic-listen-box audio {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }

    .mic-listen-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 14px 12px;
    }
    .radio-waves {
        opacity: .25;
    }
}

@media (max-width: 480px) {
    .dashboard-radio-deck {
        margin: 10px 0 13px;
    }

    .dashboard-radio-deck .live-sound-access {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px 10px;
    }

    .dashboard-radio-deck .radio-control-stack {
        gap: 7px;
    }

    .dashboard-radio-deck .radio-power-orb {
        width: 58px;
        height: 58px;
    }

    .dashboard-radio-deck .radio-power-orb i {
        font-size: 22px;
    }

    .dashboard-radio-deck .dashboard-radio-volume {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 6px;
    }

    .dashboard-radio-deck .dashboard-radio-volume input {
        height: 18px;
    }

    .dashboard-radio-deck .live-sound-copy h3 {
        font-size: 17px;
    }

    .dashboard-radio-deck .live-sound-copy p {
        font-size: 11px;
    }

    .dashboard-radio-deck .radio-control-btn {
        min-height: 40px;
    }

    .dashboard-radio-deck .radio-control-btn b {
        font-size: 11px;
    }

    .dashboard-radio-deck .live-radio-widget {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .dashboard-radio-deck .radio-dial {
        width: 58px;
        height: 58px;
    }

    .dashboard-radio-deck .radio-widget-main h3 {
        font-size: 18px;
    }

    .dashboard-radio-deck .radio-time-row span {
        font-size: 10px;
    }

    .live-radio-widget,
    .live-radio-room {
        padding: 14px 12px;
    }

    .live-radio-page h1 {
        font-size: 27px;
        overflow-wrap: anywhere;
    }

    .live-radio-room h2 {
        font-size: 23px;
    }

    .radio-time-row span {
        padding: 8px 9px;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .mic-listen-box {
        padding: 12px 10px;
    }

    .radio-dial {
        width: 76px;
        height: 76px;
    }

    .radio-widget-main h3 {
        font-size: 22px;
    }

    .live-radio-badge {
        padding: 7px 9px;
        font-size: 10px;
    }

    .radio-waves {
        right: -18px;
        top: 8px;
        transform: scale(.72);
    }
}
