/* Console-game look, coloured by the team kit. --team (the kit's main colour), --team-2 (its second colour) and
   --on-team (text on --team) are set from the Team kit at runtime; these are the fallbacks. One deliberate dark theme. */
:root {
  --team: #e11d2a;
  --team-2: #121212;
  --on-team: #ffffff;
  --them: #7c9cff;
  --bg: #07080b;
  --surface: #11131a;
  --card: rgba(255, 255, 255, 0.045);
  --text: #f2f4f8;
  --muted: #8d94a8;
  --line: rgba(255, 255, 255, 0.1);
  --brand: var(--team);
  --brand-dark: color-mix(in srgb, var(--team) 16%, #07080b);
  --brand-soft: color-mix(in srgb, var(--team) 22%, transparent);
  --danger: #ff4d5e;
  --warn: #fbbf24;
  --pitch: #1c6b34;
  --pitch-line: rgba(255, 255, 255, 0.6);
  --chip: #f2f4f8;
  --chip-text: #0b0c10;
  --select: #ffd23f;
  --radius: 14px;
  --glow: 0 0 0 1px color-mix(in srgb, var(--team) 75%, transparent), 0 0 22px color-mix(in srgb, var(--team) 45%, transparent);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.45 var(--font-body);
  color: var(--text);
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 88% -12%, color-mix(in srgb, var(--team) 30%, transparent), transparent 62%),
    radial-gradient(900px 520px at -15% 108%, color-mix(in srgb, var(--team) 20%, transparent), transparent 62%),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.022) 0 28px, transparent 28px 56px),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--team); }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.1; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; text-wrap: balance; }
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
[hidden] { display: none !important; }

main { max-width: 820px; margin: 0 auto; padding: 16px; }

