/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-deep-blue: #000322;
    --bg-light-blue: #022950;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --neon-red: #ef4444;
    --accent-pink: #ec4899;
    --neon-pink-glow: rgba(236, 72, 153, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* --- BLOQUEO DE SCROLL & SCROLLBAR --- */
body.no-scroll {
    overflow: hidden !important;
    touch-action: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.6);
}

/* =========================================
   2. ESTRUCTURA BASE & FONDO
   ========================================= */
body {
    background: linear-gradient(135deg, var(--bg-deep-blue), var(--bg-light-blue));
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Fondo con optimización móvil */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/fondo-v2.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    animation: bgEntrance 2.5s ease-out forwards, bgZoom 30s ease-in-out infinite alternate;
}

.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateZ(0);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 10s infinite alternate ease-in-out;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 180vw;
    height: 180vw;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.8) 0%, rgba(0, 140, 255, 0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 180vw;
    height: 180vw;
    background: radial-gradient(circle, rgba(0, 81, 255, 0.8) 0%, rgba(0, 81, 255, 0) 70%);
    animation-delay: -3s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 180vw;
    height: 180vw;
    background: radial-gradient(circle, rgba(65, 48, 209, 0.6) 0%, rgba(65, 48, 209, 0) 70%);
    animation-delay: -5s;
}

/* =========================================
   3. LAYOUT PRINCIPAL
   ========================================= */
.app-container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 10px 10px;
    width: 100%;
}

main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Paneles */
.side-panel {
    width: 350px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.panel-container {
    padding: 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: 0.3s;
    width: 100%;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.13);
    border: 1px solid var(--glass-border);
}

.left-container {
    background: linear-gradient(90deg, rgba(8, 50, 235, 0.384) 0%, rgba(0, 3, 34, 0.4) 100%) !important;
    border-left: 6px solid var(--accent-cyan);
    box-shadow: inset 15px 0 30px -10px rgba(6, 182, 212, 0.2);
    align-items: flex-start;
}

.right-container {
    background: linear-gradient(-90deg, rgba(8, 50, 235, 0.384) 0%, rgba(0, 3, 34, 0.4) 100%) !important;
    border-right: 6px solid var(--accent-pink);
    box-shadow: inset -15px 0 30px -10px var(--neon-pink-glow);

    align-items: flex-end;
    text-align: right;
    justify-content: center;
    min-height: 321.53px;
    padding-top: 15px;
    padding-bottom: 15px;
    gap: 5px;
}

/* =========================================
   4. COMPONENTES UI
   ========================================= */
#lottieLogo {
    width: 180px;
    height: 90px;
    cursor: pointer;
    filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.3));
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Widget Clima */
.weather-widget {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0 20px;
    height: 44px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: default;
    user-select: none;
}

.weather-icon {
    font-size: 1.1rem;
    color: #fbd38d;
    animation: pulse-weather 3s infinite ease-in-out;
}

.glass-card {
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.glass-card.clickable:hover {
    transform: translateY(-3px) translateX(3px);
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.clickable {
    cursor: pointer;
}

.glass-card.card-live:hover {
    background: rgba(255, 59, 59, 0.15);
    border-color: var(--neon-red);
}

/* Iconos cuadrados (Youtube, Video) */
.icon-sq {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-text h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 3px;
}


.card-text p {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: #fff;
}

.badge-nuevo {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
    letter-spacing: 1px;
    transform: rotate(5deg);
    pointer-events: none;
    animation: badgePulse 2s infinite ease-in-out;
    will-change: transform, box-shadow;
}

.badge-nuevo2 {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffee00;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
    letter-spacing: 1px;
    transform: rotate(5deg);
    pointer-events: none;
}

/* Mini Visualizer */
.mini-visualizer {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: flex-end;
    justify-content: center;
}

.mini-bar {
    width: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transform-origin: bottom;
    animation: miniBounce 0.8s infinite ease-in-out alternate;
    height: 100%;
}

.mini-bar:nth-child(1) {
    height: 10px;
    animation-delay: 0s;
}

.mini-bar:nth-child(2) {
    height: 16px;
    animation-delay: 0.2s;
}

.mini-bar:nth-child(3) {
    height: 8px;
    animation-delay: 0.4s;
}

/* --- ESTILOS LAST.FM (Panel Sonando) --- */
.cover-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* Album Art: Sombra azulada */
.album-art-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);

    /* CAMBIO: Sombra azul profunda */
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);

    animation: fadeIn 0.5s ease;
}

