@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=VT323&family=Noto+Sans:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=Manrope:wght@500;700;800&family=Press+Start+2P&display=swap');

@font-face {
    font-family: 'TouchConcrete';
    src: url('./operius-mono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #050505;
    --white: #ffffff;
    --red: #FF003C;
    --blue-bsod: #0000AA;
    --font-pixel: 'VT323', monospace;
    --font-type: 'Courier Prime', monospace;
    --font-kupur-body: 'IBM Plex Sans', 'Noto Sans', sans-serif;
    --font-kupur-heading: 'Manrope', 'Noto Sans', sans-serif;
    --font-kupur-typewriter: 'American Typewriter', 'AmericanTypewriter', 'Palatino Linotype', 'Book Antiqua', serif;
    --font-press-tr: 'Press Start 2P', 'TouchConcrete', 'Noto Sans', sans-serif;
    --border-zine: 4px solid var(--black);
    --border-thin: 2px solid var(--black);
    --shadow-hatch: repeating-linear-gradient(45deg, var(--black), var(--black) 2px, transparent 2px, transparent 6px);
    --shadow-hatch-red: repeating-linear-gradient(45deg, var(--red), var(--red) 2px, transparent 2px, transparent 6px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair !important;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-type);
    overflow-x: hidden;
    position: relative;
}

/* VOID MODE OVERRIDE (Hiper-Minimalizm Karadeliği) */
body.void-mode * {
    all: unset !important;
}

body.void-mode {
    background: #000 !important;
    color: #fff !important;
    font-family: monospace !important;
    padding: 20px !important;
    cursor: text !important;
}

body.void-mode a,
body.void-mode .void-link {
    color: #0f0 !important;
    text-decoration: underline !important;
    display: block !important;
    margin-bottom: 5px !important;
    cursor: pointer !important;
}

body.void-mode .bg-silhouette,
body.void-mode .noise-overlay,
body.void-mode .cctv-overlay,
body.void-mode .void-trigger {
    display: none !important;
}

/* Void Trigger Button */
.void-trigger {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    z-index: 9999;
    opacity: 1;
    /* Made visible as requested */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px 0px var(--red);
}

.void-trigger:hover {
    background: var(--black);
    color: var(--red);
    box-shadow: 0px 0px 0px 0px var(--red);
    transform: translate(4px, 4px);
}

.troll-flags-dock {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 100030;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.troll-flags-toggle {
    min-width: 150px;
    font-size: 1.05rem;
}

.troll-flags-panel {
    width: min(88vw, 360px);
    max-height: min(72vh, 620px);
    overflow: hidden;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 10px 10px 0 #000;
    padding: 12px;
}

.troll-flags-panel.open {
    display: flex;
}

.troll-flags-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    font-size: 1rem;
}

.troll-flags-close {
    border: 2px solid #000;
    background: #fff;
    font-family: var(--font-pixel);
    font-size: 1rem;
    padding: 2px 8px;
    cursor: pointer;
}

.troll-flags-actions {
    display: flex;
    gap: 8px;
}

.troll-flags-actions .sys-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.86rem;
}

.troll-flags-list {
    overflow-y: auto;
    border: 2px solid #000;
    background: #f4f4f4;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.troll-flag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #000;
    background: #fff;
    padding: 6px 8px;
    font-family: var(--font-pixel);
    font-size: 1rem;
}

.troll-flag-row input {
    width: 15px;
    height: 15px;
    accent-color: #000;
}

/* FATAL ERROR (BSOD) SYSTEM */
.bsod-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--blue-bsod);
    color: var(--white);
    z-index: 100000 !important;
    display: none;
    padding: 10vw;
    font-size: 1.5rem;
    line-height: 1.5;
}

.bsod-title {
    background: var(--white);
    color: var(--blue-bsod);
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 40px;
}

/* CCTV SURVEILLANCE OVERLAY */
.cctv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    color: var(--red);
    font-size: 1.5rem;
    text-shadow: 1px 1px 0 var(--black);
}

.cctv-overlay>div {
    position: absolute;
    padding: 10px;
}

.cctv-top-left {
    top: 0;
    left: 0;
}

.cctv-top-right {
    top: 0;
    right: 0;
}

.cctv-bottom-left {
    bottom: 0;
    left: 0;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    margin-left: 20px;
}

.cctv-bottom-right {
    bottom: 0;
    right: 0;
}

.rec-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    animation: blink 1s step-end infinite;
}

/* CRT/Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Giant Background Avatar Silhouette */
.bg-silhouette {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 120vh;
    z-index: -3;
    opacity: 0.03;
    pointer-events: none;
    filter: grayscale(100%) contrast(200%);
    image-rendering: auto;
}

/* BOOT SEQUENCE STYLING */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--black);
    color: var(--red);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.power-btn {
    background: transparent;
    border: 4px solid var(--red);
    color: var(--red);
    font-size: 3rem;
    padding: 20px 40px;
    cursor: crosshair;
    outline: none;
    box-shadow: 8px 8px 0px 0px var(--white);
    transition: all 0.1s;
    animation: slow-blink 2s infinite;
    font-family: var(--font-pixel);
}

.power-btn:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: 4px 4px 0px 0px var(--red);
    transform: translate(4px, 4px);
}

@keyframes slow-blink {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(0.6);
    }
}

.boot-console {
    position: absolute;
    top: 40px;
    left: 40px;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    gap: 40px;
}

#bootLinesWrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.boot-mascot {
    height: 50vh;
    width: auto;
    max-height: 500px;
    filter: invert(100%) brightness(200%);
    pointer-events: none;
    flex-shrink: 0;
}

.boot-line {
    margin-bottom: 8px;
    font-family: var(--font-type);
    display: flex;
    align-items: center;
    gap: 12px;
}

.boot-line-avatar {
    width: 24px;
    height: 24px;
    filter: invert(100%) brightness(200%);
    object-fit: contain;
}

.boot-line.red {
    color: var(--red);
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.5);
}

.boot-cursor {
    display: inline-block;
    width: 12px;
    height: 1.2em;
    background: var(--white);
    animation: blink 1s infinite;
    vertical-align: bottom;
}


/* General Base Reusables */
.text-red {
    color: var(--red);
}

.type-writer {
    font-family: var(--font-type);
}

.zine-element {
    background: var(--white);
    border: var(--border-zine);
    position: relative;
    box-shadow: 8px 8px 0px 0px var(--black);
    transition: transform 0.1s, box-shadow 0.1s;
}

.hatch-shadow-small {
    box-shadow: 6px 6px 0px 0px transparent;
    position: relative;
}

.hatch-shadow-small::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 100%;
    height: 100%;
    background: var(--shadow-hatch);
    z-index: -1;
    transition: all 0.1s;
}

.sys-btn {
    background: var(--white);
    border: var(--border-thin);
    padding: 8px 15px;
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--black);
    text-transform: uppercase;
    outline: none;
    transition: all 0.1s;
    white-space: nowrap;
}

.zine-hover:hover {
    transform: translate(-2px, -2px);
}

.zine-hover:hover.hatch-shadow-small::after {
    background: var(--shadow-hatch-red);
    top: 8px;
    left: 8px;
}

.sys-btn.zine-hover:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--red);
}

.sys-btn.auth-btn:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--black);
}

/* Glitch Core */
.glitch {
    position: relative;
    display: inline-block;
    font-family: var(--font-pixel);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--red);
    clip-path: inset(45% 0 12% 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--black);
    clip-path: inset(12% 0 45% 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(10% 0 80% 0);
    }

    20% {
        clip-path: inset(80% 0 10% 0);
    }

    40% {
        clip-path: inset(10% 0 30% 0);
    }

    60% {
        clip-path: inset(40% 0 40% 0);
    }

    80% {
        clip-path: inset(20% 0 60% 0);
    }

    100% {
        clip-path: inset(90% 0 10% 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: inset(30% 0 40% 0);
    }

    20% {
        clip-path: inset(10% 0 80% 0);
    }

    40% {
        clip-path: inset(60% 0 20% 0);
    }

    60% {
        clip-path: inset(20% 0 60% 0);
    }

    80% {
        clip-path: inset(80% 0 10% 0);
    }

    100% {
        clip-path: inset(10% 0 90% 0);
    }
}

/* Massive Background */
.bg-text {
    position: fixed;
    font-family: var(--font-pixel);
    font-size: 25vw;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.05);
    z-index: -2;
    white-space: nowrap;
    pointer-events: none;
    transform: rotate(-5deg);
    transition: filter 0.2s;
}

.bg-text-1 {
    top: 10vh;
    left: -10vw;
    text-transform: uppercase;
}

.bg-text-2 {
    bottom: -5vh;
    right: -5vw;
}

/* Branding */
.vertical-branding {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
    pointer-events: none;
}

.brand-line {
    font-size: 14px;
    letter-spacing: 2px;
}

.brand-title {
    font-family: var(--font-pixel);
    font-size: 3rem;
    color: var(--red);
    background: var(--white);
    padding: 10px 0;
}

.chaotic-canvas {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 40px 60px 150px 120px;
    transition: opacity 0.3s ease-out;
}

/* TORN PAGE HORIZON */
.torn-horizon {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--white);
    clip-path: polygon(0 100%, 0 0, 5% 40%, 10% 10%, 15% 50%, 20% 20%, 25% 60%, 30% 10%, 35% 70%, 40% 20%, 45% 80%, 50% 10%, 55% 50%, 60% 5%, 65% 70%, 70% 30%, 75% 60%, 80% 20%, 85% 50%, 90% 10%, 95% 40%, 100% 0, 100% 100%);
    z-index: 1000;
}

/* Terminal Action Bar */
.terminal-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 30px;
    background: var(--white);
    gap: 20px;
    flex-wrap: wrap;
    z-index: 50;
    position: relative;
}

.auth-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-user-badge {
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-family: var(--font-pixel);
    font-size: 1rem;
    line-height: 1;
    padding: 7px 10px;
    box-shadow: 3px 3px 0 0 var(--black);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--black);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.9);
        opacity: 1;
    }
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
    border: var(--border-thin);
    background: var(--black);
    color: var(--white);
    padding: 8px 15px;
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    transition: background 0.1s, border-color 0.1s;
}

.search-box:hover,
.search-box:focus-within {
    background: var(--white);
    border-color: var(--red);
    color: var(--red);
}

.search-box:hover .type-input,
.search-box:focus-within .type-input {
    color: var(--red);
}

.prompt-arrow {
    margin-right: 10px;
}

.type-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-type);
    font-size: 1rem;
    width: 100%;
    transition: color 0.1s;
}

.type-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-type);
}

.search-box:hover .type-input::placeholder {
    color: rgba(255, 0, 60, 0.4);
}

