/*
    Copyright (c) BlazeInferno64 --> https://github.com/blazeInferno64
*/
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


@font-face {
    font-family: "CartographItalic";
    /* any name you choose */
    src: url("./cartograph-regular-italic.woff2") format("woff2");
    font-weight: normal;
    /* adjust if you have multiple weights */
    font-style: italic;
    /* this matches your font style */
}

:root {
    --ff-mono: "Geist Mono", monospace;
    --ff: "Montserrat", sans-serif;
    --ff2: "CartographItalic", "Monsterrat", sans-serif;
    --gradient: repeating-linear-gradient(90deg, rgb(5, 215, 138), 74%, rgb(0, 213, 255));
    --second-gradient: linear-gradient(90deg, #ff1b6b, 74%, #45caff);
    --third-gradient: linear-gradient(135deg, #6a5acd, #00bfff);
    /* Purple bluish gradient */
    --fourth-gradient: linear-gradient(135deg, #00ff7f, #00bfff);
    /* Green bluish gradient */
}

*,
*::after,
*::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#dt {
    display: none;
}

button,
input,
textarea {
    outline: none;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    font-family: var(--ff);
    background: var(--gradient);
    background-size: 400%;
    animation: animate 10s ease-in-out infinite;
}

.file,
audio {
    position: absolute;
    display: none;
    visibility: hidden;
    z-index: -1;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    display: inline-block;
    vertical-align: middle;
}

.app {
    background: rgba(30, 30, 30);
    user-select: none;
    color: #fff;
    width: 450px;
    height: fit-content;
    border-radius: .3rem;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: all .1s ease-in-out;
    /*animation: pop 1s ease-in-out;*/
}


.app .bg {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: fit-content;
    width: fit-content;
    /*animation: pop 1.5s ease-in-out;*/
    overflow: hidden;
}

.app .head {
    position: relative;
    background-image: url("../img/bg2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    width: 100%;
    padding: .5rem 1rem;
    text-align: center;
    gap: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;
}

.app .head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* dark tint */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    /* Safari */
    z-index: 0;
}

.app .head * {
    position: relative;
    z-index: 1;
}


.app .head-div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app .head .head-div p {
    position: relative;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--ff2);
    background: var(--gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.app .head .head-div p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    font-weight: 600;
    background: var(--gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.app .head .head-div .header-img {
    width: 40px;
    height: 40px;
    -webkit-user-select: none;
    user-select: none;
}

.active {
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.active-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 10px;
    height: 10px;
    background: #a6a3a9;
    border-radius: 50%;
}

.app .main {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.app .main .banner-bg {
    background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .2)), url("../img/bg2.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.app .main .banner {
    background-image: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .2)), url("../img/bg2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: end;
    flex-direction: row;
    justify-content: space-around;
    gap: 3px;
    transition: all .5s ease-in-out;
}

.app .main .info {
    margin-top: .3rem;
    width: 100%;
    height: 80px;
    padding: .2rem .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app .main .info .effect {
    background: transparent;
    height: 20px;
    width: fit-content;
}

.app .main .info .effect {
    width: 15px;
    height: 100%;
    background: rgb(28, 203, 104);
    border-radius: .3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.effect-fluid {
    border-radius: none;
    height: 50%;
    width: 100%;
    background: hsl(146, 76%, 35%);
    background-size: 200% 100%;
    animation: flow 3s linear infinite;
    transform-origin: center;
}

@keyframes flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 100%;
    }
}

.app .main .info .audio-details {
    width: 50px;
    margin-left: .5rem;
    flex: 1 1 auto;

    /* 1. THE MAGIC FIX: Allows the flex child to shrink */
    min-width: 0;

    /* 2. Contains any rogue text */
    overflow: hidden;
}

.trck-mq {
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.app .main .info .audio-details .track-name {
    color: #dedede;
    font-size: 1.3rem;
    font-weight: 600;

    white-space: nowrap;

    will-change: transform;
    /* Performance boost */

    
    animation: marquee-scroll 8s linear infinite;
    animation-duration: 13s;
}

.app .main .info .audio-details .artist {
    color: #4b494d;
    font-weight: 600;
}

@keyframes marquee-scroll {
    0% {
        /* Start fully to the right of the container (set dynamically by JS) */
        transform: translateX(var(--mq-start, 100%));
    }

    100% {
        /* Move fully to the left until the text itself is off-screen (set dynamically by JS) */
        transform: translateX(var(--mq-end, -100%));
    }
}

.app .main .audio-progress {
    position: relative;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: .3rem 1rem;
    overflow: hidden;
}

.app .main .audio-progress .progress-bar {
    background: #2a2d2e;
    width: 100%;
    height: 8px;
    position: relative;
    border-radius: .5rem;
    display: flex;
    align-items: start;
    cursor: pointer;
    position: relative;
}

.app .main .audio-progress .audio-buffered {
    position: absolute;
    background: hsl(195, 5%, 37%);
    width: 0;
    height: 8px;
    z-index: 1;
    display: flex;
    border-radius: .5rem;
    align-items: center;
    flex-direction: column;
}

.app .main .audio-progress .progress-bar .fluid {
    background: rgb(0, 255, 110);
    height: 100%;
    z-index: 3;
    width: 0;
    transition: background .1s ease-in-out;
    border-radius: .5rem;
    position: relative;
}

.app .main .audio-progress .progress-bar .fluid:hover {
    background: hsl(146, 100%, 35%);
}

.app .main .audio-progress .progress-bar .fluid::before {
    content: '';
    position: absolute;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    top: 50%;
    right: -5px;
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
    background: inherit;
    transition: opacity .2s ease-in-out, height .2s ease-in-out, width .2s ease-in-out;
}

.app .main .audio-progress .progress-bar .fluid:hover::before {
    width: 18px;
    height: 18px;
}

.app .main .audio-progress .progress-bar .fluid:active::before {
    width: 18px;
    height: 18px;
}

.app .main .audio-progress .progress-bar:active .fluid::before {
    width: 18px;
    height: 18px;
}

.app .main .audio-progress .timers {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .3rem;
    font-weight: 600;
}

.app .main .controls {
    width: 100%;
    padding: 0 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app .main .controls button {
    border: none;
    background: transparent;
    cursor: pointer;
}

.play,
.pause {
    font-size: 2.3rem;
    color: #fff;
}

/*
.forward {
    font-size: 1.5rem;
    color: #dedede;
}*/


.playpause-bg {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dedede;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    padding: 0;
}

.playpause-bg:hover {
    background: hsl(0, 0%, 57%);
}

.playpause {
    display: flex;
    align-items: center;
    justify-content: center;
}

.playpause label {
    width: 0;
    height: 22px;
    border-color: transparent transparent transparent rgba(30, 30, 30);
    border-style: double;
    border-width: 0px 0 0px 18px;
    transition: 120ms all ease-in-out;
    cursor: pointer;
}

.playpause input[type="checkbox"] {
    position: absolute;
    left: -9999px;
}

.playpause input[type="checkbox"]:checked+label {
    border-style: solid;
    border-width: 11px 0 11px 18px;
}

/*
.forward:hover {
    color: hsl(0, 0%, 57%);
}*/

.playpause-bg:active,
.forward:active,
.backward:active {
    scale: .97;
}

.backward,
.forward {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
}

.tri-bar1,
.tri-bar2 {
    width: 4px;
    height: 20px;
    background-color: #dedede;
    border-radius: 2px;
}

.tri-bar2 {
    margin-left: -1px;
}

.triangle1 {
    margin-left: -1px;
    width: 15px;
    height: 20px;
    background-color: #dedede;

    clip-path: polygon(100% 0%, 100% 100%, 0% 50%);
    border-radius: 3px;
}

.triangle2 {
    width: 15px;
    height: 20px;
    background-color: #dedede;

    clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
    border-radius: 3px;
}

.backward:hover .tri-bar1,
.backward:hover .triangle1,
.forward:hover .tri-bar2,
.forward:hover .triangle2 {
    background-color: hsl(0, 0%, 57%);
}

.app .main .options {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .3rem .5rem;
    margin-top: 1rem;
    background: transparent;
}

.app .main .options li {
    cursor: pointer;
    font-size: 1.13rem;
    font-weight: 600;
    position: relative;
    border-radius: .4rem;
    transition: all .25s ease;
}

.app .main .options li::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at center, rgba(0, 255, 127, .5), transparent 60%);
    opacity: 0;
    filter: blur(8px);
    transition: opacity .3s ease;
    z-index: 0;
}

.app .main .options li * {
    position: relative;
    z-index: 1;
}

.app .main .options li:hover {
    color: #00ff7f;
    background: rgba(0, 255, 127, 0.08);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 255, 127, 0.25);
}

.app .main .options li:hover::after {
    opacity: 1;
}

.app .main .options li:active {
    transform: translateY(0px) scale(.97);
}

.app .vol-bg {
    z-index: 4;
    width: 100%;
    position: absolute;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all .5s ease-in-out;
}

.app .vol-bg .vol-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 250px;
    background: hsl(195, 5%, 15%);
    border-radius: .3rem;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .6);
    overflow: hidden;
    transition: all .5s ease-in-out;
}

