:root {
  --bg: #050505;
  --header: #0b0b0b;
  --header-2: #0e0e0e;
  --panel: #141414;
  --panel-2: #202020;
  --line: #282828;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --dim: #777;
  --orange: #ff9000;
  --page-gutter: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
button, input, summary { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  border-bottom: 1px solid #171717;
}
.mainbar {
  height: 74px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(340px, 500px) minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 var(--page-gutter);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.6px;
  font-weight: 700;
}
.brand-polder { color: #fff; }
.brand-hub {
  margin-left: 4px;
  padding: 5px 6px 7px;
  background: var(--orange);
  color: #111;
  border-radius: 4px;
  font-weight: 700;
}
.search-wrap {
  justify-self: stretch;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #242424;
  border: 1px solid #242424;
  border-radius: 24px;
  color: #adadad;
}
.search-wrap:focus-within { border-color: #4a4a4a; }
.search-wrap svg { width: 20px; height: 20px; flex: 0 0 auto; }
.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eee;
  font-size: 15px;
}
.search-wrap input::placeholder { color: #5f6266; }

.navrow {
  height: 48px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 18px;
  padding: 0 var(--page-gutter);
  border-top: 1px solid #141414;
  background: var(--header-2);
}
.nav-link,
.category-menu > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0 8px;
  color: #c3c3c3;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.category-menu > summary::-webkit-details-marker { display: none; }
.nav-link:hover,
.category-menu > summary:hover { color: #fff; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
}
.category-menu { position: relative; display: flex; }
.category-popover {
  position: absolute;
  top: 48px;
  left: 0;
  width: 220px;
  padding: 6px;
  background: #171717;
  border: 1px solid #303030;
  box-shadow: 0 14px 26px rgba(0,0,0,.55);
}
.category-popover button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #c7c7c7;
  font-size: 12px;
  cursor: pointer;
}
.category-popover button:hover { background: #272727; color: #fff; }

.playback-notice {
  position: relative;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 56px 6px 16px;
  background: #202020;
  border-bottom: 1px solid #323232;
  color: #cecece;
  font-size: 11px;
}
.playback-notice a { color: var(--orange); }
.notice-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #bdbdbd;
  color: #1d1d1d;
  font-size: 13px;
  font-weight: 700;
}
.notice-close {
  position: absolute;
  right: 24%;
  top: 50%;
  transform: translateY(-52%);
  border: 0;
  background: transparent;
  color: #c8c8c8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

main { padding: 50px var(--page-gutter) 32px; }
.feed-head h1 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
}
.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 13px 18px;
  border: 1px solid #323232;
  border-radius: 24px;
  background: #1b1b1b;
  color: #d7d7d7;
  cursor: pointer;
  font-size: 14px;
}
.chip:hover { background: #272727; border-color: #424242; }

.catalog { margin-top: 17px; }
.filter-status {
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 7px 9px;
  border: 1px solid #7b4a13;
  background: #21170c;
  color: #ffc06a;
  font-size: 11px;
}
.filter-status button {
  margin-left: 10px;
  padding-left: 10px;
  border: 0;
  border-left: 1px solid #7b4a13;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font-size: 10px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 10px;
}
.video-card { min-width: 0; }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
}
.thumb-art { position: absolute; inset: 0; overflow: hidden; }
.thumb-art::before,
.thumb-art::after { content: ""; position: absolute; display: block; }
.duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 4;
  padding: 2px 4px;
  background: rgba(30,30,30,.72);
  color: #dedede;
  font-size: 12px;
}
.card-info { padding-top: 9px; }
.creator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #eee;
  font-size: 14px;
}
.creator-left { display: flex; align-items: center; min-width: 0; gap: 3px; }
.creator { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.verified {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1683ff;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}
.stats-top { color: #8d8d8d; font-size: 12px; white-space: nowrap; }
.card-title-row { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 6px; }
.card-copy h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #f1f1f1;
}
.card-sub {
  margin-top: 5px;
  color: #858585;
  font-size: 11px;
}
.menu-btn {
  align-self: start;
  border: 0;
  background: transparent;
  color: #e4e4e4;
  font-size: 24px;
  line-height: 16px;
  cursor: pointer;
}
.empty-state { padding: 60px 10px; color: #999; text-align: center; }

/* Flat, local thumbnail illustrations: no external assets and no gradients. */
.scene-field { background: #cfd8d8; }
.scene-field::before { left: 0; right: 0; bottom: 0; height: 55%; background: #80954d; clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%); }
.scene-field::after { left: 8%; right: 7%; bottom: 10%; height: 4px; background: #c2a258; transform: rotate(-8deg); box-shadow: 0 -25px 0 #617936, 0 -50px 0 #9eae6b; }

.scene-dike { background: #bdced5; }
.scene-dike::before { left: 0; right: 0; bottom: 0; height: 48%; background: #4a7d98; }
.scene-dike::after { width: 78%; height: 62%; right: -8%; bottom: -19%; background: #708c46; clip-path: polygon(25% 0, 100% 34%, 100% 100%, 0 100%); border-top: 8px solid #a99b7c; }

.scene-pump { background: #c3cbd0; }
.scene-pump::before { width: 58%; height: 48%; left: 20%; bottom: 18%; background: #6e7375; border: 4px solid #4e5254; box-shadow: 38px 15px 0 -25px #333, -38px 15px 0 -25px #333; }
.scene-pump::after { width: 70%; height: 15%; left: 15%; bottom: 0; background: #557c8b; border-top: 6px solid #6f8e51; }

.scene-windmill { background: #c8d5d8; }
.scene-windmill::before { width: 42px; height: 84px; left: calc(50% - 21px); bottom: 22%; background: #e8e3d8; border: 4px solid #3f4140; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.scene-windmill::after { width: 130px; height: 6px; left: calc(50% - 65px); top: 35%; background: #343434; transform: rotate(24deg); box-shadow: 0 0 0 1px #343434; }

.scene-aerial { background: #95a478; }
.scene-aerial::before { inset: 0; background: #738c59; clip-path: polygon(0 0, 48% 0, 48% 45%, 80% 45%, 80% 0, 100% 0, 100% 65%, 60% 65%, 60% 100%, 16% 100%, 16% 70%, 0 70%); }
.scene-aerial::after { width: 140%; height: 9px; left: -20%; top: 48%; background: #6d8ea0; transform: rotate(-11deg); box-shadow: 0 28px 0 #b8a56d; }

.scene-water { background: #c7d1d3; }
.scene-water::before { left: 0; right: 0; bottom: 0; height: 58%; background: #5e8798; }
.scene-water::after { width: 72%; height: 12px; left: 15%; top: 48%; background: #5e6843; box-shadow: 0 30px 0 #7c9060; }

.scene-map { background: #e7e2d5; }
.scene-map::before { inset: 12%; background: #a7b886; clip-path: polygon(10% 19%, 63% 4%, 92% 30%, 76% 70%, 42% 92%, 7% 72%); border: 5px solid #6e8a94; }
.scene-map::after { width: 60%; height: 5px; left: 19%; top: 48%; background: #d06329; transform: rotate(-17deg); box-shadow: 0 34px 0 #877f65; }

.scene-road { background: #becbd0; }
.scene-road::before { left: 0; right: 0; bottom: 0; height: 64%; background: #758f49; }
.scene-road::after { width: 24%; height: 100%; left: 38%; top: 20%; background: #575757; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); border-left: 3px solid #e0d08b; border-right: 3px solid #e0d08b; }

/* Intentionally tacky fake advertisements in the feed. */
.fake-ad {
  position: relative;
  min-width: 0;
}
.ad-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 3px solid var(--ad-accent, #ff2a2a);
  background: var(--ad-bg, #ffef32);
  color: var(--ad-text, #120d00);
  text-align: center;
}
.ad-label {
  position: absolute;
  left: 6px;
  top: 5px;
  padding: 2px 4px;
  background: #111;
  color: #fff;
  font-size: 8px;
  letter-spacing: .08em;
}
.ad-visual strong {
  display: block;
  font-family: Impact, Arial Black, sans-serif;
  font-size: clamp(18px, 2vw, 30px);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ad-visual span { margin-top: 8px; font-size: 11px; font-weight: 700; }
.ad-button {
  width: max-content;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 2px solid #111;
  background: var(--ad-accent, #ff2a2a);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.ad-meta { padding-top: 8px; color: #888; font-size: 10px; }
.ad-dating { --ad-bg:#ffef32; --ad-accent:#e92f2f; --ad-text:#150b00; }
.ad-engineer { --ad-bg:#d9ff42; --ad-accent:#2236ff; --ad-text:#0a1800; }
.ad-prize { --ad-bg:#ff642e; --ad-accent:#ffe600; --ad-text:#fff; }
.ad-dikes { --ad-bg:#ffb6d1; --ad-accent:#d92868; --ad-text:#38101e; }

footer {
  display: flex;
  justify-content: space-between;
  margin: 54px var(--page-gutter) 0;
  padding: 18px 0 26px;
  border-top: 1px solid #252525;
  color: #555;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .mainbar { grid-template-columns: auto minmax(300px, 500px); }
  .search-wrap { grid-column: 2; }
  .navrow { justify-content: flex-start; overflow-x: auto; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notice-close { right: 16px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 16px; }
  .mainbar { height: auto; grid-template-columns: 1fr; gap: 12px; padding: 14px var(--page-gutter); }
  .brand { font-size: 26px; }
  .search-wrap { grid-column: 1; width: 100%; }
  .navrow { padding: 0 var(--page-gutter); gap: 8px; }
  .nav-link, .category-menu > summary { min-width: 104px; }
  .playback-notice { justify-content: flex-start; padding-right: 40px; }
  main { padding: 30px var(--page-gutter); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .video-grid { grid-template-columns: 1fr; }
  .feed-head h1 { font-size: 18px; }
  .chip { padding: 11px 15px; }
}

/* Hidden system layer. These are intentionally easy to miss. */
.notice-icon { border: 0; cursor: default; }
.maintenance-strip {
  min-height: 29px;
  align-items: center;
  gap: 12px;
  padding: 5px var(--page-gutter);
  background: #100b05;
  border-bottom: 1px solid #5a360d;
  color: #ffad3c;
  font: 10px/1.2 Consolas, "Courier New", monospace;
  letter-spacing: .08em;
}
.maintenance-strip:not([hidden]) { display: flex; }
.maintenance-strip button {
  border: 0;
  border-left: 1px solid #5a360d;
  padding: 0 0 0 12px;
  background: transparent;
  color: #a46e2d;
  font: inherit;
  cursor: pointer;
}
.maintenance-strip button:hover { color: #ff9000; }
.egg-progress { margin-left: auto; color: #5e421f; }

.polderlabs-easter-link {
  position: fixed;
  right: 4px;
  bottom: 4px;
  z-index: 28;
  width: 46px;
  height: 10px;
  opacity: .10;
  overflow: hidden;
}
.polderlabs-easter-link:hover,
.polderlabs-easter-link:focus-visible { opacity: .82; outline: 1px solid #ff9000; }
.polderlabs-easter-link img { display: block; width: 46px; height: 10px; }

.corner-hotspot {
  position: fixed;
  right: 0;
  top: 154px;
  z-index: 31;
  width: 6px;
  height: 31px;
  border: 0;
  padding: 0;
  background: transparent;
  opacity: .01;
  cursor: default;
}

.secret-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 80;
  max-width: min(540px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 9px 12px;
  border: 1px solid #70420d;
  background: #0e0e0e;
  color: #ff9d1c;
  font: 11px/1.4 Consolas, "Courier New", monospace;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
}

.secret-panel {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  border: 1px solid #3b3b3b;
  background: #090909;
  color: #c9c9c9;
  box-shadow: 0 22px 70px rgba(0,0,0,.8);
}
.secret-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-bottom: 1px solid #313131;
  color: #ff9000;
  font: 11px/1.2 Consolas, "Courier New", monospace;
}
.secret-panel-head button { border: 0; background: transparent; color: #777; cursor: pointer; font-size: 20px; }
.secret-panel pre { margin: 0; padding: 18px; color: #a0a0a0; font: 11px/1.75 Consolas, "Courier New", monospace; white-space: pre-wrap; }
.secret-panel-actions { display: flex; gap: 8px; padding: 0 18px 18px; }
.secret-panel-actions button {
  border: 1px solid #4a3216;
  padding: 7px 9px;
  background: #14100b;
  color: #c27d24;
  font: 10px Consolas, "Courier New", monospace;
  cursor: pointer;
}

.command-palette {
  position: fixed;
  z-index: 95;
  left: 50%;
  top: 116px;
  width: min(620px, calc(100vw - 30px));
  transform: translateX(-50%);
  border: 1px solid #4e4e4e;
  background: #0d0d0d;
  box-shadow: 0 18px 60px rgba(0,0,0,.78);
}
.command-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #252525;
  color: #777;
  font: 9px/1.2 Consolas, "Courier New", monospace;
  letter-spacing: .08em;
}
.command-palette input {
  width: 100%;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid #252525;
  outline: 0;
  background: #090909;
  color: #ff9b17;
  font: 15px/1.2 Consolas, "Courier New", monospace;
}
.command-help,
.command-result { padding: 9px 12px; color: #575757; font: 10px/1.5 Consolas, "Courier New", monospace; }
.command-result { color: #9b6a2e; min-height: 29px; }

.video-context {
  position: fixed;
  z-index: 85;
  width: 190px;
  border: 1px solid #373737;
  background: #111;
  box-shadow: 0 12px 32px rgba(0,0,0,.7);
}
.video-context button { display: block; width: 100%; padding: 9px 10px; border: 0; border-bottom: 1px solid #222; background: transparent; color: #bdbdbd; text-align: left; font-size: 11px; cursor: pointer; }
.video-context button:hover { background: #202020; color: #fff; }

.waterline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: 0;
  overflow: hidden;
  border-top: 0 solid #366779;
  background: rgba(29,70,88,.22);
  pointer-events: none;
  transition: height 700ms ease, border-width 300ms ease;
}
.waterline span { position: absolute; right: 8px; top: 6px; color: #5f8798; font: 9px Consolas, "Courier New", monospace; }
body.low-tide .waterline { height: 18vh; border-top-width: 1px; }
body.low-tide main { filter: saturate(.72) brightness(.86); }

.video-card.secret-flicker .thumb { outline: 1px solid #4f2f0b; }
.video-card.secret-flicker .duration::after { content: " /52"; color: #ff9000; }

@media (max-width: 760px) {
  .maintenance-strip { overflow-x: auto; white-space: nowrap; }
  .command-palette { top: 82px; }
  .polderlabs-easter-link { right: 3px; bottom: 3px; }
}

/* ARG fake player: intentionally resembles an old broken local mirror, not a real player. */
.fake-player-modal{position:fixed;inset:0;z-index:94000;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.92)}
.fake-player-shell{position:relative;width:min(920px,100%);border:1px solid #333;background:#080808;box-shadow:0 22px 80px rgba(0,0,0,.8)}
.fake-player-close{position:absolute;right:7px;top:5px;z-index:3;border:0;background:#111;color:#aaa;font-size:24px;cursor:pointer}
.fake-player-screen{position:relative;aspect-ratio:16/9;overflow:hidden;background:#000}.fake-player-art{position:absolute;inset:0}.fake-player-noise{position:absolute;left:10px;top:10px;padding:4px 6px;background:#050505;color:#535353;font:9px Consolas,"Courier New",monospace}.fake-player-frame{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);width:max-content;max-width:90%;padding:8px 10px;border:1px solid #6d410e;background:#070707;color:#ff9610;font:11px Consolas,"Courier New",monospace;text-align:center}.fake-player-controls{display:grid;grid-template-columns:46px 1fr 46px;gap:10px;align-items:center;padding:10px 12px;border-top:1px solid #222;color:#777;font-size:10px}.fake-player-seek{width:100%;accent-color:#ff9000}.fake-player-title{padding:2px 12px 8px;color:#ddd;font-size:13px}.fake-player-hint{padding:0 12px 12px;color:#4a4a4a;font:9px Consolas,"Courier New",monospace}.player-open{overflow:hidden}.arg-contained .secret-flicker{opacity:.72}
