@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

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

body {
    background: linear-gradient(135deg, #2c1810, #1a0f08);
    color: #fff;
    font-family: 'Courier Prime', monospace;
    min-height: 100vh;
    padding: 20px;
    overflow-x: auto;
}

.tv-cabinet {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(145deg, #8b4513, #654321);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.8),
        inset 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
}

.tv-cabinet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 1px,
        rgba(0,0,0,0.1) 1px,
        rgba(0,0,0,0.1) 2px
    );
    border-radius: 15px;
    pointer-events: none;
}

.tv-brand {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 24px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.tv-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.8),
        0 0 30px rgba(0,0,0,0.5);
}

.screen-bezel {
    position: relative;
    background: #000;
    border-radius: 15px;
    padding: 20px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
}

#vhs-canvas {
    width: 100%;
    max-width: 640px;
    height: auto;
    background: #000011;
    border-radius: 10px;
    filter: contrast(1.1) brightness(0.95);
    display: block;
    margin: 0 auto;
}

.screen-reflection {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255,255,255,0.05) 100%
    );
    border-radius: 10px;
    pointer-events: none;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,255,0,0.03) 2px,
        rgba(0,255,0,0.03) 4px
    );
    pointer-events: none;
    border-radius: 15px;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.vhs-timestamp {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: #00ff00;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 3px;
    text-shadow: 0 0 5px #00ff00;
}

.controls-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.transport-controls {
    text-align: center;
    position: relative;
}

.transport-controls .vhs-btn {
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.1);
}

.transport-controls .vhs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 7px 20px rgba(0,0,0,0.6),
        inset 0 2px 4px rgba(255,255,255,0.2);
}

.transport-controls .vhs-btn:active,
.transport-controls .vhs-btn.active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.6),
        inset 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
}

.status-leds {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.led.active {
    background: #00ff00;
    box-shadow: 
        0 0 10px #00ff00,
        inset 0 2px 4px rgba(255,255,255,0.3);
}

#rec-led.active {
    background: #ff0000;
    box-shadow: 
        0 0 10px #ff0000,
        inset 0 2px 4px rgba(255,255,255,0.3);
}

.adjustment-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.slider-group {
    text-align: center;
}

.slider-group label {
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}

.vhs-slider {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.vhs-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #ffd700, #ffaa00);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.vhs-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #ffd700, #ffaa00);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.input-panel {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.input-panel h3 {
    font-family: 'Orbitron', monospace;
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
}

.input-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-btn {
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: linear-gradient(145deg, #5a5a5a, #3a3a3a);
}

.tab-btn.active {
    background: linear-gradient(145deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#text-input {
    width: 100%;
    height: 150px;
    background: #000;
    color: #00ff00;
    border: 2px solid #333;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

#text-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0,255,0,0.3);
}

.text-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.text-controls select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 5px 10px;
    font-family: 'Courier Prime', monospace;
}

.demo-btn {
    display: block;
    width: 100%;
    background: linear-gradient(145deg, #2a4a2a, #1a3a1a);
    border: none;
    color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: linear-gradient(145deg, #3a5a3a, #2a4a2a);
    transform: translateX(5px);
}

#camera-btn {
    background: linear-gradient(145deg, #4a2a2a, #3a1a1a);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    display: block;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

#camera-btn:hover {
    background: linear-gradient(145deg, #5a3a3a, #4a2a2a);
}

.camera-note {
    text-align: center;
    color: #ccc;
    font-size: 12px;
    font-style: italic;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.berrry-link {
    font-family: 'Orbitron', monospace;
}

.retro-text {
    color: #ccc;
    font-size: 12px;
    margin-right: 10px;
}

.berrry-logo {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.berrry-logo:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tv-cabinet {
        padding: 15px;
    }
    
    .controls-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .adjustment-panel {
        grid-template-columns: 1fr;
    }
    
    .transport-controls .vhs-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 3px;
    }
    
    .tv-brand {
        font-size: 18px;
    }
    
    #text-input {
        height: 120px;
        font-size: 12px;
    }
    
    .text-controls {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .input-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        margin-bottom: 5px;
    }
    
    .transport-controls .vhs-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 2px;
    }
}