/* === Overtime: World Cup — FIFA 20-inspired design system === */

:root {
  /* Concrete + mural backdrop */
  --ot-bg: #E8E6E1;
  --ot-bg-deep: #D9D6CF;
  --ot-surface: #FFFFFF;
  --ot-surface-raised: #FFFFFF;
  --ot-border: rgba(15, 23, 42, 0.08);
  --ot-border-strong: rgba(15, 23, 42, 0.16);

  /* Ink */
  --ot-ink: #0F172A;
  --ot-ink-muted: #475569;
  --ot-ink-subtle: #94A3B8;

  /* Brand reds — sampled from splash-16-9.png (#E93C54) */
  --ot-red: #E93C54;
  --ot-red-deep: #C72A40;
  --ot-red-soft: #FFE0E6;

  /* Accent neutrals */
  --ot-slate: #1F2937;
  --ot-slate-2: #374151;

  /* Position colors (FIFA convention) */
  --pos-gk: #FF9500;
  --pos-def: #FACC15;
  --pos-mid: #22C55E;
  --pos-att: #3B82F6;

  /* Shadow */
  --ot-shadow-card: 0 1px 0 rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.06);
  --ot-shadow-raised: 0 2px 0 rgba(15, 23, 42, 0.06), 0 20px 40px rgba(15, 23, 42, 0.10);

  /* Type */
  --font-display: "Oswald", "Bebas Neue", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ot-ink);
  background: var(--ot-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* === Backdrop: concrete + mural splashes === */

.ot-concrete {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 255, 255, 0.6), transparent 70%),
    repeating-linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.03) 0 1px,
      transparent 1px 6px
    ),
    var(--ot-bg);
}

.ot-mural {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.ot-mural--tl {
  top: -80px; right: -120px;
  width: 520px; height: 380px;
  background:
    linear-gradient(135deg, transparent 40%, var(--ot-red) 40% 55%, transparent 55% 70%, #6D28D9 70% 85%, transparent 85%),
    linear-gradient(45deg, transparent 30%, #14B8A6 30% 45%, transparent 45%);
  filter: blur(0.5px);
  transform: rotate(-8deg);
}
.ot-mural--br {
  bottom: -100px; left: -140px;
  width: 560px; height: 420px;
  background:
    linear-gradient(135deg, transparent 30%, #F59E0B 30% 50%, transparent 50% 60%, #06B6D4 60% 75%, transparent 75%),
    linear-gradient(-45deg, transparent 35%, var(--ot-red) 35% 50%, transparent 50%);
  filter: blur(0.5px);
  transform: rotate(6deg);
}

/* === Topbar === */

.ot-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.ot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ot-brand__logo {
  height: 40px;
  width: auto;
  display: block;
}
.ot-brand__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--ot-red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.ot-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--ot-border);
  padding: 6px;
  border-radius: 4px;
  margin: 0;
}
.ot-tabs.ot-tabs--desktop { display: none; }
@media (min-width: 768px) {
  .ot-topbar { padding: 18px 28px; }
  .ot-brand__logo { height: 44px; }
  .ot-tabs.ot-tabs--desktop { display: flex; }
}
.ot-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  color: var(--ot-ink-muted);
  transition: background 120ms, color 120ms;
  border-radius: 2px;
}
@media (min-width: 768px) {
  .ot-tab { padding: 10px 22px; font-size: 14px; }
}
.ot-tab:hover { color: var(--ot-ink); }
.ot-tab.is-active {
  background: var(--ot-red);
  color: white;
}

.ot-topbar__user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.ot-topbar__user .ot-user-pill,
.ot-topbar__user .ot-btn-ghost,
.ot-topbar__user form { display: none; }
@media (min-width: 768px) {
  .ot-topbar__user .ot-user-pill,
  .ot-topbar__user .ot-btn-ghost,
  .ot-topbar__user form { display: inline-flex; }
}
.ot-user-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: white;
  border: 1px solid var(--ot-border);
  padding: 6px 12px;
  border-radius: 2px;
}
.ot-inline-form { display: inline; }
.ot-btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ot-ink);
  border: 1px solid var(--ot-border-strong);
  box-shadow: 0 1px 0 rgba(15,23,42,0.06);
}
.ot-btn-ghost:hover { background: var(--ot-ink); color: white; border-color: var(--ot-ink); transform: translateY(-1px); }

/* === Buttons (unified sizing so primary + ghost align side-by-side) === */

.ot-btn-primary,
.ot-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  height: 44px;
  padding: 0 20px;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: transform 80ms, box-shadow 80ms, background 120ms, color 120ms, border-color 120ms;
}

.ot-btn-primary {
  background: var(--ot-red);
  color: white;
  border: 0;
  box-shadow: 0 2px 0 var(--ot-red-deep);
}
.ot-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ot-red-deep); }
.ot-btn-primary:active { transform: translateY(1px); box-shadow: 0 0 0 var(--ot-red-deep); }

/* === Main / containers === */

.ot-main {
  position: relative;
  z-index: 2;
  padding: 16px 16px calc(76px + env(safe-area-inset-bottom, 0px));
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .ot-main { padding: 24px 28px 24px; }
}

/* === Mobile bottom tab bar === */

.ot-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ot-border);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
}
.ot-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--ot-ink-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}
.ot-tabbar__item svg { width: 22px; height: 22px; }
.ot-tabbar__item.is-active { color: var(--ot-red); background: rgba(255, 26, 77, 0.08); }
@media (min-width: 768px) {
  .ot-tabbar { display: none; }
}

.ot-page-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 8px 0 24px;
}
.ot-page-heading__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ot-red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
.ot-page-heading__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

/* === Tile grid (FIFA "Customise") === */

.ot-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ot-tile {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--ot-shadow-card);
  transition: transform 120ms, box-shadow 120ms;
  cursor: pointer;
  color: inherit;
}
.ot-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--ot-shadow-raised);
}
.ot-tile.is-active {
  background: var(--ot-red);
  color: white;
}
.ot-tile__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ot-red);
  line-height: 1.05;
}
.ot-tile.is-active .ot-tile__label { color: white; }
.ot-tile__sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
}
.ot-tile.is-active .ot-tile__sub { color: rgba(255,255,255,0.8); }
.ot-tile__icon {
  align-self: flex-end;
  width: 64px; height: 64px;
  opacity: 0.6;
}

/* === Country grid (FIFA Starter Pack) === */

.ot-country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 600px) {
  .ot-country-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
}
.ot-country {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--ot-shadow-card);
  transition: transform 120ms, box-shadow 120ms, background 120ms;
  cursor: pointer;
  text-align: center;
}
@media (min-width: 600px) {
  .ot-country { padding: 18px 14px; gap: 10px; }
}
.ot-country:hover {
  background: var(--ot-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--ot-shadow-raised);
}
.ot-country__flag {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid var(--ot-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  background: white;
}
@media (min-width: 600px) {
  .ot-country__flag { width: 88px; height: 88px; }
}
.ot-country__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
@media (min-width: 600px) {
  .ot-country__name { font-size: 14px; letter-spacing: 0.08em; }
}
.ot-country__formation {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ot-ink-muted);
}
@media (min-width: 600px) {
  .ot-country__formation { font-size: 11px; letter-spacing: 0.18em; }
}
.ot-country:hover .ot-country__formation { color: rgba(255,255,255,0.85); }

/* === Position chip === */

