body, html {
    margin: 0; padding: 0;
    background: #000;
    color: #c00;
    font-family: monospace;
    overflow: hidden;
}

.vcr-container {
    position: relative;
    width: 100vw; height: 100vh;
}

#vcr-video { width: 100%; height: 100%; object-fit: cover; }

#noise-canvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; opacity: 0; z-index: 2;
}

.vhs-disturb {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(transparent, transparent 15%, rgba(255,255,255,0.1) 20%, transparent 25%);
    background-size: 100% 200%;
    display: none; z-index: 3;
    animation: moveBands 0.5s linear infinite;
}

@keyframes moveBands { from { background-position: 0 0; } to { background-position: 0 -100%; } }

/* UI e Rulli */
.vcr-ui {
    position: absolute; bottom: 40px; left: 40px; z-index: 10;
}

.tape-reels {
    display: flex; gap: 20px; margin-bottom: 10px; opacity: 0.6;
}

.reel {
    width: 25px; height: 25px;
    border: 1px solid #c00;
    border-radius: 50%;
    position: relative;
    animation: rotate 2s linear infinite;
    animation-play-state: paused;
}

/* Il "trattino" del nastro che gira */
.reel::after {
    content: '';
    position: absolute; top: 2px; left: 50%;
    width: 2px; height: 6px; background: #c00;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.lcd { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: 2px; }

.label-info {
    margin-top: 15px; font-size: 0.9rem; text-transform: uppercase;
   
}

.controls button {
    background: transparent; border: 1px solid #c00;
    color: #c00; padding: 10px 15px; cursor: pointer; transition: 0.2s;
}

.controls button:hover { background: #c00; color: #000; }
#screen-warning {
    display: none; /* Nascosto di default */
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: #c00; /* Rosso avviso o usa #0f0 per stile VCR */
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    z-index: 9999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1000px) {
	

.vcr-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh; 
    overflow: hidden;
}


.vcr-ui {
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%; 
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.6); 
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px); 
}


.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.controls button {
    flex: 1; 
    min-height: 44px; 
    padding: 10px;
    font-size: 1.2rem;
}
}

@media (max-width: 480px) {
    .tape-reels {
        transform: scale(0.8);
    }
    .lcd {
        font-size: 1rem;
    }
}



/* Mostra l'avviso solo sotto i 1000px di larghezza */
@media screen and (max-width: 1000px) {
    #screen-warning {
        display: block;
    }
}

