.album-player-wrapper {
    width: 100%;
    margin: 0;
}

.album-player {
    display: flex;
    background: rgb(83, 83, 83);
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Left Side - Album Cover & Info */
.album-left {
    flex: 0 0 42.86%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgb(83, 83, 83);
    border-right: 1px solid #333;
}

.album-cover {
    width: 95%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-header {
    text-align: center;
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

.album-title {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.album-subtitle {
    margin: 0;
    font-size: 14px;
    color: #aaa;
    font-weight: 400;
}

/* Right Side - Playlist & Player */
.album-right {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.now-playing {
    margin-bottom: 20px;
}

.now-playing-title {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.now-playing-track {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Playlist */
.playlist-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    margin-right: -10px;
    padding-right: 10px;
}

.playlist-container::-webkit-scrollbar {
    width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.album-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    margin-bottom: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.playlist-item.active {
    background: rgb(51, 51, 51);
    font-weight: 600;
}

.track-num {
    flex: 0 0 35px;
    text-align: center;
    font-weight: 600;
    color: #888;
    font-size: 12px;
}

.playlist-item.active .track-num {
    color: #fff;
}

.track-title {
    flex: 1;
    margin: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-duration {
    flex: 0 0 45px;
    text-align: right;
    font-size: 12px;
    color: #888;
    font-variant-numeric: tabular-nums;
}

/* Progress Bar */
.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #aaa;
}

.time-current,
.time-total {
    flex: 0 0 45px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgb(51, 51, 51);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgb(255, 255, 255);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
    background: rgb(255, 255, 255);
}

/* Player Controls */
.player-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.control-btn {
    width: 30px;
    height: 30px;
    line-height: 0;
    padding: 0;
    margin: 0;
    background: rgb(230, 230, 230) !important;
    border: 1px solid rgb(198, 198, 198) !important;
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    color: rgb(70, 70, 70) !important;
    font-size: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    line-height: 1;
    color: currentColor;
    transform: translate(-50%, -50%);
}

.prev-btn::before {
    content: '';
    left: 55%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 9px solid currentColor;
    transform: translate(-50%, -50%);
}

.prev-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 40%;
    width: 3px;
    height: 10px;
    background: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.next-btn::before {
    content: '';
    left: 45%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
    transform: translate(-50%, -50%);
}

.next-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    width: 3px;
    height: 10px;
    background: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
    transform: translate(-42%, -50%);
}

.play-btn.is-playing::before {
    width: 10px;
    height: 12px;
    border: 0 !important;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        to right,
        currentColor 0 3px,
        transparent 3px 7px,
        currentColor 7px 10px
    );
    box-shadow: none;
}

.control-btn:hover {
    background: rgb(245, 245, 245) !important;
    border-color: rgb(220, 220, 220) !important;
    color: rgb(55, 55, 55) !important;
    transform: translateY(-1px);
}

.control-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    background: rgb(245, 245, 245) !important;
    border-color: rgb(220, 220, 220) !important;
}

.control-btn:active {
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    background: rgb(220, 220, 220) !important;
    transform: scale(0.96);
}

/* Responsive */
@media (max-width: 768px) {
    .album-player {
        flex-direction: column;
    }

    .album-left {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .album-cover {
        width: 200px;
        height: 200px;
    }

    .album-title {
        font-size: 24px;
    }

    .album-right {
        padding: 20px;
    }

    .playlist-container {
        max-height: 300px;
    }
}
