.radio-portal-wrapper {
    max-width: 100%;
    margin: 0 0 100px 0; /* ruimte voor de vaste speler onderaan */
    box-sizing: border-box;
}

.radio-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.radio-station {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    text-align: left;
    transition: box-shadow .15s ease, border-color .15s ease, transform .1s ease;
    font-family: inherit;
}

.radio-station:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-color: #c9c9c9;
}

.radio-station:active {
    transform: scale(0.98);
}

.radio-station.is-playing {
    border-color: #1d72e0;
    box-shadow: 0 0 0 2px rgba(29,114,224,0.25);
}

.radio-station-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-station-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.radio-station-logo-placeholder {
    font-size: 24px;
}

.radio-station-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

/* Zendernaam: goed leesbaar en niet afgekapt */
.radio-station-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    color: #111;
    white-space: normal;
    overflow-wrap: break-word;
}

.radio-station-genre {
    font-size: 12px;
    font-weight: 500;
    color: #767676;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Vaste afspeelbalk, sitebreed op elke pagina */
.radio-portal-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #14161a;
    color: #fff;
    z-index: 999999; /* boven eventuele thema-elementen zoals sticky headers */
    box-shadow: 0 -3px 16px rgba(0,0,0,0.3);
}

.radio-portal-player-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) 18px;
}

/* Grote, moderne play/pause knop */
.radio-portal-toggle {
    position: relative;
    background: linear-gradient(145deg, #4f8cf7, #7c5cf0);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, filter .15s ease;
}

.radio-portal-toggle svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

/* Play-driehoek iets optisch centreren */
.radio-portal-icon-play {
    margin-left: 3px;
}

.radio-portal-toggle:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 10px 26px rgba(99, 102, 241, 0.6),
        0 3px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.radio-portal-toggle:active {
    transform: scale(0.92);
}

.radio-portal-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Zachte pulserende ring als indicatie dat er live wordt afgespeeld */
.radio-portal-toggle-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid #7c5cf0;
    opacity: 0;
    z-index: 1;
}

.radio-portal-player.is-playing .radio-portal-toggle-ring {
    opacity: 1;
    animation: radio-portal-pulse 2s ease-out infinite;
}

@keyframes radio-portal-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .radio-portal-player.is-playing .radio-portal-toggle-ring {
        animation: none;
        opacity: 0.35;
    }
    .radio-portal-toggle {
        transition: none;
    }
}

.radio-portal-now-playing {
    flex: 1 1 auto;
    min-width: 0;
}

.radio-portal-status {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Duidelijk zichtbare volumeregelaar */
.radio-portal-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.radio-portal-volume-icon {
    font-size: 18px;
}

.radio-portal-volume input[type="range"] {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff33;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.radio-portal-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6366f1;
    cursor: pointer;
}

.radio-portal-volume input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #6366f1;
    cursor: pointer;
}

@media (max-width: 600px) {
    .radio-portal-player-inner {
        gap: 12px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
    }

    .radio-portal-volume input[type="range"] {
        width: 60px;
    }

    .radio-portal-volume-icon {
        display: none; /* icoon weg, slider blijft staan om ruimte te besparen */
    }

    .radio-portal-status {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .radio-portal-toggle {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .radio-portal-volume input[type="range"] {
        width: 44px;
    }
}
