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

body {
    min-height: 100vh;
    background: 
        repeating-linear-gradient(
            45deg,
            #4a3728 0px,
            #4a3728 2px,
            #3d2d20 2px,
            #3d2d20 4px
        ),
        linear-gradient(to bottom, #5c4033, #3d2d20);
    font-family: 'VT323', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

#living-room {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

#tv-container {
    width: 100%;
    perspective: 1000px;
}

#tv-cabinet {
    display: flex;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wood-panel {
    width: 40px;
    background: 
        repeating-linear-gradient(
            90deg,
            #8B4513 0px,
            #A0522D 3px,
            #8B4513 6px
        ),
        linear-gradient(180deg, #9b6b4a 0%, #6b4423 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

#wood-panel-left {
    border-radius: 8px 0 0 8px;
}

#wood-panel-right {
    border-radius: 0 8px 8px 0;
}

#tv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

#brand-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: #c0a060;
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 4px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#brand-badge:hover {
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
}

.strawberry {
    font-size: 16px;
}

#quality-sticker {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6px;
    color: #ffd700;
    background: linear-gradient(135deg, #8b7355 0%, #6b5335 100%);
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid #ffd700;
}

#screen-bezel {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4/3;
    overflow: hidden;
}

#tv-screen {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #000;
}

#screen-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 10px;
    pointer-events: none;
    background: 
        radial-gradient(
            ellipse at center,
            transparent 0%,
            transparent 70%,
            rgba(0, 0, 0, 0.3) 100%
        );
    box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.03);
}

#power-off-screen {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #111;
    border-radius: 10px;
    display: none;
}

#power-off-screen.show {
    display: block;
}

#ticker-container {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    background: linear-gradient(90deg, #000080, #0000aa);
    padding: 5px 10px;
    border-radius: 3px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

#ticker-container.show {
    opacity: 1;
    transform: translateY(0);
}

#ticker-text {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    white-space: nowrap;
    animation: tickerScroll 5s linear;
}

@keyframes tickerScroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

#speaker-grille {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 10px;
}

.speaker-mesh {
    width: 100px;
    height: 40px;
    background: 
        repeating-linear-gradient(
            0deg,
            #2a2a2a 0px,
            #2a2a2a 2px,
            #1a1a1a 2px,
            #1a1a1a 4px
        );
    border-radius: 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

#control-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 8px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.button-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tv-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    box-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.5),
        -2px -2px 6px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
    transition: all 0.1s ease;
    position: relative;
}

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

.tv-button:active {
    box-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.tv-button.small {
    width: 35px;
    height: 35px;
    font-size: 20px;
    font-weight: bold;
}

.tv-button.radical {
    background: linear-gradient(145deg, #ff6b6b, #cc4444);
    animation: radicalPulse 2s ease-in-out infinite;
}

.tv-button.radical:hover {
    background: linear-gradient(145deg, #ff8888, #dd5555);
}

@keyframes radicalPulse {
    0%, 100% { box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 100, 100, 0.3); }
    50% { box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 100, 100, 0.6); }
}

.button-face {
    display: flex;
    align-items: center;
    justify-content: center;
}

.led {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.led.on {
    background: #ff3333;
    box-shadow: 
        0 0 10px #ff3333,
        0 0 20px #ff0000,
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.led-display {
    font-family: 'VT323', monospace;
    font-size: 24px;
    color: #ff3333;
    background: #1a1a1a;
    padding: 5px 10px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 10px #ff3333;
}

#volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 10px;
    background: linear-gradient(90deg, #333, #555);
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 30px;
    background: linear-gradient(145deg, #666, #444);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#volume-slider::-moz-range-thumb {
    width: 20px;
    height: 30px;
    background: linear-gradient(145deg, #666, #444);
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

/* Remote Control */
#remote-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.remote-body {
    width: 120px;
    padding: 20px 15px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px 15px 30px 30px;
    box-shadow: 
        5px 5px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.remote-brand {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: #888;
    text-align: center;
    margin-bottom: 10px;
}

.ir-window {
    width: 30px;
    height: 8px;
    background: #1a0000;
    border-radius: 4px;
    margin: 0 auto 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ir-window.flash {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.remote-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.remote-row {
    display: flex;
    gap: 10px;
}

.remote-btn {
    min-width: 40px;
    height: 30px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(145deg, #4a4a4a, #333);
    color: #ccc;
    font-family: 'VT323', monospace;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
}

.remote-btn:hover {
    background: linear-gradient(145deg, #5a5a5a, #444);
}

.remote-btn:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.remote-btn.power {
    background: linear-gradient(145deg, #8b0000, #5a0000);
    color: #fff;
}

.remote-btn.mute {
    width: 80px;
}

.remote-btn.awesome {
    width: 80px;
    background: linear-gradient(145deg, #ff6b9d, #cc4477);
    color: #fff;
    font-weight: bold;
    animation: awesomePulse 1.5s ease-in-out infinite;
}

@keyframes awesomePulse {
    0%, 100% { box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3), 0 0 5px rgba(255, 100, 150, 0.3); }
    50% { box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 100, 150, 0.6); }
}

.remote-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #888;
    margin-top: 10px;
}

.remote-switch input[type="checkbox"] {
    -webkit-appearance: none;
    width: 40px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.remote-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #888;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
}

.remote-switch input[type="checkbox"]:checked::before {
    left: 22px;
}

footer {
    margin-top: 30px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #888;
    text-align: center;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .wood-panel {
        width: 20px;
    }
    
    #brand-badge {
        font-size: 10px;
    }
    
    #quality-sticker {
        display: none;
    }
    
    #screen-bezel {
        padding: 10px;
        border-radius: 10px;
    }
    
    #control-panel {
        gap: 8px;
        padding: 10px;
    }
    
    .tv-button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .tv-button.small {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .led-display {
        font-size: 18px;
        padding: 3px 6px;
        min-width: 40px;
    }
    
    #volume-slider {
        width: 70px;
    }
    
    .speaker-mesh {
        width: 60px;
        height: 25px;
    }
    
    #remote-control {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
    }
    
    .remote-body {
        width: 100px;
        padding: 15px 10px;
    }
    
    .button-label {
        font-size: 8px;
    }
    
    #ticker-container {
        bottom: 25px;
        left: 10px;
        right: 10px;
    }
    
    #ticker-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #control-panel {
        gap: 5px;
    }
    
    .control-group {
        gap: 3px;
    }
    
    .wood-panel {
        width: 10px;
    }
    
    #tv-cabinet {
        padding: 8px;
    }
    
    .strawberry {
        display: none;
    }
}