.ot-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 16px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: white;
  text-transform: uppercase;
}
.ot-pos--GK  { background: var(--pos-gk); }
.ot-pos--DEF { background: var(--pos-def); color: #1f1300; }
.ot-pos--MID { background: var(--pos-mid); }
.ot-pos--ATT { background: var(--pos-att); }

.ot-pos-dot {
  width: 8px; height: 8px; border-radius: 999px; display: inline-block;
}
.ot-pos-dot--GK  { background: var(--pos-gk); }
.ot-pos-dot--DEF { background: var(--pos-def); }
.ot-pos-dot--MID { background: var(--pos-mid); }
.ot-pos-dot--ATT { background: var(--pos-att); }

/* === Roster page (Select Arena Player layout) === */

.ot-roster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* Mobile-first markup order: detail comes first (sticky on top), then roster list below. */
@media (min-width: 900px) {
  .ot-roster {
    grid-template-columns: minmax(420px, 1.2fr) minmax(360px, 1fr);
    gap: 18px;
  }
  /* On desktop, swap: roster list on the left, detail on the right (like FIFA "Select Arena Player"). */
  .ot-roster > .ot-roster__list-panel { order: 1; }
  .ot-roster > .ot-pdetail { order: 2; }
}
/* Detail panel: sticky on desktop (plenty of horizontal room next to the
   roster), but on mobile it just sits in normal flow so the roster below
   stays scrollable underneath it. */
.ot-pdetail {
  align-self: start;
  z-index: 3;
}
@media (min-width: 900px) {
  .ot-pdetail {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}
@media (max-width: 899px) {
  .ot-roster__row__club { display: none; }
  .ot-roster__row { grid-template-columns: 42px 38px 1fr; }
  /* Compact the mobile detail card so it doesn't dominate the screen, but keep bio visible. */
  .ot-pdetail__hero { padding: 12px 14px; min-height: 0; }
  .ot-pdetail__name { font-size: 20px; }
  .ot-pdetail__portrait { width: 72px; height: 72px; }
  .ot-pdetail__number { font-size: 54px; bottom: 4px; right: 96px; }
  .ot-pdetail__club { padding: 8px 14px; }
  /* Compact stat list — 2 cols, smaller, hide section title */
  .ot-pdetail__stats { padding: 4px 0 8px; }
  .ot-pdetail__stat-group-title { display: none; }
  .ot-pdetail__stat {
    padding: 5px 14px;
    font-size: 12px;
  }
  .ot-pdetail__stat dt { font-size: 11px; letter-spacing: 0.06em; }
}

.ot-panel {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  box-shadow: var(--ot-shadow-card);
  overflow: hidden;
}
.ot-panel__title {
  background: var(--ot-slate);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ot-roster__list { margin: 0; padding: 0; list-style: none; }
.ot-roster__row {
  display: grid;
  grid-template-columns: 50px 50px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ot-border);
  cursor: pointer;
  font-size: 14px;
  transition: background 80ms;
}
.ot-roster__row:hover { background: rgba(255, 26, 77, 0.06); }
.ot-roster__row.is-active {
  background: var(--ot-red);
  color: white;
}
.ot-roster__row.is-active .ot-pos--DEF { color: white; }
.ot-roster__row__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ot-ink-muted);
}
.ot-roster__row.is-active .ot-roster__row__num { color: rgba(255,255,255,0.9); }
.ot-roster__row__name {
  font-family: var(--font-body);
  font-weight: 600;
}
.ot-roster__row__club {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ot-roster__row.is-active .ot-roster__row__club { color: rgba(255,255,255,0.9); }
.ot-roster__row__club__badge {
  width: 18px; height: 18px; object-fit: contain;
}

/* Player detail (right side) */
.ot-pdetail {
  display: flex;
  flex-direction: column;
}
.ot-pdetail__hero {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  padding: 22px 24px;
  align-items: center;
  border-bottom: 1px solid var(--ot-border);
  position: relative;
  min-height: 180px;
}
.ot-pdetail__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.ot-pdetail__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--ot-ink-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ot-pdetail__number {
  position: absolute;
  right: 160px;
  bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.08);
  pointer-events: none;
}
.ot-pdetail__portrait {
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: 999px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border: 3px solid white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.ot-pdetail__club {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px;
}
.ot-pdetail__club__badge { width: 28px; height: 28px; object-fit: contain; }
.ot-pdetail__club__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tabbed detail panel */
.ot-pdetail__tabs { padding: 0 0 18px; }
.ot-pdetail__tabnav {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--ot-border);
  padding: 0 16px;
  background: rgba(15, 23, 42, 0.02);
}
.ot-pdetail__tabnav button {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 16px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ot-ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms, border-color 120ms;
}
.ot-pdetail__tabnav button:hover { color: var(--ot-ink); }
.ot-pdetail__tabnav button.is-active {
  color: var(--ot-red);
  border-bottom-color: var(--ot-red);
}

/* Stat hero strip (apps / goals / assists / rating) */
.ot-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 1px;
  margin: 14px 16px 16px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ot-border);
}
.ot-stat-block {
  background: var(--ot-surface);
  padding: 12px 6px 10px;
  text-align: center;
}
.ot-stat-block__num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 26px; line-height: 1;
  color: var(--ot-ink);
}
.ot-stat-block__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ot-ink-muted); margin-top: 4px;
}
.ot-stat-block__label .ot-i { vertical-align: baseline; opacity: 0.7; }

/* Generic stat row dd alignment for icon + text */
.ot-pdetail__stat dd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Colored rating chip (5 tiers) */
.ot-rating {
  display: inline-block;
  padding: 2px 10px; border-radius: 4px;
  color: white !important;
  font-size: 24px !important;
}
.ot-rating--elite  { background: #15803D; }  /* ≥ 8.0 — dark green */
.ot-rating--good   { background: #22C55E; }  /* 7.0 – 8.0 — green */
.ot-rating--avg    { background: #EAB308; }  /* 6.0 – 7.0 — yellow */
.ot-rating--weak   { background: #F97316; }  /* 5.0 – 6.0 — orange */
.ot-rating--poor   { background: #DC2626; }  /* < 5.0 — red */
.ot-rating-mini {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px; border-radius: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: white;
}
.ot-rating-mini {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px; border-radius: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: white;
}

.ot-pdetail__stats { padding: 8px 0 18px; }
.ot-pdetail__stat-group-title {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ot-ink-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 24px;
}
.ot-pdetail__stat {
  display: flex; justify-content: space-between;
  padding: 8px 24px;
  border-bottom: 1px solid var(--ot-border);
  font-size: 14px;
}
.ot-pdetail__stat dt {
  color: var(--ot-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ot-pdetail__stat dt .ot-i { opacity: 0.6; }
.ot-pdetail__stat dd { margin: 0; font-weight: 600; }

/* === Team hero (above roster) === */

.ot-team-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 120px;
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  box-shadow: var(--ot-shadow-card);
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  .ot-team-hero { gap: 24px; padding: 24px 28px; margin-bottom: 18px; min-height: 140px; }
}
.ot-team-hero__body { flex: 1; min-width: 0; }
.ot-team-hero__flag {
  width: 64px; height: 44px; object-fit: cover; border-radius: 2px;
  border: 1px solid var(--ot-border); box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
  .ot-team-hero__flag { width: 96px; height: 64px; }
}
.ot-team-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
@media (min-width: 768px) {
  .ot-team-hero__title { font-size: 48px; }
}
.ot-team-hero__sub {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
}
.ot-team-hero__sub strong { color: var(--ot-ink); font-weight: 600; }
.ot-team-hero__cta { margin-left: auto; display: flex; gap: 8px; }

/* Coach inline chip in team hero */
.ot-team-hero__coach { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.ot-team-hero__coach__photo {
  width: 26px; height: 26px; border-radius: 999px;
  object-fit: cover; object-position: center 15%;
  border: 1.5px solid white; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  background: #e5e7eb;
}

/* Toolbar above the team hero (← Teams / ← Players) */
.ot-team-toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* Coach mini-card pinned to the right of the team hero (always visible, no click) */
.ot-coach-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-left: auto;
  background:
    linear-gradient(135deg, rgba(255, 26, 77, 0.06), rgba(15, 23, 42, 0.04)),
    var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  flex-shrink: 0;
  max-width: 320px;
}
.ot-coach-mini__photo-wrap {
  width: 64px; height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 100%);
  display: flex; align-items: flex-end; justify-content: center;
  flex-shrink: 0;
}
.ot-coach-mini__photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
}
.ot-coach-mini__photo--placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  color: var(--ot-ink-muted); width: 100%; height: 100%;
}
.ot-coach-mini__body { min-width: 0; line-height: 1.25; }
.ot-coach-mini__label {
  font-family: var(--font-display);
  font-weight: 600; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ot-red);
}
.ot-coach-mini__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
  text-transform: uppercase; margin: 2px 0;
}
.ot-coach-mini__row { font-size: 12px; color: var(--ot-ink-muted); }
.ot-coach-mini__since {
  font-family: var(--font-display);
  font-weight: 500; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ot-ink-subtle); margin-top: 4px;
}

@media (max-width: 767px) {
  .ot-coach-mini { width: 100%; margin-left: 0; }
}

/* Coach chip block — sits on its own in the team hero, more prominent */
.ot-coach-chip { position: relative; flex-shrink: 0; }
.ot-coach-chip__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--ot-border);
  border-radius: 999px;
  cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  transition: background 120ms, transform 80ms;
}
.ot-coach-chip__btn:hover { background: rgba(15, 23, 42, 0.08); transform: translateY(-1px); }
.ot-coach-chip__photo {
  width: 40px; height: 40px; border-radius: 999px;
  object-fit: cover; object-position: center 15%;
  border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background: #e5e7eb;
}
.ot-coach-chip__photo--placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; color: var(--ot-ink-muted);
}
.ot-coach-chip__meta { display: flex; flex-direction: column; line-height: 1.2; }
.ot-coach-chip__label {
  font-family: var(--font-display);
  font-weight: 500; font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ot-ink-muted);
}
.ot-coach-chip__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ot-ink);
}
.ot-coach-chip__sub {
  font-size: 11px; color: var(--ot-ink-muted);
}
.ot-link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline dotted;
}
.ot-link-btn:hover { color: var(--ot-red); }

