/* ==========================================================================
   Luxury Glassmorphism Neo-Aura Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #030305;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-caption: 'Space Grotesk', sans-serif;

    /* Aura / Color Glow Tints */
    --aura-violet: rgba(138, 43, 226, 0.45);
    --aura-cyan: rgba(0, 242, 254, 0.35);
    --aura-pink: rgba(255, 30, 86, 0.3);

    /* Social Glows */
    --glow-youtube: rgba(255, 30, 86, 0.6);
    --glow-kick: rgba(83, 252, 24, 0.6);
    --glow-tiktok: rgba(0, 242, 254, 0.6);
    --glow-facebook: rgba(24, 119, 242, 0.6);
    --glow-instagram: rgba(254, 60, 114, 0.6);
    --glow-spotify: rgba(29, 185, 84, 0.6);
    --glow-steam: rgba(255, 255, 255, 0.4);
    --glow-discord: rgba(88, 101, 242, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
}

body.neo-aura-body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body.cursor-active, 
    body.cursor-active * {
        cursor: none !important;
    }
}

/* Dynamic Profile Picture Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url('avatar.png'); /* Fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor.hovered {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

/* Background Video Container (Muted ambient) */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1) saturate(0.85); /* Restored background video visibility */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(3, 3, 5, 0.85) 90%, #030305 100%);
    pointer-events: none;
    z-index: 2;
}

/* Fluid Aura Gradient Canvas */
.aura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
}

/* Sound Control Button */
.sound-button {
    position: fixed;
    top: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sound-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: scale(1.05);
}

/* Main Layout Grid */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-content.visible .minimal-location,
.main-content.visible .header-section,
.main-content.visible .glass-card,
.main-content.visible .music-player-widget {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.main-content.visible .minimal-location { animation-delay: 0.1s; }
.main-content.visible .header-section { animation-delay: 0.2s; }
.main-content.visible .profile-widget { animation-delay: 0.3s; }
.main-content.visible .music-player-widget { animation-delay: 0.35s; }
.main-content.visible .activity-widget { animation-delay: 0.4s; }

.main-content.visible .links-section .social-icon-btn:nth-child(1) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.45s; opacity: 0; }
.main-content.visible .links-section .social-icon-btn:nth-child(2) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.50s; opacity: 0; }
.main-content.visible .links-section .social-icon-btn:nth-child(3) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.55s; opacity: 0; }
.main-content.visible .links-section .social-icon-btn:nth-child(4) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.60s; opacity: 0; }
.main-content.visible .links-section .social-icon-btn:nth-child(5) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.65s; opacity: 0; }
.main-content.visible .links-section .social-icon-btn:nth-child(6) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.70s; opacity: 0; }
.main-content.visible .links-section .social-icon-btn:nth-child(7) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.75s; opacity: 0; }
.main-content.visible .links-section .social-icon-btn:nth-child(8) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.80s; opacity: 0; }

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Minimalist Location Badge */
.minimal-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-caption);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

/* Header */
.header-section {
    margin-bottom: 28px;
    text-align: center;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    
    /* Premium Red & White Shining Gradient Effect */
    background: linear-gradient(
        120deg, 
        #ff1e27 0%, 
        #ff1e27 35%, 
        #ffffff 50%, 
        #ff1e27 65%, 
        #ff1e27 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.main-title .japanese {
    font-weight: 300;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    opacity: 0.55;
    margin-left: 8px;
    -webkit-text-fill-color: initial; /* Reset text fill for japanese subtext */
    background: none;
}

/* Premium Frosted Glass Deck Widget */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.45), 
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Dynamic Glare Effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateY(var(--glare-pos, -100%));
    pointer-events: none;
    z-index: 10;
    transition: transform 0.15s ease-out;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 55px rgba(0, 0, 0, 0.6), 
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Base elements inside card lifted for 3D effect */
.glass-card > * {
    transform: translateZ(20px);
}

.profile-widget {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 420px;
    width: 100%;
    margin-bottom: 12px;
}

