/* bexhu-radio-player - Spotify-like UI */

:root {
    --bexhu-bg: rgba(18, 18, 18, 0.95);
    --bexhu-accent: #1db954; /* Spotify Green */
    --bexhu-text-primary: #fff;
    --bexhu-text-secondary: #b3b3b3;
    --bexhu-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

#bexhu-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--bexhu-bg);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999999;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.bexhu-player-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Branding */
.bexhu-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bexhu-logo-wrap {
    width: 56px;
    height: 56px;
    background: #282828;
    border-radius: 4px;
    overflow: hidden;
}

.bexhu-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bexhu-info {
    display: flex;
    flex-direction: column;
}

.station-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--bexhu-text-primary);
}

.live-status {
    font-size: 11px;
    font-weight: 400;
    color: var(--bexhu-text-secondary);
    text-transform: uppercase;
}

/* Controls */
.bexhu-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bexhu-btn {
    background: var(--bexhu-text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1);
}

.bexhu-btn:hover {
    transform: scale(1.1);
}

.bexhu-btn svg {
    width: 20px;
    height: 20px;
    color: #000;
}

.bexhu-now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stream-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--bexhu-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Visualizer Animation */
.bexhu-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 12px;
}

.bexhu-visualizer span {
    width: 3px;
    background: var(--bexhu-accent);
    animation: bounce 0s infinite alternate;
}

.bexhu-playing .bexhu-visualizer span {
    animation-duration: 0.5s;
}

.bexhu-visualizer span:nth-child(1) { height: 100%; animation-delay: -0.2s; }
.bexhu-visualizer span:nth-child(2) { height: 60%; animation-delay: -0.4s; }
.bexhu-visualizer span:nth-child(3) { height: 80%; animation-delay: -0.6s; }

@keyframes bounce {
    from { transform: scaleY(0.4); }
    to { transform: scaleY(1); }
}

/* Volume */
.bexhu-volume-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.bexhu-btn-min {
    background: none;
    border: none;
    color: var(--bexhu-text-secondary);
    cursor: pointer;
}

.bexhu-btn-min svg { width: 20px; height: 20px; }

#bexhu-volume {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: #4d4d4d;
    border-radius: 2px;
    outline: none;
}

#bexhu-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--bexhu-text-primary);
    border-radius: 50%;
    cursor: pointer;
}

/* ===================================================
   Mobile Responsiveness
   =================================================== */
@media (max-width: 768px) {
    #bexhu-player-container {
        height: 75px;
        justify-content: center;
        padding: 0 10px;
    }
    
    .bexhu-player-inner {
        justify-content: space-evenly;
    }
    
    .bexhu-controls {
        flex-direction: row; /* Coloca botón de play y texto lado a lado en móvil */
        gap: 15px;
    }
    
    .bexhu-volume-wrap {
        display: none; /* En móvil, el control de volumen se maneja por hardware */
    }
}
