body {
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; 
    position: relative;
}

.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a10, #1a1a2e, #00334d, #1a1a2e, #0a0a10);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path fill="%239C92AC" fill-opacity="0.05" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"></path></svg>');
    z-index: -1;
}



.menu-bar {
    width: clamp(300px, 50%, 500px); 
    background-color: rgba(25, 25, 35, 0.8); 
    backdrop-filter: blur(10px);
    padding: 10px 20px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); 
    position: sticky;
    top: 20px; 
    z-index: 10;
    margin-bottom: 50px; 
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: all 0.3s ease;
}

.menu-bar:hover {
     box-shadow: 0 12px 35px rgba(0, 170, 255, 0.3); 
}

.menu-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; 
    align-items: center; 
}

.menu-bar li {
    margin: 0 10px; 
}

.menu-bar a {
    color: #00aaff;
    text-decoration: none;
    font-weight: 500; 
    padding: 8px 18px; 
    border-radius: 30px; 
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block; 
}

.menu-bar a:hover {
    background-color: rgba(0, 170, 255, 0.25);
    color: #ffffff;
}


.container {
    background-color: rgba(35, 35, 45, 0.88); 
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px; 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    max-width: 650px; 
    width: 90%; 
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    margin: 20px auto 40px auto; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-8px); 
    box-shadow: 0 18px 45px rgba(0, 170, 255, 0.35); 
}

h1 {
    color: #00aaff;
    margin-bottom: 20px;
    text-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
}

.instructions {
    font-size: 0.95em;
    color: #c0c0c0;
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.6;
}


textarea {
    width: 100%;
    
    min-height: 24px;  
    max-height: 30px; 
    height: 28px;      

    background-color: rgba(42, 42, 42, 0.9);
    border: 1px solid #555;
    border-radius: 8px; 
    color: #a0a0a0; 
    padding: 4px 12px; 
    margin-bottom: 25px;
    box-sizing: border-box;
    font-family: Consolas, monospace;
    font-size: 0.8em; 
    line-height: 1.3; 
    resize: none; 
    overflow: hidden; 
    white-space: nowrap; 
}


button {
    background: linear-gradient(45deg, #00aaff, #0077cc);
    color: #ffffff;
    border: none;
    padding: 15px 35px; 
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 30px; 
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(0, 170, 255, 0.35);
    margin-bottom: 30px;
}

button:hover {
    background: linear-gradient(45deg, #0077cc, #005fa3);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.5);
    transform: translateY(-3px);
}


.video-container {
    margin-top: 25px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden; 
    max-width: 100%;
    background: #000;
    border-radius: 16px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px; 
}

#statusMessage {
    margin-top: 20px;
    min-height: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

#statusMessage.success { color: #4CAF50; }
#statusMessage.error { color: #ff4d4d; }
#statusMessage.processing { color: #00aaff; }