:root {
    --a: #ff1f4d;
    --h: #ff7a1a;
    --a-rgb: 255 31 77;
    --h-rgb: 255 122 26;
    --text: #fff3f5;
    --soft: rgba(255, 224, 231, 0.68);
    --mute: rgba(255, 205, 216, 0.42);
    --mono: 'Space Mono', ui-monospace, monospace;
    --sans: 'Manrope', system-ui, sans-serif;
    --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: clip;
    background: #050002;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--a) #0a0003;
}

body {
    min-height: 100dvh;
    display: flex;
    padding: 34px 16px;
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a, button { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

#gl, #fx {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
}
#gl { z-index: 0; }
#fx { z-index: 5; }

.no-gl #gl { display: none; }
.no-gl body {
    background:
        radial-gradient(60vmax 60vmax at 20% 10%, rgb(var(--a-rgb) / 0.28), transparent 60%),
        radial-gradient(50vmax 50vmax at 85% 90%, rgb(var(--h-rgb) / 0.18), transparent 60%),
        #050002;
    animation: fallback-bg 9s ease-in-out infinite alternate;
    background-size: 120% 120%;
}

.page {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    margin: auto;
}

.cursor {
    position: fixed;
    z-index: 9;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    border: 1.5px solid rgb(var(--a-rgb) / 0.85);
    box-shadow: 0 0 14px rgb(var(--a-rgb) / 0.6), inset 0 0 8px rgb(var(--a-rgb) / 0.35);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), background 0.25s;
    mix-blend-mode: screen;
}
.cursor.on { opacity: 1; }
.cursor.hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgb(var(--a-rgb) / 0.14); }
.cursor.down { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: rgb(var(--h-rgb) / 0.4); }

.card {
    --r: 32px;
    position: relative;
    width: min(100%, 470px);
    margin: auto;
    border-radius: var(--r);
    perspective: 1100px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    will-change: transform;
    animation: card-in 1.1s var(--ease) backwards;
}
.card.dragging { cursor: grabbing; }

.card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 18px;
    border-radius: var(--r);
    will-change: transform;
    background:
        radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
        linear-gradient(180deg, rgba(16, 0, 6, 0.34), rgba(16, 0, 6, 0.5));
}

.sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(360px circle at var(--sx, 30%) var(--sy, 0%), rgb(255 190 205 / 0.17), transparent 62%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.45s;
}
.card.hover .sheen, .card.dragging .sheen { opacity: 1; }

.no-gl .card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    backdrop-filter: blur(22px) saturate(1.6);
    box-shadow:
        0 0 calc(40px + var(--beat, 0) * 40px) rgb(var(--a-rgb) / 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.rise { animation: rise 0.8s var(--ease) backwards; animation-delay: calc(0.25s + var(--i, 0) * 0.07s); }

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    touch-action: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font: 700 10.5px/1 var(--mono);
    letter-spacing: 0.2em;
    color: var(--soft);
    text-transform: uppercase;
}
.brand i {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--a);
    box-shadow: 0 0 calc(7px + var(--beat, 0) * 12px) var(--a), 0 0 2px #fff;
    animation: blink 1.6s ease-in-out infinite;
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
    flex: none;
    padding: 4px 7px;
    border-radius: 7px;
    font: 700 9.5px/1 var(--mono);
    letter-spacing: 0.12em;
    color: rgb(255 214 222);
    border: 1px solid rgb(var(--a-rgb) / 0.5);
    background: rgb(var(--a-rgb) / 0.14);
    box-shadow: 0 0 12px rgb(var(--a-rgb) / 0.25);
}

