/* ScoreProb tennis v1 (15 Nov 2026): the "Baseline" colour layer and tennis components.
   Approved mock-up: design/tennis-plan-20261115.md (Baseline: court green for the first player, violet for the
   second, optic-yellow ball for the server and the live moment). Same site header, footer and fonts. */
/* colors-v1 (owner, 16 Nov 2026): football's colours for every sport. The first player is football's home blue, the
   second its away amber; page, cards, lines, text, accent, live and the header are football's. The ball (server,
   points) stays optic yellow and the court surfaces keep their own colours. */
body.sport-tn {
  --tn-bg: #ffffff; --tn-card: #ffffff; --tn-ink: #18212f; --tn-muted: #667085; --tn-line: #e3e8ef; --tn-soft: #f5f7fa; --tn-soft2: #f8fafc;
  --tn-a: #2857d9; --tn-a-deep: #173da8; --tn-a-soft: #e6edfc; --tn-a-fill: #2857d9;
  --tn-b: #a86f0e; --tn-b-soft: #fbf1dd; --tn-b-fill: #c47f0a;
  --tn-ball: #c9e22a; --tn-ball-ink: #3d4a00; --tn-ball-soft: #f4fbd0; --tn-hl: #e6edfc;
  --tn-hit: #1a8c54; --tn-hit-bg: rgba(26, 140, 84, .10); --tn-miss: #c8372d; --tn-miss-bg: rgba(200, 55, 45, .08);
  --tn-live: #d92d20; --tn-on-live: #ffffff; --tn-track: #dbe2f0; --tn-header: rgba(255, 255, 255, .94); --tn-rowbg: #ffffff;
  --tn-clay: #c2410c; --tn-grass: #3f8f2f; --tn-hard: #2563eb; --tn-carpet: #7c3aed;
  --tn-board: #0c1626; --tn-board-line: #1c2840; --tn-board-ink: #ecf2ff; --tn-board-muted: #aab7ca;
  --tn-shadow: none;
  background: var(--tn-bg); color: var(--tn-ink);
}
html[data-theme="dark"] body.sport-tn {
  --tn-bg: #0b1220; --tn-card: #111a29; --tn-ink: #ecf2ff; --tn-muted: #aab7ca; --tn-line: #34445b; --tn-soft: #182235; --tn-soft2: #141e30;
  --tn-a: #7397ff; --tn-a-deep: #9fb7ff; --tn-a-soft: #1b2a4d; --tn-a-fill: #5b87ff;
  --tn-b: #eaa73c; --tn-b-soft: #33260f; --tn-b-fill: #d39a34;
  --tn-ball: #d9f240; --tn-ball-ink: #1a2000; --tn-ball-soft: #2a3010; --tn-hl: #1b2a4d;
  --tn-hit: #3bbf7f; --tn-hit-bg: rgba(59, 191, 127, .12); --tn-miss: #f0746a; --tn-miss-bg: rgba(240, 116, 106, .10);
  --tn-live: #ff6b5f; --tn-on-live: #0b1220; --tn-track: #2a3850; --tn-header: rgba(11, 18, 32, .95); --tn-rowbg: #070c16;
  --tn-clay: #fb923c; --tn-grass: #86d06f; --tn-hard: #7aa7ff; --tn-carpet: #c4a5ff;
  --tn-board: #070c16; --tn-board-line: #1c2840; --tn-board-ink: #ecf2ff; --tn-board-muted: #aab7ca; --tn-shadow: none;
}
/* the header, footer and sport switch are the site's own (football's): no tennis colours on them */