.app .vol-bg .vol-card .vol-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .3rem .5rem;
}

.app .vol-bg .vol-card .vol-head p {
    position: relative;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--ff2);
    background: var(--second-gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.app .vol-bg .vol-card .vol-head p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    background: var(--second-gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.app .vol-bg .vol-card .vol-head .vol-close {
    width: 40px;
    transition: all .1s ease-in-out;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: .3rem .5rem;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}

.app .vol-bg .vol-card .vol-head .vol-close:hover {
    background: #4b494d;
}

.app .vol-bg .vol-card .vol {
    width: 100%;
    background: #2a2d2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    font-size: 1.3rem;
    margin-top: .5rem;
}

.app .vol-bg .vol-card .vol #file {
    border: none;
    cursor: pointer;
}

.done-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2d2e;
    padding: .3rem 1rem;
}

.app .vol-bg .vol-card .done {
    font-weight: 500;
    padding: .5rem 1rem;
    width: 100%;
    background: var(--gradient);
    outline: none;
    border: none;
    margin-bottom: .5rem;
    margin-top: 1rem;
    font-size: 1.3rem;
    border-radius: .3rem;
    cursor: pointer;
    transition: all .1s ease-in-out;
}

.app .vol-bg .vol-card .done:hover {
    scale: .97;
}

