/* ========================================
   PLAYER REDISEÑADO COMPLETAMENTE
   Diseño limpio y funcional desde cero
   ======================================== */

/* ========================================
   1. RESETEAR TODO EL PLAYER
   ======================================== */

#player-fixed,
#player-fixed * {
    box-sizing: border-box !important;
}

#player-fixed,
#player-fixed .player,
#player-fixed .player.is-static {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-radius: 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    padding: 20px 15px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    height: 480px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    z-index: 1 !important;
}

#player-fixed .player-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    position: relative !important;
    z-index: 10 !important;
    gap: 10px !important;
}

/* Ocultar elementos problemáticos */
#player-fixed .player-cover,
#player-fixed .player-equalizer,
#player-fixed .song-progress-container {
    display: none !important;
}

/* ========================================
   2. BADGE DIRECTO - OCULTO PARA DAR ESPACIO
   ======================================== */

#player-fixed .badge {
    display: none !important;
}

/* ========================================
   3. CARÁTULA DEL ÁLBUM
   ======================================== */

#player-fixed .player-picture,
#player-fixed .player-picture-wrapper,
#player-fixed .player-left .image,
#player-fixed .player-left .image-wrapper,
#player-fixed .image-wrapper.image-change {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    margin: 5px auto 10px !important;
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.6),
        0 12px 35px rgba(0, 0, 0, 0.4) !important;
    border: 3px solid rgba(139, 92, 246, 0.5) !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

#player-fixed .player-picture img,
#player-fixed .image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ========================================
   4. INFORMACIÓN - MOSTRAR ARTISTA Y CANCIÓN
   ======================================== */

#player-fixed .player-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0 !important;
}

#player-fixed .player-meta {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 15px !important;
}

#player-fixed .player-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
}

#player-fixed .player-desc {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
}

#player-fixed .player-fix {
    display: block !important;
    width: 100% !important;
}

/* Título de la canción - GRANDE */
#player-fixed .player-title,
#player-fixed .song-now,
#player-fixed .player-fix .player-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    display: block !important;
}

/* Nombre del artista - MEDIANO */
#player-fixed .artist-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #d1d5db !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
    display: block !important;
}

/* OCULTAR SOLO LO NECESARIO */
#player-fixed .station-name {
    display: none !important;
}

#player-fixed .player-station-desc {
    display: none !important;
}

/* Ocultar cualquier elemento que contenga "no description" */
#player-fixed *:not(.player-title):not(.artist-name):not(.song-now) {
    text-indent: 0 !important;
}

#player-fixed .player-content > div:empty,
#player-fixed .player-desc > div:empty {
    display: none !important;
}

/* Ocultar específicamente textos que no sean título o artista */
#player-fixed .player-meta > *:not(.player-content):not(.player-desc):not(.player-fix) {
    display: none !important;
}

/* Ocultar elementos con texto específico "no description" */
#player-fixed .player-content > *:not(.player-title):not(.artist-name):not(.song-now):not(.player-desc):not(.player-fix),
#player-fixed .player-desc > *:not(.artist-name):not(.player-title) {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* ========================================
   5. CONTROLES - BOTÓN PLAY ABAJO
   ======================================== */

#player-fixed .player-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: auto !important;
}

/* BOTÓN PLAY - VISIBLE Y GRANDE */
#player-fixed .player-button-play {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    background: linear-gradient(135deg, #ff0050, #ff1744) !important;
    border-radius: 50% !important;
    border: 5px solid rgba(255, 255, 255, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: 
        0 0 50px rgba(255, 0, 80, 0.9),
        0 15px 40px rgba(255, 23, 68, 0.7),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    animation: pulse-play 2s ease-in-out infinite !important;
    z-index: 100 !important;
    margin: 5px auto !important;
    flex-shrink: 0 !important;
}

@keyframes pulse-play {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 50px rgba(255, 0, 80, 0.9),
            0 15px 40px rgba(255, 23, 68, 0.7);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 
            0 0 70px rgba(255, 0, 80, 1),
            0 20px 50px rgba(255, 23, 68, 0.9);
    }
}

/* Anillo exterior */
#player-fixed .player-button-play::before {
    content: '' !important;
    position: absolute !important;
    inset: -12px !important;
    border-radius: 50% !important;
    border: 4px solid rgba(255, 0, 80, 0.5) !important;
    animation: pulse-ring 2s ease-out infinite !important;
}

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

#player-fixed .player-button-play:hover {
    transform: scale(1.12) !important;
}

#player-fixed .player-button-play svg {
    width: 44px !important;
    height: 44px !important;
    fill: #ffffff !important;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.7)) !important;
    margin-left: 5px !important;
}

