* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;

    overflow-y: auto;
    overflow-x: hidden;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    z-index: -3;
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    z-index: -2;
}

.stars {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 40px 24px;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.container.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.avatar-container-main {
    position: relative;
    width: 105px;
    height: 105px;
    margin: auto;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.name-row h1 {
    color: white;
    font-size: 32px;
}

.verified-badge {
    width: 25px;
    height: 24px;
    object-fit: contain;
}

.bio {
    color: #d7dcef;
    font-size: 15px;
    margin-top: 10px;
}

.discord-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #181818;
    padding: 16px 18px;
    border-radius: 28px;
    margin-top: 20px;
    text-align: left;
    width: 100%;
}

.discord-avatar-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.discord-avatar-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

#discord-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #181818;
    z-index: 3;
}

.status-dot.online { background: #23a55a; }
.status-dot.idle { background: #f0b232; }
.status-dot.dnd {
    background: #f23f43;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot.dnd::after {
    content: '';
    width: 6px;
    height: 2px;
    background: #181818;
    display: block;
}

.status-dot.offline { background: #80848e; }

.discord-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.discord-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.discord-name {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.discord-activity {
    display: flex;
    flex-direction: column;
}

.activity-heading {
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.status-text {
    color: #9e9e9e;
    font-size: 14px;
}

.discord-art-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

#discord-art {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

#discord-art.hidden {
    display: none;
}

.links {
    margin-top: 24px;
    width: 100%;
}

.link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    transition: .25s;
    width: 100%;
}

.link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 25px;
    color: white;
}

.arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

#overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

#entry-text {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
}

.stats-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stats-modal.hidden {
    display: none;
}

.stats-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.stats-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.stats-frame {
    flex: 1;
    width: 100%;
    border: none;
}

#open-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    margin: 12px auto 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    width: fit-content;
}

#open-stats:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

#open-stats .left {
    gap: 8px;
}

#open-stats .left span {
    font-size: 13px;
    font-weight: 500;
}

#open-stats .icon-box {
    width: 20px;
    height: 20px;
}

#open-stats .icon-box i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

#open-stats .arrow {
    font-size: 16px;
    opacity: 0.5;
}

.spotify-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}

.spotify-progress-fill {
    width: 0%;
    height: 100%;
    background: #1DB954;
    border-radius: 999px;
    transition: width 1s linear;
}

.spotify-progress.hidden {
    display: none;
}

@media (max-height: 750px) {
    body {
        align-items: flex-start;
    }

    .container {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

.album-text {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
