.audio-player {
    box-sizing: border-box;
    height: 44px;
    width: 600px;
    margin: 20px auto;
    max-width: 100%;
    color: #1270e3;
    font-size: 15px;
    display: flex;
    justify-content: space-around;
    border: 1px solid #1270e3;
    padding: 8px 10px;
    border-radius: 45px;
}

.audio-player .time {
    color: #1270e3;
    font-style: normal;
}

.audio-player .current {
    width: 33px;
}

.audio-player .timeline {
    background: #e4f0ff;
    width: 100%;
    position: relative;
    cursor: pointer;
    margin: 0 12px;
    height: 12px;
    border-radius: 45px;
}

.audio-player .timeline .progress {
    background: #4590eb;
    width: 0%;
    height: 100%;
    transition: 0.25s;
    border-radius: 45px;
}

.audio-player .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 4px;
    width: 80%;
}

.audio-divider {
    width: 1px;
    background-color: #1270e3;
    height: 42px;
    margin: -8px 12px -8px 8px;
}

.audio-player .controls > * {
    display: flex;
    align-items: center;
}

.toggle-play.play {
    cursor: pointer;
    position: relative;
    left: 0;
    height: 0;
    width: 0;
    border: 9px solid transparent;
    border-left: 15px solid #1270e3;
    display: none;
    transition: transform 0.2s;
}

.toggle-play.play.show {
    display: block;
}

.audio-player .controls .toggle-play.play:hover {
    transform: scale(1.1);
}

.audio-player .controls .toggle-play.pause {
    height: 15px;
    width: 20px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.audio-player .controls .toggle-play.pause:hover {
    transform: scale(1.1);
}

.toggle-play.pause::before {
    position: absolute;
    top: 0;
    left: 0px;
    background: #1270e3;
    content: "";
    height: 15px;
    width: 3px;
}

.toggle-play.pause::after {
    position: absolute;
    top: 0;
    right: 8px;
    background: #1270e3;
    content: "";
    height: 15px;
    width: 3px;
}

.audio-player .controls .time {
    display: flex;
}

.audio-player .controls .time > * {
    padding: 2px;
}

.audio-player .controls .volume-container {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.audio-player .controls .volume-container .volume-button {
    height: 26px;
    display: flex;
    align-items: center;
}

.volume-container .volume-button .volume {
    width: 20px;
    height: 20px;
    background-image: url(./icon/volumn.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.volume-container .volume-slider {
    position: absolute;
    left: -3px;
    top: 0;
    z-index: -1;
    width: 12px;
    height: 0;
    background: #4796f7;
    border-radius: 45px;
    transition: 0.25s;
    overflow: hidden;
}

.volume-slider .volume-percentage {
    background: #dedede;
    height: 0;
    width: 100%;
}

.volume-container:hover .volume-slider {
    left: 0;
    height: 120px;
    top: -123px;
}

.audio-select {
    background-color: rgba(0, 0, 0, 0);
    border: 0;
    font-size: 16px;
    color: #1270e3;
    text-wrap-mode: nowrap;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.audio-icon-select {
    width: 22px;
    height: 22px;
    background-image: url(./icon/right-arrow.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-left: 4px;
}

.audio-select.show-options .audio-icon-select {
    width: 22px;
    height: 22px;
    background-image: url(./icon/down-arrow.png);
}

.audio-select-options {
    position: absolute;
    top: 40px;
    left: -18px;
    display: none;
}

.audio-select.show-options .audio-select-options {
    display: block;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.audio-select-options > div {
    padding: 6px 8px;
    margin-bottom: 1px;
    color: #1270e3;
    background-color: #cce3ff;
    cursor: pointer;
    border-radius: 4px;
}

.audio-select-options > div:hover {
    background-color: #a7cdfc;
}

.more-action-container {
    position: relative;
}

.more-action {
    width: 20px;
    height: 20px;
    background-image: url(./icon/showmore.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: 4px;
}

.more-action-items {
    font-size: 16px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    box-shadow: 0px 0px 12px #aaa;
    display: none;
}

.more-action-items.show {
    display: block;
}

.more-action-items > div {
    padding: 8px 16px 8px 12px;
    background-color: #fff;
    cursor: pointer;
    text-wrap-mode: nowrap;
}

.more-action-items > div:hover {
    background-color: #eee;
}

.more-action-items > div > img {
    width: 15px;
    margin-right: 6px;
}

.item-playback-seep {
    position: relative;
}

.list-item-seeps {
    display: none;
    position: absolute;
    z-index: 101;
    box-shadow: 0px 0px 12px #aaa;
    bottom: 32px;
    right: 12px;
}

.list-item-seeps > div {
    padding: 8px 36px 8px 12px;
    background-color: #fff;
}
.list-item-seeps > div:hover {
    background-color: #eee;
}

.list-item-seeps .choose {
    background-color: #eee;
}

.list-item-seeps.show-item-seep {
    display: block;
}

.time .length {
    text-wrap-mode: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px); /* tùy chọn, cho hiệu ứng mượt hơn */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .audio-player {
        padding: 5px 6px;
        border-radius: 5px;
    }
    .audio-label {
        font-size: 10px;
    }
    .audio-icon-select {
        width: 14px;
    }
    .audio-divider {
        height: 36px;
        margin: -5px 4px -5px 2px;
    }
    .toggle-play.play {
        border: 6px solid transparent;
        border-left: 11px solid #1270e3;
    }
    .time {
        font-size: 10px;
    }
    .timeline {
        margin: 0 8px !important;
        height: 10px;
    }
    .audio-player .timeline {
        height: 10px;
    }
    .volume-container .volume-button .volume {
        width: 14px;
    }
    .more-action {
        width: 14px;
    }
    .toggle-play.pause::before {
        height: 12px;
        top: 2px;
    }
    .toggle-play.pause::after {
        height: 12px;
        top: 2px;
    }
    .audio-player .controls .toggle-play.pause {
        width: 18px;
    }
    .more-action-items {
        font-size: 10px;
    }
    .more-action-items > div > img {
        width: 10px;
    }
    .volume-container .volume-slider {
        width: 8px;
    }
    .volume-container:hover .volume-slider {
        left: 3px;
        height: 90px;
        top: -88px;
    }
}