:root {
  /* "This Is How You Lose the Time War" — warm cream paper, red vs blue */
  --bg: #faf6ed;       /* warm ivory page */
  --bg-2: #f2ecdb;     /* card surface */
  --bg-3: #e8dfc7;     /* depressed / input surface */
  --border: #d4cdb7;   /* warm tan border */
  --text: #1d2533;     /* deep navy ink */
  --muted: #7a715f;    /* warm muted text */
  --radius: 8px;

  /* Semantic genre palette — the heart of the brand */
  --sf: #c6444f;         /* scarlet — Red faction */
  --fantasy: #2c5d96;    /* cobalt — Blue faction */
  --blend: #7a4486;      /* plum where they meet */
  --horror: #3a3e4a;     /* charcoal */

  /* Status palette */
  --winner: #b89548;      /* warm gold */
  --nominee: #7a92b5;     /* dusty blue */
  --read: #4a8b6f;        /* forest green */
  --queued: #c47a3d;      /* terracotta */

  /* Per-reader accents — Tom BLUE blue, Nika RED red */
  --accent:   #1d4ed8;    /* Tom — saturated royal blue */
  --accent-2: #dc2626;    /* Nika — saturated red */
  --accent-3: #b6783c;    /* Westdac — burnt sienna */
  --accent-4: #4a7a5a;    /* Colton — deep moss */
  --accent-5: #7a4486;    /* Schupp — plum */
}

