.mhr-rs,
.mhr-rs * {
    box-sizing: border-box;
}

.mhr-rs {
    --mhr-accent: #0a84ff;
    --mhr-accent-rgb: 10, 132, 255;
    --mhr-text: #dff5ff;
    --mhr-muted: #7fdcff;
    --mhr-muted-rgb: 127, 220, 255;
    --mhr-bg: #020617;
    --mhr-bg-rgb: 2, 6, 23;
    --mhr-success: #53f28b;
    position: relative;
    width: 100%;
    max-width: 310px;
    min-width: 0;
    margin: 0 auto 14px;
    float: none;
    justify-self: center;
    overflow: hidden;
    padding: 10px;
    color: var(--mhr-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    border: 2px solid rgba(var(--mhr-accent-rgb), .78);
    border-radius: 12px;
    background:
        radial-gradient(circle at 80% 20%, rgba(var(--mhr-accent-rgb), .18), transparent 34%),
        linear-gradient(160deg, rgba(var(--mhr-bg-rgb), .94), rgba(var(--mhr-bg-rgb), .84)),
        var(--mhr-bg);
    box-shadow: 0 0 10px rgba(var(--mhr-accent-rgb), .45), inset 0 0 20px rgba(var(--mhr-accent-rgb), .08);
}

.mhr-rs::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(var(--mhr-muted-rgb), .15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--mhr-muted-rgb), .12) 1px, transparent 1px);
    background-size: 24px 24px;
}

.mhr-rs > * {
    position: relative;
    z-index: 1;
}

.mhr-rs__top,
.mhr-rs__footer,
.mhr-rs__levels,
.mhr-rs__controls {
    display: flex;
    align-items: center;
}

.mhr-rs__top {
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.mhr-rs__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--mhr-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
}

.mhr-rs__dot,
.mhr-rs__live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ff294d;
    box-shadow: 0 0 8px #ff294d;
}

.mhr-rs__badge {
    padding: 2px 7px;
    color: var(--mhr-muted);
    font-size: 10px;
    border: 1px solid rgba(var(--mhr-muted-rgb), .4);
    border-radius: 999px;
    background: rgba(var(--mhr-accent-rgb), .12);
}

.mhr-rs__dj-card {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 9px;
    gap: 10px;
    border: 1px solid rgba(var(--mhr-accent-rgb), .7);
    border-radius: 11px;
    background: rgba(var(--mhr-bg-rgb), .68);
    box-shadow: inset 0 0 10px rgba(var(--mhr-accent-rgb), .18), 0 0 7px rgba(var(--mhr-accent-rgb), .24);
}

.mhr-rs__avatar-wrap {
    position: relative;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
}

.mhr-rs__avatar {
    width: 68px;
    height: 68px;
    display: block;
    object-fit: cover;
    border: 2px solid var(--mhr-accent);
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 9px rgba(var(--mhr-accent-rgb), .55);
}

.mhr-rs__live-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 13px;
    height: 13px;
    border: 2px solid #020617;
    background: #7d8ca5;
    box-shadow: none;
}

.mhr-rs.is-live .mhr-rs__live-dot {
    background: #ff294d;
    box-shadow: 0 0 10px #ff294d;
    animation: mhr-rs-pulse 1.15s infinite;
}

.mhr-rs__dj-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mhr-rs__mode {
    color: #b8c6dc;
    font-size: 11px;
}

.mhr-rs__moderator {
    overflow: hidden;
    color: var(--mhr-text);
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 0 6px rgba(var(--mhr-muted-rgb), .55);
}