.tn { color: var(--tn-ink); font-size: 14px; line-height: 1.45; }
.tn a { color: var(--tn-a); }
.tn a:hover { color: var(--tn-a-deep); }
.tn .num, .tn-num { font-variant-numeric: tabular-nums; }
.tn h1, .tn h2, .tn h3 { color: var(--tn-ink); margin: 0; text-wrap: balance; }
.tn h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.tn h3 { font-size: 15px; font-weight: 800; }
.tn p { margin: 0; }
.tn-shell { max-width: 1180px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.tn-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-muted); }
.tn-card { background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: 18px; box-shadow: var(--tn-shadow); min-width: 0; }
.tn-pad { padding: 18px 20px; }
.tn-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tn-muted { color: var(--tn-muted); }
.tn-small { font-size: 12.5px; }
.tn-preview { background: var(--tn-hl); color: var(--tn-ink); font-size: 12.5px; font-weight: 600; padding: 8px max(16px, env(safe-area-inset-left, 0px)); text-align: center; border-bottom: 1px solid var(--tn-line); }
.tn-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tn-tiles.q4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tn-mhead > svg.tn-court { opacity: .045 !important; }
/* charts: labels in HTML so they stay readable at every width */
.tn-chartbox { position: relative; padding-left: 38px; }
.tn-chartbox .yl { position: absolute; left: 0; font-size: 11px; color: var(--tn-muted); font-variant-numeric: tabular-nums; line-height: 1; }
.tn-chartbox .yl.t { top: 0; }
.tn-chartbox .yl.m { top: calc(50% - 6px); }
.tn-chartbox .yl.b { bottom: 0; }
.tn-chartbox.river { padding-left: 0; padding-top: 16px; padding-bottom: 16px; }
.tn-chartbox.river .yl { left: 0; }
.tn-chartbox.river .yl.t { top: 0; }
.tn-chartbox.river .yl.b { bottom: 0; }
.tn-chartx { display: flex; justify-content: space-between; font-size: 11px; color: var(--tn-muted); padding-left: 38px; font-variant-numeric: tabular-nums; }
.tn-chart .la, .tn-chart .lb, .tn-chart .g { vector-effect: non-scaling-stroke; }
/* head-to-head list */
.tn-h2h { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tn-line); font-size: 13px; }
.tn-h2h:first-child { border-top: 0; }
.tn-h2h .d { font-size: 12px; color: var(--tn-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-h2h .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-h2h .s { font-size: 12px; color: var(--tn-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tn-tile { background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tn-tile b.v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tn-tile .k { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tn-muted); }
.tn-tile .s { font-size: 12.5px; color: var(--tn-muted); }
.tn-a-c { color: var(--tn-a) !important; }
.tn-b-c { color: var(--tn-b) !important; }
.tn-hr { border: 0; border-top: 1px solid var(--tn-line); margin: 0; }
.tn-note { font-size: 12.5px; color: var(--tn-muted); line-height: 1.5; }
.tn-crumbs { font-size: 13px; color: var(--tn-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.tn-crumbs a { text-decoration: none; }

/* court motif */
.tn-courtbg { position: relative; overflow: hidden; }
.tn-courtbg > svg.tn-court { position: absolute; pointer-events: none; color: var(--tn-a); opacity: .09; right: -60px; top: -40px; width: 640px; height: 300px; }
.tn-courtbg > *:not(svg) { position: relative; }

/* hero */
.tn-hero { border-bottom: 1px solid var(--tn-line); }
.tn-hero-in { max-width: 1180px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 12px; }
.tn-hero h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; max-width: 780px; }
.tn-hero-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--tn-muted); align-items: center; }
.tn-hero-stats b { color: var(--tn-ink); }
.tn-kicker { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tn-a-deep); flex-wrap: wrap; }
.tn-sealed { display: inline-flex; align-items: center; gap: 6px; }
.tn-sealed svg { color: var(--tn-hit); }

/* layout with a side column */
.tn-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tn-side { flex: 1 1 250px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tn-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* chips */
.tn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--tn-line); background: var(--tn-card); color: var(--tn-ink) !important; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.tn-chip.is-on, .tn-chip[aria-pressed="true"] { border-color: var(--tn-a); background: var(--tn-a-soft); color: var(--tn-a-deep) !important; }
.tn-dot { width: 7px; height: 7px; border-radius: 9px; background: var(--tn-live); display: inline-block; flex: none; }
.tn-live-dot { animation: tn-pulse 1.6s ease-in-out infinite; }
@keyframes tn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.tn-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; background: var(--tn-soft); color: var(--tn-ink); white-space: nowrap; }
.tn-badge.atp { background: var(--tn-a-soft); color: var(--tn-a-deep); }
.tn-badge.wta { background: var(--tn-b-soft); color: var(--tn-b); }
.tn-badge.slam { background: var(--tn-hl); color: var(--tn-ink); }
.tn-surf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--tn-muted); white-space: nowrap; }
.tn-surf::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--tn-hard); }
.tn-surf.clay::before { background: var(--tn-clay); }
.tn-surf.grass::before { background: var(--tn-grass); }
.tn-surf.carpet::before { background: var(--tn-carpet); }
.tn-livebadge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--tn-live); color: var(--tn-on-live); font-size: 11.5px; font-weight: 800; white-space: nowrap; }

