@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..112,400..800&display=swap');

/* ============================================================
   DonutClips
   Palette sampled from the DrDonut logo:
   #040823 background, #026ffe blue, #0049e3 deep blue
   ============================================================ */

:root {
  --void: #040823;
  --surface: #0a0f2e;
  --raise: #101638;
  --line: #1b2350;
  --line-soft: #131a3d;
  --blue: #026ffe;
  --blue-deep: #0049e3;
  --blue-soft: #6aa8ff;
  --crust: #c9a06a;
  --text: #eef1fb;
  --muted: #96a1c9;
  --dim: #667398;
  --good: #2fcf95;
  --warn: #ffb545;
  --bad: #ff5f77;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

/* The hidden attribute is only a UA-stylesheet default (lowest
   priority), so any element with its own `display` rule - like
   `.split { display: grid }` on the dashboard's tab panes - keeps
   rendering even while hidden. This makes `hidden` win outright,
   everywhere, regardless of what else targets the element. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: Archivo, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slidein {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes shimmer {
  from { background-position: -420px 0; }
  to   { background-position: 420px 0; }
}

.reveal { animation: rise 0.42s var(--ease) both; }

.skel {
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface) 0%, var(--raise) 40%, var(--surface) 80%);
  background-size: 420px 100%;
  animation: shimmer 1.25s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 8, 35, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }

.brand img { width: 32px; height: 32px; border-radius: 9px; }

.brand span {
  font-size: 18.5px;
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: -0.025em;
}

.brand span i { font-style: normal; color: var(--blue-soft); }

.nav { display: flex; align-items: center; gap: 3px; margin-right: auto; }

.nav a {
  padding: 8px 13px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 15px;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

.top-actions { display: flex; align-items: center; gap: 9px; flex: none; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 9px;
  cursor: pointer;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--raise);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-soft);
  flex: none;
  overflow: hidden;
}

.avatar.lg { width: 62px; height: 62px; font-size: 21px; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.btn:hover { background: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

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

.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 7px; }
.btn.wide { width: 100%; }
.btn.danger { background: transparent; border-color: var(--line); color: var(--bad); }
.btn.danger:hover { background: rgba(255, 95, 119, 0.1); border-color: var(--bad); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn:disabled:active { transform: none; }

.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linkish:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero { padding: 70px 0 46px; }
.hero-grid { display: grid; grid-template-columns: 1fr 480px; gap: 54px; align-items: center; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.04em;
}

.hero h1 em { font-style: normal; color: var(--blue-soft); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.12);
  border: 1px solid rgba(255, 59, 59, 0.4);
  color: #ff5c5c;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.live-pill:hover { background: rgba(255, 59, 59, 0.2); }
.live-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255, 59, 59, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-pill .dot { animation: none; }
}

.motm-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(201, 160, 106, 0.14), rgba(2, 111, 254, 0.08));
  border: 1px solid rgba(201, 160, 106, 0.4);
  text-decoration: none;
  color: var(--text);
}
.motm-card:hover { border-color: var(--crust); }
.motm-label { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; color: var(--crust); text-transform: uppercase; }
.motm-card h3 { margin: 2px 0; }
.motm-stats { color: var(--muted); font-size: 13px; }
.motm-reward { margin-top: 4px; font-size: 13px; color: var(--crust); }

.motm-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px 10px;
  font-size: 13px;
  color: var(--crust);
  text-decoration: none;
}
.motm-mini:hover { text-decoration: underline; }

.hero p { margin: 0 0 28px; color: var(--muted); font-size: 17.5px; max-width: 44ch; }

.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; }

.stat-strip {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.stat b {
  display: block;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat span { font-size: 13px; color: var(--dim); }

/* featured stream */

.featured {
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.featured:hover { border-color: var(--blue); transform: translateY(-3px); }

.featured .shot { aspect-ratio: 16 / 9; background: var(--raise); position: relative; }
.featured .shot img { width: 100%; height: 100%; object-fit: cover; }
.featured .body { padding: 17px 19px 19px; }

.featured h3 { margin: 9px 0 0; font-size: 18.5px; font-weight: 600; line-height: 1.3; }

.featured .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 14px;
}

/* ---------- tags ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--raise);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tag.now { background: rgba(2, 111, 254, 0.14); color: var(--blue-soft); border-color: rgba(2, 111, 254, 0.42); }
.tag.now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: 2px;
}

.pill.admin { color: var(--crust); border-color: rgba(201, 160, 106, 0.45); }
.pill.hidden { color: var(--warn); border-color: rgba(255, 181, 69, 0.45); }

/* ---------- sections ---------- */

.section { padding: 46px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.03em;
}

.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 15px; }

.page-head { padding: 48px 0 26px; }

