/* =========================================================
   RADIO ATIPIRI — estilos del reproductor
   Requiere las variables globales de style.css
========================================================= */

/* ===== SECCIÓN CONTENEDORA ===== */
.radio-section {
    background: #EDEFF2;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.radio-section::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(18, 59, 112, 0.08);
    right: -150px;
    top: -150px;
    animation: flotar 8s ease-in-out infinite;
    pointer-events: none;
}

.radio-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== CONTENEDOR DEL REPRODUCTOR ===== */
.radio-container {
    background: #1a2a5e;
    border-radius: 38px 38px 28px 28px;
    padding: 28px 24px 32px;
    max-width: 460px;
    width: 100%;
    box-shadow:
        0 0 40px rgba(26, 42, 94, 0.3),
        0 0 80px rgba(26, 42, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.radio-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 40px 40px 30px 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(26, 42, 94, 0.1), rgba(212, 175, 55, 0.15));
    z-index: -1;
    filter: blur(12px);
}

.radio-container.playing {
    box-shadow:
        0 0 50px rgba(212, 175, 55, 0.2),
        0 0 100px rgba(26, 42, 94, 0.15),
        inset 0 0 40px rgba(212, 175, 55, 0.03);
    border-color: rgba(212, 175, 55, 0.5);
}

/* ===== LOGO ===== */
.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.logo-container {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: #0f1a3e;
    padding: 6px;
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.15),
        inset 0 0 30px rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: box-shadow 0.4s ease;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    display: block;
    background: #0f1a3e;
}

/* ===== TÍTULO ===== */
.station-title {
    text-align: center;
    margin: 8px 0 14px 0;
}

.station-title h1 {
    font-family: 'Francois One', 'Open Sans', sans-serif;
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    text-transform: uppercase;
    margin: 0;
}

.station-title .subtitle {
    color: #8a9bc7;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 300;
    margin-top: 2px;
}

.station-title .subtitle i {
    color: #d4af37;
    margin: 0 4px;
}

/* ===== ECUALIZADOR ===== */
.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    margin: 10px 0 18px 0;
    padding: 8px 10px;
    background: rgba(7, 14, 40, 0.6);
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.5);
}

.bar {
    width: 14px;
    height: 20px;
    background: #2a3a7a;
    border-radius: 20px 20px 4px 4px;
    transition: height 0.08s ease;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.05);
    will-change: height;
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.equalizer.paused .bar {
    height: 12px !important;
    background: #1a2850;
    box-shadow: none;
    transition: height 0.3s ease;
}

/* ===== CONTROLES ===== */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 16px 0 8px;
}

.btn-play {
    background: radial-gradient(circle at 30% 30%, #d4af37, #8a6d1a);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: #1a2a5e;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.2),
        0 0 60px rgba(212, 175, 55, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 50px rgba(212, 175, 55, 0.3),
        0 0 80px rgba(212, 175, 55, 0.15);
    color: #0f1a3e;
    border-color: #d4af37;
}

.btn-play:active {
    transform: scale(0.92);
}

.btn-play .fa-play {
    margin-left: 5px;
}

.btn-vol {
    background: transparent;
    border: none;
    color: #8a9bc7;
    font-size: 20px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-vol:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.15);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.volume-slider {
    flex: 1;
    min-width: 60px;
    accent-color: #d4af37;
    height: 4px;
    border-radius: 20px;
    background: #2a3a7a;
    cursor: pointer;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d4af37, #8a6d1a);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d4af37, #8a6d1a);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    border: 2px solid #d4af37;
    cursor: pointer;
}

.vol-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    padding: 0 4px;
}

.vol-controls span {
    color: #8a9bc7;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.vol-controls .vol-value {
    color: #d4af37;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
    font-size: 0.7rem;
}

/* ===== ESTADO ===== */
.status-text {
    text-align: center;
    font-size: 0.7rem;
    color: #8a9bc7;
    margin-top: 14px;
    padding: 8px 14px;
    background: rgba(7, 14, 40, 0.4);
    border-radius: 60px;
    border: 1px solid rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-text .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a3a7a;
    transition: all 0.3s ease;
}

.status-text .status-dot.playing {
    background: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.3; transform: scale(0.8); }
}

.status-text .live-badge {
    background: #1a2a5e;
    color: #d4af37;
    padding: 2px 14px;
    border-radius: 60px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.1);
}

/* ===== BADGE "EN VIVO" ===== */
.cecopi-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(209, 13, 22, 0.95);
    color: #fff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(209, 13, 22, 0.4);
    margin-bottom: 10px;
}

.cecopi-live-badge i {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 575px) {
    .radio-container { padding: 20px 16px; }
    .logo-container { width: 90px; height: 90px; }
    .equalizer { height: 60px; gap: 4px; }
    .bar { width: 11px; }
    .btn-play { width: 60px; height: 60px; font-size: 24px; }
    .station-title h1 { font-size: 1.1rem; }
}

@media (max-width: 360px) {
    .controls { gap: 12px; }
    .btn-vol { width: 36px; height: 36px; font-size: 16px; }
    .volume-slider { min-width: 40px; }
}