:root {
  --bg: #000000;
  --panel: #101010;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --faint: #6f6f6f;
  --yellow: #ffd400;
  --yellow-2: #ffe56a;
  --ink: #111111;
  --danger: #ff5d5d;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 212, 0, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.home-body { background: #000; overflow: hidden; }
.home-shot {
  position: fixed;
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  object-fit: cover;
  object-position: center top;
  filter: blur(14px) saturate(1.08);
}

.home-brand {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-brand .logo {
  gap: clamp(16px, 2.4vw, 28px);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.65));
}

.home-brand .logo-mark {
  width: clamp(72px, 12vw, 200px);
  height: clamp(72px, 12vw, 200px);
  border-radius: clamp(18px, 2.6vw, 46px);
  display: inline-grid;
  place-items: center;
  background-image: none;
  box-shadow: 0 0 64px rgba(255, 212, 0, 0.42);
}

.home-play {
  width: 44%;
  height: 44%;
  display: block;
}

.home-brand .logo-type {
  font-size: clamp(48px, 11vw, 210px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.92);
  border-top: 3px solid var(--yellow);
  border-bottom: 1px solid #1c1c1c;
}

.header-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='8,5 8,19 19,12' fill='%23111111'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 22px rgba(255, 212, 0, 0.28);
}

.logo-type {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-type em { font-style: normal; color: var(--yellow); }

.age-pill {
  margin-left: auto;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.go {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
}

.go-card {
  width: min(520px, 100%);
  text-align: center;
  background: #0d0d0d;
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: 24px;
  padding: 36px 28px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 212, 0, 0.06);
}

.kicker {
  margin: 0;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 0.95;
  margin: 12px 0 14px;
}

.lead, .fine, .help, .site-footer p { color: var(--muted); }
.lead { margin: 0 0 22px; }
.fine { margin: 16px 0 0; font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover { background: var(--yellow-2); }

.btn-xl {
  min-width: min(100%, 280px);
  padding: 16px 28px;
  font-size: 18px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #3a3a3a;
}

.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); background: transparent; }

.btn svg { display: block; }

.site-footer {
  border-top: 1px solid #1b1b1b;
  background: #050505;
  text-align: center;
  padding: 18px 16px 22px;
}

.site-footer p { margin: 0; font-size: 14px; }

.screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card, .miss-card {
  width: min(460px, 100%);
  background: #0d0d0d;
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 212, 0, 0.06);
}

.login-card h1 { font-size: 48px; }
.login-card h1 em, .miss-card h1 em { font-style: normal; color: var(--yellow); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }

.form input[type="text"],
.form input[type="password"],
.form input[type="url"] {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.alert-error {
  background: rgba(255, 93, 93, 0.1);
  color: #ffd0d0;
  border: 1px solid rgba(255, 93, 93, 0.35);
}

.alert-ok {
  background: rgba(255, 212, 0, 0.08);
  color: var(--yellow);
  border: 1px solid rgba(255, 212, 0, 0.35);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #070707;
  border-right: 1px solid #1d1d1d;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-kicker {
  margin: 18px 8px 6px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.side-nav { display: grid; gap: 4px; }

.side-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 12px;
}

.side-nav a:hover,
.side-nav a.is-active { background: var(--yellow); color: var(--ink); }

.signout { margin-top: auto; }
.signout button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}
.signout button:hover { color: var(--yellow); }

.admin-main { padding: 28px 28px 64px; }
.admin-top { margin-bottom: 22px; }
.admin-top h1 { font-size: 42px; margin-bottom: 8px; }
.admin-top p { margin: 0; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  max-width: 520px;
}

.stat, .panel {
  background: var(--panel);
  border: 1px solid #242424;
  border-radius: 18px;
  padding: 18px;
}

.panel { margin-bottom: 16px; }
.panel.narrow { max-width: 720px; }

.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 40px;
  color: var(--yellow);
  line-height: 1;
}

.panel h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 28px;
  margin: 0 0 14px;
}

.help { margin: 0; font-size: 13px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 10px 10px;
}
.data-table td {
  padding: 12px 10px;
  border-top: 1px solid #242424;
  vertical-align: middle;
}
.video-cell { display: grid; gap: 2px; }
.video-cell strong { font-weight: 700; }
.video-cell small, .short-cell small {
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.short-cell { display: flex; gap: 8px; align-items: center; }
.short-cell code {
  color: var(--yellow);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.row-actions button.linkish {
  background: transparent;
  border: 0;
  color: var(--danger);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.empty-row { color: var(--muted); text-align: center; padding: 28px 10px; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid #1d1d1d; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .signout { margin-top: 8px; }
  .admin-main { padding: 22px 16px 48px; }
  .stats { max-width: none; }
}
