:root {
    --ac: 255, 255, 255;
    --a: rgba(var(--ac), 0.6);
    --a2: rgb(var(--ac));
    --g: rgba(255, 255, 255, 0.04);
    --gb: rgba(255, 255, 255, 0.08);
    --t: #ffffff;
    --m: rgba(255, 255, 255, 0.45);
    --r: 22px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    user-select: none;
    -webkit-user-select: none;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    background: #000;
    color: var(--t);
}

.back-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s, opacity 0.5s;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(6px);
}

.back-btn:hover {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}

#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgb(var(--ac));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    left: -50px;
    top: -50px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(var(--ac), 0.5);
}

body.click #cursor {
    transform: translate(-50%, -50%) scale(0.65);
}

#intro {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.75s ease;
}

#intro.fade {
    opacity: 0;
    pointer-events: none;
}

#intro-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    animation: intro-pulse 2.4s ease-in-out infinite;
    font-family: 'Space Grotesk', sans-serif;
}

@keyframes intro-pulse {

    0%,
    100% {
        opacity: 0.25;
    }

    50% {
        opacity: 1;
    }
}

#snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

#bgvid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.22) saturate(0.65);
    transition: filter 1.2s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 95% 80% at 50% 50%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.82) 100%);
}

main {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: none;
}

main::-webkit-scrollbar {
    display: none;
}

.card {
    width: 100%;
    max-width: 400px;
    background: var(--g);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid var(--gb);
    border-radius: var(--r);
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: box-shadow 0.4s;
    will-change: transform;
}

.card:hover {
    box-shadow: 0 0 60px rgba(var(--ac), 0.04), 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card.card-glow {
    border-color: rgba(var(--ac), 0.15);
    box-shadow: 0 0 30px rgba(var(--ac), 0.06), 0 0 80px rgba(var(--ac), 0.03);
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both, card-pulse 4s 1s ease-in-out infinite;
}

@keyframes card-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(var(--ac), 0.06), 0 0 80px rgba(var(--ac), 0.03); }
    50% { box-shadow: 0 0 40px rgba(var(--ac), 0.12), 0 0 100px rgba(var(--ac), 0.06); }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.025) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::after {
    opacity: 1;
}

.card-head {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pfp-wrap {
    position: relative;
    width: 92px;
    height: 92px;
}

.pfp-aura {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ac), 0.12) 0%, transparent 68%);
    animation: breathe 3.2s ease-in-out infinite;
}

.pfp-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(var(--ac),1.0)  0deg,
        rgba(var(--ac),0.85) 40deg,
        rgba(var(--ac),0.45) 100deg,
        rgba(var(--ac),0.15) 160deg,
        rgba(var(--ac),0.08) 200deg,
        rgba(var(--ac),0.15) 240deg,
        rgba(var(--ac),0.45) 290deg,
        rgba(var(--ac),0.85) 330deg,
        rgba(var(--ac),1.0)  360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 47px, black 48px);
    mask: radial-gradient(circle, transparent 47px, black 48px);
    animation: spin 3.2s linear infinite;
    z-index: 1;
}

.pfp-ring-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(var(--ac),0.9)  0deg,
        rgba(var(--ac),0.6)  40deg,
        rgba(var(--ac),0.2)  100deg,
        rgba(var(--ac),0.05) 160deg,
        rgba(var(--ac),0.05) 200deg,
        rgba(var(--ac),0.2)  240deg,
        rgba(var(--ac),0.6)  290deg,
        rgba(var(--ac),0.9)  330deg,
        rgba(var(--ac),0.9)  360deg
    );
    -webkit-mask: radial-gradient(circle, transparent 45px, black 46px);
    mask: radial-gradient(circle, transparent 45px, black 46px);
    animation: spin 3.2s linear infinite;
    filter: blur(5px);
    z-index: 0;
}

.pfp {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}


.meta {
    display: grid;
    grid-template-columns: 14px auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    padding-top: 6px;
}

.meta-icon {
    font-size: 11px;
    color: var(--m);
    text-align: center;
    justify-self: center;
}

.meta-val {
    font-size: 12px;
    font-weight: 500;
    color: var(--m);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px 9px;
    white-space: nowrap;
}

#views {
    min-width: 54px;
    display: inline-block;
    letter-spacing: 1px;
}

.ench-char {
    display: inline-block;
    transition: opacity 0.12s ease, text-shadow 0.12s ease;
}

.ench-char.ench-flash {
    opacity: 1 !important;
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.4);
}

.name-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    animation: rise 0.85s 0.07s cubic-bezier(0.16, 1, 0.3, 1) both;
    margin-top: -4px;
}

