
/* Modal styles */
.playhtModal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.playhtModalContent {
    background-color: #121212;
    margin: auto;
    padding: 20px;
    border: 2px solid #6200ea;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Close button */
.playhtCloseButton {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}
.playhtCloseButton:hover {
    fill: #6200ea;
}
/* Sort buttons */
.playhtSortButtons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.playhtSortButtons button {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #6200ea;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.playhtSortButtons button.active {
    background-color: #6200ea;
    color: #ffffff;
}
.playhtSortButtons button:hover {
    background-color: #6200ea;
    color: #ffffff;
}
/* Voices list */
#playhtVoicesList {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
}
.playhtVoiceItem {
    display: flex;
    flex-direction: column;
    background-color: #1f1f1f;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.playhtVoiceItem:hover {
    background-color: #2c2c2c;
}
.playhtVoiceDetails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}
.playhtVoiceDetails span {
    background-color: #6200ea;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}
.playhtAudioPlayer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.playhtAudioPlayer audio {
    width: 100%;
}
/* Wave animation */
.playhtWave {
    width: 100%;
    height: 50px;
    background: linear-gradient(270deg, #6200ea, #bb86fc, #6200ea);
    background-size: 600% 600%;
    animation: playhtWaveAnimation 4s ease infinite;
    border-radius: 5px;
    display: none;
}
@keyframes playhtWaveAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Responsive */
@media (max-width: 600px) {
    .playhtVoiceDetails {
        flex-direction: column;
        align-items: center;
    }
    .playhtAudioPlayer {
        flex-direction: column;
    }
}