/* ============================================
   PLAYER PROFESIONAL - Margon Studios
   ============================================
   Diseño premium con fondo claro y animaciones espectaculares
   ============================================ */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff;
    color: #1a1a1a;
}

/* Contenedor principal */
.player-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: max(15vh, 8rem) 1.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

/* Partículas de fondo animadas */
.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.015) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

/* Portada del álbum */
.album-cover {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 3rem;
    animation: slideDownFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(-30px);
    opacity: 0;
}

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

.album-wrapper {
    position: relative;
    width: 60vw;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    animation: albumFloat 6s ease-in-out infinite;
}

@keyframes albumFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-container.playing .album-cover img {
    animation: albumPulse 2s ease-in-out infinite, albumFloat 6s ease-in-out infinite;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

@keyframes albumPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Efecto de brillo en la portada */
.album-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.1));
    border-radius: 32px;
    filter: blur(20px);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease;
    animation: glowPulse 3s ease-in-out infinite;
}

.player-container.playing .album-glow {
    opacity: 0.4;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.album-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    z-index: 3;
    animation: shine 3s infinite;
    border-radius: 24px;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Controles de reproducción */
.player-controls {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    transform: translateY(30px);
    opacity: 0;
}

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

/* Botones de control (anterior/siguiente) - Estilo Minimalista */
.control-btn {
    width: auto;
    height: auto;
    min-width: 40px;
    min-height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    padding: 8px;
    box-shadow: none;
}

.control-btn::before,
.control-btn::after {
    display: none;
}

.control-btn:hover {
    transform: translateY(-2px);
    background: none;
    border: none;
    box-shadow: none;
    animation: none;
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: none;
    animation: none;
}

.control-btn svg {
    width: 32px;
    height: 32px;
    color: #6366f1;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.control-btn:hover svg {
    transform: scale(1.3);
    color: #818cf8;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 12px rgba(129, 140, 248, 0.4));
    animation: iconGlow 1.5s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.5)) drop-shadow(0 0 12px rgba(129, 140, 248, 0.4));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.7)) drop-shadow(0 0 18px rgba(129, 140, 248, 0.6));
    }
}

.prev-btn:hover svg {
    transform: translateX(-3px) scale(1.3);
    animation: prevSlide 0.6s ease, iconGlow 1.5s ease-in-out infinite;
}

@keyframes prevSlide {
    0%, 100% {
        transform: translateX(-3px) scale(1.3);
    }
    50% {
        transform: translateX(-6px) scale(1.35);
    }
}

.next-btn:hover svg {
    transform: translateX(3px) scale(1.3);
    animation: nextSlide 0.6s ease, iconGlow 1.5s ease-in-out infinite;
}

@keyframes nextSlide {
    0%, 100% {
        transform: translateX(3px) scale(1.3);
    }
    50% {
        transform: translateX(6px) scale(1.35);
    }
}

.control-btn:active svg {
    transform: scale(1.15);
    color: #4f46e5;
}

/* Botón de play/pause principal - Estilo Futurista con Colores Mejorados */
.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 25%, #a78bfa 50%, #c084fc 75%, #6366f1 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
    box-shadow: 
        0 16px 48px rgba(99, 102, 241, 0.4),
        0 8px 24px rgba(129, 140, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(79, 70, 229, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 0 25px rgba(129, 140, 248, 0.3);
    transform-style: preserve-3d;
}

.play-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #6366f1, #818cf8, #a78bfa, #c084fc, #f0abfc, #c084fc, #a78bfa, #818cf8, #6366f1);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    filter: blur(12px);
    animation: playRotateGlow 3s linear infinite;
}

@keyframes playRotateGlow {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(129, 140, 248, 0.3) 70%, transparent 100%);
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
}

