.right {
    position: relative;
    overflow-y: auto;
    min-height: 100vh;
    width: 75vw;
    margin-top: 0px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--innerboxes) 0%,
            var(--innerboxes) 25%,
            var(--leftside) 40%,
            var(--leftside) 100%);
    padding-bottom: 120px;
}

.right::-webkit-scrollbar {
    width: 8px;
}

.right::-webkit-scrollbar-track {
    background: #121212;
}

.right::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.right::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.right {
    scrollbar-width: thin;
    scrollbar-color: #444 #121212;
}

.footer {
    display: flex;
    justify-content: space-between;
    position: fixed;
    margin-top: 8px;
    height: 9vh;
    width: 99vw;
    background: linear-gradient(to right,
            #AF2896 0%,
            #C54CBF 17%,
            #6A6EF5 80%,
            #3B82F6 100%);
}

.f-title {
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding-left: 16px;
    padding-top: 13px;
}

.f-text {
    color: white;
    font-weight: 400;
    font-size: 15px;
    padding-left: 16px;
    padding-top: 4px;
}

.f-button {
    border: none;
    border-radius: 25px;
    height: 50px;
    padding: 0px 30px;
    cursor: pointer;
    background-color: var(--seccolor);
    color: var(--color);
    font-weight: 800;
    font-size: 14px;
    margin-top: 8px;
}

.r-h1 {
    color: white;
    font-size: 23px;
    padding: 8px 0px 2px 38px;
}

.card {
    width: 100%;
    max-width: 150px;
    padding: 10px;
    border-radius: 20px;
    background-color: #12121231;
    margin-left: 2px;
    cursor: pointer;
}

.card img {
    width: 100%;
    border-radius: 20px;
    object-fit: contain;
    margin-bottom: 5px;
    background-color: white;
}

.card ul {
    margin: 0;
    padding: 0 0 0 5px;
}

.card li:first-child {
    color: white;
}

.card li {
    list-style: none;
    color: gray;
    margin-top: 4px;
    cursor: pointer;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: 35px;
    flex: 1;
    overflow-y: auto;
}

.playbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12vh;
    background: #181818;
    border-top: 1px solid #282828;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    box-sizing: border-box;
    color: #fff;
    margin-top: auto;
}

.songinfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 25%;
}

#songTitle {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

#timeInfo {
    color: #bfbfbf;
    font-size: 12px;
    white-space: nowrap;
}

#playlistContainer {
    max-height: 200px;
    overflow-y: auto;
}

.center-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 50%;
}

.songbuttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 6px;
}

.songbuttons img {
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.seekbar {
    position: relative;
    width: 100%;
    height: 6px;
    flex: 1;
    background: #404040;
    border-radius: 10px;
    cursor: pointer;
}


.circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out;
}

.extracontrols {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    max-width: 25%;
}

.volume-control {
    width: 100px;
    height: 4px;
    background: #404040;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.volume-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.seek-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.seek-container span {
    color: #bfbfbf;
    font-size: 12px;
    min-width: 36px;
    text-align: center;
}

#playlistContainer {
    margin-top: 15px;
    padding: 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item:hover {
    background-color: #2a2a2a;
}

.playlist-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.playlist-info {
    display: flex;
    flex-direction: column;
}

.playlist-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.playlist-artist {
    font-size: 12px;
    color: gray;
}

/* Loader Container */
#loader {
    position: fixed;
    inset: 0;
    background: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 20px;
}

/* Spinner */
.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid #2a2a2a;
    border-top: 6px solid #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Text */
#loader h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

#loader p {
    color: #b3b3b3;
    font-size: 14px;
    margin: 0;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.loading-text span {
    animation: blink 1.4s infinite;
}

.loading-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}