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

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

body {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    font-family: 'Courier Prime', monospace;
    padding: 20px;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

#container {
    max-width: 800px;
    margin: 0 auto;
}

#vcr-body {
    background: linear-gradient(145deg, #F5F5DC, #E0E0E0);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        inset 0 2px 10px rgba(0,0,0,0.1),
        0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid #D3D3D3;
}

#tape-slot {
    background: linear-gradient(180deg, #1a1a1a, #333);
    height: 80px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    border: 2px inset #666;
    overflow: hidden;
}

#vhs-tape {
    background: linear-gradient(145deg, #2C2C2C, #1a1a1a);
    width: 200px;
    height: 60px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    transition: all 0.5s ease;
    border: 1px solid #444;
}

#vhs-tape.ejected {
    transform: translateX(-50%) translateY(-40px);
}

#tape-label {
    color: white;
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

#tape-reels {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px 0;
}

.reel {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #444 30%, #222 70%);
    border-radius: 50%;
    border: 1px solid #666;
}

#screen-container {
    position: relative;
    margin: 20px auto;
    width: 480px;
    height: 360px;
}

#canvas {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

#screen-bezel {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(145deg, #2C2C2C, #1a1a1a);
    border-radius: 20px;
    z-index: -1;
    border: 3px outset #444;
}

#control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(145deg, #E8E8E8, #D0D0D0);
    border-radius: 10px;
    border: 2px inset #CCC;
}

#led-display {
    background: #000;
    color: #00FF41;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px inset #333;
    text-shadow: 0 0 10px #00FF41;
    min-width: 100px;
    text-align: center;
}

#buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(145deg, #F0F0F0, #D8D8D8);
    border: 2px outset #DDD;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.1s ease;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
}

.control-btn:hover {
    background: linear-gradient(145deg, #E8E8E8, #D0D0D0);
}

.control-btn:active {
    border: 2px inset #CCC;
    transform: translateY(1px);
}

.record-btn.recording {
    background: linear-gradient(145deg, #FF6B6B, #FF4444);
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    animation: pulse 1s infinite;
}

#tracking-control, #volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#tracking-control label, #volume-control label {
    font-size: 10px;
    font-weight: bold;
    color: #333;
}

input[type="range"] {
    width: 80px;
    height: 20px;
    background: linear-gradient(90deg, #666, #AAA);
    border-radius: 10px;
    outline: none;
    border: 1px inset #999;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: linear-gradient(145deg, #F0F0F0, #D0D0D0);
    border-radius: 50%;
    border: 1px outset #DDD;
    cursor: pointer;
}

#tape-library {
    margin-top: 30px;
    background: linear-gradient(145deg, #8B4513, #A0522D);
    padding: 20px;
    border-radius: 10px;
    border: 2px outset #A0522D;
}

#tape-library h3 {
    color: #F5DEB3;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#tape-shelf {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.shelf-tape {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
}

.shelf-tape:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

#easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.rewind-message {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B4513;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border: 3px solid #FF8C00;
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.05); }
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    #container {
        padding: 10px;
    }
    
    #vcr-body {
        padding: 20px;
    }
    
    #screen-container {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/3;
    }
    
    #control-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    #buttons {
        justify-content: center;
    }
    
    .control-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .control-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    #led-display {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    #tape-shelf {
        gap: 8px;
    }
    
    .shelf-tape {
        font-size: 20px;
        padding: 8px;
    }
}

footer a {
    color: #8B4513;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}