.audio-tweaks-wrapper {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

/* Ẩn trình phát mặc định của trình duyệt để dùng Waveform */
.audio-tweaks-wrapper audio {
    display: none !important;
}

/* Phần hiển thị Waveform */
.at-player-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.at-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #ff5500;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.at-play-btn:hover {
    background: #e04a00;
}

.at-waveform {
    /* Đảm bảo container của sóng âm không bị tràn */
    min-width: 100px;
}

.at-time-display {
    font-family: monospace;
    font-size: 14px;
    color: #666;
    min-width: 90px;
    text-align: right;
    flex-shrink: 0;
}

/* Phần điều khiển */
.at-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.at-speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.at-speed-control label {
    font-weight: 600;
    min-width: 100px;
    margin: 0;
}

.at-speed-slider {
    flex-grow: 1;
    cursor: pointer;
}

.at-bookmarks {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.at-bookmarks h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
}

.at-bookmark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 600px) {
    .at-bookmark-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.at-bookmark-slot {
    display: flex;
    position: relative;
    height: 40px;
}

.at-bookmark-btn {
    width: 100%;
    height: 100%;
    padding: 0 5px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.at-bookmark-btn:hover {
    background: #135e96;
}

.at-bookmark-btn.saved {
    background: #008a20;
    padding-right: 25px;
}

.at-bookmark-btn.saved:hover {
    background: #007017;
}

.at-bookmark-clear {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 5px;
    line-height: 1;
    opacity: 0.8;
}

.at-bookmark-clear:hover {
    opacity: 1;
    color: #ffb900;
}