.ot-coach-card {
  position: absolute;
  top: calc(100% + 6px); left: 0; z-index: 50;
  min-width: 260px; max-width: 320px;
  background: white; border: 1px solid var(--ot-border);
  border-radius: 6px; padding: 12px;
  box-shadow: var(--ot-shadow-raised);
  display: flex; gap: 12px;
}
.ot-coach-card__photo {
  width: 64px; height: 64px; border-radius: 4px;
  object-fit: cover; object-position: center 15%;
  flex-shrink: 0; background: #e5e7eb;
}
.ot-coach-card__body { flex: 1; min-width: 0; }
.ot-coach-card__name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px;
}
.ot-coach-card__row { margin: 6px 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; font-size: 12px; }
.ot-coach-card__row dt { color: var(--ot-ink-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.ot-coach-card__row dd { margin: 0; font-weight: 500; }
.ot-coach-card__career-title {
  margin-top: 8px; font-family: var(--font-display); font-weight: 600;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ot-ink-muted);
}
.ot-coach-card__career { list-style: none; padding: 0; margin: 4px 0 0; font-size: 12px; }
.ot-coach-card__career li { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dotted var(--ot-border); }
.ot-coach-card__career-team { font-weight: 500; }
.ot-coach-card__career-when { color: var(--ot-ink-muted); font-size: 11px; }

.ot-form { display: inline-flex; align-items: center; gap: 4px; }
.ot-form__dot {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: white;
  letter-spacing: 0;
}
.ot-form__dot--W { background: #22C55E; }
.ot-form__dot--L { background: #EF4444; }
.ot-form__dot--D { background: #94A3B8; }
@media (max-width: 767px) {
  .ot-team-hero__cta { margin-left: 0; flex-basis: 100%; }
}

/* (Keyboard-hint action footer removed.) */

/* === Login === */

.ot-auth-card {
  max-width: 440px;
  margin: 80px auto;
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  padding: 36px 32px;
  box-shadow: var(--ot-shadow-raised);
}
.ot-auth-card h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}
.ot-auth-card p { color: var(--ot-ink-muted); margin: 0 0 24px; }

.ot-field { display: block; margin-bottom: 18px; }
.ot-field__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
  margin-bottom: 6px;
}
.ot-field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--ot-border-strong);
  border-radius: 2px;
  background: white;
  outline: none;
  transition: border-color 80ms;
}
.ot-field__input:focus { border-color: var(--ot-red); }

.ot-banner {
  padding: 12px 14px;
  border-radius: 2px;
  background: var(--ot-red-soft);
  color: var(--ot-red-deep);
  font-size: 14px;
  margin-bottom: 18px;
}

/* === Splash overlay (1s app-open animation) === */

.ot-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: #E93C54;
  opacity: 0;
}
.ot-splash.is-active { display: flex; opacity: 1; animation: ot-splash-in 250ms ease-out; }
.ot-splash.is-fading { animation: ot-splash-out 450ms ease-in forwards; pointer-events: none; }
.ot-splash img {
  width: min(80vw, 480px);
  height: auto;
  object-fit: contain;
  animation: ot-splash-pulse 1.1s ease-out;
}
@media (max-width: 767px) {
  .ot-splash img { width: 88vw; max-height: 70vh; }
}
@keyframes ot-splash-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ot-splash-out {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}
@keyframes ot-splash-pulse {
  0%   { transform: scale(0.92); opacity: 0; }
  18%  { transform: scale(1.00); opacity: 1; }
  90%  { transform: scale(1.00); opacity: 1; }
  100% { transform: scale(1.04); opacity: 0.9; }
}

/* === Home (single-viewport, fills available space) === */

.ot-home {
  /* Fill remaining viewport so home is single-screen.
     Mobile: viewport − topbar(~64) − bottom tabbar(~70) − main padding(~32) ≈ 166px */
  --ot-home-available: calc(100svh - 170px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  height: var(--ot-home-available);
  min-height: 0;
}
@media (min-width: 768px) {
  /* Desktop has no bottom tabbar — viewport − topbar(~80) − main padding(~48) */
  .ot-home { --ot-home-available: calc(100svh - 128px); height: var(--ot-home-available); }
}

.ot-home__hero {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--ot-shadow-raised);
  background: #0F172A;
  min-height: 0;
}
.ot-home__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.05) contrast(1.05);
}
.ot-home__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.55) 55%, rgba(15,23,42,0.85) 100%),
    linear-gradient(95deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.10) 55%, transparent 80%);
}
.ot-home__copy {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 22px 20px 22px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  max-width: 760px;
}
.ot-home__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFB3C6;
}
.ot-home__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.ot-home__lede {
  color: rgba(255,255,255,0.92);
  font-size: clamp(13px, 1.4vw, 16px);
  max-width: 52ch;
  margin: 0;
  line-height: 1.45;
}
.ot-home__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ot-btn-ghost--light {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
}
.ot-btn-ghost--light:hover { background: var(--ot-ink); color: white; border-color: var(--ot-ink); }

@media (min-width: 768px) {
  .ot-home__copy { padding: 40px 44px; }
}

.ot-home__menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 768px) {
  .ot-home__menu { grid-template-columns: repeat(4, 1fr); }
}
.ot-home__menu-tile {
  position: relative;
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  padding: 22px 20px;
  min-height: 110px;
  box-shadow: var(--ot-shadow-card);
  transition: transform 120ms, box-shadow 120ms;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
}
.ot-home__menu-tile__corner {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 56px;
  height: 56px;
  color: rgba(15, 23, 42, 0.18);
  pointer-events: none;
}
@media (min-width: 768px) {
  .ot-home__menu-tile__corner { width: 72px; height: 72px; right: 16px; bottom: 14px; }
}
@media (min-width: 768px) {
  .ot-home__menu-tile { min-height: 140px; padding: 26px 24px; }
}
.ot-home__menu-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--ot-shadow-raised);
}
.ot-home__menu-tile.is-soon { opacity: 0.6; cursor: not-allowed; }
.ot-home__menu-tile.is-soon:hover { transform: none; box-shadow: var(--ot-shadow-card); }
.ot-home__menu-tile__sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
}
.ot-home__menu-tile__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ot-red);
  line-height: 1.0;
}
@media (min-width: 768px) {
  .ot-home__menu-tile__label { font-size: 26px; }
}

/* === Home hero (full-width, with backdrop image) === */

.ot-home-hero {
  position: relative;
  margin: 4px 0 18px;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  min-height: 360px;
  box-shadow: var(--ot-shadow-raised);
  background: #0F172A;
}
.ot-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ot-home-hero__media__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}
.ot-home-hero__media__lockup { display: none; } /* baked into copy on this layout */

.ot-home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.55) 60%, rgba(15,23,42,0.85) 100%),
    linear-gradient(95deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.10) 55%, transparent 80%);
}
.ot-home-hero__copy {
  position: relative;
  z-index: 2;
  padding: 28px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: white;
  min-height: 360px;
  justify-content: flex-end;
  max-width: 760px;
}
.ot-home-hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFB3C6;
}
.ot-home-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.ot-home-hero__lede {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  max-width: 52ch;
  margin: 0;
  line-height: 1.45;
}
.ot-home-hero__cta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.ot-home-hero__cta .ot-btn-ghost {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
}
.ot-home-hero__cta .ot-btn-ghost:hover {
  background: var(--ot-ink); color: white; border-color: var(--ot-ink);
}

@media (min-width: 768px) {
  .ot-home-hero { min-height: 480px; margin-bottom: 24px; }
  .ot-home-hero__copy { padding: 48px; min-height: 480px; }
  .ot-home-hero__title { font-size: 64px; }
  .ot-home-hero__lede { font-size: 17px; }
}

.ot-home-tiles { margin-top: 12px; }

/* === Stepper (FIFA "Let's Get Started") === */

.ot-stepper {
  display: none; /* desktop-only — too cramped on mobile */
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
@media (min-width: 768px) {
  .ot-stepper { display: flex; }
}
.ot-stepper__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
}
.ot-stepper__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ot-stepper__dots li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ot-ink-subtle);
}
.ot-stepper__dots li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.12);
  display: inline-block;
  margin-right: 4px;
}
.ot-stepper__dots li.is-active { color: var(--ot-ink); }
.ot-stepper__dots li.is-active::before {
  background: #22C55E;
  box-shadow: 0 0 0 1px #22C55E;
}
.ot-stepper__dots li + li::after { content: "—"; color: var(--ot-ink-subtle); margin-left: 6px; }

/* === Page heading enhancements === */

.ot-page-heading__count {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
}

/* === Roster group titles (within Select Player panel) === */

.ot-roster__group {
  list-style: none;
}
.ot-roster__group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
  background: rgba(15,23,42,0.03);
  border-bottom: 1px solid var(--ot-border);
}
.ot-roster__group-count {
  margin-left: auto;
  padding: 2px 8px;
  background: white;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ot-ink);
  border: 1px solid var(--ot-border);
}

/* Captain marker chip */
.ot-cap-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  margin-left: 6px;
  border-radius: 4px;
  background: var(--ot-ink);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0;
}

/* Panel title sub label (right-aligned) */
.ot-panel__title__sub {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
}

/* Saved squad rows */
.ot-saved-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ot-saved-row {
  display: grid;
  grid-template-columns: 90px 1fr 100px auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  box-shadow: var(--ot-shadow-card);
}
.ot-saved-row__mode {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--ot-red);
  color: white;
  border-radius: 2px;
  text-align: center;
}
.ot-saved-row__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
}
.ot-saved-row__formation {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ot-ink-muted);
  text-align: right;
}
.ot-saved-row__updated {
  font-size: 12px;
  color: var(--ot-ink-subtle);
}

/* === Player grid & filters === */

.ot-filters {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 6px;
  box-shadow: var(--ot-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ot-filters__row { display: flex; gap: 10px; align-items: stretch; }
.ot-filters__search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: var(--ot-bg);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  transition: border-color 120ms, box-shadow 120ms;
}
.ot-filters__search:focus-within { border-color: var(--ot-red); box-shadow: 0 0 0 3px rgba(233, 60, 84, 0.12); }
.ot-filters__search-icon { width: 18px; height: 18px; color: var(--ot-ink-muted); flex-shrink: 0; }
.ot-filters__search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; padding: 12px 0;
}
.ot-filters__chips {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
}

