/* ==========================================
   VARIÁVEIS DE COR (MODO DINÂMICO DOS ÁLBUNS)
   ========================================== */
:root { 
    --bg: #ffffff; 
    --text: #1a1a1a; 
    --accent: #888; 
    --highlight: #f8f8f8; 
    --active: #000000; 
    --border-player: #1a1a1a;
}

/* Modo Escuro integrado com o index da MFML */
body.dark-mode {
    --bg: #0a050f; /* O clássico tom roxo/escuro musical */
    --text: #f4f4f9; 
    --accent: #a291b5; 
    --highlight: #140d1f; 
    --active: #a200ff; /* Roxo Elétrico da MFML */
    --border-player: #a200ff;
}

/* Deteção automática do sistema do utilizador */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --bg: #0a050f;
        --text: #f4f4f9;
        --accent: #a291b5;
        --highlight: #140d1f;
        --active: #a200ff;
        --border-player: #a200ff;
    }
}

body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    background: var(--bg); color: var(--text); 
    line-height: 1.6; padding: 0; margin: 0;
    margin-bottom: 120px; 
    transition: background 0.3s ease, color 0.3s ease;
}

/* HERO COM PREENCHIMENTO LATERAL (PADRÃO MFML) */
.album-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.album-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.4);
    transform: scale(1.1);
    z-index: 1;
}

.album-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 50px;
}

.album-hero-text {
    color: #fff;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}
.album-hero-tag { font-size: 0.8rem; text-transform: uppercase; font-weight: bold; letter-spacing: 4px; color: rgba(255,255,255,0.7); margin-bottom: 5px; }
...album-hero-title { font-size: 3.2rem; margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; }

/* CONTEÚDO E PLAYLIST */
.content-container { max-width: 900px; margin: auto; padding: 40px 20px; }

header { margin-bottom: 50px; border-left: 4px solid var(--text); padding-left: 25px; transition: border-left 0.3s ease; }
.header-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.header-logo { height: 45px; width: auto; }
.header-tag { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }

#breadcrumb { margin-bottom: 20px; font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
#breadcrumb a { color: var(--text); text-decoration: none; font-weight: bold; }

.track-list { border-top: 1px solid var(--highlight); margin-top: 20px; }
.track-item { 
    display: flex; align-items: center; padding: 20px 15px; border-bottom: 1px solid var(--highlight);
    cursor: pointer; transition: background 0.2s, border-left 0.2s;
}
.track-item:hover { background: var(--highlight); }
.track-item.playing { border-left: 4px solid var(--active); background: var(--highlight); padding-left: 11px; font-weight: 600; }
.track-number { font-size: 0.8rem; width: 45px; font-family: monospace; color: var(--accent); }
.track-title { font-size: 1.1rem; }

/* PLAYER FLUTUANTE E CENTRADO (DESIGN MFML v3 ADAPTÁVEL) */
.player-container {
    position: fixed; 
    bottom: -250px; 
    left: 50%;
    transform: translateX(-50%);
    width: 60%; 
    min-width: 320px; 
    background: var(--bg); 
    border: 2px solid var(--border-player);
    border-bottom: none;
    padding: 20px; 
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    z-index: 1000;
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, border-color 0.3s ease;
    border-radius: 15px 15px 0 0;
}

.player-container.active { bottom: 0; }

.close-player {
    position: absolute; 
    top: 10px; 
    right: 15px;
    font-size: 1.2rem; 
    cursor: pointer; 
    color: var(--accent);
    font-family: sans-serif;
    font-weight: bold;
    padding: 5px;
    line-height: 1;
}
.close-player:hover { color: #ff0000; }

.now-playing { 
    font-size: 0.7rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1.2px; 
    color: var(--text); 
    text-align: center;
    max-width: 80%;
}
audio { width: 100%; height: 40px; }

footer { margin-top: 80px; font-size: 0.7rem; color: var(--accent); text-align: center; border-top: 1px solid var(--highlight); padding-top: 30px; }
footer a { color: var(--accent); text-decoration: none; font-weight: bold; }