

.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
    flex: 1;
}

.player-main {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.player-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 320px;
}

.player-left > * {
    width: 100%;
}

.song-info-section,
.controls-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.controls-section {
    align-items: stretch;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.player-right {
    flex: 1;
    min-width: 460px;
}

.album-art-large {
    width: 250px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.song-info-section {
    text-align: center;
    width: 100%;
}

.song-info-section h2 {
    color: white;
    font-family: "Stack Sans Headline", sans-serif;
    font-size: 1.4rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.song-info-section p {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Stack Sans Headline", sans-serif;
    font-size: 0.95rem;
    margin: 0;
}

.controls-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    align-items: stretch;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: "Stack Sans Headline", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    max-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 150px;
}

.play-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
}
.progress-container span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    min-width: 35px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    max-width: 300px;
}

.progress {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.096);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.199);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.volume-control label {
    color: white;
    font-family: "Stack Sans Headline", sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

.volume-slider {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.playlist {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.096);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.199);
    padding: 18px;
}

.playlist h3 {
    color: white;
    font-family: "Stack Sans Headline", sans-serif;
    font-size: 1.2rem;
    margin: 0 0 12px 0;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 2560px) {
    .player-main {
        max-width: 1600px;
    }

    .player-left {
        flex: 0 0 600px;
        width: 600px;
    }

    .album-art-large {
        width: 350px;
        height: 450px;
    }

    .controls-section {
        max-width: 400px;
        max-height: 300px;
        min-height: 300px;
    }

    .control-btn {
        max-width: 200px;
        font-size: 1rem;
        padding: 14px 20px;
    }

    .play-btn {
        max-width: 250px;
        font-size: 1.1rem;
        padding: 16px 24px;
    }

    .volume-control {
        max-width: 400px;
        padding: 16px 24px;
    }

    .volume-control label {
        font-size: 1rem;
    }

    .progress-container {
        max-width: 400px;
    }

    .player-right {
        min-width: 600px;
        min-height: 800px;
    }

    .playlist {
        max-width: 1200px;
    }

    .playlist-items {
        max-height: 600px;
    }

    .playlist h3{
        font-size: 2rem;
    }

    .playlist-item {
        padding: 16px;
    }

    .playlist-item-title {
        font-size: 2rem !important; 
    }

    .playlist-item-artist {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 900px) {
    .player-main {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .player-left {
        width: 100%;
        max-width: 420px;
        flex: 1 1 auto;
        padding: 0 10px;
    }

    .player-left > * {
        width: 100%;
    }

    .album-art-large {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .controls-section {
        max-width: none;
    }

    .controls {
        justify-content: center;
    }

    .control-btn {
        max-width: none;
        flex: 1 1 100px;
    }

    .play-btn {
        flex: 2 1 220px;
    }

    .volume-control {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .volume-control label {
        text-align: left;
        width: 100%;
    }

    .progress-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .progress-bar {
        max-width: 100%;
    }

    .player-right {
        width: 100%;
        min-width: 0;
    }

    .playlist {
        width: 100%;
        max-width: none;
    }
}

.playlist-item-title {
    color: white;
    font-family: "Stack Sans Headline", sans-serif;
    font-size: 0.85rem;
    margin: 0;
}

.playlist-item-artist {
    color: rgba(255, 255, 255, 0.6);
    font-family: "Stack Sans Headline", sans-serif;
    font-size: 0.75rem;
    margin: 4px 0 0 0;
}

.playlist-items::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .player-main {
        flex-direction: column;
        max-width: 100%;
    }

    .player-left {
        width: 100%;
    }

    .player-right {
        width: 100%;
    }

    .album-art-large {
        width: 200px;
        height: 200px;
    }

    .song-info-section h2 {
        font-size: 1.2rem;
    }

    .song-info-section p {
        font-size: 0.85rem;
    }

    .controls {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .control-btn {
        max-width: none;
        flex: 1 1 auto;
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 52px;
        justify-content: center;
    }

    .control-btn .icon {
        display: inline-flex;
    }

    .control-btn .label {
        display: inline-flex;
        font-size: 0.9rem;
        color: white;
        margin-left: 8px;
    }

    .control-btn:not(.play-btn) .label {
        font-weight: 600;
    }

    .control-btn {
        color: white;
    }

    .play-btn {
        padding: 10px 18px;
    }

    .volume-control {
        padding: 16px;
        gap: 10px;
        width: 100%;
        max-width: none;
    }

    .volume-control label {
        text-align: left;
        flex: 0 0 auto;
    }

    .volume-control .volume-slider {
        flex: 1 1 auto;
        width: 100%;
    }

    .progress-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .progress-container span {
        min-width: 42px;
        font-size: 0.8rem;
    }

    .progress-container span:first-child {
        order: 1;
        text-align: left;
    }

    .progress-bar {
        order: 2;
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
    }

    .progress-container span:last-child {
        order: 3;
        text-align: right;
    }
}


