/* AtomVoice Premium Audio Player - Wavesurfer Design */
/* AtomVoice Premium Audio Player - Wavesurfer Design */
.atom-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* very light shadow */
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--surface-border);
}

.atom-audio-player:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Play Button */
.aap-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--text-main); /* Dark in light mode */
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    padding-left: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.aap-play-btn:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: white;
}
.aap-play-btn.is-playing {
    padding-left: 0;
}

/* Center Section: Waveform */
.aap-center-section {
    flex: 1;
    display: flex;
    align-items: center;
    height: 32px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.aap-waveform-container {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Right Section: Time and Actions */
.aap-right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.aap-time-display {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    min-width: 75px; /* prevent layout shift */
    text-align: right;
}
.aap-time-display .aap-current-time {
    color: var(--text-main);
}

.aap-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.aap-icon-btn {
    background: var(--surface-border); /* subtle background like a real button */
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.aap-icon-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .atom-audio-player {
        padding: 0.5rem 0.8rem;
        gap: 0.8rem;
        height: 52px;
        border-radius: 30px;
    }
    .aap-play-btn, .aap-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .aap-right-section {
        gap: 0.5rem;
    }
    .aap-time-display {
        font-size: 0.75rem;
        min-width: 65px;
    }
}
@media (max-width: 480px) {
    .aap-time-display {
        font-size: 0.7rem;
        min-width: 55px;
    }
}
