.audio-player {
    margin-top: 3rem;
    padding: 0 0 1rem 0;
}

@media (max-width: 768px) {
    .audio-player {
        margin-top: 0;
    }
}

.audio-track {
    margin-bottom: 1.8rem;
}

.audio-track:last-child {
    margin-bottom: 0;
}

.audio-track-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.audio-play-btn {
    width: 2.8rem;
    height: 2.8rem;
    background: none;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s;
}

.audio-play-btn:hover {
    background: #ded7f8;
}

.audio-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.5rem 0 0.5rem 0.9rem;
    border-color: transparent transparent transparent #000;
}

.audio-play-btn.playing::before {
    border: none;
    width: 0.4rem;
    height: 1rem;
    left: 50%;
    border-left: 0.2rem solid #000;
    border-right: 0.2rem solid #000;
}

.audio-track-title {
    font-size: 1.4rem;
    font-weight: 400;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-track-time {
    font-size: 1.2rem;
    color: #999;
    flex-shrink: 0;
}

.audio-vol-wrap {
    position: relative;
    flex-shrink: 0;
    margin-left: 0.4rem;
}

.audio-vol-btn {
    width: 2.2rem;
    height: 2.2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-vol-btn svg {
    width: 1.6rem;
    height: 1.6rem;
}

.audio-vol-slider-wrap {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    width: 2.8rem;
    height: 9rem;
    margin-bottom: 0.4rem;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.audio-vol-slider-wrap.open {
    display: flex;
}

.audio-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 7rem;
    height: 0.3rem;
    background: #e0e0e0;
    outline: none;
    border-radius: 0.2rem;
    transform: rotate(-90deg);
}

.audio-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.audio-vol-slider::-moz-range-thumb {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: none;
}

.audio-progress-bar {
    width: 100%;
    height: 1.4rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.audio-progress-bg {
    width: 100%;
    height: 0.3rem;
    background: #e0e0e0;
    position: relative;
}

.audio-progress-fill {
    height: 100%;
    background: #000;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-player[data-playlist] .audio-track {
    margin-bottom: 0;
}

.audio-playlist {
    list-style: none;
    margin-top: 0;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.15rem 0 0.6rem;
}

.audio-playlist-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0;
    cursor: pointer;
    font-size: 1.3rem;
    transition: opacity 0.15s;
}

.audio-playlist-item:hover {
    opacity: 0.5;
}

.audio-playlist-item.active {
    font-weight: 500;
}

.audio-playlist-num {
    color: #bbb;
    width: 1.6rem;
    flex-shrink: 0;
    font-size: 1.1rem;
    text-align: right;
}

.audio-playlist-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-playlist-duration {
    color: #bbb;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-left: auto;
}
