/*
Arquivo: wp-content/themes/cancao-verdadeira/assets/css/main.css

Resumo:
Versão final corrigida com:
- Player estruturado corretamente
- Barra de progresso controlada (não estoura largura)
- Layout centralizado estilo Spotify
- Correção de bug de expansão do input range
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0d0d0d;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* =========================
   LAYOUT
========================= */
.layout {
    display: flex;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 240px;
    background: #000;
    position: fixed;
    height: 100%;
    padding: 20px;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 25px;
}

.sidebar-logo img {
    max-width: 200px;
}

/* =========================
   MAIN
========================= */
.main-content {
    margin-left: 240px;
    padding: 20px;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    height: 250px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    filter: blur(18px) brightness(0.4);
}

.hero-content {
    position: relative;
    padding: 25px;
}

.hero-title {
    font-size: 22px;
}

.hero-artist {
    font-size: 13px;
    color: #ccc;
}

.btn-play {
    margin-top: 12px;
    padding: 8px 14px;
    font-size: 13px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================
   GRID
========================= */
.grid-musicas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* =========================
   PLAYER (CORRIGIDO)
========================= */
.player-fixed {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background: #181818;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9999;
}

/* ESQUERDA */
.player-left {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 25%;
}

.player-left img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
}

/* CENTRO (CONTROLES + PROGRESSO) */
.player-center {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* BOTÕES */
.player-controls {
    display: flex;
    gap: 12px;
}

.player-controls button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* BARRA DE PROGRESSO (FIX DEFINITIVO) */
.progress-container {
    width: 100%;
    max-width: 500px; /* limite real */
    display: flex;
    align-items: center;
}

#progressBar {
    width: 100%;
    max-width: 500px;
    height: 4px;
    cursor: pointer;
}

/* DIREITA */
.player-right {
    width: 25%;
    display: flex;
    justify-content: flex-end;
}

/* VOLUME */
#volume {
    width: 100px;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .player-center {
        width: 60%;
    }

    #progressBar {
        max-width: 200px;
    }
}