/* Reset de Estilos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overscroll-behavior: none;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #07050f;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Luces de Neón Flotantes en el Fondo (Glow) */
.neon-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff007f 0%, rgba(255, 0, 127, 0) 70%);
    top: -150px;
    left: -150px;
}

.glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #00f0ff 0%, rgba(0, 240, 255, 0) 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 60px) scale(1.15);
    }
}

/* Diseño General de Doble Columna (Layout) */
.app-layout {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 380px;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

/* COLUMNA IZQUIERDA: PANTALLA PRINCIPAL */
.main-content {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Estilos de Pantallas Intercambiables */
.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

/* Tarjeta Glassmorphic */
.glass {
    background: rgba(14, 11, 28, 0.55);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.01);
}

/* Tarjeta Estado Inactivo (Idle) */
.idle-card {
    padding: 3.5rem 3rem;
    width: 90%;
    max-width: 560px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.idle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 10s infinite linear;
}

@keyframes shine {
    0% { transform: translate(-30%, -30%) rotate(30deg); }
    100% { transform: translate(30%, 30%) rotate(30deg); }
}

/* Logo Animado */
.logo-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 0.2rem;
}

.logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b2cbf 0%, #3a0ca3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 30px rgba(123, 44, 191, 0.5);
    z-index: 2;
    position: relative;
}

.music-icon {
    width: 42px;
    height: 42px;
    color: #00f0ff;
    animation: float-icon 4s infinite ease-in-out;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(6deg); }
}

.pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid #00f0ff;
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse-ring-anim 2.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
    z-index: 1;
}

@keyframes pulse-ring-anim {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Textos */
.glow-text {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff 40%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
    letter-spacing: -0.5px;
    padding-left: 0.15em;
    padding-right: 0.15em;
    margin-left: -0.15em;
    margin-right: -0.15em;
}

.subtitle {
    font-size: 1.05rem;
    color: #a0a0c8;
    font-weight: 300;
    line-height: 1.5;
}

/* Caja de Comandos */
.command-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
    text-align: left;
}

.command-title {
    font-size: 0.8rem;
    color: #707090;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.command code {
    font-family: Consolas, monospace;
    font-size: 1.15rem;
    color: #00f0ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Estado del Visualizador */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #606080;
    font-weight: 400;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00f0ff;
    animation: blink-dot 2s infinite ease-in-out;
}

@keyframes blink-dot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ==========================================================================
   PANTALLA DE SUNO AI (LAYOUT DOS COLUMNAS CON LETRAS Y PORTADA)
   ========================================================================== */
.suno-layout {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Columna del Reproductor (Izquierda) */
.suno-player-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
    min-width: 0; /* Evita desbordes */
}

/* Contenedor del Visualizador y la Carátula */
.visualizer-container {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 24px;
    overflow: hidden;
    background: #05040a;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

#visualizer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenedor de la Carátula Circular en el Centro */
.cover-art-wrapper {
    position: relative;
    z-index: 2;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 20, 0.85);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

/* Animación de rotación del vinilo */
.cover-art-wrapper.playing {
    animation: rotateVinyl 25s linear infinite;
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 40px rgba(199, 125, 255, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cover-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cover-art-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0d0;
}

.cover-art-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.35;
    animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.08); opacity: 0.55; }
}

/* Contenedor de Metadata */
.track-info-container {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.8rem 2rem;
    border-radius: 24px;
    box-sizing: border-box;
}

/* Botón de Enlace al Recurso Original (Suno / YouTube) */
.source-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto; /* Garantiza clickeabilidad si el padre bloquea eventos */
}

.source-link-btn:hover {
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    transform: translateY(-1px);
}

.source-link-btn:active {
    transform: translateY(0);
}

.source-link-btn-absolute {
    position: absolute;
    top: 1.8rem;
    right: 2rem;
}

.external-link-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
}