.name-row h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.25;
    padding-bottom: 2px;
    background: linear-gradient(135deg, #fff 60%, rgba(255, 255, 255, 0.65));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.name-row h1.name-glow {
    filter: drop-shadow(0 0 8px rgba(var(--ac), 0.35));
}

.name-row h1.name-rainbow {
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: name-rainbow-shift 4s linear infinite;
}

@keyframes name-rainbow-shift {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}


.tw-cur {
    -webkit-text-fill-color: rgba(var(--ac), 0.7);
    color: rgba(var(--ac), 0.7);
    font-weight: 200;
    animation: cur-blink 0.65s step-end infinite;
}

@keyframes cur-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.badges {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 4px 7px;
}

.badge {
    position: relative;
    width: 18px;
    height: 18px;
}

.badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    transition: filter 0.22s;
}

.badge:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.75));
}

.badge::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid var(--gb);
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 11px;
    color: var(--t);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.badge:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bio {
    width: 100%;
    font-size: 13.5px;
    line-height: 1.7;
    animation: rise 0.85s 0.13s cubic-bezier(0.16, 1, 0.3, 1) both,
               bio-shimmer 4s 1s linear infinite;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.38) 30%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.38) 70%,
        rgba(255, 255, 255, 0.38) 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes bio-shimmer {
    0%   { background-position: 150% center; }
    100% { background-position: -150% center; }
}

.sep {
    width: 100%;
    height: 1px;
    background: var(--gb);
}

.links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    animation: rise 0.85s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lnk {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--g);
    border: 1px solid var(--gb);
    color: var(--m);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lnk:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--h, var(--t));
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.lnk::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid var(--gb);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--t);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.lnk:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.player {
    width: 100%;
    max-width: 400px;
    background: var(--g);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid var(--gb);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: rise 0.85s 0.37s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    overflow: hidden;
}

.player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.art-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.art-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: border-radius 0.45s ease;
}

.art-wrap.spin img {
    border-radius: 50%;
    animation: spin 7s linear infinite;
}

.art-wrap.spin.paused img {
    animation-play-state: paused;
}

.player-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.track-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--t);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-sub {
    font-size: 11px;
    color: var(--m);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prog-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.t {
    font-size: 10px;
    color: var(--m);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 26px;
}

.t:last-child {
    text-align: right;
}

.prog {
    flex: 1;
    height: 20px;
    background: transparent;
    border-radius: 3px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
}

.prog::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    pointer-events: none;
}

.prog-fill {
    position: absolute;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 0%;
    left: 0;
    background: linear-gradient(90deg, var(--a), var(--a2));
    border-radius: 3px;
    pointer-events: none;
    transition: width 0.1s linear;
}

.prog-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 13px;
    height: 13px;
    background: #fff;
    border-radius: 50%;
    left: 0%;
    opacity: 0;
    transition: opacity 0.15s, left 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.prog.drag .prog-fill,
.prog.drag .prog-dot {
    transition: none;
}

.prog:hover .prog-dot,
.prog.drag .prog-dot {
    opacity: 1;
}

.ctrl-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.seek-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cb {
    background: none;
    border: none;
    color: var(--m);
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    transition: color 0.15s, transform 0.15s;
}

.cb:hover {
    color: var(--t);
    transform: scale(1.12);
}

.cb-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
}

.cb-play:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

.seek-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: inherit;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

#b-prev,
#b-next {
    gap: 3px;
    font-size: 11px;
}

#ico-play {
    margin-left: 1px;
}

.cb-vol {
    margin-left: auto;
    font-size: 12px;
    width: 22px;
    flex-shrink: 0;
    justify-content: center;
}

#ico-vol {
    width: 1em;
    text-align: center;
}

#vol {
    width: 55px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    outline: none;
}

#vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.45);
}

#vol::-moz-range-thumb {
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 50%;
    border: none;
}


@keyframes icon-swap {
    0%   { transform: scale(0.25); opacity: 0; }
    65%  { transform: scale(1.3);  opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}

.icon-pop {
    animation: icon-swap 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}


@media (max-height: 720px) {
    main {
        justify-content: flex-start;
        padding-top: 16px;
    }
}

@media (max-width: 440px) {

    .card,
    .player {
        border-radius: 16px;
    }
}

@media (pointer: coarse) {
    *,
    *::before,
    *::after {
        cursor: auto !important;
    }

    #cursor {
        display: none !important;
    }

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    main {
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
        padding: 20px 16px 32px;
    }

    .prog-dot {
        opacity: 1;
    }

    .lnk {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .cb {
        padding: 6px 8px;
        min-width: 32px;
        min-height: 32px;
    }

    .cb-play {
        width: 38px;
        height: 38px;
    }

    #vol {
        width: 64px;
    }
}