/* ---------------------------------------------------
   AWARDTHEORY — GLOBAL STYLESHEET
   /source/css/css.css
--------------------------------------------------- */


/* ---------------------------------------------------
   1. RESET & CSS VARIABLES
--------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #dde8f0;
  --bg-card:       #ffffff;
  --text:          #0f1923;
  --text-muted:    #6b7a87;
  --accent:        #1a6fff;
  --gold:          #c9a84c;
  --accent-gold:   #c9a84c;
  --gold-light:    #f0d98a;
  --border:        rgba(0,0,0,0.08);
  --card-radius:   20px;
  --surface:       #0f1923;          /* dark navy — for buttons, pills, dark surfaces */
  --nav-bg:        rgba(221,232,240,0.85);
  --hover-overlay: rgba(0,0,0,0.05);

  /* Layout widths */
  --content-w: 920px;   /* standard inner-page content */
  --wide-w:    960px;   /* wider contexts: awardshow, settings */
  --page-w:    1100px;  /* homepage sections */
}


/* ---------------------------------------------------
   2. BASE
--------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* Pages with interior content (awardshow, stats, rankings individual) */
body.page-inner {
  padding: 32px 24px 110px;
  min-height: 100vh;
}


/* ---------------------------------------------------
   3. NAV
--------------------------------------------------- */

/* Breadcrumb (replaces nav-logo on inner pages) */
.breadcrumb { display: flex; align-items: center; min-width: 0; }
.breadcrumb-home {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 900;
  color: var(--text); text-decoration: none; letter-spacing: -0.5px; flex-shrink: 0;
}
.breadcrumb-sep { font-size: 13px; color: var(--text-muted); margin: 0 7px; opacity: 0.45; flex-shrink: 0; }
.breadcrumb-item { font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.breadcrumb-item:hover { color: var(--text); }
.breadcrumb-item.current { color: var(--text); font-weight: 600; }

/* Breadcrumb dropdown buttons */
.bc-dropdown { position: relative; display: inline-flex; align-items: center; }
.bc-dropdown-btn {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(107,122,135,0.45);
  border-radius: 6px;
  padding: 2px 7px 2px 9px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  line-height: 1.6;
  transition: border-color 0.15s, color 0.15s;
}
.bc-dropdown-btn:hover { color: var(--text); border-color: var(--text-muted); }
.bc-dropdown-btn .bc-chevron { font-size: 8px; opacity: 0.55; }
.bc-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  z-index: 200;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.bc-dropdown-menu.open { display: block; }
.bc-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.bc-dropdown-menu a:first-child { border-radius: 10px 10px 0 0; }
.bc-dropdown-menu a:last-child  { border-radius: 0 0 10px 10px; }
.bc-dropdown-menu a:only-child  { border-radius: 10px; }
.bc-dropdown-menu a:hover { background: var(--hover-overlay); }
.bc-dropdown-menu a.bc-active { font-weight: 600; color: var(--accent); }

/* Icon-only nav link (gear for settings) */
.nav-link.nav-icon { padding: 7px 9px; font-size: 15px; }

nav {
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--hover-overlay); }

.nav-cta {
  background: var(--surface);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-cta:hover { background: #2a3a4a !important; }


/* ---------------------------------------------------
   4. LAYOUT
--------------------------------------------------- */
.section { padding: 80px 24px; }
.section-inner { max-width: var(--page-w); margin: 0 auto; }

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
}


/* ---------------------------------------------------
   5. SHARED COMPONENTS
--------------------------------------------------- */

/* Category dividers */
.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.category-line {
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.08);
}
.category-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  color: #fff;
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.category-pill i { font-size: 11px; opacity: 0.6; }