/* Position chip-group radio buttons */
.ot-chip-group {
  display: inline-flex; gap: 4px;
  background: var(--ot-bg); padding: 4px; border-radius: 4px;
  border: 1px solid var(--ot-border);
}
.ot-chip-group input[type="radio"] { display: none; }
.ot-chip-group label {
  font-family: var(--font-display);
  font-weight: 600; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 12px;
  border-radius: 3px; cursor: pointer;
  color: var(--ot-ink-muted);
  transition: background 120ms, color 120ms;
}
.ot-chip-group label:hover { color: var(--ot-ink); }
.ot-chip-group input:checked + label { background: var(--ot-ink); color: white; }
.ot-chip-group input:checked + label.ot-chip-group__pos--GK { background: var(--pos-gk); color: white; }
.ot-chip-group input:checked + label.ot-chip-group__pos--DEF { background: var(--pos-def); color: #1f1300; }
.ot-chip-group input:checked + label.ot-chip-group__pos--MID { background: var(--pos-mid); color: white; }
.ot-chip-group input:checked + label.ot-chip-group__pos--ATT { background: var(--pos-att); color: white; }

/* Inline select/input controls with floating label */
.ot-filters__select {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--ot-bg);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
}
.ot-filters__select-label {
  font-family: var(--font-display);
  font-weight: 600; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ot-ink-muted);
}
.ot-filters__select select, .ot-filters__select input {
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 13px;
  padding: 6px 4px; min-width: 60px;
}
.ot-filters__select input[type="number"] { width: 60px; }

.ot-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ot-player-card {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  padding: 12px 12px 10px;
  display: grid;
  /* fixed-row grid so cards align regardless of name length */
  grid-template-rows: 22px 88px 36px 18px 22px auto;
  gap: 4px;
  box-shadow: var(--ot-shadow-card);
  transition: transform 120ms, box-shadow 120ms;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.ot-player-card__top { align-self: start; }
.ot-player-card__portrait { align-self: center; justify-self: center; }
.ot-player-card__name {
  align-self: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.ot-player-card__meta { align-self: center; }
.ot-player-card__club { align-self: end; }
.ot-player-card__stats { align-self: end; margin-top: 4px; }
.ot-player-card:hover { transform: translateY(-2px); box-shadow: var(--ot-shadow-raised); }
.ot-player-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ot-player-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.18);
}
.ot-player-card__portrait {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  background: #E2E8F0;
  border: 2px solid white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  align-self: center;
}
.ot-player-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
}
.ot-player-card__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ot-ink-muted);
}
.ot-player-card__flag { width: 16px; height: 12px; object-fit: cover; border-radius: 1px; }
.ot-player-card__club {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ot-ink-subtle);
  border-top: 1px solid var(--ot-border);
  padding-top: 6px;
}
.ot-player-card__club img { width: 14px; height: 14px; object-fit: contain; }
.ot-player-card__stats {
  display: flex;
  justify-content: space-around;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--ot-border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ot-ink);
}

.ot-pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 0;
}
.ot-pager__info {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ot-ink-muted);
}

/* === Inline icons === */
.ot-i {
  display: inline-block;
  vertical-align: middle;
  color: currentColor;
  flex-shrink: 0;
}

.ot-player-card__stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding-top: 6px;
  border-top: 1px solid var(--ot-border);
  font-family: var(--font-display);
  font-weight: 600; font-size: 11px; letter-spacing: 0.04em;
  color: var(--ot-ink);
}
.ot-player-card__stats span { display: inline-flex; align-items: center; gap: 4px; }

/* === Squad builder === */

.ot-builder { display: flex; flex-direction: column; gap: 14px; }
.ot-builder__toolbar {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 14px;
  background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: 6px;
  box-shadow: var(--ot-shadow-card);
}
.ot-builder__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; flex: 1; }
.ot-builder__mode-pill {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--ot-red); color: white; padding: 6px 12px; border-radius: 999px;
}
.ot-builder__formation {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--ot-bg); border: 1px solid var(--ot-border); border-radius: 4px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ot-ink-muted);
}
.ot-builder__formation select { border: 0; background: transparent; font: inherit; font-size: 14px; outline: 0; color: var(--ot-ink); }
.ot-builder__name {
  flex: 1; min-width: 200px; padding: 10px 14px;
  border: 1px solid var(--ot-border-strong); border-radius: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em;
}
.ot-builder__name:focus { outline: 0; border-color: var(--ot-red); }
.ot-builder__actions { display: flex; align-items: center; gap: 10px; }
.ot-builder__status { font-size: 13px; color: var(--ot-ink-muted); }
.ot-builder__status.is-err { color: var(--ot-red-deep); }

.ot-builder__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 1024px) {
  .ot-builder__grid {
    grid-template-columns: minmax(420px, 1.4fr) minmax(340px, 1fr);
    align-items: start;
  }
}

/* Right pool panel */
.ot-pool {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 6px;
  box-shadow: var(--ot-shadow-card);
  overflow: hidden;
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.ot-pool > div[x-show] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ot-pool__tabs {
  display: flex; gap: 0;
  background: var(--ot-slate);
}
.ot-pool__tabs button {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,0.6);
  border: 0; padding: 12px 10px;
  cursor: pointer; border-bottom: 3px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 120ms, background 120ms;
}
.ot-pool__tabs button:hover:not(:disabled) { color: white; background: rgba(255,255,255,0.06); }
.ot-pool__tabs button:disabled { opacity: 0.4; cursor: not-allowed; }
.ot-pool__tabs button.is-active { color: white; background: rgba(255,255,255,0.1); border-bottom-color: var(--ot-red); }

.ot-pool__head { padding: 12px 14px 8px; border-bottom: 1px solid var(--ot-border); }
.ot-pool__title { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.ot-pool__sub { font-size: 11px; color: var(--ot-ink-muted); margin-top: 2px; }

.ot-pool__filters {
  padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px;
  border-bottom: 1px solid var(--ot-border); background: rgba(15,23,42,0.02);
}
.ot-chip-group--compact label { padding: 4px 8px; font-size: 10px; }

.ot-pool__list { overflow-y: auto; flex: 1; min-height: 0; }
.ot-pool__row-wrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--ot-border); }
.ot-pool__row {
  flex: 1; display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px; align-items: center;
  padding: 8px 12px;
  background: transparent; border: 0;
  cursor: pointer; text-align: left; font: inherit;
}
.ot-pool__row:hover { background: rgba(233, 60, 84, 0.06); }
.ot-pool__row.is-disabled { opacity: 0.4; cursor: not-allowed; }
.ot-pool__row__photo { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; object-position: center 15%; background: #f1f5f9; }
.ot-pool__row__main { min-width: 0; }
.ot-pool__row__name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-pool__row__sub { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ot-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-pool__row__flag { width: 14px; height: 10px; object-fit: cover; border-radius: 1px; }
.ot-pool__row__meta { display: inline-flex; align-items: center; gap: 6px; }
.ot-pool__add {
  width: 38px; flex-shrink: 0;
  background: var(--ot-red); color: white; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms;
}
.ot-pool__add:hover { background: var(--ot-red-deep); }
.ot-pool__add.is-disabled { background: var(--ot-ink-subtle); cursor: not-allowed; }

/* === Inspect (FUT-silhouette vertical card, FIFA 26 marble palette) === */

.ot-inspect {
  padding: 18px 14px 20px;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}

.ot-inspect__card {
  /* The shape/marble/ribbons live in the template PNG (1024×1536, 2:3).
     Overlay positions below are in % of this canvas. */
  --ot-card-template: url('/static/brand/card-template.png');
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 2 / 3;
  background: var(--ot-card-template) center / contain no-repeat;
  text-align: center;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.35));
  isolation: isolate;
}
/* (Earlier giant outlined number bled into the template — removed.) */

/* Coordinate system: % of the 1024×1536 canvas. Card silhouette = ~7%-93% vertical. */

/* TOP HEADER ROW 1 (number + flag): centerline at top: 17% */
/* TOP HEADER ROW 2 (POS + club): centerline at top: 24% */

/* Number (centered around its own row baseline) */
.ot-inspect__rating {
  position: absolute; top: 17%; left: 22%;
  text-align: center;
  line-height: 1; z-index: 3;
  transform: translate(-50%, -50%);
}
.ot-inspect__rating__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 42px; letter-spacing: -0.02em;
  color: #4A3416;
  text-shadow: 0 1px 0 rgba(255, 250, 230, 0.5);
}
.ot-inspect__rating__pos { display: none; } /* moved out into its own block */

/* POS label — its own absolutely positioned block aligned to row 2 */
.ot-inspect__pos-label {
  position: absolute; top: 24%; left: 22%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.16em;
  color: #4A3416;
  z-index: 3;
}

/* Club crest on row 2, centered on its line so it shares baseline with POS */
.ot-inspect__club-tr {
  position: absolute; top: 24%; right: 22%;
  transform: translate(50%, -50%);
  width: 11%; height: auto; aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  z-index: 3;
}

/* The template's WC trophy logo IS the crown — hide the text fallback we'd render */
.ot-inspect__crown { display: none; }