.cover-wrapper.has-art #defaultIcon {
    display: none;
}

.cover-wrapper.has-art .album-art-img {
    display: block;
}

.artist-text {
    font-size: 0.8rem !important;
    color: var(--accent-cyan) !important;
    font-weight: 500 !important;
    margin-top: 2px;
    text-transform: uppercase;
    display: none;
}

.track-info p {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.fade-text {
    opacity: 0;
    transform: translateY(5px);
}

/* =========================================
   5. CENTER STAGE (PLAYER)
   ========================================= */
.center-stage {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 15;
}

.audio-stage-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(8, 50, 235, 0.473) 0%, rgba(2, 6, 23, 0.644) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    padding: 30px 35px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.play-btn {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1e293b, #02061791);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        20px 20px 60px rgba(0, 0, 0, 0.6),
        -5px -5px 20px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.play-btn:active {
    transform: scale(0.96);
    box-shadow:
        5px 5px 20px rgba(0, 0, 0, 0.8),
        -2px -2px 10px rgba(255, 255, 255, 0.05),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.play-btn:hover {
    border-color: var(--accent-cyan);
    box-shadow:
        20px 20px 60px rgba(0, 0, 0, 0.6),
        -5px -5px 20px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(6, 182, 212, 0.1);
}

.play-btn i {
    font-size: 4rem;
    color: white;
    transition: 0.3s;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.play-btn:hover i {
    text-shadow: 0 0 30px var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Anillos */
.player-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    will-change: transform;
    backface-visibility: hidden;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
    border-top: 1px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.ring-2 {
    width: 88%;
    height: 88%;
    animation: spin 25s linear infinite reverse;
    border-bottom: 1px solid var(--accent-blue);
    opacity: 0.7;
}

.live-tag {
    margin-top: 20px;
    background: rgba(10, 0, 0, 0.6);
    border: 1px solid rgba(255, 59, 59, 0.5);
    color: var(--neon-red);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: liveGlow 3s infinite ease-in-out;
    position: relative;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 5px #ff0000;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--neon-red);
    opacity: 0;
    animation: radioWave 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes liveGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 59, 59, 0.1);
        border-color: rgba(255, 59, 59, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 59, 59, 0.4);
        border-color: rgba(255, 59, 59, 0.8);
    }
}

@keyframes radioWave {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 400%;
        height: 400%;
        opacity: 0;
        border-width: 0px;
    }
}

/* Control Volumen */
.volume-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    margin-top: 30px;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.volume-controls i {
    cursor: pointer;
    width: 30px;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    width: 120px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px white;
    transition: 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--accent-cyan);
}

/* Visualizador */
.visualizer {
    display: flex;
    gap: 6px;
    height: 45px;
    align-items: flex-end;
    margin-top: 20px;
    justify-content: center;
}

.bar {
    width: 6px;
    /* Fondo base apagado */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    transition: 0.2s ease;
    /* Transición más rápida para que se sienta ágil */
}

/* Cuando suena */
.playing .bar {
    /* DEGRADADO VERTICAL: De Cian a Azul */
    background: linear-gradient(to top, var(--accent-blue), var(--accent-cyan));

    /* Sombra pequeña solo abajo para anclarlo */
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.4);

    animation: smoothWave infinite ease-in-out;
}

.playing .bar:nth-child(1) {
    animation-duration: 0.8s;
}

.playing .bar:nth-child(2) {
    animation-duration: 1.1s;
}

.playing .bar:nth-child(3) {
    animation-duration: 0.9s;
}

.playing .bar:nth-child(4) {
    animation-duration: 1.2s;
}

/* Latido en pausa */
.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.center-stage:not(.playing) .play-btn::before {
    animation: pulse-glow-gpu 2s infinite;
}

.center-stage:not(.playing) .play-btn {
    animation: none;
}

/* =========================================
   6. VIDEO STAGE (TWITCH)
   ========================================= */