.blinking-cursor {
    width: 10px;
    height: 1.2rem;
    background: var(--white);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

.search-box:hover .blinking-cursor {
    background: var(--red);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Manifest Hero */
.manifest-block {
    position: relative;
    display: inline-block;
    padding: 30px;
    margin-bottom: 60px;
    max-width: 760px;
    transform: rotate(0deg);
}

.hero-layout {
    width: min(100%, calc(100% - 360px));
    display: grid;
    grid-template-columns: minmax(360px, 700px) minmax(280px, 340px);
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.hero-layout .manifest-block {
    margin-bottom: 0;
}

.query-poster {
    position: relative;
    width: min(100%, 332px);
    justify-self: center;
    min-height: auto;
    padding: 24px 22px 18px;
    border: 3px solid #000;
    background: #fff;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0,0,0,0.06) 28px, rgba(0,0,0,0.06) 29px),
        repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(0,0,0,0.04) 28px, rgba(0,0,0,0.04) 29px);
    box-shadow: 8px 8px 0 #000;
    transform: rotate(0deg);
    overflow: visible;
}

.query-poster::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 18px;
    width: 68px;
    height: 18px;
    border: 2px solid #000;
    background: #000;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.query-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #000 0px, #000 8px, transparent 8px, transparent 12px);
}

.query-poster-header {
    margin-bottom: 18px;
    border-left: 5px solid #000;
    padding-left: 12px;
}

.query-kicker {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 0.78rem;
    color: #000;
    border: 2px solid #000;
    background: #fff;
    padding: 2px 8px;
}

.query-title {
    margin: 10px 0 8px;
    font-family: var(--font-press-tr);
    font-weight: 700;
    font-size: clamp(1.28rem, 1.75vw, 1.82rem);
    line-height: 1.12;
    color: #000;
    letter-spacing: 0.02em;
    text-transform: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.query-subtitle {
    margin: 0;
    font-family: var(--font-type);
    font-size: 0.96rem;
    color: #222;
    line-height: 1.45;
}

.query-search {
    max-width: none;
    width: 100%;
    border: 3px solid #000;
    background: #fff;
    color: #000;
    box-shadow: 6px 6px 0 #000;
    padding: 16px 14px;
    min-height: 110px;
    font-size: 1.15rem;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
}

.query-search:hover,
.query-search:focus-within {
    background: #fffef3;
    border-color: #000;
    color: #000;
}

.query-search .prompt-arrow {
    font-family: var(--font-pixel);
    color: var(--red);
    margin-right: 0;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.88rem;
}

.query-search .type-input {
    color: #111;
    font-family: 'Courier Prime', var(--font-type), monospace;
    font-size: 1rem;
    width: 100%;
    min-width: 0;
    flex: none;
}

.query-search .type-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.query-search:hover .type-input,
.query-search:focus-within .type-input {
    color: #000;
}

.query-search:hover .type-input::placeholder,
.query-search:focus-within .type-input::placeholder {
    color: rgba(255, 0, 60, 0.55);
}

.query-search .blinking-cursor {
    background: var(--red);
}

.query-search .autocomplete-dropdown {
    margin-top: 8px;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 6px 6px 0 #000;
    max-height: 320px;
    overflow-y: auto;
}

.query-search .dropdown-item {
    color: #000;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.query-search .dropdown-item:hover {
    animation: none;
    background: #000;
    color: #fff;
}

.query-footer-note {
    margin-top: 14px;
    font-family: var(--font-pixel);
    font-size: 0.72rem;
    color: #000;
    text-align: right;
    letter-spacing: 1px;
}

/* Sihirli çubuk row — desktop'ta sadece wrapper */
.sihirli-cubuk-row {
    display: contents;
}

.sihirli-menu-btn {
    display: none;
}

.sihirli-bubble {
    display: none;
}

/* Manifest pinned buttons — desktop'ta gizli */
.manifest-pinned-btns {
    display: none;
}

.query-poster-buttons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.query-action-btn {
    font-family: var(--font-pixel);
    font-size: 0.82rem;
    padding: 10px 14px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 3px 3px 0 #000;
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
}

.query-action-btn:hover {
    background: #000;
    color: #fff;
    box-shadow: 3px 3px 0 var(--red);
    transform: translate(-1px, -1px);
}

.query-action-btn.text-red {
    border-color: var(--red);
    color: var(--red);
}

.query-action-btn.text-red:hover {
    background: var(--red);
    color: #fff;
    border-color: #000;
}

.mobile-search-actions {
    display: none;
}

.manifest-header {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 20px;
    border-bottom: var(--border-thick);
    padding-bottom: 20px;
}

/* Avatar */
.avatar-box {
    width: 150px;
    height: 150px;
    border: var(--border-zine);
    background: var(--black);
    box-shadow: 6px 6px 0px 0px var(--red);
    flex-shrink: 0;
    transition: transform 0.1s, box-shadow 0.1s;
}

.avatar-box:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px 0px var(--black);
}

.zine-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.2s;
    image-rendering: pixelated;
    background: var(--white);
}

.manifest-block:hover .zine-avatar {
    filter: grayscale(0%);
}

.glitch-titles {
    display: flex;
    flex-direction: column;
}

.glitch-titles h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.85;
    margin: 0;
}

.manifest-block .typewriter {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hatch-rect {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background: var(--shadow-hatch-red);
    border: 2px solid var(--red);
    z-index: -1;
}

/* Nav */
.floating-nav {
    position: absolute;
    top: 120px;
    right: clamp(74px, 8vw, 138px);
    padding: 15px;
    z-index: 100;
    transform: rotate(0deg);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-btn {
    background: none;
    border: 2px solid transparent;
    font-family: var(--font-pixel);
    font-size: 1.8rem;
    color: var(--black);
    text-transform: uppercase;
    text-align: right;
    width: 100%;
    min-height: 34px;
    line-height: 1.12;
    padding: 0 6px;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--red);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease;
}

.nav-btn:hover {
    color: var(--white);
    background: var(--black);
    border-color: var(--black);
    transform: translateY(-1px);
}

.nav-btn:hover::before {
    transform: scaleX(1);
}

.nav-btn.active {
    color: var(--white);
    background: var(--black);
    border-color: var(--black);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.nav-btn:focus-visible {
    color: var(--white);
    background: var(--black);
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.2);
}

.nav-btn:focus-visible::before {
    transform: scaleX(1);
}

.nav-btn.glitch {
    color: var(--white) !important;
    background: var(--black);
    border-color: var(--black);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.nav-btn.glitch::before,
.nav-btn.glitch::after {
    background: var(--black);
}

.nav-scope-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 4px;
}

.nav-btn.nav-btn-scope {
    width: auto;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-size: 1rem;
    line-height: 1;
    padding: 4px 8px;
    text-align: center;
}

.nav-btn.nav-btn-scope::before {
    display: none;
}

.nav-btn.nav-btn-scope:hover {
    color: var(--white);
    background: var(--black);
    border-color: var(--black);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.nav-btn.nav-btn-scope.active {
    color: var(--white);
    background: var(--black);
    border-color: var(--red);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
    padding: 4px 8px;
}

.nav-btn.nav-btn-scope:focus-visible {
    color: var(--white);
    background: var(--black);
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.22);
}

.nav-btn-kupur-mobile {
    display: none;
}

.grid-state {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    border: var(--border-zine);
    background: var(--white);
    padding: clamp(18px, 2.6vw, 34px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.7);
    text-align: center;
}

.grid-state::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.02) 2px,
            transparent 2px,
            transparent 6px);
    pointer-events: none;
}

.grid-state-kicker {
    position: relative;
    z-index: 1;
    font-family: var(--font-pixel);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 10px;
}

.grid-state-message {
    position: relative;
    z-index: 1;
    font-family: var(--font-type);
    font-size: 1.02rem;
    color: #111;
    line-height: 1.5;
}

.grid-state.is-loading .grid-state-kicker {
    animation: statePulse 0.9s steps(2, end) infinite;
}

@keyframes statePulse {
    0% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.45;
    }
}


/* Media Array Grid (old-like density) */
.media-array {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: start;
    width: 100%;
    position: relative;
    z-index: 10;
}

.zine-card {
    position: relative;
    width: 100%;
    background: var(--black);
    border: var(--border-zine);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.zine-card::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    background: var(--shadow-hatch);
    z-index: -1;
    transition: all 0.2s ease;
}

.zine-card:hover::after {
    background: var(--shadow-hatch-red);
    top: 12px;
    left: 12px;
}

.media-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(130%);
    transition: filter 0.3s ease, transform 0.4s ease, opacity 0.3s ease;
}

.media-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: sepia(100%) hue-rotate(300deg) saturate(300%);
    transition: opacity 0.3s ease;
}

/* --- Overlay Title: Dead Center Inside Thumbnail --- */
.card-overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90%;
    padding: 0;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-press-tr);
    font-weight: 700;
    font-size: clamp(1.1rem, 1.85vw, 1.62rem);
    letter-spacing: 0.05em;
    text-transform: none;
    text-align: center;
    line-height: 1.28;
    z-index: 3;
    transition: all 0.35s ease;
    text-shadow: 3px 3px 0px var(--black), -1px -1px 0px var(--black), 1px -1px 0px var(--black), -1px 1px 0px var(--black);
    word-break: break-word;
    box-shadow: none;
    pointer-events: none;
}

/* --- Hover Effects --- */
.zine-card:hover {
    transform: translate(-4px, -4px);
}

.zine-card:hover .media-thumb {
    filter: grayscale(0%) contrast(110%);
    transform: scale(1.08);
    opacity: 0;
}

.zine-card:hover .media-video {
    opacity: 1;
}

.zine-card:hover .card-overlay-title {
    color: var(--red);
    letter-spacing: 0.09em;
    text-shadow: 3px 3px 0px var(--black), -1px -1px 0px var(--black), 1px -1px 0px var(--black), -1px 1px 0px var(--black), 0 0 20px rgba(255, 0, 60, 0.5), 0 0 40px rgba(255, 0, 60, 0.2);
    animation: title-glitch 0.4s ease forwards;
}

/* Scanline overlay on hover */
.zine-card:hover .media-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.08) 3px,
            rgba(0, 0, 0, 0.08) 6px);
    z-index: 2;
    pointer-events: none;
    animation: scanline-drift 0.8s linear infinite;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
    border-top: 2px solid var(--black);
    background: var(--white);
}

.card-meta-chip {
    font-family: var(--font-pixel);
    font-size: 0.72rem;
    letter-spacing: 1px;
    border: 1px solid #000;
    padding: 2px 6px;
    line-height: 1;
    color: #111;
    background: var(--white);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 70%;
}

.card-meta-date {
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    color: #333;
    opacity: 0.8;
    white-space: nowrap;
}

