* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--player-text);
    background: var(--player-bg);
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, .15), transparent 32%), var(--player-bg);
    background-size: cover;
    background-position: center;
}

.radio-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 0;
}

.radio-player {
    width: 100%;
    justify-self: stretch;
    min-height: var(--player-height);
    display: grid;
    grid-template-columns: minmax(220px, 20%) minmax(320px, 1fr) minmax(180px, 20%);
    gap: 18px;
    align-items: center;
    padding: var(--player-padding);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), var(--player-panel);
    border-top: 3px solid var(--player-border);
    border-radius: 0;
}

.has-player-shadow .radio-player {
    box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

.station-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.station-logo {
    width: 92px;
    height: 64px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.station-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.station-cover {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: calc(var(--player-radius) * .75);
    border: 1px solid rgba(255, 255, 255, .12);
}

.station-copy {
    min-width: 0;
}

.station-copy h1 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.15;
    color: var(--player-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-copy p,
.metadata,
.status-row {
    margin: 4px 0 0;
    color: var(--player-muted);
    font-size: .86rem;
}

.metadata {
    display: block;
    color: var(--player-button);
}

.player-controls {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(140px, .45fr);
    gap: 14px;
    align-items: center;
}

.play-button,
.social-links a {
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--player-border);
    background: rgba(255, 193, 7, .08);
    color: var(--player-icon);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.play-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 2rem;
}

.play-button:hover,
.social-links a:hover {
    background: var(--player-button);
    border-color: var(--player-hover);
    color: #111;
    transform: translateY(-1px);
}

.stream-area {
    min-width: 0;
}

.progress-wrap,
.status-row,
.volume-control,
.social-links {
    display: flex;
    align-items: center;
}

.progress-wrap {
    gap: 10px;
}

.progress-wrap span {
    width: 54px;
    color: var(--player-muted);
    font-size: .78rem;
}

.progress-wrap span:last-child {
    text-align: right;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--player-progress);
}

.status-row {
    gap: 12px;
    flex-wrap: wrap;
}

.volume-control {
    gap: 8px;
    color: var(--player-icon);
}

.volume-control input {
    accent-color: var(--player-volume);
}

.social-links {
    justify-content: flex-end;
    gap: 8px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: calc(var(--player-radius) * .75);
    text-decoration: none;
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .radio-player {
        grid-template-columns: 1fr;
    }

    .player-controls {
        grid-template-columns: auto 1fr;
    }

    .volume-control {
        grid-column: 2;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .radio-shell {
        padding: 0;
    }

    .station-brand,
    .player-controls {
        align-items: stretch;
    }

    .player-controls {
        grid-template-columns: 1fr;
    }

    .play-button {
        width: 100%;
        height: 52px;
        border-radius: var(--player-radius);
    }

    .volume-control {
        grid-column: auto;
    }

    .station-logo {
        width: 78px;
    }
}

@media (max-width: 767.98px) {
    .radio-shell {
        min-height: auto;
        padding: 0;
    }

    .radio-player {
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 6px 8px;
        overflow: hidden;
    }

    .station-brand {
        flex: 0 1 24%;
        min-width: 48px;
        align-items: center;
        gap: 0;
    }

    .station-logo {
        width: auto;
        height: clamp(40px, 11vw, 50px);
        max-width: clamp(58px, 20vw, 96px);
    }

    .station-logo img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .station-cover,
    .station-copy,
    .stream-area {
        display: none !important;
    }

    .player-controls {
        flex: 1 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        gap: 8px;
    }

    .play-button {
        width: clamp(42px, 11vw, 48px);
        height: clamp(42px, 11vw, 48px);
        border-radius: 50%;
        border-color: rgba(255, 193, 7, .35);
        background: rgba(255, 193, 7, .08);
        font-size: clamp(2rem, 8vw, 2.35rem);
        line-height: 1;
    }

    .play-button i {
        line-height: 1;
    }

    .volume-control {
        flex: 0 1 clamp(54px, 16vw, 82px);
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 46px;
    }

    .volume-control i {
        font-size: clamp(.9rem, 3.8vw, 1.05rem);
    }

    .volume-control input {
        width: clamp(36px, 11vw, 58px);
        min-width: 0;
    }

    .social-links {
        flex: 0 1 38%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: clamp(6px, 1.8vw, 10px);
        min-width: 0;
        overflow: hidden;
    }

    .social-links a {
        width: clamp(30px, 8vw, 38px);
        height: clamp(30px, 8vw, 38px);
        flex: 0 1 clamp(30px, 8vw, 38px);
        border-radius: 50%;
        font-size: clamp(.95rem, 4.5vw, 1.12rem);
    }
}
