#video {
    transition: filter 1.2s ease-out, transform 1.2s ease-out;
}

.overlay {
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.enter-text {
    animation: floatCute 2.5s ease-in-out infinite;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.enter-text::before {
    display: inline-block;
    animation: sparkleLeft 1.5s ease-in-out infinite;
}

.enter-text::after {
    display: inline-block;
    animation: sparkleRight 1.5s ease-in-out infinite;
}

@keyframes floatCute {
    0%, 100% {
        transform: translateY(0) rotate(-0.5deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-4px) rotate(0.3deg);
    }
    50% {
        transform: translateY(-6px) rotate(0.5deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-3px) rotate(-0.3deg);
    }
}

@keyframes sparkleLeft {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(-15deg);
        opacity: 1;
    }
}

@keyframes sparkleRight {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
}

.sound-control {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.sound-btn {
    transition: transform 0.2s ease-out, background 0.3s ease, box-shadow 0.3s ease;
}

.volume-slider-container {
    transition: width 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.volume-track {
    transition: width 0.1s ease-out;
}

.profile-card {
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out, transform 0.8s ease-out;
}

.profile-card.visible {
    animation: cardAppear 0.8s ease-out forwards;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.avatar-ring {
    animation: ringGlow 3s ease-in-out infinite;
}

@keyframes ringGlow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 182, 193, 0.5),
            0 0 30px rgba(200, 150, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 182, 193, 0.7),
            0 0 40px rgba(200, 150, 255, 0.5);
    }
}

.profile-name {
    animation: nameFloat 4s ease-in-out infinite;
}

@keyframes nameFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.location-icon {
    animation: locationPulse 2s ease-in-out infinite;
}

@keyframes locationPulse {
    0%, 100% {
        transform: scale(1);
        filter: 
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 12px rgba(255, 182, 193, 0.4));
    }
    50% {
        transform: scale(1.1);
        filter: 
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 12px rgba(255, 255, 255, 0.5))
            drop-shadow(0 0 18px rgba(255, 182, 193, 0.6));
    }
}

.location-text {
    animation: locationTextGlow 3s ease-in-out infinite;
}

@keyframes locationTextGlow {
    0%, 100% {
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.4),
            0 0 16px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.bio-card {
    animation: bioAppear 0.6s ease-out 0.3s backwards;
}

@keyframes bioAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio-avatar-container {
    animation: bioAvatarGlow 2.5s ease-in-out infinite;
}

@keyframes bioAvatarGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 182, 193, 0.5);
    }
}

.bio-username {
    animation: usernameShimmer 3s ease-in-out infinite;
}

@keyframes usernameShimmer {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 200, 220, 0.3);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 25px rgba(255, 255, 255, 0.7),
            0 0 40px rgba(255, 255, 255, 0.4),
            0 0 50px rgba(255, 200, 220, 0.4);
    }
}

.bio-text {
    animation: bioTextGlow 3.5s ease-in-out infinite;
}

@keyframes bioTextGlow {
    0%, 100% {
        text-shadow: 
            0 0 6px rgba(255, 255, 255, 0.3),
            0 0 12px rgba(255, 255, 255, 0.15);
    }
    50% {
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.4),
            0 0 16px rgba(255, 255, 255, 0.25);
    }
}

.bio-badge {
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-5deg);
    }
    75% {
        transform: translateY(-1px) rotate(5deg);
    }
}

.social-links {
    animation: socialAppear 0.6s ease-out 0.5s backwards;
}