/* ---------- chrome ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--brand-dark); color: #fff;
}
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.1rem; }
.account { font-size: 1.3rem; padding: 4px 8px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0; font-size: 0.72rem; color: var(--muted); text-decoration: none; position: relative;
}
.tabbar a.active { color: var(--brand); font-weight: 600; }
.badge {
  position: absolute; top: 4px; left: 55%;
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 0.65rem; padding: 1px 6px; font-weight: 700;
}

/* ---------- building blocks ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.between { justify-content: space-between; }

button, .btn {
  font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
}
button:active { transform: scale(0.98); }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
button.danger { color: var(--danger); }
button.ghost { background: transparent; border-color: transparent; }
button.sm { min-height: 32px; padding: 4px 10px; font-size: 0.85rem; }
button:disabled { opacity: 0.45; cursor: default; }

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
textarea { resize: vertical; min-height: 70px; }
input[type="checkbox"] { width: auto; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 0.95rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.error { color: var(--danger); font-size: 0.9rem; min-height: 1.2em; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; border-radius: 999px; padding: 0 6px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.85rem;
}
.pill { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; }
.pill.live { background: var(--danger); color: #fff; font-weight: 700; }
.pill.win { background: var(--brand-soft); color: var(--brand); }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 12px; scrollbar-width: none; }
.tabs button { flex: 1 0 auto; min-height: 38px; border-radius: 999px; font-size: 0.9rem; }
.tabs button.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.empty { text-align: center; color: var(--muted); padding: 24px 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  z-index: 20; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px);
}
.toast button { min-height: 28px; padding: 2px 10px; background: transparent; color: var(--bg); border-color: var(--bg); }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 6vh auto 0; }
.auth h1 { text-align: center; font-size: 1.8rem; }
.seg { display: flex; background: var(--line); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: transparent; min-height: 36px; }
.seg button.active { background: var(--card); font-weight: 600; }

/* ---------- scoreboard ---------- */
.scoreboard {
  background: var(--brand-dark); color: #fff; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px; text-align: center;
}
.scoreboard .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.scoreboard .team { font-weight: 600; overflow-wrap: anywhere; }
.scoreboard .score { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.scoreboard .clock { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.scoreboard .meta { opacity: 0.85; font-size: 0.85rem; }
.scoreboard .controls { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.scoreboard .controls button { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.scoreboard .controls button.primary { background: #fff; color: var(--brand-dark); }
.over { color: #fca5a5; }

/* ---------- pitch ---------- */
.pitch {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 68 / 90;
  background: repeating-linear-gradient(0deg, var(--pitch) 0 10%, color-mix(in srgb, var(--pitch) 88%, #000) 10% 20%);
  border-radius: 10px; border: 2px solid var(--pitch-line); overflow: hidden;
  container-type: inline-size;
}
.pitch .line { position: absolute; border: 2px solid var(--pitch-line); pointer-events: none; }
.pitch .half { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch .circle { width: 26%; aspect-ratio: 1; left: 37%; top: 50%; transform: translateY(-50%); border-radius: 50%; }
.pitch .box-top { left: 22%; right: 22%; top: -2px; height: 14%; }
.pitch .box-bottom { left: 22%; right: 22%; bottom: -2px; height: 14%; }
.slot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; padding: 0; min-height: 0; color: #fff; width: 22%;
}
.slot:active { transform: translate(-50%, -50%) scale(0.96); }
.slot .dot {
  width: clamp(30px, 13cqw, 44px); height: clamp(30px, 13cqw, 44px); font-size: clamp(0.72rem, 4cqw, 1rem);
  border-radius: 50%; background: var(--chip); color: var(--chip-text);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35); border: 3px solid transparent;
}
.slot.empty .dot { background: rgba(255,255,255,0.18); color: #fff; border: 2px dashed rgba(255,255,255,0.7); font-weight: 600; font-size: 0.75rem; }
.slot.gk .dot { background: #fde047; color: #111; }
.slot.selected .dot { border-color: var(--select); box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.5); }
.slot .name {
  font-size: clamp(0.6rem, 3.4cqw, 0.72rem); font-weight: 600; background: rgba(0,0,0,0.45); padding: 1px 6px; border-radius: 6px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slot .pos { font-size: 0.62rem; opacity: 0.85; }

.bench { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--card); min-height: 40px; font-size: 0.9rem;
}
.chip.selected { border-color: var(--select); background: color-mix(in srgb, var(--select) 20%, var(--card)); }
.chip .mins { color: var(--muted); font-size: 0.75rem; }

/* ---------- stat entry ---------- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.player-grid button { flex-direction: column; gap: 2px; padding: 8px 4px; min-height: 64px; }
.player-grid .pname { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* ---------- feed / timeline ---------- */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feed li:last-child { border-bottom: 0; }
.feed .min { min-width: 40px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed .them { color: var(--danger); }
.feed .ico { width: 22px; text-align: center; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
th { font-size: 0.75rem; color: var(--muted); cursor: pointer; user-select: none; }
th.sorted { color: var(--brand); }
td.left, th.left { text-align: left; }
.record { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.record b { display: block; font-size: 1.5rem; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 68px - 52px - 32px - env(safe-area-inset-bottom) - env(safe-area-inset-top)); }
.chat .messages { flex: 1; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; margin: 6px 0; }
.msg .bubble { background: var(--card); border: 1px solid var(--line); padding: 8px 12px; border-radius: 14px 14px 14px 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { margin-left: auto; }
.msg.mine .bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 14px 14px 4px 14px; }
.msg .who { font-size: 0.75rem; color: var(--muted); margin: 0 4px 2px; display: flex; gap: 6px; }
.msg.mine .who { justify-content: flex-end; }
.msg .who button { min-height: 0; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 0.75rem; }
.chat form { display: flex; gap: 8px; padding-top: 8px; }
.chat form textarea { min-height: 44px; height: 44px; resize: none; }

.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; }

/* ---------- quick stat rails beside the pitch ---------- */
.field-wrap {
  display: grid; grid-template-columns: 58px minmax(0, 460px) 58px;
  gap: 8px; justify-content: center; align-items: start;
}
@media (min-width: 600px) {
  .field-wrap { grid-template-columns: 100px minmax(0, 460px) 100px; gap: 14px; }
  .rail-btn { font-size: 0.8rem; min-height: 56px; }
}
.field-wrap .pitch { max-width: none; }
.rail { display: flex; flex-direction: column; gap: 6px; }
.rail-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.rail-them .rail-title { color: var(--danger); }
.rail-us .rail-title { color: var(--brand); }
.rail-btn { flex-direction: column; gap: 0; padding: 6px 2px; min-height: 50px; font-size: 0.68rem; line-height: 1.15; overflow-wrap: anywhere; }
.rail-btn span { font-size: 1.15rem; }
.rail-btn.goal { min-height: 68px; font-size: 0.8rem; font-weight: 700; color: #fff; }
.rail-us .rail-btn.goal { background: var(--brand); border-color: var(--brand); }
.rail-them .rail-btn.goal { background: var(--danger); border-color: var(--danger); }

/* ---------- bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: var(--card); width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
}
.sheet h3 { font-size: 1.1rem; margin-bottom: 12px; }
.sheet .player-grid button { min-height: 72px; }
.sheet-bench { margin-top: 12px; }
.sheet-bench .player-grid { margin-top: 8px; }
.sheet-skip { width: 100%; margin-top: 14px; }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 16px; }
}

/* ---------- foul / card reasons ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reason-grid button { min-height: 52px; line-height: 1.2; }
.reason-other { display: flex; gap: 8px; margin-top: 10px; }
.reason-other input { flex: 1; min-width: 0; }
.sheet-actions { margin-top: 14px; }

/* ---------- team comparison ---------- */
.cmp-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 6px; }
.cmp-head span:last-child { text-align: right; }
.cmp-row { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cmp-row > b:last-of-type { text-align: right; }
.cmp-row > span { text-align: center; color: var(--muted); font-size: 0.9rem; }
.cmp-bar { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 6px; }
.cmp-half { flex: 1; height: 6px; border-radius: 3px; background: var(--line); display: flex; overflow: hidden; }
.cmp-half.us { justify-content: flex-end; }
.cmp-half i { display: block; height: 100%; }
.cmp-half.us i { background: var(--brand); }
.cmp-half.them i { background: var(--danger); }

/* ---------- planned sub alerts ---------- */
.sub-alert { position: fixed; inset: 0; z-index: 25; pointer-events: none; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sub-alert::before { content: ""; position: absolute; inset: 0; background: rgba(249, 115, 22, 0.4); animation: sub-alert-flash 1s ease-in-out infinite; }
.sub-alert-card {
  position: relative; pointer-events: auto; background: #ea580c; color: #fff; border-radius: 18px;
  padding: 20px 24px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); max-width: 520px; width: 100%;
}
.sub-alert-card h2 { font-size: 2rem; font-weight: 900; letter-spacing: 0.08em; margin-bottom: 10px; }
.sub-alert-card ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 1rem; }
.sub-alert-card li { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sub-alert-card .swatch { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.sub-alert-card button { background: #fff; color: #9a3412; border-color: #fff; font-weight: 800; font-size: 1.1rem; min-width: 140px; min-height: 48px; }
@keyframes sub-alert-flash { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.field-area { position: relative; }
.sub-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.sub-line { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 7; animation: sub-line-march 0.6s linear infinite; }
@keyframes sub-line-march { to { stroke-dashoffset: -15; } }
.sub-go {
  position: absolute; z-index: 3; transform: translate(-50%, -50%); min-height: 38px; padding: 6px 14px;
  background: var(--sub); border-color: #fff; border-width: 2px; color: #fff; font-weight: 800; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.sub-go:active { transform: translate(-50%, -50%) scale(0.96); }
.slot.sub-flash .dot { animation: sub-pulse 0.9s ease-in-out infinite; border-color: var(--sub); }
.chip.sub-flash { border-color: var(--sub); animation: sub-chip-pulse 0.9s ease-in-out infinite; }
@keyframes sub-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--sub); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--sub) 55%, transparent); background: var(--sub); color: #fff; }
}
@keyframes sub-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--sub); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sub) 50%, transparent); background: color-mix(in srgb, var(--sub) 30%, var(--card)); }
}
@media (prefers-reduced-motion: reduce) {
  .sub-alert::before { animation: none; opacity: 0.6; }
  .sub-line { animation: none; }
  .slot.sub-flash .dot, .chip.sub-flash { animation: none; box-shadow: 0 0 0 5px var(--sub); }
}

/* ---------- live lineup: highlight, swap, drag ---------- */
.live-field .slot { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.live-field .chip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.slot.dragging { z-index: 4; }
.slot.dragging .dot { transform: scale(1.18); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); border-color: var(--select); }
.swap-go { --sub: #facc15; color: #1c1917; }
.pick-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 12px; }
.pick-card { margin: 0; border-color: var(--select); }
.pick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; text-align: center; }
.pick-stats b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pick-stats span { font-size: 0.72rem; color: var(--muted); }
.pick-stats .zero b { color: var(--muted); font-weight: 500; }

/* ---------- field / bench time ---------- */
.times { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.chip .times { align-items: flex-start; text-align: left; font-size: 0.7rem; margin-left: 2px; }
.slot .bench-time { opacity: 0.7; font-size: clamp(0.55rem, 3cqw, 0.62rem); }

/* ---------- notes composer ---------- */
.composer { display: grid; gap: 10px; }
.composer-input { position: relative; }
.composer-input textarea { padding-right: 58px; min-height: 84px; }
.mic {
  position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; min-height: 0; padding: 0;
  border-radius: 50%; font-size: 1.2rem;
}
.mic.rec { background: var(--danger); border-color: var(--danger); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--danger) 30%, transparent); } }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.place-chips:empty { display: none; }
.tag { min-height: 34px; padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; }
.tag.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.note-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }

/* ---------- reports ---------- */
.report-head .report-score { font-size: 1.15rem; margin-top: 4px; }
.report-head .report-score b { font-size: 1.4rem; margin: 0 6px; font-variant-numeric: tabular-nums; }
.report-ai { border-color: var(--brand); }
.report-ai h4 { margin: 12px 0 4px; font-size: 0.9rem; }
.report-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.player-notes + .player-notes { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.report-player-ai { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--brand-soft); }
@media (prefers-reduced-motion: reduce) { .mic.rec { animation: none; } }

/* ---------- awards & votes ---------- */
.pp-pill {
  margin-left: auto; margin-right: 8px; padding: 4px 10px; border-radius: 999px; font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%;
}
.pp-pill b { color: #facc15; margin-right: 2px; }
.award .award-winner { font-size: 1.4rem; font-weight: 800; }
.award .player-grid { margin-top: 8px; }
.vote-card { border-color: var(--brand); }
.vote-card.done { background: var(--brand-soft); }
.player-grid button.selected { border-color: var(--brand); background: var(--brand-soft); border-width: 2px; }

.banner {
  position: fixed; left: 0; right: 0; z-index: 9; bottom: calc(57px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 10px 16px; background: var(--brand-dark); color: #fff; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.2);
}
.banner .ghost { color: #fff; }
body.has-banner { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
body.has-banner .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }

.vote-toasts {
  position: fixed; left: 0; right: 0; z-index: 26; bottom: calc(80px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
body.has-banner .vote-toasts { bottom: calc(140px + env(safe-area-inset-bottom)); }
.vote-toast {
  background: #facc15; color: #1c1917; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); animation: vote-toast 4.2s ease forwards; max-width: calc(100% - 32px);
}
@keyframes vote-toast {
  0% { opacity: 0; transform: translateY(16px); }
  8%, 75% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .vote-toast { animation-name: vote-toast-still; } }
@keyframes vote-toast-still { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
body.has-banner .chat { height: calc(100dvh - 68px - 52px - 32px - 62px - env(safe-area-inset-bottom) - env(safe-area-inset-top)); }

.awards-table th.group { border-bottom: 2px solid var(--line); cursor: default; }
.awards-table th.group,
.awards-table tr:last-child th:nth-child(3), .awards-table tr:last-child th:nth-child(5),
.awards-table td:nth-child(3), .awards-table td:nth-child(5) { border-left: 1px solid var(--line); }

/* ---------- 3D player models ---------- */
.avatar-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.avatar-canvas:active { cursor: grabbing; }
.avatar-thumb { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); flex: none; object-fit: cover; }
.look-preview {
  height: 300px; max-width: 100%; border-radius: 12px; margin-bottom: 8px;
  background: radial-gradient(circle at 50% 35%, var(--card), color-mix(in srgb, var(--brand) 18%, var(--bg)));
}
.pick-card { display: flex; gap: 12px; align-items: stretch; }
.pick-info { flex: 1; min-width: 0; }
.pick-model { width: 110px; flex: none; min-height: 170px; border-radius: 10px; background: radial-gradient(circle at 50% 35%, var(--card), var(--brand-soft)); }
.pick-thumb { width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--brand-soft); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%;
  border: 2px solid var(--line); box-shadow: inset 0 0 0 2px var(--card);
}
.swatch.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--card), 0 0 0 2px var(--select); }
.swatch.custom { display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--muted); cursor: pointer; margin: 0; }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; }
.sheet h4 { margin: 14px 0 6px; font-size: 0.9rem; }
.tag.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.kit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 520px) { .kit-grid { grid-template-columns: 1fr; } }
.kit-colour { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.95rem; margin: 0; }
.kit-colour input { width: 44px; height: 36px; padding: 2px; }

