    :root {
        --bg: #121212;
        --panel: #1b1b1b;
        --line: #2a2a2a;
        --grid: rgba(255, 255, 255, 0.045);
        --lime: #b5ff5c;
        --ink: #f4f4f2;
        --dim: #8b8b86;
        --pixel: 'Silkscreen', 'Courier New', monospace;
        --mono: 'Space Mono', ui-monospace, 'Courier New', monospace;
    }

    * { box-sizing: border-box; }

    html { background: var(--bg); }

    body {
        margin: 0; padding: 0;
        font-family: var(--mono);
        font-size: 12px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        background: var(--bg);
        color: var(--ink);
        overflow-x: hidden;
        min-height: 100vh;
    }

    ::selection { background: var(--lime); color: #111; }

    /* --- GRID BACKGROUND --- */
    #bg-canvas {
        position: fixed; inset: 0;
        width: 100%; height: 100%;
        z-index: 0;
        pointer-events: none;
        background-image:
            linear-gradient(var(--grid) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid) 1px, transparent 1px);
        background-size: 40px 40px;
    }

    /* --- HERO --- */
    .topline {
        position: relative; z-index: 5;
        height: 1px;
        background: var(--lime);
        margin: 22px 20px 0;
    }

    .hero {
        position: relative; z-index: 2;
        height: clamp(430px, 62vw, 700px);
        overflow: hidden;
    }

    .topbar {
        position: absolute; z-index: 4;
        top: 20px; left: 20px; right: 20px;
        display: flex; justify-content: space-between; align-items: flex-start;
        gap: 20px;
        font-size: 10px; line-height: 1.6;
    }

    .subtitle { color: var(--ink); font-size: 11px; }
    .subtitle::after { content: " * * *"; color: var(--lime); }

    .tagline { text-align: right; color: var(--ink); max-width: 260px; }

    #earth {
        position: absolute; z-index: 1;
        left: 50%; top: 14%;
        width: min(980px, 135vw);
        aspect-ratio: 1;
        transform: translateX(-46%);
        image-rendering: pixelated;
    }

    h1 {
        position: absolute; z-index: 3;
        left: 20px; bottom: -0.04em;
        margin: 0;
        font-family: var(--pixel);
        font-weight: 700;
        font-size: clamp(42px, 9vw, 160px);
        line-height: 0.92;
        letter-spacing: 0;
        white-space: nowrap;
        color: #fff;
        text-shadow: 0.04em 0.04em 0 #0a1626, -0.015em 0 0 #0a1626, 0 -0.015em 0 #0a1626;
    }

    /* --- LAYOUT --- */
    .container {
        position: relative; z-index: 10;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .intro {
        display: grid;
        grid-template-columns: 200px 1fr auto;
        gap: 24px;
        align-items: start;
        padding: 28px 0 32px;
        border-bottom: 1px solid var(--line);
    }

    .intro-label { color: var(--ink); font-size: 10px; line-height: 1.6; }
    .intro-label::after { content: " * * *"; color: var(--lime); }

    .intro-text {
        margin: 0; max-width: 520px;
        color: var(--dim);
        font-size: 11px; line-height: 1.8;
    }

    /* --- TABS --- */
    .tabs { display: flex; gap: 14px; }

    .tab-btn {
        background: none; border: 0; border-radius: 0;
        padding: 6px 10px;
        font-family: var(--pixel);
        font-size: 16px; line-height: 1.1;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--lime);
        text-shadow: 0 0 12px rgba(181, 255, 92, 0.35);
        cursor: pointer;
        opacity: 0.8;
        transition: background 0.15s, opacity 0.15s;
    }
    .tab-btn::before { content: "("; margin-right: 4px; }
    .tab-btn::after  { content: ")"; margin-left: 4px; }
    .tab-btn:hover { background: rgba(181, 255, 92, 0.12); opacity: 1; }
    .tab-btn.active { background: var(--lime); color: #111; text-shadow: none; opacity: 1; }

    /* --- CONTROLS --- */
    .controls {
        display: flex; align-items: center; gap: 16px;
        margin: 28px 0;
    }

    .search { position: relative; flex: 1; max-width: 560px; }
    .search::before {
        content: ">";
        position: absolute; left: 16px; top: 50%;
        transform: translateY(-50%);
        color: var(--lime);
        font-family: var(--pixel); font-size: 14px;
    }

    #searchBar {
        width: 100%;
        padding: 14px 16px 14px 38px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 0;
        color: var(--ink);
        font-family: var(--mono); font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        caret-color: var(--lime);
        outline: none;
        transition: border-color 0.15s, box-shadow 0.15s;
    }
    #searchBar::placeholder { color: #5f5f5b; }
    #searchBar:focus {
        border-color: var(--lime);
        box-shadow: 4px 4px 0 rgba(181, 255, 92, 0.25);
    }

    .count { margin-left: auto; color: var(--dim); font-size: 10px; white-space: nowrap; }
    .count b { color: var(--lime); font-weight: 400; }

    /* --- GRID --- */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        animation: fadeIn 0.4s steps(4);
    }

    .card {
        position: relative;
        display: flex; flex-direction: column;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 0;
        cursor: pointer;
        transition: transform 0.15s steps(3), border-color 0.15s, background 0.15s, box-shadow 0.15s;
    }

    .card:hover {
        transform: translate(-3px, -3px);
        border-color: var(--lime);
        box-shadow: 3px 3px 0 var(--lime);
        background: #202020;
    }

    .card-thumb-container {
        position: relative;
        width: 100%; height: 140px;
        overflow: hidden;
        background:
            conic-gradient(#151515 25%, #101010 0 50%, #151515 0 75%, #101010 0) 0 0 / 16px 16px;
        border-bottom: 1px solid var(--line);
    }

    .movie-mode .card-thumb-container { height: 320px; }

    /* scanlines */
    .card-thumb-container::after {
        content: "";
        position: absolute; inset: 0;
        background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 3px);
        pointer-events: none;
    }

    .card-thumb {
        width: 100%; height: 100%;
        object-fit: cover;
        filter: grayscale(0.9) contrast(1.05) brightness(0.85);
        transition: filter 0.2s;
    }
    .card:hover .card-thumb { filter: none; }

    .card-info {
        display: flex; align-items: center; gap: 10px;
        padding: 12px 14px;
    }

    .card-icon {
        flex: none;
        position: relative;
        width: 12px; height: 12px;
        border: 2px solid var(--lime);
    }
    .card-icon::after {
        content: "";
        position: absolute; inset: 2px;
        background: var(--lime);
    }

    .card-title {
        flex: 1; min-width: 0;
        font-weight: 700; font-size: 11px;
        letter-spacing: 0.08em;
        color: var(--ink);
        margin: 0;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .card-num { flex: none; color: #5a5a56; font-size: 10px; }
    .card:hover .card-num { color: var(--lime); }

    /* --- FOOTER --- */
    .footer {
        display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
        margin-top: 70px;
        padding: 24px 0 40px;
        border-top: 1px solid var(--line);
        color: var(--dim);
        font-size: 10px;
    }
    .footer b {
        color: #111; background: var(--lime);
        padding: 1px 6px; font-weight: 700;
    }

    /* --- ANIMATIONS --- */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .hidden { display: none !important; }

    /* --- RESPONSIVE --- */
    @media (max-width: 760px) {
        .intro { grid-template-columns: 1fr; gap: 16px; }
        .hero { height: 118vw; }
        .tagline { max-width: 150px; }
        h1 { font-size: 17vw; line-height: 0.95; }
        h1 span { display: block; }
        #earth { top: 18%; width: 150vw; transform: translateX(-42%); }
        .controls { flex-direction: column; align-items: stretch; gap: 10px; }
        .search { max-width: none; }
        .count { margin-left: 0; }
    }

    @media (prefers-reduced-motion: reduce) {
        .grid-container { animation: none; }
        .card, .card:hover { transition: none; }
    }