.app .vol-bg .vol-card .done:active {
    scale: .95;
}

.app .vol-bg .vol-card .vol-info {
    width: 100%;
    background: #2a2d2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app .vol-bg .vol-card .vol-info p {
    background: #111;
    padding: .5rem 1rem;
    border-radius: .2rem;
    position: relative;
    margin-top: .5rem;
    font-size: 1.13rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: 550;
}

.app .vol-bg .vol-card .vol-info p::after {
    z-index: 4;
    content: '';
    position: absolute;
    transition: all .3s ease-in-out;
    top: -19px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid #111;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.set-bg,
.wel-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(0, 0, 0, .6);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all .5s ease-in-out;
}

.set-outline {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.set-card {
    position: absolute;
    bottom: 0;
    background: #2a2d2e;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: all .5s ease-in-out;
}

.set-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .3rem .5rem;
}

.set-head .set-k {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: .3rem .5rem;
}

.set-head .set-k p {
    position: relative;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--ff2);
    background: var(--second-gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.gradient-icon {
    font-size: 2rem !important;
    font-family: 'Material Symbols Outlined';
    background: var(--second-gradient);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate 10s ease-in-out infinite;
    display: inline-block;

    font-variation-settings: 'opsz' 48;
    line-height: 1;
}

.set-head .set-k p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    background: var(--second-gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.set-head .set-close {
    width: 40px;
    transition: all .1s ease-in-out;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: .3rem .5rem;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}

.set-close:hover {
    background: #4b494d;
}

.set-main {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: .3rem .5rem;
    background: hsl(195, 5%, 15%);
}

.set-main ul {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    margin-bottom: .3rem;
}

.set-main li {
    border: 2px solid #4b494d;
    width: 100%;
    padding: .5rem 1rem;
    cursor: pointer;
    border-radius: .3rem;
    font-size: 1.13rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;

    position: relative;
    overflow: hidden;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.set-main li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #00ff7f, #00bfff);
    opacity: 0.12;
    transition: width 0.3s ease;
    z-index: 0;
}

.set-main ul li a {
    width: 100%;
    height: 100%;
}

.set-main li * {
    position: relative;
    z-index: 1;
}

.set-main li:hover {
    background: rgba(75, 73, 77, 0.6);
    color: #00ff7f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 255, 127, 0.15);
}


.set-main li:hover::before {
    width: 100%;
}

.set-main li:active {
    transform: scale(0.98);
}


.link-bg,
.stream-bg,
.lyrics-bg,
.playlist-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 4;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.fetch-card,
.wel-card,
.stream-card,
.lyrics-card,
.playlist-card {
    width: 300px;
    background: #2a2d2e;
    transition: all .5s ease-in-out;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: .3rem;
}

.fetch-head,
.wel-head,
.stream-head,
.lyrics-head,
.playlist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .3rem .5rem;
}

.fetch-head p {
    position: relative;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--ff2);
    background: var(--gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.fetch-head p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    font-weight: 600;
    background: var(--gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.wel-head p {
    position: relative;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--ff2);
    background: var(--gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.wel-head p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    font-weight: 600;
    background: var(--gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.stream-head p {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient);
    color: transparent;
    font-family: var(--ff2);
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.stream-head p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    font-weight: 600;
    background: var(--gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.playlist-head p {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient);
    font-family: var(--ff2);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.playlist-head p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    font-weight: 600;
    background: var(--gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.lyrics-head p {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient);
    font-family: var(--ff2);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: animate 10s ease-in-out infinite;
}

.lyrics-head p::after {
    position: absolute;
    content: attr(data-text);
    top: 0;
    left: 0;
    right: 0;
    font-weight: 600;
    background: var(--gradient);
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    /* Fallback for older WebKit */
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.25);
    animation: animate 10s ease-in-out infinite;
}

.fetch-head .close-fetch,
.wel-head .wel-close,
.stream-head .stream-close,
.lyrics-head .lyrics-close,
.playlist-head .playlist-close {
    width: 40px;
    transition: all .1s ease-in-out;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: .3rem .5rem;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}

.close-fetch:hover,
.wel-close:hover,
.stream-close:hover,
.lyrics-close:hover,
.playlist-close:hover {
    background: #4b494d;
}

.fetch-main,
.wel-main,
.stream-main,
.lyrics-main,
.playlist-main {
    width: 100%;
    padding: .3rem .5rem;
}

.fetch-info,
.stream-info,
.lyrics-info,
.playlist-info {
    width: 100%;
    font-size: .98rem;
    border: 2px dashed rgb(0, 255, 110);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .3rem .5rem;
    color: rgb(0, 255, 110);
    word-spacing: 3px;
    border-radius: .3rem;
    margin-bottom: .5rem;
    font-weight: 500;
}

.fetch-main .input {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 1rem;
}

.fetch-main .input label {
    width: 100%;
    font-size: 1.13rem;
    background: rgba(30, 30, 30);
    padding: .3rem .5rem;
    font-weight: 500;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
}

.fetch-main .input .fetch-url {
    width: 100%;
    padding: .3rem .5rem;
    font-size: 1.1rem;
    border: none;
    border-bottom-left-radius: .3rem;
    border-bottom-right-radius: .3rem;
    margin-bottom: .5rem;
}


#lyrics-window {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #111;
    flex-grow: 1;
    width: 100%;
    max-width: 800px;
    height: 300px;
    overflow-y: auto;
    padding: 200px 0;
    padding: 130px 0;
    scrollbar-width: none;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

#lyrics-window::-webkit-scrollbar {
    display: none;
}

.lyric-line {
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #444;
    transition: all 0.25s ease-out;
    text-align: center;
    transform: scale(0.9);
    filter: blur(1px);
}

.lyric-line:hover {
    color: hsl(0, 0%, 47%);
}

.lyric-line.active {
    font-size: 1.5rem;
    color: #fff;
    transform: scale(1.1);
    filter: blur(0);
}

.lyric-line.active:hover {
    color: hsl(0, 0%, 80%);
}

.playlist-main {
    padding: none;
}

.playlist {
    width: 100%;
    background: #292c2d;
    display: flex;
    align-items: start;
    flex-direction: column;
    border-radius: .3rem;
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #4b494d;
    padding: 1px;
}

.playlist ul {
    width: 100%;
    padding: .3rem .5rem;
    display: flex;
    align-items: start;
    gap: 5px;
    flex-direction: column;
}

.playlist ul li {
    padding: .5rem 1rem;
    width: 100%;
    background: transparent;
    border-radius: .3rem;
    border: 2px solid #4b494d;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.5;
    font-weight: 600;
}

.playlist ul li:hover {
    background: #4b494d;
    transform: translateY(5px) scale(1.02);
    margin-bottom: 3px;
}

.playlist ul li:active {
    background: hsl(270, 3%, 39%);
    margin-bottom: 8px;
}

.playlist ul li.current {
    background: #4b494d;
    color: #00ff7f;
    padding-left: 20px;
    border: 2px solid transparent;
}

.playlist ul li.current:hover {
    background: hsl(270, 3%, 39%);
}

.playlist ul li.current:active {
    background: hsl(270, 3%, 49%);
}

.playlist ul li.current::before {
    /*content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #00ff7f;
    height: 100%;
    border-top-left-radius: .2rem;
    border-bottom-left-radius: .2rem;
    width: 10px;*/
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #00ff7f;
    border-radius: 2px;
    box-shadow: 0 0 12px #00ff7f;
    animation: bounce-bar 0.6s ease-in-out infinite alternate;
}

.playlist ul .nothing {
    width: 100%;
    border: 2px dashed #4b494d;
    padding: .3rem .5rem;
    height: 200px;
    border-radius: .3rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-weight: 600;
    font-size: 1.13rem;
}

@keyframes bounce-bar {
    0% {
        height: 6px;
    }

    100% {
        height: 20px;
    }
}

.playlist::-webkit-scrollbar {
    width: 5px;
}

.playlist::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, transparent, #4b494d, transparent);
    border-radius: 10px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, transparent, hsl(270, 3%, 39%), transparent);
    border-radius: 10px;
}

.playlist::-webkit-scrollbar-thumb:active {
    background: linear-gradient(to bottom, transparent, hsl(270, 3%, 49%), transparent);
    border-radius: 10px;
}

.result,
.stream-result {
    width: 100%;
    padding: .3rem .5rem;
    text-align: center;
    background: rgba(30, 30, 30);
    margin-top: .5rem;
    margin-bottom: .5rem;
    white-space: nowrap;
    border-radius: .3rem;
    overflow: auto;
    font-weight: 500;
    font-size: 1.13rem;
}

.stream-abt {
    width: 100%;
    padding: .3rem .5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 3px dashed #4b4b4b;
    margin-bottom: .5rem;
    font-size: .95rem;
    border-radius: .3rem;
    color: #00ff7f;
}

.stream-genre {
    width: 100%;
    margin-top: .5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.stream-genre label {
    font-size: 1.13rem;
    width: 100%;
    background: rgba(30, 30, 30);
    padding: .3rem .5rem;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.stream-genre .genre {
    outline: none;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: .3rem .5rem;
    font-size: 1.1rem;
    border: none;
    border-bottom-left-radius: .3rem;
    border-bottom-right-radius: .3rem;
    margin-bottom: .5rem;
}

.stream-genre .genre option {
    background: #2a2d2e;
    color: #fff;
    border: none;
    outline: none;
}

.ck-opt {
    background: transparent;
    font-weight: 600;
    gap: 5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .3rem .5rem;
    border: 2px dashed #4b494d;
    border-radius: .3rem;
    cursor: pointer;
}

.nxt-trck {
    cursor: pointer;
    display: inline;
    margin-right: 3px;
    cursor: pointer;
    transform: scale(1.5);
    vertical-align: middle;
    accent-color: rgb(14, 191, 91);
}

.nxt-trck+label {
    display: inline;
    margin: 0;
    font-size: .9rem;
    color: rgb(14, 191, 91);
    cursor: pointer;
}

.result::-webkit-scrollbar,
.stream-result::-webkit-scrollbar {
    background: transparent;
}

.result::-webkit-scrollbar-thumb,
.stream-result::-webkit-scrollbar-thumb {
    background: #4b494d;
    border-radius: .5rem;
}

.result::-webkit-scrollbar-thumb:hover,
.stream-result::-webkit-scrollbar-thumb:hover {
    background: hsl(270, 3%, 39%);
}

.result::-webkit-scrollbar-thumb:active,
.stream-result::-webkit-scrollbar-thumb:active {
    background: hsl(270, 3%, 49%);
}

.btn-bg {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stream-btns {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    padding: .3rem .5rem;
    gap: 5px;
}

.btn-bg .fetch-btn,
.wel-card .sel,
.wel-card .wel-stream {
    margin-top: .5rem;
    width: 100%;
    border: none;
    padding: .3rem .5rem;
    font-size: 1.13rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: .3rem;
    cursor: pointer;
    background: var(--gradient);
}

.stream-btns .stream,
.stream-btns .next {
    width: 100%;
    font-weight: 600;
    font-size: 1.3rem;
    border: none;
    padding: .3rem .5rem;
    font-size: 1rem;
    border-radius: .3rem;
    cursor: pointer;
    background: var(--gradient);
}

.fetch-btn:active,
.sel:active,
.stream:active,
.next:active,
.wel-stream:active {
    scale: .98;
}

.btn-wel {
    width: 100%;
    padding: .3rem .5rem;
    margin-bottom: .3rem;
}

.btn-wel button {
    font-family: "Monsterat", sans-serif;
    font-weight: 550;
    display: flex;
    align-items: center;

}

.or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .3rem;
}

.or .bar {
    width: 80%;
    background: #4b494d;
    border-radius: .3rem;
    height: 2px;
}

.or p {
    border: 2px solid #4b4b4b;
    border-radius: .3rem;
    padding: 5px 10px;
}

.or-txt {
    width: 100%;
    margin-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .92rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: .5rem;
    color: rgb(0, 255, 110);
}

.or-txt:hover {
    text-decoration: underline;
}

.popup-bg {
    width: 100%;
    position: fixed;
    z-index: 100;
    /* Increased to stay above visualizer */
    bottom: 5%;
    left: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Prevents blocking clicks behind the popup */
}

.popup-bg .popup {
    width: 90%;
    max-width: 500px;
    min-height: 55px;
    height: auto;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.popup-msg {
    color: #efefef;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-right: 10px;

    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    font-family: var(--ff-mono);
}

.popup::-webkit-scrollbar {
    width: 6px;
    /* Slimmer is more modern */
}

.popup::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.popup::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.popup::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.popup {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.popup-msg a {
    color: #45caff;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.popup-msg a:hover {
    color: #1e90ff;
}

.popup-bg .popup p i {
    color: #45caff;
    margin: 0 5px;
}

.popup-bg .popup .popup-close {
    font-size: 1.5rem;
    height: 40px;
    width: 40px;
    flex-shrink: 0;
    display: flex;
    position: sticky;
    top: .3rem;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Added a slightly faster cubic-bezier for a snappier feel */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    /* Prevents layout shift on hover */
}

.popup-bg .popup .popup-close:hover {
    background: rgba(255, 69, 58, 0.15);
    /* Subtle red tint for "close" action */
    color: #ff453a;
    /* iOS-style vivid red */
    transform: scale(1.1);
    /* Modern rotation effect */
    box-shadow: 0 0 15px rgba(255, 69, 58, 0.3);
    /* Soft glow */
    border: 1px solid rgba(255, 69, 58, 0.2);
}

/* Optional: Add a "click" effect */
.popup-bg .popup .popup-close:active {
    transform: scale(1);
    background: rgba(255, 69, 58, 0.3);
}

.go-down {
    transform: translateY(100%);
}


.ok {
    color: rgb(67, 237, 140);
}

.normal {
    color: yellow;
}

.err {
    color: rgb(255, 0, 55);
}

.open {
    animation: open-app 1s ease-in-out;
}

.loader-bg {
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 8;
    user-select: none;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: rgba(30, 30, 30);
    color: #fff;
}

/*.loader-bg .loader {
    width: 120px;
    height: 120px;
    border: 10px solid #2a2d2e;
    border-radius: 50%;
    border-top: 10px solid rgb(14, 191, 91);
    transition: all .1s ease-in-out;
    animation: spin .6s infinite;
}

.loader-bg .loading-txt {
    font-size: 1.3rem;
    margin-top: .5rem;
    font-weight: 600;
}*/

.loading-txt {
    font-size: 1.3rem;
    margin-top: .5rem;
    font-weight: 600;
}

.loader {
    border: 2px solid;
    border-color: transparent rgb(5, 215, 138);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 2s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    border: 29px solid;
    border-color: transparent rgb(5, 215, 138);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.load-app {
    animation: open-app 1.5s ease-in-out;
}

.bottom {
    bottom: -100%;
}

.down {
    transform: translateY(-100%);
}

.up {
    transform: translateY(100%);
}

.hide {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.none {
    position: absolute;
}

.ani {
    animation: pop 1s ease-in-out;
}

.anti {
    animation: anti-pop 1s ease-in-out;
}

.success {
    background: #00ff7f;
}

.warn {
    background: yellow;
}

.error {
    background: rgb(255, 0, 72);
}

.afk {
    background: #a6a3a9;
}

/* Animation keyframes */
@keyframes animate {
    0% {
        background-position: 0 0;
    }

    25% {
        background-position: 100% 0;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0 100%;
    }

    100% {
        background-position: 0 0;
    }
}

@keyframes open-app {
    from {
        scale: 0;
        opacity: 0;
    }

    to {
        scale: 1;
        opacity: 1;
    }
}

@keyframes pop {
    from {
        scale: 0;
    }

    to {
        scale: 1;
    }
}

@keyframes anti-pop {
    from {
        scale: 1;
    }

    to {
        scale: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 250px) {
    .vol-card {
        width: 93%;
    }
}

@media (max-width: 300px) {

    .fetch-card,
    .wel-card,
    .stream-card,
    .lyrics-card {
        width: 93%;
    }
}

@media (max-width: 400px) {
    .app .head .head-div p {
        font-size: 1.13rem;
    }
}


@media (max-width: 450px) {
    .app {
        width: 95%;
    }

    .active {
        font-size: .66rem;
    }

    .app .head-div {
        gap: 5px;
    }

    .nxt-trck+label {
        font-size: .8rem;
    }

    .lyric-line {
        padding: 10px 15px;
        line-height: 1.2;
    }

    /*#lyrics-window {
        /* Reduce padding slightly on mobile so more lines are visible */
    /*  padding: 150px 0;
    }*/
}

@media (max-width: 500px) {
    .popup {
        width: 98%;
    }
}