* {
    box-sizing: border-box;
}

body {
    background-color: #1a1512;
    background-image: radial-gradient(#33251a 20%, #1a1512 80%);
    font-family: 'VT323', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Le meuble en bois de la TV */
.tv-cabinet {
    background: linear-gradient(135deg, #5a3825, #3d2213);
    padding: 30px;
    border-radius: 35px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.8),
        inset 0 4px 10px rgba(255,255,255,0.2),
        inset 0 -10px 20px rgba(0,0,0,0.4);
    border: 8px solid #2b180d;
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Le cadre de l'écran (Plastique bombé) */
.screen-bezel {
    background: #282828;
    padding: 20px;
    border-radius: 40px;
    border: 4px solid #1f1f1f;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    flex-grow: 1;
    position: relative;
}

/* Écran cathodique (CRT) bombé et son effet incurvé */
.screen-container {
    position: relative;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    border: 10px solid #1c1c1c;
    aspect-ratio: 4 / 3;
    box-shadow: inset 0 0 80px rgba(0,0,0,1);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Effets de lignes de balayage CRT (Scanlines) */
.crt-effects {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 2;
    pointer-events: none;
}

/* Lueur de l'écran */
.screen-container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Panneau de contrôle sur le côté droit */
.control-panel {
    background: #221c18;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-width: 140px;
    border: 3px solid #15110f;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.tv-brand {
    color: #d4af37;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px black;
}

/* Gros boutons rétros */
.dial-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.btn-retro {
    background: linear-gradient(#444, #222);
    border: 2px solid #111;
    color: #ff9900;
    font-family: 'VT323', monospace;
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px #000;
    width: 90px;
    text-align: center;
    text-shadow: 0 0 4px rgba(255, 153, 0, 0.5);
}

.btn-retro:active {
    box-shadow: 0 1px #000;
    transform: translateY(3px);
}

.btn-retro.paused {
    color: #ff3333;
}

/* Potentiomètre de volume */
.volume-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    font-size: 16px;
    gap: 5px;
}

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

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: #888;
    cursor: pointer;
    border: 1px solid #000;
    box-shadow: inset 0 1px #fff;
}

/* Grille du haut-parleur rétro en bas */
.speaker-grille {
    width: 80px;
    height: 60px;
    background: linear-gradient(90deg, transparent 50%, #111 50%);
    background-size: 6px 100%;
    opacity: 0.4;
    margin-top: 20px;
}
.screen-play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    color: #ff9900;
    font-family: monospace;
    font-size: 20px;
}
.screen-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.play-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
