/* ============================================
   PLAYER MODERNO - RODAPÉ
   Design profissional e responsivo
   ============================================ */

.player-flutuante-moderno {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 3px solid #e94560;
    padding: 12px 0;
    z-index: 1050;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex !important;
}

.player-flutuante-moderno.d-none {
    display: none !important;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.player-flutuante-moderno:not(.d-none) {
    display: flex !important;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Logo Wrapper com Indicador de Status */
.player-logo-wrapper {
    position: relative;
    display: inline-block;
}

.player-logo-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #e94560;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
    transition: transform 0.3s ease;
}

.player-logo-img:hover {
    transform: scale(1.05);
}

.player-status-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e94560;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #dc3545;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

/* Informações da Rádio */
.player-info-wrapper {
    padding-left: 15px;
}

.player-info-nome {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-info-meta {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-separator {
    color: #666;
}

.player-now-playing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.now-playing-label {
    color: #e94560;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.now-playing-text {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Controles */
.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-play-pause {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
    transition: all 0.3s ease;
}

.btn-play-pause:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(233, 69, 96, 0.6);
}

.btn-play-pause:active {
    transform: scale(0.95);
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
}

.player-cast-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    border-radius: 12px;
    color: #28a745;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.player-cast-indicator.offline {
    background: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
    color: #6c757d;
    animation: none !important;
}

.player-listeners {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #b0b0b0;
    font-size: 0.7rem;
}

.btn-ver-radio {
    white-space: nowrap;
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-ver-radio:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Responsivo */
@media (max-width: 992px) {
    .player-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .player-info-nome {
        font-size: 1rem;
    }
    
    .now-playing-text {
        max-width: 200px;
    }
    
    .btn-play-pause {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .player-flutuante-moderno {
        padding: 10px 0;
    }
    
    .player-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .player-info-nome {
        font-size: 0.9rem;
    }
    
    .player-info-meta {
        font-size: 0.75rem;
    }
    
    .now-playing-text {
        max-width: 150px;
        font-size: 0.75rem;
    }
    
    .now-playing-label {
        font-size: 0.7rem;
    }
    
    .btn-play-pause {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .player-stats {
        font-size: 0.7rem;
    }
    
    .btn-ver-radio {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .player-controls {
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .player-info-wrapper {
        padding-left: 10px;
    }
    
    .now-playing-text {
        max-width: 120px;
    }
    
    .player-cast-indicator,
    .player-listeners {
        font-size: 0.65rem;
    }
    
    .btn-ver-radio span {
        display: none;
    }
    
    .btn-ver-radio {
        width: 35px;
        height: 35px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.player-flutuante-moderno:not(.d-none) {
    animation: slideUp 0.3s ease-out;
}