/* tournament group on the hub */
.tn-group { overflow: hidden; }
.tn-ghead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; }
.tn-ghead h2 { font-size: 16px; }
.tn-ghead h2 a { color: var(--tn-ink) !important; text-decoration: none; }
.tn-ghead h2 a:hover { text-decoration: underline; }
.tn-ghead .tn-gmeta { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* a match row */
.tn-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 168px; align-items: center; column-gap: 16px; row-gap: 8px; padding: 11px 18px; border-top: 1px solid var(--tn-line); color: var(--tn-ink) !important; text-decoration: none; }
a.tn-row:hover { background: var(--tn-soft2); }
.tn-row[hidden] { display: none !important; }
.tn-when { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; }
.tn-when .r { font-size: 11.5px; font-weight: 600; color: var(--tn-muted); }
.tn-when .st-live { color: var(--tn-live); display: inline-flex; align-items: center; gap: 5px; }
.tn-pl { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tn-line { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.tn-line .tn-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.tn-line.is-win .tn-nm { font-weight: 800; }
.tn-line.is-lose .tn-nm { color: var(--tn-muted); }
.tn-flag { width: 20px; flex: none; text-align: center; font-size: 15px; line-height: 1; }
.tn-flag.none { font-size: 9px; font-weight: 800; color: var(--tn-muted); }
.tn-rk { font-size: 11.5px; color: var(--tn-muted); font-weight: 600; flex: none; }
.tn-seed { font-size: 11px; color: var(--tn-muted); font-weight: 700; flex: none; }
.tn-ball { width: 8px; height: 8px; border-radius: 50%; background: var(--tn-ball); box-shadow: 0 0 0 2px var(--tn-ball-soft); flex: none; visibility: hidden; }
.tn-line.is-srv .tn-ball { visibility: visible; }
.tn-gs { display: inline-flex; gap: 2px; flex: none; margin-left: auto; }
.tn-gs b { width: 22px; text-align: center; font-weight: 600; color: var(--tn-muted); position: relative; font-size: 14px; }
.tn-gs b.w { color: var(--tn-ink); font-weight: 800; }
.tn-gs b.o { color: var(--tn-ink); font-weight: 800; background: var(--tn-hl); border-radius: 5px; }
.tn-gs b sup { position: absolute; top: -5px; right: -1px; font-size: 9px; font-weight: 700; color: var(--tn-muted); }
.tn-gp { width: 28px; text-align: center; flex: none; font-size: 12.5px; font-weight: 800; color: var(--tn-live); }
.tn-ch { display: flex; flex-direction: column; gap: 5px; }
.tn-ch .p { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; }
.tn-bar { display: flex; height: 7px; border-radius: 999px; overflow: hidden; background: var(--tn-track); }
.tn-bar > .a { background: var(--tn-a-fill); }
.tn-bar > .b { background: var(--tn-b-fill); flex: 1; }
.tn-bar.big { height: 14px; }
.tn-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--tn-soft); color: var(--tn-muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tn-pill.hit { background: var(--tn-hit-bg); color: var(--tn-hit); }
.tn-pill.miss { background: var(--tn-miss-bg); color: var(--tn-miss); }
.tn-pill.saved { background: var(--tn-a-soft); color: var(--tn-a-deep); }
.tn-nopick { font-size: 12px; color: var(--tn-muted); }

/* side cards */
.tn-list { display: flex; flex-direction: column; }
.tn-list a, .tn-list .it { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tn-line); text-decoration: none; color: var(--tn-ink) !important; font-size: 13.5px; min-width: 0; }
.tn-list a:first-child, .tn-list .it:first-child { border-top: 0; }
.tn-list a:hover .t { text-decoration: underline; }
.tn-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--tn-muted); }

