/* ============================================
   RADIO PLAYER INTERATIVO
   ============================================ */

.radio-player-interactive {
    background: linear-gradient(135deg, #1a1d2e 0%, #2d3748 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Header */
.player-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.player-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.player-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    flex: 1;
}

.player-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.player-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Equalizador */
.player-equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.player-equalizer.active {
    opacity: 1;
}

.equalizer-bar {
    flex: 1;
    min-width: 0;
    height: 10px;
    background: linear-gradient(to top, #1d9e75 0%, #3b82f6 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.1s ease;
    box-shadow: 0 0 10px rgba(29, 158, 117, 0.5);
    margin: 0 2px;
}

/* Controle Principal */
.player-main-control {
    margin-bottom: 1.5rem;
}

.btn-player-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-player-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-player-toggle:active {
    transform: translateY(0);
}

/* Estados do botão */
.btn-player-toggle[data-state="stopped"] {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.btn-player-toggle[data-state="loading"] {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    cursor: wait;
    position: relative;
    overflow: hidden;
}

.btn-player-toggle[data-state="loading"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading-shine 1.5s infinite;
}

@keyframes loading-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-player-toggle[data-state="playing"] {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    animation: pulse-button 2s ease-in-out infinite;
}

.btn-player-toggle[data-state="paused"] {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.btn-player-toggle[data-state="error"] {
    background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
    cursor: not-allowed;
}

@keyframes pulse-button {
    0%, 100% { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(239, 68, 68, 0.6); }
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    display: none !important;
    width: 0;
    height: 0;
    overflow: hidden;
}

.btn-text {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Controles de Volume */
.player-volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.btn-mute {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-mute:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-mute.muted {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.volume-slider-container {
    position: relative;
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #1d9e75 0%, #3b82f6 100%);
    border-radius: 3px;
    transition: width 0.1s ease;
    pointer-events: none;
}

.volume-slider {
    position: relative;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    z-index: 2;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.volume-percentage {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 45px;
    text-align: right;
    flex-shrink: 0;
}

/* Informações Extras */
.player-extra-info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.player-program,
.player-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.player-program i,
.player-timer i {
    color: #1d9e75;
    font-size: 1.125rem;
}

.program-presenter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .radio-player-interactive {
        padding: 1.5rem;
    }
    
    .player-header {
        flex-direction: column;
        text-align: center;
    }
    
    .player-logo {
        width: 100px;
        height: 100px;
    }
    
    .player-title {
        font-size: 1.25rem;
    }
    
    .player-equalizer {
        height: 60px;
        padding: 1rem;
    }
    
    .equalizer-bar {
        min-width: 0;
        margin: 0 1px;
    }
    
    .btn-player-toggle {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
    }
    
    .player-extra-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}