/* Player photo — lower so it clears the "FIFA WORLD CUP 2026" template text */
.ot-inspect__photo {
  position: absolute;
  top: 32%; left: 28%;
  width: 44%; height: 28%;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  z-index: 1;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
}

/* Name strip — tight under photo bottom edge */
.ot-inspect__name {
  position: absolute; left: 0; right: 0; top: 61%;
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2A1B05;
  text-align: center;
  z-index: 2;
  padding: 0 14%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 6-stat grid — tight 2×3 directly under the name */
.ot-inspect__stats {
  position: absolute; left: 16%; right: 16%; top: 66%;
  height: 14%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 0;
  font-family: var(--font-display);
  color: #4A3416;
  z-index: 2;
}
.ot-inspect__stats > div {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 4px;
  border-right: 1px solid rgba(143, 102, 30, 0.3);
}
.ot-inspect__stats > div:nth-child(3n) { border-right: 0; }
.ot-inspect__stats em {
  font-style: normal; font-weight: 800; font-size: 18px;
  line-height: 1;
}
.ot-inspect__stats span {
  font-weight: 700; font-size: 11px; letter-spacing: 0.08em;
}

/* Bottom: nation flag pair (positioned just under the WC logo in the foot) */
/* Flag — top row right, sharing horizontal centerline with shirt number */
.ot-inspect__crests {
  position: absolute; top: 17%; right: 22%;
  display: inline-flex; align-items: center; justify-content: center;
  transform: translate(50%, -50%);
  z-index: 3;
}
.ot-inspect__crests span { display: none; }
.ot-inspect__flag {
  width: 34px; height: 23px; object-fit: cover; border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Action row below the card */
.ot-inspect__actions { display: flex; gap: 8px; }
.ot-inspect__deep-link { font-size: 12px; color: var(--ot-ink-muted); text-decoration: underline; }
.ot-inspect__actions { display: flex; gap: 8px; }
.ot-inspect__deep-link { font-size: 12px; color: var(--ot-ink-muted); text-decoration: underline; }

/* Squad summary tab */
.ot-squad-summary { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ot-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--ot-border);
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ot-summary-row span { color: var(--ot-ink-muted); font-size: 11px; }
.ot-summary-row strong { font-size: 15px; }

/* === Isometric pitch === */
.ot-builder__pitch-col { display: flex; flex-direction: column; gap: 14px; }

.ot-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  max-height: 760px;
  perspective: 1400px;
  perspective-origin: 50% 35%;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #0c1a14 0%, #07120c 100%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ot-pitch * { user-select: none; -webkit-user-select: none; }
.ot-pitch img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.ot-bench { user-select: none; -webkit-user-select: none; }
.ot-bench * { user-select: none; -webkit-user-select: none; }
.ot-bench img { -webkit-user-drag: none; }

/* Tilted green field — sits at the bottom of the perspective box */
.ot-pitch__bg {
  position: absolute; inset: -8% -10% 0 -10%;
  transform: rotateX(40deg);
  transform-origin: 50% 100%;
  background:
    /* center circle (ellipse, hollow) */
    radial-gradient(ellipse 14% 9% at 50% 50%, transparent 96%, rgba(255,255,255,0.55) 96%, rgba(255,255,255,0.55) 100%, transparent 100%),
    /* halfway line */
    linear-gradient(0deg, transparent 49.6%, rgba(255,255,255,0.55) 49.6%, rgba(255,255,255,0.55) 50.4%, transparent 50.4%),
    /* horizontal mowed stripes */
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.04) 0 6%,
      rgba(0,0,0,0.06) 6% 12%),
    /* base green */
    radial-gradient(ellipse at 50% 60%, #2BA055 0%, #1E8543 55%, #14693a 100%);
  border: 3px solid rgba(255,255,255,0.55);
  border-radius: 6px;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.25) inset;
}
/* Bottom penalty box (near goal) */
.ot-pitch__bg::after {
  content: ""; position: absolute;
  left: 16%; right: 16%; bottom: 0; height: 22%;
  border: 2.5px solid rgba(255,255,255,0.55);
  border-bottom: 0;
}
/* Bottom 6-yard box (inside penalty box) */
.ot-pitch__bg::before {
  content: ""; position: absolute;
  left: 32%; right: 32%; bottom: 0; height: 9%;
  border: 2.5px solid rgba(255,255,255,0.55);
  border-bottom: 0;
}

/* Top penalty box (far end) */
.ot-pitch__top-boxes {
  position: absolute; inset: -8% -10% 0 -10%;
  pointer-events: none;
  transform: rotateX(40deg);
  transform-origin: 50% 100%;
}
.ot-pitch__top-boxes::before {
  content: ""; position: absolute;
  left: 16%; right: 16%; top: 0; height: 22%;
  border: 2.5px solid rgba(255,255,255,0.55);
  border-top: 0;
}
.ot-pitch__top-boxes::after {
  content: ""; position: absolute;
  left: 32%; right: 32%; top: 0; height: 9%;
  border: 2.5px solid rgba(255,255,255,0.55);
  border-top: 0;
}

/* Goalposts top + bottom (small white bars) — sit on the green */
.ot-pitch__goal-top, .ot-pitch__goal-bot {
  position: absolute; left: 50%;
  transform: translate(-50%, 0);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(220,220,220,0.85));
  border-radius: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 1;
}
.ot-pitch__goal-top {
  top: 22%;
  width: 10%;      /* narrower because it's the far goal in perspective */
  height: 4px;
}
.ot-pitch__goal-bot {
  bottom: 4%;
  width: 22%;     /* wider because it's the near goal */
  height: 7px;
}

/* Big transparent OT watermark dead-center of the pitch */
.ot-pitch__watermark {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38%; height: auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0) invert(1);
}

/* Brand watermark — top-left of the dark area above the tilted field */
.ot-pitch__brand {
  position: absolute; top: 18px; left: 22px; z-index: 1;
  display: inline-flex; align-items: center; gap: 14px;
  pointer-events: none;
  opacity: 0.95;
}
.ot-pitch__brand img {
  height: 52px; width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.ot-pitch__brand__line1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: 0.1em;
  text-transform: uppercase; color: white;
  line-height: 1; margin-bottom: 4px;
}
.ot-pitch__brand__line2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  line-height: 1;
}

/* Slots stay flat on top of the tilted field */
.ot-pitch__slot {
  position: absolute;
  width: 120px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 120ms;
  z-index: 2;
}
.ot-pitch__slot:hover { transform: translate(-50%, -50%) scale(1.06); z-index: 5; }
.ot-pitch__slot.is-captain { z-index: 6; }
.ot-pitch__slot.is-drop-ok .ot-pitch-slot-empty,
.ot-pitch__slot.is-drop-ok .ot-pchip__photo {
  outline: 3px dashed #FACC15;
  outline-offset: 4px;
}
.ot-pitch__slot.is-swap-source .ot-pchip__photo {
  outline: 3px solid #3B82F6;
  outline-offset: 4px;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
}

/* Snapshot mode — html2canvas can't read CSS 3D transforms, so flatten the
   pitch into a top-down view for the duration of the screenshot. Live UI
   is untouched; only the saved PNG is flat. */
.ot-pitch--snapshot { perspective: none !important; }
.ot-pitch--snapshot .ot-pitch__bg {
  inset: 0 !important;                /* flat: green fills the pitch box exactly */
  transform: none !important;
}
.ot-pitch--snapshot .ot-pitch__bg::before,
.ot-pitch--snapshot .ot-pitch__bg::after { transform: none !important; }
/* Snapshot mode: the top "far-goal" frame is built for rotateX(40deg).
   With perspective off we reshape it into a flat top penalty box mirroring
   the bottom one. Use top+bottom insets (not height%) because .ot-pitch
   uses aspect-ratio — percentage heights don't resolve reliably. */
.ot-pitch--snapshot .ot-pitch__top-boxes {
  inset: 0 0 78% 0 !important;        /* fills top 22% of pitch */
  transform: none !important;
}
.ot-pitch--snapshot .ot-pitch__top-boxes::before {
  left: 16% !important; right: 16% !important;
  top: 0 !important; bottom: 0 !important; height: auto !important;
  border-top: 0 !important;
}
.ot-pitch--snapshot .ot-pitch__top-boxes::after {
  left: 32% !important; right: 32% !important;
  top: 0 !important; bottom: 59% !important; height: auto !important;  /* 6-yard, 41% of penalty box */
  border-top: 0 !important;
}
/* Both goal bars sit flush against the top/bottom edges in flat mode
   (the 4% inset on the bottom one is a perspective offset that doesn't
   apply when the pitch isn't tilted). */
.ot-pitch--snapshot .ot-pitch__goal-top {
  top: 0 !important;
  width: 22% !important;
  height: 7px !important;
}
.ot-pitch--snapshot .ot-pitch__goal-bot {
  bottom: 0 !important;
}

/* Share stage — built off-screen at snapshot time. Wraps the flat pitch in
   a dark frame with a proper branded header (logo + title + formation) and
   a footer (squad name + URL). The whole stage is html2canvas'd, so all
   measurements are pixel-fixed (no responsive collapse). */
