
.audio-player {
    margin-top: 3rem;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    z-index: 2; /* Ensure it's on top */
}
.audio-player audio {
    width: 100%;
    z-index: 3; /* Ensure controls are on top */
}
.audio-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none; /* Initially hidden */
    pointer-events: none; /* Allow clicks to pass through */
}
.audio-visualizer .bar {
    width: 4px;
    height: 100%;
    margin: 0 2px;
    background: #FFD700;
    animation: wave 1s infinite;
}
@keyframes wave {
    0% { transform: scaleY(0.2); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0.2); }
}
.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }
.bar:nth-child(6) { animation-delay: 0.5s; }
.bar:nth-child(7) { animation-delay: 0.6s; }
.bar:nth-child(8) { animation-delay: 0.7s; }
.bar:nth-child(9) { animation-delay: 0.8s; }
.bar:nth-child(10) { animation-delay: 0.9s; }
.live-indicator {
    position: absolute;
    top: 4rem; /* Move down from the top */
    left: 1rem; /* Move to the left */
    padding: 0.25rem 0.5rem;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 1;
}
.live-indicator::before,
.live-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    border: 3px solid rgba(231, 76, 60, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
}
.live-indicator::after {
    width: 300%;
    height: 300%;
    animation-delay: 0.75s;
}
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}
.container-boton .boton,
.navbar-toggler-icon {
    animation: none;
}
@media (max-width: 576px) {
    .navbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .jumbotron {
        height: 300px;
    }
    .audio-player {
        margin-top: 1rem;
    }
}
@keyframes glowing {
    0% { box-shadow: 0 0 5px #1e90ff, 0 0 10px #1e90ff, 0 0 15px #1e90ff, 0 0 20px #1e90ff; }
    50% { box-shadow: 0 0 20px #1e90ff, 0 0 30px #1e90ff, 0 0 40px #1e90ff, 0 0 50px #1e90ff; }
    100% { box-shadow: 0 0 5px #1e90ff, 0 0 10px #1e90ff, 0 0 15px #1e90ff, 0 0 20px #1e90ff; }
}
.playing {
    animation: glowing 1.5s infinite;
}