/* Info / notice cards */
.guest-msg {
  max-width: var(--content-w);
  margin: 0 auto 36px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px 32px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.guest-msg a { color: var(--accent); text-decoration: none; }
.guest-msg a:hover { text-decoration: underline; }

/* Header block — awardshow / stats */
.header-block {
  max-width: var(--wide-w);
  margin: 0 auto 44px;
  background: var(--bg-card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.08);
  /* animation: fadeUp 0.5s ease both; */
}

.header-top {
  background: var(--surface);
  padding: 28px 36px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.show-name {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.show-year {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-gold);
  line-height: 1;
}

/* Awardshow page: slightly larger header text */
body.page-awardshow .show-name { font-size: 42px; }
body.page-awardshow .show-year { font-size: 42px; }

.countdown-chip {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: right;
  flex-shrink: 0;
}
.countdown-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.countdown-value {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.countdown-locked {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  align-self: flex-start;
}

/* 3-column meta grid (awardshow) */
.header-meta {
  /* padding: 24px 36px; */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  /* border-bottom: 1px solid var(--border); */
}
.meta-item {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--border);
}
.meta-item:first-child { padding: 18px 24px; }
.meta-item:nth-child(2) { padding: 18px 24px; }
.meta-item:last-child  { border-right: none; padding: 10px 24px; }
.meta-item .progress-track { margin-top: 10px; width: 100%; flex: none; }

/* Flex chip row (stats) */
.header-meta-chips {
  padding: 18px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.meta-value.muted { opacity: 0.25; }

.meta-chip {
  font-size: 13px;
  color: var(--text-muted);
}
.meta-chip a { color: var(--accent); text-decoration: none; }
.meta-chip a:hover { text-decoration: underline; }

/* Header stats sub-label chip */
.header-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  align-self: flex-start;
  white-space: nowrap;
}

/* Progress track (used inside .meta-item) */
.progress-track {
  height: 6px;
  background: #e2e8ef;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4d9fff);
  border-radius: 3px;
}
.progress-fill.correct {
  background: linear-gradient(90deg, var(--accent-gold), #f0d98a);
}
.progress-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.progress-label strong { color: var(--text); }

/* Action buttons — cells grid matching header-meta style */
.header-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.header-actions-4 { grid-template-columns: repeat(4, 1fr); }
.header-actions-5 { grid-template-columns: repeat(5, 1fr); }
.action-btn {
  padding: 18px 24px;
  border: none;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.action-btn:last-child { border-right: none; }
.action-btn:hover {
  background: rgba(0,0,0,0.03);
  color: var(--text);
}
.action-btn.copy-success {
  background: #1a9e5f;
  color: #fff;
}

/* ── Full-width footer (index) ── */
footer {
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 100px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
}
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-link:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-left { display: flex; align-items: baseline; gap: 10px; }
.footer-credit { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.footer-credit:hover { color: var(--text); }

/* Compact centered footer (inner pages) */
#footer {
  max-width: var(--content-w);
  margin: 40px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
#footer a { color: var(--text-muted); text-decoration: none; }
#footer a:hover { color: var(--text); }

/* Toast messages */
#errorHolder { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; }
#error, #success { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; display: none; }
#error   { background: #fee2e2; color: #991b1b; }
#success { background: #d1fae5; color: #065f46; }

/* Login prompt banner */
#login {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
#login a { color: var(--accent-gold); text-decoration: none; font-weight: 600; }


/* ---------------------------------------------------
   6. PAGE: INDEX
--------------------------------------------------- */

/* Spotlight */
.spotlight-section { padding: 0 24px 80px; }

.spotlight-card {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 24px 64px rgba(0,0,0,0.10);
}

.spotlight-left {
  padding: 38px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.spotlight-badge {
  background: rgba(201,168,76,0.2);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.3);
}

.spotlight-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
  animation: pulse 2s ease infinite;
}

.spotlight-live-label {
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.5px;
}

.spotlight-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -1.5px;
}
.spotlight-title em { display: block; font-style: italic; color: var(--gold); }

.spotlight-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 420px;
  margin: 16px 0 28px;
}
.spotlight-desc p { margin: 5px 0; }

.spotlight-info-row { display: flex; gap: 24px; }

.spotlight-info-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}
.spotlight-info-value { font-size: 17px; font-weight: 600; color: #fff; }

.spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0f1923;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.18s, transform 0.2s;
  align-self: flex-start;
  width: 100%;
}
.spotlight-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

.spotlight-progress-bar-track {
  display: none;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.spotlight-progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.spotlight-progress-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

/* Standout moments inline inside spotlight-left */
.spotlight-standouts-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

/* Standout moments strip at bottom of spotlight-card (unused but kept) */
.spotlight-standouts {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spotlight-standouts-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.spotlight-standouts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spotlight-standout-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spotlight-standout-badge {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.spotlight-standout-text {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* Right panel: cycling nominees */
.spotlight-right {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.07);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.cycle-header { display: flex; align-items: center; justify-content: space-between; }

.cycle-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: opacity 0.35s ease;
}

.cycle-dots { display: flex; gap: 5px; align-items: center; }

.cycle-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.cycle-dot.active { background: var(--gold); transform: scale(1.3); }

.cycle-strip-outer { position: relative; overflow: hidden; border-radius: 12px; }

.cycle-strip {
  height: 550px;
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.cycle-slide { display: flex; gap: 8px; flex-shrink: 0; }

.nominee-thumb {
  flex: 1;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  position: relative;
  min-width: 0;
}
.nominee-thumb.nominee-winner {
  outline: 3px solid var(--accent-gold);
  outline-offset: -3px;
}
.nominee-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.nominee-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.80) 100%);
}
.nominee-thumb-name {
  position: absolute;
  bottom: 6px; left: 7px; right: 7px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.cycle-progress {
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 2px;
}
.cycle-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  width: 0%;
  transition: width linear;
}

/* Past shows grid */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.show-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  border: 1.5px solid transparent;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.show-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.08); }
.show-card-main { display: flex; flex-direction: column; gap: 4px; flex: 1; text-decoration: none; color: inherit; padding: 28px; }
.show-card-btns { display: flex; }
.show-card-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: 0;
  border-top: 1px solid var(--border); border-right: 1px solid var(--border);
  background: transparent; color: var(--text-muted); text-decoration: none;
  font-size: 12px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  transition: background 0.18s, color 0.18s;
}
.show-card-btn:last-child { border-right: none; }
.show-card-btn i { font-size: 13px; }
.show-card-btn:hover { background: rgba(0,0,0,0.03); color: var(--text); }

.show-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.show-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.show-card-score-row { display: flex; align-items: baseline; gap: 6px; }
.show-card-score {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.show-card-score-denom { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.show-card-bar-track { margin-top: 10px; height: 4px; background: #e8edf2; border-radius: 2px; overflow: hidden; }
.show-card-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.show-card-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f0f4f8;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted);
  transition: background 0.18s, transform 0.18s;
}
.show-card:hover .show-card-arrow { background: var(--surface); color: #fff; transform: translateX(2px); }

/* Rankings-page card variant */
.show-card--compact {
  padding: 22px 22px 20px;
  min-height: 124px;
  gap: 6px;
}
.show-card--compact:hover { transform: translateY(-2px); }
.show-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f0f4f8;
  color: var(--text-muted);
}
.pill.year {
  background: rgba(201,168,76,0.18);
  color: #7a5b10;
  border: 1px solid rgba(201,168,76,0.25);
}

/* How It Works */
.how-section { padding: 80px 24px 40px 24px; }
.how-grid { max-width: var(--page-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.how-section .section-label { color: var(--text-muted) }
.how-section .section-label::before { background: var(--gold); }
.how-header { max-width: var(--page-w); margin: 0 auto 20px; }
.how-title { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1; }
.how-title em { font-style: italic; color: var(--gold); }
.how-card { background: var(--bg-card); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; border: 1px solid rgba(255,255,255,0.06); transition: background 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06) }
.how-card-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text-muted); }
.how-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* FAQ */
.faq-section { padding: 80px 24px 40px; }
.faq-list { max-width: var(--page-w); margin: 0 auto; display: flex; flex-direction: column; gap: 0px; box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06); border-radius: 16px; }
.faq-item { background: var(--bg-card); border-radius: 0; overflow: hidden; }
.faq-item:first-child { border-radius: 16px 16px 0 0; }
.faq-item:last-child { border-radius: 0 0 16px 16px; }
.faq-question { padding: 20px 24px 10px 24px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--text); gap: 16px; user-select: none; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: #f0f4f8; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-muted); flex-shrink: 0; transition: background 0.18s, transform 0.25s; }
.faq-item.open .faq-icon { background: var(--surface); color: #fff; transform: rotate(45deg); }
.faq-answer {  }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0px 24px 20px 48px; font-size: 14px; color: var(--text-muted); line-height: 1.75; border-bottom: 1px solid var(--border); }
.faq-answer-inner a { color: var(--accent); text-decoration: none; }
.faq-answer-inner a:hover { text-decoration: underline; }
.faq-answer-inner ul { margin: 8px 0 0 18px; display: flex; flex-direction: column; gap: 4px; }

/* CTA banner */
.cta-section { padding: 80px 24px; text-align: center; }
.cta-card { max-width: 80vw; margin: 0 auto; border-radius: 28px; padding: 64px 48px; position: relative; overflow: hidden; }
.cta-title { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; color: var(--text); letter-spacing: -1px; line-height: 1; margin-bottom: 16px; }
.cta-title em { font-style: italic; color: var(--gold); }
.cta-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 36px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #0f1923; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; padding: 15px 36px; border-radius: 14px; text-decoration: none; transition: background 0.18s, transform 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06); }
.cta-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ---------------------------------------------------
   7. PAGE: AWARDSHOW