.play-button:hover {
    transform: translateY(-5px) scale(1.1) rotateZ(5deg);
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 25%, #c084fc 50%, #f0abfc 75%, #818cf8 100%);
    border-color: rgba(255, 255, 255, 0.5);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-left-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 24px 64px rgba(99, 102, 241, 0.5),
        0 12px 32px rgba(129, 140, 248, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(79, 70, 229, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(129, 140, 248, 0.4),
        0 0 60px rgba(168, 85, 247, 0.3);
    animation: playButtonHoverPulse 1.5s ease-in-out infinite;
}

@keyframes playButtonHoverPulse {
    0%, 100% {
        box-shadow: 
            0 24px 64px rgba(99, 102, 241, 0.5),
            0 12px 32px rgba(129, 140, 248, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(79, 70, 229, 0.5),
            0 0 0 1px rgba(99, 102, 241, 0.3),
            0 0 40px rgba(129, 140, 248, 0.4),
            0 0 60px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 
            0 28px 72px rgba(99, 102, 241, 0.6),
            0 14px 36px rgba(129, 140, 248, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(79, 70, 229, 0.6),
            0 0 0 1px rgba(99, 102, 241, 0.4),
            0 0 50px rgba(129, 140, 248, 0.5),
            0 0 80px rgba(168, 85, 247, 0.4);
    }
}

.play-button:hover::before {
    opacity: 0.8;
}

.play-button:hover::after {
    width: 120px;
    height: 120px;
    opacity: 0.5;
}

.play-button:active {
    transform: translateY(-2px) scale(1.05) rotateZ(2deg);
    box-shadow: 
        0 12px 32px rgba(99, 102, 241, 0.5),
        0 6px 16px rgba(129, 140, 248, 0.4),
        inset 0 2px 4px rgba(79, 70, 229, 0.4),
        0 0 30px rgba(129, 140, 248, 0.3);
    animation: none;
}

.play-button.playing {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 25%, #a78bfa 50%, #c084fc 75%, #818cf8 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 16px 48px rgba(99, 102, 241, 0.4),
        0 8px 24px rgba(129, 140, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(79, 70, 229, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 0 30px rgba(129, 140, 248, 0.4),
        0 0 50px rgba(168, 85, 247, 0.3);
    animation: playButtonPulse 2.5s ease-in-out infinite, playRotate 20s linear infinite;
}

@keyframes playRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes playButtonPulse {
    0%, 100% {
        box-shadow: 
            0 16px 48px rgba(99, 102, 241, 0.4),
            0 8px 24px rgba(129, 140, 248, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(79, 70, 229, 0.4),
            0 0 0 1px rgba(99, 102, 241, 0.2),
            0 0 30px rgba(129, 140, 248, 0.4),
            0 0 50px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 
            0 20px 56px rgba(99, 102, 241, 0.5),
            0 10px 28px rgba(129, 140, 248, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(79, 70, 229, 0.5),
            0 0 0 1px rgba(99, 102, 241, 0.3),
            0 0 40px rgba(129, 140, 248, 0.5),
            0 0 70px rgba(168, 85, 247, 0.4);
    }
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(129, 140, 248, 0.6) 50%, rgba(168, 85, 247, 0.4) 100%);
    transform: translate(-50%, -50%);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
}

.play-button:active .button-glow {
    width: 140px;
    height: 140px;
    opacity: 0;
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 3px 6px rgba(79, 70, 229, 0.5)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    stroke-width: 2;
}

.play-button:hover svg {
    transform: scale(1.15) rotateZ(-5deg);
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.6)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.7));
}

.play-button.playing svg {
    animation: playIconPulse 2s ease-in-out infinite;
}

@keyframes playIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 3px 6px rgba(79, 70, 229, 0.5)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.6)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.7));
    }
}

.ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.play-button:active .ripple-effect {
    animation: ripple 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 160px;
        height: 160px;
        opacity: 0;
    }
}