.track-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.track-title {
    font-size: 1.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.glow-text-suno {
    background: linear-gradient(to right, #ffffff 40%, #c77dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(199, 125, 255, 0.2);
}

.glow-text-youtube {
    background: linear-gradient(to right, #ffffff 40%, #ff4d4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 77, 77, 0.2);
}

.track-artist {
    font-size: 1rem;
    color: #a0a0d0;
    font-weight: 300;
    margin: 0;
}

/* Etiquetas/Estilo de Música */
.track-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.tag-badge {
    font-size: 0.72rem;
    font-weight: 500;
    color: #c77dff;
    background: rgba(199, 125, 255, 0.08);
    border: 1px solid rgba(199, 125, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    text-shadow: 0 0 8px rgba(199, 125, 255, 0.25);
}

/* Fila de la barra de reproducción */
.playback-bar-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.8rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.playback-time {
    font-size: 0.75rem;
    font-family: monospace;
    color: #8080a0;
    min-width: 32px;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
}

/* Barra de progreso reactiva */
.playback-bar-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.playback-bar-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff, #7b2cbf, #ff007f);
    border-radius: 3px;
    box-shadow: 0 0 8px #00f0ff;
    transition: width 0.3s ease;
}


/* ==========================================================================
   COLUMNA DERECHA: SIDEBAR DE LA COLA
   ========================================================================== */
.sidebar-queue {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0; /* Ocupa todo el alto derecho */
    padding: 2rem 1.5rem;
    z-index: 20;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
}

.sidebar-title-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.queue-icon {
    width: 22px;
    height: 22px;
    color: #00f0ff;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.queue-count-badge {
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

/* Envoltura de la lista con scroll */
.queue-list-wrapper {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 0.3rem;
}

/* Scrollbar Personalizado */
.queue-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.queue-list-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}

.queue-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: background 0.3s;
}

.queue-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.3);
}

/* Elementos de la cola */
.queue-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.queue-item-index {
    font-weight: 800;
    font-size: 0.9rem;
    color: #5b5589;
    min-width: 22px;
    text-align: center;
}

.queue-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.queue-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-creator {
    font-size: 0.8rem;
    color: #7b7b99;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
}

/* Cola vacía */
.queue-empty {
    text-align: center;
    color: #505070;
    margin: auto 0;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.queue-empty p {
    font-size: 0.95rem;
    font-weight: 400;
}

.queue-empty .hint {
    font-size: 0.75rem;
    color: #40405c;
    line-height: 1.4;
}

/* RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 960px) {
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 280px;
    }
    
    .sidebar-queue {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem;
    }
    
    .track-info-container {
        bottom: 30px;
        padding: 1.5rem;
    }
}

/* YOUTUBE EMBED PLAYER STYLES */
.youtube-player-container {
    width: 94%;
    height: 90%;
    max-width: 1400px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#youtube-player {
    width: 100%;
    height: 100%;
    border: none;
}

/* ESTILOS PANTALLA DE PROCESAMIENTO PREMIUM */
#screen-processing {
    background: radial-gradient(circle at center, #0e0924 0%, #05030f 100%);
}

.processing-container {
    padding: 3.5rem 4rem;
    width: auto;
    min-width: 450px;
    max-width: 85%;
    border-radius: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
    animation: processingPulse 4s ease-in-out infinite alternate;
}

.processing-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, transparent 120deg, rgba(138, 43, 226, 0.2) 240deg, transparent 360deg);
    animation: rotateConic 8s linear infinite;
    z-index: 0;
}

.processing-container > * {
    position: relative;
    z-index: 1;
}

