@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Lexend', sans-serif;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    cursor: url('https://r2-bios.e-z.host/37f80611-691d-4771-83d6-7cdaece007a0/fbq45adw06.cur'), auto;
}

body {
    overflow-y: auto;
}

a,
button,
.social-icon,
.discord-btn,
.ctrl-btn,
.progress-bar-container {
    cursor: url('https://r2-bios.e-z.host/37f80611-691d-4771-83d6-7cdaece007a0/fbq45adw06.cur'), pointer;
}

.entrance-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('https://r2-bios.e-z.host/37f80611-691d-4771-83d6-7cdaece007a0/fbq45adw06.cur'), pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entrance-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-content {
    text-align: center;
}

.entrance-text {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-image img,
.bg-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    filter: brightness(0.85) contrast(1.1) saturate(1.1);
}

.bg-vignette {
    position: absolute;
    inset: 0;
    box-shadow:
        inset 0 0 150px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 300px 100px rgba(0, 0, 0, 0.2);
    background-image: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Enhancing pixels with a subtle texture overlay */
.bg-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://r2-bios.e-z.host/37f80611-691d-4771-83d6-7cdaece007a0/grain.png');
    opacity: 0.04;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    gap: 12px;
    max-width: 42rem;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    width: 100%;
    background: rgba(9, 9, 11, 0.9);
    border: 2px solid #ffffff;
    border-radius: 0.4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
}

.profile-card {
    text-align: center;
    padding: 20px 32px 28px;
    position: relative;
}

.view-counter {
    position: absolute;
    top: 14px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.view-counter svg {
    opacity: 0.7;
}

.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 8px auto 12px;
}

.avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.avatar-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 139.2px;
    height: 139.2px;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.35);
    filter: blur(18px);
    z-index: 1;
    animation: angry-pulse 2s ease-in-out infinite;
}

@keyframes angry-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.92);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.06);
    }
}

.username {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.username-sparkle {
    position: relative;
    display: inline-block;
}

.username-sparkle::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background-image: url('https://e-z.bio/_assets/sparkles/whitesparkle.gif');
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.subtitle {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto 4px auto !important;
    font-weight: 400;
    /* Aggressive centering */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.bio-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin: 0 auto 20px auto !important;
    min-height: 1.3em;
    white-space: pre-wrap;
    /* 5 Ways to Center */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cursor {
    animation: blink 0.8s step-end infinite;
    font-weight: 400;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transition: filter 0.3s ease;
    background: transparent;
    filter: drop-shadow(0px 0px 3.5px #ffffff);
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    filter: brightness(0.5);
}

.social-icon {
    position: relative;
}

.social-icon .tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    background: rgba(9, 9, 11, 0.95);
    padding: 3px 10px;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icon:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.discord-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.discord-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discord-avatar-wrapper {
    width: 48px;
    height: 48px;
    position: relative;
    flex-shrink: 0;
}

.discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 0.4rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-dot {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #09090b;
}

.status-dot.online {
    background: #22c55e;
}

.status-dot.offline {
    background: #475569;
}

.discord-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.discord-tag {
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge {
    flex-shrink: 0;
}

.discord-status-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hypesquad-icon {
    width: 14px;
    height: 14px;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 0.4rem;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'Lexend', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.discord-btn .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.discord-btn:hover {
    filter: brightness(1.25);
}

.discord-btn:hover .arrow {
    transform: translateX(4px);
}

.music-card {
    padding: 16px 20px;
}

.music-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.volume-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: inherit;
    padding: 4px;
    transition: opacity 0.2s;
    display: flex;
}

.volume-btn:hover {
    opacity: 0.7;
}

.volume-btn.muted .vol-wave-1,
.volume-btn.muted .vol-wave-2 {
    display: none;
}

.song-title {
    font-size: 0.88rem;
    font-weight: 400;
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.music-controls-area {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 6px 12px;
}

.time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.progress-bar-container {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: inherit;
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.progress-bar-container:hover .progress-thumb {
    opacity: 1;
}

.playback-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 4px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: inherit;
    padding: 6px;
    border-radius: 50%;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    opacity: 0.7;
}

.play-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.uid {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    display: flex;
    align-items: center;
    cursor: help;
}

.uid .tooltip {
    position: absolute;
    bottom: -32px;
    right: 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    background: rgba(9, 9, 11, 0.95);
    padding: 3px 10px;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(4px);
    z-index: 10;
}

.uid:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media (max-width: 560px) {
    .container {
        padding: 16px;
    }

    .discord-card {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }

    .discord-btn {
        justify-content: center;
    }

    .avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .avatar-img {
        width: 80px;
        height: 80px;
    }

    .username {
        font-size: 1.6rem;
    }
}