/* Barra de progreso */
.progress-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    transform: translateY(30px);
    opacity: 0;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.progress-bar-wrapper {
    width: 100%;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 30%, #a78bfa 60%, #c084fc 100%);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
    box-shadow: 
        0 0 8px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        box-shadow: 
            0 0 8px rgba(99, 102, 241, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(129, 140, 248, 0.7),
            0 0 25px rgba(168, 85, 247, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 0 8px rgba(99, 102, 241, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.progress-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #6366f1;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 
        0 2px 8px rgba(99, 102, 241, 0.4),
        0 0 0 3px rgba(129, 140, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    opacity: 0;
}

.progress-bar:hover .progress-handle,
.progress-bar:active .progress-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    border-color: #818cf8;
    box-shadow: 
        0 2px 8px rgba(99, 102, 241, 0.6),
        0 0 0 3px rgba(129, 140, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.3);
    border-color: #a78bfa;
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.6),
        0 0 0 5px rgba(129, 140, 248, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Información del estudio - Como footer */
.studio-info {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 2rem));
    position: relative;
    z-index: 1;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    transform: translateY(30px);
    opacity: 0;
}

.studio-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.375rem;
    color: #000000;
    text-transform: uppercase;
}

.studio-location {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #666666;
    text-transform: uppercase;
}

/* Efectos de carga inicial */
.player-container > * {
    will-change: transform, opacity;
}

/* Modo landscape compacto en móviles/tablets:
   solo cover + player, sin header, lista ni footer. */
@media (orientation: landscape) and (max-width: 1024px) {
    /* En horizontal en móviles: ocultar TODO excepto el fondo */
    /* El audio seguirá reproduciéndose en segundo plano */
    .player-header,
    .track-meta,
    .ring-player,
    .now-playing-info,
    .controls-row,
    .track-list,
    .bottom-nav,
    .copyright-info,
    .menu-overlay {
        display: none !important;
        visibility: hidden !important;
    }

    .player-container {
        /* Mantener solo el fondo visible */
        padding: 0;
        justify-content: center;
        align-items: center;
    }
}

/* Pantallas muy pequeñas */
@media (max-height: 600px) {
    .player-container {
        padding: max(8vh, 4rem) 1.5rem 1.5rem;
    }
    
    .album-cover {
        margin-bottom: 2rem;
    }
    
    .album-wrapper {
        width: 50vw;
        max-width: 180px;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
    }
    
    .play-button svg {
        width: 28px;
        height: 28px;
    }
    
    .control-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
    }
    
    .control-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .progress-container {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   AJUSTES RESPONSIVOS PARA TODOS LOS MÓVILES
   ============================================ */

/* Móviles pequeños (320px - 360px) - iPhone SE, Galaxy S, etc. */
@media (max-width: 360px) and (max-height: 800px) {
    .ring-wrap {
        width: 58vw !important;
        max-width: 260px !important;
    }
    
    .ring-player {
        margin-top: 15vh !important;
    }
    
    .controls-row {
        position: relative;
        z-index: 2;
        margin-top: 1rem;
        margin-bottom: 115px; /* Espacio extra para el bottom-nav */
    }
    
    .now-playing-info {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .now-playing-title {
        font-size: 0.8125rem;
    }
    
    .now-playing-artist {
        font-size: 0.6875rem;
    }
}

/* Móviles medianos pequeños (360px - 390px) - iPhone 12/13 mini, etc. */
@media (min-width: 360px) and (max-width: 390px) and (max-height: 850px) {
    .ring-wrap {
        width: 62vw !important;
        max-width: 290px !important;
    }
    
    .ring-player {
        margin-top: 17vh !important;
    }
    
    .controls-row {
        position: relative;
        z-index: 2;
        margin-top: 1.125rem;
        margin-bottom: 105px;
    }
    
    .now-playing-info {
        margin-top: 1.375rem;
        margin-bottom: 0.5rem;
    }
    
    .now-playing-title {
        font-size: 0.875rem;
    }
    
    .now-playing-artist {
        font-size: 0.75rem;
    }
}

/* Móviles medianos (390px - 430px) - iPhone 12/13/14, Pixel, etc. */
@media (min-width: 390px) and (max-width: 430px) and (max-height: 950px) {
    .ring-wrap {
        width: 66vw !important;
        max-width: 320px !important;
    }
    
    .ring-player {
        margin-top: 19vh !important;
    }
    
    .controls-row {
        position: relative;
        z-index: 2;
        margin-top: 1.25rem;
        margin-bottom: 100px;
    }
    
    .now-playing-info {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Móviles grandes (430px - 480px) - iPhone 14 Pro Max, iPhone 15, etc. */
@media (min-width: 430px) and (max-width: 480px) and (max-height: 1000px) {
    .ring-wrap {
        width: 70vw !important;
        max-width: 360px !important;
    }
    
    .ring-player {
        margin-top: 20vh !important;
    }
    
    .controls-row {
        position: relative;
        z-index: 2;
        margin-top: 1.375rem;
        margin-bottom: 95px;
    }
    
    .now-playing-info {
        margin-top: 1.625rem;
        margin-bottom: 0.5rem;
    }
}

/* Móviles con pantallas muy altas (altura > 900px) */
@media (max-width: 480px) and (min-height: 900px) {
    .ring-wrap {
        max-width: 340px !important;
    }
    
    .ring-player {
        margin-top: 22vh !important;
    }
    
    .controls-row {
        margin-bottom: 90px;
    }
}

/* Móviles con pantallas cortas (altura < 700px) */
@media (max-width: 480px) and (max-height: 700px) {
    .ring-wrap {
        width: 55vw !important;
        max-width: 250px !important;
    }
    
    .ring-player {
        margin-top: 12vh !important;
    }
    
    .controls-row {
        margin-top: 0.875rem;
        margin-bottom: 120px;
    }
    
    .now-playing-info {
        margin-top: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .now-playing-title {
        font-size: 0.8125rem;
    }
    
    .now-playing-artist {
        font-size: 0.6875rem;
    }
}

/* Ajustes generales para todos los móviles (hasta 480px) */
@media (max-width: 480px) {
    /* Asegurar que controls-row siempre esté por encima del bottom-nav */
    .controls-row {
        position: relative;
        z-index: 2;
    }
    
    /* Asegurar que el bottom-nav tenga el z-index correcto */
    .bottom-nav {
        z-index: 1;
    }
    
    /* Ajustar el padding del contenedor en móviles */
    .player-container {
        padding-bottom: calc(max(18px, env(safe-area-inset-bottom, 18px)) + 100px);
    }
}

/* Tablets */
@media (min-width: 768px) and (min-height: 1024px) {
    .album-wrapper {
        width: 50vw;
        max-width: 300px;
    }
    
    .play-button {
        width: 88px;
        height: 88px;
    }
    
    .play-button svg {
        width: 36px;
        height: 36px;
    }
    
    .control-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 10px;
    }
    
    .control-btn svg {
        width: 36px;
        height: 36px;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .progress-bar:hover {
        height: 10px;
    }
}

/* Prevenir scroll */
body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

.player-container {
    overscroll-behavior: none;
}

/* Accesibilidad */
.play-button:focus,
.control-btn:focus {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 4px;
}

.play-button:focus:not(:focus-visible),
.control-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ======================
   NUEVO DISEÑO MÓVIL UI
   ====================== */

.player-header {
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 12px));
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
}

.icon-btn {
    appearance: none;
    background: transparent;
    border: 0;
    color: #ffffff;
    opacity: .9;
    padding: .5rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-btn.share-success {
    color: #5bffb0;
    background: rgba(91, 255, 176, 0.14);
    border-radius: 50%;
}

.icon-btn:hover {
    opacity: 1;
}

/* Botones activos (shuffle y repeat) */
.icon-btn.active {
    color: #5bffb0;
    opacity: 1;
}

.icon-btn.active svg {
    filter: drop-shadow(0 0 4px rgba(91, 255, 176, 0.5));
}

/* Botón toggle del menú - solo icono, sin borde */
#menu-toggle-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#menu-toggle-btn:active {
    transform: scale(0.95);
}

#menu-toggle-btn .menu-icon,
#menu-toggle-btn .menu-close-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

#menu-toggle-btn .menu-close-icon {
    display: none;
}

#menu-toggle-btn.menu-open {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

#menu-toggle-btn.menu-open .menu-icon {
    display: none;
}

#menu-toggle-btn.menu-open .menu-close-icon {
    display: block;
}

.grabber {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.6);
    box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}

