* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #16213e 100%);
    color: #00ff41;
    font-family: 'Orbitron', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 255, 65, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.logo {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff0080, #00ff41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 128, 0.5));
}

.tagline {
    font-size: 1rem;
    color: #00ff41;
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    gap: 0;
}

.toggle-button {
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 0.8rem 2.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-button:first-child {
    border-radius: 25px 0 0 25px;
}

.toggle-button:last-child {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

.toggle-button.active {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border-color: #00ff41;
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.2);
}

.toggle-button:hover:not(.active) {
    border-color: rgba(0, 255, 65, 0.6);
}

.video-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    /* Removed green background - now fully transparent */
}

.video-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.video-container {
    position: relative;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
}

.video-container:hover {
    transform: translateY(-4px);
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.video-container.horizontal {
    width: 320px;
    height: 180px;
}

.video-container.vertical {
    width: 180px;
    height: 320px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.play-icon.hidden {
    opacity: 0;
}

.plus-sign, .equals-sign {
    font-size: 2.5rem;
    color: #ff0080;
    font-weight: 300;
    opacity: 0.8;
}

.mosh-controls {
    text-align: center;
}

.mosh-button {
    background: transparent;
    border: 2px solid #ff0080;
    color: #ff0080;
    padding: 1rem 3rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.mosh-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff0080, #00ff41);
    transition: left 0.3s ease;
    z-index: -1;
}

.mosh-button:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 128, 0.3);
}

.mosh-button:hover::before {
    left: 0;
}

.mosh-button:active {
    transform: translateY(0);
}

.result-container {
    margin-top: 2rem;
    text-align: center;
}

.result-video {
    display: none;
}

.result-video.show {
    display: block !important;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.loader {
    display: none;
    margin: 0 auto;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 255, 65, 0.1);
    border-top: 2px solid #00ff41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader.show {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-section {
    text-align: center;
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.download-button {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 1.2rem 3rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00ff41, #ff0080);
    transition: left 0.3s ease;
    z-index: -1;
}

.download-button:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.3);
}

.download-button:hover::before {
    left: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .header {
        margin-bottom: 3rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .toggle-button {
        padding: 0.7rem 2rem;
        font-size: 0.8rem;
    }
    
    .video-row {
        gap: 1rem;
    }
    
    .video-container.horizontal {
        width: 280px;
        height: 157px;
    }
    
    .video-container.vertical {
        width: 157px;
        height: 280px;
    }
    
    .plus-sign, .equals-sign {
        font-size: 2rem;
    }
    
    .mosh-button {
        padding: 0.9rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .download-section {
        margin-top: 4rem;
        padding-top: 2rem;
    }
}