/* --- Phase 10: Küpür Hover Effects --- */
.kupur-inner-frame {
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 8px;
    position: relative;
    border: var(--border-zine);
    transition: all 0.3s ease;
    overflow: hidden;
}

.kupur-watermark {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 120px;
    opacity: 0.04;
    pointer-events: none;
    transform: rotate(-10deg);
}

.kupur-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    position: relative;
    z-index: 2;
}

.kupur-date {
    font-size: 0.66rem;
    opacity: 0.58;
}

.kupur-text-content {
    position: relative;
    z-index: 2;
    font-family: var(--font-press-tr);
    font-weight: 700;
    font-size: clamp(0.92rem, 1.28vw, 1.14rem);
    line-height: 1.28;
    color: var(--black);
    text-transform: none;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3px 2px;
}

.is-kupur-card.has-kupur-image .kupur-text-content {
    display: none;
}

.kupur-excerpt {
    position: relative;
    z-index: 2;
    font-family: var(--font-type);
    font-size: 0.74rem;
    color: #444;
    line-height: 1.35;
    min-height: 38px;
    max-height: 40px;
    overflow: hidden;
}

.kupur-meta-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px dashed #c8c8c8;
}

.kupur-author,
.kupur-likes {
    font-size: 0.66rem;
}

.kupur-author {
    opacity: 0.65;
}

.kupur-scan-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.02) 4px,
            rgba(0, 0, 0, 0.02) 8px);
    pointer-events: none;
    z-index: 3;
}

.is-kupur-card:hover .kupur-inner-frame {
    background: var(--black) !important;
    border-color: var(--red) !important;
}

.is-kupur-card:hover .kupur-text-content {
    color: var(--red) !important;
    letter-spacing: 0.08em;
    animation: kupur-glitch 0.4s ease forwards;
}

.is-kupur-card:hover .kupur-date,
.is-kupur-card:hover .kupur-author,
.is-kupur-card:hover .kupur-likes,
.is-kupur-card:hover .kupur-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

.is-kupur-card:hover .kupur-meta-row {
    border-top-color: rgba(255, 255, 255, 0.35);
}

.kupur-card-thumb {
    position: relative;
    width: 100%;
    height: 98px;
    margin: 2px 0 10px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.75);
    overflow: hidden;
    transform: none;
    transform-origin: center center;
    background: #111;
}

.kupur-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(112%) grayscale(8%);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.kupur-thumb-title {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 4px 6px 3px;
    border: 1px solid #fff;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: var(--font-press-tr);
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: none;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    pointer-events: none;
}

.is-kupur-card:hover .kupur-card-thumb img {
    transform: scale(1.05);
    filter: contrast(118%) saturate(105%);
}

.kupur-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.05) 3px,
            rgba(255, 255, 255, 0.05) 6px);
    pointer-events: none;
}

@keyframes kupur-glitch {
    0% {
        transform: skewX(0deg);
    }

    20% {
        transform: skewX(-2deg);
    }

    40% {
        transform: skewX(1deg);
    }

    60% {
        transform: skewX(-1deg);
    }

    100% {
        transform: skewX(0deg);
    }
}

@keyframes title-glitch {
    0% {
        transform: translate(-50%, -50%) skewX(0deg);
    }

    20% {
        transform: translate(-48%, -50%) skewX(-3deg);
    }

    40% {
        transform: translate(-52%, -50%) skewX(2deg);
    }

    60% {
        transform: translate(-49%, -50%) skewX(-1deg);
    }

    100% {
        transform: translate(-50%, -50%) skewX(0deg);
    }
}

@keyframes scanline-drift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 6px;
    }
}


/* Biometric Scanner Modal */
#biometricModal {
    flex-direction: column;
}

.biometric-content {
    background: var(--black);
    border: 2px solid var(--red);
    padding: 40px;
    color: var(--white);
    text-align: center;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.scanner-zone {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
    background: rgba(255, 0, 60, 0.1);
    border-radius: 50%;
    border: 2px dashed var(--red);
    transition: all 0.3s;
    margin: 20px 0;
}

.thumb-icon {
    width: 80px;
    height: 80px;
    color: var(--red);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--white);
    box-shadow: 0 0 20px var(--white);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.scanner-zone.scanning {
    background: rgba(255, 0, 60, 0.4);
    box-shadow: 0 0 40px rgba(255, 0, 60, 0.5);
}

.scanner-zone.scanning .scan-line {
    opacity: 1;
    animation: scan-up-down 1.5s infinite ease-in-out;
}

@keyframes scan-up-down {

    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 90%;
    }
}

.progress-ring {
    position: absolute;
    top: 15px;
    left: 15px;
    pointer-events: none;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    transform-origin: 50% 50%;
}

.scan-status {
    font-size: 2rem;
    color: var(--red);
}

/* Modal Video */
.takeover-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: rgba(5, 5, 5, 0.92);
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    overflow-y: auto;
    pointer-events: none;
}

.takeover-modal.open {
    display: flex;
    pointer-events: auto;
}

.modal-bg-text {
    position: absolute;
    font-family: var(--font-pixel);
    font-size: 30vw;
    color: var(--black);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: textFloat 3s infinite alternate ease-in-out;
}

@keyframes textFloat {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.05) translateY(-5px);
    }
}

#videoModal {
    background: rgba(5, 5, 5, 0.92);
    position: relative;
    overflow-x: visible;
    overflow-y: auto;
}

#videoModal.open .eski-video-panel {
    animation: detailPanelIn 0.1s ease-out both;
}

@keyframes detailPanelIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#videoModal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90vmin;
    height: 90vmin;
    background-image: url('./IMG_7232_transparent.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.takeover-content {
    background: var(--black);
    border: var(--border-zine);
    padding: 40px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 15px 15px 0 var(--red);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

#authNudgeModal {
    z-index: 1000010 !important;
}

.auth-nudge-panel {
    width: min(92vw, 660px);
    background: linear-gradient(180deg, #fefefe 0%, #ececec 100%);
    border: 4px solid #000;
    box-shadow: 12px 12px 0 #000;
    padding: clamp(20px, 3vw, 30px);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-nudge-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 1rem;
    padding: 4px 8px;
    cursor: pointer;
}

.auth-nudge-stamp {
    align-self: flex-start;
    background: var(--red);
    color: #fff;
    border: 2px solid #000;
    font-family: var(--font-pixel);
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    box-shadow: 3px 3px 0 #000;
}

.auth-nudge-title {
    margin: 0;
    font-family: var(--font-press-tr);
    text-transform: uppercase;
    color: #000;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    line-height: 1.2;
}

.auth-nudge-text {
    margin: 0;
    white-space: pre-line;
    color: #111;
    font-family: var(--font-pixel);
    font-size: 0.94rem;
    line-height: 1.6;
    border-left: 4px solid #000;
    padding-left: 10px;
}

.auth-nudge-sub {
    margin: 0;
    color: #555;
    font-family: var(--font-pixel);
    font-size: 0.92rem;
}

.auth-nudge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.auth-nudge-primary,
.auth-nudge-secondary {
    border: 2px solid #000;
    padding: 9px 12px;
    font-family: var(--font-pixel);
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 #000;
}

.auth-nudge-primary {
    background: #000;
    color: #fff;
}

.auth-nudge-secondary {
    background: #fff;
    color: #000;
}

.auth-nudge-action-tag {
    margin-top: 2px;
    align-self: flex-end;
    border: 2px dashed #000;
    padding: 3px 8px;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: #222;
}


.btn-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--black);
    color: var(--white);
    border: var(--border-zine);
    font-family: var(--font-pixel);
    font-size: 2rem;
    padding: 10px 20px;
}

.btn-close:hover {
    background: var(--red);
    transform: rotate(3deg);
}

.player-wrapper {
    flex: 2;
    background: var(--black);
    border: var(--border-zine);
    aspect-ratio: 16/9;
    position: relative;
}

.player-wrapper video {
    width: 100%;
    height: 100%;
}