.photo-card { margin: 10px 0 0; padding: 12px; }
.crop-stage { position: relative; width: 100%; max-width: 320px; margin: 0 auto 10px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; touch-action: none; }
.crop-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.crop-guide { position: absolute; inset: 0; pointer-events: none; }
.crop-guide::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 17%; bottom: 18%; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
}
.crop-guide .eye-line { position: absolute; left: 24%; right: 24%; top: 36%; border-top: 2px solid #facc15; }
.crop-guide .eye-line::before, .crop-guide .eye-line::after {
  content: ""; position: absolute; top: -6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #facc15;
}
.crop-guide .eye-line::before { left: 18%; }
.crop-guide .eye-line::after { right: 18%; }
#crop-zoom { padding: 0; }

/* =====================================================================
   Game theme: glass panels, team-colour glow, broadcast scoreboard.
   ===================================================================== */
/* Slides in from a visible start, so nothing stays hidden if the animation is held up. */
@keyframes rise-in { from { transform: translateY(8px); } to { transform: none; } }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(255, 77, 94, 0); } }
@keyframes start-glow { 0%, 100% { box-shadow: var(--glow); } 50% { box-shadow: 0 0 0 1px var(--team), 0 0 38px color-mix(in srgb, var(--team) 70%, transparent); } }
@keyframes sweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

