/* FenStats — mobile-first, fantasy-app look (ink + red). */
:root {
  --ink: #0f1424; --ink-2: #1a2138; --ink-3: #2a3350;
  --red: #e3232b; --red-2: #b9141c; --red-soft: #fde8e9;
  --gold: #f4b400; --gold-2: #c98a00; --gold-soft: #fff6dc;
  --green: #12a150; --green-soft: #e3f7ec;
  --bg: #eef0f5; --card: #fff; --line: #e6e8ef; --line-2: #d5d9e3;
  --text: #121726; --text-2: #5a6378; --text-3: #8e96a8;
  --r: 14px; --r-sm: 10px;
  --sh: 0 1px 2px rgba(15, 20, 36, .06), 0 6px 18px -10px rgba(15, 20, 36, .18);
  --cond: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: #d9dde6; color: var(--text); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.app {
  width: 100%;
  max-width: 800px; /* v8.63.1 owner: PC looks like a tablet (was 1280px, then 1100px); text stays 14px as on tablets */
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 50px rgba(15, 20, 36, .14);
  padding-bottom: calc(64px + var(--safe-b));
  transition: max-width 0.2s ease;
}
@media (max-width: 899px) {
  .app { max-width: 760px; }
}
@media (max-width: 599px) {
  .app { max-width: 100%; box-shadow: none; }
}
@media (min-width: 560px) { body { background: radial-gradient(1400px 700px at 50% -10%, #2a3350, #0f1424 75%); } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: var(--ink); color: #fff; }
.topbar .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar .logo svg { height: 26px; width: auto; }
.topbar .logo .wm { font: 800 22px/1 var(--cond); color: #fff; letter-spacing: .01em; white-space: nowrap; }
.topbar .logo .wm em { font-style: normal; color: #ff4d4d; }
.topbar .logo .wm-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3232b; box-shadow: 0 0 0 4px rgba(227,35,43,.22); flex: none; }
.topbar .logo span { font: 600 10px/1 var(--cond); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.topbar .sp { flex: 1; }
.topbar .back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; text-decoration: none; }
.topbar .ttl { font: 700 17px var(--cond); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 0; background: linear-gradient(135deg, #ffd34d, var(--gold)); color: #3a2a00; font: 700 13px var(--cond); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.pro-btn.on { background: rgba(244,180,0,.16); color: var(--gold); border: 1px solid rgba(244,180,0,.45); }
.avatar-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: var(--ink-3); color: #fff; font: 700 13px var(--cond); display: grid; place-items: center; text-decoration: none; }

/* ---------- bottom nav ---------- */
.bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px; /* same width as .app */
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
@media (max-width: 899px) {
  .bnav { max-width: 760px; }
}
@media (max-width: 599px) {
  .bnav { max-width: 100%; }
}
.bnav a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; text-decoration: none; color: var(--text-3); font: 600 11px Inter, sans-serif; }
.bnav a svg { width: 22px; height: 22px; }
.bnav a[aria-current="page"] { color: var(--red); }

/* ---------- common ---------- */
.wrap { padding: 12px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; margin-bottom: 12px; }
.card h3 { margin: 0 0 10px; font: 700 17px var(--cond); letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.card h3 small { font: 500 12px Inter, sans-serif; color: var(--text-3); margin-left: auto; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; text-decoration: none; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:active { background: var(--red-2); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.gold { background: linear-gradient(135deg, #ffd34d, var(--gold)); border: 0; color: #3a2a00; }
.btn.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 99px; font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .03em; text-transform: uppercase; background: #f0f2f6; color: var(--text-2); white-space: nowrap; }
.pill.red { background: var(--red-soft); color: var(--red-2); } .pill.green { background: var(--green-soft); color: var(--green); } .pill.gold { background: var(--gold-soft); color: var(--gold-2); } .pill.ink { background: var(--ink); color: #fff; }
.pill.live { background: var(--red); color: #fff; } .pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty b { display: block; font: 700 18px var(--cond); color: var(--text); margin-bottom: 4px; }
.notice { margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: #6b4c00; font-size: 13px; border: 1px solid #f6dd94; }
.toast { position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 90%; }
.skel { background: linear-gradient(90deg, #e9ebf1, #f6f7fa, #e9ebf1); background-size: 200% 100%; animation: sk 1.1s linear infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- segmented tabs ---------- */
.seg { display: flex; background: #fff; border-radius: 12px; padding: 4px; gap: 4px; box-shadow: var(--sh); }
.seg button { flex: 1; height: 34px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 13px; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- home: match cards ---------- */
.hero-strip { background: var(--ink); color: #fff; padding: 4px 12px 16px; }
.hero-strip .seg { background: rgba(255,255,255,.08); box-shadow: none; }
.hero-strip .seg button { color: rgba(255,255,255,.7); }
.hero-strip .seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.mcard { display: block; background: #fff; border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 12px; text-decoration: none; overflow: hidden; position: relative; }
.mcard .top { display: flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 11.5px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.mcard .top .comp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mcard .mid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 14px 12px 12px; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team.r { flex-direction: row-reverse; text-align: right; }
.tlogo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 13px var(--cond); letter-spacing: .02em; color: #fff; background: var(--tc, var(--ink-3)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 2px 6px rgba(15,20,36,.2); }
.tlogo.sm { width: 28px; height: 28px; font-size: 10px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.tlogo.lg { width: 56px; height: 56px; font-size: 16px; }
.team b { font: 700 18px var(--cond); display: block; }
.team small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { text-align: center; }
.when .cd { font: 700 15px var(--cond); color: var(--red); white-space: nowrap; }
.when .t { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.mcard .bot { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f7f8fb; font-size: 11.5px; color: var(--text-2); }
.mcard .bot .sp { flex: 1; }
.lockmark { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-2); font-weight: 700; }

/* ---------- match header + tabs ---------- */
.mhead { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #3a0d12 100%); color: #fff; padding: 10px 14px 14px; }
.mhead .comp { font-size: 11.5px; color: rgba(255,255,255,.65); text-align: center; }
.mhead .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 10px; }
.mhead .team b { color: #fff; font-size: 20px; }
.mhead .team small { color: rgba(255,255,255,.6); }
.mhead .when .cd { color: #ff6b6b; font-size: 17px; }
.mhead .when .t { color: rgba(255,255,255,.6); }
.mhead .meta { margin-top: 10px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.mhead .meta .pill { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.mhead .meta .pill.gold { background: rgba(244,180,0,.18); color: #ffd34d; }
.mtabs { position: sticky; top: 56px; z-index: 25; display: flex; overflow-x: auto; scrollbar-width: none; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px -6px rgba(15,20,36,.3); }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs button { flex: none; height: 44px; padding: 0 14px; border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--text-3); border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 5px; }
.mtabs button[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.mtabs button .lk { font-size: 11px; color: var(--gold-2); }
.mtabs .gear { margin-left: auto; position: sticky; right: 0; background: linear-gradient(90deg, transparent, #fff 30%); padding-left: 18px; color: var(--text-2); font-size: 18px; }

/* ---------- locked ---------- */
.locked { position: relative; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; background: #fff; box-shadow: var(--sh); }
.locked .ghost { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; padding: 14px; }
.locked .ghost i { display: block; height: 12px; margin: 10px 0; border-radius: 6px; background: #d8dce6; }
.locked .ghost i:nth-child(2n) { width: 70%; } .locked .ghost i:nth-child(3n) { width: 85%; }
.lockcard { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.92) 45%); }
.lockcard .ic { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffd34d, var(--gold)); color: #3a2a00; font-size: 20px; box-shadow: 0 6px 16px -6px rgba(201,138,0,.7); }
.lockcard b { display: block; font: 700 18px var(--cond); }
.lockcard p { margin: 4px 0 12px; font-size: 13px; color: var(--text-2); }
.lockline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); border: 1px dashed #efc95a; font-size: 13px; color: #6b4c00; margin: 8px 0; }
.lockline .btn { margin-left: auto; }

/* ---------- player rows ---------- */
.ptools { display: grid; gap: 8px; margin-bottom: 10px; }
.roles { display: flex; background: #fff; border-radius: 12px; box-shadow: var(--sh); overflow: hidden; }
.roles button { flex: 1; min-width: 0; padding: 0 2px; white-space: nowrap; height: 40px; border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--text-3); border-bottom: 3px solid transparent; }
.roles button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--red); }
.plist { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.plist .hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; background: #f7f8fb; border-bottom: 1px solid var(--line); }
.prow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow.off { opacity: .45; }
.prow .who { flex: 1; min-width: 0; cursor: pointer; }
.prow .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .who small { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pav { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 13px var(--cond); color: #fff; background: var(--tc, var(--ink-3)); }
.pav .tm { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; font: 700 8.5px/13px Inter, sans-serif; background: var(--ink); color: #fff; letter-spacing: .02em; }
.pav .cv { position: absolute; top: -4px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 9px Inter, sans-serif; border: 2px solid #fff; }
.pav .cv.vc { background: #5a6378; }
.stats { display: flex; gap: 6px; flex: none; }
.stat { text-align: right; min-width: 34px; }
.stat b { display: block; font: 700 15px var(--cond); }
.stat small { display: block; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }
.score { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 6px; border-radius: 8px; font: 800 14px var(--cond); background: #f0f2f6; color: var(--text); }
.score.High { background: var(--green-soft); color: var(--green); } .score.Medium { background: var(--gold-soft); color: var(--gold-2); } .score.Low { background: #f1f2f5; color: var(--text-3); }
.tick { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; font-weight: 800; color: transparent; }
.tick[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.add { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--green); background: #fff; color: var(--green); font: 700 18px/1 Inter, sans-serif; display: grid; place-items: center; }
.add[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.form5 { display: inline-flex; gap: 3px; }
.form5 i { font-style: normal; min-width: 22px; height: 18px; padding: 0 3px; border-radius: 4px; display: grid; place-items: center; font: 700 10.5px Inter, sans-serif; background: #f0f2f6; color: var(--text-2); }
.form5 i.hi { background: var(--green-soft); color: var(--green); } .form5 i.lo { background: var(--red-soft); color: var(--red-2); }

/* ---------- KPI tiles, bars ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis.two { grid-template-columns: repeat(2, 1fr); }
.kpi { background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.kpi b { display: block; font: 700 21px/1.1 var(--cond); }
.kpi span { display: block; font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.kpi small { display: block; font-size: 11px; color: var(--text-2); }
.split { height: 10px; border-radius: 99px; background: #6c7aa0; overflow: hidden; display: flex; }
.split i { display: block; height: 100%; background: var(--red); }
.split-l { display: flex; justify-content: space-between; font-size: 12px; margin-top: 5px; color: var(--text-2); }
/* v8.63.1 head-to-head bar: red = first team, blue = second team, grey = no winner yet */
.split.h2h { background: #2f6fdd; }
.split.h2h.none { background: #e2e6ee; }
.split-l .sw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; vertical-align: middle; }
.split-l .sw-dot.a { background: var(--red); } .split-l .sw-dot.b { background: #2f6fdd; }
.wl { display: inline-flex; gap: 4px; }
.wl i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 11px Inter, sans-serif; font-style: normal; color: #fff; background: #9aa2b4; }
.wl i.w { background: var(--green); } .wl i.l { background: var(--red); }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { text-align: right; font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bullets { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; }

/* ---------- matchups ---------- */
.mu { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mu:last-child { border-bottom: 0; }
.mu .names { flex: 1; min-width: 0; }
.mu .names b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu .names small { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edge { flex: none; width: 92px; text-align: center; }
.edge .bar { height: 6px; border-radius: 99px; background: #e6e8ef; position: relative; overflow: hidden; }
.edge .bar i { position: absolute; top: 0; bottom: 0; }
.edge small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; }
.edge.bat small { color: var(--green); } .edge.bowl small { color: var(--red-2); } .edge.even small, .edge.ss small { color: var(--text-3); }
.grid-wrap { overflow: auto; max-height: 70vh; border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
table.grid th { position: sticky; top: 0; background: #fff; z-index: 2; padding: 6px 4px; font-weight: 700; min-width: 76px; max-width: 76px; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; border-bottom: 1px solid var(--line); font-size: 10.5px; vertical-align: bottom; }
table.grid th:first-child { left: 0; z-index: 3; }
table.grid td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid #f2f3f6; text-align: center; }
table.grid td:first-child { position: sticky; left: 0; background: #fff; text-align: left; padding: 6px 8px; font-weight: 700; z-index: 1; min-width: 108px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.grid .c { display: grid; padding: 5px 2px; min-height: 40px; align-content: center; font-variant-numeric: tabular-nums; }
table.grid .c b { font-size: 12px; } table.grid .c small { font-size: 9.5px; color: var(--text-3); }

/* ---------- ground (team preview) ---------- */
.ground { position: relative; border-radius: 16px; overflow: hidden; padding: 14px 8px 18px; color: #fff;
  background: radial-gradient(ellipse 40% 26% at 50% 50%, #c9b27a 0 46%, transparent 47%), repeating-linear-gradient(180deg, #2f8f45 0 34px, #2a8240 34px 68px); }
.ground::before { content: ""; position: absolute; left: 50%; top: 50%; width: 86%; height: 86%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.ground .lab { position: relative; text-align: center; font: 700 11px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); margin: 8px 0 6px; }
.ground .line { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
.gp { width: 72px; text-align: center; }
.gp .pav { margin: 0 auto; width: 44px; height: 44px; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.gp .nm { margin-top: 5px; display: inline-block; max-width: 72px; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp .pt { display: block; font-size: 10.5px; color: rgba(255,255,255,.9); margin-top: 1px; }
.builder-bar { position: sticky; top: 100px; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; margin: 0 -12px 10px; background: var(--ink); color: #fff; }
.builder-bar b { font: 700 20px var(--cond); }
.builder-bar small { display: block; font-size: 10.5px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.dots { display: flex; gap: 3px; }
.dots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.dots i.on { background: var(--red); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(10, 13, 25, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 8px 16px calc(18px + var(--safe-b)); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 4px auto 10px; }
.sheet h2 { margin: 0 0 4px; font: 700 22px var(--cond); }
.field { display: grid; gap: 5px; margin: 12px 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.field input { height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 17px; background: #fff; }
.field input:focus { outline: none; border-color: var(--ink); }
.mob { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.mob span { display: grid; place-items: center; padding: 0 12px; background: #f4f5f8; font-weight: 700; color: var(--text-2); }
.mob input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.otp { letter-spacing: .5em; text-align: center; font-weight: 800; }
.err { color: var(--red-2); font-size: 13px; margin-top: 6px; }
.testbox { background: #fff3cd; border: 1px dashed #e0b44a; color: #6b4c00; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; margin-top: 8px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle .grow small { display: block; color: var(--text-3); font-size: 12px; }
.sw { position: relative; width: 44px; height: 26px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: #cfd4df; transition: .15s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sw input:checked + i { background: var(--green); }
.sw input:checked + i::after { left: 21px; }
/* v8.63.1 Key insights on / off switch in the card header */
.ins-head { display: flex; align-items: center; gap: 6px; }
.ins-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.ins-switch .sw { transform: scale(.85); transform-origin: right center; }
.ins-card.off { padding-bottom: 12px; }

/* ---------- pro page ---------- */
.prohero { background: linear-gradient(160deg, var(--ink), #2a0c10); color: #fff; padding: 22px 16px 26px; text-align: center; }
.prohero .crown { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, #ffd34d, var(--gold)); color: #3a2a00; box-shadow: 0 10px 30px -8px rgba(244,180,0,.8); }
.prohero h1 { margin: 0; font: 800 28px var(--cond); letter-spacing: .01em; }
.prohero p { margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: 13.5px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -16px; padding: 0 12px; position: relative; }
.plan { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 16px 12px 14px; text-align: center; border: 2px solid transparent; cursor: pointer; }
.plan[aria-pressed="true"] { border-color: var(--red); }
.plan .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }
.plan b { display: block; font: 800 30px var(--cond); }
.plan b sup { font-size: 16px; vertical-align: 10px; }
.plan .nm { font-weight: 700; font-size: 13px; }
.plan small { display: block; color: var(--text-3); font-size: 11.5px; }
.feat { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feat:last-child { border-bottom: 0; }
.feat .i { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); font-size: 13px; }
.feat small { display: block; color: var(--text-3); font-size: 12px; }
.qr { display: grid; place-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 200px; height: 200px; margin: 10px auto; }
.copy { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f4f5f8; font-weight: 700; }
.foot { padding: 18px 16px 8px; text-align: center; font-size: 11.5px; color: var(--text-3); }
.foot a { color: var(--text-2); margin: 0 6px; }
.legal { font-size: 13.5px; line-height: 1.6; }
.legal h2 { font: 700 18px var(--cond); margin: 16px 0 4px; }
.builder-bar .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

/* ---------- site admin ---------- */
.adm .app { max-width: 1100px; }
.adm-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 56px; z-index: 20; scrollbar-width: none; }
.adm-tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 9px; border: 0; background: #f2f3f7; font-weight: 700; font-size: 13px; color: var(--text-2); }
.adm-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.adm-tabs .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; padding: 0 5px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.adm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 14px; }
.adm-form .field input, .adm-form .field select, .adm-form .field textarea { height: 42px; font-size: 14px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; width: 100%; }
.adm-form .field textarea { height: 70px; padding: 8px 12px; resize: vertical; }
.adm-form .field small { color: var(--text-3); font-size: 11.5px; }
/* v8.63.2 admin ticker rows: text · link · start · end · status · remove */
.tk-rows { display: grid; gap: 8px; }
.tk-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto auto auto auto; gap: 6px 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
.tk-row input { height: 38px; font-size: 13.5px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 9px; background: #fff; min-width: 0; width: 100%; }
.tk-row label { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--text-2); }
.tk-row label input { width: 190px; }
@media (max-width: 900px) {
  .tk-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tk-row > input { grid-column: 1 / -1; }
  .tk-row label { grid-column: 1 / -1; display: grid; grid-template-columns: 44px minmax(0, 1fr); }
  .tk-row label input { width: 100%; }
  .tk-row > .pill { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.warnbox { padding: 12px 14px; border-radius: 12px; background: #fff3cd; border: 1px solid #f0cf72; color: #6b4c00; font-size: 13px; margin-bottom: 12px; }
.warnbox.red { background: var(--red-soft); border-color: #f4a3a7; color: var(--red-2); }
.seclist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seclist label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; background: #fff; cursor: pointer; }
.seclist label:has(input:checked) { background: var(--gold-soft); border-color: #efc95a; color: #6b4c00; }
.seclist input { margin: 0; accent-color: var(--gold-2); }
table.t td.l, table.t th.l { text-align: left; }
.adm-form { align-items: start; }

/* v8.12 */
.card h3 { flex-wrap: wrap; row-gap: 2px; }
.card h3 small { white-space: normal; text-align: right; }
.guide { white-space: pre-wrap; line-height: 1.55; font-size: 14px; color: var(--text); margin: 0; }
.sub-h { font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 10px 0 2px; }
.expert-card { border-left: 3px solid var(--red, #e3232b); }
.kpis.two .kpi b { font-size: 20px; }
/* nothing ever wider than the screen */
html, body { max-width: 100%; overflow-x: hidden; }
.card, .ptools, .plist { min-width: 0; max-width: 100%; }
.card table { max-width: 100%; }
.mtabs { scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
.mtabs > * { scroll-snap-align: center; }
.ptools .chips { flex-wrap: wrap; overflow: visible; }
/* v8.13: readable grid cells */
table.grid .c b { color: #10131c; font-size: 12.5px; }
table.grid .c small { color: #3d4456; font-weight: 600; }
table.grid .c.dim { color: #b7bccb; }
.ps-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.ps-row .ps-l { flex: 0 0 62px; font: 700 10.5px Inter, sans-serif; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.ps-row .chips { flex: 1; min-width: 0; flex-wrap: wrap; overflow: visible; }
.ps-years { display: inline-flex; gap: 6px; }
.ps-t tr.pace td:first-child { border-left: 3px solid #e3232b; }
.ps-t tr.spin td:first-child { border-left: 3px solid #6b7aa1; }
.ps-t td:first-child { padding-left: 8px; }
.prow.bench { opacity: .62; }
.bench-hd { background: #fff6e6 !important; color: #8a5a00; }

/* v8.16 — player photos: own copy + a very light texture so they read as FenStats, not the source site */
.pav .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; border-radius: 50%; background: var(--tc, var(--ink-3)); filter: saturate(.88) contrast(1.05) sepia(.07); }
.pav .tex { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 1px, transparent 1px 5px), radial-gradient(circle at 30% 22%, rgba(255,255,255,.14), transparent 62%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc, #333) 55%, transparent); }
.pav.has-ph { color: transparent; }
.pav .tm, .pav .cv { z-index: 1; }

/* v8.16 — Players: last 5 matches, one by one, sideways scroll */
.l5scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #fff); }
table.l5 { border-collapse: separate; border-spacing: 0; min-width: 760px; width: 100%; font-size: 12px; }
table.l5 th, table.l5 td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; white-space: nowrap; }
table.l5 th { font: 700 11px Inter, sans-serif; color: var(--muted); background: var(--bg-2, #f5f6f9); position: sticky; top: 0; }
table.l5 .stick { position: sticky; left: 0; z-index: 2; background: var(--card, #fff); text-align: left; width: 150px; min-width: 150px; max-width: 150px; box-shadow: 1px 0 0 var(--line); cursor: pointer; vertical-align: middle; }
table.l5 th.stick { background: var(--bg-2, #f5f6f9); z-index: 3; }
table.l5 .l5who { display: flex; gap: 8px; align-items: center; }
table.l5 .l5who .pav { width: 34px; height: 34px; font-size: 11px; }
table.l5 .l5who .nm { min-width: 0; }
table.l5 .l5who .nm b { font: 700 13px Inter, sans-serif; white-space: normal; line-height: 1.2; }
table.l5 .l5who .nm small { color: var(--muted); white-space: normal; }
table.l5 td b { display: block; font: 800 16px var(--cond, Inter); }
table.l5 td small { display: block; font-size: 10.5px; line-height: 1.35; }
table.l5 td.hi b { color: #0a8f4a; } table.l5 td.lo b { color: #c8102e; }
table.l5 td.none { color: var(--muted); }
table.l5 td.avg { background: color-mix(in srgb, var(--red, #c8102e) 6%, transparent); }
.th-sort { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.th-sort.on { color: var(--red-2, #c8102e); }

/* v8.16 — site admin: Matches & locks, schedule-wise */
.ml-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 6px; }
.ml-search { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; }
.ml-sec { margin: 14px 0; }
.ml-sec > h3 { font: 800 15px var(--cond); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; display: flex; align-items: center; }
.ml-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.ml-dayh { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg-2, #f4f5f8); font: 700 12.5px Inter, sans-serif; color: var(--ink-2, #333); }
.ml-dayh span { background: var(--ink, #0f1424); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 11px; line-height: 18px; }
.ml-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.ml-time b { display: block; font: 800 15px var(--cond); }
.ml-time small { font-size: 11px; color: var(--muted); }
.ml-live { color: #dc2626; font-weight: 800; }
.ml-teams { font: 800 16px var(--cond); display: flex; gap: 6px; align-items: center; }
.ml-main .seclist { margin-top: 8px; }
.ml-lock { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.seg-mini { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-mini button { border: 0; background: #fff; padding: 6px 9px; font: 600 12px Inter, sans-serif; cursor: pointer; color: var(--ink-2, #333); }
.seg-mini button + button { border-left: 1px solid var(--line); }
.seg-mini button[aria-pressed="true"] { background: var(--ink, #0f1424); color: #fff; }
@media (max-width: 560px) { .ml-row { grid-template-columns: 60px 1fr; } .ml-lock { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* v8.17 C/VC checks */
.cvc-checks { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(127,127,127,.07); font-size: 12.5px; }
.cvc-last { margin-bottom: 4px; } .cvc-last span { font-weight: 700; }
.cvc-win { opacity: .7; font-size: 11.5px; margin-bottom: 6px; }
.cvc-row { display: grid; grid-template-columns: 18px 130px 1fr; gap: 6px; align-items: baseline; padding: 2px 0; }
.cvc-row.ok b { color: #16a34a; } .cvc-row.no b { color: #dc2626; } .cvc-row.na { opacity: .55; }
.cvc-row small { opacity: .85; }
.xi-why { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
@media (max-width: 480px) { .cvc-row { grid-template-columns: 18px 1fr; } .cvc-row small { grid-column: 2; } }
.pick-note { margin: 6px 0 0 32px; padding: 6px 10px; border-radius: 8px; background: rgba(250,204,21,.14); font-size: 13px; }

/* v8.17 team news */
.news-card .news-item { border-left: 4px solid #64748b; padding: 6px 10px; margin: 8px 0; border-radius: 8px; background: var(--bg-2, #f5f6f9); }
.news-card .news-item p { margin: 4px 0 0; font-size: 13.5px; }
.news-card .t-injury { border-left-color: #dc2626; } .news-card .t-doubtful { border-left-color: #d97706; } .news-card .t-confirmed { border-left-color: #16a34a; } .news-card .t-dropped { border-left-color: #7c3aed; }
.rel-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font: 700 10px Inter, sans-serif; background: #e0e7ff; color: #3730a3; vertical-align: middle; }
.cvc-tag { display: inline-block; margin-left: 6px; font: 700 10.5px Inter, sans-serif; padding: 1px 6px; border-radius: 6px; vertical-align: middle; } .cvc-tag.c { background: #fef3c7; color: #92400e; } .cvc-tag.vc { background: #e2e8f0; color: #334155; } .cvc-tag.gc { background: #ede9fe; color: #5b21b6; }

/* v1.3.0 feedback: loading bar, button states, coloured toasts */
#fs-busy { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; overflow: hidden; }
#fs-busy.on { opacity: 1; }
#fs-busy::before { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #22c55e, #16a34a, transparent); animation: fsbusy 1.1s ease-in-out infinite; }
@keyframes fsbusy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.fb-press { transform: scale(.96); transition: transform .08s; }
.fb-busy { cursor: progress; opacity: .85; }
.fb-busy::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 7px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fbspin .7s linear infinite; }
@keyframes fbspin { to { transform: rotate(360deg); } }
.fb-ok { box-shadow: 0 0 0 2px #22c55e !important; }
.fb-bad { box-shadow: 0 0 0 2px #ef4444 !important; animation: fbshake .3s; }
@keyframes fbshake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.toast[data-kind="ok"] { border-left: 4px solid #22c55e; }
.toast[data-kind="bad"] { border-left: 4px solid #ef4444; }
.toast[data-kind="ok"]::before { content: "✓ "; color: #4ade80; font-weight: 800; }
.toast[data-kind="bad"]::before { content: "✕ "; color: #f87171; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { #fs-busy::before, .fb-busy::after, .fb-bad { animation: none; } }
.checklist { display: grid; gap: 8px; }
.checklist .ck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); }
.checklist .ck .i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; background: #16a34a; }
.checklist .ck.todo .i { background: #f59e0b; }
.checklist .ck b { display: block; font-size: 13px; } .checklist .ck small { font-size: 12px; opacity: .8; }
/* v1.3.0 legal + no refund + first visit */
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--bg-2, #f5f5f4); cursor: pointer; }
.agree input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--red, #dc2626); }
.agree.shake { animation: fbshake .3s 2; outline: 2px solid #ef4444; }
.norefund { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 12.5px; line-height: 1.45; text-align: center; }
.norefund b { color: #c2410c; }
.legal .big-note { padding: 12px 14px; border-radius: 10px; background: #fff7ed; color: #7c2d12; border-left: 4px solid #f97316; }
.legal ul, .legal ol.rules { padding-left: 20px; } .legal ol.rules li, .legal ul li { margin: 6px 0; }
.legal .legal-links { margin-top: 18px; font-size: 13px; }
.legal-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.legal-tabs .chip { white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; } .legal-tabs .chip[aria-pressed="true"] { background: var(--ink, #111); color: #fff; border-color: transparent; }
.ack-list { display: grid; gap: 10px; margin: 6px 0 14px; }
.ack-list > div { display: flex; gap: 10px; align-items: flex-start; }
.ack-list > div > span { font-size: 20px; line-height: 1; }
.ack-list p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.maint { padding: 60px 20px; text-align: center; } .maint .big { font-size: 44px; } .maint p { max-width: 420px; margin: 8px auto 16px; }
.foot p b { color: inherit; }
/* v1.3.1 points table */
table.standings tr.me td { background: var(--green-soft, #dcfce7); }
table.standings td:nth-child(2), table.standings th:nth-child(2) { text-align: left; }
/* v8.63.1 Last 5 in the points table (W / L / NR) */
table.standings td.st-last5 { white-space: nowrap; }
.st-res { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 3px; margin-left: 2px; border-radius: 4px; font: 800 10px var(--cond); color: #fff; background: #94a3b8; }
.st-res.w { background: var(--green); } .st-res.l { background: var(--red); }
/* v1.4.0 vector icons */
.ic { display: inline-flex; width: 1.05em; height: 1.05em; vertical-align: -0.16em; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic.lg { width: 1.4em; height: 1.4em; } .ic.xl { width: 2em; height: 2em; }
/* series result */
.series-sum { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; } .series-sum b { font: 800 22px var(--cond, inherit); }
.series-teams { display: flex; gap: 8px; margin-bottom: 10px; } .series-teams > div { display: flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line-2, #ddd); border-radius: 12px; }
.series-teams > div b { font: 800 20px var(--cond, inherit); } .series-teams > div.me { border-color: var(--green, #16a34a); }
.series-list { display: grid; gap: 6px; } .series-list .row { gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg, #f5f5f4); align-items: flex-start; }
.series-list .sn { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2, #ddd); font-size: 11px; font-weight: 800; flex: none; }
.series-list .won { color: var(--green, #16a34a); font-weight: 700; }
/* v1.4.0 Playing XI status on My Team */
.xi-status { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; margin: 0 0 10px; }
.xi-status.ok { background: var(--green-soft, #dcfce7); color: var(--green, #15803d); }
.xi-status.bad { background: var(--red-soft, #fee2e2); color: var(--red-2, #b91c1c); }
.xi-status.wait { background: var(--bg, #f5f5f4); color: var(--muted, #667); }
.card.xi-bad { box-shadow: 0 0 0 2px var(--red-2, #dc2626) inset; }
.ground .gp.out { opacity: .45; filter: grayscale(1); } .ground .gp.out .nm { text-decoration: line-through; color: var(--red-2, #b91c1c); }
.ground .gp.in .nm::after { content: " ✓"; color: var(--green, #16a34a); font-weight: 800; }
/* v1.4.0 notifications */
.bell-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; margin-right: 6px; }
.bell-btn .ic { width: 18px; height: 18px; }
.bell-btn .dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red, #e11d2e); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.note-list { display: grid; gap: 6px; margin-bottom: 10px; }
.note { display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg, #f5f5f4); color: inherit; text-decoration: none; }
.note.new { background: var(--red-soft, #fee2e2); }
.note .ni { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; flex: none; }
.pro-btn .ic { vertical-align: -0.18em; }
/* v1.4.0 expert: stage tags + AI reasons */
.stage-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 99px; font: 700 11px var(--font, inherit); vertical-align: 2px; }
.stage-tag.final { background: var(--green-soft, #dcfce7); color: var(--green, #15803d); }
.stage-tag.pre { background: #fff7ed; color: #c2410c; }
.ai-why { margin-top: 12px; }
.why-row { border-bottom: 1px solid var(--line, #eee); }
.why-row > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.why-row > summary::-webkit-details-marker { display: none; }
.why-row > summary .who { flex: 1; min-width: 0; } .why-row .chev { transition: transform .2s; color: var(--muted, #888); }
.why-row[open] .chev { transform: rotate(180deg); }
.why-body { padding: 0 0 10px 46px; } .why-body li.op { color: var(--green, #15803d); } .why-body li.risk { color: var(--red-2, #b91c1c); }
/* v1.4.0 top pick detail */
.pick-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 8px 0 6px 32px; }
.pick-detail .pd { background: var(--bg, #f5f5f4); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; align-content: start; }
/* v8.63.5 normal case: uppercase turned "v AUS-W" into "V AUS-W" and shouted ground names */
.pick-detail .pd-h { font-size: 12.5px; font-weight: 750; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.pd-form { display: flex; flex-wrap: wrap; gap: 4px; } .fchip { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line, #eee); }
.fchip.hi { border-color: var(--green, #16a34a); color: var(--green, #15803d); } .fchip.lo { color: var(--red-2, #b91c1c); } .fchip sub { font-size: 9px; color: var(--muted, #888); }
.edge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; background: #cbd5e1; } .edge-dot.good { background: var(--green, #16a34a); } .edge-dot.bad { background: var(--red, #e11d2e); }
@media (max-width: 520px) { .pick-detail { margin-left: 0; } }
/* v1.4.0 venue verdict */
/* v8.22: the app column is max 520px wide, so the verdict always stacks (no side-by-side overflow) */
.vv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.vv-ill { max-width: 360px; width: 100%; margin: 0 auto; }
.pitch-svg { width: 100%; height: auto; display: block; }
.vv-label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .vv-label b { font: 800 24px var(--cond, inherit); }
.venue-verdict.t-bat .vv-label b { color: var(--green, #15803d); } .venue-verdict.t-bowl .vv-label b { color: var(--red-2, #b91c1c); } .venue-verdict.t-even .vv-label b { color: #b45309; }
.vv-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3, #667); margin: 4px 0 8px; }
/* v1.4.0 avatar team tag: one line, never covers the initials */
.pav .tm { white-space: nowrap; bottom: -6px; font-size: 8px; line-height: 12px; padding: 0 3px; max-width: 58px; overflow: hidden; text-overflow: clip; box-shadow: 0 0 0 1.5px #fff; }
.pav { margin-bottom: 4px; }
/* v1.4.0 admin */
.topbar .who { font-weight: 500; opacity: .7; font-size: 13px; }
.test-card.on { border: 2px solid #f59e0b; background: #fffbeb; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.chart-wrap { overflow-x: auto; margin-top: 12px; } .paychart { width: 100%; min-width: 460px; height: 140px; display: block; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-tile { border: 1px solid var(--line-2, #ddd); background: #fff; border-radius: 12px; padding: 10px; text-align: left; cursor: pointer; display: grid; gap: 2px; }
.st-tile b { font: 800 22px var(--cond, inherit); } .st-tile span { font-size: 12px; color: var(--text-3, #667); }
.st-tile.green b { color: var(--green, #16a34a); } .st-tile.gold b { color: #b45309; } .st-tile.red b { color: var(--red-2, #b91c1c); }
.st-tile.on { outline: 2px solid var(--ink, #111); }
.trig { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line, #eee); } .trig:last-child { border-bottom: 0; }
.filters { gap: 8px; align-items: center; } .filters input, .filters select { height: 38px; border-radius: 10px; border: 1.5px solid var(--line-2, #ddd); padding: 0 10px; }
.filters .grow { flex: 1 1 220px; }
table.t th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.t th.sortable::after { content: " ↕"; opacity: .35; font-size: 10px; }
table.t th[data-dir="asc"]::after { content: " ↑"; opacity: 1; } table.t th[data-dir="desc"]::after { content: " ↓"; opacity: 1; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; }
.okbox { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--green-soft, #dcfce7); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.danger-zone { border: 1px solid #fca5a5; }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.prof-grid > div { background: var(--bg, #f5f5f4); border-radius: 10px; padding: 8px 10px; } .prof-grid small { display: block; color: var(--text-3, #667); font-size: 11px; }
.prof-grid b { font-size: 14px; word-break: break-word; } .prof-grid b.dim { color: var(--text-3, #999); font-weight: 500; }
.coupon-box { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; padding: 6px 8px 6px 12px; border: 1.5px dashed var(--line-2, #ccc); border-radius: 12px; }
.coupon-box input { flex: 1; border: 0; outline: 0; font: 700 14px var(--font, inherit); background: transparent; min-width: 0; }
.coupon-ok { margin: -2px 0 10px; font-size: 13px; color: var(--green, #15803d); }

/* v8.22 brand: new logo mark + wordmark + tagline */
.topbar .logo .lm { height: 24px; width: auto; flex: none; display: block; overflow: visible; }
.topbar .logo .wm-box { display: grid; line-height: 1; gap: 4px; justify-items: start; min-width: 0; text-transform: none; letter-spacing: normal; color: #fff; font: inherit; }
.topbar .logo .wm-tag { font: 600 8.5px/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.62); white-space: nowrap; }
@media (max-width: 360px) { .topbar .logo .wm-tag { display: none; } }

/* v8.22 layout hardening: grids never overflow their card, long words wrap */
.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { min-width: 0; overflow-wrap: anywhere; }
.kpi b { overflow-wrap: anywhere; }
.vv-kpis .kpi span { letter-spacing: .02em; }
.card, .card h3 { min-width: 0; }
.card h3 small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
@media (max-width: 380px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wrap { padding: 10px; } .card { padding: 12px; } }
/* top picks: visible tap target */
.prow > summary::-webkit-details-marker { display: none; }
.prow > summary .chev { margin-left: auto; color: var(--text-3); display: grid; transition: transform .2s; }
.prow[open] > summary .chev { transform: rotate(180deg); }
/* match tabs: the settings gear never covers a tab */
.mtabs { padding-right: 6px; }
.mtabs .gear { flex: none; height: 44px; }
/* Pro: the tick box is easy to find */
.agree { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 8px 0 10px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; }
.agree input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--red); }
.agree.shake { border-color: var(--red); background: var(--red-soft); }
/* XI updated banner */
.xi-banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: #0b6b36; font-size: 13px; }
.xi-banner .ic { flex: none; margin-top: 2px; }
.xi-banner b { display: block; }

/* v1.5.2 Gmail login */
.or-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--text-3); font-size: 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.g-login { display: flex; justify-content: center; min-height: 44px; }

/* v8.36 cricket ground picture */
.ground-svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(15,23,42,.18)); }
.pitch-report p { line-height: 1.55; }

/* v8.36 team badges: full short code, small W for women's sides */
.tlogo { position: relative; letter-spacing: -.02em; }
.tlogo.long { font-size: .82em; }
.tlogo .tw { position: absolute; right: -2px; bottom: -2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 99px; background: #0b1220; color: #fff; font: 800 9px/16px Inter, sans-serif; font-style: normal; border: 2px solid #fff; text-align: center; }

/* v8.36 admin analytics */
.an-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; overflow-x: auto; }
.an-bar { flex: 1 0 18px; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.an-bar i { display: block; width: 100%; background: linear-gradient(180deg, #ef4444, #b91c1c); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.an-bar small { font-size: 9px; color: #64748b; white-space: nowrap; }
.an-heat { display: grid; gap: 3px; overflow-x: auto; }
.an-hrow { display: grid; grid-template-columns: 36px repeat(24, minmax(12px, 1fr)); gap: 3px; align-items: center; }
.an-hrow span { font-size: 11px; font-weight: 700; color: #475569; }
.an-hrow small { font-size: 9px; color: #94a3b8; text-align: center; }
.an-hrow i { display: block; height: 18px; border-radius: 4px; background: #dc2626; }

/* =====================================================================
   v8.36 premium skin (fantasy-app feel): deeper header, glossy team badges,
   lifted cards, clear active tab, tidy tables — light & dark
   (v8.63.1: this comment was never closed, so the whole skin below was switched off until now)
   ===================================================================== */
.tlogo {
  background: radial-gradient(110% 110% at 28% 22%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 35%, rgba(0, 0, 0, 0.28) 100%), var(--tc, var(--ink-3));
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.75), inset 0 -2px 3px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 4px 10px -2px rgba(15, 20, 36, 0.35), 0 1px 3px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 -0.5px 0 rgba(255, 255, 255, 0.35);
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tlogo:hover { transform: scale(1.04); }
/* v8.63.1 player initials badges: the same glossy, embossed finish as the team badges */
.pav {
  background: radial-gradient(110% 110% at 28% 22%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 36%, rgba(0, 0, 0, 0.26) 100%), var(--tc, var(--ink-3));
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.7), inset 0 -2px 3px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 3px 8px -2px rgba(15, 20, 36, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.mcard:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -18px rgba(15,20,36,.55); }
.mcard .top { background: linear-gradient(90deg, rgba(227,35,43,.07), rgba(227,35,43,0) 60%); }
.mcard .top .comp { color: var(--text); letter-spacing: .01em; }
.mcard .mid { padding: 16px 14px 14px; }
.mcard .when .cd { font-weight: 800; letter-spacing: .01em; }
.mcard .bot { background: linear-gradient(180deg, #f7f8fb, #f1f3f8); }
.mhead { background: radial-gradient(140% 90% at 50% -20%, #3a1220 0%, #1a0f1c 38%, #0f1424 75%); }
.mtabs { backdrop-filter: saturate(140%) blur(6px); }
.mtabs [role=tab][aria-selected="true"] { color: var(--red); }
.card { border: 1px solid rgba(15,20,36,.05); box-shadow: 0 1px 2px rgba(15,20,36,.05), 0 12px 26px -20px rgba(15,20,36,.4); border-radius: 16px; }
.card > h3 { position: relative; padding-left: 10px; }
.card > h3::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--red), #ff7a7f); }
.kpi { border-radius: 14px; }
table.t tbody tr:hover td { background: rgba(227,35,43,.035); }
table.t th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.scroll-x, .tscroll { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mcard .bot { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
}
:root[data-theme="dark"] .mcard .bot { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
/* v1.6.0 connection banner, help tickets, load more */
.netbar { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: #b45309; color: #fff; text-align: center; font: 600 13px/1.4 Inter, system-ui, sans-serif; padding: 7px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.netbar[hidden] { display: none; }
.ticket { border-top: 1px solid var(--line); padding: 10px 0; }
.ticket:first-child { border-top: 0; }
.ticket .reply { background: rgba(22,163,74,.08); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-top: 6px; }
.loadmore { display: flex; gap: 8px; justify-content: center; margin: 10px 0 4px; flex-wrap: wrap; }

/* v8.42 probable XI card (until the toss) */
.prob-xi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }

/* v1.6.2 lineup board — both teams side by side (fantasy-app style) */
.lb { padding: 12px 0 6px; overflow: hidden; }
.lb-title { display: flex; justify-content: space-between; align-items: baseline; padding: 0 12px 8px; }
.lb-title h3 { margin: 0; }
.lb-title small { color: var(--text-3); font-size: 11.5px; }
.lb-head { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.lb-team { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; }
.lb-team + .lb-team { border-left: 1px dashed var(--line-2); }
/* v8.63.3 logo and name on one line, vertically centred; the right team mirrored (name, then logo at the edge) */
.lb-team .tlogo.sm { width: 32px; height: 32px; }
.lb-team .lb-tn { min-width: 0; display: grid; gap: 1px; line-height: 1.1; }
.lb-team .lb-tn b { font: 800 17px/1.1 var(--cond); letter-spacing: .02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-team .lb-tn small { font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.lb-team.r { flex-direction: row-reverse; text-align: right; }
.lb-fold > summary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; background: var(--bg); list-style: none; cursor: pointer; font: 800 11.5px Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #c2410c; }
.lb-fold > summary::-webkit-details-marker { display: none; }
.lb-fold > summary small { font: 600 11px Inter, sans-serif; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.lb-fold > summary .chev { display: grid; place-items: center; color: var(--text-3); transition: transform .2s; }
.lb-fold[open] > summary .chev { transform: rotate(180deg); }
.lb-band { display: flex; justify-content: center; padding: 8px 0 6px; background: var(--bg); }
.lb-band span { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 12px; border-radius: 6px; color: #fff; }
.lb-band.ok span { background: var(--green); }
.lb-band.imp span { background: #7c3aed; }
.lb-band.bench span { background: #ea580c; }
.lb-band.prob span { background: #2563eb; }
.lb-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.lb-cell { display: grid; grid-template-columns: 34px 46px minmax(0, 1fr); /* v8.63.2 fixed widths: every avatar and name starts at the same place (BAT / BOWL / ALL) */ grid-template-areas: "n av who" "role av who"; align-items: center; column-gap: 8px; padding: 8px 10px; min-width: 0; cursor: pointer; transition: background .15s; }
.lb-cell:hover { background: var(--bg); }
.lb-cell + .lb-cell { border-left: 1px dashed var(--line-2); }
.lb-cell .lb-n { grid-area: n; font-family: var(--cond, inherit); font-weight: 800; font-size: 18px; color: var(--text-3); line-height: 1; min-width: 18px; text-align: center; }
.lb-cell .lb-role { grid-area: role; font-size: 9.5px; font-weight: 800; color: var(--text-3); letter-spacing: .03em; text-align: center; }
.lb-cell .pav { grid-area: av; }
.lb-cell .lb-who { grid-area: who; min-width: 0; }
.lb-cell .lb-who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cell .lb-who small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cell.bench { opacity: .62; }
.lb-cell.bench:hover { opacity: 1; }
.lb-cell.empty { cursor: default; color: var(--text-3); }
.lb-cell:not(:has(.lb-n)) { grid-template-areas: "role av who" "role av who"; }
.lb-cell .pav { justify-self: center; }
.lb-cell { height: 56px; box-sizing: border-box; }
@media (max-width: 420px) { .lb-cell { padding: 7px 6px; column-gap: 6px; grid-template-columns: 30px 40px minmax(0, 1fr); height: 52px; } .lb-cell .lb-who b { font-size: 12.5px; } .lb-cell .pav { transform: scale(.88); } }
/* bench rows in the player list: clearly apart */
.prow.bench { opacity: .6; }
.hd.bench-hd { background: #fff4ec; color: #c2410c; font-weight: 800; }
.plist .prow.in-xi { box-shadow: inset 3px 0 0 var(--green); }
.plist .prow.impact { box-shadow: inset 3px 0 0 #7c3aed; }
.plist .prow.bench { box-shadow: inset 3px 0 0 #ea580c; }
/* v1.6.4 Announced / Unannounced bands (Players tab, My Team builder) */
.sq-band { display: flex; justify-content: center; padding: 7px 0 5px; background: var(--bg); border-bottom: 1px solid var(--line); }
.sq-band span { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 12px; border-radius: 6px; color: #fff; }
.sq-band.ok span { background: var(--green); } .sq-band.imp span { background: #7c3aed; } .sq-band.bench span { background: #ea580c; }
/* v1.6.6 social links in the footer */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 10px 0 4px; }
.socials a { font-weight: 700; font-size: 13px; color: var(--text-2); text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.socials a:hover { color: var(--text); border-color: var(--text-3); }
/* v1.6.6 national flag badge */
.tlogo.flag { background-size: cover; background-position: center; color: transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.xtags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; } .xtag { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--text-2); }

/* ==========================================================================
   v8.65 Anti-Screenshot Shield & Pace/Spin Enhanced UI
   ========================================================================== */
body.shield-protect {
  user-select: none !important;
  -webkit-user-select: none !important;
}
@media print {
  body.shield-protect {
    display: none !important;
  }
}
.shield-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font: 700 12px var(--cond);
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.shield-toggle-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}
.shield-toggle-chip.on {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
}
.ic-pace-color {
  color: #38bdf8 !important;
}
.ic-spin-color {
  color: #c084fc !important;
}
.sub-tm {
  font-weight: 800;
  color: var(--text);
}
.sub-role {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-2);
}
.sub-role.wk {
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold);
}
.sub-role.bat {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}
.sub-role.ar {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}
.sub-role.bowl {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}
/* ---------- Vector Pace & Spin Colors ---------- */
.ic-pace-color, .ic-pace {
  color: #f59e0b !important;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.45));
}
.ic-spin-color, .ic-spin {
  color: #06b6d4 !important;
  filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.45));
}

/* ---------- Subline Badges (Replaces raw 'BH-W Wk #4') ---------- */
.subline-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.sub-badge.tm {
  background: var(--ink);
  color: #fff;
}
.sub-badge.role.wk {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.sub-badge.role.bat {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.sub-badge.role.ar {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.sub-badge.role.bowl {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.sub-badge.hand {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.sub-badge.bowl {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}
.sub-badge.pos {
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  border: 1px solid #a7f3d0;
}
.sub-badge.bench {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.sub-badge.impact {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

/* ---------- Weakness Badges ---------- */
.weak-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  white-space: nowrap;
}

/* ---------- Responsive Player Hub & Top Bar / Collapsible Filter ---------- */
.player-quick-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px;
}
.pq-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pq-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.tb-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-2);
  pointer-events: none;
}
.tb-search-input {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 36px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 13.5px;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15,20,36,0.04);
  transition: all 0.15s ease;
}
.tb-search-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,35,43,0.12);
}
.tb-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
}

.tb-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15,20,36,0.04);
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.tb-filter-btn:hover {
  background: #f8fafc;
  border-color: var(--line);
}
.tb-filter-btn.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tb-filter-btn.active {
  border-color: var(--red);
}
.tb-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  text-align: center;
}
.tb-chev {
  transition: transform 0.2s ease;
}
.tb-chev.up {
  transform: rotate(180deg);
}

.tb-view-pills {
  display: flex;
  background: rgba(15,20,36,0.05);
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
  width: 100%;
}
.tb-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.tb-pill.on {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15,20,36,0.1);
}

.active-chips-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(227,35,43,0.04);
  border-radius: 10px;
  border: 1px dashed rgba(227,35,43,0.25);
}
.clear-all-chip {
  color: var(--red) !important;
  font-weight: 700;
  background: rgba(227,35,43,0.08) !important;
}

.filter-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.fp-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text);
}
.fp-btns {
  display: flex;
  gap: 6px;
}
.close-btn {
  background: rgba(15,20,36,0.06);
}

.app-players-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}
.app-players-layout.filter-closed {
  grid-template-columns: 1fr;
}
.app-players-layout.filter-open {
  grid-template-columns: 1fr; /* v8.63.1 the page is tablet-wide on PC too (800px) → filters open above, as on tablets */
}
@media (max-width: 899px) {
  .app-players-layout.filter-open {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.app-side-filter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--sh);
  position: static;
}
@media (max-width: 899px) {
  .app-side-filter {
    position: static;
    padding: 14px;
    gap: 12px;
  }
}

.app-side-sec {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 12px/1 var(--cond);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-2);
  margin-bottom: 2px;
}
.app-side-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.app-side-pills button,
.app-side-pills .filter-pill {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.app-side-pills button[aria-pressed="true"],
.app-side-pills .filter-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.app-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease;
}
.app-search-input:focus {
  border-color: var(--ink);
  background: #fff;
}

.app-main-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Full Stats Table & Data Grids ---------- */
.data-full-table {
  width: 100%;
  white-space: nowrap;
  font-size: 12.5px;
  border-collapse: collapse;
}
.data-full-table th {
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text-2);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-full-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-full-table tbody tr:hover {
  background: rgba(15, 20, 36, 0.02);
}
.data-full-table td.stick,
.data-full-table th.stick {
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}
.data-full-table tbody tr:hover td.stick {
  background: #f8fafc;
}
/* v8.63.1 Player column: fixed width, name wraps, chips under the name (team is already on the photo) —
   it took ~40% of a phone screen and the Score column slid under it */
.data-full-table td.stick,
.data-full-table th.stick { width: 190px; min-width: 190px; max-width: 190px; white-space: normal; }
/* v8.63.1 Stats Table (pro look): grouped Batting / Bowling / By innings columns, right-aligned figures */
.dft thead th { font: 700 11.5px/1.2 var(--cond); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; }
.dft thead tr.dft-top th { padding-top: 10px; padding-bottom: 6px; border-bottom: 0; }
.dft thead tr.dft-top th.grp { text-align: left; color: var(--text); font-size: 12.5px; }
.dft thead tr.dft-top th.grp > * { vertical-align: middle; }
.dft thead tr.dft-top th.grp span:last-child { margin-left: 6px; }
.dft thead tr.dft-sub th { padding-top: 4px; font-size: 10.5px; }
.dft thead th.stick { vertical-align: bottom; text-transform: none; }
.dft td { padding: 9px 10px; font-size: 13px; }
.dft .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.dft .num.nil, .dft .nil { color: #b6bccb; font-weight: 400; }
.dft .num.good { color: var(--green); background: var(--green-soft); }
.dft .num.weak { color: var(--red-2); }
.dft .g0 { border-left: 1px solid var(--line); }
.dft tbody tr.dft-row { cursor: pointer; }
.dft td.inn { white-space: nowrap; }
.dft .inn-l { display: flex; align-items: center; gap: 5px; line-height: 1.5; }
.dft .inn-l b { font-variant-numeric: tabular-nums; }
.dft .inn-l small { color: var(--text-3); font-size: 11px; }
.dft .weak-list { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.fic { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.fic svg { width: 100%; height: 100%; display: block; }
.fic.sm { width: 18px; height: 18px; } .fic.xs { width: 13px; height: 13px; }
/* v8.63.1 wide tables on a PC: always-visible thin scrollbar, drag with the mouse, ◀ ▶ buttons on the sides */
.hs-wrap { position: relative; }
.l5scroll { scrollbar-width: thin; scrollbar-color: #c3c9d6 transparent; cursor: grab; padding-bottom: 2px; }
.l5scroll.dragging { cursor: grabbing; user-select: none; }
.l5scroll.dragging * { pointer-events: none; }
.l5scroll::-webkit-scrollbar { height: 8px; }
.l5scroll::-webkit-scrollbar-thumb { background: #c3c9d6; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.l5scroll::-webkit-scrollbar-track { background: transparent; }
.hs-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.96); color: var(--text); font: 700 22px/1 Inter, sans-serif; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px -4px rgba(15,20,36,.35); }
.hs-btn:hover { background: #fff; color: var(--red); }
.hs-btn.l { left: 196px; } .hs-btn.r { right: 6px; }
@media (max-width: 600px) { .hs-btn { display: none; } }
/* header rows that span both header lines sit on the lower line, like the column names */
.dft thead th[rowspan] { vertical-align: bottom; padding-bottom: 8px; }
.dft thead th.num[rowspan] { text-align: right; }
/* v8.63.1 table views (Form / Venue / Vs / Career) + periods, and the last-5 score strip */
.dft-lens, .dft-per { margin: 0 0 6px; flex-wrap: wrap; }
.dft-per .chip { padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
.dft td.l5s { white-space: nowrap; }
.l5strip { display: flex; gap: 5px; align-items: stretch; }
.l5c { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 66px; padding: 4px 6px; border-radius: 8px; background: linear-gradient(180deg, #fbfcfe, #f1f3f8); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff; line-height: 1.15; }
.l5c .l5l { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.l5c b { font: 700 13px var(--cond); font-variant-numeric: tabular-nums; color: var(--text); }
.l5c b sup { font-size: 9px; margin-left: 1px; top: -.45em; color: var(--text-2); }
.l5c small { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.l5c small.dnb { font-weight: 600; letter-spacing: .02em; }
.l5c.good { background: linear-gradient(180deg, #f2fbf5, var(--green-soft)); border-color: #9ad5b0; }
.l5c.good b, .l5c.good b sup { color: var(--green); }
.l5c.great { background: linear-gradient(180deg, #e3f6ea, #c9ecd6); border-color: #6cc293; }
.l5c.great b, .l5c.great b sup { color: #0b6e3a; }
.data-full-table .l5who { display: flex; gap: 8px; align-items: center; }
.data-full-table .l5who .nm { min-width: 0; }
.data-full-table .l5who .nm b { display: block; white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
.data-full-table .l5who .subline-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.data-full-table .l5who .sub-badge.tm { display: none; }
@media (max-width: 600px) {
  .data-full-table td.stick,
  .data-full-table th.stick { width: 150px; min-width: 150px; max-width: 150px; padding-left: 8px; padding-right: 8px; }
  .data-full-table .l5who .pav { width: 34px; height: 34px; font-size: 11px; flex: none; }
}

/* Innings-wise split table enhancements */
.innings-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.innings-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.innings-table-wrap th {
  background: #f1f5f9;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--text-2);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.innings-table-wrap td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Anti-Screenshot Shield Protected Mode ---------- */
body.shield-active {
  user-select: none !important;
  -webkit-user-select: none !important;
}
body.shield-active * {
  -webkit-touch-callout: none !important;
}
/* v8.63.2 footer links never break inside ("No refund" was split over two lines on phones) */
.foot a { white-space: nowrap; }
.foot > div:first-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; }

/* =====================================================================
   v8.63.1 mobile-first Players tab: 2 slim toolbar lines, filter drawer (left) + hanging tab,
   lineup marks (XI / bench / probable), smaller names on phones
   ===================================================================== */
.player-quick-bar { gap: 6px; margin: 4px 0 6px; }
.pq-row { gap: 8px; }
.tb-search-input, .tb-filter-btn { height: 38px; }
.pq-line { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px 0 3px; -webkit-overflow-scrolling: touch; }
.pq-line::-webkit-scrollbar { display: none; }
.pq-line .tb-view-pills { width: auto; flex: none; }
.pq-line .tb-pill { flex: none; padding: 6px 12px; }
.pq-div { flex: none; width: 1px; height: 20px; background: var(--line-2); margin: 0 2px; }
.chip.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.active-chips-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding: 0; background: none; border: 0; border-radius: 0; }
.active-chips-strip::-webkit-scrollbar { display: none; }
.active-chips-strip .chip { height: 26px; font-size: 11.5px; background: rgba(227,35,43,.06); border-color: rgba(227,35,43,.28); color: var(--red-2); }
.app-main-pane { display: block; }

/* filter drawer */
.fdrawer { position: fixed; inset: 0; z-index: 60; }
.fd-back { position: absolute; inset: 0; background: rgba(10,14,26,.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.fdrawer .fd-panel { position: absolute; top: 0; bottom: 0; left: max(0px, calc(50vw - 400px)); width: min(340px, 86vw); overflow-y: auto; border: 0; border-radius: 0 18px 18px 0; padding: 16px 16px calc(12px + var(--safe-b)); box-shadow: 12px 0 40px -12px rgba(0,0,0,.45); gap: 14px; }
.fdrawer.anim .fd-panel { animation: fdIn .22s ease-out; }
.fdrawer.anim .fd-back { animation: fdFade .22s ease-out; }
@keyframes fdIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fdFade { from { opacity: 0; } to { opacity: 1; } }
.fd-foot { position: sticky; bottom: -12px; display: flex; gap: 8px; padding: 12px 0 4px; margin-top: auto; background: linear-gradient(rgba(255,255,255,0), var(--card) 35%); }
.fd-foot .btn.red { flex: 1; }

/* hanging tab on the left edge */
.f-hang { position: fixed; left: max(0px, calc(50vw - 400px)); top: 62%; z-index: 45; width: 26px; height: 54px; padding: 0; border: 0; border-radius: 0 14px 14px 0; background: linear-gradient(180deg, #232b42, #0f1424); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 3px 4px 14px -4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.f-hang.on { background: linear-gradient(180deg, #ef3b43, #c8102e); }
.f-hang i { position: absolute; top: -6px; right: -7px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 99px; background: #fff; color: var(--red); font: 800 9.5px/17px Inter, sans-serif; font-style: normal; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* Playing XI / impact / bench bands inside the tables */
.xi-band-row td { padding: 6px 10px !important; background: #f4f6fa; border-bottom: 1px solid var(--line); }
.xi-band-row td span { position: sticky; left: 10px; display: inline-flex; align-items: center; gap: 7px; font: 800 11px var(--cond); letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.xi-band-row td span small { font: 600 11px Inter, sans-serif; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.xi-band-row td span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9aa3b5; }
.xi-band-row.ok td { background: linear-gradient(90deg, var(--green-soft), #f4f6fa 70%); }
.xi-band-row.ok td span { color: var(--green); }
.xi-band-row.ok td span::before { background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.xi-band-row.imp td span::before { background: #d4a017; }
tr.is-bench > td { opacity: .55; }
tr.is-bench > td.stick { opacity: 1; } tr.is-bench > td.stick .l5who { opacity: .55; }

/* lineup marks on the player badges */
.pav.xi-in { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--green), inset 0 1.5px 2px rgba(255,255,255,.7), inset 0 -2px 3px rgba(0,0,0,.35); }
.pav.xi-bench { filter: grayscale(.75); opacity: .6; }
.pav .xi-mk { position: absolute; top: -6px; left: -7px; z-index: 2; min-width: 18px; height: 15px; padding: 0 3px; border-radius: 8px; border: 1.5px solid #fff; background: var(--green); color: #fff; font: 800 8px/12px Inter, sans-serif; letter-spacing: .03em; text-align: center; text-shadow: none; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.pav .xi-mk.prob { background: #2f6fdd; }
.pav .xi-mk.imp { background: #b7791f; }

/* phones: smaller names and badges, more room for the numbers */
@media (max-width: 600px) {
  .prow .who b { font-size: 13px; }
  .data-full-table .l5who .nm b, table.l5 .l5who .nm b { font-size: 12px; }
  .subline-badges { gap: 3px; }
  .sub-badge { font-size: 9.5px; line-height: 13px; padding: 1px 5px; border-radius: 5px; gap: 3px; }
  .sub-badge .ic, .sub-badge .ic svg { width: 10px; height: 10px; }
  .dft td { padding: 8px 7px; font-size: 12.5px; }
  .dft thead th { padding: 7px 7px; }
  .tb-search-input { font-size: 13px; }
  .f-hang { width: 22px; height: 48px; border-radius: 0 12px 12px 0; }
  .f-hang .ic, .f-hang .ic svg { width: 14px; height: 14px; }
  .l5wrap > p.tiny { display: none; } /* the help line above the tables: on a phone the data comes first */
  .prow .subline-badges .sub-badge.tm { display: none; } /* the team is on the photo already */
  /* compact match header: smaller logos, the facts in ONE swipe line → the data starts higher */
  .mhead { padding: 8px 12px 10px; }
  .mhead .vs { margin-top: 6px; gap: 6px; }
  .mhead .tlogo.lg { width: 46px; height: 46px; font-size: 14px; }
  .mhead .team b { font-size: 17px; }
  .mhead .team small { font-size: 11px; }
  .mhead .when .cd { font-size: 15px; }
  .mhead .meta { margin-top: 8px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
  .mhead .meta::-webkit-scrollbar { display: none; }
  .mhead .meta .pill { flex: none; font-size: 10.5px; padding: 3px 8px; }
  .mhead .meta .pill .upd-d { display: none; }
  .mhead .meta { justify-content: center; }
  .plist .hd { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* =====================================================================
   v8.63.1 one size system — the same badge, logo and text sizes in every list and table
   ===================================================================== */
.pav, table.l5 .l5who .pav, .data-full-table .l5who .pav { width: 38px; height: 38px; font-size: 12.5px; flex: none; }
.gp .pav { width: 44px; height: 44px; }
.tlogo { width: 42px; height: 42px; font-size: 13px; }
.tlogo.sm { width: 28px; height: 28px; font-size: 10px; }
.tlogo.lg { width: 52px; height: 52px; font-size: 15px; }
/* the team is printed on the player's badge — never again as a chip next to the name */
.subline-badges .sub-badge.tm { display: none; }
/* names: one size everywhere */
.prow .who b, table.l5 .l5who .nm b, .data-full-table .l5who .nm b { font: 700 14px/1.25 Inter, sans-serif; }
.sub-badge { font-size: 10.5px; }
.sub-badge .ic, .sub-badge .ic svg { width: 12px; height: 12px; }
/* Last 5 table: same column widths, left-aligned figures, flat icons */
table.l5 .stick { width: 170px; min-width: 170px; max-width: 170px; }
table.l5 td.l5td { text-align: left; min-width: 118px; padding: 8px 10px; }
table.l5 td.l5td .l5l { display: flex; align-items: center; gap: 5px; line-height: 1.5; }
table.l5 td.l5td .l5l b { display: inline; font: 700 13.5px var(--cond); font-variant-numeric: tabular-nums; color: var(--text); }
table.l5 td.l5td .l5l b sup { font-size: 9px; color: var(--text-2); }
table.l5 td.l5td .l5l small { display: inline; font-size: 10.5px; color: var(--text-3); }
table.l5 td.l5td small.dnb { font-weight: 600; }
table.l5 td.l5td .l5opp { display: block; margin-top: 2px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
table.l5 td.l5td .l5pts { font: 800 16px var(--cond); margin-bottom: 2px; }
table.l5 th { text-align: left; }
table.l5 th.stick, table.l5 td.stick { text-align: left; }
@media (max-width: 600px) {
  .pav, table.l5 .l5who .pav, .data-full-table .l5who .pav { width: 36px; height: 36px; font-size: 12px; }
  .tlogo { width: 38px; height: 38px; font-size: 12px; }
  .tlogo.lg, .mhead .tlogo.lg { width: 46px; height: 46px; font-size: 14px; }
  .prow .who b, table.l5 .l5who .nm b, .data-full-table .l5who .nm b { font-size: 13px; }
  .sub-badge { font-size: 9.5px; }
  .sub-badge .ic, .sub-badge .ic svg { width: 10px; height: 10px; }
  table.l5 .stick, .data-full-table td.stick, .data-full-table th.stick { width: 148px; min-width: 148px; max-width: 148px; }
  table.l5 td.l5td { min-width: 108px; padding: 7px 8px; }
}/* v8.63.1 polish: bowling-type icons readable on phones; empty Last-5 cells aligned like the others */
.sub-badge .ic, .sub-badge .ic svg { width: 12px; height: 12px; }
table.l5 td.none { text-align: left; padding-left: 14px; color: #b6bccb; }
.plist .hd .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .sub-badge .ic, .sub-badge .ic svg { width: 12px; height: 12px; } }/* v8.63.1 small team badges (head to head, lists): the code fits, the W tag scales with the badge */
.tlogo.sm { width: 32px; height: 32px; font-size: 9.5px; letter-spacing: 0; }
.tlogo.sm .tw { min-width: 13px; height: 13px; padding: 0 2px; font-size: 7px; line-height: 10px; right: -4px; bottom: -4px; border-width: 1.5px; }
.tlogo.sm.long { font-size: 8.5px; }
/* =====================================================================
   v8.63.1 home ticker · partner apps · contact & support · suggestions grid · maintenance screen
   ===================================================================== */
.ticker { display: flex; align-items: stretch; margin: 10px 12px 0; height: 36px; border-radius: 12px; overflow: hidden; background: linear-gradient(90deg, #111827, #1c2337); color: #fff; box-shadow: 0 8px 20px -14px rgba(15,20,36,.8); }
.tk-lab { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; background: linear-gradient(135deg, #ef3b43, #c8102e); font: 800 11px var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.tk-win { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.tk-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tkMove 30s linear infinite; }
.ticker:hover .tk-track, .ticker:active .tk-track { animation-play-state: paused; }
.tk-run { display: flex; align-items: center; gap: 12px; padding-right: 40px; white-space: nowrap; font-size: 13px; font-weight: 600; }
.tk-run a { color: #ffd34d; text-decoration: underline; text-underline-offset: 2px; }
.tk-dot { color: rgba(255,255,255,.4); }
@keyframes tkMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .tk-win { overflow-x: auto; } }

/* partner apps */
.app-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: #fff; box-shadow: 0 2px 8px -2px rgba(15,20,36,.35), inset 0 0 0 1px rgba(15,20,36,.06); }
.app-logo.lg { width: 60px; height: 60px; border-radius: 16px; }
.app-logo.ph { display: grid; place-items: center; background: linear-gradient(135deg, #232b42, #0f1424); color: #fff; font: 800 15px var(--cond); }
/* v8.63.2 home strip: a short list, one row per app, every row the same height */
.apps-strip { padding: 12px 12px 6px; }
.as-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.as-head b { font: 800 16px var(--cond); letter-spacing: .02em; }
.as-head a { color: var(--red); font-weight: 700; text-decoration: none; }
.as-list { display: grid; }
.as-item { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 2px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); min-width: 0; }
.as-item:first-child { border-top: 0; }
.as-item .app-logo { width: 44px; height: 44px; }
.as-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.as-txt b { font: 700 15px/1.15 var(--cond); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-txt small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; min-width: 0; }
.as-txt small > span { overflow: hidden; text-overflow: ellipsis; }
.as-txt small em { font-style: normal; font-weight: 800; color: var(--text); letter-spacing: .04em; }
.as-badge { flex: none; padding: 1px 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-2); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; max-width: 120px; }
.as-go { flex: none; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--red-soft); color: var(--red-2); font: 800 13px var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.as-item:active .as-go { background: var(--red); color: #fff; }

/* v8.63.2 Apps page: dark header with the logo, ✓ features in two columns, codes side by side as big tap tiles */
.apps-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.apps-grid .app-card { margin: 0; }
.app-card { padding: 0; overflow: hidden; }
.ac-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: radial-gradient(120% 140% at 0% 0%, var(--ink-3) 0%, var(--ink) 62%); color: #fff; }
.ac-top .app-logo { box-shadow: 0 6px 16px -6px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.12); }
.ac-id { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.ac-name { margin: 0; font: 800 21px/1.1 var(--cond); letter-spacing: .01em; color: #fff; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 99px; background: linear-gradient(135deg, #ffd34d, var(--gold)); color: #3a2a00; font: 800 11.5px var(--cond); letter-spacing: .05em; text-transform: uppercase; max-width: 100%; white-space: nowrap; overflow: hidden; }
.ac-badge .ic { width: 11px; height: 11px; }
.ac-body { padding: 12px 14px 14px; display: grid; gap: 12px; }
.ac-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.ac-feat li { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.3; color: var(--text); min-width: 0; }
.ac-feat li span { min-width: 0; overflow-wrap: anywhere; }
.ac-feat li .ic { width: 15px; height: 15px; margin-top: 1px; padding: 2px; border-radius: 50%; background: var(--green-soft); color: var(--green); box-sizing: border-box; }
.ac-codes { display: grid; gap: 8px; }
.ac-codes.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-code { appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; display: grid; gap: 4px; padding: 9px 10px 10px 12px; border-radius: 12px; border: 1.5px dashed #c9cfdb; background: #f7f8fb; transition: border-color .15s, background .15s; }
.ac-code.deposit { border-color: #f0c45a; background: #fff9e8; }
.ac-code small { display: block; font-size: 10.5px; line-height: 13px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-cv { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ac-cv b { flex: 1; min-width: 0; font: 800 18px/22px var(--cond); letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-cp { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; font-weight: 700; }
.ac-cp em { font-style: normal; }
.ac-codes.n2 .ac-cp { width: 26px; padding: 0; justify-content: center; }
.ac-codes.n2 .ac-cp em { display: none; }
.ac-code:active { transform: scale(.985); }
.ac-code.done { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.ac-code.done .ac-cp { background: var(--green); border-color: var(--green); color: #fff; }
.ac-cta { height: 46px; font-size: 16px; font-family: var(--cond); font-weight: 800; letter-spacing: .03em; display: flex; align-items: center; justify-content: center; gap: 6px; }
.apps-note { text-align: center; margin: 4px 4px 0; }

/* contact & support */
.contact-card .ct-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.contact-card .ct-row:last-of-type { border-bottom: 0; }
.ct-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #fff1f1, #ffe1e2); color: var(--red); flex: none; }
.ct-row b { display: block; font-size: 14px; }
.ct-row small { display: block; font-size: 12px; color: var(--text-3); }
.ct-go { color: var(--text-3); font-size: 22px; line-height: 1; }

/* suggestions & complaints grid */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.help-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; text-align: left; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f7f8fb); cursor: pointer; color: var(--text); }
.help-cat:hover { border-color: var(--red); }
.help-cat .hc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eef1f6; color: var(--text-2); margin-bottom: 4px; }
.help-cat b { font-size: 14px; }
.help-cat small { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.help-cat.k-complaint .hc-ic { background: var(--red-soft); color: var(--red-2); }
.help-cat.k-data .hc-ic, .help-cat.k-feature .hc-ic { background: #eaf2ff; color: #2f6fdd; }
.help-cat.k-payment .hc-ic { background: #fff4d6; color: #9a6b00; }

/* maintenance */
.maint-pro { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(120% 80% at 50% 0%, #3a1220 0%, #1a0f1c 40%, #0f1424 80%); }
.mp-card { width: min(420px, 100%); text-align: center; padding: 28px 22px; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.mp-logo svg { height: 34px; width: auto; filter: invert(1) hue-rotate(180deg); }
.mp-ic { width: 64px; height: 64px; margin: 14px auto 8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #fff1f1, #ffe1e2); color: var(--red); animation: mpSpin 6s linear infinite; }
@keyframes mpSpin { to { transform: rotate(360deg); } }
.mp-card h2 { font: 800 24px var(--cond); margin: 6px 0; }
.mp-card p { color: var(--text-2); margin: 0 0 12px; }
.mp-until { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-bottom: 14px; border-radius: 99px; background: #fff4d6; color: #7a5300; font-weight: 700; font-size: 13px; }
.mp-contact { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.mp-contact a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
@media (prefers-reduced-motion: reduce) { .mp-ic { animation: none; } }/* v8.63.1 the ticker sits inside the dark home band (one block with the Upcoming / Live / Completed switch) */
.tk-wrap { background: var(--ink); padding: 10px 12px 6px; }
.tk-wrap .ticker { margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.topbar[hidden], .bnav[hidden] { display: none !important; }/* the red accent bar belongs to left-aligned card titles only (centred titles, e.g. the login card, had it floating) */
.card > h3[style*="justify-content: center"]::before { display: none; }
/* =====================================================================
   v8.63.2 same row height everywhere: names on one line (… when long), badges on one line (fade at the edge)
   ===================================================================== */
.data-full-table .l5who .nm, table.l5 .l5who .nm, .prow .who { min-width: 0; overflow: hidden; }
.data-full-table .l5who .nm b, table.l5 .l5who .nm b, .prow .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-full-table .l5who .subline-badges, table.l5 .l5who .subline-badges, .prow .subline-badges {
  display: flex; flex-wrap: nowrap; overflow: hidden; gap: 3px;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
}
.subline-badges .sub-badge { flex: none; }
.dft tbody tr.dft-row > td { height: 54px; padding-top: 6px; padding-bottom: 6px; }
table.l5 tbody tr:not(.xi-band-row) > td { height: 66px; padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.dft .score { min-width: 32px; height: 24px; font-size: 13px; }
.plist .prow { min-height: 60px; }
@media (max-width: 600px) {
  .data-full-table .l5who .nm b, table.l5 .l5who .nm b { font-size: 12.5px; }
  .prow .who b { font-size: 13px; }
  .dft tbody tr.dft-row > td { height: 52px; }
  table.l5 tbody tr:not(.xi-band-row) > td { height: 64px; }
  .pick-detail .fchip { font-size: 11px; }
  .bullets { font-size: 12.5px; }
}/* badge line: one fixed height (badges with a bowling icon were 2–5 px taller) */
.data-full-table .l5who .subline-badges, table.l5 .l5who .subline-badges, .prow .subline-badges { height: 17px; align-items: center; margin-top: 3px; }
.subline-badges .sub-badge { line-height: 13px; height: 17px; box-sizing: border-box; }
.subline-badges .sub-badge .ic, .subline-badges .sub-badge .ic svg { width: 11px; height: 11px; }/* the Last-5 boxes inside the Stats Table: one fixed size (an all-rounder's two lines made his row 5 px taller) */
.dft .l5c { height: 40px; padding: 2px 6px; box-sizing: border-box; gap: 0; }
.dft .l5c .l5l { line-height: 17px; height: 17px; }
/* =====================================================================
   v8.63.2 player toolbar: search + Filters button on one line; views · table lens · period as groups that wrap
   (nothing hides past the edge); no hanging tab on the left edge (it covered the players)
   ===================================================================== */
.pq-row { display: flex; align-items: center; gap: 8px; }
.pq-row .tb-filter-btn { height: 40px; padding: 0 12px; gap: 6px; border-radius: 12px; position: relative; }
.pq-row .tb-filter-btn.active { background: var(--red-soft); color: var(--red-2); border-color: rgba(227,35,43,.35); }
.pq-row .tb-filter-btn .tb-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 10.5px; line-height: 1; }
.pq-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; overflow: visible; padding: 0; }
.pq-g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.pq-g .tb-view-pills { width: auto; flex: none; }
.pq-g .tb-pill { flex: none; padding: 6px 12px; }
.pq-g + .pq-g { padding-left: 10px; border-left: 1px solid var(--line-2); }
.f-hang { display: none !important; }
@media (max-width: 600px) {
  .pq-row .tb-filter-btn .tb-fl { display: none; }
  .pq-row .tb-filter-btn { width: 44px; padding: 0; justify-content: center; }
  .pq-row .tb-filter-btn .tb-badge { position: absolute; top: -6px; right: -6px; }
  .pq-g + .pq-g { padding-left: 0; border-left: 0; }
  .pq-g .chip.sm { height: 30px; padding: 0 11px; }
}

/* =====================================================================
   v8.63.2 tables (Stats Table · Last 5): the player column — full name (short form on a phone) and one compact line:
   coloured role, then hand · bowling · #position as plain text, so no detail is cut off; every row the same height
   ===================================================================== */
table.l5 .stick, .data-full-table td.stick, .data-full-table th.stick { width: 224px; min-width: 224px; max-width: 224px; }
.l5who.tw { display: flex; align-items: center; gap: 9px; min-width: 0; }
.l5who.tw .pav { flex: none; }
.l5who.tw .nm { flex: 1; min-width: 0; display: grid; gap: 4px; overflow: visible; }
.data-full-table .l5who.tw .nm b, table.l5 .l5who.tw .nm b { display: block; font: 700 14px/18px Inter, system-ui, sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l5who.tw .nm b.ns { display: none; }
.tmeta { display: flex; align-items: center; height: 17px; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.tmeta > i { font-style: normal; display: inline-flex; align-items: center; gap: 2px; flex: none; }
.tmeta > i::before { content: "·"; margin: 0 5px; color: var(--text-3); font-weight: 800; }
.tmeta .ic, .tmeta .ic svg { width: 11px; height: 11px; }
.tm-role { flex: none; height: 17px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; line-height: 17px; letter-spacing: .03em; }
.tm-role.bat { background: #e0f2fe; color: #0369a1; } .tm-role.bowl { background: #dcfce7; color: #15803d; }
.tm-role.ar { background: #ede9fe; color: #6d28d9; } .tm-role.wk { background: #fef3c7; color: #b45309; }
.tm-role + i::before { content: none; } .tm-role + i { margin-left: 6px; }
.tmeta .tm-pos { color: #047857; font-weight: 800; }
.tmeta .tm-warn { color: #b91c1c; font-weight: 800; }
@media (max-width: 600px) {
  table.l5 .stick, .data-full-table td.stick, .data-full-table th.stick { width: 164px; min-width: 164px; max-width: 164px; padding-left: 8px; padding-right: 6px; }
  .l5who.tw { gap: 7px; }
  .l5who.tw .pav { width: 34px; height: 34px; font-size: 11px; }
  .l5who.tw .nm b.nf { display: none; }
  .data-full-table .l5who.tw .nm b.ns, table.l5 .l5who.tw .nm b.ns { display: block; font-size: 13px; }
  .tmeta { font-size: 10.5px; }
  .tmeta > i::before { margin: 0 3px; }
  .tm-role { padding: 0 4px; font-size: 9.5px; }
  .tm-role + i { margin-left: 4px; }
}

/* v8.63.2 full name / short name: one of the two, never both (specific enough to beat the older table rules) */
table.l5 .l5who.tw .nm b.ns, .data-full-table .l5who.tw .nm b.ns, .lb-cell .lb-who b.ns { display: none; }
@media (max-width: 600px) {
  table.l5 .l5who.tw .nm b.nf, .data-full-table .l5who.tw .nm b.nf, .lb-cell .lb-who b.nf { display: none; }
  table.l5 .l5who.tw .nm b.ns, .data-full-table .l5who.tw .nm b.ns, .lb-cell .lb-who b.ns { display: block; }
  table.l5 .stick, .data-full-table td.stick, .data-full-table th.stick { width: 176px; min-width: 176px; max-width: 176px; }
  .tmeta > i::before { content: none; }
  .tmeta > i { margin-left: 5px; }
  .tm-role + i { margin-left: 5px; }
  .tmeta .ic, .tmeta .ic svg { width: 10px; height: 10px; }
  .pq-g[aria-label="Period"] { gap: 4px; flex-wrap: nowrap; }
  .pq-g[aria-label="Period"] .chip.sm { height: 30px; padding: 0 8px; font-size: 12px; }
}

/* =====================================================================
   v8.63.2 (owner, phone) more room for the numbers: a one-line match header (details behind ▾), a small toolbar,
   a narrower player column, one-line Last-5 boxes and lower rows
   ===================================================================== */
.mhead.compact { padding: 8px 10px; }
.mh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.mh-row .team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mh-row .team.r { justify-content: flex-end; }
.mh-row .team b { font: 800 17px/1 var(--cond); color: #fff; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-row .tlogo.sm { width: 30px; height: 30px; flex: none; }
.mh-row .when { text-align: center; line-height: 1.1; }
.mh-row .when .cd { color: #ff6b6b; font: 800 15px var(--cond); }
.mh-row .when .t { color: rgba(255,255,255,.6); font-size: 11px; }
.mh-tog { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mh-tog .ic { transition: transform .2s; }
.mh-tog[aria-expanded="true"] .ic { transform: rotate(180deg); }
.mh-more { padding: 8px 2px 2px; text-align: center; }
.mh-more[hidden] { display: none; }
.mh-more .comp { font-size: 11.5px; color: rgba(255,255,255,.7); }
.mh-more .names { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600; margin-top: 2px; }
.mh-more .meta { margin-top: 8px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.mh-more .meta .pill { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); font-size: 10.5px; padding: 3px 8px; }

.player-quick-bar.compact { margin: 2px 0 8px; gap: 6px; }
.player-quick-bar.compact .pq-line { gap: 6px; }
.pq-g.pq-top { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
.pq-g.pq-top + .pq-g { padding-left: 0; border-left: 0; }
.player-quick-bar.compact .tb-view-pills { padding: 3px; }
.player-quick-bar.compact .tb-pill { padding: 4px 12px; font-size: 13px; }
.player-quick-bar.compact .tb-filter-btn { height: 34px; padding: 0 12px; border-radius: 10px; position: relative; font-size: 12.5px; }
.player-quick-bar.compact .tb-filter-btn.active { background: var(--red-soft); color: var(--red-2); border-color: rgba(227,35,43,.35); }
.player-quick-bar.compact .chip.sm { height: 26px; padding: 0 9px; font-size: 11.5px; }

.dft .l5c.one { flex-direction: row; align-items: center; gap: 6px; height: 26px; min-width: 0; padding: 0 7px; }
.dft .l5c.one .l5l { height: auto; line-height: 1; gap: 3px; }
.dft .l5c.one b { font-size: 13px; }
.dft .l5c.one .fic.xs, .dft .l5c.one .fic.xs svg { width: 11px; height: 11px; }
.dft .l5strip { gap: 4px; }
.dft tbody tr.dft-row > td { height: 48px; padding-top: 4px; padding-bottom: 4px; }

table.l5 td.l5td .l5l.one { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
table.l5 td.l5td .l5p { display: inline-flex; align-items: center; gap: 3px; }
table.l5 td.l5td .l5p + .l5p small:not(.dnb) { display: none; }
table.l5 tbody tr:not(.xi-band-row) > td { height: 50px; padding-top: 4px; padding-bottom: 4px; }

@media (max-width: 600px) {
  table.l5 .stick, .data-full-table td.stick, .data-full-table th.stick { width: 132px; min-width: 132px; max-width: 132px; padding-left: 6px; padding-right: 4px; }
  .l5who.tw { gap: 5px; }
  .l5who.tw .pav { width: 26px; height: 26px; font-size: 9px; }
  .l5who.tw .pav .tm { font-size: 6.5px; padding: 0 2px; bottom: -5px; }
  .l5who.tw .pav .xi-mk { transform: scale(.75); transform-origin: top left; }
  .data-full-table .l5who.tw .nm b.ns, table.l5 .l5who.tw .nm b.ns { font-size: 12px; line-height: 15px; }
  .l5who.tw .nm { gap: 2px; }
  .tmeta { font-size: 9.5px; height: 14px; }
  .tm-role { font-size: 8.5px; height: 14px; line-height: 14px; padding: 0 3px; border-radius: 4px; }
  .tmeta > i, .tm-role + i { margin-left: 4px; }
  .tmeta .ic, .tmeta .ic svg { width: 9px; height: 9px; }
  .dft tbody tr.dft-row > td { height: 44px; }
  table.l5 tbody tr:not(.xi-band-row) > td { height: 46px; }
  table.l5 td.l5td { min-width: 96px; padding: 4px 7px; }
  .mh-row .team b { font-size: 16px; }
}
@media (max-width: 600px) {
  /* v8.63.2 beats the older ".pav, table.l5 .l5who .pav" sizes */
  table.l5 .l5who.tw .pav, .data-full-table .l5who.tw .pav { width: 28px; height: 28px; font-size: 9.5px; }
  table.l5 .l5who.tw .pav .tm, .data-full-table .l5who.tw .pav .tm { font-size: 6.5px; line-height: 9px; padding: 0 2px; }
}
@media (max-width: 600px) { .tmeta .ic { display: none; } } /* v8.63.2 phone: the style text (RM / OB) stays, the small icon goes — #position fits */
.mh-row .team.r { flex-direction: row; } /* v8.63.2 right team: NEP then its logo (mirror of the left side) */

/* =====================================================================
   v8.63.3 Last 5 as plain text (owner): no box behind a match, no bat / ball icons — the figure bold and coloured,
   balls / overs small next to it. Stats Table column and the Last 5 view use the same lines.
   ===================================================================== */
.dft td.l5s { padding: 4px 10px; min-width: 78px; vertical-align: middle; }
.dft td.l5s + td.l5s { border-left: 1px solid #f0f2f6; }
.l5m { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.l5ln { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; line-height: 15px; }
.l5ln .l5v { display: inline; font: 700 14px/15px var(--cond); font-variant-numeric: tabular-nums; color: var(--text); }
.l5ln .l5v sup { font-size: 9px; margin-left: 1px; color: inherit; }
.l5ln .l5v.good { color: #15803d; }
.l5ln .l5v.great { color: #0b6e3a; font-weight: 800; }
.l5ln .l5v.poor { color: var(--red-2); }
.l5ln small { display: inline; font: 500 11px/15px Inter, sans-serif; color: var(--text-3); font-variant-numeric: tabular-nums; }
.l5ln small.dnb { font-weight: 600; color: #a7aebd; letter-spacing: .02em; }
/* the Last 5 view: beats the older "table.l5 td b / small { display: block }" rules */
table.l5 td.l5td .l5lines { display: grid; gap: 2px; margin: 1px 0 3px; }
table.l5 td.l5td .l5ln b.l5v { display: inline; font: 700 14.5px/16px var(--cond); color: var(--text); }
table.l5 td.l5td .l5ln b.l5v.good { color: #15803d; }
table.l5 td.l5td .l5ln b.l5v.great { color: #0b6e3a; font-weight: 800; }
table.l5 td.l5td .l5ln b.l5v.poor { color: var(--red-2); }
table.l5 td.l5td .l5ln small { display: inline; font-size: 11px; line-height: 16px; }
table.l5 td.l5td .l5opp { margin-top: 0; font-size: 10.5px; color: var(--text-3); }
table.l5 td.l5td .l5opp .rel-tag { margin-left: 4px; }
table.l5 tbody tr:not(.xi-band-row) > td { height: 60px; vertical-align: middle; }
table.l5 td.avg { text-align: right; }
/* table headers: one style for both tables — small caps, aligned with the figures under them, groups centred and underlined */
.dft thead th, table.l5 thead th { font: 700 11px/1.25 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); background: #f6f7fa; }
table.l5 thead th { padding: 9px 10px; border-bottom: 1px solid var(--line-2); }
table.l5 thead th.num { text-align: right; }
.dft thead th .th-sort, table.l5 thead th .th-sort { font: inherit; letter-spacing: inherit; text-transform: none; font-weight: 800; font-size: 12.5px; }
.dft thead tr.dft-top th.grp { text-align: center; color: var(--text); font-size: 11.5px; letter-spacing: .08em; padding-bottom: 4px; }
.dft thead tr.dft-top th.grp span { display: block; padding-bottom: 4px; border-bottom: 2px solid var(--line-2); margin: 0 4px; }
.dft thead tr.dft-top th.grp span:last-child { margin-left: 4px; }
.dft thead tr.dft-sub th { border-bottom: 1px solid var(--line-2); color: var(--text-3); }
.dft thead th.l5h { text-align: left; }
@media (max-width: 600px) {
  .dft td.l5s { min-width: 72px; padding: 4px 8px; }
  .l5ln .l5v { font-size: 13.5px; }
  .l5ln small { font-size: 10.5px; }
  table.l5 tbody tr:not(.xi-band-row) > td { height: 58px; }
  table.l5 td.l5td { min-width: 100px; }
}

/* =====================================================================
   v8.63.3 Matchups: one verdict colour per pair — red only when the bowler got the batter out 2+ times
   ===================================================================== */
.mu-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11px/1 Inter, sans-serif; white-space: nowrap; flex: none; border: 1px solid transparent; }
.mu-tag.bowl { background: #fde8e9; color: #b9141c; border-color: #f6c3c6; }
.mu-tag.bowl.strong { background: #b9141c; color: #fff; border-color: #b9141c; }
.mu-tag.bat { background: #e3f7ec; color: #0b7a3b; border-color: #b6e5c9; }
.mu-tag.bat.strong { background: #0b7a3b; color: #fff; border-color: #0b7a3b; }
.mu-tag.slow { background: #fff4d6; color: #8a5a00; border-color: #f3dc9b; }
.mu-tag.even { background: #f1f3f7; color: #5a6378; border-color: #e1e4eb; }
.mu-tag.few { background: #fff; color: #8e96a8; border-color: #e1e4eb; }
.mu-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.mu-legend small { flex-basis: 100%; font-size: 11px; color: var(--text-3); }
.mu.mu2 { cursor: pointer; background: #fff; }
.mu.mu2 .names small b { display: inline; font-size: 12px; color: var(--text); font-weight: 700; }
.mu.mu2.bowl { box-shadow: inset 3px 0 0 #e3232b; }
.mu.mu2.bat { box-shadow: inset 3px 0 0 #12a150; }
.mu.mu2.slow { box-shadow: inset 3px 0 0 #e0a800; }
.mu-verdict { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
.mu-verdict b { font: 800 16px var(--cond); }
.mu-verdict span { font-size: 12.5px; color: var(--text-2); }
.mu-verdict.bowl { background: #fde8e9; border-color: #f6c3c6; } .mu-verdict.bowl b { color: #b9141c; }
.mu-verdict.bat { background: #e3f7ec; border-color: #b6e5c9; } .mu-verdict.bat b { color: #0b7a3b; }
.mu-verdict.slow { background: #fff4d6; border-color: #f3dc9b; } .mu-verdict.slow b { color: #8a5a00; }
/* the grid */
.mu-gridcard { padding: 12px; }
.mu-grid { box-shadow: none; border: 1px solid var(--line); border-radius: 12px; max-height: 72vh; }
.mu-grid table.grid th { min-width: 78px; max-width: 78px; padding: 8px 4px 6px; background: #f6f7fa; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: bottom; }
.mu-grid table.grid th b { display: block; font: 700 11.5px/1.2 Inter, sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-grid table.grid th small { display: block; margin-top: 2px; font: 600 10px Inter, sans-serif; color: var(--text-3); }
.mu-grid table.grid th.corner { left: 0; z-index: 4; min-width: 104px; max-width: 104px; text-align: left; padding-left: 10px; }
.mu-grid table.grid th.corner span { display: block; font: 700 10.5px var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.mu-grid table.grid td:first-child { min-width: 104px; max-width: 104px; padding: 6px 10px; font: 700 12.5px Inter, sans-serif; background: #fff; box-shadow: 1px 0 0 var(--line); }
.mu-grid table.grid td { border-right: 1px solid #eef0f4; }
.mu-grid table.grid .c { display: grid; gap: 1px; padding: 6px 2px; min-height: 54px; align-content: center; cursor: pointer; }
.mu-grid table.grid .c b { font: 800 14px/1.1 var(--cond); color: var(--text); }
.mu-grid table.grid .c b small { font: 600 10.5px Inter, sans-serif; color: var(--text-3); }
.mu-grid table.grid .c .o { font: 700 10.5px Inter, sans-serif; color: var(--text-2); }
.mu-grid table.grid .c .o.hi { color: #b9141c; font-weight: 800; }
.mu-grid table.grid .c .sr { font: 600 9.5px Inter, sans-serif; color: var(--text-3); }
.mu-grid table.grid .c.none { color: #c3c8d4; min-height: 54px; cursor: default; }
.mu-grid table.grid .c.v-few { opacity: .55; }
.mu-grid table.grid .c.v-even { background: #f7f8fa; }
.mu-grid table.grid .c.v-slow { background: #fff6dc; }
.mu-grid table.grid .c.v-slow .sr { color: #8a5a00; font-weight: 800; }
.mu-grid table.grid .c.v-bat { background: #e3f7ec; }
.mu-grid table.grid .c.v-bat b, .mu-grid table.grid .c.v-bat .sr { color: #0b7a3b; }
.mu-grid table.grid .c.v-bat.strong { background: #b9ebcd; }
.mu-grid table.grid .c.v-bowl { background: #fde8e9; }
.mu-grid table.grid .c.v-bowl b { color: #b9141c; }
.mu-grid table.grid .c.v-bowl.strong { background: #f9c7ca; }

/* v8.63.3 head to head / recent matches: the winner's score bold green, the loser's muted, the winner's name in a green pill */
td.h2h-sc { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.h2h-sc.win { font-weight: 800; color: #0b7a3b; }
td.h2h-sc.lose { color: var(--text-3); }
.win-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 4px; border-radius: 99px; background: var(--green-soft); color: #0b7a3b; font: 800 11.5px Inter, sans-serif; white-space: nowrap; }
.win-pill .tlogo.xs { width: 16px; height: 16px; font-size: 6px; box-shadow: none; }
.win-pill:not(:has(.tlogo)) { padding-left: 8px; }

/* v8.63.3 partner apps on the home page: full cards, one under the other */
.home-apps { margin: 6px 0 14px; display: grid; gap: 12px; }
.home-apps .ha-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.home-apps .ha-head b { font: 800 18px var(--cond); color: var(--text); }
.home-apps .ha-head small { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
/* v8.63.3 player views: name + caption in each pill, and a line that says what the view shows */
.tb-view-pills.two .tb-pill { display: grid; justify-items: center; gap: 0; line-height: 1.1; padding: 5px 12px; }
.tb-view-pills.two .tb-pill b { font: 800 14px/1.15 var(--cond); letter-spacing: .02em; }
.tb-view-pills.two .tb-pill small { font-size: 9.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.tb-view-pills.two .tb-pill.on small { color: var(--red-2); }
.pq-hint { margin: 2px 2px 0; font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
@media (max-width: 600px) { .tb-view-pills.two .tb-pill { padding: 4px 9px; } }
.home-apps { max-width: 480px; margin-left: auto; margin-right: auto; gap: 10px; }
.hac { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: 10px 12px 12px; display: grid; gap: 9px; }
.hac-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hac-top .app-logo { width: 42px; height: 42px; border-radius: 11px; }
.hac-id { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.hac-id b { max-width: 100%; font: 800 17px/1.1 var(--cond); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hac-id .ac-badge { height: 18px; padding: 0 7px; font-size: 10px; }
.hac-dl { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--red); color: #fff; font: 800 13.5px var(--cond); letter-spacing: .03em; text-decoration: none; }
.hac-dl:active { background: var(--red-2); }
.hac-feat { display: flex; flex-wrap: wrap; gap: 5px; }
.hac-feat > span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: #f3f5f8; color: var(--text-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hac-feat .ic { width: 11px; height: 11px; color: var(--green); }
.hac-codes .ac-code { padding: 6px 8px 7px 10px; border-radius: 10px; gap: 2px; }
.hac-codes .ac-code small { font-size: 9.5px; line-height: 12px; }
.hac-codes .ac-cv b { font-size: 15px; line-height: 18px; }
.hac-codes .ac-cp { height: 22px; }
.hac-codes.n2 .ac-cp { width: 22px; }
.home-apps .apps-note { margin: -2px 2px 0; text-align: center; }

/* v8.63.3 matchups list in verdict groups */
.mu-area-h { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 8px; }
.mu-area-h b { font: 800 18px var(--cond); color: var(--text); }
.mu-area-h small { font-size: 11.5px; color: var(--text-3); }
.mu-sec { margin: 0 0 10px; background: #fff; border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.mu-sec-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); list-style: none; cursor: default; }
summary.mu-sec-h { cursor: pointer; }
summary.mu-sec-h::-webkit-details-marker { display: none; }
details.mu-sec:not([open]) > .mu-sec-h { border-bottom: 0; }
.mu-sec-h small { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-sec-h .mu-n { font: 800 15px var(--cond); color: var(--text-2); }
.mu-sec-h .chev { display: grid; place-items: center; color: var(--text-3); transition: transform .2s; }
details.mu-sec[open] > .mu-sec-h .chev { transform: rotate(180deg); }
.mu-sec .mu-plist { margin: 0; border-radius: 0; box-shadow: none; }
.mu-sec .mu.mu2 { padding: 9px 12px; }
.mu-sec .mu.mu2 .mu-tag { display: none; } /* the group says it already */
.mu-sec .mu-more { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fafbfc; min-height: 38px; font-weight: 700; color: var(--text-2); }
.mu-sec.bowl .mu-sec-h { background: linear-gradient(90deg, #fdf1f2, #fff 60%); }
.mu-sec.bat .mu-sec-h { background: linear-gradient(90deg, #eef9f3, #fff 60%); }
.mu-sec.slow .mu-sec-h { background: linear-gradient(90deg, #fff8e6, #fff 60%); }

/* =====================================================================
   v8.63.3 Admin → Matches & locks: FEN app status, Playing XI state per match and the XI editor
   ===================================================================== */
.warnbox.green { background: var(--green-soft); border-color: #9ad5b0; color: #0b6e3a; }
.ml-xi { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.ml-xi .btn.sm { min-height: 26px; padding: 0 10px; font-size: 12px; }
.xi-sheet { max-width: 820px; }
.xi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.xi-top h2 { margin: 0; }
.xi-health { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fbfcfd; }
.xi-hrow { display: flex; flex-wrap: wrap; gap: 5px; }
.xi-warn { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--red-2); }
.xi-warn li + li { margin-top: 3px; }
.xi-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xi-team { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.xi-th { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #f6f7fa; border-bottom: 1px solid var(--line); }
.xi-th b { font: 800 16px var(--cond); }
.xi-p { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #f0f2f6; }
.xi-p.in { background: #f2fbf6; }
.xi-p.imp { background: #fff8e6; }
.xi-n { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font: 800 13px var(--cond); color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.xi-p.in .xi-n { background: var(--green); border-color: var(--green); color: #fff; }
.xi-who { flex: 1; min-width: 0; cursor: pointer; }
.xi-who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xi-who small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xi-nd { color: var(--red-2); font-weight: 700; }
.xi-tag { flex: none; height: 24px; min-width: 30px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; font: 700 11px Inter, sans-serif; color: var(--text-2); cursor: pointer; }
.xi-tag.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.xi-add { display: flex; gap: 6px; padding: 8px; }
.xi-add input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; }
.xi-add select { height: 32px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; }
.xi-foot { position: sticky; bottom: -18px; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; margin-top: 12px; background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .xi-teams { grid-template-columns: 1fr; } }

/* ===== v8.63.5 venue tab: recent matches in words, weather in plain words ===== */
table.t.recent-here { width: 100%; table-layout: fixed; }
table.t.recent-here th:first-child, table.t.recent-here td:first-child { text-align: left; }
table.t.recent-here td { vertical-align: top; }
table.t.recent-here tr.rh-date td { padding-top: 10px; padding-bottom: 0; border-bottom: 0; font-size: 11.5px; font-weight: 700; color: var(--text-3); text-align: left; }
table.t.recent-here tr.rh-row td { padding-top: 2px; }
.recent-here .rh-team, .recent-here .rh-win { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.recent-here td:last-child .rh-team, .recent-here td:last-child .rh-win { align-items: flex-end; }
.recent-here .rh-team span { font-size: 12.5px; color: var(--text-2); }
.recent-here .rh-team b { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.recent-here .rh-win span { font-size: 12.5px; color: #0b7a3b; font-weight: 700; }
.recent-here .rh-win b { font-variant-numeric: tabular-nums; font-weight: 800; color: #0b7a3b; }
.recent-here .rh-won { color: #0b7a3b; }
.wx-card .wx-sum { margin: 2px 0 10px; font-size: 15px; font-weight: 700; color: var(--text); }
.wx-card .kpi small { line-height: 1.3; }
.wx-card .wx-h { margin: 14px 0 6px; font-size: 12.5px; font-weight: 750; color: var(--text-2); }
.wx-card .wx-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.wx-card .wx-hour { flex: none; min-width: 78px; display: grid; justify-items: center; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.wx-card .wx-hour span { font-size: 12px; color: var(--text-3); font-weight: 700; }
.wx-card .wx-hour b { font-size: 17px; }
.wx-card .wx-hour small { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.wx-card .wx-hour.wet { border-color: #93c5fd; background: rgba(59, 130, 246, .07); }
:root[data-theme="dark"] .recent-here .rh-win span, :root[data-theme="dark"] .recent-here .rh-win b, :root[data-theme="dark"] .recent-here .rh-won { color: #4ade80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .recent-here .rh-win span, :root:not([data-theme="light"]) .recent-here .rh-win b, :root:not([data-theme="light"]) .recent-here .rh-won { color: #4ade80; } }
.recent-here .rh-won { font-style: normal; font-size: 11px; font-weight: 800; }

/* v1.6.36 My Team: several teams → a short card each (C · VC · players from each side · eye opens the full team) */
.mt-card h3 { margin-bottom: 8px; }
.mt-sum { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.mt-cvs { display: flex; gap: 12px; flex: 1 1 auto; min-width: 0; }
.mt-cv { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt-cvt { display: flex; flex-direction: column; min-width: 0; }
.mt-cvt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-cvt small { font-size: 11px; color: var(--text-2); }
.mt-split { display: flex; gap: 10px; flex: none; }
.mt-side { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mt-side b { font: 700 18px var(--cond); }
.mt-side small { font-size: 10.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.mt-eye { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mt-eye[aria-pressed="true"] { border-color: var(--red, #e5252a); color: var(--red, #e5252a); }
.mt-card .mt-sum + .ground { margin-top: 10px; }
@media (max-width: 420px) {
  .mt-sum { flex-wrap: wrap; }
  .mt-cvs { flex-basis: 100%; }
  .mt-split { flex: 1 1 auto; }
}
/* v1.6.36 side menu (☰): terms, contact, social links — the pages stay clean */
.topbar .menu-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; margin-right: 8px; flex: none; }
.topbar .menu-btn .ic { width: 20px; height: 20px; }
.side-menu { position: fixed; inset: 0; z-index: 90; }
.side-menu .sm-scrim { position: absolute; inset: 0; background: rgba(8, 12, 20, .5); opacity: 0; transition: opacity .2s; }
.side-menu .sm-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--card); color: var(--text); box-shadow: 8px 0 30px rgba(0,0,0,.25); overflow-y: auto; padding: 14px 14px 24px; transform: translateX(-102%); transition: transform .2s ease; }
.side-menu.open .sm-scrim { opacity: 1; }
.side-menu.open .sm-panel { transform: none; }
.side-menu .sm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-menu .sm-head b { font: 800 20px var(--cond); }
.side-menu .sm-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.side-menu .sm-label { margin: 14px 4px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.side-menu .sm-group { display: flex; flex-direction: column; }
.side-menu .sm-link { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px; overflow-wrap: anywhere; }
.side-menu .sm-link:hover, .side-menu .sm-link:focus-visible { background: var(--bg); }
.side-menu .sm-link .ic { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.side-menu .sm-socials { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; }
.side-menu .sm-socials .soc { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 13px; }
.side-menu .sm-disc { margin: 16px 4px 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.foot.foot-min { padding: 14px 16px 6px; }
.foot.foot-min p { margin: 0; }
.foot .linkish { border: 0; background: none; padding: 0; color: var(--text-2); text-decoration: underline; font: inherit; cursor: pointer; }
/* v1.6.36 FenStats Admin: wider on big screens; the tabs wrap on a laptop / desktop (the last tab, "Team & roles",
   was cut off even at 1920 px); on a phone they scroll sideways with a thin bar so you can see there are more */
.adm .app { max-width: 1320px; }
@media (min-width: 900px) { .adm-tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; } }
@media (max-width: 899px) { .adm-tabs { scrollbar-width: thin; } }
/* v1.6.40 About you sheet */
.about-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .about-2 { grid-template-columns: 1fr; } }
.about-chips { gap: 6px; }
.about-chips .chip { height: 32px; }
.about-tick { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 13.5px; line-height: 1.4; cursor: pointer; }
.about-tick input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--red); }
/* v1.6.40 side menu on a PC opens at the app column (JS sets left); a short fade instead of a long slide */
@media (min-width: 801px) { .side-menu .sm-panel { transform: translateX(-16px); opacity: 0; transition: transform .18s ease, opacity .18s ease; } .side-menu.open .sm-panel { transform: none; opacity: 1; } }
/* v1.6.40 FenStats Admin: tab groups (Overview · People · Money · Site · System) + the group's own tabs under them */
.adm-tabs { flex-direction: column; flex-wrap: nowrap !important; overflow: visible !important; gap: 6px; }
.adm-tabs .adm-groups, .adm-tabs .adm-sub { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs .adm-groups button { flex: none; height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: #f2f3f7; font-weight: 800; font-size: 13px; color: var(--text-2); cursor: pointer; }
.adm-tabs .adm-groups button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.adm-tabs .adm-sub button { flex: none; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.adm-tabs .adm-sub button[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: #fff5f5; }
/* a row's actions in one "⋯" menu */
details.rowmenu { position: relative; display: inline-block; }
details.rowmenu > summary { list-style: none; width: 32px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-weight: 800; color: var(--text-2); user-select: none; }
details.rowmenu > summary::-webkit-details-marker { display: none; }
details.rowmenu[open] > summary { background: var(--ink); color: #fff; border-color: var(--ink); }
details.rowmenu .rm-list { position: absolute; right: 0; top: 34px; z-index: 30; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 4px; display: flex; flex-direction: column; }
details.rowmenu .rm-list button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--text); }
details.rowmenu .rm-list button:hover { background: #f2f3f7; }
details.rowmenu .rm-list button.danger { color: #b91c1c; }
table.t.t-compact td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
table.t.t-compact td .tiny { margin-top: 2px; }
/* v1.6.40 FenStats Admin: long tables show 10 rows until 'Show all' */
table.t.clamped > tbody > tr:nth-child(n+11) { display: none; }

/* v1.6.41 FenStats Admin: the FEN app's live-score XI waiting here + the auto-approve switch */
.lx-auto { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lx-box { margin-top: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.lx-box.ready { border-color: #86efac; background: #f0fdf4; }
.lx-box.check { border-color: #fcd34d; background: #fffbeb; }
/* v1.6.41 owner: no visible scrollbars anywhere (page, tables, tab bars, sheets) — scrolling stays the same: touch,
   wheel, trackpad, keyboard; momentum scrolling on phones. Older scrollbar styles above are overridden here. */
html, body, * { scrollbar-width: none !important; -ms-overflow-style: none !important; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; background: transparent !important; }
* { -webkit-overflow-scrolling: touch; }
.linkish { border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
/* v1.6.42 join sheet head + login (Google / e-mail) */
.join-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.join-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), #ff7a45); color: #fff; flex: none; }
.join-ic .ic { width: 22px; height: 22px; }
/* v1.6.43 owner: the team view as a real cricket ground — oval field with mowing stripes, white boundary rope, dashed
   30-yard circle and the pitch strip with creases in the middle (it was a green box with a beige oval) */
.ground { padding: 24px 10px 28px; border-radius: 24px; background: #1c6332; }
.ground::before { left: 8px; top: 8px; right: 8px; bottom: 8px; width: auto; height: auto; transform: none; border: 0; border-radius: 50%;
  background: repeating-linear-gradient(90deg, #36a955 0 30px, #2f9a4c 30px 60px); box-shadow: inset 0 0 0 3px rgba(255,255,255,.9), inset 0 0 50px rgba(0,0,0,.22); }
.ground::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58%; height: 56%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255,255,255,.45); pointer-events: none;
  background: linear-gradient(#fff, #fff) 50% 27% / 10% 2px no-repeat, linear-gradient(#fff, #fff) 50% 73% / 10% 2px no-repeat, linear-gradient(180deg, #e2cb93, #ccb06f) 50% 50% / 9% 52% no-repeat; }
.ground .lab, .ground .line { z-index: 1; }
.ground .lab { color: rgba(255,255,255,.9); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
/* v1.6.43 matchup list: OUT badge + a plain line on how often he got out */
.mu.mu3 { display: flex; align-items: center; gap: 10px; }
.mu.mu3 .names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mu.mu3 .mu-line { color: var(--text-2); }
.mu.mu3 .mu-how { font-size: 12px; font-weight: 600; }
.mu.mu3 .mu-how.bad { color: #b91c1c; } .mu.mu3 .mu-how.mid { color: #b45309; } .mu.mu3 .mu-how.good { color: #15803d; }
.mu.mu3 .mu-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mu-outs { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.mu-outs b { font-size: 15px; }
.mu-outs.bad { background: #fee2e2; color: #b91c1c; } .mu-outs.mid { background: #fef3c7; color: #92400e; } .mu-outs.good { background: #dcfce7; color: #166534; }
.mu-outs small { font-size: 10px; text-transform: uppercase; }
/* v1.6.44 Test / first-class: two innings per cell ("10 & 2", "5/55 & 1/66") — wider Last-5 cells */
table.dft.fmt-test td.l5s, table.dft.fmt-test th.l5s { min-width: 150px; }
table.l5.fmt-test td:not(.stick), table.l5.fmt-test th:not(.stick) { min-width: 140px; } /* the name column keeps its own width */
/* v1.6.44 owner: the ground keeps its shape — never stretched into a wide oval on a PC */
.ground { max-width: 540px; margin-left: auto; margin-right: auto; }
/* v1.6.47 Venue verdict, compact: a small nearly-round ground beside the verdict (no stretched oval), HTML gauge */
.venue-verdict .vv-top { display: flex; gap: 16px; align-items: center; margin: 4px 0 12px; }
.venue-verdict .vv-ill { width: 124px; max-width: 124px; flex: none; margin: 0; }
.venue-verdict .ground-svg { max-width: 124px; filter: drop-shadow(0 4px 10px rgba(15,23,42,.18)); }
.venue-verdict .vv-side { flex: 1; min-width: 0; }
.venue-verdict .vv-label b { font-size: 22px; line-height: 1.1; }
.venue-verdict .vv-label .pill { font-size: 10px; letter-spacing: .06em; }
.vv-meter { position: relative; height: 6px; border-radius: 3px; margin: 10px 0 3px; background: linear-gradient(90deg, #dc2626, #eab308 50%, #16a34a); }
.vv-meter i { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2.5px solid #0b1220; transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.venue-verdict .vv-scale { margin: 0 0 6px; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.vv-split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 8px 0 3px; background: var(--bg-2, #eef0f4); }
.vv-split .pc { background: #60a5fa; } .vv-split .sp { background: #c084fc; }
.vv-scale .pc-t { color: #2563eb; } .vv-scale .sp-t { color: #9333ea; }
.venue-verdict .vv-kpis { gap: 8px; }
.venue-verdict .vv-kpis .kpi { padding: 8px 10px; }
.venue-verdict .vv-kpis .kpi b { font-size: 20px; }
@media (max-width: 380px) { .venue-verdict .vv-ill, .venue-verdict .ground-svg { width: 96px; max-width: 96px; } .venue-verdict .vv-top { gap: 12px; } }
/* v1.6.48 (i) → Notation guide. A small blue (i); a radar pulse (rings growing out) until the visitor opens it once */
.info-dot { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; padding: 0; vertical-align: middle;
  border-radius: 50%; border: 1px solid #bfdbfe; background: #eff6ff; color: #2563eb; cursor: pointer; text-transform: none; letter-spacing: 0; transition: background .15s, border-color .15s; }
.info-dot svg { display: block; }
.info-dot:hover, .info-dot[aria-expanded="true"] { background: #dbeafe; border-color: #93c5fd; }
.info-dot:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.info-dot.ping::before, .info-dot.ping::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid #3b82f6; pointer-events: none; animation: info-radar 2.2s cubic-bezier(.2,.6,.3,1) infinite; }
.info-dot.ping::after { animation-delay: 1.1s; }
@keyframes info-radar { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .info-dot.ping::before, .info-dot.ping::after { animation: none; } }
.note-pop { position: fixed; z-index: 1000; overflow-y: auto; padding: 18px 18px 14px; border-radius: 18px; background: var(--card, #fff); color: var(--ink, #0f172a);
  border: 1px solid var(--line, #e5e7eb); box-shadow: 0 18px 50px rgba(15,23,42,.18), 0 2px 8px rgba(15,23,42,.08); animation: note-in .16s ease-out; scrollbar-width: none; }
.note-pop::-webkit-scrollbar { display: none; }
@keyframes note-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.note-head b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.note-head small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3, #64748b); }
.note-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--text-3, #64748b); font-size: 16px; cursor: pointer; }
.note-x:hover { background: var(--bg-2, #f1f5f9); color: var(--ink, #0f172a); }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.note-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line, #e8ecf2); background: var(--bg-2, #f8fafc); min-width: 0; }
.note-card code { margin-bottom: 4px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line, #dbe1ea); background: var(--card, #fff);
  font: 700 12.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink, #0f172a); white-space: nowrap; }
.note-card b { font-size: 13.5px; font-weight: 700; }
.note-card span { font-size: 12px; line-height: 1.4; color: var(--text-3, #64748b); }
.note-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line, #e8ecf2); font-size: 11.5px; color: var(--text-3, #64748b); }
@media (max-width: 360px) { .note-grid { grid-template-columns: 1fr; } }
.note-pop.as-sheet { animation: note-up .2s ease-out; box-shadow: 0 -6px 40px rgba(15,23,42,.22), 0 2px 8px rgba(15,23,42,.08); }
@keyframes note-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
