
.tts-player-wrapper {
    max-width: 500px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.tts-player-wrapper:first-child {
    margin-top: 0;
}
/* Avatar Circle */
.tts-avatar-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #afe297, #f9a8d4, #93c5fd, #fef9c3, #c4b5fd);
    background-size: 400% 400%;
    animation: ttsGradientBG 8s ease-in-out infinite;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tts-avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.tts-avatar-circle.playing {
    border-color: #ccc;
}

@keyframes ttsGradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tts-avatar-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
}

.tts-avatar-layer.show {
    opacity: 1;
}

/* Player Card */
.tts-player-container {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    padding: 25px 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -30px; /* Overlap with avatar */
    padding-top: 45px;
    z-index: 1;
    text-align: center;
}

.tts-player-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tts-icon-box {
    background: #000;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tts-player-info h4 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.tts-player-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #888;
}

.tts-audio-el {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

/* Customizing the native player a bit if possible via CSS (limited) */
.tts-audio-el::-webkit-media-controls-panel {
    background-color: #f1f1f1;
}