main > * { animation: rise-in 0.35s ease both; }
main > *:nth-child(2) { animation-delay: 0.04s; }
main > *:nth-child(3) { animation-delay: 0.08s; }
main > *:nth-child(4) { animation-delay: 0.12s; }

/* Panels */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h2, .card h3 { display: flex; align-items: center; gap: 8px; }
.card > h2::before, .card > h3::before, .card > .row > h2::before, .card > .row > h3::before {
  content: ""; width: 4px; height: 0.95em; border-radius: 2px; background: var(--team); box-shadow: 0 0 10px var(--team);
}

/* Buttons and inputs */
button, .btn {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
button:hover:not(:disabled), .btn:hover { border-color: color-mix(in srgb, var(--team) 60%, var(--line)); background: rgba(255, 255, 255, 0.1); }
button.primary, .btn.primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--team) 100%, #fff 8%), color-mix(in srgb, var(--team) 72%, #000));
  border-color: color-mix(in srgb, var(--team) 80%, #fff); color: var(--on-team); box-shadow: var(--glow);
}
button.primary:hover:not(:disabled), .btn.primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
button.ghost { background: transparent; border-color: transparent; }
button.danger { color: var(--danger); }
button.sm { font-size: 0.85rem; letter-spacing: 0.05em; }
:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--team) 55%, transparent); }
input, select, textarea {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--team); box-shadow: 0 0 0 3px color-mix(in srgb, var(--team) 35%, transparent); }
label { letter-spacing: 0.02em; }
select option { background: var(--surface); }

/* Top bar with a crest in the kit colours */
.topbar {
  background: rgba(7, 8, 11, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); position: sticky;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--team) 20%, var(--team) 80%, transparent); box-shadow: 0 0 14px var(--team);
}
.brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff;
  background: repeating-linear-gradient(-40deg, var(--team) 0 6px, var(--team-2) 6px 12px); box-shadow: 0 0 12px color-mix(in srgb, var(--team) 60%, transparent);
}

/* Bottom menu */
.tabbar { background: rgba(9, 10, 14, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.15s ease; }
.tabbar a svg { width: 24px; height: 24px; transition: transform 0.15s ease, filter 0.15s ease; }
.tabbar a.active { color: #fff; }
.tabbar a.active svg { color: var(--team); filter: drop-shadow(0 0 6px var(--team)); transform: translateY(-1px) scale(1.08); }
.tabbar a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--team); box-shadow: 0 0 12px var(--team); }