.player-metadata {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-metadata h2 {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px dashed var(--black);
    padding-bottom: 5px;
    font-size: 1.1rem;
}

.action-grid {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 1500px) {
    .media-array {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .media-array {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .perspective-wrapper {
        perspective: none;
    }

    .panopticon-wrapper {
        transform: none !important;
        transform-style: flat !important;
    }

    .chaotic-canvas {
        padding: 20px 14px 132px 14px;
    }

    .terminal-action-bar {
        display: none !important;
    }

    .vertical-branding {
        display: flex;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        writing-mode: horizontal-tb;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 16px 8px;
        width: 100%;
        z-index: 10;
    }

    .vertical-branding .brand-line {
        font-size: 0.5rem;
        letter-spacing: 1px;
        text-align: center;
    }

    .vertical-branding .brand-title {
        font-size: 1.6rem;
        padding: 4px 8px;
        text-align: center;
    }

    .floating-nav,
    .floating-nav.zine-element {
        display: none !important;
    }

    .hero-layout {
        width: 100%;
        display: block;
        margin-bottom: 18px;
        position: relative;
    }

    .manifest-block {
        display: block;
        width: 100%;
        max-width: none;
        padding: 16px 14px 14px;
        transform: rotate(0deg);
        margin-bottom: 0;
    }

    .manifest-header {
        margin-right: 0;
        margin-bottom: 10px;
        padding-bottom: 10px;
        gap: 10px;
        align-items: center;
    }

    .manifest-header .avatar-box {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        box-shadow: 5px 5px 0px 0px var(--red);
    }

    .manifest-header .glitch-titles {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        flex-wrap: wrap;
    }

    .manifest-header .glitch-titles h1 {
        font-size: clamp(3rem, 9vw, 4.5rem);
        line-height: 1;
    }

    .manifest-block .typewriter {
        font-size: clamp(0.72rem, 2.2vw, 0.84rem);
        line-height: 1.35;
        max-width: none;
    }

    .query-poster {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto !important;
        width: 100%;
        max-width: none;
        min-height: 0;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
        transform: none !important;
        border-width: 0;
        border-top: 3px solid #000;
        border-radius: 0;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
        z-index: 100500;
        background: #fff;
        background-image:
            repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0,0,0,0.04) 28px, rgba(0,0,0,0.04) 29px);
    }

    .query-poster::before,
    .query-poster-header,
    .query-footer-note {
        display: none;
    }

    .query-poster::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 6px, transparent 6px, transparent 10px);
    }

    /* Manifest pinned buttons — panoya asılmış görünüm */
    .manifest-pinned-btns {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .pinned-btn {
        position: relative;
        font-family: var(--font-pixel);
        font-size: 0.5rem;
        padding: 8px 10px 6px;
        border: 1.5px solid #000;
        background: #fffde8;
        color: #000;
        box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
        cursor: pointer;
        transform: rotate(-1.5deg);
        transition: transform 0.15s;
        line-height: 1.2;
    }

    .pinned-btn:nth-child(2) {
        transform: rotate(1deg);
    }

    .pinned-btn:nth-child(3) {
        transform: rotate(-0.8deg);
    }

    .pinned-btn:active {
        transform: rotate(0deg) scale(0.97);
    }

    .pinned-btn-red {
        border-color: var(--red);
        color: var(--red);
    }

    .pinned-tape {
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 22px;
        height: 8px;
        background: rgba(0,0,0,0.12);
        border-radius: 1px;
    }

    /* Mobilde query-poster-buttons gizle — küpür ve kimlik manifest'e taşındı */
    .query-poster-buttons {
        display: none !important;
    }

    /* Floating nav hidden on mobile — moved into sihirli bubble */
    .floating-nav,
    .floating-nav.zine-element {
        display: none !important;
    }

    /* Sihirli çubuk layout */
    .sihirli-cubuk-row {
        display: flex !important;
        align-items: stretch;
        gap: 6px;
        position: relative;
    }

    .sihirli-cubuk-row .query-search {
        flex: 1 1 0;
    }

    .sihirli-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        height: auto;
        border: 2px solid #000;
        background: #fff;
        color: #000;
        box-shadow: 2px 2px 0 #000;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.15s, color 0.15s;
    }

    .sihirli-menu-btn.active {
        background: #000;
        color: #fff;
    }

    /* Baloncuk popup */
    .sihirli-bubble {
        position: absolute;
        bottom: calc(100% + 10px);
        right: 0;
        width: 200px;
        background: #fff;
        border: 2px solid #000;
        box-shadow: 4px 4px 0 #000;
        padding: 6px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        z-index: 100501;
    }

    .sihirli-bubble.hidden {
        display: none !important;
    }

    .sihirli-bubble::after {
        content: '';
        position: absolute;
        bottom: -8px;
        right: 12px;
        width: 14px;
        height: 8px;
        background: #fff;
        border-left: 2px solid #000;
        border-right: 2px solid #000;
        border-bottom: 2px solid #000;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }

    .sihirli-bubble-btn {
        font-family: var(--font-pixel);
        font-size: 0.52rem;
        padding: 6px 8px;
        border: 1.5px solid #000;
        background: #fff;
        color: #000;
        text-align: left;
        cursor: pointer;
        transition: background 0.12s, color 0.12s;
        line-height: 1.2;
    }

    .sihirli-bubble-btn:hover,
    .sihirli-bubble-btn.active {
        background: #000;
        color: #fff;
    }

    /* mobile-search-actions gizle — artık sihirli bubble var */
    .mobile-search-actions {
        display: none !important;
    }

    .query-poster-buttons {
        display: flex;
        gap: 5px;
        margin-top: 8px;
        flex-wrap: nowrap;
    }

    .query-poster-buttons .query-action-btn {
        font-size: 0.56rem;
        padding: 5px 8px;
        border-width: 1.5px;
        box-shadow: 1px 1px 0 #000;
        flex: 1 1 0;
        text-align: center;
        white-space: nowrap;
    }

    .query-search {
        min-height: 42px;
        padding: 8px 10px;
        border-width: 2px;
        box-shadow: 2px 2px 0 #000;
        font-size: 0.84rem;
        gap: 5px;
        flex-direction: row;
        align-items: center;
        background: #fff;
    }

    .query-search .type-input {
        width: auto;
        flex: 1 1 0;
    }

    .query-search .prompt-arrow {
        font-size: 0.6rem;
        color: var(--red);
        font-weight: 700;
    }

    .query-search .type-input {
        font-size: 0.82rem;
    }

    .query-search .blinking-cursor {
        width: 6px;
        height: 0.9rem;
    }

    .query-search .autocomplete-dropdown {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(100% + 6px);
        margin-top: 0;
        box-shadow: 0 -3px 10px rgba(0,0,0,0.2), 3px 3px 0 #000;
        max-height: 44vh;
        border: 2px solid #000;
    }

    .mobile-search-actions {
        display: flex;
        gap: 5px;
        justify-content: flex-end;
        margin-top: 6px;
    }

    .mobile-search-actions .mobile-search-btn {
        font-size: 0.56rem;
        min-height: 24px;
        padding: 4px 6px;
        line-height: 1;
        box-shadow: 1px 1px 0 #000;
    }

    .mobile-search-actions .mobile-search-btn.active {
        background: #000;
        color: #fff;
        border-color: var(--red);
    }

    .takeover-content {
        flex-direction: column;
    }

    .media-array {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* Thinner borders for all cards on mobile */
    .zine-card {
        border-width: 2px;
    }

    /* Card overlay titles & badges smaller on mobile */
    .card-overlay-title {
        font-size: clamp(0.6rem, 2.8vw, 0.9rem) !important;
        text-shadow: 2px 2px 0px var(--black), -1px -1px 0px var(--black);
    }

    .media-frame .font-pixel {
        font-size: 0.38rem !important;
        padding: 1px 3px !important;
        top: 4px !important;
        left: 4px !important;
    }

    .zine-card::after {
        top: 4px;
        left: 4px;
    }

    .zine-element {
        border-width: 2px;
        box-shadow: 4px 4px 0px 0px var(--black);
    }

    /* Küpür card mobile - match PC proportions */
    .zine-card.is-kupur-card {
        border-width: 2px;
    }

    .zine-card.is-kupur-card::after {
        top: 4px;
        left: 4px;
    }

    .kupur-inner-frame {
        padding: 8px !important;
        gap: 4px;
        border-width: 2px !important;
    }

    .kupur-card-thumb {
        height: 62px;
        margin: 1px 0 6px;
        border-width: 1.5px;
        box-shadow: 2px 2px 0 rgba(0,0,0,0.75);
    }

    .kupur-chip,
    .kupur-inner-frame .font-pixel.text-red {
        font-size: 0.42rem !important;
    }

    .kupur-text-content {
        font-size: 0.62rem;
        line-height: 1.2;
    }

    .kupur-thumb-title {
        font-size: 0.48rem;
        padding: 2px 4px;
        left: 3px;
        right: 3px;
        bottom: 3px;
    }

    .kupur-excerpt {
        font-size: 0.52rem;
        line-height: 1.25;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .kupur-meta-row {
        margin-top: 0;
        padding-top: 3px;
        border-top-width: 1px;
    }

    .kupur-date,
    .kupur-author,
    .kupur-likes {
        font-size: 0.44rem;
    }

    .cctv-overlay {
        display: none;
    }

    .troll-flags-dock {
        left: 10px;
        bottom: 94px;
        transform: scale(0.92);
        transform-origin: left bottom;
    }

    .i-agree-box {
        right: 10px;
        bottom: 94px;
        max-width: 50vw;
    }

    .elevator-btn {
        bottom: 66px;
    }
}

@media (max-width: 860px) {
    .media-array {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .chaotic-canvas {
        padding: 16px 10px 126px 10px;
    }

    .vertical-branding {
        gap: 6px;
        padding: 12px 6px;
    }

    .vertical-branding .brand-line {
        font-size: 0.44rem;
    }

    .vertical-branding .brand-title {
        font-size: 1.3rem;
        padding: 3px 6px;
    }


    .manifest-block {
        display: block;
        width: 100%;
        padding: 12px 10px 12px 12px;
    }

    .manifest-header .avatar-box {
        width: 100px;
        height: 100px;
        box-shadow: 4px 4px 0px 0px var(--red);
    }

    .manifest-header .glitch-titles h1 {
        font-size: clamp(2.4rem, 8vw, 3.6rem);
    }

    .manifest-header {
        margin-right: 0;
        gap: 8px;
    }

    .manifest-block .typewriter {
        font-size: 0.76rem;
        line-height: 1.38;
    }

    .query-poster {
        padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    }

    .query-search {
        min-height: 40px;
        padding: 6px 8px;
    }

    .query-search .prompt-arrow {
        display: none;
    }

    .mobile-search-actions {
        gap: 4px;
    }

    .mobile-search-actions .mobile-search-btn {
        font-size: 0.56rem;
        min-height: 25px;
        padding: 4px 6px;
    }

    .query-poster-buttons .query-action-btn {
        font-size: 0.5rem;
        padding: 4px 5px;
    }

    .media-array {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .card-overlay-title {
        font-size: clamp(0.5rem, 2.5vw, 0.75rem) !important;
    }

    .media-frame .font-pixel {
        font-size: 0.32rem !important;
        padding: 1px 2px !important;
        top: 3px !important;
        left: 3px !important;
    }

    .kupur-inner-frame {
        padding: 5px !important;
        gap: 2px;
        border-width: 1.5px !important;
    }

    .kupur-card-thumb {
        height: 48px;
        margin: 1px 0 3px;
        border-width: 1px;
        box-shadow: 1px 1px 0 rgba(0,0,0,0.75);
    }

    .kupur-chip,
    .kupur-inner-frame .font-pixel.text-red {
        font-size: 0.38rem !important;
    }

    .kupur-text-content {
        font-size: 0.54rem;
    }

    .kupur-thumb-title {
        font-size: 0.42rem;
        padding: 2px 3px;
    }

    .kupur-excerpt {
        font-size: 0.46rem;
        -webkit-line-clamp: 2;
    }

    .kupur-date,
    .kupur-author,
    .kupur-likes {
        font-size: 0.38rem;
    }

    .troll-flags-dock {
        bottom: 86px;
    }

    .i-agree-box {
        bottom: 86px;
        max-width: 58vw;
        font-size: 0.7rem;
        padding: 6px 8px;
    }

    .elevator-btn {
        bottom: 60px;
        padding: 8px 12px;
    }
}

/* =========================================
   PHASE 4: PSYCHOLOGICAL INTERFACE (MEGA ESTETİK)
   ========================================= */

/* 1. 3D PANOPTICON */
.perspective-wrapper {
    perspective: 1500px;
}

.panopticon-wrapper {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    min-height: 100vh;
}

/* 3. CIGARETTE BURNS */
.cigarette-burn {
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, var(--black) 30%, transparent 70%);
    border: 2px dashed var(--red);
    /* Vector burn style */
    border-radius: 50%;
    pointer-events: none;
    z-index: 8000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--red), inset 0 0 10px var(--black);
    animation: burn-fist 0.2s ease-out forwards;
    mix-blend-mode: multiply;
}

@keyframes burn-fist {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        filter: contrast(200%);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: contrast(100%);
        opacity: 0.9;
    }
}

/* 4. POSSESSED SEARCH GLITCH */
.possessed-input {
    color: var(--red) !important;
    font-weight: bold;
    animation: text-shake 0.1s infinite !important;
    pointer-events: none;
}

@keyframes text-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(1px);
    }

    100% {
        transform: translateX(0);
    }
}

