﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: none;
}

body {
    background-color: #000;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- CONTROL DE VOLUMEN --- */
.volume-control {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(12, 12, 12, 0.8);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(5px);
}

#volume-slider {
    width: 80px;
    accent-color: #a855f7;
    cursor: none;
}

#volume-icon {
    color: #a855f7;
    font-size: 1.1rem;
    width: 20px;
}

/* --- CURSOR PERSONALIZADO --- */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #a855f7;
    box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(168, 85, 247, 0.5);
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 999999;
    pointer-events: none;
}

/* --- EFECTO GLITCH --- */
.glitch {
    position: relative;
    display: inline-block;
}

    .glitch::before, .glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
    }

    .glitch::before {
        left: 2px;
        text-shadow: -2px 0 #ff00c1;
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim 5s infinite linear alternate-reverse;
    }

    .glitch::after {
        left: -2px;
        text-shadow: -2px 0 #00fff9;
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim2 5s infinite linear alternate-reverse;
    }

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 42px, 0);
    }

    40% {
        clip: rect(15px, 9999px, 81px, 0);
    }

    60% {
        clip: rect(77px, 9999px, 23px, 0);
    }

    80% {
        clip: rect(5px, 9999px, 59px, 0);
    }

    100% {
        clip: rect(42px, 9999px, 12px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 55px, 0);
    }

    40% {
        clip: rect(82px, 9999px, 15px, 0);
    }

    60% {
        clip: rect(22px, 9999px, 78px, 0);
    }

    80% {
        clip: rect(95px, 9999px, 31px, 0);
    }

    100% {
        clip: rect(12px, 9999px, 88px, 0);
    }
}

/* --- RESTO DEL DISEÑO --- */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: blur(4px) brightness(0.25);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(45, 0, 77, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.blink {
    font-family: 'Courier New', monospace;
    animation: blinker 1.5s linear infinite;
    font-size: 1.2rem;
    color: #a855f7;
    text-shadow: 0 0 10px #7e22ce;
}

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

.hidden {
    display: none !important;
}

.main-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    width: 90%;
    z-index: 10;
    perspective: 1000px;
}

/* --- AJUSTE DE TRANSPARENCIA PARA LOS PANELES --- */
.panel {
    background-color: rgba(15, 15, 15, 0.45);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 20px;
    transform-style: preserve-3d;
}

.glass-panel {
    backdrop-filter: blur(102px);
    -webkit-backdrop-filter: blur(102px);
}

.main-glow {
    box-shadow: 0 0 25px rgba(126, 34, 206, 0.2);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-header {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    flex-shrink: 0;
}

.username {
    font-size: 1.8rem;
    color: #f3e8ff;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

.verify-icon {
    color: #a855f7;
    font-size: 1rem;
}

.subtext {
    font-size: 0.9rem;
    color: #d8b4fe;
    margin: 3px 0 8px;
}

.joined {
    font-size: 0.75rem;
    color: #7e22ce;
    font-family: monospace;
}

/* --- NUEVO PANEL DE TIENDA UNIFICADO --- */
.panel-shop {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shop-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-name {
    font-size: 1.4rem;
    color: #f3e8ff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-link {
    font-size: 0.85rem;
    color: #a855f7;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

    .shop-link:hover {
        color: #d8b4fe;
        text-shadow: 0 0 8px #a855f7;
    }

.shop-description {
    font-size: 0.85rem;
    color: #e9d5ff;
    line-height: 1.5;
}

.panel-social {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 20px;
    background-color: rgba(15, 15, 15, 0.45);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
}

    .panel-social a {
        color: #e9d5ff;
        font-size: 1.5rem;
        transition: 0.3s;
    }

        .panel-social a:hover {
            color: #a855f7;
            transform: translateZ(20px) scale(1.2);
        }

.vistas {
    font-size: 0.75rem;
    color: #7e22ce;
    border-left: 1px solid rgba(168, 85, 247, 0.3);
    padding-left: 15px;
}

/* --- PANEL DE MÚSICA REESTRUCTURADO --- */
.panel-music {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
}

.album-art {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.music-info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    gap: 12px;
    overflow: hidden;
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.track-name {
    font-size: 1rem;
    font-weight: bold;
    color: #f3e8ff;
}

.now-playing-text {
    font-size: 0.8rem;
    color: #c084fc;
}

.player-controls {
    font-size: 1.2rem;
    color: #7e22ce;
    display: flex;
    gap: 15px;
}

    /* Animación Hover para botones de control de música */
    .player-controls i {
        transition: 0.2s;
    }

        .player-controls i:hover {
            color: #a855f7;
            transform: scale(1.2);
            text-shadow: 0 0 10px #a855f7;
        }

.music-progression {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.current-time, .total-time {
    font-size: 0.7rem;
    color: #a855f7;
    font-family: monospace;
    min-width: 35px;
}

.progress-bar {
    height: 5px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    flex-grow: 1;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #7e22ce, #a855f7);
    border-radius: 10px;
    box-shadow: 0 0 10px #a855f7;
    width: 0%;
}
