/* =========================================================
   RADIO STAR — PLAYER HOMEPAGE
   Sfondo/input scuri, bottoni viola, testo bianco
   ========================================================= */

.radio-player-box {
    width: min(100%, 900px) !important;
    margin: 0 auto !important;
    padding: 28px 20px 30px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    background: #211c2d !important;
    border: 1px solid #40364f !important;
    border-radius: 10px !important;
}

.radio-player-box h2 {
    color: #ffffff !important;
    margin: 0 0 10px !important;
    font-size: 25px !important;
}

.radio-player-box .player-description {
    color: #ffffff !important;
    margin: 0 0 24px !important;
}

/* Campo stream: stesso tono della pagina, leggermente più scuro */
.stream-url-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.stream-url-box label {
    color: #ffffff !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.stream-url-box input[type="url"] {
    flex: 1 !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    background: #14111e !important;
    color: #ffffff !important;
    border: 1px solid #40364f !important;
    border-radius: 8px !important;
    outline: none !important;
}

.stream-url-box input[type="url"]:focus {
    border-color: #70558f !important;
    box-shadow: 0 0 0 2px rgba(112, 85, 143, .22) !important;
}

.stream-url-box input[type="url"]::placeholder {
    color: #c0b6d2 !important;
}

/* Tutti i bottoni del player: viola + testo bianco */
.radio-player-box button {
    background: #70558f !important;
    color: #ffffff !important;
    border: 1px solid #8062a1 !important;
    border-radius: 7px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .15s ease, transform .1s ease !important;
}

.radio-player-box button:hover {
    background: #8062a1 !important;
}

.radio-player-box button:active {
    transform: translateY(1px) !important;
}

.stream-url-box button {
    height: 42px !important;
    padding: 0 18px !important;
    white-space: nowrap !important;
}

.radio-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 0 20px !important;
}

.radio-controls button {
    min-width: 105px !important;
    height: 42px !important;
    padding: 0 16px !important;
}

/* Volume */
.volume-control {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 10px !important;
}

.volume-control label,
.volume-control span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.volume-control input[type="range"] {
    width: 350px !important;
    max-width: 45vw !important;
    accent-color: #70558f !important;
}

/* Now Playing: NOME RADIO, non titolo canzone */
.now-playing {
    margin-top: 6px !important;
    text-align: center !important;
    background: #171522 !important;
    border: 1px solid #40364f !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
}

.now-playing-title {
    color: #ffffff !important;
    font-size: 17px !important;
    margin-bottom: 4px !important;
}

.now-playing-song {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Messaggio tecnico usato dal JS, ma non mostrato nel design */
#playerStatus {
    display: none !important;
}

@media (max-width: 700px) {
    .radio-player-box {
        padding: 22px 14px 24px !important;
    }

    .stream-url-box {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .stream-url-box label {
        text-align: left !important;
    }

    .stream-url-box button {
        width: 100% !important;
    }

    .radio-controls button {
        min-width: 95px !important;
    }

    .volume-control input[type="range"] {
        width: 220px !important;
        max-width: 40vw !important;
    }
}
