* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #0c0c0e;
}

/* Capa para Video de Fondo */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.bg-video.active {
    opacity: 1;
}

/* Capas para Imágenes de Fondo */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}
.bg-slider.active {
    opacity: 1;
}
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* Barra Superior Alargada */
.player-bar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 92%;
    max-width: 1100px;
    background: rgba(10, 10, 15, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Sección de Info (Badge + Titulo) */
.info-section {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}
.live-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 59, 48, 0.3);
    white-space: nowrap;
}
.live-dot {
    width: 6px;
    height: 6px;
    background-color: #ff3b30;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}
.station-title h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    background: linear-gradient(45deg, #ffffff, #a1a1a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.station-title .station-sub {
    color: #888;
    font-size: 0.65rem;
    display: block;
}

/* Sección Central: Vúmetro + Link Destacado a lo largo */
.center-section {
    flex: 1;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.vumeter-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 16px;
}
.vubar {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.vubar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #00dd77 0%, #ffcc00 70%, #ff3b30 100%);
    transition: height 0.08s ease;
    border-radius: 2px;
}

/* Enlace en Rojo Pardo Cereza - Más Grande y Destacado */
.site-link {
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #a81c39;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 6px rgba(168, 28, 57, 0.4);
}
.site-link:hover {
    color: #d92b4c;
    text-shadow: 0 0 12px rgba(217, 43, 76, 0.7);
    letter-spacing: 1.8px;
}

/* Sección Derecha: Estado y Tiempo */
.status-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 180px;
    text-align: right;
}
.status-text {
    font-size: 0.82rem;
    color: #00dd77;
    font-weight: 500;
    white-space: nowrap;
}
.play-timer {
    font-size: 0.78rem;
    color: #aaa;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    margin-top: 2px;
}
.play-timer::before {
    content: "▶ ";
    color: #00dd77;
    font-size: 0.55rem;
    vertical-align: middle;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px #ff3b30; }
    100% { transform: scale(0.9); opacity: 0.4; }
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .player-bar {
        top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 14px;
        gap: 8px;
    }
    .info-section {
        min-width: auto;
    }
    .center-section {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .status-section {
        align-items: flex-end;
        min-width: auto;
    }
    .site-link {
        font-size: 0.85rem;
    }
}

audio { display: none; }
