/* ============================================================
   cds/css_cds.css  — Estilos do Player de CDs/Playlists
   Importar com: <link rel="stylesheet" href="cds/css_cds.css">
   ou via PHP:   echo '<link rel="stylesheet" href="cds/css_cds.css">';
   ============================================================ */

/* === MODAL CONTAINER === */
#modalCdPlayer .modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .25)
}

/* === HEADER DO MODAL === */
.modal-cd-header-bg {
    padding: 24px 20px 18px;
    position: relative;
    color: #fff
}

.modal-cd-header-bg::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, .15) 0%, transparent 70%);
    pointer-events: none
}

/* === ÍCONE GRANDE NO HEADER === */
.modal-cd-icon-big {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, .2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    position: relative;
    overflow: hidden;
}

/* Efeito blur no pseudo-elemento, preservando o ícone visível */
.modal-cd-icon-big::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: inherit;
    z-index: 0;
}

.modal-cd-icon-big i {
    font-size: 26px;
    color: #fff;
    position: relative;
    z-index: 1;
    display: inline-block !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* === TÍTULOS === */
.modal-cd-titulo {
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0 0 3px;
    letter-spacing: -.3px
}

.modal-cd-subtitulo {
    font-size: .8rem;
    opacity: .75;
    margin: 0
}

/* === BOTÃO FECHAR === */
.modal-cd-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
    z-index: 5
}

.modal-cd-close:hover {
    background: rgba(255, 255, 255, .3)
}

/* === MINI PLAYER (barra de áudio) === */
.modal-mini-player {
    background: #1a1a2e;
    padding: 10px 14px;
    display: none
}

.modal-mini-player.visible {
    display: block
}

.mini-player-nome {
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

#playerAudio {
    width: 100%;
    height: 34px;
    border-radius: 8px;
    accent-color: #9c1be7
}

/* === LISTA DE MÚSICAS === */
.modal-musicas-list {
    padding: 8px 14px 12px;
    max-height: 52vh;
    overflow-y: auto
}

.musica-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 12px;
    margin-bottom: 5px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, .05);
    transition: background .15s
}

.musica-row:hover {
    background: #f0f4ff
}

.musica-row.playing {
    background: rgba(156, 27, 231, .08);
    border-color: rgba(156, 27, 231, .2)
}

.musica-num {
    width: 22px;
    height: 22px;
    background: rgba(156, 27, 231, .1);
    color: #9c1be7;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.musica-nome {
    flex: 1;
    font-size: .79rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* === BOTÃO PLAY === */
.btn-play-musica {
    width: 30px;
    height: 30px;
    background: #9c1be7;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0
}

.btn-play-musica:hover {
    background: #8112ff;
    transform: scale(1.1)
}

.btn-play-musica.playing {
    background: #ef4444
}

/* === BOTÃO DOWNLOAD INDIVIDUAL === */
.btn-dl-musica {
    width: 30px;
    height: 30px;
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .2);
    border-radius: 50%;
    color: #059669;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0;
    text-decoration: none
}

.btn-dl-musica:hover {
    background: #10b981;
    color: #fff
}

/* === BOTÃO BAIXAR CD ZIP === */
.btn-dl-zip-baixaki {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    background: linear-gradient(to bottom, #4ade80, #16a34a);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    box-shadow: 0 4px 0 #15803d, 0 8px 16px rgba(22, 163, 74, .4);
    text-transform: uppercase;
    letter-spacing: .5px
}

.btn-dl-zip-baixaki:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #15803d, 0 4px 8px rgba(22, 163, 74, .4);
    color: #fff
}

.btn-dl-zip-baixaki i {
    font-size: 1.1rem;
    animation: bounceDown 1.5s infinite
}

@keyframes bounceDown {
    0%,
    100% { transform: translateY(-2px) }
    50%  { transform: translateY(2px) }
}

/* === RESPONSIVO === */
@media(max-width: 576px) {
    #modalCdPlayer .modal-dialog {
        margin: 6px
    }

    #modalCdPlayer .modal-content {
        border-radius: 18px
    }
}
