@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --trans-scale: scale(1.05);
    --font-style: 'Plus Jakarta Sans', sans-serif;
    --accent-color: #00E5FF;
    --accent-hover: #38BDF8;
    --accent-gradient: linear-gradient(135deg, #00E5FF 0%, #3B82F6 100%);
    --accent-glow: 0 4px 20px rgba(0, 229, 255, 0.35);
    --bg-dark: #0B0F17;
    --panel-bg: #111827;
    --card-bg: #1F2937;
    --card-hover: #263346;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --svg-fill-default: #9CA3AF;
    --svg-hover-fill: #00E5FF;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--font-style);
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

.navbar {
    position: relative;
    min-height: 70px;
    padding: 10px 24px;
    background-color: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: space-between;
    z-index: 100;
}

.brand-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.homeSearchFlex {
    gap: 12px;
    align-items: center;
}

.home {
    background: var(--card-bg);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.nav-icon {
    width: 20px;
    height: 20px;
    filter: brightness(1);
    transition: all 0.2s ease;
}

.nav-icon.small {
    width: 16px;
    height: 16px;
}

.searchBox {
    width: 32vw;
    max-width: 450px;
    background: var(--card-bg);
    height: 44px;
    align-items: center;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 16px;
    gap: 10px;
    transition: all 0.25s ease;
}

.searchBox:focus-within {
    border-color: var(--accent-color);
    box-shadow: var(--accent-glow);
    background: var(--card-hover);
}

.searchBox input {
    background: transparent;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.searchBox input:focus {
    outline: none;
}

.searchBox input::placeholder {
    color: var(--text-muted);
}

.buttons1 {
    gap: 16px;
}

.btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 20px;
}

.buttons2 {
    gap: 14px;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.12);
}

.installBtn {
    gap: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.installBtn .install {
    padding: 0;
    font-size: 13px;
    color: var(--text-main);
}

.loginBtn button {
    color: #090D16;
    background: var(--accent-gradient);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 24px;
    border: none;
    box-shadow: var(--accent-glow);
    transition: all 0.2s ease;
}

/* MAIN CONTAINER & LAYOUT */
.container {
    position: relative;
    gap: 12px;
    padding: 12px;
    height: calc(100vh - 170px);
}

.left {
    width: 25vw;
    min-width: 280px;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    overflow: hidden;
}

.library {
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lib-title h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.lib-icon {
    font-size: 18px;
}

.plus {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.songList {
    flex: 1;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 4px;
}

.songList ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.songList ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.songList ul li.playing {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent-color);
}

.songList ul li.playing div:last-child {
    color: var(--accent-color);
    font-weight: 700;
}

.songList .playNow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.songList .playNow img {
    width: 32px;
    height: 32px;
    padding: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
}

.songList .songImg img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.songList ul li div:last-child {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.LibFooter {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.language {
    width: fit-content;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 6px 14px;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* RIGHT MAIN CONTENT */
.right {
    flex: 1;
    height: 100%;
    background: var(--panel-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    padding: 20px 24px;
}

.headBar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.headBar h2 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headBar p {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.2s ease;
}

.cardContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: stretch;
}

.card {
    width: 190px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 14px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.songImage {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.songImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.playButton {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.playButton img {
    background: var(--accent-gradient);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 11px;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.5);
}

.card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PLAYBAR STYLING */
.playBar {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 80px;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.15);
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.songInfo {
    width: 25vw;
    max-width: 280px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buttonsBarFlex {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 550px;
}

.playButtons {
    gap: 20px;
    align-items: center;
}

.button {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.button img {
    width: 20px;
    height: 20px;
    filter: brightness(1);
}

.play.button img {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    filter: none;
}

.belowBar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.songCurrentTime,
.songTotalTime {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 40px;
}

.seekBar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: height 0.2s ease;
}

.circle {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: 0%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.circle.dragging {
    opacity: 1;
}

.volume {
    width: 20vw;
    max-width: 180px;
    gap: 12px;
}

.vol-icon {
    width: 20px;
    height: 20px;
    filter: brightness(1);
}

.volume-range {
    width: 100%;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.hamBurger {
    display: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

@media (hover: hover) {
    .brand-logo-img:hover {
        transform: scale(1.03);
    }

    .home:hover {
        background: var(--card-hover);
        border-color: var(--accent-color);
        box-shadow: var(--accent-glow);
    }

    .home:hover .nav-icon {
        filter: brightness(1.2) drop-shadow(0 0 6px var(--accent-color));
    }

    .btn:hover {
        color: var(--text-main);
    }

    .installBtn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .loginBtn button:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .plus:hover {
        background: var(--accent-color);
        box-shadow: var(--accent-glow);
    }

    .plus:hover .nav-icon {
        filter: brightness(0);
    }

    .songList ul li:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(0, 229, 255, 0.2);
    }

    .language:hover {
        border-color: var(--accent-color);
        color: var(--accent-color);
    }

    .headBar p:hover {
        text-decoration: underline;
    }

    .card:hover {
        background: var(--card-hover);
        transform: translateY(-4px);
        border-color: rgba(0, 229, 255, 0.3);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.15);
    }

    .card:hover .songImage img {
        transform: scale(1.05);
    }

    .card:hover .playButton {
        opacity: 1;
        transform: translateY(0);
    }

    .button:hover {
        transform: scale(1.15);
    }

    .seekBar:hover {
        height: 8px;
        background: rgba(255, 255, 255, 0.2);
    }

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

@media (hover: none) {
    .brand-logo-img:active {
        transform: scale(1.03);
    }

    .home:active {
        background: var(--card-hover);
        border-color: var(--accent-color);
        box-shadow: var(--accent-glow);
    }

    .home:active .nav-icon {
        filter: brightness(1.2) drop-shadow(0 0 6px var(--accent-color));
    }

    .btn:active {
        color: var(--text-main);
    }

    .installBtn:active {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .loginBtn button:active {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .plus:active {
        background: var(--accent-color);
        box-shadow: var(--accent-glow);
    }

    .plus:active .nav-icon {
        filter: brightness(0);
    }

    .songList ul li:active {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(0, 229, 255, 0.2);
    }

    .language:active {
        border-color: var(--accent-color);
        color: var(--accent-color);
    }

    .headBar p:active {
        text-decoration: underline;
    }

    .card:active {
        background: var(--card-hover);
        transform: translateY(-4px);
        border-color: rgba(0, 229, 255, 0.3);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.15);
    }

    .card:active .songImage img {
        transform: scale(1.05);
    }

    .card:active .playButton {
        opacity: 1;
        transform: translateY(0);
    }

    .button:active {
        transform: scale(1.15);
    }

    .seekBar:active {
        height: 8px;
        background: rgba(255, 255, 255, 0.2);
    }

    .seekBar:active .circle {
        opacity: 1;
    }
}

@media (max-width: 1120px) {

    .Premium,
    .Support,
    .Download,
    .divider,
    .installBtn {
        display: none;
    }
}

/* RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 992px) {
    .container {
        height: calc(100vh - 150px);
    }

    .left {
        position: fixed;
        left: -120%;
        top: 70px;
        bottom: 92px;
        z-index: 999;
        width: 300px;
        max-width: 85vw;
        height: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        transition: left 0.35s ease;
    }

    .hamBurger {
        display: block;
    }

    .navbar {
        padding: 10px 16px;
        gap: 10px;
    }

    .homeSearchFlex {
        flex: 1;
        min-width: 0;
    }

    .searchBox {
        width: 100%;
        max-width: 220px;
    }

    .Premium,
    .Support,
    .Download,
    .divider,
    .installBtn {
        display: none;
    }


}

@media (max-width: 768px) {

    .installSign,
    .installSign .nav-icon,
    .installBtn .install {
        display: none;
    }

    .installBtn {
        visibility: hidden;
        padding: 0;
        position: absolute;
    }

    .homeSearchFlex {
        justify-content: center;
    }

    .searchBox {
        max-width: 150px;
    }
}

@media screen and (max-width: 600px) {
    .navbar {
        padding: 10px 14px;
    }

    .searchBox input {
        display: none;
    }

    .searchBox {
        width: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .searchBox .browse {
        display: none;
    }

    .signupBtn {
        display: none;
    }

    .container {
        height: calc(100vh - 170px);
    }

    .left {
        bottom: 112px;
    }

    .card {
        width: 42vw;
        max-width: 190px;
    }

    .playBar {
        height: 100px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 8px 16px;
    }

    .songInfo {
        width: 100%;
        text-align: center;
        font-size: 13px;
    }

    .buttonsBarFlex {
        width: 100%;
        max-width: 100%;
    }

    .volume {
        display: none;
        width: 50vw;
    }
}

@media (max-width: 420px) {
    .home {
        height: 30px;
        width: 30px;
    }

    .home>img {
        height: 15px;
        width: 15px;
    }

    .searchBox {
        width: 30px;
        height: 30px;
    }

    .nav-icon {
        width: 14px;
        height: 14px;
    }

    .brand-logo-img {
        height: 30px;
    }

    .loginBtn .login {
        font-size: 12px;
        padding: 7px 13px;
    }
}