:root {
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #bc13fe;
    --glow: 0 0 25px rgba(188, 19, 254, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

#bg-glow-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0a0a0a, #000);
}

.blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
    transition: background 1.5s ease;
    animation: move-blobs 25s infinite alternate ease-in-out;
}

.blob:nth-child(1) { top: -10%; left: -10%; }
.blob:nth-child(2) { bottom: -10%; right: -10%; animation-delay: -7s; }

@keyframes move-blobs {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 20%) scale(0.9); }
}

#starCanvas { position: fixed; inset: 0; z-index: -1; }

#cursor-dot, #cursor-circle {
    position: fixed; top: 0; left: 0; border-radius: 50%;
    z-index: 10000; pointer-events: none;
    transform: translate(-50%, -50%); will-change: transform;
}

#cursor-dot {
    width: 6px; height: 6px; background: #fff;
    box-shadow: 0 0 10px #fff;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

#cursor-circle {
    width: 34px; height: 34px;
    border: 1.5px solid var(--accent); opacity: 0.6;
    transition: width 0.4s, height 0.4s, opacity 0.3s, border-color 0.3s;
}

.cursor-hover #cursor-dot {
    width: 12px; height: 12px; background: var(--accent);
    box-shadow: var(--glow);
}

.cursor-hover #cursor-circle {
    width: 70px; height: 70px; opacity: 1; border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: url(#liquid-glass) brightness(1.2) !important;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.1), var(--glow);
}

.glow-txt { text-shadow: var(--glow); }

.intro {
    position: fixed; inset: 0; background: #000;
    display: flex; align-items: center; justify-content: center;
    z-index: 5000; transition: 0.8s;
}

.intro-t {
    font-weight: 900; font-size: clamp(1.2rem, 6vw, 2.5rem);
    text-shadow: var(--glow); letter-spacing: 4px;
    animation: iA 2s infinite;
}

@keyframes iA {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.intro.hide { opacity: 0; visibility: hidden; }

.container {
    width: 90%; max-width: 400px;
    display: flex; flex-direction: column; gap: 12px;
    opacity: 0; transform: translateY(20px);
    transition: 1s ease 0.2s; z-index: 2;
}

body.loaded .container { opacity: 1; transform: translateY(0); }

.glass {
    background: var(--glass); backdrop-filter: blur(25px);
    border: 1px solid var(--border); border-radius: 25px;
    padding: 25px; position: relative; text-align: center;
}

.ctrl-top { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; z-index: 20; }

.ctrl-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 8px; padding: 5px 10px;
    color: #fff; font-weight: 900; font-size: 0.65rem; transition: 0.2s;
}

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

.avatar-frame {
    width: 100px; height: 100px; border-radius: 50%;
    border: 2px solid var(--accent); box-shadow: var(--glow);
    margin: 0 auto 15px; overflow: hidden;
}

.avatar { width: 100%; height: 100%; object-fit: cover; }

h1 { font-size: 1.3rem; font-weight: 900; margin-bottom: 5px; }

.sub-info { font-size: 0.7rem; opacity: 0.8; margin-bottom: 15px; font-weight: 700; }

.stack { display: flex; justify-content: center; gap: 6px; margin-bottom: 15px; }

.tech {
    font-size: 0.55rem; font-weight: 900; padding: 4px 10px;
    border-radius: 8px; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border); color: var(--accent);
}

.time { color: var(--accent); font-weight: 900; margin-bottom: 20px; font-size: 0.9rem; }

.rate-wrap { display: flex; gap: 8px; margin-bottom: 15px; }

.rate-card {
    flex: 1; background: rgba(0,0,0,0.4);
    padding: 10px; border-radius: 15px; border: 1px solid var(--border);
}

.rate-label { font-size: 0.55rem; opacity: 0.9; font-weight: 800; color: #eee; margin-bottom: 2px; }
.rate-val { font-weight: 900; font-size: 0.85rem; }

.btn {
    display: block; width: 100%; padding: 14px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 18px; color: #fff; text-decoration: none;
    font-weight: 900; font-size: 0.9rem; transition: 0.3s;
}

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.clickable { transition: transform 0.2s ease; }
.clickable:hover { transform: scale(1.03); border-color: var(--accent) !important; background: rgba(255, 255, 255, 0.08) !important; }

.music-card {
    display: flex; align-items: center; gap: 15px;
    text-align: left; padding: 12px 20px;
    text-decoration: none; color: inherit; background: rgba(0,0,0,0.2);
}

#mTitle { font-weight: 900; color: var(--accent); font-size: 0.8rem; }
#mArtist { font-size: 0.7rem; opacity: 0.8; font-weight: 700; }

.track-cover {
    width: 45px; height: 45px; border-radius: 50%;
    border: 1px solid var(--border); object-fit: cover;
}

.playing .track-cover { animation: spin 8s linear infinite; border-color: var(--accent); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    body { align-items: flex-start; overflow-y: auto; padding-top: 40px; }
}

@media (pointer: coarse) {
    #cursor-dot, #cursor-circle { display: none !important; }
    * { cursor: auto !important; }
}