/* 5. TEXTUAL INFESTATION */
.infestation-text {
    position: fixed;
    font-family: var(--font-pixel);
    color: var(--black);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 100;
    opacity: 0.8;
    white-space: nowrap;
    text-shadow: 2px 2px 0px var(--white);
    animation: slow-fade 10s forwards ease-in-out;
}

@keyframes slow-fade {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    10% {
        opacity: 0.8;
        transform: scale(1);
    }

    80% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        filter: blur(2px);
    }
}

/* 6. SIMULATED LAG (System Desync) */
body.simulated-lag {
    cursor: wait !important;
    pointer-events: none;
}

body.simulated-lag .panopticon-wrapper {
    animation: screen-tear 0.2s infinite;
    filter: saturate(0) sepia(100%) hue-rotate(300deg);
}

@keyframes screen-tear {
    0% {
        transform: translateX(0) skewX(0);
    }

    20% {
        transform: translateX(-10px) skewX(-2deg);
    }

    40% {
        transform: translateX(10px) skewX(2deg);
        filter: contrast(200%);
    }

    60% {
        transform: translateX(-5px) skewX(0);
    }

    80% {
        transform: translateX(5px) skewX(1deg);
    }

    100% {
        transform: translateX(0) skewX(0);
    }
}

/* =========================================
   PHASE 5: TRANSCENDENTAL BRUTALISM (ANTI-UX)
   ========================================= */

/* 1. AMBIENT AUDIO REACTIVE (Visual feedback for mouse panic) */
.ambient-react {
    transition: filter 0.1s linear, background-color 0.1s linear;
}

/* 2. AUDIO BLACKMAIL VIGNETTE */
.blackmail-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9995;
    background: radial-gradient(circle, transparent 50%, rgba(255, 0, 60, 0) 100%);
    opacity: 0;
    transition: opacity 0.1s;
}

.blackmail-vignette.active {
    opacity: 1;
}

/* 3. CONTAGIOUS DEAD PIXELS */
.dead-pixel {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--black);
    z-index: 10000;
    box-shadow: 0 0 2px var(--red);
    pointer-events: none;
    /* Let mouse pass over to trigger JS */
}

.dead-pixel.source {
    width: 12px;
    height: 12px;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
    animation: pixel-pulse 1s infinite alternate;
    pointer-events: auto;
    /* Catch the hover */
}

@keyframes pixel-pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 4. MOUSE QUARANTINE ZONE */
.quarantine-zone {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border: 2px solid transparent;
    z-index: 95;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quarantine-zone::after {
    content: '[ QUARANTINE ]';
    font-family: var(--font-pixel);
    color: rgba(0, 0, 0, 0.05);
    font-size: 2rem;
}

.quarantine-cage {
    position: fixed;
    border: 4px dashed var(--red);
    background: rgba(255, 0, 60, 0.05);
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
}

.quarantine-cage.locked {
    opacity: 1;
    pointer-events: auto;
    /* Traps the mouse inside visually via JS bounds */
    cursor: not-allowed;
}

/* 5. ZERO-G COLLAPSE */
/* When Zero-G is active, elements become absolute controlled by Matter.js */
body.zero-g-active {
    overflow: hidden !important;
}

.physics-body {
    position: absolute !important;
    margin: 0 !important;
    transform-origin: center center;
    z-index: 9000;
    pointer-events: none;
}

/* Matter.js Debug Canvas overlay */
#matterCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* 6. SCHRODINGER BAR (BENİMLE GEÇİRMEDİĞİN VAKİT) */
.schrodinger-bar {
    position: fixed !important;
    bottom: -60px !important;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40px;
    background: var(--black);
    border: 2px solid var(--red);
    z-index: 100010 !important;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
    align-items: center;
}

.schrodinger-bar.active-popup {
    bottom: 20px !important;
}

.schrodinger-bar .bar-fill {
    height: 100%;
    background: repeating-linear-gradient(45deg,
            var(--red),
            var(--red) 10px,
            #aa0022 10px,
            #aa0022 20px);
    width: 0%;
    transition: width 1s linear;
}

.schrodinger-bar .bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: var(--white);
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    z-index: 2;
    mix-blend-mode: difference;
    pointer-events: none;
}

/* =========================================
   PHASE 7: PARADOKSAL KULLANICI DENEYİMİ
   ========================================= */

/* Passive-Aggressive Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--black);
    border: 2px solid var(--red);
    box-shadow: 4px 4px 0px var(--red);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.autocomplete-dropdown.hidden {
    display: none;
}

.dropdown-item {
    font-family: var(--font-pixel);
    color: var(--white);
    padding: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transition: all 0.1s;
}

.dropdown-item:hover {
    background: var(--red);
    color: var(--black);
    animation: glitch-anim-1 0.2s infinite;
}

/* Condescending Elevator */
.elevator-btn {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border: 2px solid var(--black);
    font-family: var(--font-pixel);
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--black);
    transition: all 0.2s;
    z-index: 1001;
}

.elevator-btn:hover {
    background: var(--black);
    color: var(--red);
    bottom: 2px;
    box-shadow: 2px 2px 0px var(--red);
}

/* Phantom Hair */
.phantom-hair {
    position: fixed;
    top: 35%;
    left: 45%;
    width: 100px;
    height: 100px;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 10005;
    opacity: 0.85;
}

.phantom-hair.hidden {
    display: none;
}

/* Aggressive Tooltips */
.aggressive-tooltip {
    position: fixed;
    background: var(--red);
    color: var(--black);
    font-family: var(--font-pixel);
    padding: 5px 10px;
    border: 1px solid var(--black);
    pointer-events: none;
    z-index: 10002;
    font-size: 1rem;
    box-shadow: 2px 2px 0px var(--white);
    transition: opacity 2s, transform 2s;
    animation: jitter 0.1s infinite;
}

.aggressive-tooltip.burn {
    opacity: 0;
    transform: scale(1.5) rotate(10deg);
    filter: invert(100%);
}

/* Checkbox Virus */
.i-agree-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--black);
    border: 1px solid var(--white);
    padding: 10px;
    color: var(--white);
    font-family: var(--font-type);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9000;
    transition: all 0.1s;
    box-shadow: -4px -4px 0px rgba(255, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    animation: fade-in-out 30s infinite;
}

@keyframes fade-in-out {

    0%,
    90% {
        opacity: 0;
        pointer-events: none;
    }

    95%,
    100% {
        opacity: 1;
        pointer-events: auto;
    }
}

.virus-clone {
    position: fixed;
    background: var(--black);
    border: 1px solid var(--red);
    color: var(--red);
    padding: 10px;
    font-family: var(--font-pixel);
    z-index: 9001;
    pointer-events: none;
}

/* Cursor Degradation */
body.degraded-cursor-1 {
    cursor: crosshair;
}

body.degraded-cursor-2 {
    cursor: wait;
}

body.degraded-cursor-3 {
    cursor: none;
}

.fake-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 60, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10006;
    transition: width 1s, height 1s;
    mix-blend-mode: difference;
}

/* Captcha Grid Styles */
.captcha-grid-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.captcha-grid-container.active {
    display: grid;
}

.captcha-text-container {
    display: none;
    flex-direction: column;
}

.captcha-text-container.active {
    display: flex;
}

.captcha-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--black);
    border: 2px solid var(--black);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.captcha-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(150%);
    transition: all 0.2s;
}

.captcha-img-box:hover img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.1);
}

.captcha-img-box.selected {
    border-color: var(--white);
}

.captcha-img-box.selected::after {
    content: 'X';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--red);
    font-size: 3rem;
    font-family: var(--font-pixel);
    pointer-events: none;
    text-shadow: 2px 2px 0 var(--black);
}

/* =========================================
   PHASE 8: OTORİTER DİJİTAL VARLIK (MEGA TROL)
   ========================================= */

/* 1. Küle Dönen Düşünceler (Burn-After-Type) */
@keyframes burn-to-ash {
    0% {
        filter: none;
        opacity: 1;
        transform: translateY(0);
    }

    30% {
        filter: contrast(300%) sepia(100%) hue-rotate(-50deg);
        opacity: 0.8;
    }

    60% {
        filter: contrast(400%) sepia(100%) hue-rotate(-50deg) brightness(0.5);
        opacity: 0.5;
        background: var(--black);
        transform: translateY(-10px);
        color: var(--red);
    }

    100% {
        filter: blur(5px);
        opacity: 0;
        transform: translateY(-20px);
        height: 0;
        padding: 0;
        border: none;
        overflow: hidden;
    }
}

.burning-ash {
    animation: burn-to-ash 1.5s ease-out forwards;
    pointer-events: none;
}

/* 2. Katı Hiyerarşi (Condescending Scrollbar) */
body.troll-scrollbar-enabled::-webkit-scrollbar {
    display: none;
    /* Hide default scrollbar */
}

body.troll-scrollbar-enabled {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.custom-scrollbar-track {
    position: fixed;
    top: 0;
    right: 0;
    width: 20px;
    height: 100vh;
    background: transparent;
    z-index: 999998;
    pointer-events: none;
    /* Only thumb catches pointer */
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 0;
    /* Default position */
    width: 15px;
    min-height: 50px;
    background: var(--red);
    border: 2px solid var(--black);
    cursor: default;
    pointer-events: auto;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-scrollbar-thumb:hover {
    background: var(--black);
    border-color: var(--white);
}

/* 3. Stockholm Modal overrides */
#stockholmModal .biometric-content {
    animation: pulse-stockholm 2s infinite alternate;
}

@keyframes pulse-stockholm {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
    }

    100% {
        box-shadow: 0 0 40px var(--red), inset 0 0 20px var(--red);
    }
}

/* 4. Fix Elements Pushing Layout */
.subliminal-silhouette,
.audience-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    display: none;
    /* Handled by JS, but prevent layout push initially */
}

/* KÜPÜR STÜDYOSU */
.kupur-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
}

.kupur-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.kupur-panel-shell {
    position: relative;
    z-index: 2;
    width: min(96vw, 1180px);
    height: min(84vh, 860px);
    margin: 8vh auto 0;
    background: var(--white);
    border: 3px solid var(--black);
    box-shadow: 9px 9px 0 0 var(--red);
    display: flex;
    overflow: hidden;
}

.kupur-editor-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 3px dashed var(--black);
    background: repeating-linear-gradient(transparent, transparent 30px, rgba(0, 0, 0, 0.035) 30px, rgba(0, 0, 0, 0.035) 31px);
}

.kupur-editor-side.is-readonly .kupur-editor-textarea {
    background: rgba(0, 0, 0, 0.03);
}

