@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #0a0a0a;
  --bg-elevated: #0f0f0f;
  --panel: #141414;
  --panel-alt: #1a1a1a;
  --text: #ffffff;
  --muted: #a8a8a8;
  --accent: #ffffff;
  --border: #2a2a2a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  /* Royal blue — league accent */
  --highlight: #0047ab;
  --highlight-dim: rgba(0, 71, 171, 0.45);
  --highlight-soft: rgba(0, 71, 171, 0.14);
  --highlight-hover: #3b82f6;
  --success: #4abf7a;
  --font-display: "Nunito", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --shadow-card: 0 10px 36px rgba(0, 0, 0, 0.45);
  --radius-ui: 8px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--highlight-hover);
}

header {
  background: #000000;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

header::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--highlight);
  opacity: 0.92;
}

.nav {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
  min-height: 56px;
}

.logo {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

a.logo {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.logo:hover {
  color: var(--highlight-hover);
}

.nav-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 10px 11px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle:hover {
  background: var(--panel-alt);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

header.nav-open .nav-toggle-bars {
  background: transparent;
}

header.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

header.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
}

header.nav-open .nav-overlay {
  display: block;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  max-height: 100dvh;
  background: var(--panel);
  border-left: 1px solid var(--border);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  padding-top: 72px;
  padding-bottom: 24px;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
}

header.nav-open .nav-panel {
  transform: translateX(0);
}

.nav-panel .links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0 16px 16px;
}

.nav-panel .links a {
  border: 1px solid transparent;
  padding: 12px 14px;
  border-radius: var(--radius-ui);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.nav-panel .links a:hover,
.nav-panel .links a.active {
  border-color: var(--highlight-dim);
  background: var(--highlight-soft);
  color: var(--highlight-hover);
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* Page titles: capitalize the first letter of each word */
main h1,
main h2,
main h3 {
  text-transform: capitalize;
}

main > h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.hero {
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 110% 70% at 50% -10%, rgba(0, 71, 171, 0.22), transparent 52%),
    linear-gradient(168deg, #121212 0%, #0a0a0a 48%, #000000 100%);
  box-shadow: var(--shadow-card);
}

body.home .hero {
  text-align: center;
}

body.home .hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.15;
}

body.home .hero .motto {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

body.home .hero-season4-cta {
  margin: 1.35rem 0 0;
}

body.home .hero-season4-cta .placement-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.home .hero-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

body.home .home-logo {
  display: block;
  margin: 0;
  max-width: min(280px, 100%);
  height: auto;
}

.stats-import-paste {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  resize: vertical;
}

.stats-import-preview-wrap .stats-import-preview-table {
  font-size: 0.88rem;
}

.admin-portal-quicknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
}

.admin-portal-quicknav__link {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-portal-quicknav__link:hover {
  background: var(--panel);
  color: var(--highlight-hover);
}

.admin-portal-quicknav__link--custom {
  border-style: dashed;
}

.admin-portal-quicknav--replaced {
  display: none !important;
}

.admin-portal-category-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.admin-portal-category-label {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.admin-portal-category-select {
  min-width: min(100%, 22rem);
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border-radius: var(--radius-ui);
  border: 1px solid var(--border);
  background: var(--panel);
  color: inherit;
}

.admin-portal-category-hint {
  flex: 1 1 100%;
  margin: 0;
}

.admin-portal-cat-panel.is-admin-portal-cat-suppressed {
  display: none !important;
}

.admin-portal-layout-editor .admin-layout-toggles {
  margin-top: 0.75rem;
}

.admin-layout-subhead {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
}

.admin-layout-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.admin-layout-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.admin-layout-inline-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.admin-layout-fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem 0.75rem;
  margin-top: 0.5rem;
}

.admin-layout-legend {
  padding: 0 0.35rem;
  font-size: 0.9rem;
}

.admin-layout-pill-toggles .admin-layout-check-grid {
  margin-top: 0.35rem;
}

.public-site-editor-table input[type="text"] {
  min-width: 6.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.public-site-editor-table input.pub-tile-aria {
  min-width: 9rem;
}

.stats-import-preview-wrap .stats-import-warn {
  color: var(--warning, #e6b35a);
}

/* Home carousel admin */
.home-carousel-msg {
  margin: 0.5rem 0;
  min-height: 1.25em;
}

.home-carousel-msg.success {
  color: var(--success, #6bc96b);
}

.home-carousel-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
  margin-top: 0.75rem;
}

.home-carousel-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.home-carousel-panels label {
  margin-top: 0.25rem;
}

.home-carousel-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.home-carousel-table {
  width: 100%;
  border-collapse: collapse;
}

.home-carousel-table th,
.home-carousel-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  vertical-align: middle;
}

.admin-credentials-table {
  min-width: 720px;
}

.admin-credentials-table .acc-season-cell {
  min-width: 11rem;
  max-width: 18rem;
  vertical-align: top;
}

.acc-season-grid {
  margin-top: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-credentials-add-seasons-host .acc-season-grid {
  max-height: 180px;
}

.acc-season-line {
  font-size: 0.85rem;
}

.home-carousel-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #111;
}

.home-carousel-preview-cell {
  width: 88px;
}

.home-carousel-actions {
  white-space: nowrap;
}

.home-carousel-rowbtn {
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
}

.home-carousel-rowbtn:hover:not(:disabled) {
  background: var(--panel);
}

.home-carousel-rowbtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Home: one link wraps the whole tile (title only) */
.home-tiles .home-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.5rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-tiles .home-tile:hover,
.home-tiles .home-tile:focus-visible {
  border-color: var(--highlight-dim);
  background: var(--panel-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.home-tiles .home-tile:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.home-tiles .home-tile h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

body.home .home-tiles .home-tile {
  text-align: center;
  align-items: center;
}

.ox-intro-next-games-list {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.ox-intro-next-games-list li {
  margin: 0.25rem 0;
}

.ox-intro-admin-preview {
  display: block;
  width: 100%;
  max-width: 640px;
  max-height: 360px;
  margin-top: 0.75rem;
  border-radius: var(--radius-ui);
  background: #000;
}

/* Home: this week’s games promo (poster-style, above league news) */
body.home .home-week-games-promo {
  margin-top: clamp(20px, 4vw, 32px);
  padding: 0;
  overflow: hidden;
}

.home-week-games-head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.home-week-games-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.home-week-games-sub {
  margin: 0;
  font-size: 0.9rem;
}

.home-week-games-carousel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 16px 12px 18px;
  background: linear-gradient(165deg, rgba(0, 71, 171, 0.12) 0%, #0a0a0a 45%, #050505 100%);
}

.home-week-games-arrow {
  flex-shrink: 0;
  align-self: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.home-week-games-arrow:hover:not(:disabled) {
  border-color: var(--highlight-dim);
  background: var(--panel);
}

.home-week-games-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-week-games-arrow:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.home-week-games-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.home-week-games-track {
  display: flex;
  flex-direction: row;
  gap: 14px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.home-week-game-slide {
  flex-shrink: 0;
  box-sizing: border-box;
}

.home-week-game-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  height: 100%;
}

.home-week-game-poster {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0, 71, 171, 0.25), transparent 55%),
    linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
  box-shadow: var(--shadow-card);
  padding: 16px 14px;
  text-align: center;
}

.home-week-game-match {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-week-game-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1 1 88px;
  min-width: 72px;
}

.home-week-game-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px;
}

.home-week-game-logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--muted);
}

.home-week-game-team {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 110px;
}

.home-week-game-vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--highlight-hover);
  flex: 0 0 auto;
}

.home-week-game-when {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.home-week-game-venue {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.home-week-game-tickets {
  width: 100%;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
}

.home-week-games-foot {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

@media (max-width: 520px) {
  .home-week-games-carousel {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }

  .home-week-games-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
}

.ticket-game-banner {
  margin-bottom: 1rem;
  padding: 14px 16px;
}

.ticket-game-banner-inner {
  margin: 0;
}

/* Home: league news carousel (under site tiles) */
body.home .home-news-carousel {
  margin-top: clamp(20px, 4vw, 32px);
  padding: 0;
  overflow: hidden;
}

body.home .home-placement-showcase {
  margin-top: clamp(20px, 4vw, 32px);
}

.home-news-carousel-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.home-news-carousel-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.home-news-carousel-viewport {
  overflow: hidden;
  width: 100%;
  background: #0a0a0a;
}

.home-news-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s ease;
}

.home-news-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.home-news-carousel-slide-link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.home-news-carousel-slide-link:hover .home-news-carousel-readmore,
.home-news-carousel-slide-link:focus-visible .home-news-carousel-readmore {
  color: var(--highlight, #6eb3ff);
}

.home-news-carousel-slide-link:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: -2px;
}

.home-news-carousel-media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 420px);
  background: #050505;
}

.home-news-carousel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news-carousel-caption {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
}

.home-news-carousel-slide-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.home-news-carousel-readmore {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-news-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel-alt);
}

