/* cancao-verdadeira-theme/assets/css/player.css
   Gerado em: 2025-06-01 00:00:00
   Projeto: Canção Verdadeira — Plataforma de letras musicais sertanejas
   Estilos do player global fixo no rodapé: mini-player YouTube,
   controles play/pause/próximo/anterior, barra de progresso,
   controle de volume, nome da música atual e capa. Persistente
   entre páginas via localStorage. Z-index 300 para sobrepor tudo.
*/

/* ─── Player fixo ─────────────────────────────────────────────── */
#cv-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--cv-player-h, 80px);
    background: rgba(13,13,13,.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212,160,23,.12);
    z-index: 300;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

#cv-player.hidden {
    transform: translateY(100%);
}

/* ─── Três colunas do player ──────────────────────────────────── */
.cv-player-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.cv-player-center { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 340px; }
.cv-player-right  { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }

/* ─── Info da música atual ────────────────────────────────────── */
.cv-player-cover {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.cv-player-info { min-width: 0; }

.cv-player-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--cv-text, #F5F0E0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    text-decoration: none;
    display: block;
}
.cv-player-title:hover { text-decoration: underline; color: var(--cv-text, #F5F0E0); }

.cv-player-artist {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.cv-player-fav-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    transition: all .15s;
    padding: 4px;
    flex-shrink: 0;
}
.cv-player-fav-btn:hover,
.cv-player-fav-btn.active { color: #C0392B; transform: scale(1.15); }

/* ─── Controles centrais ──────────────────────────────────────── */
.cv-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-ctrl-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.cv-ctrl-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

.cv-ctrl-btn-main {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #000 !important;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.cv-ctrl-btn-main:hover { background: #e0e0e0; transform: scale(1.06); }

/* ─── Barra de progresso ─────────────────────────────────────── */
.cv-player-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.cv-time {
    font-size: 10px;
    color: #666;
    flex-shrink: 0;
    font-family: monospace;
    min-width: 34px;
    text-align: center;
}

.cv-progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cv-gold, #D4A017), var(--cv-gold-bright, #FFD700));
    border-radius: 2px;
    width: 0%;
    transition: width .5s linear;
    pointer-events: none;
}

.cv-progress-bar:hover .cv-progress-fill {
    background: #fff;
}

.cv-progress-bar:hover {
    height: 6px;
    margin-top: -1px;
}

/* ─── Controles direita ───────────────────────────────────────── */
.cv-volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cv-volume-icon {
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    transition: color .15s;
    padding: 4px;
}
.cv-volume-icon:hover { color: #fff; }

.cv-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.cv-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.cv-btn-queue {
    background: none;
    border: none;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: color .15s;
    padding: 4px;
}
.cv-btn-queue:hover,
.cv-btn-queue.active { color: var(--cv-gold, #D4A017); }

/* ─── YouTube iframe oculto ───────────────────────────────────── */
#cv-yt-player {
    position: fixed;
    bottom: var(--cv-player-h, 80px);
    right: -9999px;
    width: 1px;
    height: 1px;
    pointer-events: none;
    opacity: 0;
}

/* ─── Painel de fila ──────────────────────────────────────────── */
#cv-queue-panel {
    position: fixed;
    bottom: var(--cv-player-h, 80px);
    right: 0;
    width: 320px;
    max-height: 60vh;
    background: #161616;
    border: 1px solid rgba(212,160,23,.12);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow-y: auto;
    z-index: 299;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

#cv-queue-panel.open { transform: translateY(0); }

.cv-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    position: sticky;
    top: 0;
    background: #161616;
}

.cv-queue-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--cv-text, #F5F0E0);
}

.cv-queue-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}
.cv-queue-close:hover { color: #fff; }

.cv-queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s;
}
.cv-queue-item:hover,
.cv-queue-item.playing { background: rgba(212,160,23,.06); }

.cv-queue-item.playing .cv-queue-item-title { color: var(--cv-gold, #D4A017); }

.cv-queue-item-cover {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.cv-queue-item-info { flex: 1; min-width: 0; }
.cv-queue-item-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--cv-text, #F5F0E0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cv-queue-item-artist {
    font-size: 11px;
    color: #666;
}

/* ─── Responsive player ───────────────────────────────────────── */
@media (max-width: 768px) {
    #cv-player {
        padding: 0 12px;
        gap: 8px;
        height: 68px;
    }

    .cv-player-right { display: none; }
    .cv-player-center { width: auto; flex: 1; }
    .cv-player-left { flex: 0 0 auto; }

    .cv-player-cover { width: 44px; height: 44px; }
    .cv-player-title { max-width: 120px; }
    .cv-player-info  { display: none; }

    .cv-volume-control { display: none; }
    #cv-queue-panel { width: 100%; border-radius: 12px 12px 0 0; }
}
