/* VHS Filter Overlay */
.vhs-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Scanlines effect */
.vhs-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    animation: vhs_scanlines 0.05s linear infinite;
    z-index: 1;
}

/* Tracking lines */
.vhs-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.05) 2%, transparent 3%);
    background-size: 100% 500px;
    animation: vhs_tracking 12s linear infinite;
    z-index: 2;
}

/* Vignette */
.vhs-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 70%, hsla(0, 0%, 0%, 0.8) 100%);
    z-index: 3;
}

@keyframes vhs_scanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

@keyframes vhs_tracking {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(500px);
    }
}

/* End of VHS Filter */