/* match header */
.tn-mhead { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tn-mmeta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--tn-muted); align-items: center; }
.tn-mmeta .l { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tn-stamp { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: var(--tn-a-soft); color: var(--tn-a-deep); font-weight: 700; font-size: 12.5px; text-decoration: none; }
.tn-stamp.none { background: var(--tn-soft); color: var(--tn-muted); }
.tn-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.tn-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.tn-who.b { flex-direction: row-reverse; text-align: right; }
.tn-av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; position: relative; }
.tn-av.a { background: var(--tn-a-soft); color: var(--tn-a); }
.tn-av.b { background: var(--tn-b-soft); color: var(--tn-b); }
.tn-av .f { position: absolute; bottom: -4px; right: -4px; font-size: 19px; line-height: 1; }
.tn-who .n { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tn-who .n a.nm { font-size: clamp(19px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: var(--tn-ink) !important; text-decoration: none; }
.tn-who .n a.nm:hover { text-decoration: underline; }
.tn-who .sub { font-size: 12.5px; color: var(--tn-muted); }
.tn-vsmid { font-weight: 700; color: var(--tn-muted); font-size: 15px; }
.tn-big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tn-big b { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tn-big span { font-size: 13px; color: var(--tn-muted); font-weight: 600; text-align: center; }
.tn-why { font-size: 14px; color: var(--tn-muted); line-height: 1.55; }
.tn-why b { color: var(--tn-ink); }
.tn-h1 { font-size: 13px !important; font-weight: 700 !important; color: var(--tn-muted) !important; letter-spacing: 0 !important; }

/* live scoreboard */
.tn-board { border-radius: 16px; background: var(--tn-board); color: var(--tn-board-ink); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
html[data-theme="dark"] .tn-board { border: 1px solid var(--tn-line); }
.tn-board .top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tn-board-muted); flex-wrap: wrap; }
.tn-brow { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; padding: 6px 0; }
.tn-brow + .tn-brow { border-top: 1px solid var(--tn-board-line); }
.tn-brow .nm { font-size: 17px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-brow.is-win .nm { font-weight: 800; }
.tn-brow .bl { width: 10px; height: 10px; border-radius: 50%; background: #d9f240; visibility: hidden; }
.tn-brow.is-srv .bl { visibility: visible; }
.tn-brow .ss { display: flex; gap: 4px; }
.tn-brow .ss b { width: 26px; text-align: center; font-size: 18px; font-weight: 600; color: var(--tn-board-muted); position: relative; }
.tn-brow .ss b.w { color: #ffffff; font-weight: 800; }
.tn-brow .ss b.o { color: #d9f240; font-weight: 800; }
.tn-brow .ss b sup { position: absolute; top: -4px; right: -2px; font-size: 10px; color: var(--tn-board-muted); }
.tn-brow .pt { text-align: center; font-size: 17px; font-weight: 800; color: #0b1220; background: #d9f240; border-radius: 8px; padding: 3px 0; }
.tn-brow .pt.e { background: transparent; color: var(--tn-board-muted); }

/* river (win chance after every point) */
.tn-river { width: 100%; height: auto; display: block; }
.tn-river .area { fill: var(--tn-a-fill); opacity: .10; }
.tn-river .line { fill: none; stroke: var(--tn-a); stroke-width: 2.4; stroke-linejoin: round; }
.tn-river .mkt { fill: none; stroke: var(--tn-b-fill); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .9; }
.tn-river .mid { stroke: var(--tn-line); stroke-width: 1; stroke-dasharray: 3 4; }
.tn-river .setl { stroke: var(--tn-muted); stroke-width: 1; opacity: .35; }
.tn-river .ma { fill: var(--tn-a); stroke: var(--tn-card); stroke-width: 1.5; }
.tn-river .mb { fill: var(--tn-b-fill); stroke: var(--tn-card); stroke-width: 1.5; }
.tn-river .now { fill: var(--tn-ball); stroke: var(--tn-ink); stroke-width: 1.5; }
.tn-river text { font-size: 10px; fill: var(--tn-muted); }
.tn-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--tn-muted); align-items: center; }
.tn-key i { display: inline-block; width: 16px; height: 3px; border-radius: 3px; vertical-align: middle; margin-right: 5px; background: var(--tn-a); }
.tn-key i.m { background: transparent; border-top: 2px dashed var(--tn-b-fill); height: 0; }
.tn-moments { display: flex; flex-direction: column; }
.tn-moment { display: grid; grid-template-columns: 62px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tn-line); font-size: 13px; }
.tn-moment:first-child { border-top: 0; }
.tn-moment .ic { display: grid; place-items: center; height: 22px; border-radius: 6px; font-size: 10.5px; font-weight: 800; background: var(--tn-soft); }
.tn-moment .ic.brk { background: var(--tn-a-soft); color: var(--tn-a-deep); }
.tn-moment .ic.brkb { background: var(--tn-b-soft); color: var(--tn-b); }
.tn-moment .ic.set { background: var(--tn-hl); color: var(--tn-ink); }
.tn-moment .sw { font-weight: 800; }

/* statistics */
.tn-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tn-tab { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--tn-line); background: var(--tn-card); color: var(--tn-muted); cursor: pointer; }
.tn-tab[aria-selected="true"] { background: var(--tn-ink); color: var(--tn-card); border-color: var(--tn-ink); }
.tn-duel { display: flex; flex-direction: column; gap: 9px; }
.tn-drow { display: grid; grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 10px; align-items: center; }
.tn-drow .va, .tn-drow .vb { font-weight: 800; font-size: 13.5px; display: flex; flex-direction: column; line-height: 1.15; }
.tn-drow .va { text-align: left; }
.tn-drow .vb { text-align: right; }
.tn-drow .va small, .tn-drow .vb small { font-weight: 600; font-size: 11px; color: var(--tn-muted); }
.tn-drow .va.best { color: var(--tn-a); }
.tn-drow .vb.best { color: var(--tn-b); }
.tn-drow .mid { display: flex; flex-direction: column; gap: 4px; align-items: center; min-width: 0; }
.tn-drow .mid span { font-size: 12.5px; color: var(--tn-muted); text-align: center; }
.tn-drow .mid .tn-bar { width: 100%; height: 6px; }
.tn-statpanel[hidden] { display: none !important; }

/* point by point */
.tn-pbp { display: flex; flex-direction: column; gap: 0; }
.tn-game { display: grid; grid-template-columns: 58px 112px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--tn-line); font-size: 12.5px; }
.tn-game:first-child { border-top: 0; }
.tn-game .sc { font-weight: 800; font-size: 13px; }
.tn-game .sv { display: flex; gap: 6px; align-items: center; min-width: 0; }
.tn-game .sv .tn-ball { visibility: visible; }
.tn-game .sv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-game .ps { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.tn-game .ps i { font-style: normal; padding: 1px 5px; border-radius: 5px; background: var(--tn-soft); color: var(--tn-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tn-game .ps i.bp { background: var(--tn-miss-bg); color: var(--tn-miss); font-weight: 800; }
.tn-game .ps i.sp { background: var(--tn-hl); color: var(--tn-ink); font-weight: 800; }
.tn-game .ps i.mp { background: var(--tn-live); color: var(--tn-on-live); font-weight: 800; }
.tn-game .ps i.end { background: var(--tn-ink); color: var(--tn-card); }
.tn-game.brk .sc { color: var(--tn-live); }
.tn-game.brk { background: linear-gradient(90deg, var(--tn-miss-bg), transparent 60%); }
.tn-game.tbk .sc { color: var(--tn-b); }

/* bars and distributions */
.tn-dist { display: flex; align-items: flex-end; gap: 2px; height: 130px; border-bottom: 1px solid var(--tn-line); }
.tn-dist span { flex: 1 1 0; border-radius: 3px 3px 0 0; background: var(--tn-a-soft); min-width: 2px; }
.tn-dist span.hi { background: var(--tn-a-fill); opacity: .75; }
.tn-dist span.line { background: var(--tn-a); }
.tn-distx { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--tn-muted); }
.tn-sets { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; align-items: end; height: 170px; }
.tn-sets > div { display: flex; flex-direction: column; align-items: center; gap: 5px; justify-content: flex-end; height: 100%; }
.tn-sets .bar { width: 64%; border-radius: 6px 6px 0 0; background: var(--tn-a-fill); }
.tn-sets .bar.b { background: var(--tn-b-fill); }
.tn-sets b { font-size: 14px; }
.tn-sets .k { font-size: 13px; font-weight: 800; }
.tn-sets .w { font-size: 11.5px; color: var(--tn-muted); text-align: center; }
.tn-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tn-lines > div { padding: 8px 10px; border-radius: 10px; background: var(--tn-soft); font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.tn-lines > div.on { outline: 2px solid var(--tn-a); }
.tn-lines b { font-size: 14px; }

/* tables */
.tn-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tn-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tn-muted); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--tn-line); white-space: nowrap; }
.tn-table td { padding: 8px 10px; border-bottom: 1px solid var(--tn-line); vertical-align: middle; }
.tn-table tr:last-child td { border-bottom: 0; }
.tn-table td.n, .tn-table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-table a { text-decoration: none; color: var(--tn-ink) !important; font-weight: 600; }
.tn-table a:hover { text-decoration: underline; }
.tn-table .me td { background: var(--tn-hl); }
.tn-meter { display: inline-block; width: 64px; height: 6px; border-radius: 999px; background: var(--tn-track); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.tn-meter > i { display: block; height: 100%; background: var(--tn-a-fill); border-radius: 999px; }
.tn-mv { font-size: 11px; font-weight: 800; }
.tn-mv.up { color: var(--tn-hit); }
.tn-mv.down { color: var(--tn-miss); }

/* form chips */
.tn-form { display: flex; flex-direction: column; gap: 6px; }
.tn-frow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; text-decoration: none; color: var(--tn-ink) !important; }
.tn-frow .r { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-weight: 800; font-size: 11px; }
.tn-frow .r.w { background: var(--tn-hit-bg); color: var(--tn-hit); }
.tn-frow .r.l { background: var(--tn-miss-bg); color: var(--tn-miss); }
.tn-frow .o { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-frow .s { color: var(--tn-muted); white-space: nowrap; }

/* draw */
.tn-draw { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.tn-dround { display: flex; flex-direction: column; gap: 8px; justify-content: space-around; min-width: 0; }
.tn-dround > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--tn-muted); }
.tn-dm { border: 1px solid var(--tn-line); border-radius: 10px; background: var(--tn-card); font-size: 12.5px; overflow: hidden; text-decoration: none; color: var(--tn-ink) !important; display: block; }
.tn-dm .x { display: flex; align-items: center; gap: 6px; padding: 5px 8px; min-width: 0; }
.tn-dm .x + .x { border-top: 1px solid var(--tn-line); }
.tn-dm .x .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-dm .x.w .nm { font-weight: 800; }
.tn-dm .x .sd { font-size: 10.5px; color: var(--tn-muted); font-weight: 700; }
.tn-dm .x .pc { font-size: 11px; font-weight: 800; color: var(--tn-muted); }
.tn-dm .x .sc { font-size: 11.5px; color: var(--tn-muted); white-space: nowrap; }
.tn-dm.live { border-color: var(--tn-live); }

/* rating chart */
.tn-chart { width: 100%; height: auto; display: block; }
.tn-chart .la { fill: none; stroke: var(--tn-a); stroke-width: 2.2; stroke-linejoin: round; }
.tn-chart .lb { fill: none; stroke: var(--tn-b-fill); stroke-width: 2.2; stroke-linejoin: round; }
.tn-chart .g { stroke: var(--tn-line); stroke-width: 1; }
.tn-chart text { font-size: 10px; fill: var(--tn-muted); }

/* news */
.tn-news { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--tn-line); }
.tn-news:first-child { border-top: 0; padding-top: 0; }
.tn-news h3 a { color: var(--tn-ink) !important; text-decoration: none; }
.tn-news h3 a:hover { text-decoration: underline; }
.tn-ai { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tn-muted); }
.tn-article { max-width: 720px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; }
.tn-article p { margin: 0; }