--------------------------------------------------- */

.category-section {
  max-width: var(--wide-w);
  margin: 100px auto 0;
  /* animation: fadeUp 0.5s 0.1s ease both; */
}

/* Nominee card grid */
.category {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* Nominee card */
.n {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 2/3;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 12px 32px rgba(0,0,0,0.10);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.n:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 20px 48px rgba(0,0,0,0.25);
}

.poster {
  position: absolute;
  inset: 0;
  width: 101%;
  height: 101%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
.poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 30%,
    rgba(0,0,0,0.55) 68%,
    rgba(0,0,0,0.88) 100%
  );
  z-index: 1;
}

.n.guess { outline: 5px solid rgba(95,166,212,1); }

.n > a.stats-link { position: absolute; inset: 0; z-index: 4; }

.info {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 10;
}
.info:hover { background: rgba(255,255,255,0.30); }

/* Winner badge icon */
.winner {
  width: 56px;
  height: 56px;
  position: absolute;
  top: 10px;
  left: 10px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100%;
  z-index: 10;
}

.nominee {
  position: absolute;
  bottom: 40px;
  left: 12px;
  right: 12px;
  z-index: 5;
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.title {
  position: absolute;
  bottom: 15px;
  left: 12px;
  right: 12px;
  z-index: 5;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.n.no-nominee .title {
  bottom: 15px;
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.n.no-nominee .nominee { display: none; }

.percentage-bar {
  position: absolute;
  bottom: 6px;
  left: 12px;
  right: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  z-index: 5;
}
.progress-overlay { position: absolute; inset: 0; }
.progress {
  height: 100%;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
}
.poster.guess ~ .percentage-bar .progress {
  background: var(--accent-gold);
  box-shadow: 0 0 6px rgba(201,168,76,0.7);
}

.winner-border { border: 5px solid #EFCB56; }

/* Bottom summary block */
#award_information_bottom {
  max-width: var(--wide-w);
  margin: 100px auto 0;
  /* animation: fadeUp 0.5s 0.2s ease both; */
}

.prediction_summary {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 32px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prediction_summary_info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.prediction_summary_info:last-child { border-bottom: none; padding-bottom: 0; }
.prediction_summary_info:first-child { padding-top: 0; }

.prediction_summary_icon {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.more-info {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.more-info strong, #guess_count { color: var(--text); font-weight: 600; }

.unpredicted-list {
  list-style: none;
  display: grid;
  width: calc(var(--content-w) - 80px);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px 12px;
  margin-top: 10px;
}
.unpredicted-list li a { color: var(--accent); font-size: 13px; text-decoration: none; }
.unpredicted-list li a:hover { text-decoration: underline; }

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
#shareable_url {
  flex: 1;
  font-size: 13px;
  color: var(--accent);
  background: #f0f6ff;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.btn-copy {
  padding: 8px 18px;
  background: var(--surface);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}
.btn-copy:hover { background: #2a3a4a; transform: translateY(-1px); }


/* ---------------------------------------------------
   8. PAGE: STATS
--------------------------------------------------- */

.category-block {
  max-width: var(--content-w);
  margin: 0 auto 36px;
}

.nominees-card {
  background: var(--bg-card);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02), 0 8px 24px rgba(0,0,0,0.02);
}

.nominee-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.nominee-row:last-child { border-bottom: none; }
.nominee-row.is-guess { background: rgba(26,111,255,0.04); }
.nominee-row.is-winner { background: rgba(201,168,76,0.06); }

.nominee-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}
.nominee-name.is-guess { color: var(--accent); font-weight: 600; }
.nominee-name.is-winner { color: var(--accent-gold); font-weight: 600; }

.nominee-bar-wrap { width: 120px; flex-shrink: 0; }
.nominee-bar-track { height: 5px; background: #e8eef4; border-radius: 3px; overflow: hidden; }
.nominee-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.nominee-bar-fill.is-guess { background: var(--accent); }
.nominee-bar-fill.is-winner { background: var(--accent-gold); }

.nominee-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}
.nominee-count.is-guess { color: var(--accent); }
.nominee-count.is-winner { color: var(--accent-gold); }

.winner-badge { font-size: 11px; color: var(--accent-gold); flex-shrink: 0; }

.your-pick-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(26,111,255,0.10);
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.accent { background: var(--accent); }
.legend-dot.gold { background: var(--accent-gold); }


/* ---------------------------------------------------
   9. PAGE: RANKINGS
--------------------------------------------------- */

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1;
  margin-bottom: 14px;
}
.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 36px;
}


/* ---------------------------------------------------
   10. PAGE: RANKINGS INDIVIDUAL
--------------------------------------------------- */

#user {
  width: 48px;
  height: 48px;
  position: fixed;
  top: 20px;
  right: 20px;
  border-radius: 50%;
  background: url(/source/images/general/user.png) center center no-repeat;
  background-size: cover;
}

.page-header {
  max-width: var(--content-w);
  margin: 0 auto 36px;
  background: var(--surface);
  border-radius: 28px;
  padding: 28px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.12);
}

.page-back {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  transition: color 0.15s;
}
.page-back:hover { color: rgba(255,255,255,0.75); }

.page-header .page-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}

.page-year {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-gold);
}

.page-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.group-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.group-switch {
  max-width: var(--content-w);
  margin: 0 auto 20px;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.group-switch-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding-right: 4px;
  border-right: 1px solid var(--border);
  margin-right: 2px;
}

