/* ==========================================================================
   REPRODUCTOR BRONCE - ULTRA PRO EDITION
   Solís FM Digital | Premium Interactive Experience
   ========================================================================== */

/* ==========================================================================
   1. FUENTES OPTIMIZADAS
   ========================================================================== */
@font-face {
    font-family: 'MontserratBlack';
    src: url('../fonts/Montserrat-Black.woff2') format('woff2'),
        url('../fonts/Montserrat-Black.woff') format('woff'),
        url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'MontserratSemiBold';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2'),
        url('../fonts/Montserrat-SemiBold.woff') format('woff'),
        url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/Roboto-Condensed.woff2') format('woff2'),
        url('../fonts/Roboto-Condensed.woff') format('woff'),
        url('../fonts/Roboto-Condensed.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-color: #0056ff;
    --primary-rgb: 0, 86, 255;
    --text-white: #ffffff;
    --bg-dark: #000000;
    --font-titulo: 'MontserratBlack', sans-serif;
    --font-artista: 'MontserratSemiBold', sans-serif;
    --font-creditos: 'RobotoCondensed', sans-serif;

    /* Glassmorphism Parity ORO */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px) saturate(180%);

    /* Variables overlay */
    --overlay-initial: rgba(255, 255, 255, 0.15);
    --overlay-hover: rgba(255, 255, 255, 0.25);
    --overlay-active: rgba(255, 255, 255, 1);
    --overlay-backdrop: blur(20px);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

body,
html {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: var(--font-artista);
    color: var(--text-white);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 100000;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   3. SISTEMA DE FONDO DINÁMICO
   ========================================================================== */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: #000;
    overflow: hidden;
    transform: translateZ(0);
}

#bg-cover-blur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: blur(20px) brightness(0.5) saturate(1.2);
    transition: opacity 1.5s ease;
    z-index: 0;
    animation: backgroundBreath 20s infinite alternate ease-in-out;
    will-change: transform;
}

@keyframes backgroundBreath {
    0% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.25);
    }
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* ==========================================================================
   4. ESTRUCTURA DEL REPRODUCTOR
   ========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: transparent !important;
    position: relative;
    z-index: 10;
}

.player-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    padding: 20px;
}

/* ==========================================================================
   5. 🎨 CARÁTULA INTERACTIVA CON ANIMACIÓN AL REPRODUCIR
   ========================================================================== */

.art-container {
    position: relative;
    width: min(45vh, 350px);
    aspect-ratio: 1/1;
    min-width: 220px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all var(--transition-smooth);
}

/* La imagen de la carátula */
.main-art {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;

    /* Glassmorphism base */
    border: 6px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);

    transition: all var(--transition-smooth);
    transform: translateZ(0);
}

/* ✨ MODIFICACIÓN: Glow Pulsante Dinámico (Paridad con ORO) */
.main-art.playing {
    border-color: rgba(var(--primary-rgb), 0.8);

    /* Aquí eliminamos 'vinyl-spin' y dejamos solo el pulso tipo ORO */
    animation: glow-pulse 3s ease-in-out infinite;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(var(--primary-rgb), 0.5),
        0 0 80px rgba(var(--primary-rgb), 0.3);
}

/* Rotación continua tipo vinilo */
@keyframes vinyl-spin {
    0% {
        transform: translateZ(0) rotate(0deg);
    }

    100% {
        transform: translateZ(0) rotate(360deg);
    }
}

/* Glow pulsante dinámico */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow:
            0 15px 45px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(var(--primary-rgb), 0.5),
            0 0 80px rgba(var(--primary-rgb), 0.3);
    }

    50% {
        box-shadow:
            0 15px 45px rgba(0, 0, 0, 0.6),
            0 0 60px rgba(var(--primary-rgb), 0.7),
            0 0 100px rgba(var(--primary-rgb), 0.4);
    }
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg,
            #1a1a1a 25%,
            #2a2a2a 50%,
            #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   6. OVERLAY PLAY BUTTON
   ========================================================================== */

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity var(--transition-smooth);
    pointer-events: all;
}

@media (hover: hover) {
    .play-overlay.playing {
        opacity: 0;
        pointer-events: none;
    }

    .art-container:hover .play-overlay.playing {
        opacity: 1;
        pointer-events: all;
    }
}