.chip, .cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    font: 700 9.5px/1 var(--mono);
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}
.cta:hover {
    transform: translateY(-1px);
    border-color: rgb(var(--a-rgb) / 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 22px rgb(var(--a-rgb) / 0.5);
}
.cta svg { width: 11px; height: 11px; }

.profile { display: flex; align-items: center; gap: 18px; translate: calc(var(--tx, 0) * 5px) calc(var(--ty, 0) * 5px); }

.avatar { position: relative; flex: none; width: 88px; height: 88px; }
.avatar::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--a), var(--h), transparent 38%, var(--a) 68%, transparent 92%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: spin 4.5s linear infinite;
    filter: drop-shadow(0 0 7px rgb(var(--a-rgb) / 0.9));
}
.avatar::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgb(var(--a-rgb) / 0.55);
    animation: ring 2.6s ease-out infinite;
}
.avatar img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #14000a;
    box-shadow: 0 0 calc(18px + var(--beat, 0) * 26px) rgb(var(--a-rgb) / 0.55);
    -webkit-user-drag: none;
}
.avatar .dot {
    position: absolute;
    right: 3px;
    bottom: 3px;
    z-index: 2;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #35ff9a;
    border: 3px solid #14000a;
    box-shadow: 0 0 12px #35ff9a;
    animation: blink 2s ease-in-out infinite;
}

.meta { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.status {
    font: 700 9.5px/1 var(--mono);
    letter-spacing: 0.22em;
    color: rgb(var(--h-rgb));
    text-shadow: 0 0 10px rgb(var(--h-rgb) / 0.7);
}

.name {
    position: relative;
    font-size: clamp(27px, 7.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    overflow-wrap: anywhere;
    background: linear-gradient(100deg, #fff 0%, #ffd9df 30%, var(--a) 62%, var(--h) 82%, #fff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: name-sheen 7s linear infinite;
    filter: drop-shadow(0 0 calc(8px + var(--beat, 0) * 16px) rgb(var(--a-rgb) / 0.6));
}
.name::before, .name::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: none;
    mix-blend-mode: screen;
}
.name::before { -webkit-text-fill-color: rgb(255 30 70); animation: glitch-a 7s steps(1) infinite; }
.name::after { -webkit-text-fill-color: rgb(60 150 255); animation: glitch-b 7s steps(1) infinite; }

.bio { font-size: 13.5px; line-height: 1.45; color: var(--soft); overflow-wrap: anywhere; }

.player {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    align-items: center;
    padding: 14px 16px 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.3);
    translate: calc(var(--tx, 0) * 3px) calc(var(--ty, 0) * 3px);
    transition: border-color 0.4s, box-shadow 0.4s;
}
.player.is-playing {
    border-color: rgb(var(--a-rgb) / 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 28px rgb(var(--a-rgb) / 0.3);
}

.play {
    position: relative;
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgb(var(--a-rgb) / 0.8);
    background: radial-gradient(circle at 30% 25%, rgb(255 140 160 / 0.55), rgb(var(--a-rgb) / 0.28) 55%, rgb(40 0 12 / 0.5));
    box-shadow: 0 0 calc(14px + var(--beat, 0) * 22px) rgb(var(--a-rgb) / 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.3s var(--ease);
}
.play:hover { transform: scale(1.08); }
.play:active { transform: scale(0.94); }
.play svg { width: 20px; height: 20px; fill: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)); }
.play .i-pause { display: none; }
.is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: block; }

.player-label { font: 700 9px/1 var(--mono); letter-spacing: 0.22em; color: var(--mute); }
.player-title {
    margin-top: 6px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 700;
    -webkit-mask: linear-gradient(90deg, #000 88%, transparent);
    mask: linear-gradient(90deg, #000 88%, transparent);
}
.player-title span { display: inline-block; }
.player-title.marquee span { animation: marq 9s ease-in-out infinite alternate; }

.viz { grid-column: 2; display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.viz i {
    flex: 1;
    height: 100%;
    border-radius: 3px;
    transform-origin: bottom;
    transform: scaleY(0.1);
    background: linear-gradient(180deg, var(--h), var(--a) 60%, rgb(var(--a-rgb) / 0.3));
    box-shadow: 0 0 8px rgb(var(--a-rgb) / 0.55);
}

.seek-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.seek { position: relative; flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.seek-fill {
    position: relative;
    width: 0;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--a), var(--h));
    box-shadow: 0 0 10px rgb(var(--a-rgb) / 0.8);
}
.seek-fill::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 18px var(--a);
    transform: scale(0);
    transition: transform 0.25s var(--ease);
}
.seek:hover .seek-fill::after, .seek.drag .seek-fill::after { transform: scale(1); }
.time { font: 700 9.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--mute); font-variant-numeric: tabular-nums; }

