/* Barra fija en el fondo */
.bawp-player-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    font-family: 'Helvetica Neue', sans-serif;
    border-top: 3px solid #0073aa; /* Color WordPress */
}

/* Botón Play */
.bawp-btn-play {
    background: #0073aa;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.bawp-btn-play:hover {
    transform: scale(1.1);
    background: #0096dd;
}
.bawp-btn-play span {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Texto e Info */
.bawp-track-info {
    flex-grow: 1;
    margin-left: 20px;
    overflow: hidden;
}
#bawp-track-title {
    display: block;
    font-weight: bold;
    font-size: 16px;
}
.bawp-artist {
    display: block;
    font-size: 13px;
    color: #bbb;
}

/* Timer y Estado */
.bawp-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 14px;
}
.status-dot {
    width: 10px;
    height: 10px;
    background-color: #555; /* Apagado/Cargando */
    border-radius: 50%;
    display: inline-block;
}
.status-dot.live {
    background-color: #46b450; /* Verde - Sonando */
    box-shadow: 0 0 5px #46b450;
}
.status-dot.loading {
    background-color: #f0ad4e; /* Naranja - Buffering */
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

.bawp-radio-container {
    background: #222;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    font-family: sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

#bawp-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    opacity: 0.3; /* Para que quede de fondo sutil */
    z-index: 0;
}

.bawp-player-interface {
    position: relative;
    z-index: 1; /* Encima del visualizador */
    display: flex;
    align-items: center;
    gap: 15px;
}

.bawp-ctrl-btn {
    background: #2271b1;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.bawp-ctrl-btn:hover { transform: scale(1.1); background: #135e96; }
.bawp-ctrl-btn span { font-size: 24px; width: 24px; height: 24px; }

.bawp-track-info { flex-grow: 1; }

.bawp-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* CRÍTICO: Oculta el texto que se sale */
    white-space: nowrap; /* Evita que el texto baje a otra línea */
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); /* Desvanecido en bordes */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.track-title {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}

/* El Artista: Animación de Scroll */
.track-artist {
    display: inline-block;
    font-size: 0.9em;
    color: #ccc;
    padding-left: 0;
    
    /* ANIMACIÓN: Solo si quieres que se mueva siempre */
    /* Para hacerlo condicional (solo si es largo) se requiere JS, 
       pero este truco hace que se mueva lento siempre para dar estilo */
    animation: marquee 15s linear infinite; 
    padding-left: 100%; /* Empieza fuera de la pantalla */
}

/* Definición de la animación */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* PAUSA AL PASAR EL MOUSE (Opcional, para leer tranquilo) */
.bawp-meta:hover .track-artist {
    animation-play-state: paused;
}


.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    display: inline-block;
    margin-right: 5px;
}
.status-dot.live { background: #46b450; box-shadow: 0 0 10px #46b450; }
.status-dot.loading { background: #f0ad4e; animation: blink 1s infinite; }

.bawp-timer {
    font-family: monospace;
    font-size: 1.1em;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 4px;
}

@keyframes blink { 50% { opacity: 0.5; } }