/* css/player.css */

.music-player-container {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 20px auto; /* Centra el retro-tv-player */
    margin-top: 70px;
}

.card-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.track-card-wrapper {
    position: absolute;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, z-index 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Clases de Posición para la Animación --- */
.card-active {
    width: 320px;
    z-index: 10;
    opacity: 1;
    cursor: pointer;
    transform: translateX(0) scale(1);
}

.card-prev {
    width: 250px;
    z-index: 5;
    opacity: 0.5;
    cursor: pointer;
    transform: translateX(-150px) scale(0.8);
}

.card-next {
    width: 250px;
    z-index: 5;
    opacity: 0.5;
    cursor: pointer;
    transform: translateX(150px) scale(0.8);
}

.walkman-card {
    position: relative;
    width: 100%;
}

.album-art {
    width: 100%;
    display: block;
    border-radius: 5px;
}

.walkman-frame {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}

.card-info {
    margin-top: 15px;
    text-align: center;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}
.card-info h3 { margin: 0; font-size: 25px; color: #333; }
.card-info p { margin: 5px 0 0; font-size: 20px; color: #666; }

.card-prev .card-info, .card-next .card-info {
    opacity: 0;
}

/* --- Controles de Audio y Progreso --- */
.progress-container {
    background: #e0e0e0; border-radius: 5px; cursor: pointer;
    margin: 20px 0; height: 8px; width: 100%;
}
.progress {
    background-color: #a04282; border-radius: 5px; height: 100%;
    width: 0%; transition: width 0.1s linear;
}
.audio-controls {
    display: flex; justify-content: center; align-items: center; gap: 40px;
}
.control-btn {
    background: none; border: none; color: #555; font-size: 24px;
    cursor: pointer; transition: transform 0.2s;
}
.control-btn:hover { transform: scale(1.1); color: #a04282; }
.play-pause { font-size: 40px; color: #333; }

/* --- Media Query para móviles --- */
@media (max-width: 600px) {
    .card-prev { transform: translateX(-100px) scale(0.7); }
    .card-next { transform: translateX(100px) scale(0.7); }
    .card-active { width: 200px; }
    .card-prev, .card-next { width: 140px; }
    .card-carousel { height: 300px; }
}