.ot-share-stage {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 760px;
  background: linear-gradient(180deg, #0b1220 0%, #0e1a2e 100%);
  padding: 20px 20px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-sizing: border-box;
}
.ot-share-header {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ot-share-header__logo {
  width: 44px; height: 44px; object-fit: contain;
  flex: 0 0 auto;
}
.ot-share-header__text { flex: 1 1 auto; min-width: 0; }
.ot-share-header__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 2px;
  line-height: 1;
}
.ot-share-header__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
}
.ot-share-header__formation {
  flex: 0 0 auto;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  background: #E93C54;
  color: #fff;
  border-radius: 999px;
  line-height: 1;
}
.ot-share-stage__pitch {
  padding: 14px 0 4px;
}
.ot-share-stage__pitch .ot-pitch {
  width: 720px !important;
  max-width: 720px !important;
  margin: 0 auto;
}
/* Force desktop slot size in the share stage regardless of device viewport
   — otherwise mobile @media rules below would shrink slots in the saved
   poster and produce a different image on phone vs laptop. */
.ot-share-stage .ot-pitch__slot { width: 120px !important; }
.ot-share-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 8px 6px;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 4px;
}
.ot-share-footer__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1.2px;
  color: #fff;
}
.ot-share-footer__url {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #E93C54;
}
@media (max-width: 900px) { .ot-pitch__slot { width: 96px; } }
@media (max-width: 700px) { .ot-pitch__slot { width: 78px; } }

/* Empty slot — a circular gold-rimmed plate with the position chip on top */
.ot-pitch-slot-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  width: 76px; height: 76px;
  margin: 0 auto;
  color: white;
  transition: background 120ms, border-color 120ms, box-shadow 120ms, transform 120ms;
  backdrop-filter: blur(2px);
}
.ot-pitch__slot:hover .ot-pitch-slot-empty {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}
.ot-pitch__slot.is-target .ot-pitch-slot-empty {
  border-color: #FACC15;
  background: rgba(250, 204, 21, 0.20);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3), 0 0 18px rgba(250, 204, 21, 0.6);
}
.ot-pitch__slot.is-target .ot-pchip__photo {
  box-shadow: 0 0 0 3px #FACC15, 0 3px 8px rgba(0,0,0,0.5);
}
.ot-pitch-slot-empty__pos {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 3px;
  color: white;
}
.ot-pitch-slot-empty__pos.ot-pos--DEF { color: #1f1300; }
.ot-pitch-slot-empty__plus { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) { .ot-pitch-slot-empty { width: 62px; height: 62px; } }
@media (max-width: 700px) { .ot-pitch-slot-empty { width: 54px; height: 54px; } }

/* === Pitch player chip — circular portrait + shirt # badge + name === */
.ot-pchip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
}
.ot-pchip__photo-wrap {
  position: relative;
  width: 88px; height: 88px;
}
@media (max-width: 900px) { .ot-pchip__photo-wrap { width: 72px; height: 72px; } }
@media (max-width: 700px) { .ot-pchip__photo-wrap { width: 60px; height: 60px; } }
.ot-pchip__photo {
  width: 100%; height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 12%;
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}
.ot-pchip__num {
  position: absolute; top: -6px; left: -6px;
  min-width: 22px; height: 22px;
  padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ot-ink);
  color: white;
  border: 2px solid white;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 11px;
}
.ot-pchip__flag {
  position: absolute; bottom: -2px; right: -4px;
  width: 22px; height: 16px;
  object-fit: cover;
  border: 1.5px solid white;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.ot-pchip__club {
  position: absolute; bottom: -4px; left: -4px;
  width: 22px; height: 22px;
  object-fit: contain;
  background: white;
  border-radius: 999px;
  border: 1.5px solid white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  padding: 1px;
}
.ot-pchip__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8), 0 0 6px rgba(0,0,0,0.5);
  max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ot-pchip__remove {
  position: absolute; top: -8px; right: -10px;
  width: 20px; height: 20px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.85); color: white;
  border: 2px solid white;
  cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 4;
  opacity: 0; transition: opacity 120ms;
}
.ot-pchip:hover .ot-pchip__remove { opacity: 1; }
.ot-pchip__captain {
  position: absolute; top: -2px; right: -6px;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.7); color: white;
  border: 2px solid white;
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  cursor: pointer; padding: 0;
  z-index: 4;
  opacity: 0; transition: opacity 120ms, background 120ms, color 120ms, transform 120ms;
}
.ot-pchip:hover .ot-pchip__captain { opacity: 1; }
.ot-pchip__captain:hover {
  background: #FACC15; color: var(--ot-ink); border-color: white;
  transform: scale(1.1);
}
.ot-pchip__captain.is-active {
  background: #FACC15; color: var(--ot-ink); border-color: white;
  opacity: 1;
  box-shadow: 0 0 0 2px #FACC15, 0 0 10px rgba(250, 204, 21, 0.5);
}
/* Move the × remove button to bottom-right so captain (top-right) and remove don't collide */
.ot-pchip__remove {
  top: auto; right: -10px; bottom: -8px;
}
/* On the captain's chip also ring the portrait */
.ot-pchip.is-captain .ot-pchip__photo,
.ot-pitch__slot.is-captain .ot-pchip__photo {
  box-shadow: 0 0 0 3px #FACC15, 0 3px 8px rgba(0,0,0,0.5);
}

/* Bench variant: smaller photo, name below */
.ot-pchip--bench .ot-pchip__photo-wrap { width: 48px; height: 48px; }
.ot-pchip--bench .ot-pchip__num { min-width: 18px; height: 18px; font-size: 10px; top: -4px; left: -4px; }
.ot-pchip--bench .ot-pchip__name { color: var(--ot-ink); text-shadow: none; font-size: 10px; }

/* Legacy pitch-card classes (kept harmless in case any markup lingers) */
.ot-pitch-card { display: none; }
.ot-pitch__slot.is-captain .ot-pitch-card {
  border-color: var(--ot-red);
  box-shadow:
    0 0 0 2px var(--ot-red),
    0 0 14px rgba(233, 60, 84, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.35);
}
.ot-pitch-card__remove {
  position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--ot-ink); color: white; border: 2px solid white;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; z-index: 4;
}
.ot-pitch-card__captain {
  position: absolute; top: -8px; left: -8px;
  width: 22px; height: 22px; border-radius: 999px;
  background: white; color: var(--ot-ink); border: 2px solid var(--ot-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  cursor: pointer; padding: 0; z-index: 4;
}
.ot-pitch-card__captain.is-active { background: var(--ot-red); color: white; border-color: white; }

/* Row 1: shirt number (top-left, centered on row baseline) */
.ot-pitch-card__num {
  position: absolute; top: 17%; left: 22%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: 220%; letter-spacing: -0.02em;
  line-height: 1;
  color: #4A3416;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
  z-index: 3;
}
/* Row 1: country flag (top-right, same baseline as number) */
.ot-pitch-card__flag {
  position: absolute; top: 17%; right: 22%;
  transform: translate(50%, -50%);
  width: 17%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.25);
  z-index: 3;
}

/* Row 2: POS label (left) */
.ot-pitch-card__poschip {
  position: absolute; top: 25%; left: 22%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: 80%; letter-spacing: 0.06em;
  color: #4A3416;
  z-index: 3;
}

/* Row 2: club crest (right) */
.ot-pitch-card__club-tr {
  position: absolute; top: 25%; right: 22%;
  transform: translate(50%, -50%);
  width: 16%; height: auto; aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  z-index: 3;
}

/* Player photo sits in the template's central area, white-bg blends into marble */
.ot-pitch-card__photo {
  position: absolute;
  top: 26%; left: 22%;
  width: 56%; height: 40%;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  z-index: 1;
  mix-blend-mode: multiply;
}

.ot-pitch-card__name {
  position: absolute; left: 8%; right: 8%; top: 70%;
  font-family: var(--font-display); font-weight: 800;
  font-size: 12%; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 1.05;
  color: #2A1B05;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center;
  z-index: 2;
}

.ot-pitch-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 9px; line-height: 1.05;
  color: #2A1B05;
}
.ot-pitch-card__stats > div { display: flex; flex-direction: column; align-items: center; }
.ot-pitch-card__stats em {
  font-style: normal; font-size: 11px; font-weight: 800;
}

.ot-pitch-card__sub {
  position: absolute; left: 0; right: 0; bottom: 6%;
  display: inline-flex; gap: 5px; justify-content: center; align-items: center;
  color: #2A1B05;
  z-index: 2;
}
.ot-pitch-card__flag {
  width: 14%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
.ot-pitch-card__nation {
  font-family: var(--font-display); font-weight: 700; font-size: 60%;
  letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 65%;
}

.ot-pitch-card__pos { display: none; }

/* Pitch slots big enough to host the templated FUT card */
.ot-pitch__slot { width: 120px; }
@media (max-width: 900px) { .ot-pitch__slot { width: 90px; } }
@media (max-width: 700px) { .ot-pitch__slot { width: 80px; } }

@media (max-width: 700px) {
  .ot-pitch__slot { width: 70px; }
  .ot-pitch-card__photo { width: 38px; height: 38px; }
  .ot-pitch-card__name { font-size: 9px; }
}

/* === Bench — stadium dugout look (yellow canopy, red+black bucket seats) === */
.ot-bench {
  position: relative;
  padding: 56px 20px 28px;
  border-radius: 12px 12px 6px 6px;
  background:
    /* grass strip behind the seats */
    linear-gradient(180deg, transparent 0%, transparent 46px, #3a6824 46px, #2c5018 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  overflow: hidden;
}
/* Yellow canopy/awning across the top */
.ot-bench::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 46px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 60px, rgba(0,0,0,0.0) 60px 120px),
    linear-gradient(180deg, #F5C518 0%, #E0A608 100%);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.15) inset;
}
/* Yellow side posts */
.ot-bench::after {
  content: ""; position: absolute; inset: 0;
  border-left: 6px solid #E0A608;
  border-right: 6px solid #E0A608;
  border-radius: inherit;
  pointer-events: none;
}

.ot-bench__title {
  position: absolute; top: 13px; left: 0; right: 0; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800;
  color: #2A1B05;
}
.ot-bench__title__main {
  font-size: 16px; letter-spacing: 0.32em;
}
.ot-bench__title__hint {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: rgba(42, 27, 5, 0.6); text-transform: uppercase;
}

.ot-bench__row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  position: relative; z-index: 1;
}

