@property --angle {
            syntax: '<angle>';
            initial-value: 0deg;
            inherits: false;
        }

        :root {
            --bg: #000000;
            --card-bg: #0a0a0a;
            --text-main: #ffffff;
            --text-muted: #888888;
            --accent: #ffffff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ЭКРАН ВХОДА */
        #splash {
            position: fixed; inset: 0; background: #000; z-index: 99999;
            display: flex; justify-content: center; align-items: center;
            cursor: pointer; overflow: hidden;
        }

        #splash-svg {
            width: 4000px; height: auto; position: absolute;
            transform: scale(0.05); transform-origin: center center;
            will-change: transform, filter, opacity;
            animation: splashPulse 2.5s ease-in-out infinite;
        }

        #splash-svg text {
            font-family: 'Manrope', sans-serif; font-weight: 800; fill: #ffffff;
            letter-spacing: -2px; text-anchor: middle; dominant-baseline: central;
            font-size: 120px; text-rendering: geometricPrecision;
        }

        @keyframes splashPulse {
            0%, 100% { transform: scale(0.05); filter: drop-shadow(0 0 20px rgba(255,255,255,0.4)); opacity: 1; }
            50% { transform: scale(0.048); filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); opacity: 0.5; }
        }

        #splash.clicked #splash-svg { animation: zoomIntoText 1.3s cubic-bezier(0.6, 0, 0.9, 0.4) forwards; }
        @keyframes zoomIntoText {
            0% { transform: scale(0.05); filter: blur(0px); opacity: 1; }
            50% { opacity: 1; }
            100% { transform: scale(1.5); filter: blur(8px); opacity: 0; }
        }

        #splash.clicked { animation: fadeSplash 1.4s ease forwards; }
        @keyframes fadeSplash { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }

        /* ОСНОВНОЙ КОНТЕНТ */
        .card-wrapper { opacity: 0; }
        .player { opacity: 0; }

        body.entered .card-wrapper { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
        body.entered .player { animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

        @media (pointer: fine) {
            body:not(.entered), a, button, .progress-bar-bg, .bass-btn {
                cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2L14.5 9.5L22 12L14.5 14.5L12 22L9.5 14.5L2 12L9.5 9.5Z" fill="white" stroke="white" stroke-width="1"/><path d="M12 2L9.5 9.5L2 12L9.5 14.5L12 22L14.5 14.5L22 12L14.5 9.5Z" fill="white" stroke="white" stroke-width="1" transform="rotate(45 12 12)"/></svg>') 12 12, auto !important;
            }
        }

        body {
            background-color: var(--bg); color: var(--text-main);
            min-height: 100vh; display: flex; flex-direction: column;
            align-items: center; justify-content: center; overflow-x: hidden;
        }

        #webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }

        /* ==========================================
           ПОДСКАЗКИ ПРИ НАВЕДЕНИИ (ТУЛТИПЫ)
           ========================================== */
        #custom-tooltip {
            position: fixed; 
            background: rgba(10, 10, 10, 0.85); 
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            color: #ffffff; 
            border: 1px solid rgba(255, 255, 255, 0.15); 
            padding: 5px 10px; 
            border-radius: 8px;
            font-size: 11px; 
            font-weight: 600; 
            white-space: nowrap; 
            pointer-events: none;
            opacity: 0; 
            z-index: 9999; 
            transform: translate(-50%, -100%);
            transition: opacity 0.15s ease, transform 0.15s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.8); 
            display: none;
        }

        /* ==========================================
           УВЕДОМЛЕНИЯ (БЕЗ CSS-АНИМАЦИИ ИСЧЕЗНОВЕНИЯ)
           ========================================== */
        #toast {
            position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-150%);
            background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50px;
            padding: 10px 24px 10px 16px; display: flex; align-items: center; gap: 15px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1); z-index: 10000;
            opacity: 0; pointer-events: none; 
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Появление */
        #toast.show { 
            opacity: 1; 
            transform: translateX(-50%) translateY(0); 
        }
        
        .toast-icon {
            width: 36px; height: 36px; border-radius: 50%;
            background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center;
            color: #fff; font-size: 16px; flex-shrink: 0;
        }
        .toast-text { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
        #toast-title { font-size: 14px; font-weight: 700; color: #ffffff; letter-spacing: 0.3px; }
        #toast-artist { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }

        /* КАРТОЧКА */
        .card-wrapper { perspective: 1200px; z-index: 10; width: 100%; max-width: 520px; padding: 20px; }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

        .card {
            background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.08); 
            border-radius: 32px; padding: 50px 40px; width: 100%;
            display: flex; flex-direction: column; align-items: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            position: relative; overflow: hidden;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
            transform-style: preserve-3d;
        }

        .card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 40%);
            z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
        }

        .card-wrapper:hover .card {
            border-color: rgba(255, 255, 255, 0.25);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        .card-wrapper:hover .card::before { opacity: 1; }

        /* ==========================================
           ЛЕТАЮЩИЕ ЧАСТИЦЫ ВНУТРИ КАРТОЧКИ
           ========================================== */
        #card-particles {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none;
            overflow: hidden;
            z-index: 0;
            border-radius: 32px;
        }

        .particle {
            position: absolute;
            width: 2px; height: 2px;
            background: #ffffff;
            border-radius: 50%;
            box-shadow: 0 0 10px 2px rgba(255,255,255,0.8);
            opacity: 0;
            animation: flyParticle linear forwards;
        }

        @keyframes flyParticle {
            0% { transform: translate(0, 0) scale(1); opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 1; }
            100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
        }

        .views-badge {
            position: absolute; top: 24px; right: 24px;
            display: flex; align-items: center; gap: 8px;
            background: rgba(255, 255, 255, 0.05); padding: 8px 14px; border-radius: 20px;
            font-size: 13px; font-weight: 600; color: var(--text-muted);
            transform: translateZ(30px); user-select: none;
            z-index: 2;
        }
        .views-badge i { font-size: 13px; color: var(--text-muted); }

        .avatar-container {
            position: relative; 
            margin-bottom: 10px; 
            width: 150px; height: 150px;
            display: flex; justify-content: center; align-items: center; transform: translateZ(40px);
            z-index: 2;
        }
        .avatar {
            width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
            position: relative; z-index: 2; border: 2px solid #ffffff; padding: 4px;
            background-color: #0a0a0a; box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
        }
        .avatar:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
        
        .avatar-ring {
            position: absolute; width: 145px; height: 145px; border-radius: 50%;
            border: 1px dashed rgba(255, 255, 255, 0.3);
            animation: rotateRing 12s linear infinite; z-index: 1;
        }
        .avatar-container:hover .avatar-ring {
            border-color: rgba(255, 255, 255, 0.8); animation-duration: 4s; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        }
        @keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        h1 { 
            font-family: 'Manrope', sans-serif; 
            font-size: 38px; 
            font-weight: 800; 
            letter-spacing: -0.5px; 
            margin-bottom: 16px; 
            color: #ffffff; 
            transform: translateZ(30px); 
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .achievements { 
            display: flex; gap: 12px; margin-bottom: 20px; transform: translateZ(25px); 
            position: relative; z-index: 2;
        }
        .achievements i { font-size: 14px; color: var(--text-muted); transition: all 0.3s ease; opacity: 0.6; padding: 5px; margin: -5px; }
        .achievements i:hover { color: var(--accent); opacity: 1; transform: translateY(-3px) scale(1.2); text-shadow: 0 0 15px rgba(255,255,255,0.8); }

        /* ==========================================
           КНОПКА DISCORD MODERATOR (ЦВЕТ БРЕНДА + БЕЛЫЙ НЕОН)
           ========================================== */
        .subtitle {
            font-size: 15px; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 10px;
            margin-bottom: 35px; text-decoration: none; transition: all 0.3s ease; 
            padding: 8px 16px; border-radius: 14px; 
            background: rgba(255,255,255,0.03); transform: translateZ(20px);
            position: relative; isolation: isolate;
            --brand-color: #5865F2;
            z-index: 2;
        }

        .subtitle::before {
            content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
            background: conic-gradient(from var(--angle), transparent 40%, #ffffff 60%, transparent 80%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: -1;
        }

        .subtitle:hover { 
            color: #ffffff; 
            background: var(--brand-color); 
            box-shadow: 0 0 20px var(--brand-color), inset 0 0 10px rgba(255, 255, 255, 0.2); 
        }
        .subtitle:hover::before { opacity: 1; animation: rotateBorder 2s linear infinite; }
        
        .subtitle i { color: var(--text-muted); font-size: 16px; transition: all 0.3s ease; }
        .subtitle:hover i { color: #fff; transform: scale(1.2) rotate(-10deg); text-shadow: 0 0 10px #fff; }

        /* ==========================================
           СОЦСЕТИ (ЛЕВИТАЦИЯ + ЦВЕТА БРЕНДОВ)
           ========================================== */
        .socials { 
            display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 12px; transform: translateZ(20px); 
            position: relative; z-index: 2;
        }
        
        /* Анимация легкого покачивания */
        @keyframes sway {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }

        .social-btn {
            display: flex; align-items: center; justify-content: center; height: 54px; 
            background: rgba(255, 255, 255, 0.05); border: none; border-radius: 16px; 
            color: var(--text-muted); font-size: 20px; text-decoration: none; 
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; isolation: isolate;
            
            /* Применяем анимацию левитации */
            animation: sway 4s ease-in-out infinite;
        }

        /* Задержки для эффекта волны (чтобы кнопки качались не синхронно) */
        .social-btn:nth-child(1) { animation-delay: 0s; }
        .social-btn:nth-child(2) { animation-delay: 0.6s; }
        .social-btn:nth-child(3) { animation-delay: 1.2s; }
        .social-btn:nth-child(4) { animation-delay: 1.8s; }
        .social-btn:nth-child(5) { animation-delay: 2.4s; }
        .social-btn:nth-child(6) { animation-delay: 3.0s; }

        #ui-link-tg { --brand-color: #24A1DE; }
        #ui-link-ds { --brand-color: #5865F2; }
        #ui-link-yt { --brand-color: #FF0000; }
        #ui-link-tk { --brand-color: #FE2C55; }
        #ui-link-vk { --brand-color: #0077FF; }
        #ui-link-steam { --brand-color: #1b2838; }

        .social-btn::before {
            content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
            background: conic-gradient(from var(--angle), transparent 40%, #ffffff 60%, transparent 80%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: -1;
        }

        /* При наведении останавливаем анимацию, чтобы работал эффект увеличения */
        .social-btn:hover { 
            animation: none; 
            background: var(--brand-color); 
            color: #ffffff; 
            transform: translateY(-4px) scale(1.05); 
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 25px var(--brand-color); 
        }
        .social-btn:hover::before { opacity: 1; animation: rotateBorder 2s linear infinite; }
        
        .social-btn i { transition: transform 0.3s ease; }
        .social-btn:hover i { transform: scale(1.1); text-shadow: 0 0 10px #fff; }
        
        @keyframes rotateBorder { to { --angle: 360deg; } }

        /* ПЛЕЕР */
        .player {
            position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 750px;
            background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 100px; padding: 8px 20px 8px 8px;
            display: flex; align-items: center; gap: 16px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); z-index: 100;
            transition: all 0.3s ease;
        }
        .player:hover { background: rgba(25, 25, 25, 0.95); border-color: rgba(255, 255, 255, 0.2); }
        @keyframes slideUp { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
        
        .play-btn {
            width: 44px; height: 44px; border-radius: 50%; background: #ffffff; color: #000000; border: none;
            display: flex; justify-content: center; align-items: center; font-size: 16px; 
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); flex-shrink: 0;
        }
        .play-btn:hover { 
            transform: scale(1.1); 
            box-shadow: 0 0 20px #ffffff; 
        }
        .play-btn:active { transform: scale(0.95); }
        
        .track-info { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; overflow: hidden; width: 120px; }
        .track-name { font-size: 13px; font-weight: 600; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .track-artist { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        .progress-container { flex-grow: 2; display: flex; align-items: center; gap: 12px; margin-right: 5px; }
        .time { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 30px; text-align: center; }
        .progress-bar-bg { flex-grow: 1; height: 4px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; position: relative; transition: height 0.2s ease; }
        .progress-bar-bg:hover { height: 6px; }
        .progress-bar-fill { height: 100%; background: #ffffff; border-radius: 2px; width: 0%; position: relative; transition: width 0.1s linear; }
        .progress-bar-fill::after {
            content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) scale(0); 
            width: 12px; height: 12px; background: #ffffff; border-radius: 50%; 
            transition: transform 0.2s ease; box-shadow: 0 0 15px #ffffff;
        }
        .progress-bar-bg:hover .progress-bar-fill::after { transform: translateY(-50%) scale(1); }
        
        .controls { display: flex; gap: 8px; align-items: center; }
        .ctrl-btn { background: transparent; border: none; color: var(--text-muted); font-size: 14px; transition: 0.3s; padding: 5px; }
        .ctrl-btn:hover { color: #ffffff; transform: scale(1.2); text-shadow: 0 0 10px #ffffff; }

        .bass-btn { 
            background: transparent; border: 1px solid rgba(255,255,255,0.1); 
            color: var(--text-muted); font-size: 10px; font-weight: 700;
            padding: 6px 10px; border-radius: 12px; transition: 0.3s; 
            display: flex; align-items: center; gap: 5px; letter-spacing: 0.5px;
        }
        .bass-btn:hover { color: #ffffff; border-color: #ffffff; box-shadow: 0 0 10px rgba(255,255,255,0.3); }
        .bass-btn.active { 
            color: #000; 
            background: #ffffff; 
            border-color: #ffffff; 
            box-shadow: 0 0 15px #ffffff; 
        }

        .volume-container { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
        .volume-btn { background: transparent; border: none; color: var(--text-muted); font-size: 14px; transition: 0.3s; padding: 5px; }
        .volume-btn:hover { color: #ffffff; text-shadow: 0 0 10px #ffffff; }
        
        .volume-slider { -webkit-appearance: none; width: 60px; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; outline: none; transition: 0.2s; }
        .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; background: #fff; border-radius: 50%; cursor: pointer; transition: 0.2s; }
        .volume-slider::-webkit-slider-thumb:hover { transform: scale(1.3); box-shadow: 0 0 15px #ffffff; }
        .volume-slider:hover { background: #ffffff; }

        /* ==========================================
           ЕДВА ЗАМЕТНЫЙ КОПИРАЙТ
           ========================================== */
        .copyright {
            position: fixed;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 10px;
            color: rgba(255, 255, 255, 0.08); /* Очень тусклый цвет */
            letter-spacing: 1px;
            pointer-events: none;
            z-index: 10;
            font-family: 'Inter', sans-serif;
            text-transform: uppercase;
            user-select: none;
        }

        @media (max-width: 750px) {
            .card-wrapper { padding: 10px; } .card { padding: 40px 20px; } .socials { grid-template-columns: repeat(3, 1fr); gap: 10px; }
            .social-btn { height: 50px; font-size: 18px; } .avatar-container { width: 130px; height: 130px; margin-bottom: 8px; }
            .avatar { width: 105px; height: 105px; } .avatar-ring { width: 125px; height: 125px; } h1 { font-size: 32px; margin-bottom: 12px; }
            .player { padding: 8px; gap: 8px; } .track-info { display: none; } .progress-container { margin-right: 0; gap: 8px; }
            .volume-container { display: none; }
            .bass-btn span { display: none; }
            .card-wrapper { perspective: none; }
            #toast { padding: 8px 16px 8px 12px; gap: 10px; }
            .toast-icon { width: 28px; height: 28px; font-size: 12px; }
            #toast-title { font-size: 12px; }
            #toast-artist { font-size: 10px; }
            .copyright { bottom: 2px; font-size: 8px; }
        }

/* Подготовка к публикации: небольшой экран и управление клавиатурой. */
[hidden] { display: none !important; }
body { min-height: 100svh; padding: 32px 0 120px; }
.player { bottom: max(24px, env(safe-area-inset-bottom)); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible {
    outline: 2px solid #fff; outline-offset: 5px;
}
.noscript-note { padding: 20px; max-width: 520px; color: #aaa; text-align: center; }
@media (max-width: 360px) {
    .progress-container { gap: 4px; min-width: 0; }
    .controls { gap: 2px; }
    .player { gap: 6px; }
}