.mhr-rs__schedule {
    width: fit-content;
    padding: 0;
    color: var(--mhr-muted) !important;
    font-family: inherit;
    font-size: 11px;
    text-align: left;
    text-decoration: none !important;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.mhr-rs__schedule:hover {
    color: #fff !important;
    text-shadow: 0 0 6px var(--mhr-accent);
}

.mhr-rs__now-label {
    margin: 10px 1px 5px;
    color: var(--mhr-muted);
    font-size: 11px;
    font-weight: 700;
}

.mhr-rs__song-box {
    overflow: hidden;
    padding: 8px 10px;
    color: var(--mhr-text);
    border: 2px solid rgba(var(--mhr-accent-rgb), .78);
    border-radius: 9px;
    background: rgba(var(--mhr-bg-rgb), .88);
    box-shadow: inset 0 0 10px rgba(var(--mhr-accent-rgb), .14);
    white-space: nowrap;
}

.mhr-rs__song {
    display: block;
    width: max-content;
    min-width: 100%;
    font-weight: 800;
    text-align: center;
    will-change: transform;
    animation: mhr-rs-marquee 14s linear infinite;
}

.mhr-rs__controls {
    gap: 7px;
    margin-top: 10px;
}

.mhr-rs__button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    color: #fff;
    font: 800 17px/30px Arial, sans-serif;
    text-align: center;
    border: 2px solid var(--mhr-accent);
    border-radius: 8px;
    outline: none;
    background: linear-gradient(160deg, #0c1a36, #030917);
    box-shadow: 0 0 7px rgba(var(--mhr-accent-rgb), .5);
    cursor: pointer;
}

.mhr-rs__button:hover,
.mhr-rs__button:focus-visible {
    color: #fff;
    background: var(--mhr-accent);
}

.mhr-rs__play {
    font-size: 16px;
}

.mhr-rs__volume {
    min-width: 60px;
    width: 100%;
    height: 7px;
    accent-color: var(--mhr-accent);
    cursor: pointer;
}

.mhr-rs__levels {
    justify-content: space-between;
    gap: 8px;
    margin: 7px 1px 0;
    color: #9fb0c9;
    font-size: 10px;
}

.mhr-rs__levels strong {
    color: var(--mhr-muted);
    font-size: 11px;
}

.mhr-rs__listener-row {
    margin-top: 5px;
    color: var(--mhr-muted);
    font-size: 10px;
    text-align: center;
}

.mhr-rs__player-select {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(var(--mhr-accent-rgb), .3);
}

.mhr-rs__player-grid {
    display: grid;
    gap: 7px;
}

.mhr-rs__player-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mhr-rs__player-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mhr-rs__player-link {
    min-width: 0;
    padding: 0;
    color: var(--mhr-muted) !important;
    font: 700 9px/1.15 Arial, sans-serif;
    text-align: center;
    text-decoration: none !important;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.mhr-rs__player-link span:last-child {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mhr-rs__player-icon {
    display: grid !important;
    place-items: center;
    width: 39px;
    height: 36px;
    margin: auto;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    border: 2px solid var(--mhr-accent);
    border-radius: 9px;
    background: radial-gradient(circle, rgba(var(--mhr-accent-rgb), .32), rgba(var(--mhr-bg-rgb), .98));
    box-shadow: 0 0 7px rgba(var(--mhr-accent-rgb), .82), inset 0 0 8px rgba(var(--mhr-muted-rgb), .18);
}

.mhr-rs__player-link:hover .mhr-rs__player-icon,
.mhr-rs__player-link:focus-visible .mhr-rs__player-icon {
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(var(--mhr-accent-rgb), 1), inset 0 0 10px rgba(var(--mhr-muted-rgb), .3);
}

.mhr-rs__player-link--winamp .mhr-rs__player-icon { color: #ffe252; }
.mhr-rs__player-link--media .mhr-rs__player-icon { color: #ff3658; }
.mhr-rs__player-link--real .mhr-rs__player-icon { color: #617dff; }
.mhr-rs__player-link--html5 .mhr-rs__player-icon { color: #ffad32; }
.mhr-rs__player-link--station .mhr-rs__player-icon { color: #ff5374; }
.mhr-rs__player-link--radiode .mhr-rs__player-icon { color: #bd54ff; }
.mhr-rs__player-link--phonostar .mhr-rs__player-icon { color: #ff4b6d; }

.mhr-rs__player-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 9px 0 8px;
    color: var(--mhr-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(var(--mhr-accent-rgb), .65);
}

.mhr-rs__iframe-wrap {
    position: relative;
    margin-top: 9px;
    padding: 5px;
    border: 2px solid var(--mhr-accent);
    border-radius: 9px;
    background: var(--mhr-bg);
    box-shadow: 0 0 9px rgba(var(--mhr-accent-rgb), .55);
}

.mhr-rs__iframe-wrap[hidden] { display: none !important; }

.mhr-rs__iframe {
    display: block;
    width: 100%;
    height: 88px;
    border: 0;
    border-radius: 6px;
    background: var(--mhr-bg);
}

.mhr-rs__iframe-close {
    position: absolute;
    z-index: 2;
    top: 1px;
    right: 4px;
    padding: 0;
    color: #fff;
    font: 700 18px/20px Arial, sans-serif;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mhr-rs__wishbox {
    margin-top: 11px;
    padding-top: 8px;
    border-top: 1px solid rgba(var(--mhr-accent-rgb), .28);
}

.mhr-rs__wishbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    color: var(--mhr-muted);
    border: 0;
    outline: 0;
    background: var(--mhr-bg);
    cursor: pointer;
}

.mhr-rs__wishbox-title {
    display: block;
    margin-bottom: 5px;
    color: var(--mhr-muted);
    font: 800 12px/1.25 Arial, sans-serif;
    text-align: center;
    text-shadow: 0 0 7px rgba(var(--mhr-accent-rgb), .9);
}

.mhr-rs__wishbox-banner {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(var(--mhr-accent-rgb), .7);
    border-radius: 7px;
    box-shadow: 0 0 8px rgba(var(--mhr-accent-rgb), .5), inset 0 0 8px rgba(var(--mhr-muted-rgb), .25);
}

.mhr-rs__wishbox-trigger:hover .mhr-rs__wishbox-banner,
.mhr-rs__wishbox-trigger:focus-visible .mhr-rs__wishbox-banner {
    border-color: var(--mhr-muted);
    box-shadow: 0 0 12px rgba(var(--mhr-accent-rgb), .85), 0 0 8px rgba(var(--mhr-muted-rgb), .55);
}

.mhr-rs-wishbox-open { overflow: hidden !important; }

.mhr-rs__wishbox-modal,
.mhr-rs__wishbox-modal * { box-sizing: border-box; }

.mhr-rs__wishbox-modal {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.mhr-rs__wishbox-modal[hidden] { display: none !important; }

.mhr-rs__wishbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(var(--mhr-bg-rgb), .84);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.mhr-rs__wishbox-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: hidden;
    border: 2px solid var(--mhr-accent, #0a84ff);
    border-radius: 14px;
    background: var(--mhr-bg, #020617);
    box-shadow: 0 0 25px rgba(var(--mhr-accent-rgb), .8), 0 0 55px rgba(var(--mhr-muted-rgb), .28);
}

.mhr-rs__wishbox-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 7px 9px 7px 15px;
    color: var(--mhr-text, #dff5ff);
    font: 800 15px/1.2 Arial, sans-serif;
    background: linear-gradient(100deg, rgba(var(--mhr-accent-rgb), .24), rgba(var(--mhr-muted-rgb), .18));
    border-bottom: 1px solid rgba(var(--mhr-muted-rgb), .4);
    text-shadow: 0 0 7px rgba(var(--mhr-accent-rgb), .8);
}

.mhr-rs__wishbox-frame {
    display: block;
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 6px;
    background: #fff;
}

.mhr-rs__wishbox-close {
    flex: 0 0 32px;
    width: 24px;
    height: 32px;
    padding: 0;
    color: #fff;
    font: 800 24px/28px Arial, sans-serif;
    border: 1px solid rgba(var(--mhr-muted-rgb), .8);
    border-radius: 50%;
    background: var(--mhr-accent);
    box-shadow: 0 0 7px rgba(var(--mhr-accent-rgb), .8);
    cursor: pointer;
}

.mhr-rs__wishbox-close:hover,
.mhr-rs__wishbox-close:focus-visible {
    background: #df1b68;
    box-shadow: 0 0 10px rgba(255, 50, 166, .9);
}

.mhr-rs__schedule-dialog { width: min(var(--mhr-schedule-width, 820px), calc(100vw - 36px)); }

@media (max-width: 600px) {
    .mhr-rs__wishbox-modal { padding: 7px; }
    .mhr-rs__wishbox-dialog {
        width: calc(100vw - 14px);
        max-height: calc(100vh - 14px);
        border-radius: 10px;
    }
    .mhr-rs__schedule-dialog { width: calc(100vw - 14px); }
    .mhr-rs__wishbox-frame { height: calc(100vh - 72px) !important; }
}

.mhr-rs__footer {
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 6px;
    color: var(--mhr-muted);
    font-size: 9px;
    border-top: 1px solid rgba(var(--mhr-accent-rgb), .28);
}

.mhr-rs__footer strong {
    color: var(--mhr-success);
}

.mhr-rs__error {
    margin-top: 7px;
    padding: 6px;
    color: #ffb9c4;
    font-size: 10px;
    border: 1px solid rgba(255, 41, 77, .45);
    border-radius: 7px;
    background: rgba(90, 0, 18, .28);
}

.mhr-rs.is-offline .mhr-rs__dot {
    background: #77839a;
    box-shadow: none;
}

@keyframes mhr-rs-pulse {
    50% { opacity: .35; transform: scale(.82); }
}

@keyframes mhr-rs-marquee {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 380px) {
    .mhr-rs { max-width: none; padding: 8px; }
    .mhr-rs__dj-card { min-height: 76px; }
    .mhr-rs__avatar-wrap,
    .mhr-rs__avatar { width: 60px; height: 60px; }
    .mhr-rs__avatar-wrap { flex-basis: 60px; }
    .mhr-rs__moderator { font-size: 15px; }
    .mhr-rs__button { width: 32px; height: 32px; flex-basis: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .mhr-rs__song,
    .mhr-rs.is-live .mhr-rs__live-dot { animation: none; }
}