@media (hover: none) {
    .play-overlay.playing {
        opacity: 1;
        pointer-events: all;
    }
}

.play-overlay-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;

    background: var(--overlay-initial);
    backdrop-filter: var(--overlay-backdrop);
    -webkit-backdrop-filter: var(--overlay-backdrop);

    border: 2px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all var(--transition-smooth);

    min-width: 90px;
    min-height: 90px;

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0) scale(1);
}

@media (hover: hover) {
    .play-overlay-btn:hover {
        background: var(--overlay-hover);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateZ(0) scale(1.1);
        box-shadow:
            0 12px 40px 0 rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }
}

.play-overlay-btn:active,
.play-overlay-btn.active {
    background: var(--overlay-active) !important;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateZ(0) scale(0.95);
}

.play-overlay-btn.playing {
    background: var(--overlay-active);
    border-color: rgba(255, 255, 255, 0.8);
}

.play-overlay-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 6px;
}

#play-icon {
    font-size: 32px;
    color: #000000;
    margin-left: 4px;
    transition: all var(--transition-fast);
}

.play-overlay-btn.playing #play-icon {
    margin-left: 0;
}

/* ==========================================================================
   7. AUDIO PULSE INDICATOR
   ========================================================================== */

.audio-pulse-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-smooth);
    z-index: 5;
}

.audio-pulse-indicator.active {
    opacity: 1;
    transform: scale(1);
}

.pulse-bar {
    width: 4px;
    background: linear-gradient(to top, var(--primary-color), rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    animation: pulse-wave 0.8s ease-in-out infinite;
}

.pulse-bar:nth-child(1) {
    animation-delay: 0s;
    height: 40%;
}

.pulse-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 70%;
}

.pulse-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 50%;
}

@keyframes pulse-wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

/* ==========================================================================
   8. INFORMACIÓN DE LA CANCIÓN
   ========================================================================== */

.info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
}

/* ==========================================================================
   ✨ BADGE "EN VIVO" - CLASE MAESTRA UNIFICADA (PARIDAD CON BRONCE/ORO)
   ========================================================================== */
.badge-envivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 9999px;
    padding: 0.35em 1em;

    min-width: 11rem;
    /* Ancho fijo para paridad con Oro */
    width: fit-content;
    margin: 0 auto 0.625rem auto;

    font-family: var(--font-titulo);
    font-size: clamp(0.625rem, 1.5vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
}

.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ff3333;
    flex-shrink: 0;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(255, 51, 51, 0);
    }
}

.badge-text {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: #fff;
}

.badge-divider {
    width: 1px;
    height: 0.9em;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.badge-listeners {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    color: #fff;
}

.badge-listeners i {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
}

/* Ocultar oyentes (solo Bronce) */
.badge-no-listeners .badge-divider,
.badge-no-listeners .badge-listeners {
    display: none;
}


/* ✨ MARQUESINA MEJORADA (Mantiene scroll de textos largos) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Máscara para fade en los bordes */
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

#track-title {
    font-family: var(--font-titulo);
    font-size: 2.2rem;
    white-space: nowrap;
    display: inline-block;
    will-change: transform;
    margin: 0;
    /* Paridad ORO */
}

/* ✨ MARQUESINA ACTIVA: Scroll de derecha a izquierda */
.track-title-marquee {
    animation: marquee-scroll 15s linear infinite;
    animation-play-state: running;
}

/* Pausar al hacer hover (mejor UX) */
.marquee-container:hover .track-title-marquee {
    animation-play-state: paused;
}

/* Animación mejorada: derecha → izquierda continua */
@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Marquesina para título dinámica (Loop) */
.track-title-marquee {
    display: flex !important;
    width: max-content !important;
    animation: marquee-infinite-loop linear infinite;
    animation-play-state: running;
}

.marquee-container:hover .track-title-marquee,
.artist-container:hover .track-artist-marquee {
    animation-play-state: paused;
}

.artist-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;

    /* Máscara para el artista también */
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

#track-artist {
    font-family: var(--font-artista);
    font-size: 1.3rem;
    opacity: 0.85;
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    display: flex;
    width: max-content;
    will-change: transform;
}