/* Anillo cargador futurista */
.loader-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(transparent 50%, rgba(138, 43, 226, 0.05) 51%);
    border: 2px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 25px rgba(138, 43, 226, 0.08), 0 0 25px rgba(138, 43, 226, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring::before, .loader-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-ring::before {
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-top-color: #8a2be2;
    border-bottom-color: #da70d6;
    animation: spinClockwise 1.5s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.loader-ring::after {
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border-left-color: #00f0ff;
    border-right-color: #00f0ff;
    animation: spinCounterClockwise 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

/* Elementos de Texto */
.processing-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.processing-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #da70d6;
    text-shadow: 0 0 10px rgba(218, 112, 214, 0.4);
    animation: blinkText 2s ease-in-out infinite;
}

.processing-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.processing-artist {
    font-size: 1.05rem;
    color: #a09cb0;
    font-weight: 400;
}

/* Animaciones */
@keyframes rotateConic {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes processingPulse {
    0% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(138, 43, 226, 0.05); }
    100% { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(138, 43, 226, 0.2); }
}

@keyframes blinkText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Hype Badge del Visualizador Oficial */
.hype-badge {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.12) 0%, rgba(138, 43, 226, 0.12) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #00f0ff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 10px rgba(0, 240, 255, 0.05);
    margin-top: -0.5rem;
    animation: badgeGlow 4s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        border-color: rgba(0, 240, 255, 0.25);
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
        color: #00f0ff;
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    }
    100% {
        border-color: rgba(138, 43, 226, 0.45);
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.25);
        color: #da70d6;
        text-shadow: 0 0 8px rgba(218, 112, 214, 0.5);
    }
}

/* ==========================================================================
   CONTROL DE AUDIO WEB (VOLUMEN & DESMUTEO)
   ========================================================================== */
.inline-volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0.8rem;
}

.inline-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #8080a0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.inline-volume-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #00f0ff;
    transform: scale(1.08);
}

.volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #00f0ff;
    transform: scale(1.08);
}

.volume-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: currentColor;
    transition: color 0.2s ease;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    width: 100px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #00f0ff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    transition: all 0.1s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* Indicador de Oyentes en Vivo */
.live-listeners-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(14, 11, 28, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.live-listeners-badge:hover {
    background: rgba(14, 11, 28, 0.6);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.1);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00f0ff;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.9);
    }
}

/* ==========================================================================
   RESEÑAS DE CANCIONES (SONG REVIEWS - FIRST CLASS SCREEN)
   ========================================================================== */
.review-container {
    width: 100%;
    height: 100%;
    padding: 3rem 4rem;
    background: rgba(8, 5, 18, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
}

.review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    text-align: center;
}

.star-icon {
    width: 54px;
    height: 54px;
    color: #00f0ff;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.6));
}

.review-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 0;
    background: linear-gradient(90deg, #00f0ff, #da70d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.review-body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
    max-width: 850px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 15px;
    text-align: center;
}

/* Custom Scrollbar for review content */
.review-body::-webkit-scrollbar {
    width: 6px;
}
.review-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}
.review-body::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
}
.review-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

.review-body p {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #e2dff5;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.review-body p:first-letter {
    font-size: 1.45rem;
    font-weight: 600;
    color: #00f0ff;
}

.animate-pulse {
    animation: pulseGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.85; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4)); }
    100% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.7)); }
}

/* Radio Waveform Animation */
.radio-waveform-container .bar {
    width: 8px;
    height: 20px;
    background: #00f0ff;
    border-radius: 4px;
    animation: waveform-bounce 1.2s ease-in-out infinite;
}

.radio-waveform-container .bar-1 { animation-delay: 0.0s; }
.radio-waveform-container .bar-2 { animation-delay: 0.1s; }
.radio-waveform-container .bar-3 { animation-delay: 0.2s; height: 40px; }
.radio-waveform-container .bar-4 { animation-delay: 0.3s; }
.radio-waveform-container .bar-5 { animation-delay: 0.4s; }

@keyframes waveform-bounce {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: 80px; opacity: 1; }
}

