/* LeaksHub - site styles
   Petrol base, marigold for the one thing you're meant to press.
   Components use plain CSS so the header/footer render before Tailwind loads. */

:root {
  --bg: #0e2a2e;
  --surface: #133439;
  --surface-2: #1c3b40;
  --line: rgba(238, 243, 239, 0.12);
  --line-strong: rgba(238, 243, 239, 0.24);

  --text: #eef3ef;
  --muted: #a9c0bd;
  --faint: #8aa5a2;

  --accent: #ffb81c;
  --accent-hover: #ffc94d;
  --ink: #0b2326; /* text that sits on the accent */

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-pill: 999px;

  --font-body: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Unbounded", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(14px, 3vw, 28px);

  /* Plyr video player theme */
  --plyr-color-main: #ffb81c;
  --plyr-control-radius: 8px;

  color-scheme: dark;
}

/* ---------- Base ---------- */

body.site {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site ::selection { background: var(--accent); color: var(--ink); }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}
.brand svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.search {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 620px;
  margin: 0;
}
.search input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input::placeholder { color: var(--faint); opacity: 1; }
.search input:hover { border-color: rgba(238, 243, 239, 0.36); }
.search input:focus,
.search input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.22);
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--faint);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  pointer-events: none;
}
.search input:focus ~ kbd,
.search input:not(:placeholder-shown) ~ kbd { opacity: 0; }

@media (hover: none) {
  .search kbd { display: none; }
}

@media (max-width: 639px) {
  .header-row { grid-template-columns: minmax(0, 1fr) auto; }
  .search { grid-column: 1 / -1; order: 3; max-width: none; }
}

/* ---------- Main ---------- */

.site-main {
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 24px var(--gutter) 56px;
}

/* ---------- Sponsored ---------- */

.sponsored { margin-bottom: 36px; }

.sponsored-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sponsored-head h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.sponsored-head a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sponsored-head a:hover { color: var(--accent); }

.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
@media (min-width: 640px)  { .ads-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ads-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ad-slot { margin: 0; }
.ad-link { display: block; color: inherit; text-decoration: none; }

.ad-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--surface);
}
.ad-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ad-link:hover .ad-media img { transform: scale(1.04); }

.ad-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(11, 35, 38, 0.85);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}

.ad-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 8px 2px 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}
.ad-link:hover .ad-title { color: var(--accent); }

.ad-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
  color: var(--muted);
}

/* ---------- Telegram call-to-action ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 56px;
  padding: 22px clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.cta p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a,
.footer-social { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-social:hover { color: var(--accent); }
.footer-social svg { display: block; width: 22px; height: 22px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.85rem;
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}

/* =========================================================
   Page content components
   ========================================================= */

/* ---------- Page heads ---------- */

