/* Kodo Audio Player — dark theme */

.kodo-audio-player {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 20px 24px 16px;
    margin: 28px 0;
    color: #e2e8f0;
    font-family: inherit;
    box-sizing: border-box;
}

.kap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.kap-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.kap-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kap-duration-hint {
    color: #64748b;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.kap-waveform {
    background: #0f0f1a;
    border-radius: 4px;
    overflow: hidden;
    min-height: 72px;
}

/* WaveSurfer injects its own wave/canvas inside — don't clip it */
.kap-waveform wave {
    overflow: hidden !important;
}

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

.kap-play-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.kap-play-btn:hover,
.kap-play-btn:focus {
    background: #2563eb;
    outline: 2px solid rgba(96, 165, 250, 0.4);
    outline-offset: 2px;
}

.kap-time {
    font-family: ui-monospace, 'SFMono-Regular', monospace;
    font-size: 0.8rem;
    color: #64748b;
}

.kap-loading {
    font-size: 0.8rem;
    color: #475569;
    margin: 8px 0 0;
    text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
    .kodo-audio-player {
        padding: 16px;
    }
    .kap-title {
        font-size: 0.85rem;
    }
}