.kupur-editor-topbar {
    border-bottom: 2px solid var(--black);
    border-left: 4px solid var(--red);
    background: #fff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.kupur-editor-topline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kupur-section-title {
    font-family: 'Press Start 2P', var(--font-kupur-heading), sans-serif;
    font-size: clamp(1.2rem, 1.45vw, 1.55rem);
    color: var(--red);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kupur-save-status {
    font-family: var(--font-kupur-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #333;
}

.kupur-action-btn {
    border: 2px solid #000;
    font-family: var(--font-pixel);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 6px 10px;
    cursor: pointer;
    box-shadow: 3px 3px 0 0 #000;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
    border-radius: 0;
}

.kupur-action-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 0 var(--red);
}

.kupur-primary-btn {
    background: var(--red);
    color: #fff;
}

.kupur-secondary-btn {
    background: #fff;
    color: #000;
}

.kupur-approve-btn {
    background: #000;
    color: #fff;
}

.kupur-field-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px dashed #000;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
    flex-wrap: nowrap;
}

.kupur-title-input {
    min-width: 0;
    flex: 1;
    border: none;
    border-bottom: 3px solid #000;
    padding: 12px 4px 10px;
    background: transparent;
    color: #000;
    outline: none;
    font-family: 'Press Start 2P', var(--font-kupur-heading), sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: 0.04em;
    pointer-events: auto !important;
    text-transform: none;
}

.kupur-title-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kupur-mini-btn {
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-family: var(--font-pixel);
    font-size: 0.72rem;
    padding: 6px 8px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 3px 3px 0 0 #000;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.kupur-mini-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 0 var(--red);
}

#kupurUploadImageBtn {
    background: #000;
    color: #fff;
}

.kupur-editor-textarea {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    padding: 20px 22px;
    background: transparent;
    color: #000;
    font-family: 'American Typewriter', 'AmericanTypewriter', 'Palatino Linotype', 'Book Antiqua', serif;
    font-size: 0.88rem;
    line-height: 1.56;
    letter-spacing: 0.01em;
    pointer-events: auto !important;
}

.kupur-editor-image-preview-wrap {
    border-bottom: 2px dashed #000;
    padding: 10px 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #fdfdfd 0%, #f1f1ef 100%);
}

.kupur-editor-image-preview-btn {
    border: 2px solid #000;
    background: #fff;
    box-shadow: 4px 4px 0 #000;
    padding: 0;
    cursor: pointer;
    width: 150px;
    height: 90px;
    overflow: hidden;
    transform: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kupur-editor-image-preview-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--red);
}

.kupur-editor-image-preview-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
    filter: contrast(108%);
}

.kupur-editor-image-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.74rem;
    color: #111;
}

.kupur-remove-image-btn {
    background: #fff;
    color: #000;
}

.kupur-list-side {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fafaf8;
    min-width: 0;
}

.kupur-list-header {
    padding: 10px 14px;
    border-bottom: 2px dashed var(--black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    min-height: 54px;
}

.kupur-list-title {
    font-family: 'Press Start 2P', var(--font-pixel), monospace;
    font-size: 0.78rem;
    line-height: 1.25;
    color: var(--red);
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kupur-list-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.kupur-list-controls .kupur-mini-btn {
    font-size: 0.64rem;
    padding: 5px 7px;
    min-height: 30px;
}

.kupur-close-btn {
    background: #000;
    color: #fff;
    border-color: #000;
}

.kupur-filter-row {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    border-bottom: 1px dashed #999;
    background: #fff;
}

.kupur-filter-btn {
    border: 2px solid #000;
    background: #fdfdfd;
    color: #111;
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    padding: 8px 6px;
    cursor: pointer;
    box-shadow: 2px 2px 0 0 #000;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.kupur-filter-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 0 var(--red);
}

.kupur-filter-btn.is-active {
    background: var(--black);
    color: #fff;
}

.kupur-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kupur-rich-line,
.kupur-rich-paragraph {
    margin: 0 0 18px 0;
    font-family: 'American Typewriter', 'AmericanTypewriter', 'Palatino Linotype', 'Book Antiqua', serif !important;
    font-size: clamp(0.78rem, 0.84vw, 0.88rem);
    line-height: 1.52;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
}

.kupur-rich-heading {
    margin: 18px 0 16px;
    font-family: var(--font-kupur-heading);
    color: var(--red);
    font-size: clamp(1.05rem, 1.8vw, 1.58rem);
    line-height: 1.22;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kupur-rich-image-wrap {
    margin: 24px 0;
}

.kupur-rich-image-wrap img {
    width: 100%;
    max-height: 460px;
    min-height: 220px;
    object-fit: cover;
    background: #111;
    border: 2px solid #000;
}

.kupur-focus-reading {
    position: relative;
    width: min(95vw, 980px);
    max-height: 90vh;
    overflow-y: auto;
    background: repeating-linear-gradient(transparent, transparent 31px, rgba(0, 0, 0, 0.032) 31px, rgba(0, 0, 0, 0.032) 32px), linear-gradient(180deg, #fefefe 0%, #f4f4f2 100%);
    border: 3px solid #000;
    padding: clamp(18px, 2.3vw, 30px);
    box-shadow: 14px 14px 0 var(--red);
}

.kupur-focus-shell {
    position: relative;
    width: min(95vw, 980px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.kupur-focus-close-btn {
    position: sticky;
    top: 8px;
    right: 0;
    margin-left: auto;
    display: block;
    z-index: 60;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
}

.kupur-focus-article {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(10px, 1.2vw, 18px) 0 clamp(8px, 1.3vw, 18px);
}

.kupur-focus-title {
    font-family: 'Press Start 2P', var(--font-kupur-heading), sans-serif;
    color: var(--red);
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 1.3;
    margin: 12px 0 26px;
    text-align: left;
    word-break: break-word;
    text-transform: none;
    letter-spacing: 0.06em;
}

.kupur-focus-text {
    font-family: 'American Typewriter', 'AmericanTypewriter', 'Palatino Linotype', 'Book Antiqua', serif !important;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    word-break: break-word;
}

.kupur-focus-meta {
    margin-top: 26px;
    border-top: 2px dashed #000;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.kupur-focus-meta .font-type {
    color: #222;
    opacity: 0.72;
    font-size: 0.88rem;
}

.kupur-focus-back-btn {
    color: #fff;
    background: #000;
}

.kupur-focus-comments {
    max-height: 220px;
    overflow-y: auto;
    border: 2px solid #000;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kupur-focus-comment-row {
    display: flex;
    gap: 8px;
}

.kupur-focus-comment-input {
    flex: 1;
    border: 2px solid #000;
    padding: 10px 12px;
    outline: none;
    font-family: var(--font-kupur-body);
    font-size: 0.9rem;
}

.kupur-focus-comment-btn {
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-family: var(--font-pixel);
    font-size: 0.86rem;
    padding: 0 12px;
    cursor: pointer;
}

#kupurFocusMetaDetails {
    font-family: var(--font-kupur-body);
    font-size: 0.9rem;
    line-height: 1.66;
}

.kupur-focus-control-bar {
    margin-top: 12px;
}

.kupur-focus-drawer {
    width: min(95vw, 980px);
    margin-top: 10px;
}

@media (min-width: 980px) {
    .kupur-focus-shell {
        align-items: flex-start;
    }

    .kupur-focus-drawer {
        width: min(95vw, 980px);
    }
}

@media (max-width: 900px) {
    .kupur-panel-shell {
        flex-direction: column;
        height: 90vh;
        margin-top: 4vh;
    }

    .kupur-editor-side {
        border-right: 0;
        border-bottom: 3px dashed var(--black);
    }

    .kupur-list-side {
        width: 100%;
        min-height: 36%;
    }

    .kupur-field-wrap {
        flex-wrap: wrap;
    }

    .kupur-title-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .kupur-focus-comment-row {
        flex-direction: column;
    }
}

/* Küpür Stüdyosu — mobil uyumlu */
@media (max-width: 767px) {
    .kupur-panel-shell {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        border-width: 0;
        box-shadow: none;
        flex-direction: column;
    }

    .kupur-editor-side {
        border-right: 0;
        border-bottom: 2px dashed var(--black);
    }

    .kupur-editor-topbar {
        padding: 6px 10px;
        border-left-width: 3px;
    }

    .kupur-section-title {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    .kupur-save-status {
        font-size: 0.6rem;
    }

    .kupur-field-wrap {
        padding: 8px 10px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .kupur-title-input {
        font-size: 0.72rem;
        padding: 8px 4px 6px;
        border-bottom-width: 2px;
    }

    .kupur-title-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
    }

    .kupur-action-btn {
        font-size: 0.52rem;
        padding: 5px 7px;
        box-shadow: 2px 2px 0 #000;
        border-width: 1.5px;
    }

    .kupur-mini-btn {
        font-size: 0.52rem;
        padding: 4px 6px;
        box-shadow: 2px 2px 0 #000;
        border-width: 1.5px;
    }

    .kupur-editor-textarea {
        padding: 12px 10px;
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .kupur-editor-image-preview-wrap {
        padding: 8px 10px;
        gap: 8px;
    }

    .kupur-editor-image-preview-btn {
        width: 100px;
        height: 60px;
        box-shadow: 2px 2px 0 #000;
        border-width: 1.5px;
    }

    .kupur-editor-image-preview-meta .font-pixel {
        font-size: 0.48rem;
    }

    .kupur-list-side {
        width: 100%;
        min-height: 30%;
    }

    .kupur-list-header {
        padding: 6px 10px;
        min-height: 40px;
    }

    .kupur-list-title {
        font-size: 0.56rem;
    }

    .kupur-list-controls .kupur-mini-btn {
        font-size: 0.48rem;
        padding: 4px 5px;
        min-height: 24px;
    }

    .kupur-filter-row {
        padding: 5px;
        gap: 4px;
    }

    .kupur-filter-btn {
        font-size: 0.48rem;
        padding: 5px 4px;
        border-width: 1.5px;
        box-shadow: 1px 1px 0 #000;
    }

    .kupur-list-container {
        padding: 5px;
        gap: 4px;
    }
}

/* --- ESKI MEME VIEWER ADAPTATION --- */
.eski-video-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: visible;
}

.eski-video-container {
    width: 100%;
    position: relative;
    background: #000;
    border: 2px solid #000;
    box-shadow: 0 0 0 9px #ffffff, 0 0 0 11px #000000;
    aspect-ratio: 16 / 9;
    z-index: 20;
    margin-bottom: 20px;
}

.eski-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 4px);
    mix-blend-mode: screen;
    opacity: 0.5;
    animation: panelScan 7s linear infinite;
}

@keyframes panelScan {
    from {
        transform: translateY(-4px);
    }

    to {
        transform: translateY(4px);
    }
}

.eski-video-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eski-video-title-wrap {
    position: absolute;
    top: 8px;
    left: 14px;
    z-index: 80;
    background-color: #ffffff;
    border: 2px solid #000;
    padding: 4px 16px;
    box-shadow: 2px 2px 0 0 #000;
    max-width: calc(100% - 82px);
}

.eski-video-title {
    font-family: var(--font-pixel);
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: #000;
}

.eski-video-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 90;
    background-color: #ffffff;
    color: #000;
    width: 44px;
    height: 44px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 0 #000;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease;
    padding: 0;
}

.eski-video-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 var(--red);
    background: #000;
    color: #fff;
}

.eski-video-close:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 0 #000;
}

.eski-video-close:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.22);
}

