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

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.tv-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.tv-set {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.4),
        -5px -5px 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tv-bezel {
    background: linear-gradient(145deg, #333, #222);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 
        inset 5px 5px 15px rgba(0, 0, 0, 0.5),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1);
}

#screen {
    background: #000000;
    border-radius: 10px;
    display: block;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 100, 255, 0.2);
}

.power-led {
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.power-led.off {
    background: #660000;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.power-led.on {
    background: #00ff00;
    box-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite ease-in-out;
}

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

.brand-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.controls-panel {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.power-btn {
    background: linear-gradient(145deg, #ff4444, #cc2222);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 
        5px 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.power-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        7px 7px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
}

.power-btn:active {
    transform: translateY(1px);
    box-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.channel-controls, .volume-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-btn {
    background: linear-gradient(145deg, #cccccc, #999999);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 3px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    min-width: 50px;
}

.control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        4px 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

.control-btn:active {
    transform: translateY(1px);
    box-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.4),
        inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.remote-control {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: 
        15px 15px 30px rgba(0, 0, 0, 0.4),
        -3px -3px 15px rgba(255, 255, 255, 0.1);
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.remote-header {
    color: #888;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 10px;
}

.remote-btn {
    background: linear-gradient(145deg, #444, #333);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 0 3px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    min-width: 40px;
    min-height: 40px;
}

.remote-btn.power {
    background: linear-gradient(145deg, #ff4444, #cc2222);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.remote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
}

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

.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0;
}

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

.footer {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .tv-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tv-set {
        padding: 20px;
    }
    
    .tv-bezel {
        padding: 20px;
    }
    
    #screen {
        width: 90vw;
        max-width: 600px;
        height: auto;
        aspect-ratio: 4/3;
    }
    
    .controls-panel {
        gap: 10px;
        margin-top: 20px;
    }
    
    .power-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .control-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .remote-control {
        max-width: none;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .tv-set {
        padding: 15px;
    }
    
    .tv-bezel {
        padding: 15px;
    }
    
    .controls-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .channel-controls, .volume-controls {
        flex-direction: row;
        gap: 10px;
    }
}

/* Easter egg animation */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.tv-set.rainbow {
    animation: rainbow 2s linear infinite;
}