@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    display: flex;
}

/* DISCLAIMER */
.disclaimer-banner {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background-color: yellow;
    color: black;
    text-align: center;
    padding: 20px 40px 20px 10px;
    font-weight: bold;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: top 0.6s ease, opacity 0.6s ease;
}

/* VISIBLE STATE */
.disclaimer-banner.show {
    top: 0;
    opacity: 1;
}

.disclaimer-banner .close-btn {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: black;
}

/* LEFT PANEL */
.left {
    width: 23vw;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home,
.library {
    background-color: #121212;
    border-radius: 7px;
    padding: 12px;
}

.logo {
    gap: 8px;
    font-size: 20px;
    align-items: center;
    padding-bottom: 20px;
}

.logo img {
    width: 35px;
}

.home ul li {
    padding: 8px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    list-style: none;
    font-weight: bold;
    cursor: pointer;
}

.home ul li img {
    width: 24px;
}

.library {
    height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.library-heading {
    font-size: 14px;
    padding-bottom: 10px;
}

.songsList {
    overflow-y: auto;
    flex-grow: 1;
}

.songsList ul {
    padding: 0 10px;
}

.songsList ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #333;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.songsList ul li:hover {
    background-color: #2a2a2a;
}

.songsList .info-container img {
    width: 20px;
    margin-right: 10px;
}

.songsList .songInfo {
    flex-grow: 1;
    width: 25%;
}

.songInfo :nth-child(2) {
    color: #ffffff55;
}

.playnow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playnow span {
    font-size: 12px;
}

.playnow img {
    width: 24px;
}

.library-footer {
    font-size: 10px;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    display: flex;
}

.library-footer a {
    color: #b3b3b3;
    text-decoration: none;
}

/* RIGHT PANEL */
.right {
    width: 75vw;
    margin: 8px 8px 8px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 7px;
}

.header {
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #101010;
    padding: 0 20px;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav img {
    cursor: pointer;
    width: 20px;
}

.hamburger {
    cursor: pointer;
    display: none;
    width: 35px;
}

.close {
    display: none;
    width: 22px;
}

.musyncPlaylists {
    padding: 15px;
    flex: 1;
    background-color: #121212;
    display: flex;
    flex-direction: column;
}

.cardContainer {
    max-height: 65vh;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding-bottom: 80px;
    flex: 1;
    overflow-y: auto;
}

.card {
    height: 270px;
    width: 180px;
    padding: 10px;
    border-radius: 5px;
    background-color: #181818;
    position: relative;
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.card:hover {
    background-color: #252525;
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
}

.card h2 {
    padding: 3px 0;
}

.card p {
    color: #b3b3b3;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play {
    position: absolute;
    top: 55%;
    right: 15px;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.play img {
    height: 50px;
    width: 50px;
}

.card:hover .play {
    opacity: 1;
    top: 55%;
}

/* PLAYBAR */
.playbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 65px;
    background-color: #181818;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #282828;
}

.aboutsong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    height: 40px;
}

.songinfo {
    width: 30%;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.songButtons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.songButtons img {
    width: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.songButtons img#play {
    width: 38px;
}

.songButtons img:hover {
    opacity: 1;
}

.timevol {
    width: 30%;
    text-align: right;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 30px;
}

.songVolume {
    gap: 10px;
}

.songVolume img {
    cursor: pointer;
}

.seekbar {
    height: 4px;
    width: 100%;
    background-color: #4d4d4d;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    margin-top: 8px;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #ffffff;
    width: 0%;
    position: absolute;
    border-radius: 10px;
}

.seekbar:hover .progress-fill {
    background-color: #1ed760;
}

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

.seekbar:hover .circle {
    opacity: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .left {
        width: 28vw;
    }

    .right {
        width: 70vw;
    }
}

@media (max-width: 992px) {
    .left {
        position: fixed;
        left: -110%;
        transition: left 0.3s ease-in-out;
        z-index: 10;
        width: 300px;
        background-color: #000;
        height: 100%;
        top: 0;
        margin: 0;
        border-right: 1px solid #282828;
    }

    .library {
        height: 75vh;
    }

    .right {
        width: 100vw;
        margin: 0;
        border-radius: 0;
    }

    .hamburger {
        display: block;
    }

    .close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
    }

    .card .play {
        opacity: 1;
        top: 55%;
    }

    .card:hover .play {
        opacity: 1;
        top: 55%;
    }

    .aboutsong {
        flex-direction: column;
        gap: 7px;
        height: auto;
        margin-bottom: 5px;
    }

    .songinfo {
        padding-top: 5px;
    }

    .songinfo {
        width: 100%;
        text-align: center;
    }

    .timevol {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .playbar {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .card {
        width: clamp(150px, 45%, 200px);
        height: auto;
    }

    .card .play {
        opacity: 1;
        top: 60%;
    }

    .card:hover .play {
        opacity: 1;
        top: 60%;
    }

    .songinfo {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
        height: auto;
    }

    .card .play {
        opacity: 1;
        top: 70%;
    }

    .card:hover .play {
        opacity: 1;
        top: 70%;
    }

    .card .card-img {
        filter: brightness(0.8);
    }

    .timevol {
        flex-direction: column;
        gap: 7px;
    }
}