.switch-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.switch-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.switch-link:hover { color: var(--text); background: #eef3f7; }
.switch-link.active { background: var(--surface); color: #fff; border-color: var(--surface); }
.switch-link.active i { opacity: 0.6; }

.show-block {
  max-width: var(--wide-w);
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr 80px;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: rgba(0,0,0,0.015); }
.rank-row.is-self { background: rgba(26,111,255,0.05); }

.rank-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}
.rank-number.top1 { color: var(--accent-gold); font-size: 18px; }
.rank-number.top2 { color: #a0aab4; font-size: 16px; }
.rank-number.top3 { color: #b87c4c; font-size: 15px; }

.rank-username { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.rank-username:hover { color: var(--accent); }
.rank-row.is-self .rank-username { font-weight: 700; color: var(--accent); }

.rank-score { font-size: 15px; font-weight: 600; color: var(--text-muted); text-align: right; }
.rank-row.is-self .rank-score { color: var(--accent); }

.you-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(26,111,255,0.10);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
}


/* ---------------------------------------------------
   11. PAGE: GROUP
--------------------------------------------------- */

.group-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.group-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.group-btn--join {
  background: rgba(74,222,128,0.15);
  color: #14532d;
  border: 1.5px solid rgba(74,222,128,0.3);
}
.group-btn--join:hover { background: rgba(74,222,128,0.25); transform: translateY(-1px); }
.group-btn--leave {
  background: rgba(239,68,68,0.10);
  color: #7f1d1d;
  border: 1.5px solid rgba(239,68,68,0.2);
}
.group-btn--leave:hover { background: rgba(239,68,68,0.18); transform: translateY(-1px); }

.group-admin-msg {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.group-admin-msg a { color: var(--accent-gold); text-decoration: none; }
.group-admin-msg a:hover { text-decoration: underline; }

.group-show-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.group-show-header:last-child { border-bottom: none; }
.group-show-header:hover { background: rgba(0,0,0,0.015); }

.group-show-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.group-show-date {
  font-size: 13px;
  color: var(--text-muted);
}
.group-show-icon {
  font-size: 12px;
  color: var(--text-muted);
}

.show-block + .show-block { margin-top: 12px; }


/* ---------------------------------------------------
   12. AUTH PAGES
--------------------------------------------------- */

body.page-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px 80px;
}

.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  display: block;
  text-align: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 28px;
  padding: 40px 40px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 16px 48px rgba(0,0,0,0.10);
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.auth-field { margin-bottom: 20px; }

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.auth-field input:focus {
  border-color: var(--accent);
  background: #fff;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
}
.auth-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  cursor: pointer;
  accent-color: var(--text);
  flex-shrink: 0;
}
.auth-remember span { font-size: 14px; color: var(--text-muted); }

.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--surface);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
  display: block;
}
.auth-btn:hover { background: #2a3a4a; transform: translateY(-1px); color: #fff; }

.auth-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.auth-btn--ghost:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
  transform: none;
}

.auth-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

.auth-notice {
  width: 100%;
  max-width: 420px;
  margin-top: 20px;
  padding: 0 4px;
}
.auth-notice p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.auth-message {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 16px 48px rgba(0,0,0,0.10);
  text-align: center;
}
.auth-message h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.auth-message p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}
.auth-message p:last-child { margin-bottom: 0; }
.auth-message a { color: var(--accent); text-decoration: none; }
.auth-message a:hover { text-decoration: underline; }

.auth-message .auth-btn {
  margin-top: 24px;
  margin-bottom: 0;
}


/* ---------------------------------------------------
   12. ANIMATIONS
--------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ---------------------------------------------------
   13. RESPONSIVE
--------------------------------------------------- */

@media (max-width: 768px) {
  :root { --content-w: 95vw; --wide-w: 95vw; --page-w: 95vw; }
  nav { padding: 48px 24px; }

  /* Index */
  .spotlight-card { grid-template-columns: 1fr; }
  .spotlight-right { display: none; }
  .spotlight-left { padding: 36px 28px; }
  .spotlight-title { font-size: 36px; }
  .shows-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }

  /* Inner pages */
  body.page-inner { padding: 16px 0 80px; }
  .header-top { padding: 20px 20px 16px; gap: 12px; }
  .show-name { font-size: 28px; }
  .show-year { font-size: 28px; }
  .countdown-chip { padding: 10px 14px; }
  .countdown-value { font-size: 15px; }
  .header-meta { padding: 16px 20px; grid-template-columns: 1fr 1fr; }
  .header-meta .meta-item:last-child { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--border); padding-top: 16px; padding-left: 0; }
  .meta-item:nth-child(2) { padding-left: 16px; }
  .header-actions, .header-actions-4, .header-actions-5 { grid-template-columns: 1fr; }
  .action-btn { font-size: 12px; padding: 14px 20px; border-right: none; }
  .action-btn:last-child { border-bottom: none; }

  /* Awardshow nominees */
  .category { grid-template-columns: repeat(3, 1fr); }
  .nominee { font-size: 13px; }
  .title { font-size: 10px; }
  .share-row { display: none; }

  /* Category pill */
  .category-pill { font-size: 11px !important; text-overflow: ellipsis; }
  .category-header { width: 100%; overflow: hidden; }

  /* Stats */
  .header-meta-chips { padding: 14px 20px; }
  .nominee-bar-wrap { width: 80px; }

  /* Rankings */
  .page-title { font-size: 36px; }

  /* Rankings individual */
  .page-header { padding: 20px; }
  .page-header .page-title { font-size: 26px; }
  .page-year { font-size: 26px; }
  .rank-row { padding: 12px 18px; }

  /* Auth */
  .auth-card { padding: 32px 28px 28px; }
}

@media (max-width: 480px) {
  .shows-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .category { grid-template-columns: repeat(2, 1fr); }
}


/* ---------------------------------------------------
   14. COMPONENT: HEADER META CELLS
   (grid-table variant for interesting + settings)
--------------------------------------------------- */

