* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    background: #0a0a0a;
    will-change: auto;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    contain: layout style paint;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blurred Overlay */
.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout style paint;
}

.background-blur.active {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.click-text {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse-text 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Main Container */
.container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    contain: layout style paint;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.background-blur.active ~ .container {
    opacity: 1;
    pointer-events: auto;
}

/* Profile Card */
.profile-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner */
.banner {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    contain: layout style paint;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile Picture */
.pfp-container {
    display: flex;
    justify-content: center;
    margin-top: -50px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(20, 20, 30, 0.9);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
    display: block;
    will-change: box-shadow;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.6);
    }
}

/* Profile Info */
.profile-info {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.username {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 12px;
    line-height: 1.5;
}

.location {
    font-size: 13px;
    color: #9d7aff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.location i {
    font-size: 12px;
}

/* Social Links */
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    color: #9d7aff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.3);
    position: relative;
    will-change: transform, background, box-shadow;
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.4);
    color: #ffffff;
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.social-link.discord:hover {
    background: rgba(88, 101, 242, 0.3);
    color: #b56bff;
    border-color: #b56bff;
}

.social-link.telegram:hover {
    background: rgba(88, 101, 242, 0.3);
    color: #b56bff;
    border-color: #b56bff;
}

.social-link.vacban:hover {
    background: rgba(88, 101, 242, 0.3);
    color: #b56bff
    border-color: #b56bff;
}

.vacban-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.2) hue-rotate(280deg) saturate(1.5);
}

.social-link.vacban:hover .vacban-icon {
    filter: brightness(1) hue-rotate(280deg) saturate(1.5) drop-shadow(0 0 4px rgba(157, 122, 255, 0.6));
}

/* Music Player */
.music-player {
    padding: 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    will-change: transform, box-shadow;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    will-change: width;
}

.time-display {
    font-size: 12px;
    color: #b0b0b0;
    min-width: 35px;
    text-align: right;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        max-width: 90%;
    }

    .profile-card {
        border-radius: 16px;
    }

    .username {
        font-size: 24px;
    }

    .bio {
        font-size: 13px;
    }

    .socials {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .click-text {
        font-size: 24px;
        letter-spacing: 2px;
    }
}