.header-actions { display: flex; gap: .25rem; }

.track-meta {
    position: absolute;
    top: 64px;
    left: 1.25rem;
    right: 1.25rem;
    color: #ffffff;
}

.track-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: .2px;
}
.track-artist {
    opacity: .85;
    margin-top: .25rem;
}
.track-meta .favorite { position: absolute; right: 0; top: 0; }

/* Fondo con paleta específica solicitada */
.player-container {
    background:
      linear-gradient(
        to top,
        #000000 0%,   /* base negra */
        #010713 22%,
        #051829 42%,
        #00101f 68%,
        #010d19 84%,
        #000000 100%  /* también negro arriba */
      );
    color: #fff;
}

/* Disco y anillo de progreso */
.ring-player { margin-top: 24vh; display: grid; place-items: center; position: relative; }
.ring-wrap { margin-top: -46%; position: relative; width: 78vw; max-width: 420px; aspect-ratio: 1/1; --progress: 18; --ring-thickness: 2px; --cover-inset-base: 6%; }
.ring-progress { position: absolute; inset: 0; border-radius: 50%; z-index: 2; --thickness: var(--ring-thickness, 2px); --ring-color: color-mix(in oklab, var(--bg-accent-1), white 10%); --track: transparent; background: conic-gradient(var(--ring-color) calc(var(--progress) * 1%), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent calc(50% - var(--thickness)), #000 calc(50% - var(--thickness) + 1px)); mask: radial-gradient(closest-side, transparent calc(50% - var(--thickness)), #000 calc(50% - var(--thickness) + 1px)); box-shadow: 0 0 12px rgba(255,255,255,.12); }
/* Halo exterior sutil alrededor del anillo para relieve */
.ring-progress::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; -webkit-mask: radial-gradient(closest-side, transparent calc(50% - var(--thickness) - 2px), #000 calc(50% - var(--thickness)), transparent calc(50% - var(--thickness) + 6px)); mask: radial-gradient(closest-side, transparent calc(50% - var(--thickness) - 2px), #000 calc(50% - var(--thickness)), transparent calc(50% - var(--thickness) + 6px)); background: radial-gradient(closest-side, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); opacity: .5; }
/* Círculo de carátula (portada grande) */
.cover-circle { position: absolute; inset: var(--cover-inset-base, 6%); border-radius: 50%; overflow: visible; z-index: 1; background: #0b0b0b; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 10px 36px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cover-circle::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: -1;
}
.cover-circle:hover { transform: scale(1.02); }
.cover-circle:active { transform: scale(0.98); }
.cover-circle img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; opacity: 1; position: relative; z-index: 1; transition: opacity 0.3s ease; }
.cover-circle:hover img { opacity: 0.9; }

/* Ondas de audio muy sutiles alrededor de la carátula cuando está reproduciendo */
.player-container.playing .cover-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 255, 0.14);
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.4);
    opacity: 0.0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: coverPulseWave 2.8s ease-out infinite;
}