* { box-sizing: border-box; }
:root { color-scheme: light; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
::selection { background: rgba(198, 68, 79, 0.18); color: var(--text); }

a { color: var(--fantasy); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; align-items: center; line-height: 0; }
.brand-mark svg { display: block; height: 24px; width: auto; }
.brand-name {
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-paren {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}
.nav { display: flex; gap: 18px; align-items: center; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  text-decoration: none;
}
.nav-divider {
  height: 16px;
  width: 1px;
  background: var(--border);
}

/* Auth pill (Sign in / @handle + Sign out) — sits at the end of the nav */
.auth-slot { display: inline-flex; gap: 8px; align-items: center; margin-left: 6px; }
.auth-signin {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.auth-signin:hover { filter: brightness(1.08); }
.auth-handle {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
}
.auth-signout {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.auth-signout:hover { color: var(--text); border-color: var(--accent); }

/* Sign-in modal */
.mr-signin-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  max-width: 420px;
  width: 90vw;
  padding: 0;
}
.mr-signin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.mr-signin-form { padding: 24px 26px 22px; }
.mr-signin-form h2 { margin: 0 0 6px; font-size: 20px; }
.mr-signin-form p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.mr-signin-label { display: block; margin-bottom: 14px; }
.mr-signin-label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.mr-signin-label input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.mr-signin-label input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.mr-signin-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.mr-btn-primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.mr-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.mr-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
}
.mr-signin-status { margin-top: 14px; font-size: 13px; color: var(--muted); min-height: 18px; }
.mr-signin-status.success { color: var(--read); }
.mr-signin-status.error { color: var(--sf); }

/* Mark-as-read controls on book detail */
.user-status {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.user-status-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.user-status-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.user-status-btn {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.user-status-btn:hover { border-color: var(--accent); }
.user-status-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.user-status-clear { color: var(--muted); }
.user-status-clear:hover { color: var(--sf); border-color: var(--sf); }
.user-status-msg { margin-top: 8px; font-size: 12px; min-height: 16px; color: var(--muted); }
.user-status-msg.success { color: var(--read); }
.user-status-msg.error { color: var(--sf); }
.user-status-signin {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.user-status-signin:hover { filter: brightness(1.08); }
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px !important;
}
.profile-link:hover { border-color: var(--accent); }
.profile-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.profile-dot.gr { background: var(--accent-2); }
.profile-dot.sg { background: var(--accent); }
.profile-dot.sg-nika { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); }

/* About page profile inline links */
.about-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  margin-right: 4px;
}
.about-profile-link:hover { border-color: var(--accent); text-decoration: none; }
.about-profile-link .profile-dot { width: 10px; height: 10px; }

/* Inactive reader filter fieldsets are hidden via JS using `display: none`
 * (set in wireFilters based on the ?reader= URL param). */

/* Completionist hero — pitch at very top of Progress */
.completionist-intro {
  margin: 12px 0 24px;
  padding: 26px 28px 24px;
  background: linear-gradient(135deg, rgba(198, 68, 79, 0.07), rgba(44, 93, 150, 0.07));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.completionist-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  background: linear-gradient(90deg, var(--sf), var(--blend), var(--fantasy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.completionist-intro p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* Radar fingerprint shown above the awards intro on Progress */
.radar-hero {
  margin: 0 0 24px;
  padding: 18px 20px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

/* Awards intro — Hugo + Nebula explainer at the top of Progress */
.awards-intro {
  margin: 12px 0 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(198, 68, 79, 0.04), rgba(44, 93, 150, 0.04));
  border: 1px solid var(--border);
  border-left: 4px solid var(--blend);
  border-radius: var(--radius);
}
.awards-intro-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}
.awards-intro p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.awards-tag {
  display: inline-block;
  margin-left: 2px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.awards-tag-fans {
  background: rgba(198, 68, 79, 0.14);
  color: var(--sf);
  border: 1px solid rgba(198, 68, 79, 0.4);
}
.awards-tag-writers {
  background: rgba(44, 93, 150, 0.14);
  color: var(--fantasy);
  border: 1px solid rgba(44, 93, 150, 0.4);
}

/* Awards banner at top of Progress */
.awards-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 28px;
}
.award-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}
.award-pill:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.award-pill.nebula { border-left: 4px solid var(--fantasy); }
.award-pill.hugo { border-left: 4px solid var(--sf); }
.award-pill-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--bg-3);
  border-radius: 4px;
  white-space: nowrap;
}
.award-pill.nebula .award-pill-date { color: var(--fantasy); background: rgba(44, 93, 150, 0.10); }
.award-pill.hugo .award-pill-date { color: var(--sf); background: rgba(198, 68, 79, 0.10); }
.award-pill-body { flex: 1; }
.award-pill-title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.award-pill-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Mount Readmore climb (legacy — kept for back-compat, no longer rendered) */
.mountain-svg {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 12px auto 0;
  display: block;
  background: linear-gradient(180deg, rgba(198, 68, 79, 0.03), transparent);
  border-radius: var(--radius);
}

/* Author leaderboard */
.authors-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.author-row {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
}
.author-name { color: var(--text); font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-bar { background: var(--bg-3); border-radius: 4px; height: 18px; overflow: hidden; position: relative; }
.author-bar-bg {
  height: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.author-bar-tom,
.author-bar-nika,
.author-bar-westdac,
.author-bar-colton,
.author-bar-schupp {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0.85;
}
.author-bar-tom     { left: 0; background: var(--accent);   }
.author-bar-nika    { background: var(--accent-2); }
.author-bar-westdac { background: var(--accent-3); }
.author-bar-colton  { background: var(--accent-4); }
.author-bar-schupp  { background: var(--accent-5); }
.author-count { color: var(--muted); font-size: 12px; }

/* Toggle row on Progress page — status (Winners/Nominees/Both) and award scope (Both/Hugo/Nebula) side by side */
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 24px;
  align-items: center;
}
.toggle-row .status-toggle { margin-top: 0; margin-bottom: 0; }
.status-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.status-tab-hugo.active { box-shadow: inset 0 -2px 0 var(--sf); }
.status-tab-nebula.active { box-shadow: inset 0 -2px 0 var(--fantasy); }
.status-tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-tab:hover { color: var(--text); }
.status-tab.active {
  background: var(--bg-3);
  color: var(--text);
}
.status-count {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-3);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 500;
}
.status-tab.active .status-count {
  background: var(--bg-2);
  color: var(--text);
}

/* Era bars (was year bars) */
.era-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
  height: 200px;
  align-items: end;
  margin-top: 14px;
}
.era-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}
.era-bar {
  width: 100%;
  background: var(--bg-3);
  border-radius: 3px 3px 0 0;
  position: relative;
  min-height: 4px;
}
.era-bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
  z-index: 5;
}
.era-bar:hover .era-bar-tooltip { opacity: 1; }
.era-bar-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.era-bar-count { font-size: 11px; color: var(--text); }

