/* KY Scoreboard Archive — design system
   Inspired by kentuckyhoopssource (light slate, Inter, blue accent) and
   Sports Reference (scorebox, dense stat tables, season grids). */

:root {
  --bg: #f8fafc; --card: #ffffff; --line: #e2e8f0;
  --ink: #0f172a; --body: #1e293b; --muted2: #475569; --muted: #94a3b8;
  --accent: #2563eb; --accent-dark: #1d4ed8; --accent-soft: rgba(37, 99, 235, 0.08);
  --win: #059669; --loss: #dc2626; --win-soft: rgba(5,150,105,0.1); --loss-soft: rgba(220,38,38,0.1);
  --hero-a: #1e40af; --hero-b: #1e3a8a; --hero-c: #172554;
  --thead: #f8fafc; --hover: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; max-width: 1140px; margin: 0 auto; padding: 1.5rem 1.25rem; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-dark); }
h1 { font-size: 1.75rem; font-weight: 800; color: var(--ink); margin: 0.2rem 0 0.3rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 0.75rem; }
.page-meta { color: var(--muted2); font-size: 0.9rem; margin: 0 0 1.25rem; }
.page-meta a { font-weight: 500; }

/* ------------------------------------------------ bootstrap brand overrides */
.btn-primary {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark);
}
.text-primary { color: var(--accent) !important; }
.navbar { --bs-navbar-brand-font-size: 1.15rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.navbar .nav-link { font-size: 0.92rem; color: var(--muted2); }
.navbar .nav-link:hover, .navbar .nav-link.show { color: var(--ink); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--accent); font-size: 0.9rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 600; font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
a.avatar:hover { background: var(--accent-dark); color: #fff; }

/* ------------------------------------------------ breadcrumbs */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
  font-size: 0.85rem; color: var(--muted); margin: 0 0 1rem;
}
.crumbs a { color: var(--muted2); font-weight: 500; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line); }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------ switcher (prev/select/next) */
.switcher { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.switcher .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted2);
  font-size: 0.9rem; transition: all 0.15s ease;
}
.switcher .arrow:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.switcher .arrow.off { opacity: 0.35; pointer-events: none; }
select.jump {
  appearance: none; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.45rem 2rem 0.45rem 0.9rem;
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
select.jump:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ------------------------------------------------ sport cards (home) */
.sport-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-bottom: 1.1rem;
}
.sport-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow);
  transition: all 0.15s ease;
}
.sport-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.sport-card .name { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.sport-card .range { color: var(--muted2); font-size: 0.85rem; margin-top: 0.25rem; }
.sport-card .go { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-top: 0.6rem; }

/* ------------------------------------------------ section tabs (school page) */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.tabs a {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted2);
  transition: all 0.15s ease;
}
.tabs a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ------------------------------------------------ contribution */
.contrib-card h2 { margin-bottom: 0.5rem; }
.contrib-card p { color: var(--muted2); font-size: 0.92rem; }
.contrib-card .btn { align-self: flex-start; }
.site-radios div { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-radios label { display: inline-flex; align-items: center; gap: 0.35rem;
  margin: 0.2rem 0 0; font-weight: 400; color: var(--body); }
.site-radios input { width: auto; }
.paste-box { margin-bottom: 0.9rem; }
.paste-box summary { cursor: pointer; font-size: 0.85rem; font-weight: 600;
  color: var(--accent); }
.paste-box textarea { width: 100%; font: 0.85rem/1.4 ui-monospace, monospace;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem;
  background: #f8fafc; }
.paste-box textarea:focus { outline: none; border-color: var(--accent);
  background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ------------------------------------------------ legacy band (home) */
.legacy-card {
  margin-top: 1.75rem; border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--card) 45%);
}
.legacy-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem;
}
.legacy-card h2 { margin-bottom: 0.5rem; }
.legacy-card p { margin: 0; max-width: 62rem; color: var(--muted2); }

/* ------------------------------------------------ A–Z directory */
.letter-head {
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; margin: 1.2rem 0 0.7rem;
}
.letter-head:first-child { margin-top: 0; }

/* ------------------------------------------------ badges
   (buttons come from Bootstrap — use btn-primary / btn-outline-secondary /
   btn-danger / btn-link variants in templates) */
