:root {
    --primary: #ff4d6d;
    --bg: #0a0a0c;
    --glass: rgba(255, 255, 255, 0.05);
}

body, html {
    margin: 0; padding: 0;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0c 100%);
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
}

.btn-back {
    background: rgba(255,255,255,0.1);
    color: white; border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px; border-radius: 30px;
    cursor: pointer; transition: 0.3s;
}
.btn-back:hover { background: var(--primary); border-color: var(--primary); }


#canvas-playlist { position: fixed; top: 0; left: 0; z-index: 0; }

.playlist-wrapper {
    position: relative; z-index: 10;
    max-width: 1000px; margin: 0 auto;
    padding: 40px 20px; text-align: center;
}

.titulo-playlist {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--primary);
    margin-bottom: 10px;
}

.subtitulo { color: #ccc; margin-bottom: 50px; font-style: italic; }

/* --- GRID DE DISCOS --- */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 20px;
}

/* --- EFECTO VINILO --- */
.song-card {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
    cursor: pointer;
}

.album-cover {
    position: absolute;
    width: 100%; height: 100%;
    background: var(--glass);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease;
}

.vinyl-disk {
    position: absolute;
    top: 5px; right: 0;
    width: 250px; height: 250px;
    background: radial-gradient(circle, #333 20%, #000 100%);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vinyl-disk::after {
    content: '';
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.8;
}

/* Animación Hover */
.song-card:hover .album-cover {
    transform: translateX(-40px);
}

.song-card:hover .vinyl-disk {
    transform: translateX(60px) rotate(180deg);
}

.song-info h3 { color: var(--primary); margin-bottom: 5px; font-size: 1.1rem; }
.song-info p { font-size: 0.8rem; color: #eee; }

.btn-play {
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--primary);
    color: white; border: none;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.8rem;
}

.song-card.playing .vinyl-disk {
    animation: spin-vinyl 3s linear infinite;
    transform: translateX(60px);
}

.song-card.playing .album-cover {
    transform: translateX(-40px);
}

@keyframes spin-vinyl {
    from { transform: translateX(60px) rotate(0deg); }
    to { transform: translateX(60px) rotate(360deg); }
}

/* CELULAR */
@media (max-width: 600px) {
    .song-card { width: 220px; height: 220px; }
    .album-cover { padding: 10px; }
    .vinyl-disk { width: 210px; height: 210px; }
    .song-card:hover .album-cover { transform: translateX(-20px); }
    .song-card:hover .vinyl-disk { transform: translateX(30px) rotate(180deg); }
}