.video-stage-content {
    display: none;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease-in-out;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.video-stage-content.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.twitch-frame {
    width: 800px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.twitch-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-twitch-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-twitch-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* =========================================
   7. PANEL DERECHO & METADATA
   ========================================= */
.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.25);
    transition: transform 0.3s ease;
}

.avatar-container:hover .avatar {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.label-aire {
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 5px;
}

i[aria-hidden="true"] {
    display: inline-block;
}

.right-container h2 {
    margin-bottom: 2px !important;
}

.avatar-container .avatar {
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.avatar-container h3 {
    padding: 0;
}

.live-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border: none;
    animation: none;
    opacity: 1;
    pointer-events: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    text-decoration: none;
    z-index: 900;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 50px rgba(37, 211, 102, 0.6);
}

/* Indicador Scroll */
.scroll-indicator {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 25px;
    z-index: 90;
    color: var(--accent-cyan);
    font-size: 2rem;
    opacity: 0.8;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    animation: bounceDown 2s infinite ease-in-out;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.scroll-indicator.hidden-by-scroll {
    opacity: 0;
    transform: translateY(20px);
}

@media (max-width: 1024px) {
    .scroll-indicator {
        display: block;
    }
}

/* =========================================
   8. OVERLAYS, SCHEDULE & MENU
   ========================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.39);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-top: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: white;
}

.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat';
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.schedule-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.schedule-content.active {
    display: block;
}

/* Lista Programación */
.schedule-list-v2 {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sched-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.sched-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sched-card.is-live {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.02));
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
    transform: scale(1.02);
    z-index: 2;
}

.sched-card.is-live::before {
    content: "AL AIRE";
    position: absolute;
    top: -8px;
    left: 20px;
    background: var(--accent-cyan);
    color: black;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.sched-card.is-live .sched-time {
    color: var(--accent-cyan);
}

.sched-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
}

/* Nuevo efecto de Neón para títulos clave */
.sched-time,
#statusLabel,
.label-aire span {
    text-shadow: 0 0 10px rgba(var(--accent-cyan), 0.5);
}

#trackTitle {
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sched-title-box {
    background: var(--accent-pink);
    color: white;
    padding: 5px 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    margin-bottom: 2px;
    width: fit-content;
}

.sched-host {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.sched-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Menu Grid */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.menu-card-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    transition: 0.3s ease;
}

.menu-card-v2:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: var(--accent-cyan);
}

.menu-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.menu-title-box {
    background: #ec4899;
    color: white;
    padding: 6px 12px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    width: fit-content;
}

.menu-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.menu-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.menu-card-v2:hover .menu-icon-circle {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   9. ANIMACIONES GENERALES
   ========================================= */
@keyframes bgEntrance {
    0% {
        opacity: 0;
        filter: blur(5px) grayscale(100%);
        transform: scale(1.1);
    }

    100% {
        opacity: 0.7;
        filter: blur(0px) grayscale(0%);
        transform: scale(1);
    }
}

@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.1);
    }
}

