/* ==================== WINDOWS 98 CD PLAYER - FOOTER FIJO ==================== */

/* Ajustar footer para que no quede tapado por el player */
footer {
    padding-bottom: calc(3rem + 60px);
}

/* ==================== CONTAINER PRINCIPAL (FOOTER FIJO) ==================== */
.player-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95%;
    background: linear-gradient(180deg, #dfdfdf 0%, #bfbfbf 50%, #808080 100%);
    border-top: 2px solid #ffffff;
    box-shadow: 
        inset 1px 1px 0 #ffffff,
        inset -1px -1px 0 #404040,
        0 -4px 15px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.5);
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    height: 50px;
    box-sizing: border-box;
}

/* Textura tipo Windows 98 */
.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255,255,255,0.03) 1px, rgba(255,255,255,0.03) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,0.03) 1px, rgba(255,255,255,0.03) 2px);
    pointer-events: none;
    opacity: 0.5;
}

/* ==================== ALBUM ART (Estilo CD Player) ==================== */
.player-container .album-art-container {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    background: #000;
    border: 1px solid #404040;
    box-shadow: 
        inset 1px 1px 2px rgba(0, 0, 0, 0.8),
        inset -1px -1px 0 #808080;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.player-container .album-art-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

/* ==================== INFO SECTION ==================== */
.player-container .player-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
    min-width: 0;
    justify-content: center;
}

/* Display tipo LCD */
.player-container .track-display {
    background: linear-gradient(180deg, #1a3a1a 0%, #0d1f0d 100%);
    padding: 0.2rem 0.5rem;
    border: 1px solid #404040;
    box-shadow: 
        inset 1px 1px 2px rgba(0, 0, 0, 0.9),
        inset -1px -1px 0 #1a3a1a,
        1px 1px 0 #808080;
    position: relative;
    overflow: hidden;
    width: 380px;
    height: 24px;
    display: flex;
    align-items: center;
}

/* Scanlines del LCD */
.player-container .track-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(0, 0, 0, 0.3) 1px,
        transparent 2px
    );
    pointer-events: none;
}

.player-container .track-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.player-container .track-artist {
    font-family: 'Courier New', 'MS Sans Serif', monospace;
    font-size: 0.6rem;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    opacity: 0.8;
    white-space: nowrap;
    display: inline-block;
    padding-right: 1rem;
}

.player-container .track-artist::after {
    content: '•';
    margin-left: 0.5rem;
    opacity: 0.5;
}

.player-container .track-title {
    font-family: 'Courier New', 'MS Sans Serif', monospace;
    font-size: 0.7rem;
    color: #00ff00;
    letter-spacing: 0.03rem;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
    padding-right: 1rem;
}

.player-container .track-album {
    display: none;
}

.player-container .track-year {
    display: none;
}

/* Contenedor para el texto - SIN animación */
.player-container .track-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}


/* Progress bar estilo Windows 98 */
.player-container .progress-container {
    position: relative;
    width: 380px;
    height: 6px;
    background: #fff;
    border: 1px solid #808080;
    box-shadow: 
        inset 1px 1px 1px rgba(0, 0, 0, 0.5),
        1px 1px 0 #dfdfdf;
    flex-shrink: 0;
}

.player-container .progress-bar {
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.player-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #000080 0%, #0000ff 100%);
    position: relative;
    transition: width 0.1s linear;
    box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.5);
}

/* Patrón de puntos de Windows 98 en el progreso */
.player-container .progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px);
}

.player-container .progress-fill::after {
    display: none;
}

/* ==================== CONTROLS SECTION ==================== */
.player-container .controls-section {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.player-container .player-controls {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* Botones estilo Windows 98 */
.player-container .control-btn,
.player-container .play-btn {
    background: linear-gradient(180deg, #dfdfdf 0%, #bfbfbf 100%);
    border: 1px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    color: #000;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.1s ease;
    box-shadow: 1px 1px 0 #000000;
    position: relative;
}

.player-container .control-btn {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-container .play-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
}

.player-container .control-btn:hover,
.player-container .play-btn:hover {
    background: linear-gradient(180deg, #e5e5e5 0%, #c5c5c5 100%);
}

.player-container .control-btn:active,
.player-container .play-btn:active {
    border-color: #404040 #ffffff #ffffff #404040;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

/* Efecto 3D en los botones */
.player-container .control-btn::before,
.player-container .play-btn::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 2px;
    bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .player-container {
        gap: 0.6rem;
        padding: 0.25rem 1rem;
        height: 48px;
        bottom: 8px;
    }
    
    .player-container .album-art-container {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        max-width: 42px;
        max-height: 42px;
    }
    
    footer {
        padding-bottom: calc(3rem + 56px);
    }
    
    .player-container .track-display {
        padding: 0.2rem 0.5rem;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .player-container {
        gap: 0.5rem;
        padding: 0.25rem 0.6rem;
        height: 46px;
        bottom: 6px;
    }
    
    .player-container .album-art-container {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
    
    .player-container .player-info-section {
        flex-direction: column;
        gap: 0.3rem;
        align-items: stretch;
    }
    
    .player-container .progress-container {
        width: 100%;
        min-width: unset;
    }
    
    footer {
        padding-bottom: calc(3rem + 52px);
    }
    
    .player-container .track-display {
        min-width: unset;
        padding: 0.2rem 0.4rem;
        height: 28px;
    }
    
    .player-container .track-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .player-container .track-artist::after {
        display: none;
    }
    
    .player-container .track-artist {
        font-size: 0.55rem;
    }
    
    .player-container .track-title {
        font-size: 0.65rem;
    }
    
    .player-container .progress-container {
        height: 6px;
    }
    
    .player-container .control-btn {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
    }
    
    .player-container .play-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .player-container {
        padding: 0.25rem 0.4rem;
        gap: 0.4rem;
        height: 44px;
        bottom: 5px;
    }
    
    .player-container .album-art-container {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        max-width: 38px;
        max-height: 38px;
    }
    
    footer {
        padding-bottom: calc(3rem + 49px);
    }
    
    .player-container .track-display {
        padding: 0.2rem 0.3rem;
        height: 26px;
    }
    
    .player-container .track-artist {
        font-size: 0.5rem;
    }
    
    .player-container .track-title {
        font-size: 0.6rem;
    }
    
    .player-container .control-btn {
        width: 20px;
        height: 20px;
        font-size: 0.5rem;
    }
    
    .player-container .play-btn {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
}