/* Each slot IS a bucket seat: black backrest + red cushion */
.ot-bench__slot {
  position: relative;
  padding: 8px 6px 12px;
  min-height: 156px;
  cursor: pointer;
  transition: transform 120ms;
  background:
    /* seat headrest highlight */
    radial-gradient(ellipse 60% 12% at 50% 14%, rgba(255,255,255,0.06) 0%, transparent 60%),
    /* split: black back / red cushion */
    linear-gradient(180deg,
      #1a1a1a 0%, #1a1a1a 52%,
      #C0392B 52%, #962118 100%);
  border: 2px solid #2A1F18;
  border-radius: 12px 12px 4px 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 3px 6px rgba(0,0,0,0.4);
}
.ot-bench__slot::before {
  /* metal frame leg below the seat */
  content: ""; position: absolute;
  left: 14%; right: 14%; bottom: -8px; height: 6px;
  background: linear-gradient(180deg, #E0A608, #B08208);
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
.ot-bench__slot:hover { transform: translateY(-3px); }
.ot-bench__slot.is-target {
  border-color: #FACC15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.4), 0 3px 6px rgba(0,0,0,0.4);
}

.ot-bench__plus {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: absolute; inset: 0;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3;
  text-align: center;
}
.ot-bench__plus em { font-style: normal; color: rgba(255,255,255,0.85); font-size: 14px; }

/* Filled slot: chip overlays the bucket seat */
.ot-bench__slot.is-filled { padding: 8px 6px; }
.ot-bench__slot.is-filled .ot-pchip { position: relative; z-index: 1; }
.ot-pchip--bench .ot-pchip__name {
  color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.8); font-size: 11px;
}
.ot-pchip__pos {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 9px;
  letter-spacing: 0.08em; color: white;
  margin-top: 2px;
}
.ot-pchip__pos.ot-pos--DEF { color: #1f1300; }

/* Share / save success modal */
.ot-modal {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ot-modal__panel {
  width: 100%; max-width: 520px;
  background: white; border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 22px 24px;
}
.ot-modal__head { display: flex; justify-content: space-between; align-items: center; }
.ot-modal__title {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px; color: var(--ot-ink);
}
.ot-modal__sub { color: var(--ot-ink-muted); font-size: 14px; margin: 4px 0 16px; }
.ot-modal__url {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.ot-modal__url input {
  flex: 1; padding: 10px 12px;
  border: 1px solid var(--ot-border-strong); border-radius: 4px;
  font: inherit; font-size: 13px; color: var(--ot-ink-muted);
  background: var(--ot-bg);
}
.ot-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Player picker overlay */
.ot-picker {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ot-picker__panel {
  width: 100%; max-width: 760px; max-height: 90vh;
  background: white; border-radius: 8px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.ot-picker__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ot-border);
  background: var(--ot-slate); color: white;
}
.ot-picker__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.ot-picker__sub { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.ot-picker__filters { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--ot-border); }
.ot-picker__list { overflow-y: auto; }
.ot-picker__row {
  display: grid;
  grid-template-columns: 40px 32px 32px 1fr 100px 110px;
  gap: 10px; align-items: center;
  padding: 8px 16px;
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ot-border);
  cursor: pointer; text-align: left; font: inherit;
}
.ot-picker__row:hover { background: rgba(233, 60, 84, 0.06); }
.ot-picker__row__num { font-family: var(--font-display); font-weight: 600; color: var(--ot-ink-muted); text-align: center; }
.ot-picker__row__photo { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; object-position: center 15%; background: #f1f5f9; }
.ot-picker__row__name { font-weight: 600; font-size: 13px; }
.ot-picker__row__nat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ot-ink-muted); }
.ot-picker__row__nat img { width: 16px; height: 12px; object-fit: cover; border-radius: 1px; }
.ot-picker__row__club { font-size: 11px; color: var(--ot-ink-muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .ot-picker__row { grid-template-columns: 36px 30px 32px 1fr; }
  .ot-picker__row__nat, .ot-picker__row__club { display: none; }
}

/* === Public /squads — tiles with mini formation preview === */
.ot-squads__sort {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.ot-squads__sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ot-surface); color: var(--ot-ink-muted);
  border: 1px solid var(--ot-border);
  text-decoration: none;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.ot-squads__sort-btn:hover { background: var(--ot-ink); color: white; border-color: var(--ot-ink); }
.ot-squads__sort-btn.is-active { background: var(--ot-red); color: white; border-color: var(--ot-red); }

.ot-squads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.ot-squad-tile {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  box-shadow: var(--ot-shadow-card);
  overflow: hidden;
  transition: transform 120ms, box-shadow 120ms;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ot-squad-tile:hover { transform: translateY(-3px); box-shadow: var(--ot-shadow-raised); }
.ot-squad-tile__link {
  display: block; color: inherit; text-decoration: none; flex: 1;
}

/* Mini pitch preview */
.ot-squad-tile__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 240px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 7%, rgba(0,0,0,0.06) 7% 14%),
    radial-gradient(ellipse at 50% 60%, #2BA055 0%, #1E8543 55%, #14693a 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--ot-border);
}
/* Pitch lines container — uses outer rim, halfway, center circle */
.ot-squad-tile__lines {
  position: absolute; inset: 4%;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 10%, rgba(255,255,255,0.6) 10%, rgba(255,255,255,0.6) 11%, transparent 11%),
    linear-gradient(0deg, transparent 49.5%, rgba(255,255,255,0.6) 49.5%, rgba(255,255,255,0.6) 50.5%, transparent 50.5%);
}
/* Top penalty box (no top border — it sits flush with the rim) */
.ot-squad-tile__lines::before {
  content: ""; position: absolute;
  left: 22%; right: 22%; top: 0; height: 22%;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-top: 0;
}
/* Bottom penalty box (no bottom border) */
.ot-squad-tile__lines::after {
  content: ""; position: absolute;
  left: 22%; right: 22%; bottom: 0; height: 22%;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-bottom: 0;
}
.ot-squad-tile__dot {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.6);
  overflow: visible;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  z-index: 1;
}
.ot-squad-tile__dot > img {
  width: 100%; height: 100%;
  border-radius: 999px;
  object-fit: cover; object-position: center 12%;
}
.ot-squad-tile__dot.ot-pos--GK  { border-color: var(--pos-gk); }
.ot-squad-tile__dot.ot-pos--DEF { border-color: var(--pos-def); }
.ot-squad-tile__dot.ot-pos--MID { border-color: var(--pos-mid); }
.ot-squad-tile__dot.ot-pos--ATT { border-color: var(--pos-att); }
.ot-squad-tile__cap {
  position: absolute; top: -7px; right: -7px;
  width: 14px; height: 14px; border-radius: 999px;
  background: #FACC15; color: var(--ot-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid white;
  z-index: 2;
}
/* Small name label sits just below the dot, doesn't break the circle */
.ot-squad-tile__pname {
  position: absolute; top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: 8px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 0 4px rgba(0,0,0,0.7);
  white-space: nowrap;
  pointer-events: none;
}

.ot-squad-tile__body { padding: 12px 14px; }
.ot-squad-tile__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.ot-squad-tile__name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ot-ink); line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}
.ot-squad-tile__meta {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin-top: 6px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ot-ink-muted);
}
.ot-squad-tile__meta span { display: inline-flex; align-items: center; gap: 4px; }

.ot-squad-tile__vote {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--ot-border);
  background: rgba(15, 23, 42, 0.02);
}
.ot-vote__own {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ot-ink-subtle);
}
.ot-vote__own a { color: var(--ot-red); text-decoration: underline; }