.links { display: flex; flex-direction: column; gap: 9px; translate: calc(var(--tx, 0) * 1.5px) calc(var(--ty, 0) * 1.5px); }
.link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s;
    animation: rise 0.8s var(--ease) backwards;
    animation-delay: calc(0.4s + var(--i, 0) * 0.06s);
}
.link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--a-rgb) / 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.link::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 50%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-18deg);
    transition: left 0.75s var(--ease);
}
.link:hover, .link:focus-visible {
    outline: none;
    transform: translateY(-2px) scale(1.012);
    border-color: rgb(var(--a-rgb) / 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgb(var(--a-rgb) / 0.18), 0 10px 30px rgb(var(--a-rgb) / 0.3);
}
.link:hover::before, .link:focus-visible::before { opacity: 1; }
.link:hover::after, .link:focus-visible::after { left: 130%; }
.link:active { transform: scale(0.985); }

.link-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.link-tag { font: 700 9px/1 var(--mono); letter-spacing: 0.22em; color: rgb(var(--h-rgb)); text-shadow: 0 0 8px rgb(var(--h-rgb) / 0.55); }
.link-title { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; transition: text-shadow 0.25s; }
.link:hover .link-title { text-shadow: -1.3px 0 rgb(255 30 70 / 0.8), 1.3px 0 rgb(70 150 255 / 0.6); }

.link-arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.link-arrow svg { width: 13px; height: 13px; }
.link:hover .link-arrow { transform: rotate(45deg); background: rgb(var(--a-rgb) / 0.5); border-color: rgb(var(--a-rgb) / 0.9); }

.rip {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px;
    border-radius: 50%;
    pointer-events: none;
    background: rgb(var(--a-rgb) / 0.6);
    animation: rip 0.75s ease-out forwards;
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 4px;
    font: 700 9.5px/1 var(--mono);
    letter-spacing: 0.14em;
    color: var(--mute);
}
.counter { display: inline-flex; align-items: center; gap: 7px; }
.counter b { font-weight: 700; color: var(--text); text-shadow: 0 0 10px rgb(var(--a-rgb) / 0.8); font-variant-numeric: tabular-nums; }
.counter i { font-style: normal; color: var(--a); animation: blink 1.4s ease-in-out infinite; }

.error { max-width: 420px; margin: auto; padding: 28px; text-align: center; font: 700 13px/1.6 var(--mono); color: var(--soft); }

a:focus-visible, button:focus-visible { outline: 2px solid rgb(var(--a-rgb) / 0.9); outline-offset: 2px; }

@keyframes card-in { from { opacity: 0; scale: 0.93; filter: blur(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(0.96); opacity: 0.9; } 100% { transform: scale(1.38); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes rip { to { transform: scale(26); opacity: 0; } }
@keyframes name-sheen { to { background-position: -220% 0; } }
@keyframes marq { to { transform: translateX(var(--shift, 0)); } }
@keyframes fallback-bg { to { background-position: 40% 60%; } }
@keyframes glitch-a {
    0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
    92% { opacity: 0.9; transform: translate(-3px, 0); clip-path: inset(8% 0 58% 0); }
    94% { opacity: 0.9; transform: translate(3px, 0); clip-path: inset(55% 0 12% 0); }
    96% { opacity: 0.7; transform: translate(-2px, 1px); clip-path: inset(30% 0 35% 0); }
}
@keyframes glitch-b {
    0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
    93% { opacity: 0.85; transform: translate(3px, 0); clip-path: inset(40% 0 30% 0); }
    95% { opacity: 0.85; transform: translate(-3px, 0); clip-path: inset(10% 0 62% 0); }
    97% { opacity: 0.6; transform: translate(2px, -1px); clip-path: inset(64% 0 6% 0); }
}

@media (max-width: 440px) {
    body { padding: 20px 12px; }
    .card { --r: 28px; }
    .card-body { padding: 16px 14px 14px; gap: 14px; }
    .profile { gap: 14px; }
    .avatar { width: 74px; height: 74px; }
    .cta { padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
