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

body {
    background: #0a0a0a;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    color: #00ff41;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-container {
    width: 95vw;
    height: 95vh;
    background: #000;
    border: 2px solid #00ff41;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.terminal-header {
    background: #001100;
    padding: 8px 15px;
    border-bottom: 1px solid #00ff41;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-weight: bold;
    font-size: 14px;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 18px;
    height: 18px;
    border: 1px solid #00ff41;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.terminal-body {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.command-line {
    margin-bottom: 10px;
    font-size: 14px;
}

.prompt {
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.command {
    color: #ffffff;
    margin-left: 5px;
}

.status-line {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #003300;
}

.separator {
    color: #666;
}

.video-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.file-input {
    display: none;
}

.file-label,
.control-button {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.file-label:hover,
.control-button:hover:not(:disabled) {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
    transform: translateY(-1px);
}

.control-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.slider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: #003300;
    outline: none;
    border-radius: 2px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00ff41;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ff41;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.ascii-display {
    flex: 1;
    background: #000;
    border: 1px solid #003300;
    padding: 10px;
    font-size: 8px;
    line-height: 1;
    white-space: pre;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.3);
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #006600;
    font-size: 12px;
    line-height: 1.4;
}

.progress-bar {
    height: 30px;
    background: #001100;
    border: 1px solid #00ff41;
    position: relative;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    width: 0%;
    transition: width 0.1s;
    opacity: 0.3;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        width: 98vw;
        height: 98vh;
    }
    
    .video-controls,
    .settings {
        flex-wrap: wrap;
    }
    
    .ascii-display {
        font-size: 6px;
    }
}

/* Blinking cursor effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor {
    animation: blink 1s infinite;
}

/* Scan lines effect */
.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}