.badge {
  display: inline-block; border-radius: 6px; padding: 0.25em 0.7em;
  font-size: 0.75rem; font-weight: 600;
}
.badge.blue { background: var(--accent-soft); color: var(--accent); }
.badge.gray { background: #f1f5f9; color: var(--muted2); font-weight: 500; }
.badge.win { background: var(--win-soft); color: var(--win); }
.badge.loss { background: var(--loss-soft); color: var(--loss); }

/* ------------------------------------------------ cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.25rem; margin: 0 0 1.1rem; box-shadow: var(--shadow);
}
.card > h2:first-child { margin-top: 0; }
.section-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.6rem;
}

/* ------------------------------------------------ hero carousel (home) */
.hero {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 50%, var(--hero-c) 100%);
  color: #fff; padding: 3rem 2.5rem; margin-bottom: 1.5rem;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 2.4rem; line-height: 1.15; margin: 0 0 0.4rem; }
.hero .sub { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 560px; margin: 0 0 1.4rem; }

.hero-shell {
  border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; color: #fff;
  background: #172554; box-shadow: var(--shadow-lg);
}
.hero-slide {
  padding: 2.9rem 5.5rem 1.6rem 2.75rem; min-height: 340px;
  display: flex !important; align-items: flex-start; justify-content: space-between; gap: 2rem;
}
.carousel-item.sport-bbk { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 55%, #172554 100%); }
.carousel-item.sport-gbk { background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 55%, #2e1065 100%); }
.carousel-item.sport-fb  { background: linear-gradient(135deg, #047857 0%, #065f46 55%, #022c22 100%); }
.hero-shell h1 { color: #fff; font-size: 2.3rem; line-height: 1.15; margin: 0 0 0.4rem; }
.hero-shell .sub { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 560px; margin: 0 0 1.1rem; }
.hero-shell .carousel-indicators { top: 1.2rem; right: 1.5rem; bottom: auto; left: auto; margin: 0; }
.hero-shell .carousel-indicators [data-bs-target] {
  width: 9px; height: 9px; border-radius: 50%; border: none; transition: width 0.2s ease;
}
.hero-shell .carousel-indicators .active { width: 22px; border-radius: 999px; }
.hero-shell .carousel-control-prev, .hero-shell .carousel-control-next { width: 3.4rem; }
.slide .kicker, .hero-slide .kicker {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.14); border-radius: 999px; padding: 0.3rem 0.9rem;
  margin-bottom: 0.9rem;
}
.slide-ctas { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.btn.hero-btn { background: #fff; color: var(--ink); border-color: #fff; padding: 0.6rem 1.3rem; font-weight: 600; }
.btn.hero-btn:hover { background: rgba(255,255,255,0.88); color: var(--ink); }
.hero-slide .ghost { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.9rem; }
.hero-slide .ghost:hover { color: #fff; }
.slide-emblem { align-self: center; opacity: 0.22; color: #fff; }
.slide-emblem svg { width: 140px; height: 140px; }
.mascot-strip { display: flex; gap: 0.5rem; margin-top: 1.3rem; flex-wrap: wrap; }
.mascot-chip {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.35); transition: transform 0.15s ease;
}
.mascot-chip:hover { transform: translateY(-2px) scale(1.06); }
.mascot-chip img { width: 82%; height: 82%; object-fit: contain; }

.hero-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding: 1.1rem 2.5rem 1.4rem;
  background: rgba(2,6,23,0.28); backdrop-filter: blur(4px);
}
.hero-bottom .hero-search { flex: 1 1 300px; max-width: 460px; }

/* featured cards + more-sports rail */
.home-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 1.75rem; align-items: start;
}
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem 1.25rem; box-shadow: var(--shadow); text-align: left;
  display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start;
  transition: all 0.15s ease;
}
.feat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.feat-icon { color: var(--accent); }
.feat-icon svg { width: 34px; height: 34px; }
.feat-card .name { font-weight: 800; color: var(--ink); font-size: 1.1rem; letter-spacing: -0.01em; }
.feat-card .range { color: var(--muted2); font-size: 0.85rem; line-height: 1.45; }
.feat-card .btn.small { margin-top: 0.4rem; }
.feat-card .all-link { font-size: 0.85rem; font-weight: 600; }
.sports-list { padding: 0.5rem; }
.sports-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.6rem 0.85rem; border-radius: 8px; color: var(--body);
  font-weight: 500; font-size: 0.92rem;
}
.sports-list a:hover { background: var(--accent-soft); color: var(--accent); }
.sports-list .n { color: var(--muted); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.sports-list a.foot { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 0.3rem; color: var(--accent); font-weight: 600; }
.hero-search { position: relative; max-width: 480px; }
.hero-search input {
  width: 100%; border: none; border-radius: 12px; padding: 0.9rem 6.2rem 0.9rem 1.1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-search input:focus { outline: none; background: #fff; }
.hero-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--accent); border: none; color: #fff; padding: 0.55rem 1.1rem;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.hero-search button:hover { background: var(--accent-dark); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 1.6rem; }
.hero-stat-number { font-size: 1.7rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat-label {
  font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase;
  letter-spacing: 0.05em; margin-top: 0.3rem;
}

/* ------------------------------------------------ tables */
.tablewrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
table.data caption {
  caption-side: top; text-align: left; font-weight: 700; color: var(--ink);
  padding: 0 0 0.6rem;
}
table.data thead th {
  background: var(--thead); color: var(--muted); font-weight: 600;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  text-align: left; padding: 0.6rem 0.65rem; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td {
  padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tbody tr { transition: background 0.12s ease; }
table.data tbody tr:hover { background: var(--hover); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
table.data tr.total td {
  font-weight: 700; color: var(--ink);
  border-top: 2px solid var(--line); background: var(--thead);
}
table.data tr.total:hover { background: var(--thead); }
table.data a { font-weight: 500; }
.res-W { color: var(--win); font-weight: 700; }
.res-L { color: var(--loss); font-weight: 700; }
.res-T { color: var(--muted2); font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }

/* season × sport matrix (home) */
table.matrix td, table.matrix th { text-align: center; }
table.matrix td:first-child { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
table.matrix a {
  display: inline-block; min-width: 1.6rem; padding: 0.1rem 0.35rem;
  border-radius: 6px; font-weight: 500;
}
table.matrix a:hover { background: var(--accent-soft); }
table.matrix .none { color: var(--line); }

/* ------------------------------------------------ scorebox (game page) */
.scorebox {
  display: flex; align-items: stretch; gap: 1rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem;
}
.scorebox .side { flex: 1 1 220px; display: flex; align-items: center; gap: 1rem; }
.scorebox .side.right { flex-direction: row-reverse; text-align: right; }
.scorebox .team-name { font-size: 1.2rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.scorebox .team-name a { color: inherit; }
.scorebox .team-name a:hover { color: var(--accent); }
.scorebox .team-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.scorebox .pts {
  font-size: 3rem; font-weight: 800; line-height: 1; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.scorebox .winner .pts { color: var(--ink); }
.scorebox .mid {
  flex: 0 0 auto; align-self: center; text-align: center;
  color: var(--muted); font-size: 0.8rem; padding: 0 0.6rem;
}
.scorebox .mid .final {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted2);
  background: #f1f5f9; border-radius: 999px; padding: 0.25rem 0.8rem;
}
.logo-ph {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-ph.sm { width: 40px; height: 40px; font-size: 1rem; border-radius: 8px; }
.logo-ph.has-img { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.logo-ph img { width: 86%; height: 86%; object-fit: contain; }

/* ------------------------------------------------ team stats comparison (ESPN bars) */
.vs-head { display: flex; justify-content: space-between; margin-bottom: 0.6rem;
  font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.vs-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.42rem 0;
  border-top: 1px solid var(--line); }
.vs-val { flex: 0 0 3.6rem; font-variant-numeric: tabular-nums; font-size: 0.9rem;
  color: var(--muted2); }
.vs-val.right { text-align: right; }
.vs-val.lead { color: var(--ink); font-weight: 700; }
.vs-bars { flex: 1; display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.vs-label { flex: 0 0 auto; width: 34%; max-width: 240px; text-align: center;
  font-size: 0.8rem; color: var(--muted2); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.vs-track { flex: 1; height: 8px; background: var(--hover); border-radius: 999px;
  overflow: hidden; min-width: 30px; }
.vs-track.left { transform: scaleX(-1); }  /* left bar grows right-to-left */
.vs-fill { height: 100%; background: var(--muted); border-radius: 999px; }
.vs-fill.lead { background: var(--accent); }

/* ------------------------------------------------ box score (ESPN-style) */
.boxcard { padding: 0; overflow: hidden; }
.boxteam-header {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; color: var(--ink); font-size: 1.05rem;
  padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line);
}
.boxteam-header .box-score { margin-left: auto; font-size: 1.3rem; font-weight: 800; }
.boxcard > .page-meta { padding: 1rem 1.25rem; }
.boxcard .tablewrap { overflow-x: auto; }
table.boxscore { min-width: 100%; }
table.boxscore thead tr.grouprow th {
  text-align: center; font-size: 0.68rem; color: var(--muted2);
  border-left: 1px solid var(--line); background: #f1f5f9;
}
table.boxscore thead tr.grouprow th.playercol { border-left: none; background: var(--card); }
table.boxscore th.playercol, table.boxscore td.playercol {
  position: sticky; left: 0; z-index: 2; background: var(--card);
  min-width: 11rem; max-width: 14rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; box-shadow: inset -1px 0 0 var(--line);
}
table.boxscore tbody tr:hover td { background: var(--hover); }
table.boxscore tbody tr:hover td.playercol { background: var(--hover); }
table.boxscore .pname { font-weight: 600; color: var(--ink); }
table.boxscore .pmeta { color: var(--muted); font-size: 0.75rem; margin-left: 0.35rem; }
table.boxscore td.num { color: var(--body); }
table.boxscore tr.total td { background: var(--thead); }
table.boxscore tr.total td.playercol { background: var(--thead); font-weight: 700; }
table.boxscore tr.pergame td { color: var(--muted2); font-weight: 500; border-top: none; }
table.boxscore td.playercol a { color: inherit; }
table.boxscore td.playercol a:hover .pname { color: var(--accent); }

/* player page */
.player-jersey { color: var(--muted); font-weight: 600; font-size: 1.1rem; margin-left: 0.5rem; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.35rem; }
.roster-item {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.7rem;
  border-radius: 8px; color: var(--body); font-size: 0.9rem;
}
.roster-item:hover { background: var(--accent-soft); }
.roster-item:hover .rn { color: var(--accent); }
.roster-item .rj { flex: 0 0 1.8rem; text-align: right; color: var(--muted); font-size: 0.82rem; }
.roster-item .rn { font-weight: 600; color: var(--ink); }
.roster-item .rg { color: var(--muted); font-size: 0.78rem; }

/* ------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  background: #f1f5f9; color: var(--muted2); border-radius: 999px;
  padding: 0.22rem 0.8rem; font-size: 0.83rem; font-weight: 500; white-space: nowrap;
  transition: all 0.15s ease;
}
a.chip:hover { background: var(--accent-soft); color: var(--accent); }
.seasons-strip { display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.85rem; }
.seasons-strip a, .seasons-strip span {
  padding: 0.15rem 0.5rem; border-radius: 6px; font-weight: 500;
}
.seasons-strip a:hover { background: var(--accent-soft); }
.seasons-strip .current { background: var(--accent); color: #fff; font-weight: 600; }

/* ------------------------------------------------ forms */
input.filter, form.stack input, form.stack select {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.6rem 0.9rem; font: inherit; font-size: 0.95rem; color: var(--ink);
  width: 100%; max-width: 26rem; transition: all 0.2s ease;
}
input.filter:focus, form.stack input:focus, form.stack select:focus {
  outline: none; border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input.filter { margin-bottom: 0.7rem; }
form.stack label { display: block; margin: 0.85rem 0 0.3rem; font-weight: 500; font-size: 0.875rem; color: var(--muted2); }
form.stack label.inline { font-weight: 400; color: var(--body); }
form.stack label.inline input { width: auto; margin-right: 0.4rem; }
.errorlist { color: var(--loss); margin: 0.3rem 0; padding-left: 1.1rem; font-size: 0.85rem; }
.helptext { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }

.auth-wrap { display: flex; justify-content: center; padding: 2rem 0; }
.auth-card {
  width: 100%; max-width: 410px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  width: 54px; height: 54px; background: var(--accent); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem; font-size: 1.5rem; color: #fff;
}
.auth-card h1 { text-align: center; font-size: 1.4rem; }
.auth-card .sub { text-align: center; color: var(--muted2); font-size: 0.9rem; margin: 0 0 1.2rem; }
.auth-card .btn { width: 100%; margin-top: 1.1rem; padding: 0.7rem; }
.auth-foot {
  text-align: center; margin-top: 1.4rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line); color: var(--muted2); font-size: 0.88rem;
}

/* stat entry cells */
input.cell {
  width: 4.1rem; padding: 0.3rem 0.4rem; font: inherit; font-size: 0.85rem;
  text-align: right; border: 1px solid var(--line); border-radius: 6px;
  background: #f8fafc; color: var(--ink); font-variant-numeric: tabular-nums;
}
input.cell:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
input.cell.wide { width: 10rem; text-align: left; }

/* ------------------------------------------------ flash + footer */
.flash { border-left: 4px solid var(--accent); }
.flash.error { border-left-color: var(--loss); }
.flash.success { border-left-color: var(--win); }
footer.site {
  flex-shrink: 0; background: #1e293b; color: rgba(255,255,255,0.55);
  font-size: 0.82rem; margin-top: 2rem;
}
footer.site .inner {
  max-width: 1140px; margin: 0 auto; padding: 1.4rem 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
footer.site a { color: rgba(255,255,255,0.75); font-weight: 500; }
footer.site a:hover { color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (max-width: 640px) {
  .hero { padding: 2rem 1.4rem; }
  .hero h1, .hero-shell h1 { font-size: 1.7rem; }
  .hero-slide { padding: 2rem 3rem 1rem 1.4rem; min-height: 380px; }
  .slide-emblem { display: none; }
  .hero-bottom { padding: 1rem 1.4rem 1.2rem; }
  .hero-stats { gap: 1.4rem; }
  .scorebox { flex-direction: column; gap: 0.7rem; padding: 1.1rem 1.2rem; }
  .scorebox .side, .scorebox .side.right { flex-direction: row; text-align: left; flex-basis: auto; }
  .scorebox .mid { order: -1; padding: 0; align-self: flex-start;
    display: flex; align-items: center; gap: 0.7rem; }
  .vs-label { width: 40%; }
  .vs-val { flex-basis: 2.8rem; font-size: 0.82rem; }
  .scorebox .pts { font-size: 2.2rem; }
  .navbar-inner { gap: 0.6rem; }
  .nav-search { width: 140px; }
}

/* ================================================= Kentucky Hoops Source */
:root { --gold: #e3b616; --charcoal: #3a3a3c; }
.hero {
  background: linear-gradient(135deg, #2b2b2e 0%, #3a3a3c 60%, #1f1f21 100%);
  border-bottom: 4px solid var(--gold);
}
.hero-stats { flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.hero-stat-number { color: var(--gold); }
.avatar { position: relative; }
.avatar .dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--loss); border: 2px solid #fff; }
.by { color: var(--muted2); font-size: 0.8rem; font-weight: 400; }
h2.sec { margin: 1.4rem 0 0.7rem; font-size: 1.25rem; }
h2 .by { margin-left: 0.4rem; }

/* dense reference tables */
table.data.dense { font-size: 0.84rem; }
table.data.dense thead th { padding: 0.4rem 0.5rem; }
table.data.dense tbody td { padding: 0.32rem 0.5rem; }
table.data.dense tbody tr:nth-child(even) { background: #fbfcfe; }
table.data.dense tbody tr:hover { background: var(--hover); }
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable thead th:hover { color: var(--accent); }
table.sortable thead th[data-dir="desc"]::after { content: " ▾"; color: var(--accent); }
table.sortable thead th[data-dir="asc"]::after { content: " ▴"; color: var(--accent); }
table.data td.rank { color: var(--muted); width: 2rem; }
table.data td.strong { font-weight: 700; color: var(--ink); }
.boxcard { padding: 0; overflow: hidden; }
.boxcard .tablewrap { padding: 0; }

/* layout helpers */
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
@media (max-width: 1000px) { .panel-grid { grid-template-columns: 1fr; } }
.panel { margin: 0 0 1.1rem; border-top: 4px solid var(--gold); }
.panel.sport-gbk { border-top-color: #7c3aed; }
.panel.sport-fb { border-top-color: #047857; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.panel-head h2 { margin: 0; }
.panel-head h2 a { color: var(--ink); }
.panel .leader-grid { grid-template-columns: 1fr; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
@media (max-width: 1000px) { .three { grid-template-columns: 1fr; } }
.tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* scores */
.scores { display: flex; flex-direction: column; }
.scoreline { display: grid; grid-template-columns: 3.2rem 1fr auto; column-gap: 0.6rem;
  padding: 0.4rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--body); font-size: 0.86rem; }
.scoreline:last-child { border-bottom: none; }
.scoreline:hover { background: var(--hover); color: var(--body); }
.scoreline .d { grid-row: span 2; color: var(--muted2); font-size: 0.78rem; align-self: center; }
.scoreline .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreline .s { text-align: right; font-variant-numeric: tabular-nums; }
.scoreline .w { font-weight: 700; color: var(--ink); }

/* leaders */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.leader-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lb-title { background: var(--thead); font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted2); padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--line); }
.leader-box ol { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.leader-box li { counter-increment: lb; display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.3rem 0.7rem; font-size: 0.84rem; border-bottom: 1px solid var(--line); }
.leader-box li:last-child { border-bottom: none; }
.leader-box li::before { content: counter(lb); color: var(--muted); font-size: 0.75rem; width: 1.1rem; flex: none; }
.leader-box .who { flex: 1; min-width: 0; }
.leader-box .who .by { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-box .val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.leader-box li:first-child .val { color: var(--accent); }

/* player header */
.bio { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bio-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

/* photos & videos */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem; }
.gallery.review { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gitem { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.gitem img, .gitem video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #0f172a; }
.gitem figcaption { padding: 0.45rem 0.6rem; font-size: 0.8rem; color: var(--body); }
.gdel { position: absolute; top: 6px; right: 6px; }
.gdel button { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(15,23,42,0.7);
  color: #fff; line-height: 1; font-size: 1rem; cursor: pointer; }
.gdel button:hover { background: var(--loss); }

/* people & access */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.levels div { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.88rem; }
.levels span { color: var(--muted2); }
table.users td { vertical-align: top; }
table.users tr.off td { opacity: 0.55; }
form.grant { display: inline-block; margin: 0 0.25rem 0.25rem 0; }
form.grant .chip button { border: none; background: none; color: var(--muted2); padding: 0 0 0 0.3rem; cursor: pointer; font-size: 1rem; line-height: 1; }
form.grant .chip button:hover { color: var(--loss); }

/* ================================================= fonts, header, logo */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap;
  src: url("fonts/barlow-condensed-800i.woff2") format("woff2"); }
:root { --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --gold: #f2b90f; --night: #232326; }
h1 { font-family: var(--display); font-weight: 800; font-size: 2.3rem; letter-spacing: 0.005em; line-height: 1.05; text-transform: uppercase; }
h2.sec, .panel-head h2 { font-family: var(--display); font-weight: 800; font-size: 1.55rem; text-transform: uppercase; letter-spacing: 0.01em; }

.site-nav { background: var(--night); border-bottom: 3px solid var(--gold); box-shadow: none; }
.site-nav .nav-link { color: rgba(255,255,255,0.78); font-family: var(--display); font-weight: 600;
  font-size: 1.08rem; text-transform: uppercase; letter-spacing: 0.03em; }
.site-nav .nav-link:hover { color: var(--gold); }
.site-nav .form-control { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: #fff; }
.site-nav .form-control::placeholder { color: rgba(255,255,255,0.55); }
.site-nav .form-control:focus { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px rgba(242,185,15,0.35); border-color: var(--gold); }
.site-nav .nav-login { color: rgba(255,255,255,0.78); }
.site-nav .nav-login:hover { color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 700; }
.btn-gold:hover { background: #ffd24a; border-color: #ffd24a; color: var(--night); }
.site-nav .avatar { background: var(--gold); color: var(--night); font-weight: 800; }
.brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.15rem 0; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 0.9; font-family: var(--display); text-transform: uppercase; }
.brand-top { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.32em; color: var(--gold); margin-bottom: 0.12rem; }
.brand-main { font-weight: 800; font-style: italic; font-size: 1.55rem; letter-spacing: 0.01em; color: #fff; }
.brand-main em { color: var(--gold); font-style: italic; }
footer.site { border-top: 3px solid var(--gold); }

/* ================================================= home */
.hero.hero-home {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end;
  padding: 2.4rem 2.4rem 2.1rem; margin-bottom: 1.1rem; border-bottom: none; border-radius: 16px;
  background:
    radial-gradient(circle at 100% 120%, rgba(242,185,15,0.22) 0, rgba(242,185,15,0.22) 190px, transparent 191px),
    radial-gradient(circle at 100% 120%, transparent 0, transparent 250px, rgba(255,255,255,0.08) 251px, rgba(255,255,255,0.08) 254px, transparent 255px),
    linear-gradient(135deg, #2e2e33 0%, #232326 60%, #17171a 100%);
}
@media (max-width: 800px) { .hero.hero-home { grid-template-columns: 1fr; padding: 1.6rem 1.25rem; } }
.hero-home .kicker { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); font-size: 0.95rem; margin-bottom: 0.4rem; }
.hero-home h1 { font-size: 2.9rem; max-width: 640px; margin-bottom: 0.6rem; }
@media (max-width: 800px) { .hero-home h1 { font-size: 2.1rem; } }
.hero-home .sub { margin-bottom: 1.1rem; }
.hero-home .hero-search button { background: var(--gold); color: var(--night); font-weight: 800; }
.hero-home .hero-search button:hover { background: #ffd24a; }
.surprise { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.surprise a { color: #fff; border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 0.3rem 0.85rem; font-weight: 600; }
.surprise a:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.hero-home .hero-stats { margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 1.1rem 2rem; }
@media (max-width: 800px) { .hero-home .hero-stats { grid-template-columns: repeat(4, auto); gap: 1rem; } }
.hero-home .hero-stat-number { font-family: var(--display); font-weight: 800; font-size: 2.1rem; }

.daily { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 900px) { .daily { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 0 1.3rem 1.1rem; overflow: hidden; display: flex; flex-direction: column; }
.feature-tag { margin: 0 -1.3rem 1rem; padding: 0.55rem 1.3rem; background: var(--gold); color: var(--night);
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.feature-tag span { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; opacity: 0.8; }
.gotd .feature-tag { background: var(--night); color: var(--gold); }
.feature-body { display: flex; align-items: center; gap: 1rem; }
.feature-face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: #fff; flex: none; }
.feature-face.logo { object-fit: contain; padding: 8px; }
.feature-face.blank { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--night); background: #fdf3cf; }
.feature-main { flex: 1; min-width: 0; }
.feature-main h2 { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; margin: 0 0 0.2rem; }
.feature-main h2 a { color: var(--ink); }
.feature-main h2 a:hover { color: var(--accent); }
.feature-sub { color: var(--muted2); font-size: 0.9rem; }
.feature-big { text-align: center; flex: none; }
.feature-big strong { display: block; font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 0.9; color: var(--ink); }
.feature-big span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted2); }
.feature-blurb { margin: 0.9rem 0 0.7rem; font-size: 1rem; color: var(--body); }
.feature-links { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.feature-links a { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.85rem; font-size: 0.82rem; font-weight: 600; }
.feature-links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.feature-more { margin-top: auto; border-top: 1px solid var(--line); padding-top: 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; }
.fm-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.feature-more a { color: var(--body); font-size: 0.86rem; }
.feature-more a:hover strong { color: var(--accent); }
.feature-more a span { color: var(--muted2); font-size: 0.8rem; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.8rem; align-items: center; color: var(--body); text-align: center; }
.matchup:hover { color: var(--body); }
.mu-side img, .mu-blank { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 0.3rem; display: block; }
.mu-blank { border-radius: 50%; background: #f1f5f9; line-height: 64px; font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--muted2); }
.mu-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.2; }
.mu-score { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--muted); }
.mu-score.win { color: var(--ink); }
.mu-mid { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.daily-note { color: var(--muted); font-size: 0.78rem; margin: 0.5rem 0 1.4rem; }
.site-nav .nav-link { white-space: nowrap; }
.hero.hero-home > * { min-width: 0; }
@media (max-width: 800px) { .hero-home .hero-stats { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (max-width: 480px) { .feature-main h2 { font-size: 1.6rem; } .feature-big strong { font-size: 2.6rem; } }
.site-nav .btn { white-space: nowrap; }

/* ================================================= score strip */
.scorebug { background: #17171a; border-bottom: 1px solid #000; color: #fff; }
.sb-inner { max-width: 1320px; margin: 0 auto; padding: 0 0.6rem; display: flex; align-items: stretch; gap: 0.3rem; }
.sb-tabs { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0.3rem 0.5rem 0.3rem 0; border-right: 1px solid rgba(255,255,255,0.12); flex: none; }
.sb-tab { background: none; border: none; color: rgba(255,255,255,0.55); font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; text-align: left; padding: 0 0.3rem; line-height: 1.25; cursor: pointer; }
.sb-tab.on { color: var(--gold); }
.sb-tab:hover { color: #fff; }
.sb-track { display: none; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.sb-track::-webkit-scrollbar { display: none; }
.sb-track.on { display: flex; }
.sb-game { flex: none; width: 168px; padding: 0.35rem 0.7rem; border-right: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.72);
  display: flex; flex-direction: column; font-size: 0.78rem; line-height: 1.35; scroll-snap-align: start; }
.sb-game:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sb-meta { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); }
.sb-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.sb-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.sb-row.w { color: #fff; font-weight: 700; }
.sb-row.w b { color: var(--gold); font-weight: 800; }
.sb-arrow { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.4rem; padding: 0 0.35rem; cursor: pointer; flex: none; }
.sb-arrow:hover { color: var(--gold); }
@media (max-width: 600px) { .sb-arrow { display: none; } .sb-game { width: 150px; } }

/* ================================================= stories carousel */
.stories { border-radius: 16px; overflow: hidden; margin-bottom: 1.1rem; box-shadow: var(--shadow-lg); background: var(--night); }
.story { min-height: 300px; padding: 2.2rem 4.2rem 2.8rem; color: #fff; display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: center;
  background:
    radial-gradient(circle at 100% 130%, rgba(242,185,15,0.20) 0, rgba(242,185,15,0.20) 210px, transparent 211px),
    radial-gradient(circle at 100% 130%, transparent 0, transparent 270px, rgba(255,255,255,0.08) 271px, rgba(255,255,255,0.08) 274px, transparent 275px),
    linear-gradient(135deg, #2e2e33 0%, #232326 60%, #17171a 100%); }
.story.sport-gbk { background:
    radial-gradient(circle at 100% 130%, rgba(167,139,250,0.25) 0, rgba(167,139,250,0.25) 210px, transparent 211px),
    linear-gradient(135deg, #322a4d 0%, #241f38 60%, #17142a 100%); }
.story.sport-fb { background:
    repeating-linear-gradient(90deg, transparent 0, transparent 78px, rgba(255,255,255,0.06) 78px, rgba(255,255,255,0.06) 80px),
    linear-gradient(135deg, #14532d 0%, #0f3d22 60%, #082414 100%); }
.story-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.story-tag { background: var(--gold); color: var(--night); font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1rem; padding: 0.1rem 0.7rem; border-radius: 4px; transform: skew(-8deg); }
.story-kicker { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.story h2 { font-family: var(--display); font-weight: 800; font-size: 2.9rem; line-height: 1; text-transform: uppercase; margin: 0 0 0.6rem; }
.story h2 a { color: #fff; }
.story h2 a:hover { color: var(--gold); }
.story p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 620px; margin: 0 0 1.1rem; }
.story-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.story-link { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.9rem; }
.story-link:hover { color: var(--gold); }
.story-art { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.story-art img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 50%; padding: 12px; border: 4px solid var(--gold); }
.story-art img.face { object-fit: cover; padding: 0; }
.story-ball { width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 4px solid rgba(255,255,255,0.25); }
.story-vs { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.4rem; color: var(--gold); text-transform: uppercase; }
.story-big { text-align: center; }
.story-big strong { display: block; font-family: var(--display); font-weight: 800; font-size: 5rem; line-height: 0.85; color: var(--gold); }
.story-big span { font-weight: 700; letter-spacing: 0.14em; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.stories .carousel-control-prev, .stories .carousel-control-next { width: 3.4rem; }
.stories .carousel-indicators { margin-bottom: 0.7rem; }
.stories .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; border: none; }
.stories .carousel-indicators .active { width: 24px; border-radius: 999px; background: var(--gold); }
@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; padding: 1.5rem 1.3rem 2.6rem; min-height: 0; gap: 1rem; }
  .story h2 { font-size: 2rem; } .story p { font-size: 0.95rem; }
  .story-art img, .story-ball { width: 72px; height: 72px; padding: 7px; border-width: 3px; }
  .story-big strong { font-size: 3rem; }
  .stories .carousel-control-prev, .stories .carousel-control-next { display: none; }
}
.findbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
@media (max-width: 900px) { .findbar { grid-template-columns: 1fr; } }
.findbar h1 { font-size: 1.7rem; margin: 0 0 0.3rem; }
.findbar p { margin: 0; color: var(--muted2); font-size: 0.92rem; }
.findbar .hero-search { max-width: none; }
.findbar .hero-search input { border: 1px solid var(--line); box-shadow: none; background: #f8fafc; }
.findbar .hero-search button { background: var(--gold); color: var(--night); font-weight: 800; }
.findbar .surprise { color: var(--muted2); margin-top: 0.7rem; }
.findbar .surprise a { color: var(--ink); border-color: var(--line); }
.findbar .surprise a:hover { background: var(--gold); border-color: var(--gold); }

/* carousel keeps one height on every slide */
.story { height: 340px; min-height: 0; overflow: hidden; }
.story h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 800px) {
  .story { height: 430px; align-content: start; }
  .story-art { align-self: end; }
}

/* ================================================= autocomplete, follow, alerts */
.ac-wrap { position: relative; }
.ac-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; z-index: 1050; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.18); overflow: hidden; text-align: left; }
.ac-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: baseline; padding: 0.45rem 0.8rem;
  color: var(--body); font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.ac-list a:last-child { border-bottom: none; }
.ac-list a:hover, .ac-list a.on { background: #fdf6d8; color: var(--ink); }
.ac-type { grid-row: span 2; align-self: center; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem; border-radius: 4px; background: var(--night); color: var(--gold); }
.ac-type.school { background: var(--gold); color: var(--night); }
.ac-label { font-weight: 600; color: var(--ink); }
.ac-sub { grid-column: 2; font-size: 0.78rem; color: var(--muted2); }
.ac-sub:empty { display: none; }
.ac-list a.ac-all { display: block; font-size: 0.82rem; font-weight: 600; color: var(--accent); background: #f8fafc; }
.follow { margin-left: auto; }
.bio .follow, form.follow { align-self: center; }
.alert-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--body); }
.alert-row:last-child { border-bottom: none; }
.alert-row:hover { background: var(--hover); color: var(--ink); }
.alert-row.new { font-weight: 600; border-left: 3px solid var(--gold); padding-left: 0.6rem; }
.alert-row .by { white-space: nowrap; }
.fav-row { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.fav-row:last-child { border-bottom: none; }