.page-head h1 {
  margin: 0 0 9px;
  font-size: clamp(31px, 4.6vw, 46px);
  font-weight: 800;
  font-stretch: 106%;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.page-head p { margin: 0; color: var(--muted); max-width: 60ch; }

.stream-hero {
  position: relative;
  aspect-ratio: 21 / 7;
  max-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--raise);
  border: 1px solid var(--line-soft);
  margin-bottom: 22px;
}

.stream-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stream-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 35, 0) 40%, rgba(4, 8, 35, 0.6) 100%);
  pointer-events: none;
}

@media (max-width: 700px) {
  .stream-hero { aspect-ratio: 16 / 9; max-height: none; }
}

/* ---------- stream cards ---------- */

.stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.stream-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.stream-card:hover { border-color: var(--blue); transform: translateY(-3px); }

.stream-card .shot { aspect-ratio: 16 / 9; background: var(--raise); position: relative; overflow: hidden; }
.stream-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.stream-card:hover .shot img { transform: scale(1.035); }

.datechip {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(4, 8, 35, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 9px 4px;
  text-align: center;
  line-height: 1.02;
  backdrop-filter: blur(4px);
}

.datechip b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.datechip i { font-style: normal; font-size: 10.5px; color: var(--muted); }

.countchip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(4, 8, 35, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.stream-card .body { padding: 14px 16px 15px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.stream-card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.stream-card .meta { color: var(--dim); font-size: 13.5px; margin-top: auto; }

/* ---------- clip cards ---------- */

.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px 20px; }

.clip {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease);
}

.clip:hover { border-color: var(--line); }

.clip .frame {
  aspect-ratio: 16 / 9;
  background: #01030f;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 14px;
  overflow: hidden;
}

.clip .frame video { width: 100%; height: 100%; object-fit: contain; }
.clip .frame img { width: 100%; height: 100%; object-fit: cover; }

.playpad {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 35, 0.3);
  cursor: pointer;
  transition: opacity 0.22s var(--ease), background 0.22s var(--ease);
  border: 0;
  padding: 0;
}

.playpad:hover { background: rgba(4, 8, 35, 0.14); }
.playpad.gone { opacity: 0; pointer-events: none; }

.playpad .knob {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(2, 111, 254, 0.45);
  transition: transform 0.2s var(--ease);
}

.playpad:hover .knob { transform: scale(1.08); }
.playpad .knob svg { width: 20px; height: 20px; margin-left: 3px; fill: #fff; }

.clip .stamp {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(4, 8, 35, 0.9);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  z-index: 2;
}

.clip .info { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.clip h3 { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; }

.byline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.byline .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.byline a { display: inline-flex; align-items: center; gap: 7px; }
.byline a:hover { color: var(--text); }
.byline .sep { color: var(--dim); }

.clip .acts { display: flex; gap: 8px; margin-top: auto; }
.clip .acts .btn { flex: 1; }
.clip .acts .btn.icon { flex: none; padding: 7px 10px; }

.dl-count { font-size: 12.5px; color: var(--dim); }

/* ---------- clipper cards ---------- */

.clipper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }

.clipper-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
  padding: 24px 18px 18px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.clipper-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.clipper-card .avatar { margin: 0 auto 12px; }
.clipper-card h3 { margin: 0 0 3px; font-size: 16.5px; font-weight: 600; }
.clipper-card .role { font-size: 12.5px; color: var(--dim); }

.clipper-card .nums {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.clipper-card .nums b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.clipper-card .nums span { font-size: 11px; color: var(--dim); }

.rank {
  position: absolute;
  left: 13px;
  top: 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.rank.top { color: var(--crust); }

/* ---------- profile ---------- */

.profile-head { display: flex; gap: 26px; align-items: center; padding: 44px 0 26px; flex-wrap: wrap; }
.profile-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.035em; }
.profile-head .bio { color: var(--muted); max-width: 58ch; margin: 8px 0 0; }

.socials { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }

.socials a, .socials span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13.5px;
  color: var(--muted);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.socials a:hover { color: var(--text); border-color: var(--blue); }

/* ---------- panels and forms ---------- */

.panel { border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface); padding: 26px; }
.panel h2 { margin: 0 0 5px; font-size: 19.5px; font-weight: 700; letter-spacing: -0.025em; }
.panel .hint { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color 0.16s var(--ease);
}

.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field .note { font-size: 13px; color: var(--dim); margin-top: 6px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  background: var(--void);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}

.drop:hover, .drop.over { border-color: var(--blue); color: var(--text); background: var(--raise); }
.drop b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 4px; font-weight: 600; }

.bar { height: 6px; background: var(--raise); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--blue); width: 0; transition: width 0.25s var(--ease); }