@keyframes pulse-weather {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes miniBounce {
    0% {
        transform: scaleY(0.2);
        opacity: 0.5;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes smoothWave {
    0% {
        height: 10px;
    }

    50% {
        height: 40px;
    }

    100% {
        height: 10px;
    }
}

@keyframes pulse-glow-gpu {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg) translateZ(0);
    }

    100% {
        transform: rotate(360deg) translateZ(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes subtleRadar {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(1) rotate(5deg);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    50% {
        transform: scale(1.05) rotate(6deg);
        box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    }

    100% {
        transform: scale(1) rotate(5deg);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.live-pulse-ring::before,
.live-pulse-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
    opacity: 0;
    animation: subtleRadar 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.live-pulse-ring::before {
    animation-delay: 0s;
}

.live-pulse-ring::after {
    border-color: var(--accent-blue);
    animation-delay: 1.5s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* =========================================
   12. MEDIA QUERIES
   ========================================= */

@media (max-width: 1440px) and (min-width: 1025px) {
    .center-stage {
        transform: translate(-50%, -50%) scale(0.85);
        width: auto;
    }

    .side-panel {
        width: 280px;
    }

    .app-container {
        padding: 15px 20px;
    }

    #currentShowTitle {
        font-size: 1.3rem !important;
    }

    .logo #lottieLogo {
        width: 150px;
    }
}

@media (max-width: 1560px) {
    .twitch-frame {
        width: 600px;
        height: 340px;
    }
}

@media (max-width: 1200px) {
    .side-panel {
        width: 280px;
    }

    .player-wrapper {
        width: 280px;
        height: 280px;
    }

    .play-btn {
        width: 190px;
        height: 190px;
    }

    .twitch-frame {
        width: 600px;
        height: 340px;
    }
}

@media (max-width: 1122px) {
    .twitch-frame {
        width: 500px;
        height: 340px;
    }
}

@media (max-width: 1024px) {
    .whatsapp-float {
        bottom: 50px;
        right: 20px;
        z-index: 999;
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .app-container {
        padding: 15px;
    }

    header {
        padding-bottom: 10px;
    }

    main {
        flex-direction: column;
        gap: 40px;
        justify-content: flex-start;
        margin-top: 30px;
    }

    .side-panel,
    .panel-container {
        z-index: 1;
    }



    .side-panel {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .panel-container {
        text-align: center;
        align-items: center;
        border: 1px solid var(--glass-border);
        border-bottom: 4px solid var(--accent-cyan);
    }

    .left-container {
        border-left: none !important;
        border-bottom: 6px solid var(--accent-cyan) !important;
        background: linear-gradient(180deg, rgba(0, 3, 34, 0.4) 0%, rgba(8, 50, 235, 0.384) 100%) !important;
        box-shadow: inset 0 -15px 30px -10px rgba(6, 182, 212, 0.3) !important;
    }

    .right-container {
        border-right: none !important;
        border-bottom: 6px solid var(--accent-pink) !important;
        background: linear-gradient(180deg, rgba(0, 3, 34, 0.4) 0%, rgba(8, 50, 235, 0.384) 100%) !important;
        box-shadow: inset 0 -15px 30px -10px var(--neon-pink-glow) !important;
    }

    .glass-card {
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .center-stage {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        order: -1;
        margin-bottom: 10px;
    }

    body {
        font-family: 'Montserrat', sans-serif;
        overflow-y: auto;
        height: auto;
        font-display: swap;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 768px) {
    body::before {
        animation: none !important;
        height: 120vh !important;
        bottom: auto !important;
        opacity: 0.5 !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }

    body {
        background-attachment: scroll;
    }
}

@media (max-width: 486px) {
    header {
        padding: 0;
    }

    a[href*="youtube.com/@laservivo"] .card-text {
        max-width: 250px;
    }

    .yt-alert {
        text-align: center;
    }

    .video-stage-content {
        width: 100vw;
        border-radius: 0;
    }

    .twitch-frame {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        border-left: none;
        border-right: none;
    }

    .weather-widget {
        padding: 0 12px;
        gap: 6px;
        font-size: 0.8rem;
    }

    .app-container {
        padding: 10px;
        overflow-x: hidden;
    }

    .player-wrapper {
        width: 250px;
        height: 250px;
    }

    .play-btn {
        width: 160px;
        height: 160px;
    }

    .play-btn i {
        font-size: 2.5rem;
    }

    .side-panel {
        gap: 10px;
    }

    #lottieLogo {
        width: 140px;
        height: 70px;
    }

    .btn-nav span {
        display: none;
    }

    .btn-nav {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .modal-title {
        font-size: 1.3rem;
        margin-top: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        letter-spacing: 1px;
    }

    .close-btn {
        top: 15px;
        right: 15px;
        font-size: 1.2rem;
    }

    .tabs-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        white-space: nowrap;
    }

    .sched-card {
        padding: 12px;
        gap: 10px;
    }

    .sched-time {
        font-size: 0.95rem;
    }

    .sched-title-box {
        font-size: 0.85rem;
        padding: 4px 10px;
    }

    .sched-host {
        font-size: 0.8rem;
    }

    .sched-img {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }
}

/* GPU Fix */
.live-pulse-ring::before,
.live-pulse-ring::after {
    will-change: transform, opacity;
    transition: none;
}

.sched-card {
    transform: translateZ(0);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.sched-time,
.sched-title-box {
    -webkit-font-smoothing: antialiased;
}