.page-head {
  padding: clamp(8px, 2vw, 20px) 0 clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(26px, 4vw, 42px);
  max-width: 900px;
}
.page-head--wide { max-width: none; }
.page-head--center { margin-inline: auto; text-align: center; }
.page-head--center .page-lead { margin-inline: auto; }
.page-head--center .eyebrow { justify-content: center; }
.page-head--center .stat-row,
.page-head--center .head-actions { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.page-title .accent { color: var(--accent); }

.page-lead {
  margin: 18px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.page-lead strong { color: var(--text); font-weight: 600; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 26px 0 0;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- Buttons (extensions) ---------- */

.btn-sm { height: 36px; padding: 0 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.btn-quiet:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-danger { background: #e5484d; color: #fff; }
.btn-danger:hover { background: #c93b40; }

/* ---------- Section heads ---------- */

.section { margin-top: clamp(34px, 5vw, 54px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.section-heading { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.section-count {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
}
.section-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-note { color: var(--faint); font-size: 0.8rem; }

/* ---------- Select ---------- */

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select {
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.select:hover { border-color: rgba(238, 243, 239, 0.36); }
.select option { background: var(--surface); color: var(--text); }
.select-wrap svg {
  position: absolute;
  right: 13px;
  width: 14px;
  height: 14px;
  color: var(--faint);
  pointer-events: none;
}

/* ---------- Chips & tags ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 35, 38, 0.78);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.chip-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.chip-muted { color: var(--muted); }

.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-row--spaced { margin-top: 20px; }
.tag-row--center { justify-content: center; margin-top: 26px; }
.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.tag-link:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Video grid & cards ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px) clamp(12px, 1.8vw, 18px);
}
@media (min-width: 700px)  { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.video-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.video-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.video-card:hover .thumb img { transform: scale(1.045); }

.thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 26, 0.55), transparent 48%);
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.2s;
}
.video-card:hover .thumb-shade { opacity: 1; }

.thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 24, 26, 0.16);
  opacity: 0;
  transition: opacity 0.2s;
}
.video-card:hover .thumb-play,
.video-card:focus-within .thumb-play { opacity: 1; }
.thumb-play span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transform: scale(0.86);
  transition: transform 0.2s;
}
.video-card:hover .thumb-play span { transform: scale(1); }
.thumb-play svg { width: 18px; height: 18px; margin-left: 2px; }

.thumb-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.thumb-bottom { position: absolute; left: 8px; bottom: 8px; z-index: 1; }

.video-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 10px 2px 0;
}
.video-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.36;
}
.video-title a { color: var(--text); text-decoration: none; }
.video-card:hover .video-title a { color: var(--accent); }

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin-top: auto;
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.4;
}
.video-meta svg { width: 13px; height: 13px; flex: none; }
.video-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.video-meta .size {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

/* ---------- Search box (page level) ---------- */

.search-box { position: relative; max-width: 640px; margin-top: 24px; }
.page-head--center .search-box { margin-inline: auto; }
.search-box input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 58px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input::placeholder { color: var(--faint); opacity: 1; }
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.2);
}
.search-box > .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.15s;
}
.search-box button:hover { background: var(--accent-hover); }
.search-box button svg { width: 18px; height: 18px; }

.result-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.84rem;
}
.result-note strong { color: var(--text); font-weight: 600; }
.result-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* ---------- Toolbar & media filters ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 18px;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.filter-btn {
  padding: 7px 15px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.is-active { background: var(--accent); color: var(--ink); }

/* ---------- Media grid (leak page) ---------- */

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px)  { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.media-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius-l) - 5px);
  background: #081a1c;
}
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-frame video { display: block; width: 100%; height: 100%; }
.media-frame .thumb-play { border-radius: inherit; }
.media-frame > .plyr { position: absolute; inset: 0; width: 100%; height: 100%; }
.plyr { border-radius: var(--radius-m); overflow: hidden; }
.media-card:hover .thumb-play { opacity: 1; }
.media-card .thumb-play span { width: 40px; height: 40px; }

.media-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.8rem;
}
.media-cap-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-cap-type { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--faint); font-size: 0.72rem; }
.media-cap-type svg { width: 13px; height: 13px; }

.media-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius-l) - 5px);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Empty state ---------- */

.empty-state {
  max-width: 520px;
  margin: clamp(30px, 6vw, 64px) auto;
  padding: clamp(28px, 5vw, 48px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--faint);
}
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.empty-state p { margin: 0 0 22px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Pagination ---------- */

.pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(34px, 5vw, 54px);
}
.pager-info { color: var(--faint); font-size: 0.84rem; }
.pager-info strong { color: var(--text); font-weight: 600; }

.pager-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.pager-btn,
.pager-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.pager-btn svg { width: 15px; height: 15px; }
.pager-btn:hover,
.pager-page:hover { background: var(--surface-2); color: var(--text); }
.pager-page.is-active { background: var(--accent); color: var(--ink); font-weight: 700; }
.pager-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.pager-gap { padding: 0 4px; color: var(--faint); }
.pager-pages { display: inline-flex; align-items: center; gap: 4px; }
.pager-mobile { display: none; padding: 0 12px; color: var(--text); font-size: 0.88rem; }

@media (max-width: 559px) {
  .pager-pages { display: none; }
  .pager-mobile { display: inline-block; }
  .pager-btn span { display: none; }
}

/* ---------- Long-form / legal content ---------- */

.page-narrow { max-width: 820px; margin-inline: auto; }

