:root {
  --bg: #0b0b10; --card: #16161f; --line: #262633; --text: #ececf1; --muted: #9a9aad;
  --gold: #ffc928; --pink: #ff4f86; --violet: #b04dff; --green: #3ddc84; --red: #ff5a5a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 8px 0 16px; }
h2 { font-size: 17px; margin: 28px 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
code { background: #000; padding: 1px 5px; border-radius: 4px; }

.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.top nav a.on { color: var(--text); background: var(--card); }
.brand { font-weight: 800; letter-spacing: .5px; color: var(--pink); }
.brand span { color: var(--gold); }
.brand.big { font-size: 28px; text-align: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.count { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 0 10px; font-size: 14px; color: var(--gold); }
.alert { background: #3a1620; border: 1px solid var(--red); padding: 8px 10px; border-radius: 8px; }
.ok { color: var(--green); margin-top: 0; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
input, textarea, select { width: 100%; margin-top: 4px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0f0f16; color: var(--text); font: inherit; }
button { padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: #22222e; color: var(--text); font: inherit; cursor: pointer; }
button.primary { background: var(--gold); color: #111; border: 0; font-weight: 700; }
button.danger { background: #3a1620; border-color: var(--red); color: #ffd5d5; }
button.linklike { background: none; border: 0; color: var(--muted); padding: 0; }

.login { max-width: 360px; margin: 12vh auto; }
.login button { width: 100%; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.clip { display: block; color: var(--text); }
.clip:hover { border-color: var(--gold); text-decoration: none; }
.clip-title { font-weight: 600; margin: 6px 0 4px; }
.score { display: inline-block; font-weight: 800; padding: 1px 8px; border-radius: 6px; background: #2a2a36; }
.score.s8, .score.s9, .score.s10 { background: var(--green); color: #062; }
.score.s6, .score.s7 { background: var(--gold); color: #321; }

.status { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #2a2a36; white-space: nowrap; }
.status.approved, .status.published { background: #12351f; color: var(--green); }
.status.rejected { background: #3a1620; color: #ffb3b3; }
.status.pending { background: #3a2f10; color: var(--gold); }

table.list { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
table.list td, table.list th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { color: var(--muted); font-weight: 500; font-size: 13px; }

.detail { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 16px; align-items: start; }
.player video { width: 100%; max-height: 80vh; border-radius: 10px; background: #000; display: block; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.actions { display: grid; gap: 10px; }
.actions .primary { width: 100%; padding: 12px; }
.reject { display: grid; grid-template-columns: 1fr; gap: 6px; }
.reject select, .reject input { margin-top: 0; }

label.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; }
label.check input { width: auto; margin: 0; }
.publish { display: grid; gap: 4px; margin-top: 10px; }
.publish .primary { margin-top: 6px; }
.post { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #2a2a36; }
.post.published { background: #12351f; color: var(--green); }
.post.failed { background: #3a1620; color: #ffb3b3; }
.post.queued, .post.uploading { background: #3a2f10; color: var(--gold); }

.thumb { width: 100%; border-radius: 10px; display: block; }
.metrics { margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.policy { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #2a2a36; white-space: nowrap; }
.policy.allowed { background: #12351f; color: var(--green); }
.policy.blocked { background: #3a1620; color: #ffb3b3; }
.policy.unknown { background: #3a2f10; color: var(--gold); }
.role { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #2a2a36; color: var(--muted); white-space: nowrap; }
.role.new { background: #12351f; color: var(--green); }
.role.other_game { background: #3a2f10; color: var(--gold); }

@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  main { padding: 12px; }
}