/* trust */
.tn-bands { display: flex; flex-direction: column; gap: 6px; }
.tn-band { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 12.5px; }
.tn-band.me { font-weight: 800; }
.tn-band .tr { position: relative; height: 10px; border-radius: 999px; background: var(--tn-track); }
.tn-band .tr .w { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--tn-a-fill); opacity: .85; }
.tn-band .tr .s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--tn-ink); }
.tn-band.me .tr { outline: 2px solid var(--tn-a); outline-offset: 2px; }

.tn-empty { padding: 26px 18px; text-align: center; color: var(--tn-muted); }

@media (max-width: 900px) {
  .tn-grid3 { grid-template-columns: minmax(0, 1fr); }
  .tn-tiles.q4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tn-grid2 { grid-template-columns: minmax(0, 1fr); }
  .tn-vs { grid-template-columns: minmax(0, 1fr); }
  .tn-who.b { flex-direction: row; text-align: left; }
  .tn-vsmid { display: none; }
}
@media (max-width: 640px) {
  .tn-row { grid-template-columns: 56px minmax(0, 1fr); padding: 11px 14px; }
  .tn-row .tn-ch { grid-column: 1 / -1; }
  .tn-row .tn-ch:has(> .tn-nopick:only-child) { display: none; }
  .tn-h2h { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 2px; }
  .tn-h2h .d { grid-column: 1 / -1; }
  .tn-tiles.q4 .tn-tile b.v { font-size: 21px; }
  .tn-gs b { width: 19px; }
  .tn-ghead { padding: 12px 14px; }
  .tn-ghead .tn-gmeta { margin-left: 0; }
  .tn-pad { padding: 16px; }
  .tn-mhead { padding: 16px; }
  .tn-game { grid-template-columns: 46px minmax(0, 1fr); }
  .tn-game .ps { grid-column: 1 / -1; }
  .tn-moment { grid-template-columns: 54px 36px minmax(0, 1fr) auto; }
  .tn-brow .nm { font-size: 15px; }
  .tn-brow .ss b { width: 21px; font-size: 16px; }
  .tn-drow { grid-template-columns: 62px minmax(0, 1fr) 62px; }
  .tn-band { grid-template-columns: 58px minmax(0, 1fr) 84px; }
}
@media (prefers-reduced-motion: reduce) { .tn * { transition: none !important; animation: none !important; } }

