:root { --red: #E50914; --lime: #CCFF00; --bg: #0b0b0b; --panel: #161616; --line: #262626; --fg: #f3f3f3; --muted: #9a9a9a; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: inherit; }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,11,11,.92); backdrop-filter: blur(8px); z-index: 5; }
.brand { font-family: Oswald, Impact, "Arial Narrow", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .4px; color: var(--red); text-decoration: none; text-transform: uppercase; text-shadow: 2px 2px 0 #000; justify-self: start; }
.brand span { color: var(--fg); }
.top nav { justify-self: center; display: flex; gap: 24px; }
.top nav a, .top nav .navsoon { color: #D7D2D2; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.top nav a:hover { color: #fff; }
.top nav .navsoon { cursor: default; user-select: none; }
.top .cta { justify-self: end; display: flex; gap: 10px; align-items: center; }
.top .cta .btn { background: var(--red); border-color: var(--red); color: #fff; padding: 9px 14px; font-size: 14px; }
@media (max-width: 860px) { .top { grid-template-columns: 1fr auto; } .top nav { display: none; } }
.wrap { max-width: 980px; margin: 0 auto; padding: 28px 18px 60px; }
.hero h1 { font-family: Oswald, Impact, sans-serif; font-weight: 700; font-size: clamp(34px, 6vw, 64px); line-height: .95; margin: 8px 0 8px; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--red); text-shadow: 3px 3px 0 #000; }
.hero p { color: var(--muted); margin: 0 0 18px; max-width: 60ch; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; }
button.big { flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 20px; font-family: Oswald, Impact, sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; }
button.big small { font-family: inherit; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .75; }
button.big:disabled { opacity: .45; }
@media (max-width: 520px) { .picker { grid-template-columns: 1fr; } }
button, .btn { cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { border-color: var(--lime); }
button.primary, .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
button.primary:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: wait; }
.ghost { background: transparent; }
.status { min-height: 22px; color: var(--lime); font-size: 14px; margin: 12px 0 0; }
.status.err { color: #ff6b6b; }
.ainote { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.card { margin: 22px 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
/* Arrows ride as a centred pair at the top of the image, delete alone at the bottom. Both sit ON the artwork, so
   they are translucent until hovered — a meme's top caption is usually right underneath and should stay readable. */
.viewer { position: relative; display: flex; }
.viewer img { width: 100%; display: block; }
.viewernav { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.arrow { width: 42px; height: 34px; padding: 0; justify-content: center; font-size: 24px; line-height: 1;
  border-radius: 8px; background: rgba(0, 0, 0, .42); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8);
  backdrop-filter: blur(2px); transition: background .12s, color .12s; }
.arrow:hover { background: rgba(0, 0, 0, .85); border-color: var(--red); color: #fff; }
@media (max-width: 520px) { .arrow { width: 38px; height: 30px; font-size: 20px; } }
.card img { display: block; width: 100%; height: auto; background: #000; }
.card figcaption { padding: 16px 18px; font-family: Oswald, Impact, sans-serif; font-size: 22px; line-height: 1.2; }
.meta { color: var(--muted); font-size: 12px; margin: 8px 2px; text-transform: uppercase; letter-spacing: .06em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions .x { background: #000; } .actions .tg { background: #1f7fc4; border-color: #1f7fc4; } .actions .dc { background: #5865F2; border-color: #5865F2; } .actions .ig { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); border-color: transparent; } .actions .tt { background: #111; border-color: #fe2c55; } .actions .fb { background: #1877f2; border-color: #1877f2; }
.recent h2 { font-family: Oswald, Impact, sans-serif; text-transform: uppercase; margin: 44px 0 12px; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.grid a:hover { border-color: var(--lime); }

/* Developer mode. Deliberately plain and red — a delete control should look like one, and nothing here should be
   easy to hit by accident: the tile button only appears on hover, and both ask for confirmation. */
.devdel { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: rgba(0,0,0,.62); border-color: rgba(229,9,20,.7); color: #ff8a8a; font-size: 13px; padding: 7px 14px; }
.devdel:hover { background: var(--red); border-color: var(--red); color: #fff; }
.grid a { position: relative; }
.tiledel { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; justify-content: center;
  font-size: 18px; line-height: 1; border-radius: 6px; background: rgba(0,0,0,.65); border-color: rgba(229,9,20,.6);
  color: #ff8a8a; opacity: 0; transition: opacity .12s; }
.grid a:hover .tiledel, .tiledel:focus-visible { opacity: 1; }
.tiledel:hover { background: var(--red); color: #fff; border-color: var(--red); }
body.dev .brand::after { content: " · dev"; color: var(--muted); font-size: 13px; letter-spacing: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 18px 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
footer .social { margin-left: auto; }
footer .disclaimer { flex-basis: 100%; margin: 6px 0 0; max-width: 90ch; line-height: 1.5; color: #6f6f6f; font-size: 12px; }
footer .disclaimer a { color: #8f8f8f; text-decoration: underline; }
footer .social a:hover { color: var(--lime); }
code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; color: var(--lime); word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--lime); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 10; max-width: 90vw; }
.share .card { margin-top: 12px; }
.ca { color: var(--muted); }
.skeleton { aspect-ratio: 1; background: linear-gradient(100deg, #141414 30%, #1f1f1f 50%, #141414 70%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
@media (max-width: 600px) { form { flex-wrap: wrap; } input { flex-basis: 100%; } .top nav a { margin-left: 10px; } }