.msg { border-radius: var(--r-sm); padding: 11px 13px; font-size: 14.5px; margin-bottom: 16px; border: 1px solid transparent; }
.msg.err { background: rgba(255, 95, 119, 0.1); border-color: rgba(255, 95, 119, 0.36); color: #ffb3bf; }
.msg.ok { background: rgba(47, 207, 149, 0.1); border-color: rgba(47, 207, 149, 0.34); color: #8fe9c6; }
.msg.info { background: rgba(2, 111, 254, 0.1); border-color: rgba(2, 111, 254, 0.34); color: #a7c9ff; }

/* ---------- layout ---------- */

.split { display: grid; grid-template-columns: 392px 1fr; gap: 30px; align-items: start; padding-bottom: 90px; }

.toolbar { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }

.toolbar input[type="search"], .toolbar select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  transition: border-color 0.16s var(--ease);
}

.toolbar input[type="search"]:focus, .toolbar select:focus { border-color: var(--blue); outline: none; }
.toolbar input[type="search"] { min-width: 220px; flex: 1; max-width: 360px; }
.spacer { flex: 1; }

.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px; }

.tabs button {
  background: none;
  border: none;
  padding: 12px 15px;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.16s var(--ease);
}

.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button:hover { color: var(--text); }

.tab-ink {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: left 0.28s var(--ease), width 0.28s var(--ease);
}

.list { border-top: 1px solid var(--line-soft); }

.list-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { font-weight: 600; font-size: 15.5px; }
.list-row .grow div { color: var(--dim); font-size: 13px; margin-top: 2px; }

.list-row .thumb-sm {
  width: 86px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
  background: var(--raise);
  flex: none;
}

.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 44px 26px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 7px; font-weight: 600; }
.empty .btn { margin-top: 16px; }

.skel-card { border-radius: var(--r); height: 252px; }
.skel-clip { border-radius: var(--r); height: 292px; }
.skel-person { border-radius: var(--r); height: 196px; }

/* ---------- toasts ---------- */

.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }

.toast {
  background: var(--raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 14.5px;
  box-shadow: 0 16px 36px rgba(1, 3, 15, 0.6);
  max-width: 320px;
  animation: slidein 0.28s var(--ease) both;
  cursor: pointer;
}

.toast.err { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--good); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line-soft); padding: 32px 0 46px; color: var(--dim); font-size: 14px; margin-top: 20px; }
.foot .wrap { display: flex; gap: 22px; justify-content: space-between; flex-wrap: wrap; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { transition: color 0.16s var(--ease); }
.foot a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 46px 0 30px; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { gap: 10px; height: 60px; }
  .brand span { font-size: 17px; }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 2px;
    display: none;
  }

  .nav.open { display: flex; animation: rise 0.2s var(--ease) both; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .top-actions .btn { padding: 8px 12px; font-size: 14px; }

  .hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .stat-strip { gap: 26px; margin-top: 32px; }
  .stat b { font-size: 23px; }

  .section { padding: 34px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }

  .grid-2 { grid-template-columns: 1fr; }
  .clip-grid { grid-template-columns: 1fr; gap: 18px; }
  .stream-grid { grid-template-columns: 1fr; }
  .clipper-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
  .clipper-card { padding: 18px 12px 14px; }
  .clipper-card .nums { gap: 16px; }

  .toolbar input[type="search"] { max-width: none; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .panel { padding: 20px; }
  .profile-head { gap: 18px; }
  .split { gap: 22px; }
}

@media (max-width: 420px) {
  .top-actions .btn { display: none; }
}

/* ============================================================
   Moderation
   ============================================================ */

.pill.ok { color: var(--good); border-color: rgba(47, 207, 149, 0.45); }

/* Count of clips waiting, sat on the Review tab. */
.queue-badge {
  display: inline-block;
  min-width: 19px;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }

.review-card .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--dim);
  font-size: 13.5px;
}
.review-card .frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.review-card .byline { color: var(--dim); font-size: 13px; }
.review-card .acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Auto-flag warning, so a match is impossible to skim past. */
.flag-strip {
  margin: -4px 0 0;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 181, 69, 0.45);
  background: rgba(255, 181, 69, 0.09);
  color: var(--warn);
  font-size: 13px;
}
.flag-strip b { font-weight: 700; }

/* Reject reasons, folded away until Reject is pressed. */
.reject-box { display: none; flex-direction: column; gap: 10px; }
.review-card.rejecting .reject-box { display: flex; }

.reject-box .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.chip:hover { border-color: var(--blue); color: var(--text); }

.status-select {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--text);
  font-size: 13px;
}

/* An admin's reason, shown on the clipper's own copy of the clip. */
.review-note {
  margin-top: 8px;
  padding: 8px 11px;
  border-left: 2px solid var(--warn);
  background: rgba(255, 181, 69, 0.07);
  color: var(--muted);
  font-size: 13px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Anything not yet approved reads as provisional at a glance. */
.clip.unpublished .frame { opacity: 0.62; }

.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.checkline input { width: 16px; height: 16px; accent-color: var(--blue); }

@media (max-width: 620px) {
  .review-grid { grid-template-columns: 1fr; }
}