/* Marquesina para artista dinámica (Loop) */
.track-artist-marquee {
    animation: marquee-infinite-loop linear infinite;
    animation-play-state: running;
}

/* Espacio entre repeticiones del loop */
.marquee-spacer {
    display: inline-block;
    padding: 0 50px;
    opacity: 0;
}

/* Animación Universal Sin Costuras (Loop 0 a -50%) */
@keyframes marquee-infinite-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   9. 🎚️ CONTROL DE VOLUMEN PROFESIONAL (ULTRA PRO)
   ========================================================================== */

.volume-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    min-height: 60px;
    padding: 18px 35px;

    /* Glassmorphism mejorado */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transition: all var(--transition-smooth);
}

.volume-container:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.18) 100%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.volume-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.volume-container:hover .volume-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ✨ SLIDER PROFESIONAL */
.volume-slider-wrapper {
    position: relative;
    flex: 1;
    max-width: 180px;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;

    /* Track con gradiente */
    background: linear-gradient(to right,
            var(--primary-color) 0%,
            var(--primary-color) var(--volume-percent, 50%),
            rgba(255, 255, 255, 0.15) var(--volume-percent, 50%),
            rgba(255, 255, 255, 0.15) 100%);

    outline: none;
    cursor: pointer;

    /* Touch area ampliada */
    padding: 18px 0;
    margin: -18px 0;

    transition: all var(--transition-fast);
}

#volume-slider:hover {
    background: linear-gradient(to right,
            var(--primary-color) 0%,
            var(--primary-color) var(--volume-percent, 50%),
            rgba(255, 255, 255, 0.25) var(--volume-percent, 50%),
            rgba(255, 255, 255, 0.25) 100%);
}

/* ✨ THUMB PROFESIONAL (Chrome/Safari) */
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;

    /* Glassmorphism en el thumb */
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);

    border: 3px solid var(--primary-color);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(0, 86, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    cursor: pointer;

    transition: all var(--transition-fast);
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 0 6px rgba(0, 86, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#volume-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* ✨ THUMB PROFESIONAL (Firefox) */
#volume-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid var(--primary-color);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(0, 86, 255, 0.2);
    cursor: pointer;
}

/* ✨ PORCENTAJE CON TOOLTIP */
#vol-pct {
    min-width: 45px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);

    /* Glassmorphism mini */
    background: rgba(0, 86, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;

    transition: all var(--transition-fast);
}

.volume-container:hover #vol-pct {
    background: rgba(0, 86, 255, 0.2);
    transform: scale(1.05);
}

/* ==========================================================================
   10. INDICADOR EN VIVO
   ========================================================================== */

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--font-creditos);
    letter-spacing: 2px;
    width: 100%;
}

.live-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transform: translateZ(0);
}

.dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: rgba(255, 0, 0, 0.6);
    border-radius: 50%;
    animation: pulse-radial 2s infinite;
}

@keyframes pulse-radial {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }

    100% {
        width: 35px;
        height: 35px;
        opacity: 0;
    }
}

/* ==========================================================================
   11. FOOTER Y REDES SOCIALES
   ========================================================================== */

.site-footer {
    width: 100%;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#credits-container {
    font-family: var(--font-creditos);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#credits-container a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none !important;
    font-weight: 600;
    transition: color var(--transition-fast);
}

#credits-container a:hover {
    color: var(--primary-color);
}

.social-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 15px auto;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 28px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-family: var(--font-creditos);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: all var(--transition-smooth);
    touch-action: manipulation;
}

.social-trigger i {
    margin-right: 10px;
    font-size: 0.9rem;
}