.eski-video-control-bar {
    z-index: 60;
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #000;
    padding: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.eski-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    cursor: pointer;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background-color 0.1s ease-out, color 0.1s ease-out;
    width: 100%;
    max-width: 52px;
    height: 42px;
    position: relative;
    padding: 4px;
    z-index: 10;
    flex: 1 1 0;
    box-shadow: 2px 2px 0 0 #000;
}

.eski-control-btn:hover {
    background-color: #000;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 var(--red);
    border-color: #000;
}

.eski-control-btn:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 0 #000;
}

.eski-control-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.22);
}

.eski-control-btn.is-active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 2px 2px 0 0 #000;
}

.playlist-toggle-item:hover {
    background: #000 !important;
    color: #fff !important;
}

.eski-control-label {
    display: none;
}

.eski-drawer {
    width: 100%;
    margin-top: 10px;
    background-color: #ffffff;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 0 #000;
    padding: 16px;
    position: relative;
    animation: drawerDown 0.2s ease-out forwards;
}

@keyframes drawerDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1280px) {
    .eski-video-panel {
        padding-right: 84px;
        max-width: 884px;
    }

    .eski-video-control-bar {
        position: absolute;
        top: 78px;
        right: 0;
        transform: translateX(calc(100% - 2px));
        width: 70px;
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 12px;
        justify-content: flex-start;
        align-items: stretch;
        overflow: visible;
    }

    .eski-control-btn {
        max-width: none;
        width: 70px;
        height: 54px;
        border: 2px solid #000;
        border-left: 0;
        border-radius: 0 10px 10px 0;
        box-shadow: 3px 3px 0 0 #000;
        padding: 8px;
        flex: 0 0 54px;
        justify-content: center;
    }

    .eski-control-btn:last-child {
        border-bottom: 2px solid #000;
    }

    #btnLikeDat>span {
        bottom: 4px !important;
        right: 6px;
        left: auto !important;
        color: currentColor !important;
        font-size: 9px !important;
        line-height: 1;
    }

    .eski-control-btn:hover {
        transform: translateX(3px);
        background-color: #000;
        color: #fff;
    }

    .eski-control-label {
        display: block;
        position: absolute;
        right: 110%;
        /* Sits to the left of the button */
        background: #000;
        color: #fff;
        padding: 4px 8px;
        font-family: var(--font-pixel);
        font-size: 10px;
        font-weight: bold;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    .eski-control-btn:hover .eski-control-label {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .kupur-focus-control-bar {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        flex-direction: row;
        background: #fff;
        border: 2px solid #000;
        box-shadow: 4px 4px 0 0 #000;
        padding: 4px;
        gap: 6px;
        justify-content: space-between;
        align-items: center;
        overflow: visible;
    }

    .kupur-focus-control-bar .eski-control-btn {
        max-width: 52px;
        width: 100%;
        height: 42px;
        border: 2px solid transparent;
        border-left: 2px solid transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 4px;
        flex: 1 1 0;
    }

    .kupur-focus-control-bar .eski-control-btn:hover {
        transform: translateY(-2px);
    }
}

@media (min-width: 1280px) {
    .kupur-focus-control-bar {
        position: absolute;
        top: 116px;
        right: 0;
        transform: translateX(calc(100% - 2px));
        width: 70px;
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 12px;
        align-items: stretch;
    }

    .kupur-focus-control-bar .eski-control-btn {
        max-width: none;
        width: 70px;
        height: 54px;
        border: 2px solid #000;
        border-left: 0;
        border-radius: 0 10px 10px 0;
        box-shadow: 3px 3px 0 0 #000;
        padding: 8px;
        flex: 0 0 54px;
    }

    .kupur-focus-control-bar .eski-control-btn:hover {
        transform: translateX(3px);
    }

    .kupur-focus-shell {
        padding-right: 84px;
        width: min(95vw, 1064px);
    }
}

/* === Viewer Integration Hardening (video + kupur detail) === */
.is-image-card:hover .media-thumb {
    opacity: 1 !important;
    transform: scale(1.03);
    filter: grayscale(0%) contrast(110%);
}

#videoModal .eski-video-panel {
    width: min(92vw, 760px);
    max-width: min(92vw, 760px);
    padding-top: 34px;
    padding-right: 0;
}

#videoModal .eski-video-container {
    margin-bottom: 16px;
    height: 0;
    padding-top: 56.25%;
    aspect-ratio: auto;
    z-index: 24;
}

#videoModal .eski-video-viewport {
    position: absolute;
    inset: 0;
    height: auto;
}

#videoModal .eski-video-viewport video,
#videoModal .eski-video-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#videoModal .eski-video-title-wrap {
    top: -14px;
    left: 8px;
    max-width: calc(100% - 82px);
    padding: 4px 16px;
    min-height: 38px;
}

#videoModal .eski-video-close {
    top: -14px;
    right: -8px;
    width: 40px;
    height: 40px;
}

#videoModal .eski-video-title {
    font-size: 16px;
    letter-spacing: 0.1em;
}

#videoModal .eski-video-control-bar {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    flex-direction: row;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    padding: 4px;
    gap: 6px;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 8px;
    border-top: 2px solid #000;
    z-index: 30;
}

#videoModal .eski-control-btn {
    max-width: 40px;
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: 2px 2px 0 0 #000;
    padding: 4px;
    flex: 0 0 40px;
}

#videoModal .eski-control-btn:hover {
    transform: translate(-2px, -2px);
}

#kupurFocusModal {
    z-index: 100020 !important;
    align-items: flex-start !important;
    padding: 54px 16px 120px !important;
}

#kupurFocusModal .kupur-focus-shell {
    width: min(92vw, 820px);
    padding-right: 0;
    align-items: center;
    margin: 0 auto;
}

#kupurFocusModal .kupur-focus-reading {
    width: 100%;
    height: min(70vh, 660px);
    min-height: 500px;
    max-height: min(70vh, 660px);
    overflow: visible;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 24;
    box-shadow: 14px 14px 0 #000;
}

#kupurFocusModal .kupur-focus-close-btn {
    position: absolute;
    top: -24px;
    right: -24px;
    z-index: 90;
    margin: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    box-shadow: 2px 2px 0 0 #000;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

#kupurFocusModal .kupur-focus-close-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 var(--red);
    background: #000;
    color: #fff;
}

#kupurFocusModal .kupur-focus-close-btn:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 0 #000;
}

#kupurFocusModal .kupur-focus-close-btn:focus-visible {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(255, 0, 60, 0.22);
}

#kupurFocusModal .kupur-focus-title {
    position: absolute;
    top: -18px;
    left: 14px;
    z-index: 80;
    margin: 0;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 0 #000;
    padding: 5px 14px 4px;
    min-height: 36px;
    max-width: calc(100% - 90px);
    font-family: 'Press Start 2P', var(--font-kupur-heading), sans-serif;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: none;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#kupurFocusModal .kupur-focus-article {
    max-width: none;
    margin: 0;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 2px 8px;
}

#kupurFocusModal .kupur-focus-body {
    display: block;
}

#kupurFocusModal .kupur-focus-body::after {
    content: '';
    display: block;
    clear: both;
}

#kupurFocusModal .kupur-focus-preview-wrap {
    width: 200px;
    float: left;
    margin: 2px 14px 10px 0;
    position: relative;
    top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#kupurFocusModal .kupur-focus-preview-btn {
    width: 100%;
    border: 2px solid #000;
    background: #fff;
    box-shadow: 6px 6px 0 #000;
    padding: 0;
    overflow: hidden;
    transform: none;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#kupurFocusModal .kupur-focus-preview-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--red);
}

#kupurFocusModal .kupur-focus-preview-btn img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #111;
    display: block;
    filter: contrast(112%) saturate(103%);
}

#kupurFocusModal .kupur-focus-preview-tag {
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    color: #111;
    letter-spacing: 0.06em;
    text-align: center;
}

#kupurFocusModal .kupur-focus-text {
    font-family: 'American Typewriter', 'AmericanTypewriter', 'Palatino Linotype', 'Book Antiqua', serif !important;
    font-size: 0.82rem;
    line-height: 1.5;
}

#kupurFocusModal .kupur-focus-meta {
    display: none;
}

#kupurFocusModal .kupur-focus-control-bar {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    flex-direction: row;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    padding: 4px;
    gap: 8px;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 8px;
    border-top: 2px solid #000;
    z-index: 30;
}

#kupurFocusModal .kupur-focus-control-bar .eski-control-btn {
    max-width: 40px;
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: 2px 2px 0 0 #000;
    padding: 4px;
    flex: 0 0 40px;
}

#kupurFocusModal .kupur-focus-control-bar .eski-control-btn:hover {
    transform: translate(-2px, -2px);
}

#kupurFocusModal .kupur-focus-drawer {
    width: 100%;
    margin-top: 8px;
    max-height: min(36vh, 300px);
    overflow-y: auto;
}

.kupur-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100140;
    background: rgba(4, 4, 4, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kupur-image-lightbox-frame {
    width: min(92vw, 920px);
    max-height: 88vh;
    border: 3px solid #000;
    background: #fff;
    box-shadow: 14px 14px 0 #000;
    padding: 10px;
    position: relative;
    animation: kupurLightboxIn 0.22s ease;
}

.kupur-image-lightbox-frame img {
    width: 100%;
    max-height: calc(88vh - 46px);
    object-fit: contain;
    display: block;
    border: 2px solid #000;
}

.kupur-image-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 42px;
    height: 42px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    box-shadow: 2px 2px 0 #000;
    font-family: var(--font-pixel);
    font-size: 1rem;
    cursor: pointer;
}

