@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;600&display=swap');

:root {
    --primary-color: #ff0000;
    --primary-glow: rgba(255, 0, 0, 0.7);
    --bg-color: #0b0b0b;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 10px var(--primary-glow);
    transition:
        width 0.2s ease,
        height 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
    opacity: 1;
}

.cursor-hover {
    width: 35px !important;
    height: 35px !important;
    background-color: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Background */
#background-container {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: #000;
}

#bg-motion-layer {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    transform: translate3d(0, 0, 0) scale(1.15);
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

#bg-video,
#background-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    transform-origin: center center;
    filter: grayscale(40%) sepia(30%) brightness(0.55) contrast(1.25);
}

#bg-video {
    display: none;
}

#background-img {
    display: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#background-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.75);
    background-image:
        radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.95) 100%),
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.35) 50%);
    background-size: 100% 100%, 100% 4px;
}

#background-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Rain */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.raindrop {
    position: absolute;
    background: linear-gradient(to bottom, rgba(200,200,200,0), rgba(200,200,200,0.45));
    width: 1.5px;
    animation: rain-fall linear infinite;
    border-radius: 5px;
}

@keyframes rain-fall {
    0% { transform: translateY(-150px) translateX(50px) rotate(15deg); }
    100% { transform: translateY(110vh) translateX(-250px) rotate(15deg); }
}

/* Enter screen */
#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0b0b;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-out, visibility 1s;
}

#enter-screen p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Main content */
#main-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
    transition: opacity 2s ease-in;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatAnim 6s ease-in-out infinite alternate;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.glow {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.title {
    font-family: 'Courier Prime', monospace;
    font-size: 4.8rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 10px #fff,
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 80px var(--primary-color),
        0 0 120px var(--primary-color);
    animation: neon-flicker 2s infinite alternate;
}

@keyframes color-flow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
        text-shadow:
            0 0 10px #fff,
            0 0 20px var(--primary-color),
            0 0 40px var(--primary-color),
            0 0 80px var(--primary-color),
            0 0 120px var(--primary-color);
    }
    20%, 24%, 55% {
        opacity: 0.7;
        text-shadow: 0 0 10px var(--primary-color);
    }
}

.subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

.location {
    color: var(--primary-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    text-shadow: 0 0 5px var(--primary-glow);
}

/* Audio controls */
#audio-control-wrapper {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

#audio-toggle {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-shadow: 0 0 5px var(--primary-glow);
    transition: transform 0.2s, background 0.2s;
    backdrop-filter: blur(5px);
}

#audio-toggle:hover {
    transform: scale(1.05);
    background: rgba(255,0,0,0.1);
}

.volume-slider-container {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
}

#audio-control-wrapper:hover .volume-slider-container {
    opacity: 1;
    width: 100px;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: none;
    margin-top: -4px;
    box-shadow: 0 0 5px var(--primary-color);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: none;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Discord card */
.discord-card {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.6);
    padding: 12px 25px;
    border-radius: 50px;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 15px 0;
    transition: all 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow);
    animation: color-flow 3s linear infinite;
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #2f3136;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #23a559;
    border: 3px solid #000;
}

.discord-info {
    display: flex;
    flex-direction: column;
}

.username-wrapper {
    display: flex;
    align-items: center;
}

.d-username {
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-shadow: 0 0 5px var(--primary-glow);
}

.badges {
    display: inline-flex;
    gap: 5px;
    color: #fff;
    font-size: 0.9rem;
    margin-left: 8px;
    opacity: 0.8;
}

.d-status-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 2px;
}

/* Social links */
.social-links {
    display: flex;
    gap: 30px;
    margin: 10px 0 20px 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--primary-glow);
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.social-icon:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-8px) scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
    animation: color-flow 2s linear infinite;
    text-shadow: none;
}

.view-counter {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--primary-glow);
    background: rgba(10, 10, 10, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: 50;
    transition: all 0.3s ease;
}

.view-counter:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: color-flow 4s linear infinite;
}

/* Music player */
.music-player {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.6);
    padding: 22px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow);
    animation: color-flow 3s linear infinite;
}

.album-art img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid rgba(255,0,0,0.4);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.song-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--primary-color);
    width: 100%;
}

.progress-bar-bg {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: width 0.1s linear;
}

.player-buttons {
    display: flex;
    gap: 16px;
    font-size: 1.5rem;
    margin-left: 10px;
}

.player-buttons i {
    transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
}

.player-buttons i:hover {
    color: #fff;
    text-shadow: 0 0 10px #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }

    #audio-control-wrapper {
        top: 20px;
        left: 20px;
    }

    .view-counter {
        top: 20px;
        right: 20px;
    }

    #bg-motion-layer {
        top: -14%;
        left: -14%;
        width: 128%;
        height: 128%;
    }
}

@media (max-width: 520px) {
    .container {
        width: 92%;
    }

    .discord-card {
        padding: 12px 16px;
        gap: 12px;
    }

    .music-player {
        max-width: 100%;
    }

    .progress-row {
        gap: 8px;
    }

    .player-buttons {
        gap: 8px;
    }
}
