@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 600px;
    height: 400px;
    background: #111;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.tape-reel {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: repeating-conic-gradient(#fff 0deg 30deg, #222 30deg 60deg);
    animation: spin 3s linear infinite;
}

/* Base animation plays forward */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    pointer-events: none;
    z-index: 10;
}

.status {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 2rem;
    text-shadow: 2px 2px 0px #000;
    z-index: 15;
}

.static {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent, transparent 2px, rgba(255,255,255,0.1) 3px);
    opacity: 0.1;
}

.hud {
    position: fixed;
    bottom: 20px;
    color: #555;
    font-size: 1.5rem;
}

/* Rewind State Classes */
body.rewinding .tape-reel {
    animation-direction: reverse;
    animation-duration: 0.5s; /* speed up */
}

body.rewinding .video-container {
    filter: sepia(100%) hue-rotate(180deg) saturate(300%);
    transform: translateX(5px); /* jitter */
}

body.rewinding .static {
    opacity: 0.8;
}
