/* ── radio_v5.css — Rádio compacta (linha única) ─────────────────────────── */

#MusicPlayer {
    display: block;
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(10, 14, 28, 0.90);
    border: 1px solid rgba(255,255,255,0.09);
    border-top: 1.5px solid rgba(99,102,241,0.55);
    border-radius: 10px;
    padding: 5px 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.55), 0 0 0 1px rgba(99,102,241,0.10);
    user-select: none;
    z-index: 50;
}

/* ── Linha 1: play / stop / estação ──────────────────────────────────────── */
.radio-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* ── Linha 2: nome, volume, toggle ──────────────────────────────────────── */
.radio-info-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Separador vertical ──────────────────────────────────────────────────── */
.radio-sep-v {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
    margin: 0 1px;
}

/* ── Botões play / stop ──────────────────────────────────────────────────── */
.radio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    font-family: Arial, sans-serif;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    outline: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.radio-btn-play {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 2px 8px rgba(34,197,94,0.35);
    color: #fff;
}
.radio-btn-play:hover  { background: linear-gradient(135deg, #4ade80, #22c55e); box-shadow: 0 2px 12px rgba(34,197,94,0.5); }
.radio-btn-play:active { transform: scale(0.88); }

.radio-btn-stop {
    background: rgba(255,255,255,0.09);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.08);
}
.radio-btn-stop:hover  { background: rgba(248,81,73,0.18); color: #f87171; border-color: rgba(248,81,73,0.3); }
.radio-btn-stop:active { transform: scale(0.88); }

/* ── Botões de estação ───────────────────────────────────────────────────── */
.radio-station-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    font-size: 10px;
    font-family: Ubuntu, Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    outline: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.radio-station-btn:hover {
    background: rgba(99,102,241,0.22);
    border-color: rgba(99,102,241,0.45);
    color: #e2e8f0;
}
.radio-station-btn.active {
    background: rgba(99,102,241,0.30);
    border-color: #6366f1;
    color: #e2e8f0;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.18);
}
.radio-station-btn:active { transform: scale(0.94); }

/* ── Status: ponto pulsante + nome ───────────────────────────────────────── */
.radio-playing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    display: none;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
    animation: radio-pulse 1.2s ease-in-out infinite;
}
#MusicPlayer.is-playing .radio-playing-dot { display: inline-block; }

@keyframes radio-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(34,197,94,0.6); }
    60%  { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0   rgba(34,197,94,0); }
}

.radio-station-name {
    font-size: 9px;
    color: #4b5563;
    font-family: Ubuntu, Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;           /* ocupa o espaço disponível na linha 2 */
    min-width: 0;      /* permite flex encolher corretamente */
    max-width: 100px;  /* limite máximo */
    line-height: 1.2;
    transition: color 0.2s;
}
#MusicPlayer.is-playing .radio-station-name { color: #94a3b8; }

/* ── Volume ──────────────────────────────────────────────────────────────── */
#radio-vol-icon {
    font-size: 11px;
    flex-shrink: 0;
    user-select: none;
    cursor: default;
    line-height: 1;
    opacity: 0.7;
}

#radioVolume, #radioVolume2 {
    -webkit-appearance: none;
    appearance: none;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, #22c55e 0%, #22c55e 50%, #2d3748 50%, #2d3748 100%);
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
#radioVolume::-webkit-slider-thumb,
#radioVolume2::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.6);
    transition: transform 0.1s;
}
#radioVolume::-webkit-slider-thumb:hover,
#radioVolume2::-webkit-slider-thumb:hover { transform: scale(1.25); }
#radioVolume::-moz-range-thumb,
#radioVolume2::-moz-range-thumb {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

/* ── Toggle liga/desliga (CSS pill) ─────────────────────────────────────── */
.radio-toggle-label {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.radio-toggle-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-toggle-knob {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 7px;
    transition: background 0.2s, border-color 0.2s;
}
.radio-toggle-knob::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.radio-toggle-label input:checked + .radio-toggle-knob {
    background: rgba(34,197,94,0.72);
    border-color: rgba(34,197,94,0.4);
}
.radio-toggle-label input:checked + .radio-toggle-knob::after {
    transform: translateX(12px);
    background: #fff;
}

/* ── Legado (não quebrar JS que referencia antigas classes) ─────────────── */
.radio-action-row { display: none !important; }
#radio-controls   { display: none !important; }
.music_button { height: 25px; width: 25px; cursor: pointer; }
.radio_button { height: 13px; width: 25px; cursor: pointer; }
.radio_volume { height: 60px; width: 24px; cursor: pointer; }
