/* The Saturn Awards — saturnawards.org rebuild. Look & feel follows saturnawards.tv. */
:root {
  --bg: #0a0a0c;
  --bg-2: #111827;
  --panel: #14161c;
  --panel-2: #1b1e27;
  --line: #2a2e3a;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --gold: #dfaa2c;
  --gold-2: #f3cf6b;
  --amber: #df952c;
  --navy: #1e3a5f;
  --ok: #4ade80;
  --bad: #f87171;
  --radius: 10px;
  --wrap: 1180px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--gold); line-height: 1.2; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-variant: small-caps; letter-spacing: .02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-variant: small-caps; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--gold-2); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- header (radial navy glow like .tv) ---------- */
.site-header {
  background: radial-gradient(at 50% 0%, var(--navy) 10%, var(--bg) 73%);
  padding: 26px 0 14px;
  position: relative;
}
.brand { text-align: center; text-decoration: none; display: block; color: var(--gold); }
.brand-title {
  display: block;
  font: 500 clamp(1.9rem, 5.2vw, 3.3rem)/1.1 var(--display);
  font-variant: small-caps;
  letter-spacing: .03em;
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(223, 170, 44, .18);
}
.brand-sub {
  display: block;
  margin-top: 6px;
  font: 500 clamp(.8rem, 1.9vw, 1.15rem)/1.3 var(--display);
  font-variant: small-caps;
  color: var(--gold);
  opacity: .92;
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a {
  width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center;
  background: #1f3b63; color: #fff; text-decoration: none;
}
.social a:hover { background: var(--gold); color: #000; }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.nav-toggle {
  background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; display: none;
}
.nav-toggle svg { width: 26px; height: 26px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
.main-nav a {
  display: block; padding: 8px 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav .nav-cta { background: var(--gold); color: #000; font-weight: 600; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--gold-2); color: #000; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; margin-top: 10px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (min-width: 861px) { .main-nav { margin-top: 4px; } }

.notice-bar { background: var(--gold); color: #000; text-align: center; padding: 8px 16px; font-weight: 500; }
.notice-bar a { color: #000; font-weight: 700; }

/* ---------- page furniture ---------- */
.page-head { text-align: center; padding: 26px 0 6px; }
.page-head h1 { margin: 0 0 .25em; }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 680px; }
.section { padding: 34px 0; }
.section-title { text-align: center; margin-top: 0; }
.prose { font-size: 1.02rem; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: 8px; margin: .5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; margin: 1em 0; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.prose strong { color: #fff; }
.table-scroll { overflow-x: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #000; border: 0; border-radius: 6px;
  font: 600 1rem/1 var(--sans); padding: 13px 22px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--gold-2); color: #000; }
.btn.ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.ghost:hover { background: rgba(223,170,44,.1); color: var(--gold-2); }
.btn.small { padding: 8px 14px; font-size: .875rem; }
.btn.danger { background: #7f1d1d; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1fr minmax(180px, 260px) 1fr; gap: 28px; align-items: center; padding: 30px 0 20px; }
.hero p { margin: 0; font-weight: 500; }
.hero .right { text-align: right; }
.hero-logo { width: 100%; max-width: 240px; margin: 0 auto; display: block; filter: drop-shadow(0 6px 26px rgba(223,170,44,.28)); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .right { text-align: center; }
  .hero-logo { order: -1; max-width: 180px; }
}
.feature { text-align: center; }
.feature h2 { font-size: 1.5rem; margin-top: 0; }
.feature svg { width: 40px; height: 40px; stroke: var(--gold); fill: none; stroke-width: 1.6; margin-bottom: 8px; }
.winners-teaser { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

/* ---------- winners ---------- */
.year-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: .85rem; background: var(--panel);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip[aria-current="page"] { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 600; }
.year-select { display: none; max-width: 360px; margin: 0 auto; }
@media (max-width: 600px) {
  .year-select { display: block; }
  .year-select + .year-chips { display: none; }
}
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 20px; }
.search-form input { flex: 1; }
.division { margin-top: 30px; }
.division > h2 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.cat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cat h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--gold-2); margin: 0 0 8px; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li { padding: 4px 0; border-top: 1px solid rgba(255,255,255,.04); display: flex; gap: 8px; align-items: baseline; }
.cat li:first-child { border-top: 0; }
.cat .details { color: var(--muted); font-size: .85rem; }
.winner { color: #fff; font-weight: 600; }
.winner::before { content: ""; display: inline-block; width: 14px; height: 14px; flex: none; transform: translateY(2px);
  background: radial-gradient(circle at 35% 35%, var(--gold-2), var(--gold) 55%, #8a6512 100%); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(223,170,44,.25); }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #000; vertical-align: middle; }
.badge.grey { background: var(--line); color: var(--text); }
.badge.ok { background: #14532d; color: #bbf7d0; }
.badge.bad { background: #7f1d1d; color: #fecaca; }
.results-list { list-style: none; padding: 0; margin: 0; }
.results-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- gallery ---------- */
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.photo { margin: 0; background: var(--panel); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.photo a { display: block; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo figcaption { padding: 8px 10px; font-size: .85rem; color: var(--muted); }
.video-embed { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 8px; background: #000; }

/* ---------- membership ---------- */
.levels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.level { display: flex; flex-direction: column; gap: 6px; }
.level .price { font: 600 2rem/1 var(--display); color: var(--gold); }
.level .btn { margin-top: auto; }
.level h3 { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: #fff; }

/* ---------- forms ---------- */
label { display: block; font-weight: 500; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; background: #0f1117; color: var(--text); border: 1px solid #3a3f4d; border-radius: 6px;
  padding: 11px 12px; font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 420px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(223,170,44,.2); }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field-error { color: var(--bad); font-size: .875rem; margin: 4px 0 0; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.hp { position: absolute; left: -5000px; }
.form-card { max-width: 520px; margin: 0 auto; }

.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; border: 1px solid; }
.flash.success { background: #052e16; border-color: #166534; color: #bbf7d0; }
.flash.error { background: #2a0a0a; border-color: #7f1d1d; color: #fecaca; }
.flash.info { background: #0b1a2e; border-color: #1e3a5f; color: #cfe3ff; }

/* ---------- ballot ---------- */
.ballot-progress { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.ballot-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--gold-2)); }
.ballot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.ballot-list a, .ballot-list .done {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.ballot-list a:hover { border-color: var(--gold); }
.ballot-list .done { opacity: .75; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--panel); cursor: pointer; }
.choice:hover { border-color: var(--gold); }
.choice input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.choice:has(input:checked) { border-color: var(--gold); background: #1f1a0d; }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); margin-top: 40px; padding: 34px 0 20px; font-size: .92rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr minmax(200px, 320px) 1fr; align-items: start; }
.footer-grid .right { text-align: right; }
.footer-grid h2 { font: 600 .95rem/1.3 var(--sans); color: var(--gold); margin: 0 0 10px; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-grid .right { text-align: center; } }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.copyright { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 16px; }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #0e1016; border-right: 1px solid var(--line); padding: 20px 12px; }
.admin-side .logo { font: 500 1.2rem/1.2 var(--display); color: var(--gold); font-variant: small-caps; text-decoration: none; display: block; padding: 0 8px 16px; }
.admin-side ul { list-style: none; padding: 0; margin: 0; }
.admin-side a { display: block; padding: 8px 10px; color: var(--text); text-decoration: none; border-radius: 6px; font-size: .93rem; }
.admin-side a:hover, .admin-side a[aria-current="page"] { background: var(--panel-2); color: var(--gold); }
.admin-main { padding: 24px 28px 60px; min-width: 0; }
.admin-main h1 { font-size: 1.8rem; margin-top: 0; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-side ul { display: flex; flex-wrap: wrap; } .admin-main { padding: 18px 16px; } }
.stat { font: 600 2rem/1 var(--display); color: var(--gold); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tr:hover td { background: rgba(255,255,255,.02); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar .field { margin: 0; }
.pager { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.inline-form { display: inline; }
