/* Media icons (inline SVGs using currentColor) */
.media-icon {
    width: 20px;
    height: 20px;
    display: block;
    color: #00faff;
}

.custom-audio-player {
    width: 100%;
    background-color: #0b1521;
    border-radius: 4px;
    box-sizing: border-box;
}

.audio-controls-wrapper {
    margin: 15px 0;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #203256;
    box-shadow: 2px 2px 2px #000000;
    background: #132232;
}

.audio-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.audio-controls-left,
.audio-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-pause-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    background-color: #00faff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audio-play-pause-btn:hover {
    transform: scale(1.1);
}

.audio-play-pause-btn:active {
    transform: scale(0.95);
}

.audio-play-pause-btn .play-icon,
.audio-play-pause-btn .pause-icon,
.audio-play-pause-btn svg {
    color: #000;
    line-height: 1;
    display: block;
    width: 20px;
    height: 20px;
}

.audio-progress-container {
    position: relative;
    width: 100%;
}

.audio-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #0d1520;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #223552;
    box-shadow: 2px 2px 2px black;
}

.audio-progress-fill {
    height: 9px;
    top: 2px;
    background: #00faff;
    border-radius: 8px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #ffdd33;
    border: 2px solid #0b1521;
    border-radius: 50%;
    cursor: pointer;
    transition: left 0.1s linear;

    display: none;
}

.audio-progress-bar:hover .audio-progress-handle {
    width: 18px;
    height: 18px;
}

.audio-time-display {
    color: #f0f0f0;
    font-size: 13px;
    text-align: center;
    /* font-family: 'Courier New', monospace; */
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}

.audio-time-display .current-time {
    color: #00faff;
}

.audio-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.audio-volume-btn,
.audio-download-btn,
.audio-info-btn {
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.audio-info-btn {
    font-weight: bold;
    font-family: monospace;
    font-size: 18px;
}

.audio-volume-btn svg,
.audio-download-btn svg {
    width: 24px;
    height: 24px;
}

.audio-volume-btn:hover,
.audio-loop-btn:hover,
.audio-download-btn:hover,
.audio-info-btn:hover {
    background-color: rgba(106, 252, 255, 0.1);
}

.audio-volume-slider-container {
    flex: 1;
}

.audio-volume-slider {
    padding: 2px 0;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #0d1520;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #00faff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.audio-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.audio-download-btn {
    font-size: 18px;
}

.audio-download-btn:active {
    transform: translateY(0);
}

.custom-audio-player.loading,
.custom-audio-player.audio-error {
    padding: 15px 20px;
    text-align: center;
}

.audio-loading-message {
    color: #00faff;
    font-style: italic;
    font-size: 14px;
}

.audio-error-message {
    color: #ff6b6b;
    font-size: 14px;
}

button.audio-info-btn,
button.audio-volume-btn,
button.audio-download-btn {
    padding: 5px;
}

/* @media (max-width: 600px) {
    .audio-controls-wrapper {
        gap: 12px;
    }
} */

/* Audio Info Modal */
.audio-info-content .info-section {
    margin-bottom: 15px;
}

.audio-info-content h4 {
    color: #00faff;
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.audio-info-content p {
    margin: 0;
    line-height: 1.5;
    color: #e0e0e0;
}

.info-meta-item.copy-url-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}