@media (hover: hover) {
    .social-trigger:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.social-trigger:active {
    transform: scale(0.98);
}

.social-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.social-overlay.active {
    opacity: 1;
    visibility: visible;
}

.social-content {
    text-align: center;
    transform: translateY(30px);
    transition: 0.5s ease;
    width: 100%;
}

.social-overlay.active .social-content {
    transform: translateY(0);
}

.social-icons-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.social-item {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 60px;
    min-height: 60px;
    padding: 10px;
    transition: all var(--transition-smooth);
}

.social-item i {
    font-size: 2.5rem;
}

.social-item span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

@media (hover: hover) {
    .social-item:hover {
        color: var(--primary-color);
        text-shadow: 0 0 15px var(--primary-color);
        transform: scale(1.1);
    }
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all var(--transition-smooth);
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ==========================================================================
   12. HEADER
   ========================================================================== */

.site-header {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.header-content-centered {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Efecto traslúcido ORO */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-smooth);
}

.header-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.header-titles {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-name {
    font-family: var(--font-titulo);
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1.2;
}

.header-freq {
    color: var(--primary-color);
    font-weight: 300;
    margin-left: 8px;
    font-size: 0.85rem;
}

.header-slogan {
    font-family: var(--font-creditos);
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 5px;
}

/* ==========================================================================
   13. RESPONSIVE - MOBILE FIRST & PORTRAIT VERTICAL
   ========================================================================== */

@media (max-width: 999px) and (orientation: portrait),
(max-width: 768px) {
    .player-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px !important;
        padding: 15px;
        margin-top: 2vh;
    }

    /* Grid A (Carátula): Centrada arriba */
    .art-container {
        width: min(60vw, 320px);
        margin: 0 auto;
        justify-self: center !important;
    }

    /* Grid B (Información): Centrada abajo */
    .info-wrapper {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-self: center !important;
        padding-right: 0 !important;
    }

    .marquee-container,
    .artist-container,
    .volume-container {
        justify-content: center;
        width: 100%;
    }

    .play-overlay-btn {
        width: 75px;
        height: 75px;
        min-width: 75px;
        min-height: 75px;
    }

    #play-icon {
        font-size: 28px;
    }

    .audio-pulse-indicator {
        bottom: 15px;
        right: 15px;
        height: 25px;
    }

    /* Ocultar volumen en móvil */
    .volume-container {
        display: none !important;
    }

    .live-indicator {
        margin-top: -5px;
        margin-bottom: 10px;
        /* Igualado a desktop y ORO */
        gap: 5px;
    }

    .marquee-container {
        width: 90vw;
        max-width: 320px;
        margin: 0 auto;
    }

    #track-title {
        font-size: 1.6rem;
    }

    #track-artist {
        font-size: 1rem;
        opacity: 0.75;
    }

    .social-trigger {
        padding: 8px 22px;
        font-size: 0.7rem;
    }

    .site-header {
        height: 70px;
    }

    .header-content-centered {
        gap: 15px;
    }

    .header-name {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .header-slogan {
        font-size: 0.5rem;
        letter-spacing: 2px;
    }

    .header-logo {
        height: 35px;
    }

    .social-icons-grid {
        gap: 25px;
        padding: 0 20px;
    }

    .close-btn {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
}

/* ==========================================================================
   14. DESKTOP > 1000px (Diseño 50/50 con Entrada Suave)
   ========================================================================== */

@media (min-width: 1000px) {
    .player-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Dos columnas iguales */
        align-items: center;
        gap: 4vw;
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        padding: 40px;

        /* Animación de entrada para todo el contenedor */
        animation: smooth-reveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Grid A: Lado izquierdo (Carátula a la derecha de su celda) */
    .art-container {
        width: 330px;
        max-width: 40vw;
        justify-self: end;

        /* Retraso sutil para que la carátula aparezca un poco después */
        animation: smooth-reveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Grid B: Lado derecho (Info al inicio de su celda) */
    .info-wrapper {
        justify-self: start;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 550px;
        padding-right: 50px;

        /* Animación con un poco más de retraso para profundidad */
        animation: smooth-reveal 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .marquee-container,
    .artist-container {
        justify-content: center;
        width: 100%;
    }

    .live-indicator {
        width: fit-content;
        margin: 0 auto;
    }

    #track-title {
        font-size: 2.8rem;
    }
}

/* ✨ NUEVA ANIMACIÓN: Revelado suave con desplazamiento */
@keyframes smooth-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        /* Viene un poco desde abajo */
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   15. PREFERS-REDUCED-MOTION (ACCESIBILIDAD)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .dot::before,
    #bg-cover-blur,
    .pulse-bar,
    .main-art.playing {
        animation: none !important;
    }
}