@keyframes socialAppear {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: socialFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

.social-link:nth-child(1) { --i: 0; }
.social-link:nth-child(2) { --i: 1; }
.social-link:nth-child(3) { --i: 2; }
.social-link:nth-child(4) { --i: 3; }
.social-link:nth-child(5) { --i: 4; }

@keyframes socialFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 
            0 6px 16px rgba(0, 0, 0, 0.2),
            0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.social-link svg {
    transition: filter 0.3s ease;
}

.social-link:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.tooltip {
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.loader-screen {
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader-ring-primary {
    animation: loaderSpin 2.2s linear infinite;
}

.loader-ring-secondary {
    animation: loaderSpinReverse 2.8s linear infinite;
}

.loader-core {
    animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-spark-a {
    animation: loaderSpark 1.5s ease-in-out infinite;
}

.loader-spark-b {
    animation: loaderSpark 1.9s ease-in-out infinite 0.2s;
}

.loader-spark-c {
    animation: loaderSpark 1.7s ease-in-out infinite 0.45s;
}

.loader-title {
    animation: loaderTitleFloat 2.6s ease-in-out infinite;
}

.loader-progress {
    transition: width 0.35s ease-out;
}

@keyframes loaderSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderSpinReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(0.96);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes loaderSpark {
    0%, 100% {
        transform: scale(0.7);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes loaderTitleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.view-counter {
    animation: counterAppear 0.6s ease-out 0.6s backwards;
}

@keyframes counterAppear {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.view-eye {
    animation: eyeBlink 4s ease-in-out infinite, eyeGlow 2s ease-in-out infinite;
}

@keyframes eyeBlink {
    0%, 42%, 58%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.15);
    }
}

@keyframes eyeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(255, 182, 193, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.9));
    }
}

.view-tooltip {
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.view-count {
    animation: countGlow 3s ease-in-out infinite;
}

@keyframes countGlow {
    0%, 100% {
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.6),
            0 0 15px rgba(255, 200, 220, 0.4);
    }
    50% {
        text-shadow: 
            0 0 12px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 200, 220, 0.6);
    }
}

@keyframes sakuraFall {
    0% {
        opacity: 0;
        transform: translate(0, -5px) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translate(-2px, 5px) rotate(25deg) scale(1);
    }
    25% {
        transform: translate(3px, 18px) rotate(70deg) scale(0.95);
    }
    40% {
        transform: translate(-4px, 32px) rotate(120deg) scale(0.9);
    }
    55% {
        transform: translate(2px, 45px) rotate(180deg) scale(0.85);
    }
    70% {
        transform: translate(-3px, 58px) rotate(240deg) scale(0.75);
        opacity: 0.8;
    }
    85% {
        transform: translate(1px, 70px) rotate(300deg) scale(0.65);
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translate(-2px, 82px) rotate(360deg) scale(0.5);
    }
}

.frame-sakura {
    animation: frameSakuraGlow 3s ease-in-out infinite;
}

.frame-sakura-1 { animation-delay: 0s; }
.frame-sakura-2 { animation-delay: 0.6s; }
.frame-sakura-3 { animation-delay: 1.2s; }
.frame-sakura-4 { animation-delay: 0.3s; }
.frame-sakura-5 { animation-delay: 0.9s; }

@keyframes frameSakuraGlow {
    0%, 100% {
        box-shadow: 
            0 0 8px rgba(255, 182, 193, 0.6),
            0 0 16px rgba(255, 150, 180, 0.3),
            inset 0 0 4px rgba(255, 255, 255, 0.5);
        transform: scale(1) rotate(var(--r, 0deg));
    }
    50% {
        box-shadow: 
            0 0 12px rgba(255, 182, 193, 0.8),
            0 0 24px rgba(255, 150, 180, 0.5),
            0 0 32px rgba(255, 200, 220, 0.3),
            inset 0 0 6px rgba(255, 255, 255, 0.6);
        transform: scale(1.08) rotate(var(--r, 0deg));
    }
}

.frame-sakura-1 { --r: 15deg; }
.frame-sakura-2 { --r: -30deg; }
.frame-sakura-3 { --r: 45deg; }
.frame-sakura-4 { --r: -15deg; }
.frame-sakura-5 { --r: 60deg; }

.social-link {
    animation: socialGlow 4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
}

@keyframes socialGlow {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 0 12px rgba(255, 182, 193, 0.35),
            0 0 20px rgba(200, 150, 255, 0.2),
            inset 0 0 8px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.18),
            0 0 18px rgba(255, 182, 193, 0.5),
            0 0 28px rgba(200, 150, 255, 0.35),
            0 0 38px rgba(150, 200, 255, 0.2),
            inset 0 0 10px rgba(255, 255, 255, 0.08);
    }
}
