/* Estilos Base */
body.with-fixed-header {
    padding-top: 150px;
    background-color: #F8F9FA;
    font-family: 'Arial', sans-serif;
    color: #2B2D42;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho do Tema */
.tema-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.tema-capa {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.tema-info h1 {
    color: #005F73;
    font-size: 2rem;
    margin-bottom: 10px;
}

.tema-descricao {
    color: #8D99AE;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Listagem de Áudios */
.section-title {
    color: #005F73;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0FC2C0;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.audio-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.audio-cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.audio-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(15, 194, 192, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-cover-container:hover .play-btn {
    opacity: 1;
}

.audio-details {
    padding: 15px;
}

.audio-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #2B2D42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #8D99AE;
}

.audio-stats i {
    margin-right: 5px;
    color: #0FC2C0;
}

.audio-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.audio-actions button, 
.audio-actions a {
    background: none;
    border: none;
    color: #8D99AE;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.audio-actions button:hover, 
.audio-actions a:hover {
    color: #005F73;
    transform: scale(1.1);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 16px;
    border-radius: 6px;
    color: #005F73;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #005F73;
    color: white;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-numbers a {
    padding: 8px 12px;
    border-radius: 6px;
    color: #005F73;
    text-decoration: none;
    transition: all 0.3s;
}

.page-numbers a.active {
    background-color: #005F73;
    color: white;
}

.page-numbers a:not(.active):hover {
    background-color: #E9ECEF;
}

/* Modal do Player */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

#waveform-modal {
    width: 100%;
    margin: 20px 0;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-pause {
    padding: 8px 16px;
    background: #005F73;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .tema-header {
        flex-direction: column;
    }
    
    .tema-capa {
        width: 150px;
        height: 150px;
    }
    
    .audio-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .audio-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}