@keyframes kupurLightboxIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {

    /* ===== TAKEOVER MODAL BASE ===== */
    .takeover-modal {
        padding: 16px 8px !important;
    }

    .biometric-content {
        max-width: 92vw !important;
        padding: 18px 14px !important;
        border-width: 2px !important;
        box-shadow: 4px 4px 0 var(--black) !important;
    }

    .biometric-content h2.font-pixel {
        font-size: clamp(0.9rem, 4.5vw, 1.2rem) !important;
        margin-bottom: 10px !important;
    }

    .biometric-content .font-type {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
    }

    .biometric-content .sys-btn {
        font-size: 0.72rem !important;
        padding: 8px 10px !important;
    }

    /* ===== BIOMETRIC / SCANNER PANEL ===== */
    .scanner-zone {
        width: 100px;
        height: 100px;
        margin: 12px 0;
    }

    .thumb-icon {
        width: 50px;
        height: 50px;
    }

    .progress-ring {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 10px;
    }

    .progress-ring__circle {
        r: 34;
        cx: 40;
        cy: 40;
    }

    .scan-status {
        font-size: 1.1rem;
    }

    /* ===== AUTH MODAL (Login/Register) ===== */
    #authModal .biometric-content {
        width: min(94vw, 380px) !important;
        padding: 16px !important;
    }

    #authModal h2.font-pixel {
        font-size: clamp(0.9rem, 4.8vw, 1.2rem) !important;
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
    }

    #authModal label {
        font-size: 0.64rem !important;
    }

    #authModal .type-input {
        font-size: 0.7rem !important;
        padding: 7px !important;
    }

    #authModal #tabLogin,
    #authModal #tabRegister,
    #authModal #btnAuthSubmit {
        font-size: 0.68rem !important;
        padding: 8px 8px !important;
    }

    #authModal #closeAuthModal {
        top: 4px !important;
        right: 4px !important;
        font-size: 0.9rem !important;
    }

    #authModal #authErrorMsg {
        font-size: 0.7rem !important;
    }

    /* ===== AUTH NUDGE PANEL ===== */
    .auth-nudge-panel {
        width: min(94vw, 380px);
        padding: 14px !important;
        border-width: 2px;
        box-shadow: 4px 4px 0 #000;
        gap: 8px;
    }

    .auth-nudge-stamp {
        font-size: 0.58rem;
        padding: 3px 6px;
        box-shadow: 2px 2px 0 #000;
    }

    .auth-nudge-title {
        font-size: clamp(1rem, 4.5vw, 1.4rem);
    }

    .auth-nudge-text {
        font-size: 0.72rem;
        line-height: 1.4;
        border-left-width: 3px;
        padding-left: 8px;
    }

    .auth-nudge-sub {
        font-size: 0.68rem;
    }

    .auth-nudge-primary,
    .auth-nudge-secondary {
        font-size: 0.58rem;
        padding: 6px 8px;
        box-shadow: 2px 2px 0 #000;
    }

    .auth-nudge-close-btn {
        font-size: 0.8rem;
        padding: 3px 6px;
    }

    .auth-nudge-action-tag {
        font-size: 0.52rem;
        padding: 2px 5px;
    }

    /* ===== CAPTCHA MODAL ===== */
    #captchaModal .biometric-content {
        max-width: 92vw !important;
        padding: 20px 14px !important;
        box-shadow: 4px 4px 0 var(--black) !important;
    }

    #captchaModal h2.font-pixel {
        font-size: clamp(0.9rem, 4.5vw, 1.2rem) !important;
    }

    #captchaModal .font-type {
        font-size: 0.76rem !important;
    }

    #captchaModal .type-input {
        font-size: 0.76rem !important;
        padding: 8px !important;
    }

    #captchaModal .sys-btn {
        font-size: 0.72rem !important;
        padding: 8px 12px !important;
    }

    /* ===== STATS MODAL ===== */
    #statsModal .biometric-content {
        max-width: 94vw !important;
        padding: 18px 12px !important;
    }

    #statsModal h2.font-pixel {
        font-size: clamp(0.8rem, 4vw, 1.1rem) !important;
    }

    #statsModal .font-type {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
    }

    /* ===== VIDEO DETAIL MODAL ===== */
    #videoModal .eski-video-panel {
        width: min(96vw, 640px);
        max-width: min(96vw, 640px);
        padding-top: 28px;
    }

    #videoModal .eski-video-title-wrap {
        top: -14px;
        left: 8px;
        padding: 3px 10px;
        min-height: 28px;
        max-width: calc(100% - 52px);
        z-index: 80;
    }

    #videoModal .eski-video-title {
        font-size: 9px !important;
        letter-spacing: 0.06em;
    }

    #videoModal .eski-video-close {
        top: -14px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        z-index: 90;
    }

    #videoModal .eski-video-control-bar {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        flex-direction: row;
        margin-top: 6px;
        padding: 3px;
        gap: 4px;
        border-width: 2px;
        box-shadow: 2px 2px 0 #000;
    }

    #videoModal .eski-control-btn {
        max-width: 34px;
        width: 34px;
        height: 34px;
        padding: 3px;
        flex: 0 0 34px;
        border-width: 1.5px;
        box-shadow: 1px 1px 0 #000;
    }

    #videoModal .eski-drawer {
        padding: 10px;
        border-width: 2px;
        box-shadow: 2px 2px 0 #000;
    }

    /* ===== KÜPÜR FOCUS MODAL ===== */
    #kupurFocusModal {
        padding: 40px 6px 80px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #kupurFocusModal .kupur-focus-shell {
        width: min(94vw, 560px);
        max-height: none;
        overflow: visible;
        position: relative;
        margin: auto;
    }

    #kupurFocusModal .kupur-focus-title {
        position: absolute;
        top: -16px;
        left: 8px;
        font-size: 9px;
        min-height: 28px;
        line-height: 1.3;
        padding: 4px 10px;
        max-width: calc(100% - 60px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0;
        box-shadow: 2px 2px 0 #000;
        z-index: 80;
    }

    #kupurFocusModal .kupur-focus-close-btn {
        position: absolute;
        top: -16px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        z-index: 90;
    }

    #kupurFocusModal .kupur-focus-reading {
        position: static !important;
        min-height: 0;
        height: auto;
        max-height: min(55vh, 420px);
        overflow-y: auto;
        padding: 24px 10px 10px;
        border-width: 2px;
        box-shadow: 4px 4px 0 #000;
    }

    #kupurFocusModal .kupur-focus-text {
        font-size: 0.74rem;
        line-height: 1.45;
    }

    #kupurFocusModal .kupur-focus-body {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #kupurFocusModal .kupur-focus-preview-wrap {
        width: min(40vw, 160px);
        float: left;
        margin: 2px 10px 8px 0;
    }

    #kupurFocusModal .kupur-focus-preview-btn {
        box-shadow: 3px 3px 0 #000;
        border-width: 2px;
    }

    #kupurFocusModal .kupur-focus-preview-tag {
        font-size: 0.5rem;
    }

    #kupurFocusModal .kupur-focus-article {
        padding: 4px 0;
    }

    #kupurFocusModal .kupur-focus-control-bar {
        margin-top: 6px;
        padding: 3px;
        gap: 4px;
        border-width: 2px;
        box-shadow: 2px 2px 0 #000;
    }

    #kupurFocusModal .kupur-focus-control-bar .eski-control-btn {
        max-width: 34px;
        width: 34px;
        height: 34px;
        padding: 3px;
        flex: 0 0 34px;
        border-width: 1.5px;
        box-shadow: 1px 1px 0 #000;
    }

    #kupurFocusModal .kupur-focus-drawer {
        max-height: min(28vh, 200px);
        overflow-y: auto;
        padding: 8px;
        border-width: 2px;
    }

    #kupurFocusModal .kupur-focus-comments {
        max-height: 140px;
        padding: 8px;
        border-width: 1.5px;
        gap: 6px;
    }

    #kupurFocusModal .kupur-focus-comment-input {
        font-size: 0.72rem;
        padding: 6px 8px;
        border-width: 1.5px;
    }

    #kupurFocusModal .kupur-focus-comment-btn {
        font-size: 0.62rem;
        padding: 0 8px;
        border-width: 1.5px;
    }

    #kupurFocusModal .kupur-focus-comment-row {
        flex-direction: column;
        gap: 4px;
    }
}

#authModal .biometric-content {
    width: min(92vw, 560px) !important;
    overflow-x: hidden;
}

#authModal .font-pixel,
#authModal .sys-btn,
#authModal label {
    font-family: var(--font-press-tr) !important;
}

#authModal .type-input {
    font-family: var(--font-press-tr) !important;
    font-size: 0.78rem !important;
    line-height: 1.35;
}

#authModal h2.font-pixel {
    font-size: clamp(1.35rem, 2.3vw, 1.8rem) !important;
    line-height: 1.25;
    word-break: break-word;
}

#authModal #tabLogin,
#authModal #tabRegister,
#authModal #btnAuthSubmit {
    font-size: 0.92rem !important;
    line-height: 1.25;
    white-space: normal;
}

#authModal .sys-btn {
    white-space: normal;
}

#authModal #authErrorMsg {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
}

/* Desktop: keep side-rail control design (not bottom bar) */
@media (min-width: 1024px) {
    #videoModal .eski-video-panel {
        padding-right: 72px;
        max-width: min(92vw, 820px);
    }

    #videoModal .eski-video-control-bar {
        position: absolute;
        top: 66px;
        right: 72px;
        transform: translateX(calc(100% - 2px));
        width: 56px;
        height: auto;
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 10px;
        justify-content: flex-start;
        align-items: stretch;
        margin-top: 0;
        z-index: 18;
    }

    #videoModal .eski-video-title-wrap {
        top: -24px;
        left: 14px;
        padding: 6px 20px;
        min-height: 44px;
        max-width: calc(100% - 96px);
    }

    #videoModal .eski-video-title {
        font-size: 20px;
        letter-spacing: 0.12em;
    }

    #videoModal .eski-video-close {
        top: -24px;
        right: -24px;
        width: 48px;
        height: 48px;
    }

    #videoModal .eski-control-btn {
        width: 56px;
        max-width: 56px;
        height: 56px;
        border: 2px solid #000;
        border-left: 0;
        border-radius: 0 10px 10px 0;
        box-shadow: 2px 2px 0 0 #000;
        padding: 6px;
        flex: 0 0 56px;
    }

    #videoModal #btnLikeDat>span {
        bottom: 4px !important;
        right: 6px;
        left: auto !important;
        color: currentColor !important;
        font-size: 9px !important;
        line-height: 1;
    }

    #kupurFocusModal .kupur-focus-shell {
        padding-right: 72px;
        width: min(92vw, 860px);
    }

    #kupurFocusModal .kupur-focus-control-bar {
        position: absolute;
        top: 66px;
        right: 72px;
        transform: translateX(calc(100% - 2px));
        width: 56px;
        height: auto;
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 13px;
        justify-content: flex-start;
        align-items: stretch;
        margin-top: 0;
        z-index: 42;
    }

    #kupurFocusModal .kupur-focus-control-bar .eski-control-btn {
        width: 56px;
        max-width: 56px;
        height: 56px;
        border: 2px solid #000;
        border-left: 0;
        border-radius: 0 10px 10px 0;
        box-shadow: 2px 2px 0 0 #000;
        padding: 6px;
        flex: 0 0 56px;
    }
}