/* Legacy class kept for backwards compat */
.ot-squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ot-squad-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px;
  background: var(--ot-surface); border: 1px solid var(--ot-border); border-radius: 6px;
  box-shadow: var(--ot-shadow-card);
  color: inherit;
  transition: transform 120ms, box-shadow 120ms;
  position: relative;
}
.ot-squad-card:hover { transform: translateY(-2px); box-shadow: var(--ot-shadow-raised); }
.ot-squad-card__head { color: inherit; }
.ot-squad-card__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.ot-squad-card__sub { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ot-ink-muted); margin-top: 4px; }
.ot-mode-pill {
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ot-ink); color: white; padding: 2px 8px; border-radius: 3px;
}
/* Mode-specific colors so WORLD vs NATION stand apart at a glance */
.ot-mode-pill[data-mode="WORLD"],
.ot-mode-pill.is-world { background: #3B82F6; }   /* blue = global */
.ot-mode-pill[data-mode="NATION"],
.ot-mode-pill.is-nation { background: #16A34A; }  /* green = single-nation */
.ot-squad-card__meta { font-size: 11px; color: var(--ot-ink-subtle); display: flex; justify-content: space-between; }
.ot-vote { display: flex; align-items: center; gap: 6px; }
.ot-vote__btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ot-bg); border: 1px solid var(--ot-border); border-radius: 4px;
  cursor: pointer; color: var(--ot-ink-muted); font-weight: 700;
}
.ot-vote__btn:hover { background: var(--ot-ink); color: white; }
.ot-vote__btn.is-active { background: var(--ot-red); color: white; border-color: var(--ot-red); }
.ot-vote__btn.is-readonly { cursor: default; opacity: 0.5; }
.ot-vote__btn.is-readonly:hover { background: var(--ot-bg); color: var(--ot-ink-muted); }
.ot-vote__score { font-family: var(--font-display); font-weight: 700; min-width: 28px; text-align: center; }

/* === Animations: page enter, tab swap, list item stagger === */
@media (prefers-reduced-motion: no-preference) {
  .ot-main > * { animation: ot-fade-up 250ms ease-out both; }
  .ot-pdetail__tabs > div[x-show] { animation: ot-slide-in 220ms ease-out both; }
  .ot-player-card { animation: ot-fade-up 280ms ease-out both; animation-delay: calc(var(--i, 0) * 18ms); }
  .ot-country { animation: ot-fade-up 240ms ease-out both; animation-delay: calc(var(--i, 0) * 12ms); }
  .ot-roster__row { animation: ot-fade-up 220ms ease-out both; }
  .ot-home__menu-tile { animation: ot-fade-up 320ms ease-out both; }
  .ot-tile { animation: ot-fade-up 260ms ease-out both; }
}
@keyframes ot-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ot-slide-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* === Onboarding === */
.ot-onb { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.ot-onb__card {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border);
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: var(--ot-shadow-card);
}
.ot-onb__h {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 14px;
}
.ot-onb__avatar { margin-top: 14px; }
.ot-onb__avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.ot-onb__avatar-opt input { display: none; }
.ot-onb__avatar-opt img {
  width: 56px; height: 56px;
  border-radius: 999px; object-fit: cover; object-position: center 12%;
  border: 2px solid transparent; cursor: pointer;
  background: white;
  transition: border-color 120ms, transform 120ms;
}
/* Country/club crests use 'contain' inside a white circle so the whole crest is visible */
.ot-onb__avatar-grid:not([x-show*="players"]) .ot-onb__avatar-opt img {
  object-fit: contain;
  object-position: center;
  padding: 4px;
}
.ot-onb__avatar-opt img:hover { transform: scale(1.05); }
.ot-onb__avatar-opt input:checked + img { border-color: var(--ot-red); box-shadow: 0 0 0 3px rgba(233,60,84,0.25); }
.ot-onb__actions { display: flex; gap: 8px; justify-content: flex-end; padding-bottom: 24px; }
.ot-onb__avatar-tabs {
  display: flex; gap: 4px; margin-bottom: 12px;
  background: var(--ot-bg);
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  padding: 4px;
  width: max-content;
}
.ot-onb__avatar-tabs button {
  background: transparent; border: 0; padding: 6px 12px;
  font: inherit; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ot-ink-muted);
  border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ot-onb__avatar-tabs button.is-active { background: var(--ot-ink); color: white; }

/* Typeahead */
.ot-typeahead { position: relative; }
.ot-typeahead__menu {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px;
  background: white;
  border: 1px solid var(--ot-border);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  max-height: 280px; overflow-y: auto;
  z-index: 50;
}
.ot-typeahead__row {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 10px;
  align-items: center;
  width: 100%; padding: 8px 12px;
  background: transparent; border: 0;
  cursor: pointer; text-align: left; font: inherit;
}
.ot-typeahead__row:hover { background: rgba(233, 60, 84, 0.06); }
.ot-typeahead__row img {
  width: 32px; height: 32px; border-radius: 999px;
  object-fit: cover; object-position: center 12%;
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
}
.ot-typeahead__name { font-weight: 600; font-size: 13px; }
.ot-typeahead__sub { font-size: 11px; color: var(--ot-ink-muted); }
.ot-typeahead__picked {
  margin-top: 8px; padding: 6px 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 3px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
}

/* === Profile === */
.ot-profile-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  background: var(--ot-surface);
  border: 1px solid var(--ot-border); border-radius: 6px;
  box-shadow: var(--ot-shadow-card);
  margin-bottom: 14px;
}
.ot-profile-hero__avatar {
  width: 88px; height: 88px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.ot-profile-hero__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.ot-profile-hero__initial { font-family: var(--font-display); font-weight: 800; font-size: 42px; color: var(--ot-ink-muted); }

/* Vote stats panel inside the profile hero (right side) */
.ot-profile-hero__votes {
  margin-left: auto;
  display: inline-flex; gap: 10px;
}
.ot-vote-stat {
  background: var(--ot-bg);
  border: 1px solid var(--ot-border);
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  min-width: 80px;
}
.ot-vote-stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1;
}
.ot-vote-stat span {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ot-ink-muted); margin-top: 4px;
}
.ot-vote-stat--up   strong { color: #16A34A; }
.ot-vote-stat--down strong { color: #DC2626; }
.ot-vote-stat--net  strong { color: var(--ot-red); }
@media (max-width: 600px) {
  .ot-profile-hero { flex-wrap: wrap; }
  .ot-profile-hero__votes { width: 100%; margin-left: 0; justify-content: space-between; }
}

.ot-profile-favs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.ot-profile-fav {
  background: var(--ot-surface);
  border: 1px solid var(--ot-border); border-radius: 6px;
  padding: 12px 14px;
  box-shadow: var(--ot-shadow-card);
}
.ot-profile-fav__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ot-ink-muted);
  margin-bottom: 10px;
}
.ot-profile-fav__row {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  transition: transform 120ms;
}
.ot-profile-fav__row:hover { transform: translateX(2px); }
.ot-profile-fav__crest {
  width: 44px; height: 44px;
  object-fit: contain;
  background: white;
  border-radius: 6px; padding: 4px;
  border: 1px solid var(--ot-border);
}
.ot-profile-fav__portrait {
  width: 44px; height: 44px;
  border-radius: 999px;
  object-fit: cover; object-position: center 12%;
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.ot-profile-fav__portrait--ph {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--ot-ink-muted);
}
.ot-profile-fav__title {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.ot-profile-fav__sub {
  display: block;
  font-size: 11px; color: var(--ot-ink-muted); margin-top: 2px;
}
.ot-profile-fav__empty {
  font-family: var(--font-display); font-size: 18px; color: var(--ot-ink-subtle);
}
.ot-profile-fav__formation {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--ot-red), var(--ot-red-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-block;
}

[x-cloak] { display: none !important; }

/* === Squad placeholders (filled out in iteration 1 page) === */

.ot-empty {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
  padding: 80px 24px;
  background: rgba(255,255,255,0.6);
  border: 2px dashed var(--ot-border-strong);
  border-radius: 6px;
}
.ot-empty__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ot-empty__sub { color: var(--ot-ink-muted); font-size: 14px; }

/* ---------- Admin / analytics dashboard ---------- */
.ot-admin-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.ot-admin-tile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}
.ot-admin-tile__num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 32px; line-height: 1;
  color: #0f172a;
}
.ot-admin-tile__label {
  margin-top: 6px;
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: #64748b; font-weight: 600;
}
.ot-admin-tile__delta {
  margin-top: 8px;
  font-size: 11px; color: #E93C54; font-weight: 700; letter-spacing: 0.5px;
}
.ot-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ot-admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}
.ot-admin-card--wide { grid-column: 1 / -1; }
.ot-admin-card__title {
  margin: 0 0 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #0f172a; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.ot-admin-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  height: 140px;
  align-items: end;
}
.ot-admin-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 0; }
.ot-admin-bar__fill {
  width: 100%;
  background: linear-gradient(180deg, #E93C54, #c11d34);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  position: relative;
  transition: opacity 120ms;
}
.ot-admin-bar__num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: #0f172a;
}
.ot-admin-bar__day {
  font-size: 9px; letter-spacing: 0.4px; color: #94a3b8; font-weight: 600;
}
.ot-admin-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  max-height: 320px; overflow-y: auto;
}
.ot-admin-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  gap: 12px;
}
.ot-admin-list li:last-child { border-bottom: 0; }
.ot-admin-list__key { color: #0f172a; min-width: 0; flex: 1 1 auto; }
.ot-admin-list__key a { color: #E93C54; font-weight: 600; text-decoration: none; }
.ot-admin-list__val {
  color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.ot-admin-list--dense li { padding: 5px 0; font-size: 12px; }
@media (max-width: 760px) {
  .ot-admin-tiles { grid-template-columns: repeat(2, 1fr); }
  .ot-admin-grid { grid-template-columns: 1fr; }
  .ot-admin-bars { grid-template-columns: repeat(14, 1fr); height: 100px; }
}