/* tennis launch: the header in the tennis colours */
/* colors-v1: the sport switch is the site's own (football's) on tennis pages too */
body.sport-tn .main-nav a.is-current { color: var(--tn-a); }

/* sportsday-v1 (owner, 16 Nov 2026): tennis like basketball. The Time view first (desktop keeps a Tournament | Time
   switch and its filters); phones and tablets narrower than the two columns get one scrolling line of days, one of
   Jump to and the day's tournaments, the title up to its colon on one line, How to read a row under the record, and
   cards edge to edge as football's sections. */
.tn-main.tn-time > section[data-tn-group]:not([data-tn-copy]) { display: none; }
.tn-viewseg { max-width: 280px; }
.tn-mtop { display: none; }
.tn-tline { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--tn-muted); }
.tn-tsec .tn-ghead h2 { font-variant-numeric: tabular-nums; }
.tn-tsec.is-live .tn-ghead h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--tn-live); vertical-align: 2px; }
.tn-ibtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; padding: 0; border: 1px solid var(--tn-line); border-radius: 999px; background: var(--tn-card); color: var(--tn-ink); cursor: pointer; }
.tn-lgc .tn-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--tn-line); color: var(--tn-ink); font-size: 11.5px; font-weight: 800; }
.tn-lgc[aria-pressed="true"] .tn-n { background: var(--tn-a); color: #fff; }
.tn-lgc .tn-lv { color: var(--tn-muted); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.tn-main > section, .tn-side > div { scroll-margin-top: 84px; }
.tn-jsheet .sd-sheet-panel { height: auto; max-height: 82vh; }
.tn-jsheet .sd-sheet-body { overflow-y: auto; padding: 4px 10px max(18px, env(safe-area-inset-bottom, 0px)); }
.tn-jlist { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 2px; }
.tn-jlist button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 0; border-radius: 12px; background: none; color: var(--tn-ink); font: inherit; font-size: 15px; font-weight: 650; text-align: left; cursor: pointer; }
.tn-jlist button:hover, .tn-jlist button:focus-visible { background: var(--tn-soft); }
.tn-jlist .n { margin-left: auto; color: var(--tn-muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tn-jlist .lv::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--tn-live); vertical-align: 1px; }
@media (max-width: 900px) {
  .tn-filters { display: none !important; }   /* the card carries an inline display:flex */
  .tn-mtop { display: flex; flex-direction: column; gap: 10px; }
  .tn-scroll { display: flex; align-items: center; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px))) 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding: 2px max(16px, env(safe-area-inset-right, 0px)) 2px max(16px, env(safe-area-inset-left, 0px)); }
  .tn-scroll::-webkit-scrollbar { display: none; }
  .tn-scroll > * { flex: none; white-space: nowrap; }
  .tn-scroll .tn-chip { height: 34px; padding: 0 13px; }
  .tn-hero-in { gap: 9px; padding-top: 16px; padding-bottom: 14px; }
  .tn-hero h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; line-height: 1.2; font-size: clamp(17px, 5.4vw, 22px); }
  .tn-hero h1 .tn-h1b { display: none; }
  .tn-cols, .tn-main, .tn-side { gap: 10px; }
  .tn-main > .tn-card, .tn-side > .tn-card { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .tn-main > .tn-card.tn-pad, .tn-side > .tn-card.tn-pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .tn-side > #record { order: 1; }
  .tn-side > #tn-howto { order: 2; }
  .tn-side > .tn-card:not(#record):not(#tn-howto) { order: 3; }
}

/* colors-v1: match rows on football's row colour (in dark: darker than the section, as football's list) */
:where(.tn) .tn-row { background: var(--tn-rowbg); }

/* tnhub-v1 (24 Nov 2026): follow stars and buttons on the tennis pages */
.tn-when .sp-st { align-self: flex-start; margin: 1px 0 0 -3px; }
.tn-ghead .sp-st { margin-left: -6px; }
.tn-nmrow { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.tn-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.tn-hero .tn-follow { margin-top: 14px; }