/* Ajustes responsivos para pantallas chicas */
@media (max-width: 768px) {
    .review-container {
        padding: 2rem;
    }
    .review-header {
        margin-bottom: 1.5rem;
        gap: 0.8rem;
    }
    .star-icon {
        width: 44px;
        height: 44px;
    }
    .review-header h2 {
        font-size: 1.8rem;
    }
    .review-body p {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   NUEVO LAYOUT: PORTADA, BARRA LATERAL E INFRAESTRUCTURA OAUTH
   ========================================================================== */

.main-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.left-sidebar {
    width: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    z-index: 50;
    flex-shrink: 0;
}

.content-wrapper {
    flex-grow: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.view-pane {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto;
}

.view-pane.active {
    display: block;
}

#pane-lp-sender.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* Elementos de la Barra Lateral */
.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 40px 0;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.menu-item svg {
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.menu-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.menu-item:hover svg {
    opacity: 1;
}

.menu-item.active {
    border-left-color: #00f0ff;
    background: rgba(0, 240, 255, 0.06);
    color: #00f0ff;
    padding-left: 15px; /* Compensa el borde */
}

.menu-item.active svg {
    color: #00f0ff;
    opacity: 1;
}

/* Bloques de Autenticación en la Barra Lateral */
.auth-box {
    position: relative;
    width: 100%;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-dropdown {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    box-sizing: border-box;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: bottom center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-dropdown.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
}

.provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-btn {
    background: #5865F2;
}

.discord-btn:hover {
    background: #4752C4;
}

.google-btn {
    background: #ffffff;
    color: #1f2023;
}

.google-btn:hover {
    background: #f3f3f5;
}

/* Tarjeta de usuario logueado */
.user-profile-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-provider {
    font-size: 0.7rem;
    color: #da70d6;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logout-btn {
    background: rgba(255, 51, 51, 0.06);
    border: 1px solid rgba(255, 51, 51, 0.15);
    color: #ff6b6b;
}

.logout-btn:hover {
    background: rgba(255, 51, 51, 0.12);
    border-color: rgba(255, 51, 51, 0.3);
}

/* Diseño de la Pantalla de Inicio / Landing */
.home-landing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    box-sizing: border-box;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-animation {
    position: relative;
    margin-bottom: 30px;
}

.big-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin: 15px 0 10px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 680px;
    margin-top: 15px;
}

.hero-actions {
    margin-top: 40px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #00f0ff, #da70d6);
    border: none;
    border-radius: 30px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.4);
}

.cta-btn svg {
    transition: transform 0.25s ease;
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

.cta-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.8);
}

.cta-btn.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.cta-btn.secondary-btn:hover svg {
    transform: scale(1.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.feature-card {
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.text-cyan { color: #00f0ff; }
.text-purple { color: #da70d6; }
.text-pink { color: #ff007f; }
.text-yellow { color: #ffd700; }

/* -------------------------------------------------------------
   MOBILE NAVIGATION & OVERLAYS
------------------------------------------------------------- */
.mobile-top-bar, .mobile-overlay-backdrop, .queue-toggle-icon {
    display: none;
}

@media (max-width: 992px) {
    /* Top Bar Contextual (Mobile) */
    .mobile-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 60px;
        padding: 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-sizing: border-box;
        position: relative;
        z-index: 900;
        background: rgba(13, 11, 26, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .hamburger-btn {
        background: transparent;
        border: none;
        color: #fff;
        padding: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-brand {
        font-size: 1.2rem;
        font-weight: 800;
    }

    /* Backdrop for off-canvas menu */
    .mobile-overlay-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 950;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .mobile-overlay-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-container {
        flex-direction: column;
        height: calc(100% - 60px); /* Respetar top bar */
        z-index: auto; /* Permite que la sidebar sobrepase el backdrop */
        overflow-x: hidden;
    }
    
    /* Left Sidebar as Off-Canvas Contextual Menu */
    .left-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        background: rgba(13, 11, 26, 0.98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        border-right: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        padding: 40px 24px;
        align-items: flex-start;
    }
    
    .left-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Reestablecer estructura brand para la sidebar en movil */
    .sidebar-brand {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    .sidebar-brand .logo-inner {
        margin-bottom: 10px !important;
    }
    .sidebar-brand div:last-child {
        display: block !important;
    }
    
    .sidebar-menu {
        flex-direction: column !important;
        margin: 40px 0 !important;
        gap: 8px !important;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Contextual Queue Footer (Bottom Sheet Overlay) */
    .app-layout {
        display: block !important;
        height: 100% !important;
        padding-bottom: 60px; /* Margen para el footer */
    }
    
    .main-content {
        height: 100% !important;
    }
    
    .sidebar-queue {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px !important; /* Colapsado (solo titulo) */
        z-index: 900;
        border-top: 1px solid rgba(255,255,255,0.12);
        border-left: none;
        background: #0d0b1a;
        transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    }
    
    .sidebar-queue.queue-expanded {
        height: 60vh !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.7);
    }
    
    .sidebar-header {
        cursor: pointer;
        height: 60px;
        min-height: 60px;
        padding: 0 20px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .queue-list-wrapper {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }
    
    .queue-toggle-icon {
        display: block;
        width: 20px;
        height: 20px;
        color: rgba(255,255,255,0.5);
        transition: transform 0.3s ease;
    }
    
    .sidebar-queue.queue-expanded .queue-toggle-icon {
        transform: rotate(180deg);
    }
}

/* Reducción estricta de fuentes para superposición en móviles pequeños */
@media (max-width: 768px) {
    .screen {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .big-title {
        font-size: 2.2rem !important;
        letter-spacing: -0.5px !important;
    }
    .track-info-container {
        padding: 12px;
        padding-top: 38px !important; /* Espacio superior para alojar el badge y el boton */
        gap: 6px;
        bottom: 12px;
        position: relative;
    }
    .track-badge {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        font-size: 0.55rem !important;
        padding: 4px 6px !important;
        margin: 0 !important;
    }
    .source-link-btn-absolute {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
        margin: 0 !important;
    }
    .track-title {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
    }
    .track-artist {
        font-size: 0.9rem !important;
    }
    .track-sender {
        font-size: 0.75rem !important;
    }
    .playback-time {
        font-size: 0.75rem !important;
    }
    .youtube-player-container {
        padding: 10px;
     }
}

/* ==========================================================================
   ADMIN PANEL & SONG MANAGEMENT
   ========================================================================== */
#admin-history-table-body tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}
#admin-history-table-body tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.admin-delete-btn {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.2);
    color: #ff4d4d;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.admin-delete-btn:hover {
    background: rgba(255, 51, 51, 0.25);
    border-color: rgba(255, 51, 51, 0.4);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.15);
}

/* Custom Toggle Switch */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #a09cb0;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background: linear-gradient(135deg, #00f0ff, #da70d6);
    border-color: transparent;
}

input:checked + .slider-toggle:before {
    transform: translateX(24px);
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Fix calendar icon visibility in dark mode */
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Toast Notifications */
.toast-notification {
    min-width: 250px;
    max-width: 350px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(14, 11, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid #00f0ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.1);
}

.toast-notification.error {
    border-left: 4px solid #ff4d4d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 77, 77, 0.1);
}

.toast-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hidden Sidebar State for full width layouts */
body.hide-sidebar .left-sidebar {
    display: none !important;
}

body.hide-sidebar .content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

/* Live pulse and card glow animations for Listening Parties */
@keyframes lp-pulse-live {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.lp-card-live {
    border: 2px solid #ef233c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.lp-card-live:hover {
    border-color: #ef233c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes lp-green-dot-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==================================================
   ROULETTE SLOT MACHINE STYLES
   ================================================== */
.slot-machine-window {
    width: 600px;
    height: 380px; /* Alto para aprox 3 tarjetas + márgenes */
    position: relative;
    background: radial-gradient(circle, rgba(13,11,26,0.95) 0%, rgba(5,4,12,1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(123, 44, 191, 0.4);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    margin: 0 auto;
}

/* El foco central (ganador) */
.slot-machine-focus-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 100px; /* Alto de una tarjeta */
    border: 2px solid rgba(0, 240, 255, 0.8);
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.2);
    pointer-events: none; /* No bloquear clicks */
    z-index: 5;
    background: rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

/* Overlay para oscurecer tarjetas no seleccionadas (arriba y abajo) */
.slot-machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(5,4,12,0.95) 0%, 
        rgba(5,4,12,0) 35%, 
        rgba(5,4,12,0) 65%, 
        rgba(5,4,12,0.95) 100%
    );
    pointer-events: none;
    z-index: 4;
}

/* El carrete que se desplaza */
.slot-reel {
    width: 100%;
    /* translateY será dinámico desde JS */
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 140px; /* Para que la primera tarjeta inicie en el centro: (380 - 100)/2 */
    will-change: transform;
}

/* Clase dinámica de JS para la animación */
.slot-reel.spinning {
    /* La transición de 6 segundos crea la sensación de ruleta desacelerando */
    transition: transform 6s cubic-bezier(0.1, 0.7, 0.1, 1);
}

/* Cada tarjeta dentro del slot */
.slot-card {
    width: 85%;
    height: 100px; /* Alto fijo de tarjeta */
    margin-bottom: 20px; /* Separación de 20px. Total alto por elemento: 120px */
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.slot-card img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.slot-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    overflow: hidden;
    text-align: left;
}

.slot-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-card-sender {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.slot-ready-msg {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    background: rgba(14, 11, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid #00f0ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.1);
}

.toast-notification.error {
    border-left: 4px solid #ff4d4d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 77, 77, 0.1);
}

.toast-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hidden Sidebar State for full width layouts */
body.hide-sidebar .left-sidebar {
    display: none !important;
}

body.hide-sidebar .content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

/* Live pulse and card glow animations for Listening Parties */
@keyframes lp-pulse-live {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.lp-card-live {
    border: 2px solid #ef233c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.lp-card-live:hover {
    border-color: #ef233c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes lp-green-dot-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==================================================
   ROULETTE SLOT MACHINE STYLES
   ================================================== */
.slot-machine-window {
    width: 600px;
    height: 380px; /* Alto para aprox 3 tarjetas + márgenes */
    position: relative;
    background: radial-gradient(circle, rgba(13,11,26,0.95) 0%, rgba(5,4,12,1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(123, 44, 191, 0.4);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    margin: 0 auto;
}

/* El foco central (ganador) */
.slot-machine-focus-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 100px; /* Alto de una tarjeta */
    border: 2px solid rgba(0, 240, 255, 0.8);
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.2);
    pointer-events: none; /* No bloquear clicks */
    z-index: 5;
    background: rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

/* Overlay para oscurecer tarjetas no seleccionadas (arriba y abajo) */
.slot-machine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(5,4,12,0.95) 0%, 
        rgba(5,4,12,0) 35%, 
        rgba(5,4,12,0) 65%, 
        rgba(5,4,12,0.95) 100%
    );
    pointer-events: none;
    z-index: 4;
}

/* El carrete que se desplaza */
.slot-reel {
    width: 100%;
    /* translateY será dinámico desde JS */
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 140px; /* Para que la primera tarjeta inicie en el centro: (380 - 100)/2 */
    will-change: transform;
}

/* Clase dinámica de JS para la animación */
.slot-reel.spinning {
    /* La transición de 6 segundos crea la sensación de ruleta desacelerando */
    transition: transform 6s cubic-bezier(0.1, 0.7, 0.1, 1);
}

/* Cada tarjeta dentro del slot */
.slot-card {
    width: 85%;
    height: 100px; /* Alto fijo de tarjeta */
    margin-bottom: 20px; /* Separación de 20px. Total alto por elemento: 120px */
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.slot-card img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.slot-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    overflow: hidden;
    text-align: left;
}

.slot-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-card-sender {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.slot-ready-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    opacity: 0.6;
    z-index: 10;
    pointer-events: none;
}

/* Badge para el conteo de canciones en la cola */
.queue-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.15);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Destello final cuando gana */
.slot-winner-glow .slot-machine-focus-frame {
    border-color: #ff007f;
    box-shadow: 0 0 40px rgba(255, 0, 127, 0.7), inset 0 0 20px rgba(255, 0, 127, 0.4);
    background: rgba(255, 0, 127, 0.1);
    backdrop-filter: blur(0px);
}
