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

body {
    background-color: #000000;
    color: white;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER Y NAV --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000; 
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #00f2ff;
}

img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

/* --- CONTENEDOR PRINCIPAL --- */
.stream-container {
    padding: 30px 20px 100px 20px;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
}

/* TÍTULO */
.bloque-reproductor {
    text-align: center;
    margin-bottom: 30px;
}

.bloque-reproductor h1 {
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 12px;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(0, 242, 255, 0.8),
        0 0 20px rgba(255, 0, 255, 0.5);
}

/* --- SECCIÓN DE BÚSQUEDA --- */
.search-container {
    display: flex;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#query {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.btn-buscar {
    background: linear-gradient(90deg, #ff00ff, #00f2ff, #ff00ff);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 0 35px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.4s ease;
}

/* --- REPRODUCTOR --- */
.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- NEBULOSA Y VAPORES --- */
.nebulosa-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
    overflow: hidden;
}

.vapor {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(80px);
    animation: movimientoEpico 15s infinite alternate ease-in-out;
}

/* Definición de Colores y Posiciones */
.v-magenta {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.4) 0%, transparent 70%);
    top: -10%; left: -10%;
}

.v-aqua {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    bottom: -10%; right: -10%;
    animation-duration: 20s;
}

.v-azul-marino {
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0, 20, 150, 0.4) 0%, transparent 70%);
    top: 20%; left: 30%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.v-blanco {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: 40%; left: 50%;
    filter: blur(50px);
    animation-duration: 12s;
}

.v-rojo-claro {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 80, 80, 0.3) 0%, transparent 70%);
    bottom: 10%; left: 5%;
    animation-duration: 18s;
}

.v-aqua-deep {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(0, 150, 255, 0.3) 0%, transparent 70%);
    top: 5%; right: 15%;
    animation-delay: -3s;
}

.v-magenta-dark {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(150, 0, 150, 0.3) 0%, transparent 70%);
    bottom: 20%; right: 30%;
    animation-duration: 22s;
}

.v-brillo {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 80%);
    top: 10%; left: 40%;
    filter: blur(40px);
    animation-duration: 10s;
}

/* --- ANIMACIÓN NOTORIA --- */
@keyframes movimientoEpico {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(150px, 100px) scale(1.2) rotate(15deg);
    }
    100% {
        transform: translate(-100px, 200px) scale(0.9) rotate(-15deg);
    }
}


/* FOOTER */
.footer-simple {
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}


@media (max-width: 768px) {
    .bloque-reproductor h1 {
        font-size: 2.2rem;
        letter-spacing: 6px;
    }
    
    .btn-buscar {
        padding: 0 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .bloque-reproductor h1 {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .search-container {
        flex-direction: column; 
    }

    .btn-buscar {
        padding: 15px;
        width: 100%;
    }

    .stream-container {
        padding: 20px 15px 60px 15px;
    }
}