.header-meta.header-meta-cells {
  padding: 0;
  border-bottom: none;
  margin-top: 4px;
}
.header-meta.header-meta-cells .meta-item {
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.header-meta.header-meta-cells .meta-value { font-size: 16px; font-weight: 700; }

.header-meta.header-meta-cells.c2 { grid-template-columns: repeat(2, 1fr); }
.header-meta.header-meta-cells.c2 .meta-item:nth-child(2n) { border-right: none; }
.header-meta.header-meta-cells.c2 .meta-item:nth-child(n+3) { border-bottom: none; }

.header-meta.header-meta-cells.c3 { grid-template-columns: repeat(3, 1fr); }
.header-meta.header-meta-cells.c3 .meta-item:nth-child(3n) { border-right: none; }
.header-meta.header-meta-cells.c3 .meta-item:nth-child(n+4) { border-bottom: none; }

.header-meta.header-meta-cells.c4 { grid-template-columns: repeat(4, 1fr); }
.header-meta.header-meta-cells.c4 .meta-item:nth-child(4n) { border-right: none; }
.header-meta.header-meta-cells.c4 .meta-item:nth-child(n+5) { border-bottom: none; }

@media (max-width: 720px) {
  .header-meta.header-meta-cells { grid-template-columns: repeat(2, 1fr); }
  .header-meta.header-meta-cells .meta-item:nth-child(2n) { border-right: none; }
  .header-meta.header-meta-cells .meta-item:nth-child(n+3) { border-bottom: none; }
}


/* ---------------------------------------------------
   15. PAGE: INTERESTING STATS
--------------------------------------------------- */

.section-header {
  max-width: var(--content-w); margin: 60px auto 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-title { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.section-line  { flex: 1; height: 1px; background: var(--border); }
.section-emoji { font-size: 16px; }

.stat-block {
  max-width: var(--wide-w); margin: 0 auto 20px;
  background: var(--bg-card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
}
.stat-row {
  display: grid; grid-template-columns: 52px 1fr auto;
  align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }

.stat-poster {
  width: 44px; height: 66px; border-radius: 7px; object-fit: cover;
  object-position: top; background: var(--border); flex-shrink: 0;
}
.stat-poster-placeholder { width: 44px; height: 66px; border-radius: 7px; background: var(--border); flex-shrink: 0; }

.stat-name    { font-size: 15px; font-weight: 600; color: var(--text); }
.stat-sub     { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-sub a   { color: var(--text-muted); text-decoration: none; }
.stat-sub a:hover { color: var(--accent); }

.stat-pct       { font-size: 22px; font-weight: 700; color: var(--accent-gold); text-align: right; white-space: nowrap; }
.stat-pct small { font-size: 12px; font-weight: 400; color: var(--text-muted); display: block; }

.stat-bar-wrap { margin-top: 6px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--accent-gold); border-radius: 2px; }
.stat-bar-fill.bad { background: #e05a4e; }

.list-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); gap: 16px;
}
.list-row:last-child { border-bottom: none; }
.list-rank { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: var(--border); width: 28px; flex-shrink: 0; }
.list-rank.gold { color: var(--accent-gold); }
.list-name { font-size: 15px; font-weight: 600; flex: 1; }
.list-name a, .list-sub a { color: var(--text); text-decoration: none; }
.list-name a:hover, .list-sub a:hover { color: var(--accent); }
.list-sub  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.list-val  { font-size: 16px; font-weight: 700; color: var(--text); text-align: right; white-space: nowrap; }
.list-val small { font-size: 11px; font-weight: 400; color: var(--text-muted); display: block; }

.perfect-badge { background: var(--accent-gold); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 100px; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }

.empty-msg { padding: 28px; color: var(--text-muted); font-size: 14px; text-align: center; }

body.page-interesting .section-year {
  font-size: 18px;
  font-style: normal;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0;
}
body.page-interesting .section-subtitle {
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
body.page-interesting .stat-name-link {
  color: inherit;
  text-decoration: none;
}
body.page-interesting .stat-pct-bad { color: #e05a4e; }
body.page-interesting .stat-pct-muted { color: var(--text-muted); }
body.page-interesting .stat-bar-fill-muted { opacity: 0.4; }
body.page-interesting .list-name-light { font-weight: 500; }
body.page-interesting .list-val-bad { color: #e05a4e; }
body.page-interesting .list-sub-link {
  color: var(--text-muted);
  text-decoration: none;
}
body.page-interesting .list-val-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .stat-row { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 12px 14px; }
  .list-row { padding: 12px 14px; }
}


/* ---------------------------------------------------
   16. PAGE: NOMINEE
--------------------------------------------------- */

.hero {
  max-width: var(--content-w); margin: 0 auto 40px;
  display: flex; gap: 32px; align-items: flex-end;
}
.hero-poster {
  width: 180px; flex-shrink: 0; border-radius: 24px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.20), 0 24px 60px rgba(0,0,0,0.14);
  aspect-ratio: 2/3; background: #1a1a1a; background-size: cover; background-position: center top;
}
.hero-info { padding-bottom: 4px; }
.hero-type {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 44px; font-weight: 900; color: var(--text);
  line-height: 1.05; letter-spacing: -1px; margin-bottom: 12px;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.hero-chip {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: var(--hover-overlay); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}
.hero-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-stat  { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.hero-stat-value.gold { color: var(--accent-gold); }
.hero-stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
}
.hero-bio {
  font-size: 14px; line-height: 1.65; color: var(--text-muted);
  max-width: 540px; margin-bottom: 16px;
}
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ext-link {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
  transition: color 0.15s, border-color 0.15s;
}
.hero-ext-link:hover { color: var(--text); border-color: var(--text-muted); }

.nominations-card {
  max-width: var(--content-w); margin: 0 auto;
  background: var(--bg-card); border-radius: 24px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.08);
}
.nominations-header {
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted);
  display: grid; grid-template-columns: 48px 1fr 1fr 160px; gap: 12px;
}
.nom-row {
  display: grid; grid-template-columns: 48px 1fr 1fr 160px;
  gap: 12px; align-items: center; padding: 16px 28px;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.nom-row:last-child { border-bottom: none; }
.nom-row:hover      { background: rgba(0,0,0,0.015); }
.nom-row.is-winner  { background: rgba(201,168,76,0.05); }
.nom-winner-icon { display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent-gold); }
.nom-show      { font-size: 15px; font-weight: 600; color: var(--text); }
.nom-show-year { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.nom-category  { font-size: 13px; color: var(--text-muted); }
.nom-title     { font-size: 13px; color: var(--text-muted); text-align: right; }

@media (max-width: 600px) {
  .hero { flex-direction: column; gap: 20px; align-items: flex-start; }
  .hero-poster { width: 140px; }
  .hero-name { font-size: 32px; }
  .hero-bio { font-size: 13px; }
  .nominations-header { display: none; }
  .nom-row { grid-template-columns: 36px 1fr 1fr; }
  .nom-title { display: none; }
}


/* ---------------------------------------------------
   17. PAGE: USER STATS
--------------------------------------------------- */

.profile-show-row {
  display: grid; grid-template-columns: 1fr 140px auto;
  align-items: center; gap: 16px; padding: 14px 28px;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.profile-show-row:last-child { border-bottom: none; }
.profile-show-row:hover { background: rgba(0,0,0,0.015); }
.profile-show-name { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.profile-show-name:hover { color: var(--accent); }
.profile-show-date     { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.profile-show-upcoming { font-size: 12px; color: var(--text-muted); font-style: italic; }

.score-bar-wrap  { display: flex; align-items: center; gap: 10px; }
.score-bar-track { flex: 1; height: 5px; background: #e8eef4; border-radius: 3px; overflow: hidden; }
.score-bar-fill  { height: 100%; background: var(--accent-gold); border-radius: 3px; transition: width 0.6s ease; }

.profile-score                       { font-size: 14px; font-weight: 600; color: var(--text-muted); text-align: right; white-space: nowrap; }
.profile-score.is-best               { color: var(--accent-gold); }
.profile-show-row .stat-pct          { color: var(--text-muted); font-size: 20px; }
.profile-show-row .stat-pct.is-best  { color: var(--accent-gold); }

.chart-wrap {
  max-width: var(--wide-w); margin: 0 auto 44px;
  background: var(--bg-card); border-radius: 24px; padding: 28px 32px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
}
.chart-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}

/* ---------------------------------------------------
   18. PAGE: YEARS
--------------------------------------------------- */

.years-list { max-width: var(--content-w); margin: 0 auto; padding: 40px 20px 60px; }

.year-card {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 20px;
  background: var(--bg-card); border-radius: 16px; padding: 20px 24px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  text-decoration: none; color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.year-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.08);
}
.year-number          { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900; color: var(--text-muted); line-height: 1; }
.year-number.past     { color: var(--accent-gold); }
.year-number.upcoming { color: var(--accent); }
.year-date            { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.year-meta            { display: flex; gap: 14px; flex-wrap: wrap; }
.year-meta-item       { font-size: 12px; color: var(--text-muted); }
.year-meta-item i     { margin-right: 4px; }
.year-accuracy        { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.year-score           { text-align: right; flex-shrink: 0; }
.year-score-num       { font-size: 22px; font-weight: 700; color: var(--text); white-space: nowrap; }
.year-score-denom     { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.year-score-pct {
  display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  background: rgba(201,168,76,0.12); color: var(--accent-gold);
}
.year-score-pct.great { background: rgba(26,111,255,0.1);  color: var(--accent); }
.year-score-pct.poor  { background: rgba(224,90,78,0.1);   color: #e05a4e; }
.year-arrow           { font-size: 16px; color: var(--border); }
.upcoming-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  background: rgba(26,111,255,0.1); color: var(--accent); padding: 3px 9px; border-radius: 100px;
}

@media (max-width: 500px) {
  .year-card   { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 16px 18px; }
  .year-number { font-size: 28px; }
}


/* ---------------------------------------------------
   19. PAGE: INDEX — INTERESTING PREVIEW + TOP PREDICTORS
--------------------------------------------------- */

.interesting-section { padding: 0 20px; }
.interesting-inner   { max-width: var(--page-w); margin: 0 auto; padding: 60px 0 0; }
.interesting-header  { display: flex; align-items: baseline; justify-content: space-between; }
.interesting-see-all { font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.interesting-see-all:hover { text-decoration: underline; color: var(--accent); }

.interesting-grid     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.idx-people-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.idx-person { padding: 14px 12px; text-align: center; border-right: 1px solid var(--border); }
.idx-person:last-child { border-right: none; }
.idx-person-rank { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 900; color: var(--border); margin-bottom: 6px; }
.idx-person-rank.gold { color: var(--accent-gold); }
.idx-person-name { font-size: 12px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idx-person-name a { color: var(--text-muted); text-decoration: none; }
.idx-person-name a:hover { color: var(--accent); }
.idx-person-stat { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--accent-gold); line-height: 1; }
.idx-person-stat small { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400; color: var(--text-muted); display: block; margin-top: 2px; }
.interesting-card {
  background: var(--bg-card); border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
}
.interesting-card-head  { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.interesting-card-title { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); }
.interesting-card-desc  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.interesting-row {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.interesting-row:last-child { border-bottom: none; }
.interesting-poster { width: 36px; height: 54px; border-radius: 5px; object-fit: cover; object-position: top; background: var(--border); }
.interesting-poster-placeholder { width: 36px; height: 54px; border-radius: 5px; background: var(--border); }
.interesting-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.interesting-sub  { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.interesting-pct  { font-size: 16px; font-weight: 700; color: var(--accent-gold); white-space: nowrap; text-align: right; }
.interesting-pct.bad   { color: #e05a4e; }
.interesting-pct.muted { color: var(--text-muted); }

.top-predictors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.predictor-card {
  background: var(--bg-card); border-radius: 14px; padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.predictor-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.08); }
.predictor-rank { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; line-height: 1; flex-shrink: 0; color: var(--text-muted); }
.predictor-card-1 .predictor-rank { color: var(--accent-gold); }
.predictor-card-2 .predictor-rank { color: #a0a9b4; }
.predictor-card-3 .predictor-rank { color: #b07a50; }
.predictor-info { min-width: 0; }
.predictor-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.predictor-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.predictor-pct  { margin-left: auto; font-size: 20px; font-weight: 700; color: var(--text); flex-shrink: 0; }
.predictor-card-1 .predictor-pct { color: var(--accent-gold); }

@media (max-width: 768px) {
  .interesting-grid     { grid-template-columns: 1fr; }
  .top-predictors { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------
   20. PAGE: SETTINGS / DASHBOARD
--------------------------------------------------- */

.dash-outer { max-width: var(--wide-w); margin: 0 auto; padding: 0 0 80px 0;}
.dash-grid  { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }

.flash         { padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.flash-success { background: rgba(56,161,105,0.1); color: #38a169; }
.flash-error   { background: rgba(229,62,62,0.1);  color: #e53e3e; }

.s-card {
  background: var(--bg-card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06); margin-bottom: 14px;
}
.s-card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.s-card-title { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.s-badge      { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #e53e3e; color: #fff; font-size: 10px; font-weight: 700; }
.s-card-link  { font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: none; cursor: pointer; }
.s-card-link:hover { text-decoration: underline; }

.show-row { display: grid; grid-template-columns: 1fr 56px 56px; align-items: center; gap: 10px; padding: 11px 20px; border-bottom: 1px solid var(--border); }
.show-row:last-child { border-bottom: none; }
.show-row-name  { font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; display: block; }
.show-row-name:hover { color: var(--accent); }
.show-row-bar      { height: 2px; background: var(--border); border-radius: 1px; margin-top: 4px; overflow: hidden; }
.show-row-bar-fill { height: 100%; background: var(--accent-gold); border-radius: 1px; }
.show-row-yr    { font-size: 11px; color: var(--text-muted); text-align: right; }
.show-row-score { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: right; white-space: nowrap; }
.empty-note     { padding: 24px 20px; font-size: 13px; color: var(--text-muted); text-align: center; }
.show-row-hidden { display: none; }

.acct-field { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.acct-field:last-of-type { border-bottom: none; }
.acct-field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-label  { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.acct-value  { font-size: 14px; font-weight: 500; color: var(--text); }
.acct-action { font-size: 11px; font-weight: 500; color: var(--accent); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.acct-action:hover { text-decoration: underline; }

.expand-form      { display: none; margin-top: 12px; }
.expand-form.open { display: block; }
.expand-form form { display: flex; flex-direction: column; gap: 8px; }
.fi {
  padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text);
  background: var(--bg); outline: none; transition: border-color 0.15s; width: 100%;
}
.fi:focus { border-color: var(--accent); }
.fi::placeholder { color: var(--text-muted); }
.fi-row { display: flex; gap: 8px; }

.btn        { padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; transition: background 0.15s; white-space: nowrap; }
.btn-dark   { background: var(--surface); color: #fff; }
.btn-dark:hover   { background: #1e2d3d; }
.btn-ghost  { background: var(--border); color: var(--text-muted); }
.btn-ghost:hover  { background: #c8d4dc; }
.btn-danger { background: #e53e3e; color: #fff; }
.btn-danger:hover { background: #c53030; }

.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pref-row:last-child { border-bottom: none; }
.pref-row:hover { background: rgba(0,0,0,0.015); }
.pref-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.pref-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.toggle-pill { flex-shrink: 0; width: 40px; height: 22px; border-radius: 11px; background: var(--border); position: relative; transition: background 0.2s; }
.toggle-pill.on { background: var(--accent); }
.toggle-pill::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: left 0.2s; }
.toggle-pill.on::after { left: 21px; }

.theme-btns { display: flex; gap: 6px; }
.theme-btn  { padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.theme-btn:hover  { color: var(--text); border-color: var(--text-muted); }
.theme-btn.active { background: var(--surface); color: #fff; border-color: var(--surface); }

.group-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; border-bottom: 1px solid var(--border); gap: 12px; }
.group-item:last-child { border-bottom: none; }
.group-item-name  { font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.group-item-name:hover { color: var(--accent); }
.group-item-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gpill      { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; }
.gpill-priv { background: rgba(245,158,11,0.12); color: #f59e0b; }
.gpill-pub  { background: rgba(26,111,255,0.10); color: var(--accent); }

span.quit, span.private, span.public { cursor: pointer; font-size: 11px; font-weight: 500; color: var(--text-muted); }
span.quit:hover { color: #e53e3e; }
span.private:hover, span.public:hover { color: var(--accent); }

.group-input-row { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
.group-input-row input[type=text] { flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); outline: none; transition: border-color 0.15s; }
.group-input-row input[type=text]:focus { border-color: var(--accent); }
.group-input-row input[type=text]::placeholder { color: var(--text-muted); }
.group-input-row input[type=submit], .group-input-row .addGroup { padding: 8px 16px; background: var(--surface); color: #fff; border: none; border-radius: 9px; font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.group-input-row input[type=submit]:hover, .group-input-row .addGroup:hover { background: #1e2d3d; }

#groupAutocomplete { padding: 0; border-top: 1px solid var(--border); }
#groupAutocomplete i { display: block; padding: 11px 20px; font-size: 13px; color: var(--text-muted); }
#groupAutocomplete li.group { display: flex; align-items: center; list-style: none; padding: 11px 20px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; transition: background 0.1s; }
#groupAutocomplete li.group:last-child { border-bottom: none; }
#groupAutocomplete li.group:hover { background: var(--bg); color: var(--accent); }
#groupAutocomplete li.group.joined { color: var(--text-muted); cursor: default; }

.approval-head { padding: 10px 20px 6px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.02); }
.approval-row, .member-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; font-size: 13px; border-bottom: 1px solid var(--border); }
.approval-row:last-child, .member-row:last-child { border-bottom: none; }
.approval-row a, .member-row a { color: var(--text); text-decoration: none; font-weight: 500; }
.approval-row a:hover, .member-row a:hover { color: var(--accent); }
.approval-actions { display: flex; gap: 14px; align-items: center; }

span.deny, span.approve, span.remove, span.delete { cursor: pointer; font-size: 12px; font-weight: 600; }
span.deny::before    { content: 'Deny';    color: #e53e3e; }
span.approve::before { content: 'Approve'; color: #38a169; }
span.remove::before  { content: 'Remove';  color: #e53e3e; }
span.delete::before  { content: 'Delete';  color: #e53e3e; }

.group-section-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.02); }
.group-section-head-left { display: flex; align-items: center; gap: 10px; }
.group-section-head a { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.group-section-head a:hover { color: var(--accent); }
.members-toggle { font-size: 11px; font-weight: 500; color: var(--text-muted); cursor: pointer; background: var(--border); border: none; border-radius: 6px; padding: 3px 9px; font-family: 'DM Sans', sans-serif; transition: background 0.15s; }
.members-toggle:hover { background: #c8d4dc; }

.session-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 12px; border-bottom: 1px solid var(--border); }
.session-row:last-child { border-bottom: none; }
.session-label { font-size: 13px; color: var(--text-muted); }

#confirmDelete { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
#confirmDelete.active { display: flex; }
.confirm-box { background: var(--bg-card); border-radius: 18px; padding: 28px; max-width: 360px; width: 90%; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.confirm-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.confirm-box p strong { color: var(--text); }
.confirm-buttons { display: flex; gap: 10px; justify-content: center; }
.confirmDeleteButton { padding: 9px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.cancelbutton  { background: var(--border); color: var(--text); border: none; }
.cancelbutton:hover  { background: #c8d4dc; }
.deletebutton  { background: #e53e3e; color: #fff; border: none; }
.deletebutton:hover  { background: #c53030; }

/* Settings page: wider header-block */
.page-settings .header-block { max-width: var(--wide-w); }

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


/* ---------------------------------------------------
   21a. GROUP MANAGEMENT — ACCORDION
--------------------------------------------------- */

.gm-accordion-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 20px; background: var(--bg-card); border: none; border-radius: 12px; cursor: pointer; text-align: left; color: var(--text); font-family: 'DM Sans', sans-serif; transition: background 0.15s; margin-bottom: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06) }
.gm-accordion-left { display: flex; align-items: center; gap: 10px; }
.gm-accordion-name { font-size: 15px; font-weight: 600; }
.gm-accordion-meta { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.gm-chevron { font-size: 11px; color: var(--text-muted); transition: transform 0.2s; }
.gm-accordion-btn.open .gm-chevron { transform: rotate(90deg); }
.gm-accordion-body { padding-top: 0; }
.gm-members-toggle { padding: 10px 20px; font-size: 12px; font-weight: 500; color: var(--accent); cursor: pointer; border-top: 1px solid var(--border); }
.gm-members-toggle:hover { text-decoration: underline; }

/* ---------------------------------------------------
   21. PAGE: RANKINGS INDIVIDUAL — GROUP TABS
--------------------------------------------------- */

.group-tabs-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); }
.group-tab {
  flex: 1; min-width: 100px; padding: 18px 24px;
  border-right: 1px solid var(--border);
  text-decoration: none; transition: background 0.15s;
}
.group-tab:last-child { border-right: none; }
.group-tab .gtab-label { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.group-tab .gtab-value { font-size: 16px; font-weight: 600; color: var(--text); opacity: 0.3; }
.group-tab.active { background: var(--accent-light, #eef4fb); }
.group-tab.active .gtab-value { opacity: 1; }
.group-tab.active .gtab-label { color: var(--accent); }

@media (max-width: 600px) {
  .group-tab { padding: 14px 16px; }
}


/* ---------------------------------------------------
   22. MISC: their-pick alias (user_awardshow)
--------------------------------------------------- */

.n.their-pick { outline: 5px solid rgba(95,166,212,1); }

/* ---------------------------------------------------
   23. PAGE: USER PICKS
--------------------------------------------------- */

.share-page { max-width: 680px; margin: 0 auto; padding: 0 0 80px; }
.share-masthead {
  background: var(--surface); border-radius: var(--card-radius);
  padding: 28px 32px; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.share-show-name { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -0.5px; }
.share-show-year { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; font-style: italic; color: var(--accent-gold); }
.share-username  { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 6px; }
.share-footer { text-align: center; margin-top: 28px; font-size: 12px; color: var(--text-muted); }
.share-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.share-footer a:hover { text-decoration: underline; }
.share-copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 10px; border: none; cursor: pointer;
  transition: background 0.15s; margin-top: 12px;
}
.share-copy-btn:hover { background: #2a3a4a; }
.stat-row-category { font-size: 11px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.stat-row-no-pick  { opacity: 0.8; }
.stat-row-loser    {  }
.stat-row-winner   { background: rgba(212,175,55,0.06); border-left: 3px solid var(--accent-gold); padding-left: 17px; }
.stat-name-winner  { color: var(--accent-gold); }
.stat-no-pick { font-style: italic; color: var(--text-muted); }
.stat-actual-winner { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ---------------------------------------------------
   DARK MODE
   System preference + [data-theme] override
--------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0f1923;
    --bg-card:       #19283a;
    --text:          #dde8f0;
    --text-muted:    #8a9bab;
    --accent:        #4d9fff;
    --border:        rgba(255,255,255,0.09);
    --surface:       #1e3048;
    --nav-bg:        rgba(15,25,35,0.92);
    --hover-overlay: rgba(255,255,255,0.07);
  }
  .header-block { box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 12px 40px rgba(0,0,0,0.4); }
  .switch-link:hover { background: rgba(255,255,255,0.06); }
  .group-tab:hover { background: rgba(255,255,255,0.04); }
}

/* Manual override: force dark */
[data-theme="dark"] {
  --bg:            #0f1923;
  --bg-card:       #19283a;
  --text:          #dde8f0;
  --text-muted:    #8a9bab;
  --accent:        #4d9fff;
  --border:        rgba(255,255,255,0.09);
  --surface:       #1e3048;
  --nav-bg:        rgba(15,25,35,0.92);
  --hover-overlay: rgba(255,255,255,0.07);
}
[data-theme="dark"] .header-block { box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 12px 40px rgba(0,0,0,0.4); }
[data-theme="dark"] .switch-link:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .group-tab:hover { background: rgba(255,255,255,0.04); }

/* Manual override: force light (overrides system dark) */
[data-theme="light"] {
  --bg:            #dde8f0;
  --bg-card:       #ffffff;
  --text:          #0f1923;
  --text-muted:    #6b7a87;
  --accent:        #1a6fff;
  --border:        rgba(0,0,0,0.08);
  --surface:       #0f1923;
  --nav-bg:        rgba(221,232,240,0.85);
  --hover-overlay: rgba(0,0,0,0.05);
}
[data-theme="light"] .header-block { box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.08); }
[data-theme="light"] .switch-link:hover { background: #eef3f7; }


/* ---------------------------------------------------
   VERSIONS PAGE — heatmap & commit list
--------------------------------------------------- */

/* Heatmap wrapper */
.heatmap-wrap {
  overflow-x: auto;
  margin-bottom: 36px;
}
.heatmap {
  display: inline-block;
  min-width: 680px;
}

/* Month labels row */
.hm-months-row {
  display: flex;
  margin-left: 32px; /* align with weeks (offset for day labels) */
  margin-bottom: 4px;
}
.hm-month-cell {
  width: 13px;
  margin-right: 2px;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: visible;
}

/* Body: day-labels + week columns */
.hm-body {
  display: flex;
  gap: 6px;
}
.hm-day-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 26px;
  flex-shrink: 0;
}
.hm-day-label {
  height: 11px;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 11px;
}

.hm-weeks-row {
  display: flex;
  gap: 2px;
}
.hm-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hm-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

/* Colour levels — light mode */
.hm-0      { background: var(--border); }
.hm-1      { background: #b6e3b5; }
.hm-2      { background: #6cc96a; }
.hm-3      { background: #3aaa38; }
.hm-4      { background: #1e7f1d; }
.hm-5      { background: #0e5c0e; }
.hm-future { background: transparent; border: 1px solid var(--border); }

/* Dark mode overrides */
[data-theme="dark"] .hm-0 { background: rgba(255,255,255,0.07); }
[data-theme="dark"] .hm-1 { background: #144a14; }
[data-theme="dark"] .hm-2 { background: #1f6b1e; }
[data-theme="dark"] .hm-3 { background: #2b9129; }
[data-theme="dark"] .hm-4 { background: #3ab738; }
[data-theme="dark"] .hm-5 { background: #4ade4b; }

/* Legend */
.hm-legend {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  margin-left: 32px;
  justify-content: flex-end;
}
.hm-legend-label {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0 2px;
}

/* Version group label (e.g. "Today") */
.version-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 24px 0 8px;
}

/* Version list */
.version-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.version-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.version-row:last-child { border-bottom: none; }

.version-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 36px;
  flex-shrink: 0;
}

.version-meta {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
  flex-wrap: wrap;
}

.version-message {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.version-hash {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  flex-shrink: 0;
  text-decoration: none;
}
a.version-hash:hover { color: var(--accent); text-decoration: underline; }

/* Month group (<details>) */
.version-month-group {
  margin-top: 12px;
}
.version-month-group + .version-month-group {
  margin-top: 8px;
}

.version-month-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.version-month-summary::-webkit-details-marker { display: none; }
.version-month-summary::before {
  content: '›';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s;
  color: var(--text-muted);
}
.version-month-group[open] > .version-month-summary::before {
  transform: rotate(90deg);
}

.version-month-count {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.version-month-group .version-list {
  margin-top: 4px;
}
[data-theme="light"] .group-tab:hover { background: rgba(0,0,0,0.02); }
