:root {
    --theme-primary: #8b0000;
    --theme-secondary: #4a0000;
    --theme-glow-primary: rgba(139, 0, 0, 0.5);
    --theme-glow-secondary: rgba(74, 0, 0, 0.5);
    --theme-bg: #0a0a0c;
    --theme-surface: rgba(255, 255, 255, 0.04);
    --theme-border: rgba(255, 255, 255, 0.1);
    --theme-text: #ffffff;
    --theme-muted: rgba(255, 255, 255, 0.6);
    --theme-trans: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #0a0a0c;
    color: var(--theme-text);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.3), rgba(10, 10, 12, 0.5));
    z-index: -1;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.enter-text {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight:  700;
    color: var(--theme-text);
}

.social-container {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    pointer-events: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
    padding: 0 1.5rem;
}

.social-badge {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    flex: 0 1 auto;
}

.social-badge:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.social-username {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: white;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 15, 0.95);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-badge:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip.success {
    background: rgba(10, 10, 15, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.main-header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-header > * {
    pointer-events: auto;
}

.header-logo-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.header-pfp-wrapper {
    position: relative;
    display: inline-block;
}

.header-pfp {
    width: clamp(4.5rem, 9vw, 6.5rem);
    height: clamp(4.5rem, 9vw, 6.5rem);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--theme-glow-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--theme-trans);
    -webkit-mask: radial-gradient(circle at calc(100% - 9px) calc(100% - 16px), transparent 12px, black 13px);
    mask: radial-gradient(circle at calc(100% - 9px) calc(100% - 16px), transparent 12px, black 13px);
}

.header-status-dot {
    position: absolute;
    bottom: 12px;
    right: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #747f8d;
    transition: var(--theme-trans);
}

.header-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    transform: translateY(-4px);
}

.header-name {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.1rem;
    line-height: 1;
    color: white;
    text-shadow: 0 0 15px var(--theme-glow-primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-badges {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.clan-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.clan-badge-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.header-subtitle {
    font-size: 1rem;
    color: var(--theme-muted);
    font-weight: 400;
}

.music-player-hud {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 100;
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.song-cover {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    object-fit: fill;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--theme-trans);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 140px;
}

.song-details {
    display: flex;
    flex-direction: column;
}


.song-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    letter-spacing: 0.2px;
}

.song-artist {
    font-size: 0.7rem;
    color: var(--theme-muted);
    font-weight: 500;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.time-current, .time-total {
    font-size: 0.65rem;
    color: var(--theme-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.progress-bar-wrapper {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    min-width: 80px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.player-volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.player-footer-stats {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--theme-muted);
    pointer-events: none;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: var(--theme-muted);
    transition: var(--theme-trans);
}

.footer-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-item i {
    font-size: 0.95rem;
    color: var(--theme-muted);
}

.footer-item.views span {
    font-family: inherit;
    font-weight: 500;
    color: var(--theme-muted);
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(20, 20, 25, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--theme-trans);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-badge:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip.success {
    background: rgba(20, 20, 25, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .social-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        bottom: 7rem;
        padding: 0 1rem;
    }

    .social-badge {
        padding: 0.8rem 0.5rem;
        width: 100%;
        gap: 0.5rem;
        border-radius: 12px;
    }

    .social-username {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .music-player-hud {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1.5rem;
        width: calc(100% - 2rem);
        max-width: 400px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 0.75rem 1rem;
        gap: 0.8rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .song-title {
        font-size: 0.75rem;
    }

    .song-artist {
        font-size: 0.65rem;
    }
    
    .player-footer-stats {
        position: static;
        width: auto;
        margin-left: auto;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 0.15rem;
        padding: 0;
        padding-left: 0.75rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        pointer-events: auto;
    }

    .footer-divider {
        display: none;
    }

    .footer-item {
        font-size: 0.65rem;
        gap: 0.35rem;
    }

    .footer-item i {
        font-size: 0.75rem;
    }
}