@keyframes coverPulseWave {
    0% {
        transform: scale(0.98);
        opacity: 0.0;
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.0);
    }
    20% {
        opacity: 0.26;
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.55);
    }
    65% {
        transform: scale(1.08);
        opacity: 0.0;
        box-shadow: 0 0 0 20px rgba(129, 140, 248, 0.0);
    }
    100% {
        transform: scale(1.08);
        opacity: 0.0;
        box-shadow: 0 0 0 20px rgba(129, 140, 248, 0.0);
    }
}

.elapsed-time { position: absolute; bottom: -10px; font-weight: 600; opacity: .9; }

/* Información de la canción actual */
.now-playing-info {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.now-playing-title {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 0.375rem;
}

.now-playing-artist {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Controles principales */
.controls-row {
    margin-top: 1.5rem;
    margin-bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: 1.75rem;
    position: relative;
    z-index: 2; /* Asegurar que esté por encima del bottom-nav */
}

/* Vista de lista de canciones */
.track-list { margin-top: 20%; position: absolute; inset: 100px 16px 110px 16px; overflow: auto; -webkit-overflow-scrolling: touch; }
.track-list[hidden] { display: none; }
.track-list ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.track-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    cursor: pointer;
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s ease-out;
}

.track-item:hover {
    background: rgba(255,255,255,.09);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 6px 14px rgba(0,0,0,.35);
    transform: translateY(-1px);
}

.track-item:active,
.track-item--active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25),
        0 2px 8px rgba(0,0,0,.6);
    background: rgba(255,255,255,.12);
}
.track-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.track-info { color: #fff; }
.track-info .track-title { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.track-info .track-artist { font-size: 12px; opacity: .8; margin-top: 2px; }
.track-actions { display: flex; align-items: center; gap: 10px; }
.track-play { width: 36px; height: 36px; border-radius: 999px; border: 0; background: #fff; color: #111; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.track-buy { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-size: 12px; }

/* Ocultar player cuando está activa la lista */
.player-container.list-view .ring-player,
.player-container.list-view .controls-row,
.player-container.list-view .bottom-nav,
.player-container.list-view .now-playing-info { display: none !important; }
.player-container.list-view .track-list { display: block; }

.play-btn {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #d1d5ff 100%);
    color: #111; border: 0; display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.8);
}
.play-btn .pause-icon[hidden] { display: none; }

/* Barra inferior tipo glass */
.bottom-nav {
    position: absolute; left: 0; right: 0; bottom: calc(max(18px, env(safe-area-inset-bottom, 18px)) + 28px);
    margin: 0 auto; width: calc(100% - 36px);
    height: 68px; border-radius: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    backdrop-filter: blur(18px);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
    z-index: 1; /* Por debajo de controls-row pero por encima del fondo */
}

/* Texto legal bajo el footer */
.copyright-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(6px, env(safe-area-inset-bottom, 6px));
    text-align: center;
    color: #ffffff;
    font-size: 9px;
    line-height: 1.1;
    opacity: .92;
    pointer-events: none;
}

.bottom-nav .icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

.bottom-nav .icon-btn img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.bottom-nav .orb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 25% 25%, #f97316 0%, #facc15 26%, transparent 60%),
      radial-gradient(circle at 75% 75%, #22d3ee 0%, #6366f1 40%, #111827 80%);
    box-shadow:
      0 0 24px rgba(99, 102, 241, 0.7),
      0 8px 26px rgba(0, 0, 0, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
    position: relative;
    transform-origin: center;
    animation: orbGlow 3s ease-in-out infinite alternate;
    cursor: pointer;
}

.bottom-nav .orb::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.bottom-nav .orb:hover {
    animation-duration: 1.6s;
    box-shadow:
      0 0 30px rgba(250, 204, 21, 0.9),
      0 10px 32px rgba(0, 0, 0, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.04);
}

.bottom-nav .orb:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
      0 0 18px rgba(250, 204, 21, 0.7),
      0 6px 18px rgba(0, 0, 0, 0.9),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@keyframes orbGlow {
    0% {
        transform: scale(0.98) translateY(0);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: scale(1.03) translateY(-1px);
        filter: hue-rotate(8deg);
    }
    100% {
        transform: scale(1.01) translateY(0);
        filter: hue-rotate(-6deg);
    }
}

/* ======================
   MENÚ MODAL MODERNO MEJORADO
   ====================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.menu-overlay:not([hidden]) {
    opacity: 1;
    pointer-events: all;
}

.menu-container {
    width: min(85%, 420px);
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 10, 15, 0.98) 0%, 
        rgba(5, 5, 10, 0.95) 50%,
        rgba(0, 0, 5, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 
        4px 0 60px rgba(0, 0, 0, 0.6),
        -2px 0 20px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.menu-container::-webkit-scrollbar {
    width: 6px;
}

.menu-container::-webkit-scrollbar-track {
    background: transparent;
}

.menu-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.menu-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.menu-overlay:not([hidden]) .menu-container {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: max(28px, env(safe-area-inset-top, 28px)) 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-close-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: #ffffff;
    opacity: 0.9;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    place-items: center;
}

.menu-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.menu-close-btn:active {
    transform: scale(0.95);
}

.menu-close-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    gap: 0.375rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    padding: 1.125rem 1.75rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0 0.75rem;
    border-radius: 12px;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 0 0 12px;
}

.menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.menu-item:hover::before {
    width: 5px;
}

.menu-item:hover::after {
    opacity: 1;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(6px);
    box-shadow: 
        -4px 0 12px rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item:active {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
}

.menu-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: -2px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.menu-item-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.menu-item:hover .menu-item-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.menu-item:hover .menu-item-icon svg {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.menu-item-text {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.3s ease;
}

.menu-item:hover .menu-item-text {
    color: #ffffff;
    font-weight: 600;
}

.menu-item-arrow {
    opacity: 0.35;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
}

.menu-item:hover .menu-item-arrow {
    opacity: 1;
    transform: translateX(6px);
    color: rgba(255, 255, 255, 0.9);
}

/* Animación de entrada mejorada para los items del menú */
.menu-overlay:not([hidden]) .menu-item {
    animation: menuItemSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.menu-overlay:not([hidden]) .menu-item:nth-child(1) {
    animation-delay: 0.08s;
}

.menu-overlay:not([hidden]) .menu-item:nth-child(2) {
    animation-delay: 0.16s;
}

.menu-overlay:not([hidden]) .menu-item:nth-child(3) {
    animation-delay: 0.24s;
}

.menu-overlay:not([hidden]) .menu-item:nth-child(4) {
    animation-delay: 0.32s;
}

.menu-overlay:not([hidden]) .menu-item:nth-child(5) {
    animation-delay: 0.40s;
}

@keyframes menuItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos para item activo del menú */
.menu-item.active {
    background: rgba(255, 255, 255, 0.12);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.menu-item.active::before {
    width: 5px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
}

.menu-item.active .menu-item-icon {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.menu-item.active .menu-item-text {
    color: #ffffff;
    font-weight: 600;
}

.menu-item.active .menu-item-arrow {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Efecto de ripple en los items del menú */
.menu-item {
    position: relative;
}

.menu-item::before {
    z-index: 0;
}

/* Mejora de accesibilidad y estados de foco */
@media (prefers-reduced-motion: reduce) {
    .menu-overlay,
    .menu-container,
    .menu-item,
    .menu-close-btn {
        transition: none;
        animation: none;
    }
}

/* ======================
   DISEÑO ESCRITORIO SIMPLIFICADO
   ====================== */

@media (min-width: 1024px) {
    /* Layout centrado y compacto para escritorio */
    .player-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        margin: 0;
        position: relative;
    }

    /* Mostrar header con menú en escritorio */
    .player-header {
        position: absolute;
        top: max(20px, env(safe-area-inset-top, 20px));
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 2rem;
        z-index: 3;
    }

    /* Ocultar solo elementos móviles específicos */
    .grabber,
    .track-meta,
    .bottom-nav {
        display: none !important;
    }

    /* Mostrar copyright-info centrado y pequeño en escritorio */
    .copyright-info {
        position: absolute;
        left: 0;
        right: 0;
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 10px;
        line-height: 1.4;
        opacity: 0.8;
        pointer-events: none;
        z-index: 1;
    }

    /* Layout centrado: cover y player en el centro */
    .ring-player {
        margin-top: 0;
        position: static;
        margin-bottom: 2rem;
    }

    .ring-wrap {
        width: 280px;
        max-width: 280px;
        margin: 0;
    }

    /* Información de la canción centrada */
    .now-playing-info {
        position: static;
        margin: 0 0 1.5rem 0;
        text-align: center;
    }

    .now-playing-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .now-playing-artist {
        font-size: 0.875rem;
        opacity: 0.7;
    }

    /* Controles centrados y más compactos */
    .controls-row {
        position: static;
        margin: 0;
        justify-content: center;
        gap: 1.25rem;
    }

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

    .play-btn svg {
        width: 28px;
        height: 28px;
    }

    .controls-row .icon-btn {
        width: 44px;
        height: 44px;
    }

    .controls-row .icon-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Fondo que ocupa el 100% de la pantalla */
    .player-container {
        background: linear-gradient(
            135deg,
            #000000 0%,
            #0a0f1a 50%,
            #000000 100%
        );
    }

    /* Ocultar efectos complejos en escritorio */
    .player-container::before {
        display: none;
    }

    /* Simplificar animaciones del cover - mantener solo el borde exterior */
    .cover-circle::after {
        display: none;
    }

    /* Mantener la animación de ondas cuando está reproduciendo */
    .player-container.playing .cover-circle::before {
        display: block;
    }

    /* Lista de canciones más simple en escritorio */
    .track-list {
        position: static;
        margin-top: 3rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        max-height: 50vh;
        overflow-y: auto;
    }

    .track-item {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }

    .track-thumb {
        width: 64px;
        height: 64px;
    }

    .track-info .track-title {
        font-size: 16px;
    }

    .track-info .track-artist {
        font-size: 13px;
    }

    /* Menú más simple en escritorio */
    .menu-overlay {
        background: rgba(0, 0, 0, 0.85);
    }

    .menu-container {
        width: min(400px, 30%);
    }
}

/* Pantallas muy grandes - mantener diseño centrado y compacto */
@media (min-width: 1440px) {
    .player-container {
        padding: 2rem;
        max-width: 100%;
    }

    .ring-wrap {
        width: 300px;
        max-width: 300px;
    }

    .now-playing-title {
        font-size: 1.625rem;
    }

    .now-playing-artist {
        font-size: 0.9375rem;
    }
}

