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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100vw;
    max-height: 100vh;
}

/* Custom Controls */
.custom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 15;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: 2px solid #00ffcc;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #00ffcc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    font-family: 'Courier New', monospace;
    mix-blend-mode: screen;
    animation: control-glitch 6s infinite;
    text-shadow: 
        1px 1px 0 #ff00ff,
        -1px -1px 0 #00ffff;
    box-shadow: 
        0 0 10px rgba(0, 255, 204, 0.5),
        inset 0 0 10px rgba(0, 255, 204, 0.1);
}

.control-btn:hover {
    background: rgba(0, 255, 204, 0.2);
    transform: translate(1px, -1px) skew(0.5deg);
    color: #ffff00;
    border-color: #ffff00;
    box-shadow: 
        0 0 20px rgba(255, 255, 0, 0.8),
        inset 0 0 15px rgba(255, 255, 0, 0.2);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px currentColor);
}

.control-btn.active {
    background: rgba(255, 0, 255, 0.3);
    border-color: #ff00ff;
    color: #ff00ff;
    animation: control-active-glitch 2s infinite;
}

@keyframes control-glitch {
    0%, 100% {
        transform: translate(0, 0) skew(0deg);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(1px, -1px) skew(0.2deg);
    }
    40% {
        transform: translate(-1px, 0) skew(-0.1deg);
        filter: hue-rotate(10deg);
    }
    60% {
        transform: translate(0, 1px) skew(0.1deg);
    }
    80% {
        transform: translate(1px, 0) skew(-0.2deg);
    }
}

@keyframes control-active-glitch {
    0%, 100% {
        opacity: 1;
        transform: translate(0, 0);
    }
    25% {
        opacity: 0.8;
        transform: translate(-1px, 1px);
    }
    50% {
        opacity: 1;
        transform: translate(1px, -1px);
    }
    75% {
        opacity: 0.9;
        transform: translate(0, 1px);
    }
}

/* Swimming Soon Bug - Reality Glitch Edition */
.swimming-soon-bug {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 30px 50px;
    border-radius: 0;
    z-index: 10;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: default;
    mix-blend-mode: screen;
    animation: reality-glitch 8s infinite;
}

.bug-text {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #00ffcc;
    position: relative;
    animation: text-glitch 3s infinite;
    text-shadow: 
        2px 2px 0 #ff00ff,
        -2px -2px 0 #00ffff,
        0 0 20px rgba(0, 255, 204, 0.8);
}

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

.bug-text::before {
    animation: glitch-1 0.5s infinite;
    color: #ff00ff;
    z-index: -1;
}

.bug-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

.glitch-text {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    animation: static-reveal 4s infinite;
    letter-spacing: 1px;
    opacity: 0;
}

.frequency {
    display: block;
    font-size: 16px;
    color: #ffff00;
    margin-top: 5px;
    opacity: 0.8;
    animation: frequency-tune 6s infinite;
}

@keyframes reality-glitch {
    0%, 100% {
        transform: translate(0, 0) skew(0deg);
        filter: hue-rotate(0deg) saturate(1);
    }
    10% {
        transform: translate(2px, -1px) skew(0.5deg);
    }
    20% {
        transform: translate(-1px, 1px) skew(-0.5deg);
        filter: hue-rotate(90deg) saturate(2);
    }
    30% {
        transform: translate(0, 0) skew(0deg);
    }
    40% {
        transform: translate(1px, -2px) skew(0.2deg);
    }
    50% {
        filter: hue-rotate(180deg) saturate(1.5) brightness(1.2);
    }
    60% {
        transform: translate(-2px, 0) skew(-0.3deg);
    }
    70% {
        transform: translate(0, 1px) skew(0.1deg);
        filter: hue-rotate(270deg) saturate(0.8);
    }
    80% {
        transform: translate(3px, 0) skew(0deg);
    }
    90% {
        transform: translate(0, -1px) skew(-0.2deg);
    }
}

@keyframes text-glitch {
    0%, 100% {
        opacity: 1;
        transform: translate(0, 0);
    }
    20% {
        opacity: 0.8;
        transform: translate(-1px, 0);
    }
    40% {
        opacity: 1;
        transform: translate(1px, 0);
    }
    60% {
        opacity: 0.9;
        transform: translate(0, 1px);
    }
    80% {
        opacity: 1;
        transform: translate(0, -1px);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
        opacity: 0.8;
    }
    20% {
        transform: translate(-2px, 2px);
        opacity: 1;
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
        opacity: 0.8;
    }
    20% {
        transform: translate(2px, -2px);
        opacity: 1;
    }
    40% {
        transform: translate(2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
}

@keyframes static-reveal {
    0%, 100% {
        opacity: 0;
    }
    50%, 60% {
        opacity: 0.7;
    }
    52%, 58% {
        opacity: 0.3;
    }
    54%, 56% {
        opacity: 0.9;
    }
}

@keyframes frequency-tune {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.8;
    }
    25% {
        transform: scaleX(1.1);
        opacity: 0.6;
    }
    50% {
        transform: scaleX(0.95);
        opacity: 1;
    }
    75% {
        transform: scaleX(1.05);
        opacity: 0.7;
    }
}

/* Static noise effect overlay */
.swimming-soon-bug::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.03),
            rgba(255, 0, 255, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 0, 0.03),
            rgba(0, 255, 0, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    animation: static-lines 0.2s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes static-lines {
    0%, 100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-1px, -1px);
    }
    20% {
        transform: translate(1px, 1px);
    }
    30% {
        transform: translate(-1px, 1px);
    }
    40% {
        transform: translate(1px, -1px);
    }
    50% {
        transform: translate(0, 1px);
    }
    60% {
        transform: translate(1px, 0);
    }
    70% {
        transform: translate(0, -1px);
    }
    80% {
        transform: translate(-1px, 0);
    }
    90% {
        transform: translate(0, 0);
    }
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
    .video-container {
        overflow: hidden;
    }
    
    video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
    }
    
    .custom-controls {
        bottom: 15px;
        right: 15px;
        position: fixed;
        z-index: 20;
    }
    
    .control-btn {
        width: 44px;
        height: 44px;
    }
    
    .swimming-soon-bug {
        top: 10px;
        right: 10px;
        padding: 15px 25px;
    }
    
    .bug-text {
        font-size: 15px;
    }
    
    .glitch-text {
        font-size: 10px;
    }
    
    .frequency {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .video-container {
        overflow: hidden;
    }
    
    video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
    }
    
    .custom-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .swimming-soon-bug {
        padding: 12px 20px;
    }
    
    .bug-text {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .glitch-text {
        font-size: 9px;
    }
    
    .frequency {
        font-size: 10px;
    }
}

.video-container::before {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    z-index: 1;
}

.video-container.loaded::before {
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
} 