/* Estilo da TV Retrô */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2c1810, #1a0f08);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Container principal da TV */
.tv-container {
    position: relative;
    margin-bottom: 50px;
}

/* Frame da TV estilo retrô */
.tv-frame {
    width: 800px;
    height: 600px;
    background: linear-gradient(145deg, #8b4513, #654321);
    border-radius: 30px 30px 20px 20px;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.5),
        0 20px 40px rgba(0,0,0,0.8),
        0 0 100px rgba(139, 69, 19, 0.3);
    padding: 40px;
    position: relative;
    border: 8px solid #654321;
}

/* Tela da TV */
.tv-screen {
    width: 100%;
    height: 70%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 4px solid #333;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.5);
}

/* Container do vídeo */
#video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#player {
    width: 100%;
    height: 100%;
}

/* Efeito de estática */
.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.03) 2px,
            rgba(255,255,255,0.03) 4px
        );
    pointer-events: none;
    opacity: 0.3;
    animation: static 0.5s infinite;
}

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

/* Controles da TV */
.tv-controls {
    height: 25%;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #654321, #4a3018);
    border-radius: 10px;
    padding: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

/* Botões de controle */
.control-buttons {
    display: flex;
    gap: 15px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #8b4513, #654321);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 
        3px 3px 6px rgba(0,0,0,0.5),
        -1px -1px 2px rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        4px 4px 8px rgba(0,0,0,0.6),
        -1px -1px 2px rgba(255,255,255,0.2);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 
        1px 1px 3px rgba(0,0,0,0.7),
        -1px -1px 2px rgba(255,255,255,0.1);
}

.control-btn.small {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.btn-label {
    font-size: 10px;
    text-align: center;
}

/* Controle de volume */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.volume-bar {
    width: 80px;
    height: 8px;
    background: #2c1810;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    width: 50%;
    transition: width 0.3s ease;
}

.volume-text {
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

/* Indicadores */
.indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-indicator, .power-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
}

.indicator-label {
    font-size: 10px;
    color: #ccc;
}

.indicator-value {
    font-weight: bold;
    color: #f7931e;
    font-size: 14px;
}

.power-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: power-blink 2s infinite;
}

@keyframes power-blink {
    0%, 80% { opacity: 1; }
    90% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Pés da TV */
.tv-legs {
    display: flex;
    justify-content: space-between;
    width: 600px;
    margin: -20px auto 0;
}

.tv-leg {
    width: 30px;
    height: 60px;
    background: linear-gradient(145deg, #654321, #4a3018);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.tv-leg.left {
    margin-left: 50px;
}

.tv-leg.right {
    margin-right: 50px;
}

/* Créditos */
.credits {
    text-align: center;
    color: #8b4513;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 20px;
    letter-spacing: 1px;
}

/* Responsividade */
@media (max-width: 900px) {
    .tv-frame {
        width: 90vw;
        height: 70vh;
        padding: 20px;
    }
    
    .tv-controls {
        flex-direction: column;
        gap: 15px;
        height: auto;
        padding: 15px;
    }
    
    .control-buttons {
        order: 2;
    }
    
    .volume-control {
        order: 1;
    }
    
    .indicators {
        order: 3;
        flex-direction: row;
        justify-content: center;
    }
    
    .tv-legs {
        width: 80%;
    }
}

@media (max-width: 600px) {
    .tv-frame {
        border-radius: 15px 15px 10px 10px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
    
    .control-btn.small {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}