/* Spotify-Style Music Player Widget */
.music-player-widget {
    padding: 16px 20px;
    max-width: 420px;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.album-art-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.music-disc-svg {
    animation: spinDisc 8s linear infinite;
    animation-play-state: paused;
}

.music-player-widget.playing .music-disc-svg {
    animation-play-state: running;
}

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

/* Equalizer Animating Bars */
.equalizer-bars {
    position: absolute;
    bottom: 4px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.equalizer-bars .bar {
    width: 2.2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    transform-origin: bottom;
    transform: scaleY(0.15);
    transition: transform 0.2s ease;
}

.music-player-widget.playing .equalizer-bars .bar:nth-child(1) { animation: eqBar 1.2s ease-in-out infinite alternate; }
.music-player-widget.playing .equalizer-bars .bar:nth-child(2) { animation: eqBar 0.9s ease-in-out infinite alternate-reverse; animation-delay: 0.15s; }
.music-player-widget.playing .equalizer-bars .bar:nth-child(3) { animation: eqBar 1.4s ease-in-out infinite alternate; animation-delay: 0.3s; }
.music-player-widget.playing .equalizer-bars .bar:nth-child(4) { animation: eqBar 1.0s ease-in-out infinite alternate-reverse; animation-delay: 0.05s; }

@keyframes eqBar {
    0% { transform: scaleY(0.15); }
    100% { transform: scaleY(0.85); }
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.track-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #030305;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.player-play-btn:hover {
    transform: scale(1.06);
    background-color: rgba(255, 255, 255, 0.9);
}

.player-play-btn:active {
    transform: scale(0.96);
}

/* Progress Tracker bar styling */
.player-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-stamp {
    font-family: var(--font-caption);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    min-width: 24px;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-bar-fill {
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

.progress-bar-wrapper:hover .progress-bar-fill {
    background-color: #ff3c72; /* Color highlight on progress bar hover */
}

.avatar-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

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

/* Organic breathing ring surrounding avatar */
.pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 1;
    transition: border-color 0.4s ease, transform 0.4s;
    animation: breathing 4s ease-in-out infinite;
}

/* Profile Info Panel */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.username {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.verified-badge {
    color: #ffffff;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.activity-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
}

.activity-label {
    font-family: var(--font-caption);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.activity-name {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rich Presence card */
.activity-widget {
    padding: 16px 24px;
    max-width: 420px;
    width: 100%;
    margin-bottom: 24px;
}

.widget-subtitle {
    font-family: var(--font-caption);
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.activity-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.activity-art {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.activity-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
}

.activity-subtitle, .activity-state {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-timestamp {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 3px;
}

/* Social Links Capsule Row */
.links-section {
    width: 100%;
    max-width: 480px;
}

.links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon-btn svg {
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icon-btn:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.08);
}

.social-icon-btn:hover svg {
    transform: scale(1.12);
}

/* Soft Hover Halos */
.social-icon-btn.yt:hover { border-color: rgba(255, 30, 86, 0.3); box-shadow: 0 0 20px var(--glow-youtube); color: #ff1e56; }
.social-icon-btn.kick:hover { border-color: rgba(83, 252, 24, 0.3); box-shadow: 0 0 20px var(--glow-kick); color: #53fc18; }
.social-icon-btn.tiktok:hover { border-color: rgba(0, 242, 254, 0.3); box-shadow: 0 0 20px var(--glow-tiktok); color: #00f2fe; }
.social-icon-btn.fb:hover { border-color: rgba(24, 119, 242, 0.3); box-shadow: 0 0 20px var(--glow-facebook); color: #1877f2; }
.social-icon-btn.ig:hover { border-color: rgba(254, 60, 114, 0.3); box-shadow: 0 0 20px var(--glow-instagram); color: #fe3c72; }
.social-icon-btn.spotify:hover { border-color: rgba(29, 185, 84, 0.3); box-shadow: 0 0 20px var(--glow-spotify); color: #1db954; }
.social-icon-btn.steam:hover { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 0 20px var(--glow-steam); color: #ffffff; }
.social-icon-btn.discord:hover { border-color: rgba(88, 101, 242, 0.3); box-shadow: 0 0 20px var(--glow-discord); color: #5865f2; }

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(3, 3, 5, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-caption);
    font-size: 0.62rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.social-icon-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer (View Counter) */
.footer-section {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
}

.view-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-caption);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.view-counter:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes heartbeat {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* Entrance Overlay styles */
.enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030305;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
}

.enter-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.enter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.enter-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.6em;
    text-indent: 0.6em;
    margin-bottom: 24px;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.15);
    animation: floatTitle 4s ease-in-out infinite;
}

.enter-btn {
    font-family: var(--font-caption);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: heartbeat 2s infinite ease-in-out;
    transition: color 0.3s ease;
}

.enter-content:hover .enter-btn {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .main-title { font-size: 2.2rem; }
    .profile-widget {
        padding: 16px 20px;
        gap: 16px;
        max-width: 90%;
    }
    .avatar-wrapper { width: 58px; height: 58px; }
    .avatar-container { width: 50px; height: 50px; }
    .links-row { gap: 10px; }
    .social-icon-btn { width: 44px; height: 44px; }
}
