:root {
    --accent: #00f2ff;
    --bg-main: #000000;
    --bg-side: rgba(255, 255, 0, 0.03); /* Tinte amarillo sutil */
    --bg-list: rgba(255, 255, 255, 0.02); /* Tinte gris sutil */
    --bg-player: #1a0a2a; /* Morado oscuro fondo reproductor */
}

body {
    margin: 0;
    background-color: var(--bg-main);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* AUTH */
.auth-overlay {
    height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, #2a0a3a 0%, #000 100%);
}
.login-card { text-align: center; background: rgba(255,255,255,0.05); padding: 50px; border-radius: 30px; backdrop-filter: blur(10px); }
.google-btn { background: white; color: black; border: none; padding: 15px 30px; border-radius: 50px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 10px; margin: 20px auto; }

/* LAYOUT DASHBOARD */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 1fr 110px;
    height: 100vh;
}

/* IZQUIERDA (Zona Amarilla) */
.sidebar {
    background: var(--bg-side);
    border-right: 1px solid rgba(255, 255, 0, 0.1);
    padding: 30px 20px;
}
.sidebar-header { margin-bottom: 30px; }
.sidebar-header h3 { font-size: 0.8rem; letter-spacing: 2px; color: #666; margin-bottom: 20px; }
.add-album-btn { width: 100%; background: rgba(255,255,255,0.05); border: 1px dashed #555; color: white; padding: 10px; border-radius: 8px; cursor: pointer; }

.album-list { list-style: none; padding: 0; }
.album-list li { padding: 12px; margin-bottom: 5px; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.album-list li.active { background: rgba(255, 255, 0, 0.1); color: yellow; font-weight: bold; }

/* DERECHA (Zona Gris) */
.main-content {
    background: var(--bg-list);
    padding: 40px;
    overflow-y: auto;
}
.content-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.content-header h2 { font-size: 3rem; margin: 0; }

.table-header { display: grid; grid-template-columns: 2fr 1fr 100px; color: #666; font-size: 0.8rem; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 10px;}

.song-list { list-style: none; padding: 0; }
.song-row {
    display: grid; grid-template-columns: 2fr 1fr 100px; padding: 12px; border-radius: 8px; align-items: center; cursor: pointer;
}
.song-row:hover { background: rgba(255,255,255,0.05); }
.song-row.playing { color: var(--accent); }
.song-main { display: flex; align-items: center; gap: 15px; }
.song-titles b { display: block; }
.song-titles small { color: #888; }
.btn-add { background: none; border: 1px solid #444; color: #888; border-radius: 20px; padding: 4px 10px; cursor: pointer; }

/* ABAJO (Zona Morada / Reproductor) */
.player-bar {
    grid-column: 1 / 3;
    background: var(--bg-player);
    border-top: 1px solid #3a0a5a;
    display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
}

.track-info-mini { display: flex; align-items: center; gap: 15px; width: 300px; }
.track-info-mini img { width: 65px; height: 65px; border-radius: 10px; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.track-info-mini b { font-size: 1rem; display: block; }
.track-info-mini p { font-size: 0.8rem; color: #aaa; margin: 3px 0 0; }

.player-center { flex-grow: 1; max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.playback-controls { display: flex; align-items: center; gap: 25px; }
.playback-controls button { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; opacity: 0.8; }
.main-play { width: 50px; height: 50px; border-radius: 50%; background: white !important; color: black !important; font-size: 1.2rem !important; }

.progress-box { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 0.7rem; color: #888; }
.bar-container { flex-grow: 1; height: 5px; background: #444; border-radius: 10px; cursor: pointer; position: relative; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 10px; width: 0%; box-shadow: 0 0 10px var(--accent); }

.player-right { width: 300px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
#volumeSlider { width: 100px; accent-color: var(--accent); cursor: pointer; }

/* MENU PERFIL */
.user-menu-container { position: fixed; top: 20px; right: 20px; z-index: 2000; }
.user-icon { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--accent); cursor: pointer; overflow: hidden; box-shadow: 0 0 15px var(--accent); }
#userLogo { width: 100%; height: 100%; object-fit: cover; }
.dropdown-content { display: none; position: absolute; right: 0; background: #111; border: 1px solid #333; border-radius: 10px; margin-top: 10px; min-width: 150px; overflow: hidden; }
.dropdown-content.show { display: block; }
.dropdown-content a { color: white; padding: 15px; text-decoration: none; display: block; font-size: 0.9rem; }
.dropdown-content a:hover { background: #222; }
