/* Gov Nation Network — design system */
:root {
  --navy: #14284d;
  --navy-800: #1b3566;
  --navy-700: #24427d;
  --orange: #e35a1c;
  --orange-600: #f26a22;
  --white: #ffffff;
  --paper: #f5f6f8;
  --ink: #14284d;
  --muted: #5b6b8c;
  --ring: rgba(227, 90, 28, 0.35);
  --shadow: 0 10px 30px rgba(20, 40, 77, 0.12);
  --radius: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
h1, h2, h3 { font-family: "Oswald", "Inter", sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; margin: 0 0 0.5em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-family: "Oswald", sans-serif; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; cursor: pointer; border: 2px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px var(--ring); }
.btn-orange:hover { background: var(--orange-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--orange); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: 56px; border-radius: 50%; }
.brand-name { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.brand-name .gov { color: var(--orange); }
@media (max-width: 480px) { .brand-name { font-size: 17px; } .brand img { height: 46px; width: 46px; } }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--navy); font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--orange); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero { position: relative; background: #0c2150; color: #fff; overflow: hidden; border-bottom: 6px solid var(--orange); }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(240px, 42vw, 500px); object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,33,80,0) 55%, #0c2150 98%); }
.hero-inner { padding: 26px 0 72px; max-width: 820px; margin: 0 auto; text-align: center; }
.hero-cta { justify-content: center; }
.eyebrow { display: inline-block; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .18em; color: var(--orange-600); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); text-transform: uppercase; }
.hero h1 .accent { color: var(--orange); }
.hero p { font-size: clamp(17px, 2.2vw, 20px); color: #cdd8ee; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--orange); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; }
.bg-paper { background: var(--paper); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid #e7ebf3; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease; }
.card:hover { transform: translateY(-4px); }
.card .icon { width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: "Oswald"; font-size: 22px; margin-bottom: 16px; }
.card h3 { color: var(--navy); text-transform: uppercase; font-size: 20px; }
.card p { color: var(--muted); margin: 0; }

/* Live Now */
.live-now { background: #0c2150; color: #fff; padding: 56px 0; border-bottom: 6px solid var(--orange); }
.live-now .section-head h2 { color: #fff; }
.live-now .section-head p { color: #cdd8ee; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.live-player .live-title { text-align: center; font-family: "Oswald", sans-serif; margin: 12px 0 0; color: #cdd8ee; }
.alt-wrap { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.alt-alert { color: #ffd7a1; font-family: "Oswald", sans-serif; font-size: 16px; margin: 0 0 14px; }
.alt-feed { max-width: 960px; margin: 16px auto 0; background: #0d1a33; border: 1px solid #24427d; border-radius: 12px; padding: 12px; }
.alt-toggle { font-size: 13px; }

/* Player frames (live + archive inline players) */
.player-frame { aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Archive controls — mobile-first: search + swipeable single rows */
.archive-controls { margin-bottom: 22px; }
.archive-controls input[type="search"] { width: 100%; padding: 14px 18px; border: 1px solid #cdd6e6; border-radius: 999px; font: inherit; font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.archive-controls input[type="search"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
.scroll-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
/* Desktop: wrap the rows instead of clipping — swipe behavior is mobile-only */
@media (min-width: 800px) {
  .scroll-row { flex-wrap: wrap; overflow-x: visible; }
}
.year-row { border-bottom: 1px solid #e7ebf3; margin-bottom: 10px; }
.year-chip { border-width: 0 0 3px 0 !important; border-radius: 0 !important; background: transparent !important; padding: 8px 6px !important; font-size: 16px !important; }
.year-chip.active { color: var(--orange) !important; border-color: var(--orange) !important; }
.chip { padding: 9px 16px; border-radius: 999px; border: 2px solid #cdd6e6; background: #fff; color: var(--navy); font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.small { padding: 6px 14px; font-size: 13px; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--orange); color: #fff; font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.src-badge { position: absolute; bottom: 10px; left: 10px; background: rgba(20, 40, 77, 0.85); color: #cdd8ee; font-family: "Oswald", sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.video-ctx { color: var(--orange); font-family: "Oswald", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 16px 4px; }
.video-stage { color: var(--navy); font-family: "Oswald", sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 2px 16px 0; }
.video-venue { color: var(--muted); font-size: 12px; margin: 2px 16px 14px; }
.video-card .video-date + .video-stage, .video-card .video-date + .video-venue { margin-top: 2px; }

/* Archive grid */
.season-group { margin-bottom: 56px; }
.season-title { color: var(--navy); text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); border-left: 6px solid var(--orange); padding-left: 14px; margin-bottom: 24px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .video-card h3 { font-size: 14px; margin: 10px 12px 4px; }
  .video-card .video-date, .video-ctx { margin-left: 12px; margin-right: 12px; }
  .season-title { font-size: 20px; }
  section { padding: 44px 0; }
}
.video-card { background: #fff; border: 1px solid #e7ebf3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s ease; }
.video-card:hover { transform: translateY(-4px); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0d1a33; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play-btn { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; background: rgba(13, 26, 51, 0.35); opacity: 0; transition: opacity .18s ease; }
.video-card:hover .play-btn { opacity: 1; }
.video-card h3 { font-size: 17px; color: var(--navy); margin: 14px 16px 4px; text-transform: none; }
.video-card .video-date { color: var(--muted); font-size: 13px; margin: 0 16px 16px; }

/* Video embed frame */
.video-wrap { max-width: 960px; margin: 0 auto; background: #0d1a33; border: 1px solid #24427d; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.video-wrap .placeholder { aspect-ratio: 16/9; display: grid; place-items: center; color: #9fb2d6; text-align: center; }
.note { max-width: 720px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 15px; }

/* Live badge */
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(227,90,28,.15); color: var(--orange-600); font-family: "Oswald"; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 var(--ring); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 12px rgba(227,90,28,0); } 100% { box-shadow: 0 0 0 0 rgba(227,90,28,0); } }

/* Page hero (interior) */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0; border-bottom: 3px solid var(--orange); }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); text-transform: uppercase; margin: 0; }
.page-hero p { color: #cdd8ee; margin: 8px 0 0; }

/* Contact form */
.form { max-width: 620px; margin: 0 auto; display: grid; gap: 18px; }
.form label { font-family: "Oswald"; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; color: var(--navy); display: block; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 13px 15px; border: 1px solid #cdd6e6; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
.form textarea { min-height: 150px; resize: vertical; }

/* Prose (terms/privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { color: var(--navy); margin-top: 1.6em; }
.prose p, .prose li { color: #3a4a68; }

/* Quick edit (admin only — injected by js/quickedit.js) */
.video-card { position: relative; }
.edit-btn { position: absolute; top: 8px; right: 8px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(20, 40, 77, 0.85); color: #fff; font-size: 16px; cursor: pointer; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.video-card:hover .edit-btn { opacity: 1; }
@media (hover: none) { .edit-btn { opacity: 0.85; } } /* always visible on touch */
.edit-btn:hover { background: var(--orange); }
.qe-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(13, 26, 51, 0.65); display: grid; place-items: center; padding: 16px; }
.qe-overlay[hidden] { display: none !important; }
.qe-modal { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 700px; box-shadow: 0 24px 60px rgba(0,0,0,.35); max-height: 92vh; overflow-y: auto; }
.qe-title { color: var(--navy); font-size: 18px; margin: 0 0 12px; }
.qe-player { aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.qe-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.qe-player:empty { display: none; }
.qe-noembed { position: relative; height: 100%; display: grid; place-items: center; text-align: center; }
.qe-noembed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.qe-noembed p { position: relative; color: #fff; font-size: 14px; }
.qe-noembed a { color: var(--orange-600); font-weight: 600; }
.qe-meta { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.qe-meta strong { color: var(--navy); }
.qe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qe-grid label { font-family: "Oswald", sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); display: flex; flex-direction: column; gap: 5px; }
.qe-grid select, .qe-grid input[type="text"] { padding: 10px 12px; border: 1px solid #cdd6e6; border-radius: 8px; font: 14px "Inter", sans-serif; }
.qe-wide { grid-column: 1 / -1; }
.qe-check { grid-column: 1 / -1; flex-direction: row !important; align-items: center; }
.qe-error { color: #c0392b; font-size: 14px; margin: 12px 0 0; }
.qe-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Footer */
.site-footer { background: var(--navy); color: #cdd8ee; padding: 48px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-logo { height: 84px; width: 84px; border-radius: 50%; object-fit: cover; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-nav a { color: #cdd8ee; font-family: "Oswald"; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.footer-nav a:hover { color: var(--orange-600); }
.copyright { font-size: 13px; color: #8ea0c4; margin: 0; }

/* Archive sort row */
.sort-row { align-items: center; }
.sort-row .sort-label { flex: 0 0 auto; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-right: 4px; align-self: center; }

/* Fuzzy autocomplete combobox (admin venue/school/city fields) */
.ac-wrap { position: relative; display: block; }
.ac-list { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin-top: 3px; min-width: 170px; background: #fff; border: 1px solid #cdd6e6; border-radius: 8px; box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; }
.ac-list[hidden] { display: none; }
.ac-item { padding: 8px 11px; font-size: 13px; color: var(--navy); cursor: pointer; }
.ac-item:hover, .ac-item.active { background: #fff2e9; color: var(--orange); }

/* YouTube Manager (admin) */
.yt-panel { background: #fff; border: 1px solid #e7ebf3; border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; }
.yt-panel h3 { margin: 0 0 4px; color: var(--navy); }
.yt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.yt-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.yt-controls input[type="search"] { flex: 1 1 220px; padding: 9px 14px; border: 1px solid #cdd6e6; border-radius: 999px; font: inherit; }
.yt-list { max-height: 560px; overflow-y: auto; border: 1px solid #eef1f7; border-radius: 10px; }
.yt-row { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #eef1f7; }
.yt-row:last-child { border-bottom: 0; }
.yt-row.dirty { background: #fff6ef; box-shadow: inset 3px 0 0 var(--orange); }
.yt-row img { width: 88px; border-radius: 6px; }
.yt-info { min-width: 0; }
.yt-info a { color: var(--navy); font-size: 14px; font-weight: 500; text-decoration: none; }
.yt-info a:hover { color: var(--orange); }
.yt-pub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.yt-pub b { text-transform: capitalize; }
.yt-pub .p-public { color: #1e7a3d; } .yt-pub .p-unlisted { color: #b8860b; } .yt-pub .p-private { color: #c0392b; }
.yt-row select { padding: 7px 10px; border: 1px solid #cdd6e6; border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.yt-emb { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.yt-applybar { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; border-radius: 0 0 10px 10px; padding: 12px 16px; margin-top: -1px; }
.yt-applybar span { font-size: 14px; }
/* rename review (multi-select) */
.rn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--navy); }
.rn-head label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.rn-list { max-height: 60vh; overflow-y: auto; border: 1px solid #eef1f7; border-radius: 10px; }
.rn-row { display: grid; grid-template-columns: auto 168px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #eef1f7; }
.rn-row:last-child { border-bottom: 0; }
.rn-row img { width: 168px; border-radius: 6px; display: block; }
.rn-info { min-width: 0; }
.rn-cur { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.rn-title { width: 100%; padding: 9px 11px; border: 1px solid #cdd6e6; border-radius: 8px; font: inherit; font-size: 14px; }
.rn-row input[type="checkbox"] { width: 18px; height: 18px; }
.rn-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; }
.rn-ha { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.rn-ha > span:first-child { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.rn-reset { border: 1px solid #cdd6e6; background: #fff; color: var(--muted); border-radius: 6px; padding: 3px 10px; font: 600 12px "Oswald", sans-serif; cursor: pointer; }
.rn-reset:hover { border-color: var(--navy); color: var(--navy); }
.rn-lvl { display: inline-flex; align-items: center; gap: 5px; font: 600 12px "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rn-lvl select { padding: 4px 8px; border: 1px solid #cdd6e6; border-radius: 6px; font: 400 12px "Inter", sans-serif; background: #fff; }
.rn-ha button { border: 1px solid #cdd6e6; background: #fff; color: var(--navy); border-radius: 6px; padding: 3px 10px; font: 600 12px "Oswald", sans-serif; cursor: pointer; }
.rn-ha button:hover { border-color: var(--orange); color: var(--orange); }
.rn-ha button.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.rn-hahint { color: var(--muted); font-style: italic; }
@media (max-width: 640px) { .rn-row { grid-template-columns: auto 100px 1fr; } .rn-row img { width: 100px; } }
@media (max-width: 640px) { .yt-row { grid-template-columns: 64px 1fr; } .yt-row img { width: 64px; } .yt-row select, .yt-emb { grid-column: 2; } }

/* Places manager (admin) */
.places-panel { background: #fff; border: 1px solid #e7ebf3; border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; }
.places-panel h3 { margin: 0 0 4px; color: var(--navy); }
.places-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 12px; }
.places-col h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-family: "Oswald", sans-serif; }
.places-col .add-row { display: flex; gap: 6px; margin-bottom: 8px; }
.places-col .add-row input { flex: 1; padding: 8px 10px; border: 1px solid #cdd6e6; border-radius: 8px; font: inherit; font-size: 13px; }
.place-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid #e7ebf3; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; color: var(--navy); margin: 0 6px 6px 0; }
.place-chip button { border: 0; background: #cdd6e6; color: var(--navy); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; }
.place-chip button:hover { background: var(--orange); color: #fff; }

/* Featured replay in the Live area — toned down so it never reads as a live game */
.live-now.is-replay { border-bottom-color: var(--navy-700); }
.live-now.is-replay .live-badge { background: rgba(205, 216, 238, 0.15); color: #dbe4f5; }
.lb-next { color: #9fb2d6; text-align: center; font-size: 13px; margin: 6px 0 0; }

/* Admin row — YouTube metadata (duration/views under the thumb, description under the title) */
.admin-row .row-meta { font-size: 11px; color: var(--muted); text-align: center; margin-top: 5px; line-height: 1.5; }
.admin-row .row-desc { font-size: 12px; color: var(--muted); margin: 2px 0 8px; max-height: 3.1em; overflow: hidden; }
.qe-desc { margin-top: 10px; padding: 10px 12px; background: var(--paper); border-radius: 8px; font-size: 13px; color: #3a4a68; white-space: pre-line; max-height: 170px; overflow-y: auto; }
.qe-desc strong { color: var(--navy); }

/* Lightbox video player (archive playback — reliable on iOS) */
.lb-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(8, 16, 33, 0.92); display: grid; place-items: center; padding: 16px; }
.lb-overlay[hidden] { display: none !important; }
.lb-box { width: 100%; max-width: 960px; }
.lb-frame { aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-title { color: #cdd8ee; text-align: center; font-family: "Oswald", sans-serif; margin: 14px 0 0; }
.lb-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer; z-index: 301; }
.lb-close:hover { background: var(--orange); }

/* Admin quick Home/Away/Neutral toggle, right on the card thumbnail (always visible for admins) */
.ha-toggle { position: absolute; right: 8px; bottom: 8px; z-index: 6; display: flex; gap: 3px; opacity: 1; }
.ha-toggle button { width: 27px; height: 27px; border: 0; border-radius: 6px; background: rgba(20, 40, 77, 0.9); color: #fff; font: 700 12px "Oswald", sans-serif; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ha-toggle button:hover { background: var(--orange); }
.ha-toggle button.active { background: var(--orange); box-shadow: inset 0 0 0 2px #fff; }

/* Card location block — "Venue at School" then "City, State" */
.video-loc { margin: 6px 16px 14px; }
.video-loc .loc-label { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; color: var(--orange); margin-bottom: 1px; }
.video-loc .loc-line { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
@media (max-width: 640px) { .video-loc { margin-left: 12px; margin-right: 12px; } }

/* Feature-on-homepage star button in the edit modal */
.qe-feature { margin-right: auto; }
#gd-featured-clear { margin-top: 8px; }

/* Admin Game Manager — multi-select + bulk bar */
.admin-row { position: relative; }
.admin-row .row-thumb { position: relative; width: 120px; }
.admin-row .row-thumb img { width: 120px; border-radius: 6px; display: block; }
.row-select { position: absolute; top: 4px; left: 4px; background: rgba(255,255,255,.92); border-radius: 5px; padding: 2px 3px; display: inline-flex; }
.row-select input { width: 18px; height: 18px; cursor: pointer; margin: 0; }
.row-controls .ha-select { border-color: var(--orange); }
.bulk-bar { position: sticky; top: 80px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.bulk-bar[hidden] { display: none; }
.bulk-bar .bulk-count { font-family: "Oswald", sans-serif; font-weight: 700; }
.bulk-bar .bulk-label { color: #cdd8ee; font-size: 13px; margin-left: 6px; }
.bulk-bar .chip { background: #fff; }
.bulk-bar .bulk-deselect { margin-left: auto; }

/* Game Day — feature-latest-game toggle + homepage preview */
.gd-featured { border-top: 1px dashed #cdd6e6; margin: 12px 0; padding-top: 12px; }
.gd-feature-row { display: flex; align-items: center; gap: 8px; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--navy); cursor: pointer; }
.gd-feature-row input { width: 18px; height: 18px; }
.featured-preview { margin-top: 12px; background: #0c2150; border-radius: 10px; padding: 14px; }
.featured-preview .fp-tag { display: inline-flex; align-items: center; gap: 8px; color: #ffd7a1; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; margin-bottom: 10px; }
.fp-card { display: flex; gap: 12px; align-items: center; background: #0d1a33; border: 1px solid #24427d; border-radius: 8px; padding: 10px; }
.fp-card img { width: 140px; border-radius: 6px; flex: 0 0 auto; }
.fp-badge { display: inline-block; background: var(--orange); color: #fff; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.fp-title { color: #fff; margin: 8px 0 0; font-family: "Oswald", sans-serif; }

/* Mobile nav */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 80px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 3px solid var(--orange); transform: translateY(-140%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid #eef1f7; }
  .site-nav .btn { margin-top: 12px; text-align: center; }
}
