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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

#app-container {
    width: 100%;
    max-width: 1400px;
}

#tv-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

#tv-cabinet {
    position: relative;
    background: linear-gradient(135deg, #5C4033 0%, #8B6F47 50%, #5C4033 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 2px 10px rgba(255,255,255,0.1),
        inset 0 -2px 10px rgba(0,0,0,0.3);
}

#tv-top {
    position: absolute;
    top: -20px;
    left: 20px;
    right: 20px;
    height: 20px;
    background: linear-gradient(to bottom, #3a2a1f, #5C4033);
    border-radius: 10px 10px 0 0;
}

#tv-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

#screen-bezel {
    position: relative;
    background: #0a0a0a;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 
        inset 0 5px 15px rgba(0,0,0,0.8),
        0 0 30px rgba(0,255,255,0.1);
}

#screen-glass {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    border-radius: 8px;
    pointer-events: none;
}

#crt-screen {
    display: block;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,255,255,0.2);
    image-rendering: pixelated;
}

.speaker {
    width: 80px;
    height: 300px;
    background: 
        repeating-linear-gradient(
            0deg,
            #1a1a1a 0px,
            #1a1a1a 3px,
            #2a2a2a 3px,
            #2a2a2a 6px
        );
    border: 3px solid #0a0a0a;
    border-radius: 10px;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.5);
}

#tv-brand {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-top: 20px;
    letter-spacing: 3px;
}

#tv-model {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

#controls-panel {
    background: rgba(0,0,0,0.3);
    padding: 25px;
    border-radius: 15px;
    min-width: 300px;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.control-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.control-section:last-child {
    border-bottom: none;
}

.control-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.big-button {
    position: relative;
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 2px 5px rgba(255,255,255,0.2);
    transition: all 0.2s;
    margin: 10px;
    text-align: center;
}

.big-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.4);
}

.big-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.power-led {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0000;
}

.power-led.on {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

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

.channel-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.channel-control button {
    background: linear-gradient(135deg, #555, #333);
    border: 1px solid #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.channel-control button:hover {
    background: linear-gradient(135deg, #666, #444);
}

#channel-display {
    font-size: 32px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    min-width: 60px;
    text-align: center;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #888, #555);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #888, #555);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.input-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.input-btn {
    background: #333;
    border: 2px solid #444;
    color: #aaa;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}

.input-btn:hover {
    background: #444;
    border-color: #555;
}

.input-btn.active {
    background: #0a4a8a;
    border-color: #0a6aba;
    color: #fff;
    box-shadow: 0 0 10px rgba(10, 74, 138, 0.5);
}

.section-header {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    transition: all 0.2s;
}

.section-header:hover {
    background: rgba(255,255,255,0.15);
}

.section-content {
    display: none;
    padding-top: 15px;
}

.content-btn {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.content-btn:hover {
    background: #444;
}

select {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    width: 100%;
    background: #0a4a8a;
    border: 1px solid #0a6aba;
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s;
}

.file-upload-label:hover {
    background: #0a6aba;
}

.file-upload-label input[type="file"] {
    display: none;
}

#screenshot-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.2s;
}

#screenshot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

#footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

#footer p {
    margin: 8px 0;
    font-size: 14px;
}

#footer a {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: bold;
}

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

.disclaimer {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

.shortcuts {
    color: #aaa;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

@media (max-width: 1200px) {
    #tv-main {
        flex-direction: column;
    }
    
    .speaker {
        width: 200px;
        height: 60px;
        background: 
            repeating-linear-gradient(
                90deg,
                #1a1a1a 0px,
                #1a1a1a 3px,
                #2a2a2a 3px,
                #2a2a2a 6px
            );
    }
}

@media (max-width: 900px) {
    #crt-screen {
        width: 600px;
        height: 450px;
    }
    
    #tv-cabinet {
        padding: 25px;
    }
    
    #controls-panel {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 700px) {
    #crt-screen {
        width: 400px;
        height: 300px;
    }
    
    #tv-cabinet {
        padding: 20px;
    }
    
    .big-button {
        width: 60px;
        height: 60px;
        font-size: 9px;
    }
}

@media (max-width: 500px) {
    #crt-screen {
        width: 300px;
        height: 225px;
    }
    
    #screen-bezel {
        padding: 15px;
    }
    
    .speaker {
        width: 150px;
        height: 50px;
    }
}