:root {
    --bg-purple: #1a0b2e;
    --card-bg: rgba(20, 10, 30, 0.7);
    --accent-purple: #6c429c;
    --text-glow: #a58bc8;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-purple);
    color: white;
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Layers */
.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Placeholder for the anime background */
    background: url('https://w.wallhaven.cc/full/kx/wallhaven-kx9gxd.jpg') no-repeat center center/cover;
    filter: blur(5px);
    z-index: -2;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through */
}

.overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(46, 26, 71, 0.4) 0%, rgba(26, 11, 46, 0.95) 90%);
    z-index: -1;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

/* Main Profile Card */
.profile-card {
    width: 450px;
    height: 280px;
    background: radial-gradient(circle at top, rgba(60, 40, 90, 0.6), rgba(30, 15, 50, 0.8));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out;
}

.profile-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
}

/* New Avatar Styles */
.avatar-container {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    position: relative;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--accent-purple), #d500f9);
    box-shadow: 0 0 20px rgba(213, 0, 249, 0.4);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a0b2e;
    /* Match bg to create 'cutout' effect */
}

.title-glow {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(180, 140, 255, 0.6);
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.location-tag {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.discord-button {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #fff;
    transition: background 0.2s;
    cursor: pointer;
    margin-bottom: 20px;
}

.discord-button:hover {
    background: rgba(88, 101, 242, 0.2);
}

.icon-row {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    color: var(--accent-purple);
    font-size: 1.2rem;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.views-count {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Decorations */
.deco-crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.deco-crosshair.top-center {
    top: 15px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-bottom: none;
    border-right: none;
}

.deco-crosshair.bottom-center {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-top: none;
    border-left: none;
}

/* Music Player Card */
.music-card {
    width: 450px;
    height: 80px;
    background: rgba(30, 20, 50, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideUp 1s ease-out 0.2s backwards;
}

.album-art img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.music-info {
    flex-grow: 1;
}

.song-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.artist-name {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #888;
}

.bar-bg {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background: var(--text-glow);
    border-radius: 2px;
}

.music-controls {
    display: flex;
    gap: 20px;
    /* More space */
    color: #ccc;
    font-size: 1.2rem;
    /* Larger icons */
    padding-right: 15px;
    align-items: center;
}

.music-controls i {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.music-controls i:hover {
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Volume Control */
.volume-control {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(60, 40, 90, 0.8);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