.home-news-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-news-carousel-dot:hover {
  opacity: 0.9;
}

.home-news-carousel-dot.is-active {
  opacity: 1;
  background: var(--text);
  transform: scale(1.15);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}

th {
  background: var(--panel-alt);
}

form {
  display: grid;
  gap: 10px;
}

input,
select,
button,
textarea {
  width: 100%;
  background: #111111;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

button {
  cursor: pointer;
  background: #1f1f1f;
  font-weight: 700;
}

button:hover {
  border-color: var(--highlight-dim);
}

/* Form styles set button { width: 100% }; header menu control must stay a compact hit target */
header .nav-toggle {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  display: inline-flex;
}

.pill {
  display: inline-block;
  border: 1px solid var(--border-subtle);
  background: var(--panel-alt);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.success {
  color: var(--success);
}

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

.gallery-item {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
}

.gallery-placeholder {
  height: 160px;
  background: linear-gradient(135deg, #1a1a1a, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e5e5;
  font-weight: 700;
}

.gallery-item-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  vertical-align: middle;
}

.gallery-item-caption {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.gallery-admin-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
}

.gallery-admin-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 54px;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-admin-row-actions {
  white-space: nowrap;
}

.gallery-admin-row-actions .home-carousel-rowbtn {
  margin: 0 0.25rem 0.25rem 0;
}

.gallery-admin-reorder .home-carousel-rowbtn {
  min-width: 2.25rem;
  margin: 0 0.15rem 0.15rem 0;
}

.totals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* —— League news ticker (under header, sticky below nav; marquee of all headlines) —— */
.news-ticker-bar {
  position: sticky;
  /* Sit below sticky header (nav + padding + 44px min toggle target) */
  top: 4.5rem;
  z-index: 90;
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
}

.news-ticker-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.news-ticker-tag {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--highlight);
}

.news-ticker-marquee-clip {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.news-ticker-track {
  display: flex;
  width: max-content;
  animation: news-ticker-marquee linear infinite;
  will-change: transform;
}

.news-ticker-bar--paused .news-ticker-track {
  animation-play-state: paused;
}

.news-ticker-segment {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  padding-right: 4rem;
}

.news-ticker-marquee-link {
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

.news-ticker-marquee-link:hover {
  color: var(--highlight-hover);
}

.news-ticker-sep {
  flex-shrink: 0;
  color: #666666;
  user-select: none;
}

.news-ticker-pause {
  flex: 0 0 auto;
  width: auto;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

@keyframes news-ticker-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: 100% !important;
    row-gap: 6px;
  }

  .news-ticker-marquee-clip {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .news-ticker-segment {
    padding-right: 1rem;
  }
}

.news-archive {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.news-archive-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.news-archive-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.news-archive-time {
  font-size: 0.85rem;
  color: var(--muted);
}

.news-archive-body {
  margin-top: 14px;
  line-height: 1.55;
}

.news-archive-body p {
  margin: 0 0 12px;
}

.news-archive-body p:last-child {
  margin-bottom: 0;
}

.news-article-list {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.news-article-foot {
  color: var(--muted);
  font-size: 0.95rem;
}

.news-admin-subhead {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.news-admin-subhead:first-of-type {
  margin-top: 0.75rem;
}

.news-admin-hint {
  margin-bottom: 0.35rem !important;
}

.news-blog-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.news-blog-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.news-blog-form label small {
  font-weight: 400;
  color: var(--muted);
}

.news-blog-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.news-blog-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.news-admin-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.news-admin-item small {
  color: var(--muted);
  font-weight: 400;
}

.news-admin-item-text {
  flex: 1 1 auto;
  min-width: 0;
}

.news-admin-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.news-admin-edit,
.news-admin-remove {
  width: auto;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.news-edit-panel {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-alt);
}

.news-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.news-edit-cancel {
  width: auto;
  padding: 10px 16px;
  background: var(--panel);
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border-subtle);
  background: #000000;
  text-align: center;
  color: var(--muted);
  padding: 22px 16px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.player-profile-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.player-profile-link:hover {
  color: var(--highlight-hover);
}

h3 .team-roster-title-link {
  color: inherit;
  font-weight: inherit;
}

.player-game-log-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.player-game-log-table th,
.player-game-log-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.player-game-log-table th {
  background: var(--panel-alt);
  white-space: nowrap;
}

/* ~20 data rows visible; thead stays pinned while scrolling */
.stats-lb-scroll {
  /* Roughly one header row + ~20 body rows; capped by viewport on short screens */
  max-height: min(50rem, 72vh);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.stats-lb-scroll:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.stats-player-leaderboard table {
  width: 100%;
  border-collapse: collapse;
}

.stats-player-leaderboard thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel-alt);
  box-shadow: 0 1px 0 var(--border);
  white-space: nowrap;
}

.stats-player-leaderboard .stats-lb-rank {
  font-weight: 700;
  width: 2.5rem;
}

.stats-player-leaderboard .stats-lb-rank-1 { color: #e8c547; }
.stats-player-leaderboard .stats-lb-rank-2 { color: #c0c0c0; }
.stats-player-leaderboard .stats-lb-rank-3 { color: #cd7f32; }

.stats-lb-avatar-cell {
  width: 2.75rem;
  padding: 6px 8px;
  vertical-align: middle;
  text-align: center;
}

/* Stats page — auto top-3 leaders by category */
.stats-top-three-heading {
  margin-top: 0;
}

.stats-top-three-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.stats-top-three-card {
  margin: 0;
  padding: 14px 16px;
}

.stats-top-three-card-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stats-top-three-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-top-three-item {
  display: grid;
  grid-template-columns: 1.75rem 2.5rem 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.stats-top-three-rank {
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.stats-top-three-rank.stats-lb-rank-1 {
  color: #e8c547;
}
.stats-top-three-rank.stats-lb-rank-2 {
  color: #c0c0c0;
}
.stats-top-three-rank.stats-lb-rank-3 {
  color: #cd7f32;
}

.stats-top-three-av {
  display: flex;
  justify-content: center;
}

.stats-top-three-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stats-top-three-team {
  font-size: 0.78rem;
  color: var(--muted);
}

.stats-top-three-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stats-top-three-empty {
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 4px 0;
}

.stats-visual-mode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.stats-visual-mode-btn {
  width: auto;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--muted);
}

.stats-visual-mode-btn:hover {
  border-color: var(--highlight-dim);
  color: var(--text);
}

.stats-visual-mode-btn.is-active {
  background: var(--text);
  color: var(--bg, #0a0a0a);
  border-color: var(--text);
}

.stats-per-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.stats-per-chart-row {
  display: grid;
  grid-template-columns: 2rem 2.5rem minmax(0, 1fr) minmax(120px, 2.5fr) 2.75rem;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .stats-per-chart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .stats-per-chart-bar-track {
    flex: 1 1 100%;
    min-width: 100%;
    order: 5;
  }

  .stats-per-chart-num {
    margin-left: auto;
  }
}

.stats-per-chart-rank {
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.stats-per-chart-av {
  display: flex;
  justify-content: center;
}

.stats-per-chart-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stats-per-chart-team {
  font-size: 0.78rem;
  color: var(--muted);
}

.stats-per-chart-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.stats-per-chart-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--highlight-dim, #6b8cff), var(--highlight, #8fb3ff));
  min-width: 4px;
  transition: width 0.35s ease;
}

.stats-per-chart-num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.player-profile-rating-pill strong {
  font-weight: 800;
  color: var(--highlight, #a8c4ff);
}

.team-logo-wrap {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.team-logo-wrap--sm {
  width: 36px;
  height: 36px;
}

.team-logo-wrap--md {
  width: 52px;
  height: 52px;
}

.team-logo-wrap--lg {
  width: 80px;
  height: 80px;
}

.team-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}

.team-logo-wrap--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo-ph {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.45;
}

.athlete-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-sizing: border-box;
  vertical-align: middle;
}

.athlete-avatar--sm {
  width: 32px;
  height: 32px;
}

.athlete-avatar--md {
  width: 44px;
  height: 44px;
}

.athlete-avatar--lg {
  width: 96px;
  height: 96px;
}

.athlete-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.athlete-avatar--empty {
  background: rgba(255, 255, 255, 0.08);
}

.athlete-avatar-ph {
  font-size: 0.85em;
  font-weight: 700;
  opacity: 0.65;
  line-height: 1;
}

.athlete-avatar--lg .athlete-avatar-ph {
  font-size: 1.75rem;
}

.team-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.team-card-header-text h3 {
  margin: 0 0 0.25rem;
}

/* Teams & rosters page: even grid, aligned cards, single table frame per roster */
#teams-root.grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.team-roster-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1rem 1rem 0.875rem;
}

.team-roster-card .team-card-header {
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.team-roster-card .team-card-header-text {
  min-width: 0;
  flex: 1;
}

.team-roster-card .team-card-header-text .pill {
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.teams-roster-table-wrap {
  flex: 1;
  margin-top: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.teams-roster-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.875rem;
  table-layout: fixed;
}

.teams-roster-table th,
.teams-roster-table td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.teams-roster-table thead th {
  background: var(--panel-alt);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.teams-roster-table tbody tr:last-child td {
  border-bottom: none;
}

.teams-roster-table .teams-roster-th-photo,
.teams-roster-table .roster-avatar-cell {
  width: 3rem;
  padding-left: 0.65rem;
  padding-right: 0.35rem;
  text-align: center;
}

.teams-roster-table th:nth-child(2),
.teams-roster-table td:nth-child(2) {
  width: 44%;
}

.teams-roster-table th:nth-child(3),
.teams-roster-table td:nth-child(3) {
  width: 24%;
}

.teams-roster-table th:nth-child(4),
.teams-roster-table td:nth-child(4) {
  width: 20%;
}

.teams-roster-table .teams-roster-cell-player {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.teams-roster-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1.15rem 0.75rem !important;
}

.team-season-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.player-profile-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.player-profile-hero-text h1 {
  margin: 0 0 0.35rem;
}

.player-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.roster-avatar-cell {
  width: 3rem;
  text-align: center;
  vertical-align: middle;
}

.branding-logo-preview {
  margin-top: 0.75rem;
}

.branding-team-label {
  display: block;
  margin-top: 0.5rem;
}

.branding-team-label select {
  margin-left: 0.35rem;
  min-width: 12rem;
}

.branding-url-input {
  min-width: 10rem;
  max-width: 100%;
  width: 14rem;
}

.branding-clear-label {
  font-size: 0.9rem;
  white-space: nowrap;
}

.stats-final-scores-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-final-scores-table th,
.stats-final-scores-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.stats-final-scores-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.stats-final-score-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stats-final-score-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.stats-final-score-sep {
  color: var(--muted);
  font-weight: 400;
}

.stats-final-winner {
  color: #e8c547;
  font-weight: 700;
}

.schedule-admin-score-lock-wrap {
  display: block;
  margin: 8px 0 4px;
}

.schedule-admin-lock-label {
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.teams-admin-trade-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.teams-admin-trade-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.teams-admin-trade-summary {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.teams-admin-trade-form label {
  display: block;
  max-width: 320px;
}

.teams-admin-trade-form .home-carousel-form-actions {
  margin-top: 0.75rem;
}

#teams-admin-players-body button[data-pl-trade] {
  margin-left: 0.35rem;
}

.final-scores-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.final-scores-admin-table th,
.final-scores-admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.final-scores-admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.final-scores-admin-table input[type="number"] {
  width: 4.5rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font: inherit;
}

.final-scores-admin-vs {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0.25em;
}

.fsa-lock-label {
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.ps-player-autowrap {
  position: relative;
  display: block;
  margin: 0.5rem 0;
}

.ps-player-autowrap .autocomplete-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

button.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

button.link-button:hover {
  color: var(--muted);
}

.news-potw-autowrap {
  position: relative;
}

.news-potw-autowrap .autocomplete-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.autocomplete-suggestions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.autocomplete-suggestions .autocomplete-item {
  text-align: left;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.autocomplete-suggestions .autocomplete-item:hover {
  background: var(--panel);
}

.autocomplete-suggestions .autocomplete-item small {
  color: var(--muted);
}

#athlete-signup-form input,
#athlete-signup-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

#athlete-signup-form textarea {
  min-height: 72px;
  resize: vertical;
}

.watch-section h2 {
  margin-top: 0;
}

.watch-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .watch-layout {
    grid-template-columns: 1fr minmax(240px, 300px);
  }
}

.watch-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000000;
}

.watch-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-embed-wrap--live {
  max-width: 100%;
}

.watch-live-placeholder-wrap {
  background: #0d1117;
}

.watch-live-placeholder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.watch-player-column {
  min-width: 0;
}

.watch-video-title {
  font-weight: 600;
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.watch-youtube-fallback {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.watch-youtube-fallback-note {
  color: var(--muted);
}

.watch-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-pick-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  line-height: 1.35;
}

.watch-pick-btn:hover {
  background: var(--panel);
}

.watch-pick-btn.is-active {
  border-color: var(--text);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--text);
}

/* Fan tickets (public + admin) */
.fan-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}

.fan-ticket-form label,
.fan-ticket-pay-fieldset label {
  display: block;
  font-size: 0.95rem;
}

.fan-ticket-form input[type="email"],
.fan-ticket-form input[type="text"],
.fan-ticket-form input[type="tel"],
.fan-ticket-form input[type="number"],
.fan-ticket-form input[type="date"],
.fan-ticket-form input[type="file"] {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.fan-ticket-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  min-height: 4.5rem;
  resize: vertical;
}

.athlete-signup-form {
  max-width: none;
}

.athlete-signup-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.athlete-signup-film-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 0;
}

.athlete-signup-film-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
}

.athlete-signup-film-hint {
  margin: 0 0 10px;
}

.athlete-signup-payment-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.fan-ticket-pay-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 0;
}

.fan-ticket-pay-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
}

.fan-ticket-pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  cursor: pointer;
}

.fan-ticket-submit {
  align-self: flex-start;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--accent);
  color: #000000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.fan-ticket-submit:hover {
  filter: brightness(0.95);
}

.ticket-qr-host {
  margin: 12px 0;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  display: inline-block;
}

.ticket-qr-img {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.ticket-qr-actions {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ticket-qr-download-note {
  margin: 0;
  max-width: 36rem;
}

.ticket-qr-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.ticket-confirm-line {
  margin: 6px 0;
  font-size: 0.95rem;
}

.ticket-payment-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.ticket-pay-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.ticket-pay-btn:hover {
  background: var(--panel);
}

.ticket-verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.ticket-verify-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.ticket-scan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.fan-ticket-scanner-region {
  min-width: 200px;
  max-width: 320px;
  min-height: 200px;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000000;
}

.ticket-verify-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
}

.ticket-verify-card p {
  margin: 6px 0;
}

.ticket-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ticket-square-embed {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.ticket-square-card-container {
  min-height: 90px;
  margin: 10px 0;
}

.ticket-square-pay-errors {
  color: #f5a5a5;
  font-size: 0.95rem;
  margin: 8px 0;
  min-height: 1.2em;
}

.ticket-square-sdk-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

/* Store — product picks with image / placeholder */
.store-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.store-product-card-wrap {
  padding: 0;
  overflow: hidden;
}

.store-product-card-wrap .store-product-label {
  padding: 1rem 1rem 0;
  display: block;
}

.store-product-square-wrap {
  padding: 0 1rem 1rem;
}

.store-product-label {
  cursor: pointer;
  margin: 0;
  text-align: left;
}

.store-product-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
}

.store-product-thumb {
  flex: 0 0 100px;
  width: 100px;
  min-height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-product-thumb-placeholder {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px;
}

.store-product-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.store-product-square-link {
  display: inline-block;
  font-size: 0.9rem;
}

.store-product-body input[type="checkbox"] {
  margin-right: 6px;
}

.store-admin-thumb-cell {
  width: 56px;
  vertical-align: middle;
}

.store-admin-product-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

.store-admin-thumb-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Overseas placement page —— */
.placement-main {
  max-width: 820px;
}

.placement-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.placement-lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.placement-combine-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .placement-combine-banner-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }

  .placement-combine-cta-wrap {
    flex: 0 0 auto;
    max-width: 260px;
    text-align: right;
  }

  .placement-combine-hint {
    text-align: right;
  }
}

.placement-combine-date {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--highlight);
  margin: 0.35rem 0 0.75rem;
}

.placement-combine-note {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.placement-combine-note strong {
  color: var(--text);
}

.placement-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--highlight);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.placement-cta:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.placement-cta--secondary {
  background: transparent;
  color: var(--highlight-hover);
  border-color: var(--highlight-dim);
}

.placement-cta--secondary:hover {
  color: var(--highlight-hover);
  background: var(--highlight-soft);
}

.placement-combine-hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.placement-columns {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .placement-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.placement-column h2,
.placement-international h2,
.placement-phoenix-media h2,
.placement-journey h2,
.placement-closer h2,
/* Overseas placement — transfer portal carousel */
.placement-showcase-section {
  margin-top: 0;
}

.placement-showcase-head {
  margin-bottom: 1rem;
}

.placement-showcase-head h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.placement-showcase-deck {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52rem;
}

.placement-showcase-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
}

.placement-showcase-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.placement-showcase-arrow:hover {
  border-color: var(--highlight-dim);
  background: var(--panel);
}

.placement-showcase-arrow:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.placement-showcase-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.placement-showcase-viewport::-webkit-scrollbar {
  height: 6px;
}

.placement-showcase-viewport::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.placement-showcase-track {
  display: flex;
  gap: 14px;
  padding: 4px 2px 10px;
}

.placement-showcase-card {
  flex: 0 0 calc(25% - 11px);
  max-width: calc(25% - 11px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel-alt);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.placement-showcase-card:hover,
.placement-showcase-card:focus-visible {
  border-color: var(--highlight-dim);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.placement-showcase-card:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.placement-showcase-flip {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0a0a0a;
  overflow: hidden;
}

.placement-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.placement-showcase-img--overseas {
  opacity: 0;
}

.placement-showcase-card:not([data-showcase-single]):hover .placement-showcase-img--overseas,
.placement-showcase-card:not([data-showcase-single]):focus-visible .placement-showcase-img--overseas {
  opacity: 1;
}

.placement-showcase-card:not([data-showcase-single]):hover .placement-showcase-img--primary,
.placement-showcase-card:not([data-showcase-single]):focus-visible .placement-showcase-img--primary {
  opacity: 0;
}

.placement-showcase-card-meta {
  padding: 12px 14px 14px;
}

.placement-showcase-card-name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.placement-showcase-card-sub {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.placement-showcase-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--highlight-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .placement-showcase-card {
    flex-basis: calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
}

@media (max-width: 720px) {
  .placement-showcase-card {
    flex-basis: calc(50% - 7px);
    max-width: calc(50% - 7px);
  }
}

@media (max-width: 440px) {
  .placement-showcase-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .placement-showcase-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* Overseas showcase athlete profile page */
.placement-showcase-player-back {
  margin: 0 0 12px;
}

.placement-showcase-player {
  padding: 20px 22px 24px;
}

.placement-showcase-player h1 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.placement-showcase-player-sub {
  margin: -4px 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.placement-showcase-player-bio {
  margin: 0 0 1.25rem;
  line-height: 1.65;
  color: var(--text);
}

.placement-showcase-player h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.placement-showcase-player-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.placement-showcase-player-links a {
  word-break: break-word;
}

.overseas-admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #111;
}

.placement-chat-hint h2 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: 0;
}

.placement-phoenix-media-intro {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  color: var(--muted);
}

.placement-eurobasket-cta {
  margin: 0 0 1.25rem;
}

.placement-video-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placement-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.placement-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.placement-video-list-label {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.placement-video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.placement-video-pick {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  cursor: pointer;
  line-height: 1.25;
}

.placement-video-pick:hover {
  border-color: var(--highlight-dim);
  color: var(--highlight-hover);
}

.placement-video-pick.is-active {
  border-color: var(--highlight);
  background: var(--highlight-soft);
  color: var(--highlight-hover);
}

.placement-video-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.placement-column p,
.placement-international-intro,
.placement-disclaimer {
  line-height: 1.65;
  color: var(--muted);
}

.placement-column p strong,
.placement-international-intro strong,
.placement-disclaimer strong {
  color: var(--text);
}

.placement-flag-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}

.placement-flag-name {
  font-weight: 700;
  color: var(--highlight-hover);
}

.placement-journey-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.75;
  color: var(--muted);
}

.placement-journey-steps li {
  margin-bottom: 0.85rem;
}

.placement-journey-steps strong {
  color: var(--text);
}

.placement-closer-cta {
  margin: 1.25rem 0 0;
}

.placement-closer-cta--row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.placement-chat-hint p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.season4-reg-page-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.season4-reg-page-card {
  margin-top: 0.5rem;
}

body.season4-page .season4-reg-page-card {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.placement-season4-reg-card h1,
.placement-season4-reg-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.placement-season4-reg-intro p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.placement-season4-reg-intro p:last-child {
  margin-bottom: 0;
}

.placement-season4-reg-fieldset {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-ui);
  padding: 12px 14px;
  margin: 0 0 1rem;
}

.placement-season4-reg-legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.placement-season4-reg-radio {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.placement-season4-reg-form input[type="file"] {
  max-width: 100%;
}

.placement-season4-reg-success {
  margin-top: 0.75rem;
}

.season4-reg-backup-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.88rem;
}

.season4-reg-backup-item {
  margin: 0.5rem 0;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-ui);
  background: var(--bg-elevated);
}

.placement-overseas-form-card h2,
.placement-overseas-pay-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.placement-overseas-form {
  max-width: none;
  margin-top: 12px;
}

.placement-field-hint {
  margin: -6px 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.placement-overseas-pay-actions {
  margin-top: 1rem;
}

.placement-overseas-pay-card .placement-cta {
  display: inline-block;
}

/* Floating placement assistant */
.placement-chat-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  font-family: var(--font-body);
}

.placement-chat-launcher {
  width: auto;
  max-width: min(100vw - 32px, 320px);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--highlight-dim);
  background: var(--highlight);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.placement-chat-launcher:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.placement-chat-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(100vw - 32px, 380px);
  max-height: min(72vh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.placement-chat-panel[hidden] {
  display: none !important;
}

.placement-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}

.placement-chat-header h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: capitalize;
}

.placement-chat-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.placement-chat-sub {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.placement-chat-messages {
  flex: 1;
  min-height: 200px;
  max-height: min(36vh, 300px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.22);
  scroll-behavior: smooth;
}

.placement-chat-bubble {
  max-width: min(88%, 288px);
  padding: 10px 13px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.placement-chat-bubble--user {
  margin-left: auto;
  margin-right: 0;
  background: var(--highlight);
  border: 1px solid transparent;
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.placement-chat-bubble--assistant {
  margin-right: auto;
  margin-left: 0;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px 16px 16px 4px;
}

.placement-chat-error {
  min-height: 0;
  padding: 0 14px;
  font-size: 0.82rem;
  color: #f87171;
}

.placement-chat-form {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: var(--panel-alt);
}

.placement-chat-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.placement-chat-form textarea {
  flex: 1;
  min-width: 0;
  height: 5.5rem;
  min-height: 5.5rem;
  max-height: 5.5rem;
  resize: none;
  overflow-y: auto;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  font-family: var(--font-body);
}

.placement-chat-form textarea:focus {
  outline: 2px solid var(--highlight-dim);
  outline-offset: 0;
}

.placement-chat-send-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--highlight);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.placement-chat-send-icon:hover:not(:disabled) {
  filter: brightness(1.08);
}

.placement-chat-send-icon:active:not(:disabled) {
  transform: scale(0.96);
}

.placement-chat-send-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.placement-chat-send-icon svg {
  display: block;
}

.placement-chat-send {
  margin: 0;
  background: var(--highlight);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.placement-chat-send--full {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
}

.placement-chat-send:hover {
  filter: brightness(1.06);
}

.placement-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.placement-chat-zoom-wrap {
  padding: 10px 14px 0;
  border-top: 1px solid var(--border-subtle);
}

.placement-chat-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--highlight);
  color: var(--highlight);
  background: transparent;
}

.placement-chat-zoom:hover {
  background: rgba(255, 255, 255, 0.06);
}

.placement-chat-zoom-note {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.placement-zoom-actions {
  margin: 0;
}

.placement-zoom-schedule-card .placement-zoom-placeholder {
  display: block;
  margin: 0;
}

.placement-wizard-controls {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel-alt);
  flex-shrink: 0;
}

.placement-wizard-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.placement-wizard-composer-row--end {
  justify-content: flex-end;
  margin-top: 8px;
}

.placement-wizard-input--composer {
  flex: 1;
  min-width: 0;
}

.placement-wizard-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--muted);
}

.placement-wizard-input,
.placement-wizard-textarea,
.placement-wizard-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.92rem;
}

.placement-wizard-textarea {
  height: 7.5rem;
  min-height: 7.5rem;
  max-height: 7.5rem;
  resize: none;
  overflow-y: auto;
  line-height: 1.45;
}

.placement-wizard-file {
  font-size: 0.85rem;
}

.placement-wizard-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}

.placement-wizard-legend {
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.placement-wizard-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.88rem;
  cursor: pointer;
}

.placement-wizard-nested {
  margin-top: 8px;
}

.placement-wizard-nested[hidden] {
  display: none !important;
}

.placement-wizard-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.placement-wizard-actions--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.placement-wizard-next,
.placement-wizard-submit {
  margin-top: 4px;
}

.placement-wizard-review {
  margin: 0 0 8px;
  font-size: 0.82rem;
  display: grid;
  grid-template-columns: minmax(5rem, 38%) 1fr;
  gap: 6px 12px;
}

.placement-wizard-review dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.placement-wizard-review dd {
  margin: 0;
  word-break: break-word;
}

.placement-wizard-skip {
  font-size: 0.88rem;
}

.placement-chat-form[hidden] {
  display: none !important;
}

.placement-chat-footnote {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Multi-season (admin bar, public banner, past seasons page) —— */
.ox-season-admin-bar-host {
  margin-bottom: 1rem;
}

.ox-season-bar {
  margin: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border-subtle);
}

.ox-season-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ox-season-bar-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.ox-season-bar-select {
  max-width: 28rem;
  padding: 8px 10px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.ox-season-bar-hint {
  margin: 0;
  font-size: 0.82rem;
}

.ox-public-season-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--highlight-soft), var(--panel));
  border-bottom: 1px solid var(--highlight-dim);
  padding: 10px 16px;
}