/* Genre breakdown */
.genre-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.genre-row {
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.genre-name { color: var(--text); font-weight: 500; text-align: right; }
.genre-bar { height: 18px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.genre-bar-fill { height: 100%; background: var(--accent); opacity: 0.85; }
.genre-count { font-size: 12px; color: var(--text); }

/* Genre radar (spider) */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.radar-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}
.radar-scale-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: -4px;
}
.radar-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}
.radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.radar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Genre vector table */
.vector-table {
  margin-top: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.vector-row {
  display: grid;
  grid-template-columns: 2fr 70px 70px 70px 90px 1fr;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.vector-row:last-child { border-bottom: none; }
.vector-row.vector-head {
  background: var(--bg-3);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.vector-combo {
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}
.vector-pct {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--accent);
  border: 1px solid rgba(29, 78, 216, 0.4);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

/* Settings / Admin / Profile pages */
.settings-page, .admin-page, .profile-page { max-width: 760px; margin: 0 auto; }
.settings-section {
  margin: 26px 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.settings-section h2 {
  font-size: 17px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-count {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-field { display: flex; flex-direction: column; gap: 4px; }
.settings-field > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.settings-field input {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.settings-field input:disabled { color: var(--muted); }
.settings-field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.settings-hint { color: var(--muted); font-weight: 400; }
.settings-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.settings-radio:last-of-type { border-bottom: 0; }
.settings-radio input { margin-top: 3px; }
.settings-radio span { font-size: 14px; line-height: 1.4; }
.settings-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.settings-add-friend {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}
.settings-add-friend input {
  flex: 1;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.settings-friend-list { display: flex; flex-direction: column; gap: 6px; }
.settings-friend-row {
  display: grid;
  grid-template-columns: 1fr auto 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.settings-friend-handle {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.settings-friend-handle:hover { color: var(--accent); }
.settings-friend-meta { font-size: 12px; color: var(--muted); }
.settings-friend-remove {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.settings-friend-remove:hover { color: var(--sf); border-color: var(--sf); }
.settings-msg { margin-top: 12px; font-size: 13px; min-height: 18px; color: var(--muted); }
.settings-msg.success { color: var(--read); }
.settings-msg.error   { color: var(--sf); }

/* Admin */
.admin-table { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.admin-row {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  align-items: center;
}
.admin-handle a { font-weight: 600; color: var(--text); text-decoration: none; }
.admin-handle a:hover { color: var(--accent); }
.admin-pill {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
}
.admin-pill-admin {
  background: rgba(198, 68, 79, 0.14);
  color: var(--sf);
  border: 1px solid rgba(198, 68, 79, 0.4);
}
.admin-reads { font-size: 13px; color: var(--muted); }
.admin-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.admin-controls select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
.admin-controls label { display: inline-flex; align-items: center; gap: 4px; }

/* Profile */
.profile-header { margin-top: 8px; }
.profile-header h1 { font-size: 32px; margin: 0 0 6px; }
.profile-me {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-left: 6px;
}
.profile-stats { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.profile-stats strong { color: var(--text); }
.profile-stats .muted { color: var(--muted); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.profile-friend-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--read);
  border: 1px solid var(--read);
  border-radius: 999px;
  background: transparent;
}

/* Auth admin gear */
.auth-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.auth-admin:hover { border-color: var(--accent); text-decoration: none; }

/* Leaderboard page */
.leaderboard-page { max-width: 820px; margin: 0 auto; }
.leaderboard-toggle { margin: 16px 0 22px; }
.lb-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.lb-row {
  display: grid;
  grid-template-columns: 56px 1fr 130px 70px 100px;
  align-items: center;
  padding: 11px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.lb-row:last-child { border-bottom: 0; }
.lb-row-me { background: rgba(29, 78, 216, 0.10); }
.lb-rank { color: var(--muted); font-weight: 600; font-size: 13px; }
.lb-handle { font-weight: 600; color: var(--text); }
.lb-stat { font-size: 14px; color: var(--text); }
.lb-stat strong { font-size: 16px; }
.lb-of { color: var(--muted); }
.lb-pct { color: var(--muted); font-size: 13px; }
.lb-action { text-align: right; }
.lb-compare {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(29, 78, 216, 0.4);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
}
.lb-compare:hover { background: rgba(29, 78, 216, 0.18); text-decoration: none; }
.lb-compare-disabled {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
  cursor: pointer;
}
.lb-me {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.lb-empty {
  margin-top: 18px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

/* Compare picker page (friends list) */
.compare-picker-page { max-width: 720px; margin: 0 auto; }
.compare-self-row {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.compare-self-row strong { color: var(--text); }
.compare-friend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compare-friend-row {
  display: grid;
  grid-template-columns: 1fr 220px 100px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.1s, transform 0.1s;
}
.compare-friend-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}
.compare-friend-handle { font-weight: 600; font-size: 15px; }
.compare-friend-meta { color: var(--muted); font-size: 13px; }
.compare-friend-cta {
  text-align: right;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
@media (max-width: 700px) {
  .compare-friend-row { grid-template-columns: 1fr auto; }
  .compare-friend-meta { grid-column: 1 / -1; font-size: 12px; }
}

/* Standalone /compare page header */
.compare-page { max-width: 1100px; margin: 0 auto; }
.compare-header h1 { font-size: 30px; margin: 8px 0 6px; letter-spacing: -0.01em; }
.compare-header h1 span { font-weight: 700; }
.compare-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.compare-totals strong { color: var(--text); }

/* Reader comparison section */
.comparison-block { margin-top: 36px; }
.comparison-quadrant {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comparison-quadrant-head { margin-bottom: 8px; }
.comparison-quadrant-head h3 {
  font-size: 15px;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.comparison-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-3);
  padding: 2px 9px;
  border-radius: 999px;
}

/* Swimlanes */
.swimlane { margin-top: 22px; }
.swimlane-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.swimlane-header h3 { font-size: 16px; margin: 0; color: var(--text); }
.swimlane-count { font-size: 12px; color: var(--muted); }
.swimlane-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x proximity;
}
.swimlane-strip::-webkit-scrollbar { height: 6px; }
.swimlane-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.swimlane-card {
  flex: 0 0 124px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.1s;
}
.swimlane-card:hover { transform: translateY(-2px); }
.swimlane-cover {
  width: 124px;
  height: 184px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.swimlane-cover.is-winner { box-shadow: 0 0 0 2px rgba(184, 149, 72, 0.45); border-color: rgba(184, 149, 72, 0.6); }
.swimlane-cover img { width: 100%; height: 100%; object-fit: cover; }
.swimlane-placeholder { font-size: 32px; color: var(--muted); }
.swimlane-pill {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(74, 139, 111, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.swimlane-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swimlane-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 700px) {
  .vector-row { grid-template-columns: 1.4fr 44px 44px 44px 60px 70px; font-size: 12px; padding: 8px 10px; }
}

/* Author gender cards */
.gender-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.gender-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.gender-card.gender-female { border-left: 3px solid var(--accent-2); }
.gender-card.gender-male { border-left: 3px solid var(--accent); }
.gender-card-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.gender-card-stat { font-size: 24px; font-weight: 600; margin: 6px 0 10px; }
.gender-card-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.gender-card-readers { display: flex; flex-direction: column; gap: 8px; }
.gender-reader-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; align-items: baseline; }
.gender-reader-row .progress { grid-column: 1 / -1; }
.gender-reader-name { font-weight: 600; }
.gender-reader-stat { color: var(--muted); }

/* Decade heatmap (kept for backwards compat — no longer rendered) */
.decade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.decade-cell {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.1s;
}
.decade-cell:hover { transform: translateY(-2px); }
.decade-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.decade-frac { font-size: 20px; font-weight: 600; margin: 4px 0; color: var(--text); }
.decade-nika { font-size: 11px; color: var(--accent-2); }

/* Progress / Stats view extras */
.progress-section { margin-top: 36px; }
.progress-section h2 { font-size: 18px; margin-bottom: 12px; }
.headline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.eta-card {
  background: linear-gradient(135deg, rgba(198, 68, 79, 0.06), rgba(44, 93, 150, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 16px;
}
.eta-card .eta-headline { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.eta-card .eta-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.eta-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.eta-card ul li { padding: 2px 0; }

.recent-reads {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.recent-read {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
}
.recent-read:hover { border-color: var(--accent); }
.recent-read-cover {
  width: 40px;
  height: 60px;
  flex: 0 0 40px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.recent-read-cover img { width: 100%; height: 100%; object-fit: cover; }
.recent-read-info { font-size: 13px; line-height: 1.35; flex: 1; min-width: 0; }
.recent-read-info .rr-title { color: var(--text); font-weight: 600; }
.recent-read-info .rr-meta { color: var(--muted); font-size: 12px; }
.rr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.rr-pill {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}
.rr-pill-t { background: rgba(29, 78, 216, 0.12);  color: var(--accent);   border-color: rgba(29, 78, 216, 0.4); }
.rr-pill-n { background: rgba(220, 38, 38, 0.12);  color: var(--accent-2); border-color: rgba(220, 38, 38, 0.4); }
.rr-pill-w { background: rgba(182, 120, 60, 0.12); color: var(--accent-3); border-color: rgba(182, 120, 60, 0.4); }
.rr-pill-c { background: rgba(74, 122, 90, 0.12);  color: var(--accent-4); border-color: rgba(74, 122, 90, 0.4); }
.rr-pill-s { background: rgba(122, 68, 134, 0.12); color: var(--accent-5); border-color: rgba(122, 68, 134, 0.4); }

.year-progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.year-card {
  background: linear-gradient(135deg, rgba(198, 68, 79, 0.05), rgba(44, 93, 150, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.year-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.year-card-name { font-size: 17px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.year-card-name.nika { color: var(--accent-2); }
.year-card-name.westdac { color: var(--accent-3); }
.year-card-name.colton { color: var(--accent-4); }
.year-card-name.schupp { color: var(--accent-5); }
.year-card-year { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }
.year-card-stat { font-size: 14px; color: var(--text); padding: 4px 0; }
.year-card-stat strong { color: var(--accent); }
.year-card .year-card-stat:not(:last-child) { border-bottom: 1px solid var(--border); }
.year-card-stat:last-child { padding-top: 8px; }

@media (max-width: 700px) {
  .year-progress-grid { grid-template-columns: 1fr; }
  .awards-banner { grid-template-columns: 1fr; }
}

.year-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 12px;
  height: 100px;
}
.year-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  position: relative;
  cursor: pointer;
}
.year-bar.empty { background: var(--bg-3); }
.year-bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
.year-bar:hover .year-bar-tooltip { opacity: 1; }
.year-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

#main { padding: 24px 28px; max-width: 1400px; margin: 0 auto; }
.view.hidden { display: none !important; }

/* List view */
#view-list { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }

.filters {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-box input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0;
  background: var(--bg-2);
}
fieldset legend {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px;
}
fieldset label {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  cursor: pointer;
}
fieldset label input { margin-right: 8px; }

.year-row { display: flex; align-items: center; gap: 8px; }
.year-row input {
  width: 70px;
  padding: 6px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

#reset {
  background: var(--bg-3);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
#reset:hover { color: var(--text); }

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
#result-count { color: var(--muted); font-size: 13px; }
#sort {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 13px;
}

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

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.1s ease;
  min-height: 132px;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card-cover {
  width: 84px;
  flex: 0 0 84px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover .cover-placeholder { font-size: 24px; color: var(--muted); }
.card-body {
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.card .title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.25;
}
.card .author {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.card .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}
.badge.winner { background: rgba(184, 149, 72, 0.15); color: var(--winner); border-color: rgba(184, 149, 72, 0.4); }
.badge.nominee { background: rgba(122, 146, 181, 0.15); color: var(--nominee); border-color: rgba(122, 146, 181, 0.4); }
.badge.read { background: rgba(74, 139, 111, 0.15); color: var(--read); border-color: rgba(74, 139, 111, 0.4); }
.badge.queued { background: rgba(196, 122, 61, 0.15); color: var(--queued); border-color: rgba(196, 122, 61, 0.4); }
/* Genre badges — Time War semantic */
.badge.genre-sf { background: rgba(198, 68, 79, 0.12); color: var(--sf); border-color: rgba(198, 68, 79, 0.4); }
.badge.genre-fantasy { background: rgba(44, 93, 150, 0.12); color: var(--fantasy); border-color: rgba(44, 93, 150, 0.4); }
.badge.genre-blend { background: linear-gradient(90deg, rgba(198, 68, 79, 0.12), rgba(44, 93, 150, 0.12)); color: var(--blend); border-color: rgba(122, 68, 134, 0.4); }
.badge.genre-horror { background: rgba(58, 62, 74, 0.12); color: var(--horror); border-color: rgba(58, 62, 74, 0.4); }
.badge.cat { background: var(--bg-3); color: var(--muted); border-color: var(--border); }
.badge .reader-initial {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  border-radius: 50%;
  margin-right: 4px;
  color: var(--bg);
}
.badge.reader-t .reader-initial { background: var(--accent); color: #fff; }
.badge.reader-n .reader-initial { background: var(--accent-2); color: #fff; }
.badge.reader-w .reader-initial { background: var(--accent-3); color: #fff; }
.badge.reader-c .reader-initial { background: var(--accent-4); color: #fff; }
.badge.reader-s .reader-initial { background: var(--accent-5); color: #fff; }
.badge.reader-t { color: var(--accent);   border-color: rgba(29, 78, 216, 0.4);  background: rgba(29, 78, 216, 0.12); }
.badge.reader-n { color: var(--accent-2); border-color: rgba(220, 38, 38, 0.4);  background: rgba(220, 38, 38, 0.12); }
.badge.reader-w { color: var(--accent-3); border-color: rgba(182, 120, 60, 0.4); background: rgba(182, 120, 60, 0.12); }
.badge.reader-c { color: var(--accent-4); border-color: rgba(74, 122, 90, 0.4);  background: rgba(74, 122, 90, 0.12); }
.badge.reader-s { color: var(--accent-5); border-color: rgba(122, 68, 134, 0.4); background: rgba(122, 68, 134, 0.12); }

/* Detail view */
.detail {
  max-width: 900px;
  margin: 0 auto;
}
.detail .back { color: var(--muted); font-size: 13px; }
.detail h1 { font-size: 28px; margin: 8px 0 4px; letter-spacing: -0.01em; }
.detail .author-line { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.detail-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin-top: 24px;
}
.detail-cover {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--muted);
}
.detail-cover img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.detail-info dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
}
.detail-info dt { color: var(--muted); }
.detail-info dd { margin: 0; }
.detail-info .badges-row { margin-top: 12px; }
.detail-info .notes {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
}
.detail-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-links a {
  padding: 7px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
}
.detail-links a:hover { border-color: var(--accent); text-decoration: none; }
.series-inline { color: var(--accent-2); font-weight: 500; }
.book-section { margin-top: 36px; max-width: 720px; }
.book-section h2 { font-size: 18px; margin-bottom: 12px; }
.book-section h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.book-description { font-size: 15px; line-height: 1.6; color: var(--text); }
.book-description p { margin: 0 0 12px; }
.book-subjects { display: flex; flex-direction: column; }
.book-subjects > div { display: flex; flex-wrap: wrap; gap: 6px; }
.subject-tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  margin: 0 4px 4px 0;
}
.btn-primary {
  display: inline-block;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: #246e5b; text-decoration: none; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.1s, transform 0.1s;
}
.stat-card-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.stat-card-link h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-card-link h3::after {
  content: "→";
  color: var(--muted);
  font-size: 14px;
  opacity: 0.6;
}
.stat-card h3 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-card .stat-sub {
  color: var(--muted);
  font-size: 13px;
}
.progress {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

/* About */
.about {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}
.about h2 { margin-top: 28px; font-size: 18px; }

.footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* 2026 finalists tabs (Hugo + Nebula) */
.nav-hot {
  position: relative;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-hot::before {
  content: '★';
  margin-right: 5px;
  color: var(--winner);
}
.nav-hot-hugo {
  background: linear-gradient(135deg, rgba(198, 68, 79, 0.16), rgba(184, 149, 72, 0.18));
  border: 1px solid rgba(198, 68, 79, 0.4);
  color: var(--sf) !important;
}
.nav-hot-nebula {
  background: linear-gradient(135deg, rgba(44, 93, 150, 0.16), rgba(184, 149, 72, 0.16));
  border: 1px solid rgba(44, 93, 150, 0.4);
  color: var(--fantasy) !important;
}
.nav-hot:hover, .nav-hot.active { color: var(--text) !important; }

.hugo2026 { max-width: 1100px; margin: 0 auto; }
.hugo-hero {
  padding: 32px 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 12px 0 28px;
}
.hugo-hero-hugo {
  background: linear-gradient(135deg, rgba(198, 68, 79, 0.10), rgba(184, 149, 72, 0.12));
  border-left: 4px solid var(--sf);
}
.hugo-hero-nebula {
  background: linear-gradient(135deg, rgba(44, 93, 150, 0.10), rgba(184, 149, 72, 0.10));
  border-left: 4px solid var(--fantasy);
}
.hugo-hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hugo-hero-tag-hugo {
  color: var(--sf);
  border: 1px solid rgba(198, 68, 79, 0.4);
  background: rgba(198, 68, 79, 0.08);
}
.hugo-hero-tag-nebula {
  color: var(--fantasy);
  border: 1px solid rgba(44, 93, 150, 0.4);
  background: rgba(44, 93, 150, 0.08);
}
.hugo-hero h1 {
  font-size: 32px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hugo-hero p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--text); }
.hugo-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.hugo-hero-stats strong { color: var(--text); }

.hugo-vote {
  margin: 0 0 36px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.hugo-vote h2 { margin: 0 0 14px; font-size: 18px; }
.hugo-vote ol { margin: 0 0 18px; padding-left: 22px; }
.hugo-vote li { margin: 6px 0; font-size: 14px; line-height: 1.55; }
.hugo-vote-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hugo-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--sf);
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.hugo-btn:hover { filter: brightness(1.08); }
.hugo-btn-nebula { background: var(--fantasy); }
.hugo-btn-secondary { background: var(--bg); color: var(--text) !important; border: 1px solid var(--border); }
.hugo-btn-secondary:hover { border-color: var(--sf); }
.nebula2026 .hugo-btn-secondary:hover { border-color: var(--fantasy); }
.nebula2026 .hugo-section h2 { border-bottom-color: rgba(44, 93, 150, 0.25); }

.hugo-section { margin: 32px 0; }
.hugo-section h2 {
  font-size: 20px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.hugo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.hugo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.hugo-card:hover {
  transform: translateY(-2px);
  border-color: var(--sf);
  box-shadow: 0 4px 14px rgba(198, 68, 79, 0.15);
}
.hugo-card-nebula:hover {
  border-color: var(--fantasy);
  box-shadow: 0 4px 14px rgba(44, 93, 150, 0.15);
}
.hugo-card-cover {
  aspect-ratio: 2/3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hugo-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.hugo-card-stub { cursor: default; }
.hugo-card-stub:hover { transform: none; box-shadow: none; }
.hugo-card-placeholder { font-size: 40px; opacity: 0.4; }
.hugo-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 3px solid var(--border);
}
.hugo-card-fallback-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6px;
}
.hugo-card-fallback-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hugo-card-body { padding: 9px 11px 11px; }
.hugo-card-title { font-weight: 700; font-size: 13.5px; line-height: 1.25; margin-bottom: 3px; }
.hugo-card-author { font-size: 12px; color: var(--text); margin-bottom: 4px; }
.hugo-card-pub { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

.hugo-source {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 800px) {
  #view-list { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cover { aspect-ratio: 3/4; max-width: 200px; }
}