/* Estado reproduciendo */
#player-fixed .player-button-play.is-playing {
    background: linear-gradient(135deg, #00bcd4, #03a9f4) !important;
}

#player-fixed .player-button-play.is-playing::before {
    border-color: rgba(0, 188, 212, 0.5) !important;
}

#player-fixed .player-button-play.is-playing svg {
    margin-left: 0 !important;
}

/* ========================================
   6. BOTÓN DE VOLUMEN
   ======================================== */

#player-fixed .player-volume {
    order: 10 !important;
}

#player-fixed .player-button-volume {
    width: 50px !important;
    height: 50px !important;
    background: rgba(139, 92, 246, 0.15) !important;
    border-radius: 50% !important;
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#player-fixed .player-button-volume:hover {
    background: rgba(139, 92, 246, 0.25) !important;
    transform: scale(1.1) !important;
}

#player-fixed .player-button-volume svg {
    width: 22px !important;
    height: 22px !important;
    fill: #ffffff !important;
}

/* ========================================
   7. OCULTAR ESTACIÓN Y APPS
   ======================================== */

#player-fixed .player-station,
#player-fixed .player-station-name,
#player-fixed .player-station-desc,
#player-fixed .player-apps {
    display: none !important;
}

/* ========================================
   8. AJUSTAR SLIDER AL MISMO TAMAÑO
   ======================================== */

.section-column-70 .slider,
.section-column-70 .slider-wrapper,
.section-column-70 .swiper-banner,
.section-column-70 .slider-slide,
.section-column-70 .swiper-slide {
    min-height: 480px !important;
    max-height: 480px !important;
    height: 480px !important;
    position: relative !important;
    z-index: 1 !important;
}

.section-column-70 .slider-slide img,
.section-column-70 .swiper-slide img {
    height: 480px !important;
    object-fit: cover !important;
}

/* Asegurar que el layout de columnas funcione correctamente */
.section-column-70 {
    position: relative !important;
    z-index: 1 !important;
}

.section-column-30 {
    position: relative !important;
    z-index: 1 !important;
}

/* ========================================
   9. RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    #player-fixed .player-picture,
    #player-fixed .player-picture-wrapper {
        width: 130px !important;
        height: 130px !important;
        min-width: 130px !important;
        min-height: 130px !important;
        max-width: 130px !important;
        max-height: 130px !important;
    }
    
    #player-fixed .player-button-play {
        width: 85px !important;
        height: 85px !important;
    }
    
    #player-fixed .player-button-play svg {
        width: 38px !important;
        height: 38px !important;
    }
    
    #player-fixed .player-title,
    #player-fixed .song-now {
        font-size: 16px !important;
    }
    
    #player-fixed .artist-name {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    #player-fixed,
    #player-fixed .player,
    #player-fixed .player.is-static {
        min-height: 420px !important;
        max-height: 420px !important;
        height: 420px !important;
    }
    
    #player-fixed .player-picture,
    #player-fixed .player-picture-wrapper {
        width: 110px !important;
        height: 110px !important;
        min-width: 110px !important;
        min-height: 110px !important;
        max-width: 110px !important;
        max-height: 110px !important;
    }
    
    #player-fixed .player-button-play {
        width: 75px !important;
        height: 75px !important;
    }
    
    #player-fixed .player-button-play svg {
        width: 34px !important;
        height: 34px !important;
    }
    
    #player-fixed .player-title,
    #player-fixed .song-now {
        font-size: 15px !important;
    }
    
    #player-fixed .artist-name {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    #player-fixed,
    #player-fixed .player,
    #player-fixed .player.is-static {
        min-height: 380px !important;
        max-height: 380px !important;
        height: 380px !important;
    }
    
    #player-fixed .player-picture,
    #player-fixed .player-picture-wrapper {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }
    
    #player-fixed .player-button-play {
        width: 70px !important;
        height: 70px !important;
    }
    
    #player-fixed .player-button-play svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    #player-fixed .player-title,
    #player-fixed .song-now {
        font-size: 14px !important;
    }
    
    #player-fixed .artist-name {
        font-size: 12px !important;
    }
}

/* ========================================
   10. TEMA CLARO
   ======================================== */

.light #player-fixed,
.light #player-fixed .player.is-static {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.light #player-fixed .player-fix .player-title,
.light #player-fixed .player-fix .song-now {
    color: #1e293b !important;
}

/* FIX: El #player-fixed ES el .player.is-static (sin espacio) */
#player-fixed.player,
#player-fixed.player.is-static {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  float: none !important;
  margin: 0 !important;
}

/* Ocultar player viejo */
#player-fixed {
    display: none !important;
}
