/* ============================================================
   CIUDAD URBANA RADIO — radio-player.css
   Reproductor de radio en vivo
   ============================================================ */

/* ===== SECCIÓN PRINCIPAL ===== */
.radio-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4% 5%;
    min-height: 60vh;
}

/* ===== CARD DEL REPRODUCTOR ===== */
.radio-player-card {
    width: 100%;
    max-width: 520px;
    background: rgba(30, 16, 66, 0.55);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-radius: 22px;
    border: 1px solid rgba(225, 218, 251, 0.12);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(225, 218, 251, 0.1),
        inset 0 -1px 0 rgba(77, 62, 163, 0.1);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    animation: fadeInUp 0.5s ease both;
    transition: border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-player-card:hover {
    border-color: rgba(225, 218, 251, 0.35);
    box-shadow:
        0 16px 56px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(77, 62, 163, 0.4),
        inset 0 1px 0 rgba(225, 218, 251, 0.18);
}

/* ===== LOGO ===== */
.radio-player-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(117, 138, 209, 0.35);
    box-shadow: 0 0 32px rgba(77, 62, 163, 0.4);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.radio-player-logo:hover {
    box-shadow: 0 0 48px rgba(77, 62, 163, 0.65);
    transform: scale(1.04);
}

/* ===== TEXTO ===== */
.radio-player-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #E1DAFB 0%, #758AD1 45%, #FFD2F4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: borderShimmer 5s ease infinite;
    margin: 0;
    text-align: center;
}

.radio-player-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a89fd8;
    margin: -18px 0 0 0;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== INDICADOR EN VIVO ===== */
.radio-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(77, 62, 163, 0.2);
    border: 1px solid rgba(117, 138, 209, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #E1DAFB;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Punto pulsante rojo */
.radio-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.8);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ===== BOTÓN PLAY/PAUSE ===== */
.radio-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #4D3EA3 0%, #758AD1 100%);
    box-shadow: 0 0 14px rgba(77, 62, 163, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.radio-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #758AD1 0%, #4D3EA3 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.radio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 32px rgba(77, 62, 163, 0.4);
}

.radio-play-btn:hover::before { opacity: 1; }

.radio-play-btn i {
    font-size: 28px;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* ===== CONTROL DE VOLUMEN ===== */
.radio-volume-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.radio-volume-wrap i {
    color: #a89fd8;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
    transition: color 0.28s ease;
}

.radio-volume-wrap:hover i { color: #E1DAFB; }

/* Slider de volumen */
.radio-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 10px;
    background: rgba(117, 138, 209, 0.25);
    outline: none;
    cursor: pointer;
    transition: background 0.28s ease;
}

.scroll-progress {
    display: none !important;
}

.radio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4D3EA3, #758AD1);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(77, 62, 163, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.radio-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 14px rgba(77, 62, 163, 0.9);
}

.radio-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4D3EA3, #758AD1);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(77, 62, 163, 0.7);
}

/* ===== ESTADO (cargando / error) ===== */
.radio-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: #6a5fa8;
    text-align: center;
    min-height: 18px;
    transition: color 0.28s ease;
}

.radio-status.error { color: #ff6b81; }
.radio-status.loading { color: #a89fd8; }
.radio-status.playing { color: #758AD1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 630px) {
    .radio-player-card {
        padding: 32px 22px;
        gap: 22px;
    }

    .radio-player-logo {
        width: 90px;
        height: 90px;
    }

    .radio-play-btn {
        width: 62px;
        height: 62px;
    }

    .radio-play-btn i { font-size: 24px; }
}