hexo-megalearn-audio-player {
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    border: 1px solid #ccc;
    color: black;
    transition: 0.3s ease-in-out;
}

hexo-megalearn-audio-player button .tooltip {
    direction: rtl;
    background: #fff;
    background: var(--plyr-tooltip-background,#fff);
    border-radius: 5px;
    border-radius: var(--plyr-tooltip-radius,5px);
    bottom: 100%;
    box-shadow: 0 1px 2px #00000026;
    color: #4a5464;
    font-size: 13px;
    font-weight: 400;
    left: 50%;
    line-height: 1.3;
    margin-bottom: 10px;
    opacity: 0;
    padding: 5px 7.5px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%,10px) scale(.8);
    transform-origin: 50% 100%;
    transition: transform .2s ease .1s,opacity .2s ease .1s;
    white-space: nowrap;
    z-index: 2
}

hexo-megalearn-audio-player button .tooltip:before {
    border-left: 4px solid #0000;
    border-right: 4px solid #0000;
    border-top: 4px solid #fff;
    bottom: -4px;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 0;
    z-index: 2;
}

hexo-megalearn-audio-player button:focus-visible .tooltip,
hexo-megalearn-audio-player button:hover .tooltip {
    opacity: 1;
    transform: translate(-50%) scale(1);
}

hexo-megalearn-audio-player button[disabled]:focus-visible .tooltip,
hexo-megalearn-audio-player button[disabled]:hover .tooltip {
    opacity: 0;
}

hexo-megalearn-audio-player:has([playing=true]) {
    border: 1px solid var(--hmt-primary-color-alpha25);
}

hexo-megalearn-audio-player .play-pause-button[playing=true] .tooltip.play {
    display: none;
}

hexo-megalearn-audio-player .play-pause-button .tooltip.pause {
    display: none;
}

hexo-megalearn-audio-player .play-pause-button[playing=true] .tooltip.pause {
    display: block;
}

hexo-megalearn-audio-player .seek-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

hexo-megalearn-audio-player .seek-container .time {
    width: 10%;
    text-align: center;
    transition: 0.3s ease-in-out;
}

hexo-megalearn-audio-player .seek-container .total-time[disabled] {
    width: 0%;
    opacity: 0;
}

hexo-megalearn-audio-player .controls-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
hexo-megalearn-audio-player .buttons-container button:hover {
    background: var(--hmt-accent-hover-color);
}

hexo-megalearn-audio-player .buttons-container button[disabled],
hexo-megalearn-audio-player .buttons-container button[disabled]:hover {
    background-color: var(--hmt-accent-color-alpha25);
}

/* Sliders */
hexo-megalearn-audio-player .slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: var(--hmt-primary-color);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    padding: 10px 5px;
}

hexo-megalearn-audio-player .seek-container .seek-bar {
    width: 100%;
    background: var(--hmt-primary-hover-color);
}

hexo-megalearn-audio-player:has([playing=true]) .seek-container .seek-bar {
    background: var(--hmt-primary-color);
}

hexo-megalearn-audio-player .slider[disabled] {
    background: var(--hmt-primary-color-alpha25);
}

hexo-megalearn-audio-player .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* Volume Slider */
hexo-megalearn-audio-player .volume-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
hexo-megalearn-audio-player .volume-container i {
    font-size: 16px;
    color: var(--hmt-primary-color);
}

/* Volume Display */
hexo-megalearn-audio-player .volume-display {
    display: none;
    font-size: 14px;
}

@media(max-width: 768px) {
    hexo-megalearn-audio-player .seek-container .time {
        width: 15%;
    }
    hexo-megalearn-audio-player .seek-container .seek-bar {
        width: 70%;
    }
    hexo-megalearn-audio-player .volume-container {
        width: 40%;
    }
}