/*
Theme Name: Talk Man United Data
Description: Data-first block theme for Talk Man United — live scores, fixtures, results, players, managers, the article archive and the shop.
Version: 1.0.0
Requires at least: 6.5
Text Domain: tmu-data
*/

:root {
  --red: #da291c; --red-dark: #a91d14; --ink: #14181f; --navy: #121212; --navy-2: #262626; --gold: #fbe122;
  --paper: #f5f4f0; --white: #fff; --line: #e3e1da; --muted: #5d646e; --win: #1f8a4c; --draw: #8a8f98; --loss: #da291c;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- header ---------- */
.tar-header { background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.tar-bar { max-width: 1200px; margin: 0 auto; padding: 18px 16px 10px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.tar-logo { font-family: var(--head); font-weight: 700; font-size: 30px; letter-spacing: .5px; text-transform: uppercase; color: #fff; text-decoration: none; line-height: 1; }
.tar-logo span { color: #c9ced8; font-weight: 600; }
.tar-logo:hover { color: #fff; }
.tar-tag { color: #9aa4b5; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
.tar-nav { max-width: 1200px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tar-nav::-webkit-scrollbar { display: none; }
.tar-nav a { color: #dfe3ea; text-decoration: none; font-family: var(--head); font-size: 17px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; padding: 10px 10px 12px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -4px; }
.tar-nav a:hover { color: #fff; border-bottom-color: var(--gold); }

/* ---------- layout ---------- */
.tar-main { max-width: 1200px; margin: 0 auto; padding: 22px 16px 56px; }
.tar-main.tar-prose { max-width: 800px; }
.tar-page h2, .tar-main h2 { font-size: 28px; margin: 36px 0 12px; text-transform: uppercase; letter-spacing: .3px; }
.tar-page h3 { font-size: 22px; margin: 26px 0 10px; }
.tar-h1, h1.tar-h1 { font-family: var(--head); font-size: clamp(34px, 6vw, 52px); font-weight: 700; line-height: 1.05; margin: 6px 0 14px; text-transform: uppercase; letter-spacing: .2px; }
.tar-lede { font-size: 18px; line-height: 1.55; color: #2b313b; max-width: 820px; margin: 0 0 18px; }
.tar-kicker { margin: 0 0 4px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.tar-muted, .tar-muted a { color: var(--muted); font-size: 14px; }
.tar-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.tar-crumbs a { color: var(--muted); text-decoration: none; }
.tar-crumbs a:hover { color: var(--red); }
.tar-crumbs span { margin: 0 4px; }
.tar-src { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 36px; }
.tar-src + .tar-src { border: 0; margin-top: 4px; padding-top: 0; }
.tar-src a { color: var(--muted); }
.tar-pager { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; margin-top: 28px; }
.tar-pager a { text-decoration: none; }
.tar-callout { background: #fff; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 6px; box-shadow: var(--shadow); }
.tar-notes { padding-left: 20px; }
.tar-notes li { margin: 6px 0; }

/* ---------- tiles / cards / hubs ---------- */
.tar-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.tar-tile { background: #fff; border-radius: var(--radius); padding: 14px 14px 12px; box-shadow: var(--shadow); border-top: 3px solid var(--red); }
.tar-tile b { display: block; font-family: var(--head); font-size: 32px; line-height: 1; color: var(--ink); }
.tar-tile span { display: block; margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.tar-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 20px 0 8px; }
.tar-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tar-card h2 { font-size: 15px !important; margin: 0 0 8px !important; color: var(--muted); letter-spacing: .8px !important; }
.tar-card p { margin: 4px 0; }
.tar-card .tar-vs { font-family: var(--head); font-size: 26px; font-weight: 700; line-height: 1.15; }
.tar-next { background: var(--navy); color: #fff; }
.tar-next h2, .tar-next .tar-muted { color: #9aa4b5 !important; }
.tar-next .tar-more { color: #fff; }
.tar-more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; font-size: 14px; }
.tar-hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tar-hub { display: block; background: #fff; border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 4px solid var(--red); transition: transform .12s; }
.tar-hub:hover { transform: translateY(-2px); color: var(--ink); }
.tar-hub b { display: block; font-family: var(--head); font-size: 22px; text-transform: uppercase; }
.tar-hub span { font-size: 13px; color: var(--muted); }

/* ---------- facts ---------- */
.tar-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin: 18px 0; max-width: 640px; }
.tar-facts dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; padding-top: 2px; }
.tar-facts dd { margin: 0; font-weight: 600; }

/* ---------- tables ---------- */
.tar-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 8px; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.tar-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.tar-table th { background: var(--navy); color: #fff; text-align: left; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .4px; text-transform: uppercase; padding: 9px 10px; white-space: nowrap; }
.tar-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tar-table tbody tr:nth-child(even) td { background: #faf9f6; }
.tar-table tbody tr:hover td { background: #fff6e6; }
.tar-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tar-table tr.tar-us td { background: #fdecef !important; font-weight: 700; }
.tar-table a { text-decoration: none; font-weight: 600; }
.tar-table a:hover { text-decoration: underline; }
.tar-table small { color: var(--muted); font-weight: 400; }
.tar-compact { width: auto; min-width: 50%; }
.tar-seasons td, .tar-players td { white-space: nowrap; }
.tar-res { display: inline-block; min-width: 24px; text-align: center; border-radius: 4px; color: #fff; font-weight: 700; font-size: 12px; padding: 2px 6px; }
.tar-res-w { background: var(--win); } .tar-res-d { background: var(--draw); } .tar-res-l { background: var(--loss); }
.tar-honours { columns: 4 140px; padding-left: 20px; }
.tar-arts { list-style: none; padding: 0; }
.tar-arts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tar-arts span { color: var(--muted); font-size: 13px; margin-left: 6px; white-space: nowrap; }

/* ---------- article cards ---------- */
.tar-section { font-size: 28px; text-transform: uppercase; margin-top: 44px !important; }
.tar-postgrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; padding: 0; list-style: none; }
.tar-post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; gap: 0 !important; }
.tar-post .wp-block-post-featured-image { margin: 0; background: linear-gradient(135deg, var(--navy), var(--navy-2)); aspect-ratio: 16/9; }
.tar-post .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.tar-post .wp-block-post-title { font-size: 21px; margin: 6px 16px 8px; line-height: 1.2; }
.tar-post .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.tar-post .wp-block-post-title a:hover { color: var(--red); }
.tar-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.tar-post .tar-cat { margin: 12px 16px 0; }
.tar-cat a { text-decoration: none; color: var(--red); }
.tar-meta { gap: 10px; font-size: 13px; color: var(--muted); }
.tar-post .tar-meta { margin: auto 16px 14px; }
.tar-meta > * + *::before { content: "·"; margin-right: 10px; }
.tar-meta a { color: var(--muted); text-decoration: none; }
.tar-more-wrap { margin-top: 18px; }
.wp-block-query-pagination { margin-top: 28px; gap: 8px; font-weight: 600; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 4px 10px; border-radius: 6px; text-decoration: none; }
.wp-block-query-pagination .current { background: var(--red); color: #fff; }

/* ---------- single article ---------- */
.tar-byline { margin: 0 0 18px; }
.tar-prose .wp-block-post-featured-image { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; }
.tar-prose .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.tar-article { font-size: 18px; line-height: 1.7; }
.tar-article p { margin: 0 0 1.1em; }
.tar-article h2, .tar-article h3 { margin: 1.6em 0 .5em; }
.tar-article blockquote { border-left: 4px solid var(--gold); margin: 1.4em 0; padding: 4px 18px; color: #333; font-style: italic; }
.tar-article img { border-radius: 8px; }
.tar-explore { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin: 36px 0 18px; }
.tar-explore h2 { color: #fff; margin: 0 0 6px !important; font-size: 22px !important; }
.tar-explore a { color: #fff; font-weight: 600; }
.tar-postnav { margin-top: 18px; font-weight: 600; }
.tar-postnav a { text-decoration: none; }

/* ---------- footer ---------- */
.tar-footer { background: var(--navy); color: #c9ced8; padding: 36px 16px 28px; border-top: 4px solid var(--red); }
.tar-fcols { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.tar-fcols h4 { font-family: var(--head); text-transform: uppercase; color: #fff; font-size: 18px; margin: 0 0 10px; letter-spacing: .5px; }
.tar-fcols a { display: block; color: #c9ced8; text-decoration: none; padding: 3px 0; font-size: 14px; }
.tar-fcols a:hover { color: #fff; }
.tar-legal { max-width: 1200px; margin: 26px auto 0; font-size: 12.5px; color: #8b95a7; border-top: 1px solid #22314b; padding-top: 16px; }
.tar-legal a { color: #b5bdca; }

@media (max-width: 640px) {
  .tar-bar { padding-top: 14px; }
  .tar-logo { font-size: 24px; }
  .tar-tag { display: none; }
  .tar-lede { font-size: 16.5px; }
  .tar-table { font-size: 13.5px; }
  .tar-table td, .tar-table th { padding: 7px 8px; }
  .tar-compact { width: 100%; }
  .tar-facts { grid-template-columns: 1fr; gap: 2px; }
  .tar-facts dd { margin-bottom: 8px; }
  .tar-article { font-size: 17px; }
}

/* fit narrow tables to their box; keep dates on one line */
.tar-scroll:has(> .tar-compact) { width: fit-content; max-width: 100%; }
.tar-compact { min-width: 0; }
.tar-table td:first-child { white-space: nowrap; }
@media (max-width: 640px) { .tar-scroll:has(> .tar-compact) { width: auto; } }


/* ================= live layer (v1.1) ================= */
@keyframes tarpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 106, .6); } 70% { box-shadow: 0 0 0 9px rgba(255, 77, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0); } }
@keyframes tarblink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes tarflash { 0% { background: #da291c; } 100% { background: var(--navy); } }
.tar-header { border-bottom: 0; }
.tar-nav { border-bottom: 0; }
.tar-strip { background: var(--navy-2); border-top: 1px solid #22314b; border-bottom: 4px solid var(--red); color: #e6e9ef; min-height: 42px; }
.tar-strip-in { max-width: 1200px; margin: 0 auto; padding: 9px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 13.5px; }
.tar-strip-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tar-strip-r { display: inline-flex; align-items: center; gap: 7px; color: #aab3c2; font-size: 12.5px; }
.tar-mut { color: #aab3c2; }
.tar-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 11.5px; letter-spacing: .6px; padding: 4px 9px; border-radius: 4px; }
.tar-badge-live { background: var(--red); color: #fff; }
.tar-badge-next { background: var(--gold); color: var(--ink); }
.tar-badge-ft { background: #e6e9ef; color: var(--ink); }
.tar-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6a; display: inline-block; animation: tarpulse 1.6s infinite; }
.tar-badge-live .tar-dot { background: #fff; }
.tar-blink { width: 7px; height: 7px; border-radius: 50%; background: #3ccf7a; display: inline-block; animation: tarblink 1.2s infinite; }
@media (prefers-reduced-motion: reduce) { .tar-dot, .tar-blink { animation: none; } }

.tar-crest { width: 46px; height: 46px; border-radius: 50%; background: #2a3953; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .3px; flex: none; }
.tar-crest-us { background: var(--red) !important; color: #fff !important; }
.tar-crest-sm { width: 36px; height: 36px; font-size: 13.5px; background: #eef0f3; color: var(--ink); }
.tar-crest-xs { width: 28px; height: 28px; font-size: 11.5px; background: #eef0f3; color: var(--ink); }
.tar-crest-o { background: #fff; border: 1px solid #d9d6cd; }

.tar-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 6px 0 22px; }
.tar-box { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tar-box-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tar-box-h h2 { margin: 0 !important; font-size: 22px !important; }
.tar-box-h span, .tar-box-h a { font-size: 12.5px; color: var(--muted); }
.tar-box-h a { color: var(--red); font-weight: 600; text-decoration: none; }

.tar-mc { background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: background .3s; }
.tar-mc.tar-flash { animation: tarflash 2.4s ease-out; }
.tar-mc-head { font-size: 12px; color: #aab3c2; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.tar-mc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; text-align: center; }
.tar-mc-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.tar-mc-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; }
.tar-mc-time { font-family: var(--head); font-size: 40px; font-weight: 700; line-height: 1; }
.tar-mc-score { font-family: var(--head); font-size: 48px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tar-mc-sub { font-size: 12.5px; color: #aab3c2; }
.tar-mc-live { display: inline-flex; align-items: center; gap: 7px; color: #ff8a9a; font-weight: 700; font-size: 13px; }
.tar-mc-note { margin: 0; font-size: 13px; color: #aab3c2; }
.tar-cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.tar-cd div { background: var(--navy-2); border-radius: 10px; padding: 9px 0; }
.tar-cd b { display: block; font-family: var(--head); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.tar-cd .tar-cd-s { color: #e8c46b; }
.tar-cd span { display: block; font-size: 10.5px; color: #aab3c2; text-transform: uppercase; letter-spacing: .6px; margin-top: 4px; }
.tar-goals { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid #22314b; display: grid; gap: 4px; font-size: 13px; color: #d4d9e2; }
.tar-g-l { text-align: left; } .tar-g-r { text-align: right; }
.tar-goals b { color: #fff; }
.tar-ball { font-size: 9px; color: #e8c46b; }
.tar-red { display: inline-block; width: 8px; height: 11px; background: #ff4d6a; border-radius: 1px; vertical-align: -1px; }

.tar-formrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tar-fm { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.tar-fm-score { color: #fff; font-weight: 700; font-size: 13px; border-radius: 6px; padding: 4px 0; width: 100%; }
.tar-fm-meta { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.tar-r-w { background: var(--win); } .tar-r-d { background: #6b7280; } .tar-r-l { background: var(--loss); }
.tar-snap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tar-snap div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.tar-snap b { display: block; font-family: var(--head); font-size: 30px; line-height: 1; }
.tar-snap span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; }
.tar-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.tar-kv a { font-weight: 600; text-decoration: none; }

.tar-split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.tar-split > .tar-main-col { flex: 999 1 620px; min-width: 0; }
.tar-split > .tar-side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tar-livehint { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.tar-livehint .tar-blink { background: var(--win); }

/* live league table */
.tar-lt { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.tar-lt th { background: #fff; color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 12px 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tar-lt th.num { text-align: right; }
.tar-lt td { padding: 8px 8px; border-top: 1px solid #eeece6; white-space: nowrap; vertical-align: middle; }
.tar-lt tbody tr:hover td { background: #fff6e6; }
.tar-lt tr.tar-us td { background: #fdecef; font-weight: 700; }
.tar-lt .tar-pos { border-left: 4px solid transparent; padding-left: 12px; width: 26px; }
.tar-lt tr.tar-z-ucl .tar-pos { border-left-color: #2b59c3; }
.tar-lt tr.tar-z-uel .tar-pos { border-left-color: #d9822b; }
.tar-lt tr.tar-z-uecl .tar-pos { border-left-color: #2a9d8f; }
.tar-lt tr.tar-z-rel .tar-pos { border-left-color: var(--red); }
.tar-lt .tar-team { display: flex; align-items: center; gap: 10px; }
.tar-lt .tar-pts { font-weight: 700; }
.tar-lt .tar-formc { white-space: nowrap; }
.tar-dotr { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; align-items: center; justify-content: center; margin-right: 3px; }
.tar-lt .tar-nextc { text-align: center; }
.tar-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.tar-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* fixtures / results (BBC-style rows) */
.tar-tabs { display: flex; gap: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow-x: auto; margin: 6px 0 14px; }
.tar-tabs a { flex: 1 0 auto; text-align: center; padding: 12px 18px 10px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tar-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.tar-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.tar-chips button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid #c9c6bd; background: #fff; color: var(--ink); cursor: pointer; }
.tar-chips button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tar-month h2 { margin: 26px 0 8px !important; }
.tar-fxlist { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.tar-fx { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid #eeece6; }
.tar-fx:first-child { border-top: 0; }
.tar-fx:hover { background: #fff6e6; }
.tar-fx-when { display: flex; flex-direction: column; gap: 2px; }
.tar-fx-when b { font-size: 14px; }
.tar-fx-when span { font-size: 12px; color: var(--muted); }
.tar-fx-m { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 15px; }
.tar-fx-m .h { text-align: right; }
.tar-fx-m .us { font-weight: 700; }
.tar-fx-box { justify-self: center; width: 92px; text-align: center; border-radius: 7px; padding: 6px 0; font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1; background: var(--paper); font-variant-numeric: tabular-nums; }
.tar-fx-box.played { background: var(--navy); color: #fff; }
.tar-fx-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; color: var(--muted); text-align: right; }
.tar-fx-r .soon { color: var(--red-dark); font-weight: 700; }
.tar-chip { display: inline-flex; width: 26px; height: 26px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 13px; align-items: center; justify-content: center; }
.tar-fx-sc { grid-column: 2; font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -6px; }
@media (max-width: 720px) {
  .tar-fx { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; }
  .tar-fx-when { flex-direction: row; gap: 8px; align-items: baseline; }
  .tar-fx-m { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); font-size: 14px; gap: 8px; }
  .tar-fx-box { width: 76px; font-size: 19px; }
  .tar-fx-r { grid-column: 2; grid-row: 1; }
  .tar-fx-sc { grid-column: 1 / -1; margin-top: 0; }
  .tar-lt .tar-tn { max-width: 120px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
  .tar-mc-time { font-size: 34px; } .tar-mc-score { font-size: 40px; }
  .tar-cd b { font-size: 24px; }
  .tar-strip-r { display: none; }
}
@media (max-width: 640px) {
  .tar-lt th:nth-child(n+4):nth-child(-n+8), .tar-lt td:nth-child(n+4):nth-child(-n+8) { display: none; }
  .tar-lt th:last-child:not(:nth-child(-n+10)), .tar-lt td.tar-nextc { display: none; }
  .tar-lt .tar-tn { max-width: 150px; }
  .tar-dotr { width: 17px; height: 17px; font-size: 9px; margin-right: 2px; }
}
@media (max-width: 640px) {
  .tar-lt .tar-team .tar-crest-xs { display: none; }
  .tar-lt td, .tar-lt th { padding-left: 5px; padding-right: 5px; }
  .tar-lt .tar-pos { padding-left: 9px; width: 18px; }
  .tar-lt .tar-tn { max-width: 118px; }
}

/* API-Football images (self-hosted under /img/af/) */
.tar-crest-img { background: transparent !important; border: 0 !important; border-radius: 0; }
.tar-crest-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tar-crest.tar-crest-img { width: 46px; height: 46px; }
.tar-crest-sm.tar-crest-img { width: 28px; height: 28px; }
.tar-crest-xs.tar-crest-img { width: 20px; height: 20px; }
.tar-pl { display: inline-flex; align-items: center; gap: 10px; }
.tar-ph { border-radius: 50%; background: #eef0f3; object-fit: cover; flex: none; }
.tar-ph-sm { width: 34px; height: 34px; }
.tar-ph-lg { width: 112px; height: 112px; }
.tar-phrow { display: flex; gap: 18px; align-items: center; }
.tar-phrow .tar-lede { margin: 0; }
@media (max-width: 640px) {
  .tar-lt .tar-team .tar-crest-xs.tar-crest-img { display: inline-flex; width: 18px; height: 18px; }
  .tar-ph-lg { width: 84px; height: 84px; }
  .tar-phrow { align-items: flex-start; }
}
tr:has(.tar-pl) > td { vertical-align: middle; }
.tar-fig { margin: 4px 0 20px; }
.tar-fig img { width: 100%; max-width: 760px; height: auto; border-radius: 12px; display: block; }
.tar-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tar-fig figcaption a { color: inherit; }