/* Game sub-menu */
.tabs { gap: 6px; padding-bottom: 4px; }
.tabs button { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--muted); }
.tabs button.active { background: linear-gradient(135deg, var(--team), color-mix(in srgb, var(--team) 70%, #000)); color: var(--on-team); border-color: var(--team); box-shadow: var(--glow); }

/* Selectable tiles light up like a console menu */
.list > li { transition: background 0.15s ease; border-radius: 10px; }
.list a { color: var(--text); text-decoration: none; }
.list a b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; }
.player-grid button, .chip, .tag, .reason-grid button, .rail-btn { transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.player-grid button:hover, .chip:hover, .reason-grid button:hover, .rail-btn:hover { transform: translateY(-2px) scale(1.02); border-color: var(--team); box-shadow: var(--glow); }
.player-grid button { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); text-transform: none; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.player-grid button.selected, .chip.selected { border-color: var(--select); box-shadow: 0 0 0 1px var(--select), 0 0 18px rgba(255, 210, 63, 0.4); background: rgba(255, 210, 63, 0.1); }
.num { background: color-mix(in srgb, var(--team) 28%, transparent); color: #fff; border: 1px solid color-mix(in srgb, var(--team) 70%, transparent); font-family: var(--font-display); }
.pill { background: rgba(255, 255, 255, 0.08); color: var(--muted); font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.pill.live { background: var(--danger); color: #fff; animation: live-pulse 1.6s ease-in-out infinite; }
.pill.win { background: color-mix(in srgb, var(--team) 30%, transparent); color: #fff; }
.chip { background: rgba(255, 255, 255, 0.05); color: var(--text); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; }
.tag { background: rgba(255, 255, 255, 0.05); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; }
.tag.on { background: var(--team); border-color: var(--team); color: var(--on-team); box-shadow: var(--glow); }

/* Broadcast scoreboard */
.scoreboard {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #161922, #0a0b0f); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.scoreboard::before {
  content: ""; position: absolute; inset: 0 55% 0 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--team) 55%, transparent), transparent);
}
.scoreboard::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent); animation: sweep 6s ease-in-out infinite;
}
.scoreboard > * { position: relative; z-index: 1; }
.scoreboard .team {
  font-family: var(--font-display); font-size: clamp(0.95rem, 3.6vw, 1.25rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  overflow-wrap: normal; word-break: normal; hyphens: auto; min-width: 0;
}
.scoreboard .score {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1;
  padding: 4px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line);
  text-shadow: 0 0 18px color-mix(in srgb, var(--team) 60%, transparent);
}
.scoreboard .clock {
  display: inline-block; margin-top: 8px; padding: 2px 14px; border-radius: 8px; font-family: var(--font-display); font-size: 1.9rem;
  background: var(--team); color: var(--on-team); box-shadow: var(--glow);
}
.scoreboard .meta { color: #c9cedb; font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.scoreboard .controls button { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.scoreboard .controls button.primary { background: #fff; color: #0b0c10; border-color: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.35); }

/* Pitch under floodlights */
.pitch {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(0deg, #1f7a3b 0 10%, #1a6a33 10% 20%);
  border: 2px solid rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.slot .dot {
  background: radial-gradient(circle at 35% 30%, #ffffff, #d5dae4); color: #0b0c10; border: 3px solid var(--team);
  font-family: var(--font-display); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), 0 0 12px color-mix(in srgb, var(--team) 45%, transparent);
}
.slot.gk .dot { background: radial-gradient(circle at 35% 30%, #fff6b0, #f3c623); }
.slot .name { font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; background: rgba(0, 0, 0, 0.6); }

/* Quick-stat rails: us in team colours, them in steel blue */
.rail-them .rail-title { color: var(--them); }
.rail-us .rail-title { color: var(--team); text-shadow: 0 0 10px color-mix(in srgb, var(--team) 60%, transparent); }
.rail-title { font-family: var(--font-display); font-size: 0.85rem; }
.rail-btn { background: rgba(255, 255, 255, 0.05); font-family: var(--font-display); letter-spacing: 0.04em; }
.rail-us .rail-btn.goal { background: linear-gradient(135deg, var(--team), color-mix(in srgb, var(--team) 70%, #000)); border-color: var(--team); color: var(--on-team); box-shadow: var(--glow); }
.rail-them .rail-btn.goal { background: linear-gradient(135deg, var(--them), color-mix(in srgb, var(--them) 65%, #000)); border-color: var(--them); color: #08101f; }
.feed .them { color: var(--them); }
.cmp-half.them i { background: var(--them); }
.cmp-half.us i { box-shadow: 0 0 8px var(--team); }
.feed .min, .cmp-row > b, .record b, .pick-stats b, .report-score b { font-family: var(--font-display); }
.record b { font-size: 2.2rem; font-weight: 800; text-shadow: 0 0 16px color-mix(in srgb, var(--team) 55%, transparent); }

/* Tables */
th { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.04); }
th.sorted { color: var(--team); }

/* Sheets, toasts, banners */
.sheet-backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet { background: linear-gradient(180deg, #171a23, #0e1016); border: 1px solid var(--line); border-top: 2px solid var(--team); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6), 0 -2px 22px color-mix(in srgb, var(--team) 35%, transparent); }
.toast {
  background: rgba(17, 19, 26, 0.95); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--team);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); animation: rise-in 0.25s ease both;
}
.toast button { color: var(--text); border-color: var(--line); }
.banner { background: linear-gradient(90deg, color-mix(in srgb, var(--team) 70%, #000), #0e1016); border-top: 1px solid var(--team); box-shadow: 0 -6px 24px color-mix(in srgb, var(--team) 35%, transparent); }
.vote-toast { font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.05rem; }
.pp-pill { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.badge { box-shadow: 0 0 10px var(--danger); }

/* Chat */
.msg .bubble { background: rgba(255, 255, 255, 0.06); }
.msg.mine .bubble { background: linear-gradient(135deg, var(--team), color-mix(in srgb, var(--team) 70%, #000)); border-color: var(--team); color: var(--on-team); }

/* Player cards look like a game's player card */
.look-preview, .pick-model {
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--team) 45%, transparent), transparent 68%),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.03) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #1b1e28, #0a0b0f);
  border: 1px solid color-mix(in srgb, var(--team) 40%, var(--line));
}
.pick-card { border-color: color-mix(in srgb, var(--select) 70%, transparent); box-shadow: 0 0 22px rgba(255, 210, 63, 0.18); }
.avatar-thumb, .pick-thumb { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--team) 50%, transparent), #12141b 72%); border: 2px solid color-mix(in srgb, var(--team) 70%, transparent); }
.award .award-winner { font-family: var(--font-display); text-transform: uppercase; font-size: 1.8rem; text-shadow: 0 0 16px color-mix(in srgb, var(--team) 60%, transparent); }

/* Login: a game title screen */
.auth { margin-top: 8vh; }
.auth h1 {
  font-size: 2.8rem; line-height: 1; margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--team) 70%, #ffffff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--team) 55%, transparent));
}
.auth #auth-form button.primary { animation: start-glow 2.4s ease-in-out infinite; }
.seg { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.seg button { background: transparent; color: var(--muted); }
.seg button.active { background: var(--team); color: var(--on-team); box-shadow: var(--glow); }

@media (prefers-reduced-motion: reduce) {
  main > *, .toast { animation: none; }
  .scoreboard::after, .pill.live, .auth #auth-form button.primary { animation: none; }
  button, .btn, .player-grid button, .chip, .rail-btn { transition: none; }
}

/* ---------- stat highlights ---------- */
@keyframes hl-in { from { transform: translateY(-120%) skewX(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hl-out { to { transform: translateY(-120%); opacity: 0; } }
@keyframes hl-slam { 0% { transform: scale(2.2) skewX(-10deg); filter: blur(6px); opacity: 0; } 60% { transform: scale(0.94) skewX(-10deg); filter: none; opacity: 1; } 100% { transform: scale(1) skewX(-10deg); } }
@keyframes hl-streak { from { transform: translateX(-100%) skewX(-30deg); } to { transform: translateX(260%) skewX(-30deg); } }
@keyframes hl-name { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.highlight {
  --hl: var(--team);
  position: fixed; z-index: 35; left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px));
  top: calc(env(safe-area-inset-top, 0px) + 60px); height: clamp(170px, 30vh, 250px); max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); overflow: hidden; border-radius: 16px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--hl) 70%, transparent);
  background:
    linear-gradient(100deg, rgba(8, 9, 12, 0.97) 0 48%, color-mix(in srgb, var(--hl) 55%, #08090c) 100%),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 28px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 40px color-mix(in srgb, var(--hl) 45%, transparent);
  animation: hl-in 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.1) both;
}
.highlight.them { --hl: var(--them); }
.highlight.out { animation: hl-out 0.35s ease-in both; }
.highlight::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent); animation: hl-streak 1.1s 0.25s ease-out both;
}
.hl-stage { position: relative; min-width: 0; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--hl) 40%, transparent), transparent 70%); }
.highlight-canvas { width: 100%; height: 100%; display: block; }
.hl-text { display: flex; flex-direction: column; justify-content: center; padding: 10px 44px 10px 6px; min-width: 0; }
.hl-kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.hl-title {
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 0.9;
  font-size: clamp(2.6rem, 10vw, 5rem); letter-spacing: 0.01em; transform-origin: left center;
  background: linear-gradient(180deg, #ffffff 30%, color-mix(in srgb, var(--hl) 55%, #ffffff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px color-mix(in srgb, var(--hl) 70%, transparent));
  animation: hl-slam 0.6s 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.hl-yellow .hl-title { background-image: linear-gradient(180deg, #fff6b0, #ffd400); }
.hl-red .hl-title { background-image: linear-gradient(180deg, #ffd0d0, #ff2d3d); }
.hl-name {
  margin-top: 6px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: clamp(1.1rem, 4.4vw, 1.8rem); color: #fff; animation: hl-name 0.4s 0.55s ease-out both; overflow-wrap: anywhere;
}
.hl-name span { color: var(--hl); filter: brightness(1.3); }
.hl-sub { margin-top: 4px; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; animation: hl-name 0.4s 0.7s ease-out both; }
.hl-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.45); }
@media (prefers-reduced-motion: reduce) {
  .highlight, .highlight.out, .hl-title, .hl-name, .hl-sub, .highlight::after { animation: none; }
}

.kit-chip { width: 34px; height: 34px; border-radius: 8px; flex: none; border: 2px solid rgba(255, 255, 255, 0.5); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.kit-colours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.sent-off { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.sent-off h3 { color: var(--danger); }
.chip.off { opacity: 0.75; border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.red-card { width: 12px; height: 16px; border-radius: 2px; background: #e11d2a; box-shadow: 0 0 8px rgba(225, 29, 42, 0.7); flex: none; }

.booked { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.booked h3 { color: #ffd400; }
.chip.booked-chip { border-color: rgba(255, 212, 0, 0.55); cursor: default; }
.chip.booked-chip:hover { transform: none; box-shadow: none; }
.yellow-card { width: 12px; height: 16px; border-radius: 2px; background: #ffd400; box-shadow: 0 0 8px rgba(255, 212, 0, 0.6); flex: none; }
.slot .dot { position: relative; }
.yc-badge { position: absolute; top: -4px; right: -6px; width: 9px; height: 12px; border-radius: 2px; background: #ffd400; box-shadow: 0 0 0 1.5px #0b0c10, 0 0 8px rgba(255, 212, 0, 0.7); }

/* availability, oranges */
.game-extra { margin-top: 3px; color: var(--muted); }
.game-extra b { color: var(--text, #fff); }
.warn { color: #f59e0b; font-weight: 600; }
.orange-card { border-color: #f97316; background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.05)); }
.avail-card .list li { gap: 10px; }
.num-badge { min-width: 28px; text-align: center; font-family: var(--font-display); font-weight: 800; color: var(--team); }
.cal-btn { min-height: 34px; padding: 4px 8px; margin-right: 6px; }
.sheet .stack > .btn, .sheet .stack > button { width: 100%; justify-content: center; text-align: center; }

/* club logos */
.brand.has-logo::before { background: var(--crest) center / contain no-repeat; border: 0; border-radius: 0; box-shadow: none; width: 34px; height: 34px; }
.logo { width: 32px; height: 32px; object-fit: contain; flex: none; }
.logo.sm { width: 28px; height: 28px; }
.logo.board { display: block; width: 44px; height: 44px; margin: 0 auto 6px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.logo-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-preview { width: 64px; height: 64px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); }
.logo-preview img { width: 56px; height: 56px; object-fit: contain; }

/* ladder */
.ladder-card { padding-left: 8px; padding-right: 8px; }
table.ladder { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.ladder th { font-family: var(--font-display); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; padding: 4px 3px; text-align: center; }
.ladder td { padding: 7px 3px; text-align: center; border-top: 1px solid var(--line); }
.ladder .t { text-align: left; }
.ladder .lt { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ladder .nm { font-weight: 600; display: block; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ladder .pos { font-family: var(--font-display); font-weight: 800; font-size: 1rem; white-space: nowrap; text-align: left; }
.ladder .pts { font-weight: 800; color: var(--text); }
.ladder .fin { color: var(--muted); font-size: 0.78rem; }
.ladder tr.us td { background: color-mix(in srgb, var(--team) 16%, transparent); }
.ladder tr.us .nm { color: var(--team); }
.ladder tr.cut td { border-bottom: 2px dashed color-mix(in srgb, var(--team) 70%, transparent); }
.move { display: inline-block; margin-left: 3px; font-size: 0.68rem; color: var(--muted); vertical-align: middle; }
.move.up { color: #22c55e; }
.move.down { color: #ef4444; }
.form { display: flex; gap: 2px; margin-top: 2px; }
.form i { font-style: normal; font-size: 0.6rem; font-weight: 700; width: 13px; height: 13px; line-height: 13px; text-align: center; border-radius: 3px; color: #fff; }
.form .f-W { background: #16a34a; } .form .f-D { background: #6b7280; } .form .f-L { background: #dc2626; }
.ladder-me { display: flex; align-items: center; gap: 14px; }
.big-pos { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--team); }
.big-pos small { font-size: 1rem; }
.finals-chance { text-align: center; display: flex; flex-direction: column; }
.finals-chance b { font-family: var(--font-display); font-size: 1.5rem; }
.fixtures .fixture { display: block; }
.fx-line { display: flex; align-items: center; gap: 8px; }
.fx-team { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; font-size: 0.9rem; }
.fx-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-team.right { justify-content: flex-end; text-align: right; }
.fx-team .us { color: var(--team); }
.fx-score { font-family: var(--font-display); font-size: 1.2rem; white-space: nowrap; }
.score-in { display: flex; gap: 4px; }
.score-in input { width: 44px; text-align: center; padding: 6px 2px; }
.fx-date { text-align: center; margin-top: 2px; }
.fixture.ours { background: color-mix(in srgb, var(--team) 8%, transparent); border-radius: 10px; }
.odds { margin-top: 6px; }
.odds-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
.odds-bar i:nth-child(1) { background: var(--team); } .odds-bar i:nth-child(2) { background: #6b7280; } .odds-bar i:nth-child(3) { background: var(--them, #e5e7eb); }
.odds-row { display: flex; justify-content: space-between; gap: 6px; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.odds-row b { color: var(--text); }
.ladder .kit-chip, .fixture .kit-chip, .ladder-me .kit-chip { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.fixture .logo.sm, .ladder .logo.sm { width: 24px; height: 24px; }
.tabbar a { font-size: 0.7rem; letter-spacing: 0.04em; }

/* training */
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.drill-svg { display: block; width: 100%; height: auto; border-radius: 12px; overflow: hidden; margin: 10px 0; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.drill-svg.thumb { margin: 0 0 6px; border-radius: 8px; box-shadow: none; }
.drill-svg.mini { width: 72px; margin: 0; border-radius: 6px; box-shadow: none; flex: none; }
.drill-svg.edit { touch-action: none; cursor: crosshair; margin: 0; }
.drill-svg .sel { filter: drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 1.5px var(--team)); }
.drill-svg text { font-family: var(--font-body); pointer-events: none; }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.drill-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.drill-card b { font-size: 0.9rem; line-height: 1.2; }
.drill-view h3 { margin-top: 14px; }
.points { margin: 4px 0 0; padding-left: 20px; }
.points li { margin: 3px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.dz-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.dz-tools .tag { min-height: 32px; padding: 3px 8px; font-size: 0.78rem; }
.dz-bar { margin: 8px 0 4px; flex-wrap: wrap; gap: 6px; }
.dz-bar select { width: auto; }
ol.plan { list-style: none; margin: 0; padding: 0; counter-reset: plan; }
ol.plan li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
ol.plan li:first-child { border-top: 0; }
ol.plan a { color: inherit; text-decoration: none; }
.plan-btns { display: flex; gap: 4px; }
.plan-btns .sm { min-height: 32px; padding: 2px 8px; }
.goals li { gap: 10px; align-items: flex-start; }
.goals li.done b { text-decoration: line-through; opacity: 0.7; }
.goals input[type=checkbox] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--team); }
.avatar-thumb.big { width: 64px; height: 64px; }
.pnotes li { display: block; }
.pnotes li .sm { margin-top: 6px; }

/* pre-match */
.pm-ladder { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.pm-ladder > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pm-ladder b { font-family: var(--font-display); font-size: 1.5rem; }
.pm-odds b { color: var(--team); }
.pm-session { padding: 8px 0; border-top: 1px solid var(--line); }
.pm-session:first-of-type { border-top: 0; }
.pm-session p { margin: 4px 0 0; }
.prematch-written { border-color: color-mix(in srgb, var(--team) 60%, transparent); }
.slot.me .dot { box-shadow: 0 0 0 3px #fff, 0 0 18px var(--team); }
.next-game { border-color: color-mix(in srgb, var(--team) 60%, transparent); }
.link { color: var(--team); font-weight: 600; }

/* drill animation, favourites, Yamal */
.drill-anim .drill-svg { margin-bottom: 6px; }
.anim-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.anim-bar .sm { min-width: 40px; }
.anim-cap { margin-left: 4px; }
.drill-svg .step-badge { pointer-events: none; }
.fav-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); min-height: 44px; padding: 0 4px; box-shadow: none; }
.fav-btn.on { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.6); }
.drill-card { position: relative; }
.fav-mark { position: absolute; top: 12px; right: 12px; color: #facc15; font-size: 1.1rem; text-shadow: 0 1px 3px #000; z-index: 1; }
.drill-grid.archived { opacity: 0.6; }
.archived-banner { border-color: #f59e0b; }
.link-btn { background: none; border: 0; box-shadow: none; color: var(--text); padding: 0; min-height: 32px; font-weight: 700; }
.row.wrap { flex-wrap: wrap; }
.yamal-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-color: color-mix(in srgb, var(--team) 60%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--team) 22%, transparent), rgba(255, 255, 255, 0.02)); }
.yamal-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--team) 9% 100%); color: var(--on-team); border: 2px solid #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--team) 70%, transparent); }
.yamal-avatar.big { width: 56px; height: 56px; font-size: 1.8rem; }
.yamal-head { display: flex; align-items: center; gap: 14px; }
.yamal-reply { border-color: color-mix(in srgb, var(--team) 50%, transparent); }
.drill-anim { position: relative; }
.rot-banner { position: absolute; left: 8px; right: 8px; bottom: 14px; padding: 6px 10px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 0.85rem;
  background: rgba(15, 17, 23, 0.82); color: #fdba74; border: 1px solid #fb923c; opacity: 0.0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
.rot-banner.on { opacity: 1; transform: none; }
.dz-rot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; padding: 8px; border-radius: 10px; border: 1px dashed #fb923c; }

/* trials */
.band { min-width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  background: #f97316; color: #111; flex: none; }
.band-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.band-btn { position: relative; flex-direction: column; gap: 2px; min-height: 84px; padding: 8px 4px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.band-btn .band-no { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.band-btn .band-name { font-size: 0.72rem; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band-btn.done { border-color: color-mix(in srgb, var(--team) 70%, transparent); background: color-mix(in srgb, var(--team) 14%, transparent); }
.band-btn .band-score { position: absolute; top: 4px; right: 4px; }
.band-score { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 8px; font-weight: 800; font-size: 0.8rem; text-align: center; background: var(--line); color: var(--text); }
.band-score.hi { background: #16a34a; color: #fff; } .band-score.mid { background: #ca8a04; color: #fff; } .band-score.lo { background: #b91c1c; color: #fff; }
.band-score.sm { font-size: 0.75rem; }
.crit { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.crit > span { font-size: 0.88rem; font-weight: 600; }
.crit-btns { display: flex; gap: 4px; flex: none; }
.crit-btns button { width: 38px; min-height: 38px; padding: 0; border-radius: 10px; font-weight: 800; }
.crit-btns button.on { background: var(--team); border-color: var(--team); color: var(--on-team); box-shadow: var(--glow); }
.scale-help { margin-top: -4px; }
.score-live { margin: 10px 0 0; min-height: 22px; }
.pill.reserve { background: #ca8a04; color: #fff; border-color: transparent; }
.pill.out { background: rgba(255, 255, 255, 0.08); }
.pick-btn { background: none; border: 0; box-shadow: none; padding: 0; min-height: 32px; text-transform: none; letter-spacing: 0; }
.trial-table td { vertical-align: middle; }
.up-txt { color: #22c55e; } .down-txt { color: #ef4444; }
.trial-table { table-layout: auto; }
.trial-table .t { white-space: normal; word-break: break-word; }
.trial-table .pill { font-size: 0.66rem; padding: 2px 6px; }
.trial-table th, .trial-table td { padding-left: 2px; padding-right: 2px; }

/* trial votes */
.vote-list .vote-row { padding: 12px; margin-bottom: 10px; }
.vote-row.open { border-color: color-mix(in srgb, var(--team) 70%, transparent); }
.skill-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.skill-btn { flex-direction: column; gap: 2px; min-height: 52px; padding: 6px 4px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; }
.skill-btn.on { border-color: var(--team); background: color-mix(in srgb, var(--team) 22%, transparent); box-shadow: var(--glow); }
.tally { display: flex; gap: 5px; font-size: 0.7rem; font-weight: 700; }
.tally i { font-style: normal; }
.t-h { color: #22c55e; } .t-m { color: #eab308; } .t-l { color: #ef4444; }
.vote-panel { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; animation: pop-in 0.15s ease; }
.rate-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rate-btns button { min-height: 48px; font-weight: 800; }
.rate-btns .rate-high.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.rate-btns .rate-medium.on { background: #ca8a04; border-color: #ca8a04; color: #fff; }
.rate-btns .rate-low.on { background: #dc2626; border-color: #dc2626; color: #fff; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.undo-bar { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 14px; background: #111318; border: 1px solid var(--team); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6); max-width: calc(100vw - 32px);
  font-weight: 600; font-size: 0.9rem; animation: undo-fade 5s linear forwards; }
.undo-bar button { min-height: 38px; padding: 4px 14px; background: var(--team); color: var(--on-team); border-color: var(--team); font-weight: 800; }
@keyframes undo-fade { 0% { opacity: 0; transform: translate(-50%, 8px); } 6% { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 1; } 100% { opacity: 0; } }
.skill-bars { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.skill-bar { display: grid; grid-template-columns: 74px 1fr 28px auto; align-items: center; gap: 6px; font-size: 0.78rem; }
.skill-bar .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.skill-bar .bar i { display: block; height: 100%; background: var(--muted); }
.skill-bar .bar i.hi { background: #16a34a; } .skill-bar .bar i.mid { background: #ca8a04; } .skill-bar .bar i.lo { background: #dc2626; }
.moments summary { cursor: pointer; color: var(--muted); }
.moments div { margin: 3px 0; }
.rate-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.rate-dot.rate-high { background: #22c55e; } .rate-dot.rate-medium { background: #eab308; } .rate-dot.rate-low { background: #ef4444; }
.undo-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-photo-btn { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; }

.opp-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px 4px; border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, var(--card), color-mix(in srgb, var(--brand) 18%, var(--bg))); }
.opp-preview img { width: 100%; aspect-ratio: 1 / 1.6; object-fit: contain; }
.opp-preview img:not([src]) { visibility: hidden; }

/* positions picker, suggested subs */
.pos-btn { min-width: 110px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.pos-btn b { display: inline-block; min-width: 14px; height: 14px; line-height: 14px; margin-right: 2px; border-radius: 50%; font-size: 0.62rem; background: var(--team); color: var(--on-team); }
.pos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pos-grid button { position: relative; min-height: 46px; font-weight: 800; }
.pos-grid button.on { border-color: var(--team); background: color-mix(in srgb, var(--team) 25%, transparent); }
.pos-rank { position: absolute; top: 3px; left: 5px; font-size: 0.65rem; font-weight: 800; color: var(--team); }
.pill.pos-alt { opacity: 0.6; }
.ss-change { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 2px 8px; }
.ss-change b { grid-row: span 6; font-family: var(--font-display); font-size: 1.1rem; }
.ss-mins { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; }

/* videos */
.video-list { display: flex; flex-direction: column; gap: 10px; }
.video-card { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; text-decoration: none; color: inherit; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.video-card img, .video-ph { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; display: grid; place-items: center; font-size: 1.6rem; }
.video-snip { color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.new-badge { color: var(--team); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 10px; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-notes p { margin: 6px 0; }
.moment { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.moment-t { flex: none; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--team); }
.watch-list { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.88rem; color: var(--muted); }
.watch-list .seen { color: var(--text); }
