/* --- Scanlines overlay (hero sections) --- */
.cyber-scanlines {
    position: relative;
}

.fx-scanlines .cyber-scanlines::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* --- Glitch text effect (hover-activated) --- */
.cyber-glitch {
    position: relative;
    display: inline-block;
}

.fx-glitch .cyber-glitch::before,
.fx-glitch .cyber-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fx-glitch .cyber-glitch::before {
    color: var(--glitch1);
    z-index: -1;
    animation: glitch-1 3s infinite linear alternate-reverse;
}

.fx-glitch .cyber-glitch::after {
    color: var(--glitch2);
    z-index: -2;
    animation: glitch-2 2.5s infinite linear alternate-reverse;
}

.fx-glitch .cyber-glitch:hover::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
}

.fx-glitch .cyber-glitch:hover::after {
    animation: glitch-2 0.2s infinite linear alternate-reverse;
}

/* --- Glitch flash (JS-toggled class) --- */
.cyber-glitch-flash {
    animation: glitch-flash 0.2s ease-out;
}

/* --- Scanline overlay on poster images --- */
.cyber-poster-overlay {
    position: relative;
}

.fx-scanlines .cyber-poster-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* --- Terminal message box --- */
.cyber-terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--dim);
    position: relative;
}

.cyber-terminal::before {
    content: '>';
    color: var(--accent2);
    margin-right: 0.5rem;
}

/* --- Blinking terminal cursor --- */
.cyber-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--accent2);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
