:root {
    --primary-color: #fff;
    --background-dark: #000;
    --card-bg: rgba(0, 0, 0, 0.6);
    --border-color: rgba(0, 195, 255, 0.4);
    --text-secondary: #aaa;
    --accent-blue: #00c3ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

#video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.click-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    /* On top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s ease-out;
}

.overlay-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.card {
    width: 90%;
    max-width: 700px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 195, 255, 0.15);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.card.visible {
    opacity: 1;
    transform: scale(1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.username-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.username {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.badges {
    display: flex;
    gap: 6px;
    padding: 2px;
    border-radius: 8px;
}

.badge {
    font-size: 1rem;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.bio {
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 1rem;
    min-height: 1.5em;
}

.cursor {
    display: inline-block;
    width: 2px;
    animation: blink 1s infinite;
    color: var(--accent-blue);
    margin-left: 2px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 0 0 2rem 0;
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-icon {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--color);
    filter: drop-shadow(0 0 10px var(--color));
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.media-controls {
    position: fixed;
    bottom: 30px;
    display: flex;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.media-controls.visible {
    opacity: 1;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-group i {
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
}

.slider-bar {
    width: 80px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.slider-fill {
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .username-row {
        justify-content: center;
    }

    .card {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1.5rem;
    }
}