:root {
    --primary: #0a0e27;
    --secondary: #1a237e;
    --accent: #7c4dff;
    --star-color: #ffffff;
    --nebula: #4a148c;
}

body {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--nebula));
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Animated stars background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: var(--star-color);
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* Floating planets */
.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    z-index: -1;
}

.planet-1 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #ff9800, #e65100);
    top: 10%;
    left: 10%;
    animation: float 20s infinite ease-in-out;
}

.planet-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #03a9f4, #01579b);
    bottom: 20%;
    right: 15%;
    animation: float 15s infinite ease-in-out reverse;
}

.planet-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #e91e63, #880e4f);
    top: 60%;
    left: 5%;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    text-align: center;
    padding: 15px 0;
    margin-bottom: 15px;
    background: rgba(10, 14, 39, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 77, 255, 0.3);
    box-shadow: 0 4px 30px rgba(124, 77, 255, 0.2);
}

.header h1 {
    font-weight: 800;
    font-size: 2.2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.header h2 {
    font-weight: 500;
    font-size: 1.3rem;
    margin: 8px 0 0;
    color: var(--accent);
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(124, 77, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.video-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: transform 0.3s ease;
}

.info-footer {
    padding: 15px 20px;
    background: rgba(10, 14, 39, 0.7);
    border-top: 1px solid rgba(124, 77, 255, 0.2);
    text-align: center;
}

.info-footer h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.info-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.controls {
    position: absolute;
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.8);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.control-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.zoom-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 14, 39, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(124, 77, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    .container-wrapper {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    .container-wrapper {
        padding: 10px;
    }

    .controls {
        bottom: 80px;
        right: 15px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-height: 800px) {
    .header {
        padding: 10px 0;
        margin-bottom: 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    .info-footer {
        padding: 10px 15px;
    }
}