/* Audio Player Component Styles */
#audio-player-root {
    display: none;
    /* Hide global floating version */
}

.audio-player-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 0;
    margin: 0;
}

.play-btn-outline {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.play-btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: scale(1.05);
}

.play-btn-outline svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.audio-main-controls {
    display: none;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 0 20px 0 10px;
    border: 1px solid #edf2f7;
    border-radius: 30px;
    height: 38px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.audio-player-pill.is-active .audio-main-controls {
    display: flex;
}

/* Ensure the container is transparent so the controls row handles the background */
.audio-player-container.integrated {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.progress-container-pill {
    width: 100px;
    height: 4px;
    background: #edf2f7;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-line {
    height: 100%;
    background: #cbd5e0;
    border-radius: 2px;
    width: 0%;
}

.progress-knob {
    width: 12px;
    height: 12px;
    background: #718096;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.verse-display {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2d3748;
    white-space: nowrap;
}

.audio-select-bordered {
    border: 1px solid #000;
    border-radius: 6px;
    padding: 2px 20px 2px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    background: white;
    cursor: pointer;
    max-width: 120px;
    height: 28px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 14px;
}

@media (max-width: 640px) {
    .audio-player-pill {
        transform: scale(0.9);
        margin-left: -10px;
    }

    .progress-container-pill {
        width: 60px;
    }

    .verse-display {
        display: none;
    }

    .voice-selector-pill {
        display: block;
    }

    .audio-select-bordered {
        width: 34px;
        padding: 0;
        text-indent: -999px;
        /* Hide text on mobile */
        background-position: center;
        background-color: transparent;
        border-color: #e2e8f0;
    }
}