/* ==========================================================================
   CSS EXCLUSIVO - PÁGINA DE MÚSICAS / CATÁLOGO
   ========================================================================== */

.musicas-page-container {
    padding: 140px 8% 80px 8%; /* Recuo superior maior para não cobrir com o header fixo */
    min-height: 80vh;
}

/* Container do campo de busca */
.search-box-container {
    margin-bottom: 40px;
    width: 100%;
}

/* Input de busca estilizado */
.search-box-container .form-group input {
    width: 100%;
    padding: 15px 25px;
    background-color: var(--bg-card);
    border: 1px solid #1a1a1a;
    border-radius: 50px; /* Deixa as bordas arredondadas modernas */
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Efeito de foco quando o usuário clica para digitar */
.search-box-container .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 239, 0, 0.2); /* Brilho neon sutil */
    background-color: #151515;
}

/* Estilização do texto de exemplo (Placeholder) */
.search-box-container .form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Grid responsivo blindado para os cards de música */
.musicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.music-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #151515;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.music-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #000;
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay com botão de Play ao passar o mouse */
.cover-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cover-wrapper:hover .cover-overlay {
    opacity: 1;
}

.play-btn {
    background-color: var(--accent);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Textos internos do Card */
.music-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.music-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Área de botões inferiores do card (Smartlink e Clipe) */
.music-card-actions {
    margin-top: auto; /* Força os botões a ficarem alinhados na base do card */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-clipe-vermelho {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #ff0000;
    color: #ffffff;
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-clipe-vermelho:hover {
    background-color: #cc0000;
    transform: scale(1.02);
}

/* RESPONSIVIDADE DA PÁGINA DE MÚSICAS */
@media (max-width: 768px) {
    .musicas-page-container {
        padding: 100px 5% 60px 5%;
    }
    
    .musicas-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .music-card {
        padding: 15px;
    }
}