.ox-public-season-banner-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.9rem;
}

.ox-public-season-banner-link {
  font-weight: 600;
  color: var(--highlight-hover);
}

.past-seasons-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.past-seasons-item {
  margin: 0;
  padding: 16px 18px;
}

.past-seasons-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.past-seasons-actions {
  margin: 0;
}

.past-seasons-clear {
  margin-top: 1.5rem;
}

.season-start-fieldset {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-ui);
  padding: 12px 14px;
  margin: 12px 0;
}

.season-start-legend {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.season-radio-label {
  display: block;
  margin: 6px 0;
  font-weight: 500;
  cursor: pointer;
}

.season-copy-wrap {
  display: block;
  margin-top: 10px;
}

.season-copy-wrap select {
  display: block;
  margin-top: 6px;
  max-width: 28rem;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.seasons-subheading {
  margin: 1.25rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.season-default-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.season-default-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.season-default-row select {
  min-width: 14rem;
  padding: 8px 10px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.season-name-cell {
  vertical-align: middle;
}

.season-name-cell .season-name-text {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.season-name-cell .home-carousel-rowbtn {
  vertical-align: middle;
}

.season-rename-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.season-rename-input {
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 22rem;
  padding: 8px 10px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.admin-submissions-portal h3 {
  margin-top: 0;
}

.admin-submissions-subhead {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.admin-submissions-portal .admin-submission-card {
  margin-top: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-ui);
  padding: 0 0.75rem;
  background: var(--bg-elevated);
}

.admin-submissions-portal .admin-submission-card summary {
  cursor: pointer;
  padding: 0.65rem 0;
  font-weight: 600;
}

.admin-submission-body {
  padding: 0 0 0.75rem;
  font-size: 0.95rem;
}

.admin-submission-body p {
  margin: 0.35rem 0;
}

.admin-submission-links {
  margin: 0.25rem 0 0.5rem 1.25rem;
  padding: 0;
}

.admin-submission-pre {
  white-space: pre-wrap;
  margin: 0.25rem 0 0.5rem;
}