.content-card {
  padding: clamp(22px, 4.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.prose-site { color: var(--muted); font-size: 1rem; line-height: 1.72; }
.prose-site > :first-child { margin-top: 0; }
.prose-site > :last-child { margin-bottom: 0; }
.prose-site h2 {
  margin: 2.2em 0 0.7em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.prose-site h3 {
  margin: 1.8em 0 0.5em;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}
.prose-site p { margin: 0 0 1em; text-wrap: pretty; }
.prose-site ul,
.prose-site ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose-site li { margin-bottom: 0.5em; }
.prose-site li::marker { color: var(--accent); }
.prose-site strong { color: var(--text); font-weight: 600; }
.prose-site a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-site a:hover { color: var(--accent-hover); }
.prose-site hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.split-text { display: grid; gap: 28px; }
@media (min-width: 800px) { .split-text { grid-template-columns: 1.35fr 1fr; gap: 44px; } }
.split-text > div > :first-child { margin-top: 0; }

.fine-print {
  margin: 2em 0 0;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.65;
}
.fine-print strong { color: var(--muted); }

.value-grid { display: grid; gap: 12px; margin: 1.4em 0; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
}
.value-card h3 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.value-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }

.legal-section + .legal-section {
  margin-top: 2.2em;
  padding-top: 2.2em;
  border-top: 1px solid var(--line);
}
.legal-section h2 { margin-top: 0; }

.callout {
  margin: 0 0 1.2em;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.callout strong { color: var(--text); }
.callout--danger { border-left-color: #e5484d; }
.callout--danger strong { color: #ff8a8d; }

/* ---------- Leak detail ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--faint);
  font-size: 0.8rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 13px; height: 13px; flex: none; opacity: 0.7; }
.crumbs [aria-current="page"] {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.leak-hero {
  display: grid;
  grid-template-columns: minmax(0, 310px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
@media (max-width: 767px) { .leak-hero { grid-template-columns: 1fr; } }

.leak-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
}
.leak-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.leak-body { min-width: 0; }
.leak-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.leak-desc {
  margin: 16px 0 0;
  padding-left: 13px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-size: 0.84rem;
}
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.meta-item strong { color: var(--text); font-weight: 600; }

.leak-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.download-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 26px 0 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.download-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.download-panel p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-body {
  max-width: 75ch;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Error / status pages ---------- */

.status-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 28px 0;
  text-align: center;
}
.status-inner { max-width: 680px; margin-inline: auto; }
.status-code {
  margin: 0;
  color: var(--surface-2);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}
.status-title {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.status-lead { margin: 0 auto 26px; max-width: 52ch; color: var(--muted); line-height: 1.65; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.status-links {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.status-links h2 {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.status-link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.status-inner .search-box { margin: 0 auto 26px; }
.status-links .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .status-links .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Admin ---------- */

.admin-page { max-width: 980px; margin-inline: auto; }
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.admin-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.admin-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.admin-card {
  margin-bottom: 26px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.admin-card > h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-grid .field--full { grid-column: 1 / -1; }
.field--end { justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.input {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.input::placeholder { color: var(--faint); opacity: 1; }
.input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.18);
}
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.check-row input { accent-color: var(--accent); }

.admin-ads { display: grid; gap: 16px; }
@media (min-width: 640px) { .admin-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-ad {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
}
.admin-ad img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-s); }
.admin-ad-title { margin: 0; color: var(--text); font-size: 0.92rem; font-weight: 600; }
.admin-ad-url {
  margin: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-ad details { border-top: 1px solid var(--line); padding-top: 10px; }
.admin-ad summary { color: var(--accent); font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.admin-ad details form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.admin-ad-actions { display: flex; gap: 8px; margin-top: auto; }

/* ---------- Auth (standalone admin login) ---------- */

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(28, 59, 64, 0.9), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--text);
  text-decoration: none;
}
.auth-brand svg { width: 20px; height: 20px; color: var(--accent); }
.auth-brand span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.auth-card h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.auth-card > p { margin: 0 0 22px; color: var(--muted); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-error {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(229, 72, 77, 0.4);
  border-radius: var(--radius-m);
  background: rgba(229, 72, 77, 0.12);
  color: #ff9a9d;
  font-size: 0.86rem;
}
.auth-back { margin: 20px 0 0; text-align: center; }
.auth-back a { color: var(--faint); font-size: 0.82rem; text-decoration: none; }
.auth-back a:hover { color: var(--accent); }

/* ---------- Compatibility with the older templates ----------
   Kept so any missed legacy markup still inherits the new palette. */

.gradient-bg { background: var(--bg); }
.glass-effect { background: var(--surface); border: 1px solid var(--line); }
.card-hover { transition: border-color 0.15s, transform 0.2s; }
.card-hover:hover { border-color: var(--line-strong); }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* White text on the (light) accent is unreadable, so flip it on solid accent fills */
.bg-cyan-500.text-white,
.bg-cyan-600.text-white,
.bg-blue-500.text-white,
.bg-blue-600.text-white,
.bg-purple-600.text-white,
.from-cyan-500.text-white,
.from-blue-500.text-white { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after {
    animation: none !important;
    transition: none !important;
  }
  .ad-link:hover .ad-media img { transform: none; }
  .video-card:hover .thumb img { transform: none; }
  .video-card:hover .thumb-play span { transform: none; }
}

/* --- Added: search suggestions, share menu, toast, tags, admin list --- */
.search-box { position: relative; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden; z-index: 30;
}
.search-suggest .suggest-label { padding: 8px 12px; font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.suggest-item {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  background: transparent; border: 0; color: var(--text); font: inherit; cursor: pointer;
}
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-2); color: var(--accent); }

.tag-row--tight { margin-top: 8px; gap: 6px; }
.tag-link--sm { padding: 3px 8px; font-size: .72rem; }
.segmented a.filter-btn { text-decoration: none; }

.share-wrap { position: relative; }
.share-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 6px; z-index: 40;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 10px;
  border: 0; border-radius: var(--radius-s); background: transparent;
  color: var(--text); font: inherit; text-decoration: none; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { background: var(--surface-2); color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(10px);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
  padding: 10px 14px; border-radius: var(--radius-pill); font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.admin-list a { color: var(--text); text-decoration: none; }
.admin-list a:hover { color: var(--accent); }
