:root {
    --fifa-blue: #0018a8;
    --fifa-cyan: #13bce3;
    --fifa-red: #f21d2f;
    --fifa-orange: #ff5b20;
    --fifa-yellow: #ffd500;
    --fifa-green: #00a86b;
    --ink: #090909;
    --paper: #f5f1e8;
    --white: #fff;
    --muted: #5b5b5b;
    --line: #171717;
    --accent: var(--fifa-blue);
    --font: "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-weight: 500; }
button, a { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; }
.accent-green { --accent: var(--fifa-green); }.accent-gold { --accent: var(--fifa-yellow); }.accent-red { --accent: var(--fifa-red); }.accent-cyan { --accent: var(--fifa-blue); }
.tv-stage, .tv-canvas { width: 100%; min-height: 100vh; }
.tv-canvas { position: relative; overflow: hidden; background: var(--paper); }
.tv-canvas::before { content: ""; position: absolute; z-index: 0; top: 0; right: 0; width: 32vw; height: 34vw; max-height: 620px; background: repeating-radial-gradient(circle at 100% 0, var(--fifa-red) 0 7%, var(--fifa-orange) 7% 14%, var(--fifa-yellow) 14% 21%, var(--fifa-green) 21% 28%, var(--fifa-blue) 28% 35%); clip-path: polygon(45% 0,100% 0,100% 100%,0 52%); opacity: .95; pointer-events: none; }
.tv-header { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(280px, .75fr) minmax(760px, 2.3fr) minmax(260px, .65fr); align-items: stretch; min-height: 230px; color: var(--ink); background: var(--white); border-bottom: 8px solid var(--ink); }
.tv-brand { display: grid; align-content: center; gap: 18px; padding: 30px 42px; color: var(--ink); text-decoration: none; border-right: 7px solid var(--ink); background: var(--fifa-yellow); }
.tv-brand img { width: min(100%, 350px); height: 88px; object-fit: contain; object-position: left center; filter: brightness(0); }
.tv-brand span { font-size: clamp(20px,1.25vw,32px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.tv-brand span b { padding: 5px 8px; color: var(--white); background: var(--ink); }
.tv-tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); min-width: 0; }
.tv-tabs a { position: relative; display: grid; place-items: center; align-content: center; gap: 13px; min-width: 0; padding: 20px 8px; overflow: hidden; color: var(--ink); border-right: 3px solid var(--ink); text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.tv-tabs a:nth-child(1) { --tab: var(--fifa-cyan); }.tv-tabs a:nth-child(2) { --tab: var(--fifa-green); }.tv-tabs a:nth-child(3) { --tab: var(--fifa-yellow); }.tv-tabs a:nth-child(4) { --tab: var(--fifa-red); }.tv-tabs a:nth-child(5) { --tab: var(--fifa-orange); }.tv-tabs a:nth-child(6) { --tab: var(--fifa-blue); }
.tv-tabs a::before { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: var(--tab); }
.tv-tabs a svg { width: clamp(48px,3vw,72px); height: clamp(48px,3vw,72px); stroke-width: 4.5; }
.tv-tabs a span { font-size: clamp(19px,1.35vw,33px); font-weight: 900; line-height: 1; text-align: center; text-transform: uppercase; white-space: nowrap; }
.tv-tabs a.active { z-index: 1; color: var(--white); background: var(--tab); transform: translateY(12px); box-shadow: 0 18px 0 var(--ink); }
.tv-tabs a.active::after { content: ""; position: absolute; right: -30px; top: -35px; width: 120px; height: 120px; border: 24px solid rgba(255,255,255,.3); border-radius: 50%; }
.tv-tabs a:nth-child(3).active { color: var(--ink); }
.tv-live-meta { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 6px 14px; padding: 28px 34px; color: var(--white); background: var(--ink); }
.tv-signal { grid-column: 1 / 3; display: flex; align-items: center; gap: 10px; color: var(--fifa-yellow); font-size: clamp(18px,1.1vw,28px); font-weight: 900; letter-spacing: .08em; }
.tv-signal svg { width: 34px; height: 34px; }
.tv-live-meta strong { font-size: clamp(55px,4.2vw,105px); font-weight: 900; line-height: .9; letter-spacing: -.06em; }
.tv-live-meta small { grid-column: 1; color: var(--white); font-size: clamp(18px,1.2vw,29px); font-weight: 900; }
#fullscreenButton { grid-column: 2; grid-row: 2 / 4; align-self: center; width: 65px; height: 65px; display: grid; place-items: center; color: var(--ink); border: 0; background: var(--fifa-yellow); cursor: pointer; }
#fullscreenButton svg { width: 34px; height: 34px; }
.tv-manager-menu { position: relative; display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: center; gap: 20px; padding: 28px 32px; overflow: hidden; color: var(--white); background: var(--ink); text-decoration: none; }
.tv-manager-menu::after { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: var(--fifa-red); }
.tv-manager-menu svg { width: 82px; height: 82px; padding: 12px; color: var(--ink); border: 5px solid var(--white); background: var(--fifa-yellow); stroke: currentColor; stroke-width: 4; }
.tv-manager-menu span { min-width: 0; display: grid; gap: 7px; }.tv-manager-menu small { color: var(--fifa-yellow); font-size: clamp(16px,1vw,24px); font-weight: 900; text-transform: uppercase; }.tv-manager-menu strong { font-size: clamp(27px,1.8vw,44px); font-weight: 900; line-height: 1; text-transform: uppercase; }
.tv-manager-menu.active { color: var(--ink); background: var(--fifa-red); box-shadow: inset 0 -14px var(--ink); }.tv-manager-menu.active small { color: var(--white); }
.tv-safe-area { position: relative; z-index: 1; width: 100%; min-height: calc(100vh - 230px); padding: clamp(48px,4vw,95px); }
.tv-safe-area::before { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 42%; height: 320px; background: var(--fifa-blue); clip-path: polygon(0 50%,78% 50%,100% 100%,0 100%); opacity: .08; }
.b-title { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; gap: 8px 35px; margin-bottom: clamp(40px,3vw,72px); padding-bottom: 28px; border-bottom: 8px solid var(--ink); }
.tv-eyebrow { grid-column: 1 / 3; display: flex; align-items: center; gap: 18px; color: var(--accent); font-size: clamp(26px,1.8vw,44px); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.tv-eyebrow svg { width: clamp(48px,3vw,72px); height: clamp(48px,3vw,72px); padding: 9px; color: var(--white); background: var(--accent); }
.b-title h1 { margin: 0; font-size: clamp(100px,10vw,230px); font-weight: 900; line-height: .82; letter-spacing: -.095em; text-transform: uppercase; }
.b-title p { max-width: 640px; margin: 0; padding: 20px 28px; color: var(--white); background: var(--ink); font-size: clamp(23px,1.7vw,40px); font-weight: 700; line-height: 1.15; }
.b-upcoming-layout, .b-complete-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(560px,.7fr); gap: clamp(28px,2.4vw,56px); }
.b-hero-match, .b-result-hero { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 850px; overflow: hidden; color: var(--white); border: 8px solid var(--ink); background: var(--fifa-blue); box-shadow: 20px 20px 0 var(--fifa-yellow); animation: cardIn .5s both; }
.b-hero-match::before, .b-result-hero::before { content: ""; position: absolute; right: -110px; bottom: -110px; width: 420px; height: 420px; border: 70px solid var(--fifa-red); border-radius: 50%; opacity: .9; }
.b-hero-top, .b-result-label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 42px; color: var(--ink); border-bottom: 8px solid var(--ink); background: var(--fifa-yellow); font-size: clamp(25px,1.6vw,38px); font-weight: 900; text-transform: uppercase; }
.b-hero-top b { padding: 8px 14px; color: var(--white); background: var(--fifa-red); }
.b-hero-versus, .b-result-score { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(210px,.45fr) 1fr; align-items: center; gap: 28px; padding: 60px 45px; }
.b-team { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 24px; text-align: center; }
.b-team-flag { width: clamp(150px,13vw,310px); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 8px solid var(--ink); border-radius: 0; background: var(--white); box-shadow: 14px 14px 0 var(--fifa-red); }
.b-team-flag img { width: 84%; height: 84%; object-fit: contain; }
.b-team-flag b { color: var(--ink); font-size: 110px; font-weight: 900; }
.b-team > strong { max-width: 100%; overflow: hidden; font-size: clamp(38px,3.3vw,76px); font-weight: 900; line-height: .95; letter-spacing: -.05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.b-kickoff { display: grid; justify-items: center; gap: 10px; color: var(--ink); }
.b-kickoff small { padding: 7px 12px; color: var(--white); background: var(--fifa-red); font-size: clamp(22px,1.5vw,34px); font-weight: 900; }
.b-kickoff strong { color: var(--white); font-size: clamp(80px,7vw,165px); font-weight: 900; line-height: .9; letter-spacing: -.08em; }
.b-kickoff span { width: 105px; height: 105px; display: grid; place-items: center; color: var(--ink); background: var(--fifa-yellow); border-radius: 50%; font-size: 38px; font-weight: 900; }
.b-hero-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; padding: 30px 42px; color: var(--ink); border-top: 8px solid var(--ink); background: var(--white); font-size: clamp(24px,1.6vw,38px); font-weight: 900; }
.b-match-stack, .b-results-grid { display: grid; gap: 25px; }
.b-results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.b-match-mini { position: relative; display: grid; align-content: center; gap: 18px; min-height: 205px; padding: 26px 30px; overflow: hidden; color: var(--ink); border: 6px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--card-color,var(--fifa-cyan)); animation: cardIn .45s both; animation-delay: calc(var(--delay) * 60ms); }
.b-match-mini:nth-child(4n+1) { --card-color: var(--fifa-cyan); }.b-match-mini:nth-child(4n+2) { --card-color: var(--fifa-red); }.b-match-mini:nth-child(4n+3) { --card-color: var(--fifa-yellow); }.b-match-mini:nth-child(4n+4) { --card-color: var(--fifa-green); }
.b-mini-meta { color: var(--fifa-blue); font-size: clamp(20px,1.2vw,29px); font-weight: 900; text-transform: uppercase; }
.b-match-mini > div { display: grid; grid-template-columns: 1fr minmax(105px,.3fr) 1fr; align-items: center; gap: 12px; }
.b-match-mini .b-team { grid-template-columns: 68px minmax(0,1fr); justify-items: start; gap: 14px; text-align: left; }
.b-match-mini .b-team:last-child { grid-template-columns: minmax(0,1fr) 68px; text-align: right; }
.b-match-mini .b-team:last-child .b-team-flag { grid-column: 2; grid-row: 1; }
.b-match-mini .b-team:last-child > strong { grid-column: 1; grid-row: 1; justify-self: end; }
.b-match-mini .b-team-flag { width: 66px; border-width: 3px; box-shadow: 5px 5px 0 var(--card-color); }
.b-match-mini .b-team > strong { font-size: clamp(22px,1.45vw,34px); }
.b-mini-center { font-size: clamp(31px,2.1vw,50px); font-weight: 900; text-align: center; white-space: nowrap; }
.b-match-mini > small { color: var(--muted); font-size: clamp(18px,1.1vw,26px); font-weight: 700; }
.b-complete-layout { grid-template-columns: minmax(560px,.82fr) minmax(0,1.18fr); }
.b-result-hero { grid-template-rows: auto 1fr auto auto; background: var(--fifa-red); box-shadow-color: var(--fifa-cyan); }
.b-result-label { justify-content: center; }
.b-result-score { grid-template-columns: 1fr minmax(220px,.48fr) 1fr; }
.b-result-score > strong { font-size: clamp(90px,8vw,185px); font-weight: 900; text-align: center; white-space: nowrap; }
.b-result-score > strong i { padding: 0 14px; color: var(--fifa-yellow); font-style: normal; }
.b-result-score .b-team-flag { width: clamp(140px,10vw,235px); }
.b-result-score .b-team > strong { font-size: clamp(32px,2.4vw,55px); }
.b-scorers { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; padding: 25px 38px; border-top: 8px solid var(--ink); background: var(--fifa-blue); }
.b-scorers span { font-size: clamp(20px,1.25vw,30px); font-weight: 700; }.b-scorers b { color: var(--fifa-yellow); }
.b-team-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(25px,2vw,45px); }
.b-team-card { position: relative; display: grid; justify-items: center; gap: 28px; min-height: 520px; padding: 38px; overflow: hidden; border: 7px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--team-color,var(--fifa-blue)); animation: cardIn .45s both; animation-delay: calc(var(--delay) * 40ms); }
.b-team-card:nth-child(4n+1) { --team-color: var(--fifa-blue); }.b-team-card:nth-child(4n+2) { --team-color: var(--fifa-red); }.b-team-card:nth-child(4n+3) { --team-color: var(--fifa-yellow); }.b-team-card:nth-child(4n+4) { --team-color: var(--fifa-green); }
.b-team-card::before { content: ""; position: absolute; left: 0; top: 0; width: 42px; height: 100%; background: var(--team-color); }
.b-team-card .b-team { width: 100%; }
.b-team-card .b-team-flag { width: clamp(150px,10vw,230px); box-shadow: 10px 10px 0 var(--team-color); }
.b-team-card .b-team > strong { color: var(--ink); font-size: clamp(34px,2.5vw,58px); }
.b-team-number { position: absolute; right: 20px; top: 8px; color: var(--team-color); font-size: clamp(65px,5vw,120px); font-weight: 900; line-height: 1; }
.b-team-card > div:last-child { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 24px; border-top: 5px solid var(--ink); }
.b-team-card > div:last-child span:nth-child(2) { grid-column: 1 / 3; }
.b-team-card > div:last-child span { min-width: 0; display: grid; gap: 4px; }
.b-team-card small { color: var(--team-color); font-size: clamp(17px,1vw,24px); font-weight: 900; letter-spacing: .08em; }
.b-team-card > div:last-child strong { overflow: hidden; font-size: clamp(22px,1.4vw,33px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.b-player-layout { display: grid; grid-template-columns: minmax(420px,.72fr) minmax(0,1.28fr); gap: clamp(30px,3vw,65px); }
.b-player-hero { position: relative; min-height: 1050px; display: grid; align-content: end; overflow: hidden; padding: 55px; color: var(--white); border: 8px solid var(--ink); background: var(--fifa-red); box-shadow: 18px 18px 0 var(--fifa-yellow); }
.b-player-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -180px; border: 80px solid var(--fifa-blue); border-radius: 50%; }
.b-player-photo { position: absolute; inset: 20px 20px 300px; display: grid; place-items: center; }
.b-player-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(20px 20px 0 rgba(0,0,0,.2)); }
.b-player-hero > div { position: relative; z-index: 1; }
.b-player-hero small { display: inline-block; padding: 8px 12px; color: var(--ink); background: var(--fifa-yellow); font-size: clamp(20px,1.3vw,30px); font-weight: 900; }
.b-player-hero h2 { margin: 18px 0; font-size: clamp(65px,5.5vw,130px); font-weight: 900; line-height: .85; letter-spacing: -.08em; text-transform: uppercase; }
.b-player-hero p { display: flex; align-items: center; gap: 15px; margin: 0; font-size: clamp(23px,1.5vw,35px); font-weight: 700; }
.b-player-hero p img { width: 55px; height: 55px; object-fit: contain; }
.b-leader-list { display: grid; gap: 18px; }
.b-leader-list article { display: grid; grid-template-columns: 65px 120px minmax(220px,1fr) repeat(3,minmax(100px,.25fr)); align-items: center; gap: 20px; min-height: 120px; padding: 15px 26px; border: 6px solid var(--ink); background: var(--white); box-shadow: 9px 9px 0 var(--row-color,var(--fifa-cyan)); }
.b-leader-list article:nth-child(4n+1) { --row-color: var(--fifa-cyan); }.b-leader-list article:nth-child(4n+2) { --row-color: var(--fifa-red); }.b-leader-list article:nth-child(4n+3) { --row-color: var(--fifa-yellow); }.b-leader-list article:nth-child(4n+4) { --row-color: var(--fifa-green); }
.b-leader-list article > b { color: var(--row-color); font-size: clamp(35px,2.5vw,58px); font-weight: 900; }
.b-leader-photo { width: 105px; height: 105px; overflow: hidden; border: 4px solid var(--ink); background: var(--fifa-yellow); }
.b-leader-photo img { width: 100%; height: 100%; object-fit: contain; }
.b-leader-list article > div { display: grid; gap: 3px; }.b-leader-list article > div strong { font-size: clamp(28px,2vw,46px); font-weight: 900; }.b-leader-list article small { color: var(--muted); font-size: clamp(17px,1.05vw,25px); font-weight: 700; }
.b-leader-list article > span:not(.b-leader-photo) { display: grid; justify-items: center; }.b-leader-list article > span:not(.b-leader-photo) strong { font-size: clamp(35px,2.7vw,62px); font-weight: 900; }
.b-groups-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(28px,2.2vw,52px); }
.b-group-card { overflow: hidden; border: 7px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--group-color,var(--fifa-blue)); }
.b-group-card:nth-child(4n+1) { --group-color: var(--fifa-blue); }.b-group-card:nth-child(4n+2) { --group-color: var(--fifa-red); }.b-group-card:nth-child(4n+3) { --group-color: var(--fifa-yellow); }.b-group-card:nth-child(4n+4) { --group-color: var(--fifa-green); }
.b-group-card h2, .b-chart-panel h2, .b-stat-leaders h2, .b-record-panel h2 { margin: 0; padding: 25px 32px; color: var(--white); border-bottom: 7px solid var(--ink); background: var(--group-color,var(--fifa-blue)); font-size: clamp(32px,2.3vw,54px); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.b-group-card:nth-child(3) h2 { color: var(--ink); }
.b-table-head, .b-table-row { display: grid; grid-template-columns: minmax(0,1fr) 70px 80px 90px; align-items: center; gap: 8px; padding: 0 25px; }
.b-table-head { min-height: 65px; color: var(--muted); font-size: clamp(17px,1vw,24px); font-weight: 900; }
.b-table-row { min-height: 110px; border-top: 4px solid var(--ink); }
.b-table-row > b { display: none; }.b-table-row > span { min-width: 0; display: flex; align-items: center; gap: 15px; }.b-table-row img { width: 60px; height: 60px; object-fit: contain; }.b-table-row span strong { overflow: hidden; font-size: clamp(24px,1.65vw,38px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.b-table-row em { font-size: clamp(25px,1.7vw,40px); font-weight: 900; font-style: normal; text-align: center; }.b-table-row.qualified { box-shadow: inset 16px 0 var(--fifa-green); }
.b-stats-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px,2.2vw,52px); }
.b-stat-kpis { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.b-stat-kpis article { position: relative; min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 35px 42px; overflow: hidden; color: var(--white); border: 7px solid var(--ink); background: var(--kpi,var(--fifa-blue)); box-shadow: 12px 12px 0 var(--ink); }.b-stat-kpis article:nth-child(2) { --kpi: var(--fifa-red); }.b-stat-kpis article:nth-child(3) { --kpi: var(--fifa-green); }.b-stat-kpis article::after { content: ""; position: absolute; right: -80px; top: -80px; width: 230px; height: 230px; border: 42px solid var(--fifa-yellow); border-radius: 50%; opacity: .45; }.b-stat-kpis strong { position: relative; z-index: 1; font-size: clamp(80px,7vw,165px); font-weight: 900; line-height: .8; letter-spacing: -.08em; }.b-stat-kpis span { position: relative; z-index: 1; max-width: 220px; font-size: clamp(25px,1.7vw,40px); font-weight: 900; text-align: right; }
.b-chart-panel, .b-stat-leaders, .b-record-panel { overflow: hidden; border: 7px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--fifa-yellow); }.b-chart-panel { grid-row: span 2; }.b-chart-panel h2 { --group-color: var(--fifa-blue); }.b-stat-leaders h2 { --group-color: var(--fifa-red); }.b-record-panel h2 { --group-color: var(--fifa-green); }
.b-chart-row { min-height: 140px; display: grid; grid-template-columns: minmax(240px,.65fr) 1fr 80px; align-items: center; gap: 28px; padding: 20px 34px; border-top: 4px solid var(--ink); }.b-chart-row span { display: flex; align-items: center; gap: 18px; font-size: clamp(25px,1.65vw,38px); font-weight: 900; }.b-chart-row img { width: 65px; height: 65px; object-fit: contain; }.b-chart-row i { height: 38px; overflow: hidden; border: 4px solid var(--ink); background: var(--paper); }.b-chart-row i b { display: block; height: 100%; background: repeating-linear-gradient(90deg,var(--fifa-red) 0 50px,var(--fifa-yellow) 50px 100px,var(--fifa-blue) 100px 150px); }.b-chart-row > strong { color: var(--fifa-blue); font-size: clamp(36px,2.7vw,62px); font-weight: 900; text-align: right; }
.b-stat-leaders > div { min-height: 115px; display: grid; grid-template-columns: 65px 1fr 90px; align-items: center; gap: 20px; padding: 18px 30px; border-top: 4px solid var(--ink); }.b-stat-leaders > div > b { color: var(--fifa-red); font-size: clamp(32px,2.1vw,48px); font-weight: 900; }.b-stat-leaders > div span { display: grid; font-size: clamp(25px,1.7vw,40px); font-weight: 900; }.b-stat-leaders small { color: var(--muted); font-size: clamp(17px,1.05vw,25px); }.b-stat-leaders > div > strong { font-size: clamp(38px,2.8vw,65px); font-weight: 900; text-align: right; }
.b-record-panel > div { min-height: 135px; display: grid; grid-template-columns: 1fr 190px 1fr; align-items: center; gap: 18px; padding: 20px 30px; border-top: 4px solid var(--ink); font-size: clamp(23px,1.5vw,35px); font-weight: 900; }.b-record-panel > div strong { padding: 12px; color: var(--white); background: var(--fifa-blue); font-size: clamp(32px,2.5vw,58px); text-align: center; }.b-record-panel > div span:last-child { text-align: right; }
@keyframes cardIn { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1500px) { .tv-header { grid-template-columns: 280px 1fr 240px; }.tv-brand { padding: 25px; }.tv-tabs a span { font-size: 18px; }.tv-safe-area { padding: 45px; }.b-team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.b-groups-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.b-upcoming-layout,.b-complete-layout { grid-template-columns: 1fr; }.b-match-stack { grid-template-columns: repeat(2,1fr); }.b-hero-match,.b-result-hero { min-height: 760px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@media (max-width: 1100px) {
    .tv-header { grid-template-columns: 1fr; }
    .tv-brand { min-height: 190px; border-right: 0; border-bottom: 6px solid var(--ink); }
    .tv-brand img { width: 320px; }
    .tv-tabs { grid-template-columns: repeat(3,1fr); }
    .tv-tabs a { min-height: 145px; border-bottom: 3px solid var(--ink); }
    .tv-tabs a.active { transform: none; box-shadow: inset 0 -12px var(--ink); }
    .tv-live-meta { grid-template-columns: 1fr auto auto; }
    .tv-signal { grid-column: 1; }
    .tv-live-meta strong { grid-column: 2; grid-row: 1 / 3; }
    .tv-live-meta small { grid-column: 1; }
    #fullscreenButton { grid-column: 3; grid-row: 1 / 3; }
    .tv-safe-area { padding: 36px 22px 70px; }
    .b-title { grid-template-columns: 1fr; }
    .tv-eyebrow,.b-title h1,.b-title p { grid-column: 1; }
    .b-title h1 { font-size: clamp(70px,19vw,130px); overflow-wrap: anywhere; }
    .b-title p { max-width: none; }
    .b-upcoming-layout,.b-complete-layout,.b-player-layout,.b-stats-layout { grid-template-columns: 1fr; }
    .b-match-stack,.b-results-grid,.b-team-grid,.b-groups-grid,.b-stat-kpis { grid-template-columns: 1fr; }
    .b-stat-kpis { grid-column: 1; }
    .b-chart-panel { grid-row: auto; }
    .b-hero-match,.b-result-hero { min-height: 690px; }
    .b-hero-versus,.b-result-score { grid-template-columns: 1fr 120px 1fr; padding: 35px 15px; }
    .b-team-flag { width: clamp(95px,25vw,190px); border-width: 5px; box-shadow: 7px 7px 0 var(--fifa-red); }
    .b-team > strong { font-size: clamp(25px,7vw,48px); }
    .b-kickoff strong,.b-result-score > strong { font-size: clamp(55px,15vw,100px); }
    .b-kickoff span { width: 70px; height: 70px; }
    .b-hero-top,.b-hero-foot { padding: 22px 18px; flex-wrap: wrap; }
    .b-player-hero { min-height: 850px; }
    .b-leader-list article { grid-template-columns: 45px 80px minmax(0,1fr); }
    .b-leader-list article > span:not(.b-leader-photo) { grid-column: span 1; }
    .b-leader-photo { width: 75px; height: 75px; }
    .b-table-head,.b-table-row { grid-template-columns: minmax(0,1fr) 45px 50px 55px; padding: 0 12px; }
    .b-chart-row { grid-template-columns: minmax(120px,.7fr) 1fr 45px; gap: 10px; padding: 15px; }
    .b-record-panel > div { grid-template-columns: 1fr 120px 1fr; padding: 15px; }
}
/* Complete match archive: oversized, camera-readable result cards. */
.complete-title p { background: var(--fifa-green); }
.complete-results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(38px,3vw,72px); }
.complete-match-card { --result-color: var(--fifa-green); position: relative; display: grid; gap: 0; min-width: 0; padding: 0; overflow: hidden; color: var(--ink); border: 8px solid var(--ink); background: var(--white); box-shadow: 18px 18px 0 var(--result-color); cursor: pointer; text-align: left; animation: cardIn .5s both; animation-delay: calc(var(--delay) * 45ms); transition: transform .2s ease, box-shadow .2s ease; }
.complete-match-card:nth-child(4n+2) { --result-color: var(--fifa-cyan); }.complete-match-card:nth-child(4n+3) { --result-color: var(--fifa-yellow); }.complete-match-card:nth-child(4n+4) { --result-color: var(--fifa-red); }
.complete-match-card:first-child { --result-color: var(--fifa-red); grid-column: 1 / 3; }
.complete-match-card:hover,.complete-match-card:focus-visible { transform: translate(-7px,-7px); box-shadow: 27px 27px 0 var(--result-color); outline: 10px solid var(--fifa-blue); outline-offset: 7px; }
.complete-card-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 100px; padding: 22px 30px; border-bottom: 7px solid var(--ink); background: var(--result-color); font-size: clamp(22px,1.35vw,34px); font-weight: 900; text-transform: uppercase; }
.complete-card-top > strong { padding: 9px 14px; color: var(--white); background: var(--ink); white-space: nowrap; }.complete-card-top > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.complete-card-top time { white-space: nowrap; }
.complete-card-score { display: grid; grid-template-columns: 1fr minmax(190px,.42fr) 1fr; align-items: center; gap: 25px; min-height: 370px; padding: 38px 30px; }
.complete-card-team { min-width: 0; display: grid; justify-items: center; gap: 20px; text-align: center; }.complete-card-flag { width: clamp(120px,9vw,220px); aspect-ratio: 1; display: grid; place-items: center; border: 6px solid var(--ink); background: var(--paper); box-shadow: 9px 9px 0 var(--result-color); }.complete-card-flag img { width: 82%; height: 82%; object-fit: contain; }.complete-card-team > strong { max-width: 100%; overflow: hidden; font-size: clamp(34px,2.6vw,62px); font-weight: 900; line-height: .95; letter-spacing: -.055em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.complete-score-box { display: grid; justify-items: center; gap: 5px; }.complete-score-box small { padding: 7px 15px; color: var(--white); background: var(--fifa-blue); font-size: clamp(23px,1.4vw,34px); font-weight: 900; }.complete-score-box strong { font-size: clamp(82px,7vw,165px); font-weight: 900; line-height: .9; letter-spacing: -.1em; white-space: nowrap; }.complete-score-box strong i { padding: 0 12px; color: var(--result-color); font-style: normal; }.complete-score-box em { color: var(--muted); font-size: clamp(20px,1.25vw,30px); font-weight: 900; font-style: normal; }
.complete-card-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; min-height: 105px; padding: 20px 30px; color: var(--white); border-top: 7px solid var(--ink); background: var(--ink); }.complete-card-bottom > span,.complete-card-bottom > strong { display: flex; align-items: center; gap: 12px; font-size: clamp(22px,1.4vw,34px); font-weight: 900; }.complete-card-bottom svg { width: 48px; height: 48px; flex: 0 0 auto; }.complete-card-bottom > strong { padding: 11px 17px; color: var(--ink); background: var(--result-color); white-space: nowrap; }.complete-card-bottom > strong svg { width: 38px; height: 38px; }
.complete-match-card:first-child .complete-card-score { min-height: 480px; }.complete-match-card:first-child .complete-card-flag { width: clamp(175px,12vw,285px); }.complete-match-card:first-child .complete-card-team > strong { font-size: clamp(48px,3.6vw,84px); }.complete-match-card:first-child .complete-score-box strong { font-size: clamp(125px,10vw,225px); }
.complete-empty { padding: 50px; border: 8px solid var(--ink); background: var(--white); font-size: 48px; font-weight: 900; }
body:has(.match-detail-modal[open]) { overflow: hidden; }
.match-detail-modal { width: min(94vw,2500px); max-width: none; height: min(92vh,1550px); max-height: none; padding: 0; overflow: hidden; color: var(--ink); border: 10px solid var(--ink); background: var(--paper); box-shadow: 28px 28px 0 var(--fifa-yellow); }.match-detail-modal::backdrop { background: rgba(0,0,0,.83); backdrop-filter: blur(10px); }.match-modal-shell { height: 100%; display: grid; grid-template-rows: auto auto auto minmax(0,1fr); overflow: hidden; }
.match-modal-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; padding: 25px 35px; color: var(--white); border-bottom: 8px solid var(--ink); background: var(--fifa-blue); }.match-modal-head > div { display: grid; gap: 5px; }.match-modal-head span { color: var(--fifa-yellow); font-size: clamp(25px,1.7vw,42px); font-weight: 900; }.match-modal-head strong { font-size: clamp(30px,2.2vw,52px); font-weight: 900; }.match-modal-head button { width: 95px; height: 95px; color: var(--ink); border: 6px solid var(--ink); background: var(--fifa-yellow); font-size: 75px; font-weight: 900; line-height: .7; cursor: pointer; }
.match-modal-score { display: grid; grid-template-columns: 1fr minmax(280px,.42fr) 1fr; align-items: center; gap: 25px; padding: 35px; color: var(--white); border-bottom: 8px solid var(--ink); background: var(--fifa-red); }.match-modal-score .b-team-flag { width: clamp(140px,10vw,250px); box-shadow: 10px 10px 0 var(--fifa-yellow); }.match-modal-score .b-team > strong { font-size: clamp(40px,3.2vw,76px); }.match-modal-result { display: grid; justify-items: center; gap: 7px; }.match-modal-result small { padding: 7px 14px; color: var(--ink); background: var(--fifa-yellow); font-size: clamp(22px,1.4vw,34px); font-weight: 900; }.match-modal-result > strong { font-size: clamp(105px,9vw,210px); font-weight: 900; line-height: .85; letter-spacing: -.1em; white-space: nowrap; }.match-modal-result > strong i { padding: 0 15px; color: var(--fifa-yellow); font-style: normal; }.match-modal-result span { font-size: clamp(22px,1.4vw,34px); font-weight: 900; }
.match-modal-info { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 8px solid var(--ink); }.match-modal-info article { min-width: 0; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 18px; padding: 22px 30px; border-right: 5px solid var(--ink); background: var(--white); }.match-modal-info article:last-child { border-right: 0; }.match-modal-info svg { width: 65px; height: 65px; padding: 8px; color: var(--white); background: var(--fifa-green); }.match-modal-info span { min-width: 0; display: grid; gap: 3px; color: var(--fifa-blue); font-size: clamp(18px,1.05vw,26px); font-weight: 900; }.match-modal-info strong { overflow: hidden; color: var(--ink); font-size: clamp(24px,1.55vw,37px); text-overflow: ellipsis; white-space: nowrap; }
.match-modal-events { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); }.match-modal-events h2 { margin: 0; padding: 18px 32px; color: var(--ink); border-bottom: 7px solid var(--ink); background: var(--fifa-yellow); font-size: clamp(34px,2.5vw,60px); font-weight: 900; }.match-modal-events > div { min-height: 0; display: grid; grid-template-columns: repeat(2,1fr); align-content: start; gap: 0; overflow-y: auto; }.match-modal-events article { display: grid; grid-template-columns: 90px 1fr 65px; align-items: center; gap: 20px; min-height: 105px; padding: 15px 28px; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); background: var(--white); }.match-modal-events article > strong { color: var(--fifa-red); font-size: clamp(33px,2.25vw,54px); font-weight: 900; }.match-modal-events article span { display: grid; font-size: clamp(25px,1.65vw,40px); font-weight: 900; }.match-modal-events article small { color: var(--muted); font-size: clamp(18px,1.05vw,25px); font-weight: 700; }.match-modal-events article b { font-size: clamp(35px,2.4vw,58px); text-align: right; }.match-modal-events p { padding: 30px; font-size: 32px; font-weight: 900; }
@media (max-width: 1500px) { .complete-match-card:first-child { grid-column: auto; }.complete-match-card:first-child .complete-card-score { min-height: 370px; }.complete-results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.complete-card-score { grid-template-columns: 1fr 150px 1fr; padding: 30px 18px; }.complete-card-bottom { grid-template-columns: 1fr; }.match-modal-events > div { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .complete-results-grid { grid-template-columns: 1fr; }.complete-card-top { grid-template-columns: 1fr; }.complete-card-score { grid-template-columns: 1fr 105px 1fr; }.complete-card-team > strong { font-size: clamp(24px,7vw,42px); }.complete-card-flag,.complete-match-card:first-child .complete-card-flag { width: clamp(90px,25vw,165px); }.complete-score-box strong,.complete-match-card:first-child .complete-score-box strong { font-size: clamp(65px,18vw,110px); }.complete-card-bottom > strong { white-space: normal; }.match-detail-modal { width: 96vw; height: 95vh; }.match-modal-score { grid-template-columns: 1fr 100px 1fr; padding: 25px 12px; }.match-modal-score .b-team-flag { width: clamp(85px,22vw,150px); }.match-modal-score .b-team > strong { font-size: clamp(25px,7vw,42px); }.match-modal-result > strong { font-size: clamp(70px,19vw,115px); }.match-modal-info { grid-template-columns: 1fr; }.match-modal-info article { border-right: 0; border-bottom: 4px solid var(--ink); }.match-modal-info strong { white-space: normal; }.match-modal-head button { width: 70px; height: 70px; font-size: 55px; } }
/* TV camera emphasis for completed-match labels and actions. */
.complete-card-top { min-height: 145px; gap: 34px; padding: 28px 38px; font-size: clamp(32px,2.15vw,52px); line-height: 1.05; }
.complete-card-top > strong { padding: 15px 22px; font-size: clamp(32px,2.2vw,54px); }
.complete-card-top time { font-size: clamp(30px,2vw,48px); }
.complete-card-bottom { min-height: 155px; gap: 34px; padding: 28px 38px; }
.complete-card-bottom > span,.complete-card-bottom > strong { gap: 18px; font-size: clamp(30px,2.1vw,52px); line-height: 1.08; }
.complete-card-bottom > span { min-width: 0; }
.complete-card-bottom > span svg { width: 76px; height: 76px; }
.complete-card-bottom > strong { padding: 20px 28px; font-size: clamp(31px,2.05vw,50px); }
.complete-card-bottom > strong svg { width: 60px; height: 60px; }
.complete-match-card:first-child .complete-card-top { min-height: 175px; font-size: clamp(38px,2.7vw,66px); }
.complete-match-card:first-child .complete-card-top > strong { font-size: clamp(38px,2.65vw,65px); }
.complete-match-card:first-child .complete-card-top time { font-size: clamp(36px,2.45vw,60px); }
.complete-match-card:first-child .complete-card-bottom { min-height: 185px; }
.complete-match-card:first-child .complete-card-bottom > span,.complete-match-card:first-child .complete-card-bottom > strong { font-size: clamp(38px,2.65vw,65px); }
.complete-match-card:first-child .complete-card-bottom > span svg { width: 92px; height: 92px; }
.complete-match-card:first-child .complete-card-bottom > strong svg { width: 72px; height: 72px; }
@media (max-width: 1500px) {
    .complete-card-top { grid-template-columns: 1fr auto; }
    .complete-card-top > strong { grid-column: 1 / 3; }
    .complete-card-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
    .complete-card-top { min-height: 0; padding: 24px 18px; font-size: clamp(25px,7vw,38px); }
    .complete-card-top > strong,.complete-card-top time { font-size: clamp(25px,7vw,38px); }
    .complete-card-bottom { min-height: 0; padding: 24px 18px; }
    .complete-card-bottom > span,.complete-card-bottom > strong { font-size: clamp(25px,7vw,38px); }
}
/* Balance oversized Complete-card metadata so long venue/date labels never overlap. */
.complete-card-top { min-height: 125px; gap: 22px; padding: 24px 30px; font-size: clamp(27px,1.7vw,41px); }
.complete-card-top > strong { padding: 12px 17px; font-size: clamp(27px,1.75vw,42px); }
.complete-card-top time { font-size: clamp(26px,1.65vw,40px); }
.complete-card-bottom { min-height: 130px; grid-template-columns: minmax(0,1fr) auto; gap: 22px; padding: 24px 30px; }
.complete-card-bottom > span,.complete-card-bottom > strong { min-width: 0; gap: 14px; font-size: clamp(26px,1.65vw,40px); line-height: 1.12; }
.complete-card-bottom > span { white-space: normal; overflow-wrap: anywhere; }
.complete-card-bottom > span svg { width: 62px; height: 62px; }
.complete-card-bottom > strong { padding: 15px 20px; font-size: clamp(26px,1.6vw,39px); white-space: normal; }
.complete-card-bottom > strong svg { width: 48px; height: 48px; }
.complete-match-card:first-child .complete-card-top { min-height: 145px; font-size: clamp(32px,2.15vw,52px); }
.complete-match-card:first-child .complete-card-top > strong { font-size: clamp(32px,2.1vw,51px); }
.complete-match-card:first-child .complete-card-top time { font-size: clamp(30px,2vw,48px); }
.complete-match-card:first-child .complete-card-bottom { min-height: 150px; }
.complete-match-card:first-child .complete-card-bottom > span,.complete-match-card:first-child .complete-card-bottom > strong { font-size: clamp(31px,2vw,49px); }
.complete-match-card:first-child .complete-card-bottom > span svg { width: 70px; height: 70px; }
.complete-match-card:first-child .complete-card-bottom > strong svg { width: 55px; height: 55px; }
@media (max-width: 1800px) {
    .complete-card-top { grid-template-columns: 1fr auto; }
    .complete-card-top > strong { grid-column: 1 / 3; }
    .complete-card-bottom { grid-template-columns: 1fr; }
}
.complete-match-card { text-decoration: none; }
.detail-back { display: inline-flex; margin-bottom: 40px; padding: 18px 28px; color: var(--white); background: var(--ink); border: 6px solid var(--ink); font-size: clamp(27px,1.8vw,44px); font-weight: 900; text-decoration: none; }.detail-back:hover { color: var(--ink); background: var(--fifa-yellow); }
.detail-scoreboard { overflow: hidden; border: 9px solid var(--ink); background: var(--fifa-red); box-shadow: 22px 22px 0 var(--fifa-yellow); }.detail-score-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; padding: 30px 42px; color: var(--ink); border-bottom: 8px solid var(--ink); background: var(--fifa-yellow); font-size: clamp(29px,2vw,48px); font-weight: 900; }.detail-score-top span { padding: 12px 20px; color: var(--white); background: var(--ink); }.detail-score-top time { text-align: right; }.detail-score-main { display: grid; grid-template-columns: 1fr minmax(280px,.42fr) 1fr; align-items: center; gap: 35px; min-height: 650px; padding: 55px; color: var(--white); }.detail-score-main .b-team-flag { width: clamp(220px,16vw,390px); box-shadow: 18px 18px 0 var(--fifa-yellow); }.detail-score-main .b-team > strong { font-size: clamp(65px,5vw,115px); }.detail-final { display: grid; justify-items: center; gap: 12px; }.detail-final small { padding: 10px 18px; color: var(--ink); background: var(--fifa-yellow); font-size: clamp(28px,1.8vw,44px); font-weight: 900; }.detail-final > strong { font-size: clamp(160px,13vw,300px); font-weight: 900; line-height: .8; letter-spacing: -.12em; white-space: nowrap; }.detail-final > strong i { padding: 0 22px; color: var(--fifa-yellow); font-style: normal; }.detail-final span { font-size: clamp(28px,1.8vw,44px); font-weight: 900; }.detail-match-info { display: grid; grid-template-columns: repeat(3,1fr); border-top: 8px solid var(--ink); background: var(--white); }.detail-match-info > span { min-width: 0; display: grid; grid-template-columns: 85px 1fr; align-items: center; gap: 5px 20px; padding: 28px 35px; border-right: 6px solid var(--ink); }.detail-match-info > span:last-child { border-right: 0; }.detail-match-info svg { grid-row: 1 / 3; width: 80px; height: 80px; padding: 12px; color: var(--white); background: var(--fifa-green); }.detail-match-info small { color: var(--fifa-blue); font-size: clamp(20px,1.25vw,30px); font-weight: 900; }.detail-match-info strong { overflow: hidden; font-size: clamp(27px,1.75vw,42px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.detail-event-counts { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; margin: 75px 0; }.detail-event-counts article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 25px; min-height: 220px; padding: 30px; color: var(--white); border: 7px solid var(--ink); background: var(--count-color); box-shadow: 12px 12px 0 var(--ink); }.detail-event-counts .goal { --count-color: var(--fifa-green); }.detail-event-counts .yellow { --count-color: #e8bd00; color: var(--ink); }.detail-event-counts .red { --count-color: var(--fifa-red); }.detail-event-counts .sub { --count-color: var(--fifa-blue); }.detail-event-counts b { grid-row: 1 / 3; font-size: clamp(65px,5vw,115px); line-height: 1; }.detail-event-counts strong { font-size: clamp(85px,7vw,165px); font-weight: 900; line-height: .8; }.detail-event-counts span { font-size: clamp(24px,1.6vw,38px); font-weight: 900; }
.detail-section { margin-top: 80px; }.detail-section-title { display: flex; align-items: stretch; border: 8px solid var(--ink); }.detail-section-title span { width: 140px; display: grid; place-items: center; color: var(--white); background: var(--fifa-blue); font-size: clamp(45px,3.5vw,82px); font-weight: 900; }.detail-section-title h2 { flex: 1; margin: 0; padding: 25px 38px; color: var(--ink); background: var(--fifa-yellow); font-size: clamp(52px,4vw,92px); font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.detail-scorers { display: grid; grid-template-columns: repeat(2,1fr); border: 8px solid var(--ink); border-top: 0; background: var(--white); }.detail-scorers article { display: grid; grid-template-columns: 115px 80px 1fr; align-items: center; gap: 20px; min-height: 145px; padding: 22px 32px; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); }.detail-scorers article > strong { color: var(--fifa-red); font-size: clamp(45px,3vw,70px); font-weight: 900; }.detail-scorers article b { font-size: clamp(45px,3vw,70px); }.detail-scorers article span,.detail-cards article span,.detail-timeline article span { display: grid; font-size: clamp(31px,2.1vw,50px); font-weight: 900; }.detail-scorers small,.detail-cards small,.detail-timeline small { color: var(--muted); font-size: clamp(21px,1.35vw,32px); font-weight: 700; }
.detail-cards { display: grid; grid-template-columns: repeat(2,1fr); border: 8px solid var(--ink); border-top: 0; background: var(--white); }.detail-cards > div { border-right: 6px solid var(--ink); }.detail-cards > div:last-child { border-right: 0; }.detail-cards h3 { margin: 0; padding: 22px 30px; color: var(--ink); border-bottom: 6px solid var(--ink); background: var(--fifa-yellow); font-size: clamp(35px,2.5vw,60px); font-weight: 900; }.detail-cards .red-list h3 { color: var(--white); background: var(--fifa-red); }.detail-cards article { display: grid; grid-template-columns: 100px 60px 1fr; align-items: center; gap: 20px; min-height: 125px; padding: 20px 28px; border-bottom: 4px solid var(--ink); }.detail-cards article > b { font-size: clamp(38px,2.6vw,62px); }.detail-cards article i { width: 45px; height: 65px; background: var(--fifa-yellow); border: 4px solid var(--ink); }.detail-cards .red-list article i { background: var(--fifa-red); }.detail-cards p,.detail-scorers p,.detail-timeline p { padding: 30px; font-size: clamp(28px,1.8vw,44px); font-weight: 900; }
.detail-timeline { display: grid; grid-template-columns: repeat(2,1fr); border: 8px solid var(--ink); border-top: 0; background: var(--white); }.detail-timeline article { display: grid; grid-template-columns: 115px 80px 1fr; align-items: center; gap: 20px; min-height: 135px; padding: 22px 30px; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); box-shadow: inset 18px 0 var(--event-color,var(--fifa-blue)); }.detail-timeline article.goal { --event-color: var(--fifa-green); }.detail-timeline article.yellow { --event-color: var(--fifa-yellow); }.detail-timeline article.red { --event-color: var(--fifa-red); }.detail-timeline article.sub { --event-color: var(--fifa-blue); }.detail-timeline article > strong { color: var(--event-color); font-size: clamp(42px,2.8vw,68px); font-weight: 900; text-shadow: 2px 2px 0 var(--ink); }.detail-timeline article b { font-size: clamp(42px,2.8vw,68px); text-align: center; }
.detail-stats-head,.detail-stats article { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 20px; text-align: center; }.detail-stats-head { padding: 28px 35px; color: var(--white); border: 8px solid var(--ink); border-top: 0; background: var(--fifa-blue); font-size: clamp(33px,2.3vw,55px); font-weight: 900; }.detail-stats { display: grid; grid-template-columns: repeat(2,1fr); border: 8px solid var(--ink); border-top: 0; background: var(--white); }.detail-stats article { min-height: 115px; padding: 20px 28px; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); }.detail-stats article strong { color: var(--fifa-blue); font-size: clamp(38px,2.7vw,64px); font-weight: 900; }.detail-stats article span { font-size: clamp(23px,1.45vw,35px); font-weight: 900; }
@media (max-width: 1100px) { .detail-score-top,.detail-score-main,.detail-match-info,.detail-event-counts,.detail-scorers,.detail-cards,.detail-timeline,.detail-stats { grid-template-columns: 1fr; }.detail-score-top time { text-align: left; }.detail-score-main { min-height: 0; }.detail-final { padding: 25px 0; }.detail-score-main .b-team-flag { width: 180px; }.detail-score-main .b-team > strong { font-size: 52px; }.detail-match-info > span { border-right: 0; border-bottom: 5px solid var(--ink); }.detail-section-title span { width: 85px; }.detail-section-title h2 { font-size: 48px; }.detail-scorers article,.detail-timeline article { border-right: 0; }.detail-cards > div { border-right: 0; border-bottom: 6px solid var(--ink); }.detail-stats-head { grid-template-columns: 1fr 1fr 1fr; } }
.detail-scorers article { grid-template-columns: 115px 105px 1fr; }
.detail-scorer-photo { width: 92px; height: 92px; display: grid; place-items: center; overflow: hidden; border: 5px solid var(--ink); background: var(--fifa-yellow); box-shadow: 6px 6px 0 var(--fifa-green); }
.detail-scorer-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.detail-scorer-photo b { font-size: 50px; }
.detail-scorers article > span:last-child > small { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.detail-scorer-flag { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 3px solid var(--ink); background: var(--white); }
.detail-scorer-flag img { width: 88%; height: 88%; object-fit: contain; }
@media (max-width: 1100px) { .detail-scorers article { grid-template-columns: 75px 80px 1fr; }.detail-scorer-photo { width: 72px; height: 72px; }.detail-scorer-flag { width: 40px; height: 40px; } }
.upcoming-title p { background: var(--fifa-blue); }
.upcoming-match-card { --result-color: var(--fifa-cyan); }.upcoming-match-card:nth-child(4n+2) { --result-color: var(--fifa-yellow); }.upcoming-match-card:nth-child(4n+3) { --result-color: var(--fifa-green); }.upcoming-match-card:nth-child(4n+4) { --result-color: var(--fifa-orange); }.upcoming-match-card:first-child { --result-color: var(--fifa-blue); }
.upcoming-time-box strong { font-size: clamp(68px,5.4vw,130px); letter-spacing: -.08em; }.upcoming-time-box em { padding: 7px 15px; color: var(--white); background: var(--fifa-red); }
.upcoming-detail-scoreboard { background: var(--fifa-blue); box-shadow-color: var(--fifa-cyan); }.upcoming-final > strong { font-size: clamp(125px,10vw,235px); letter-spacing: -.08em; }.upcoming-final span { padding: 8px 14px; color: var(--ink); background: var(--fifa-yellow); }
.detail-h2h { border: 8px solid var(--ink); border-top: 0; background: var(--white); }.detail-h2h article { display: grid; grid-template-columns: 190px 1fr 210px 1fr; align-items: center; gap: 28px; min-height: 230px; padding: 32px 40px; border-bottom: 6px solid var(--ink); }.detail-h2h time { color: var(--fifa-blue); font-size: clamp(30px,2vw,48px); font-weight: 900; }.detail-h2h article > span { display: flex; align-items: center; gap: 20px; font-size: clamp(32px,2.25vw,54px); font-weight: 900; }.detail-h2h img { width: 95px; height: 95px; object-fit: contain; }.detail-h2h b { padding: 18px; color: var(--white); background: var(--fifa-red); font-size: clamp(60px,4.5vw,105px); text-align: center; }.detail-h2h small { grid-column: 1 / 5; color: var(--muted); font-size: clamp(23px,1.5vw,36px); font-weight: 900; }.detail-h2h p { padding: 35px; font-size: 36px; font-weight: 900; }
.detail-squads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 45px; margin-top: 40px; }.detail-squad { overflow: hidden; border: 8px solid var(--ink); background: var(--white); box-shadow: 15px 15px 0 var(--fifa-yellow); }.detail-squad:nth-child(2) { box-shadow-color: var(--fifa-cyan); }.detail-squad h3 { display: flex; align-items: center; gap: 24px; margin: 0; padding: 28px 35px; color: var(--white); border-bottom: 8px solid var(--ink); background: var(--fifa-blue); }.detail-squad:nth-child(2) h3 { background: var(--fifa-red); }.detail-squad h3 img { width: 100px; height: 100px; object-fit: contain; padding: 9px; background: var(--white); border: 5px solid var(--ink); }.detail-squad h3 span { display: grid; font-size: clamp(40px,2.8vw,68px); font-weight: 900; line-height: 1; }.detail-squad h3 small { margin-top: 8px; color: var(--fifa-yellow); font-size: clamp(20px,1.2vw,29px); }.detail-squad > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.detail-squad article { min-width: 0; display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: center; gap: 16px; min-height: 120px; padding: 14px 20px; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }.detail-squad article > span { width: 80px; height: 90px; display: grid; place-items: center; overflow: hidden; background: var(--fifa-yellow); border: 4px solid var(--ink); }.detail-squad article > span img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }.detail-squad article > div { min-width: 0; display: grid; gap: 5px; }.detail-squad article strong { overflow: hidden; font-size: clamp(24px,1.55vw,37px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.detail-squad article small { color: var(--muted); font-size: clamp(17px,1vw,24px); font-weight: 900; }
@media (max-width: 1500px) { .detail-squad > div { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .detail-h2h article { grid-template-columns: 1fr; }.detail-h2h small { grid-column: 1; }.detail-squads { grid-template-columns: 1fr; }.detail-squad > div { grid-template-columns: 1fr; }.upcoming-time-box strong { font-size: clamp(55px,14vw,90px); } }
/* Final match archive scale: one column, tighter rhythm, camera-readable content. */
.complete-results-grid,.upcoming-results-grid { grid-template-columns: minmax(0,1fr) !important; gap: clamp(24px,1.8vw,42px); }
.complete-match-card:first-child { grid-column: auto; }
.complete-match-card { box-shadow: 12px 12px 0 var(--result-color); }
.complete-match-card:hover,.complete-match-card:focus-visible { transform: translate(-4px,-4px); box-shadow: 18px 18px 0 var(--result-color); }
.complete-card-top,.complete-match-card:first-child .complete-card-top { min-height: 105px; grid-template-columns: auto 1fr auto; gap: 24px; padding: 20px 28px; font-size: clamp(25px,1.45vw,36px); line-height: 1.2; }
.complete-card-top > strong,.complete-match-card:first-child .complete-card-top > strong { grid-column: auto; padding: 10px 15px; font-size: clamp(25px,1.5vw,37px); line-height: 1.15; }
.complete-card-top time,.complete-match-card:first-child .complete-card-top time { font-size: clamp(24px,1.4vw,35px); line-height: 1.2; }
.complete-card-score,.complete-match-card:first-child .complete-card-score { grid-template-columns: 1fr minmax(250px,.42fr) 1fr; min-height: 390px; gap: 32px; padding: 30px 42px; }
.complete-card-team { gap: 18px; }.complete-card-flag,.complete-match-card:first-child .complete-card-flag { width: clamp(145px,10vw,235px); }.complete-card-team > strong,.complete-match-card:first-child .complete-card-team > strong { font-size: clamp(39px,2.8vw,68px); line-height: 1.08; letter-spacing: -.035em; }.complete-score-box { gap: 10px; }.complete-score-box strong,.complete-match-card:first-child .complete-score-box strong { font-size: clamp(95px,7vw,170px); line-height: .95; }.upcoming-time-box strong,.complete-match-card:first-child .upcoming-time-box strong { font-size: clamp(68px,5vw,120px); line-height: 1; letter-spacing: -.05em; }.complete-score-box small,.complete-score-box em { line-height: 1.2; }
.complete-card-bottom,.complete-match-card:first-child .complete-card-bottom { min-height: 110px; grid-template-columns: minmax(0,1fr) auto; gap: 24px; padding: 20px 28px; }.complete-card-bottom > span,.complete-card-bottom > strong,.complete-match-card:first-child .complete-card-bottom > span,.complete-match-card:first-child .complete-card-bottom > strong { gap: 14px; font-size: clamp(25px,1.5vw,37px); line-height: 1.18; }.complete-card-bottom > span svg,.complete-match-card:first-child .complete-card-bottom > span svg { width: 55px; height: 55px; }.complete-card-bottom > strong,.complete-match-card:first-child .complete-card-bottom > strong { padding: 13px 18px; }.complete-card-bottom > strong svg,.complete-match-card:first-child .complete-card-bottom > strong svg { width: 42px; height: 42px; }
@media (max-width: 1100px) { .complete-card-top,.complete-match-card:first-child .complete-card-top { grid-template-columns: 1fr; }.complete-card-top > strong,.complete-match-card:first-child .complete-card-top > strong { grid-column: auto; }.complete-card-score,.complete-match-card:first-child .complete-card-score { grid-template-columns: 1fr 105px 1fr; gap: 12px; padding: 25px 12px; }.complete-card-bottom,.complete-match-card:first-child .complete-card-bottom { grid-template-columns: 1fr; } }
/* Goal scorers split by team: home left, away right. */
.detail-scorers-by-team { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 8px solid var(--ink); border-top: 0; background: var(--white); }
.detail-scorer-team { min-width: 0; border-right: 7px solid var(--ink); }.detail-scorer-team:last-child { border-right: 0; }
.detail-scorer-team h3 { display: flex; align-items: center; gap: 22px; margin: 0; padding: 22px 30px; color: var(--white); border-bottom: 7px solid var(--ink); background: var(--fifa-blue); }.detail-scorer-team.away h3 { flex-direction: row-reverse; text-align: right; background: var(--fifa-red); }.detail-scorer-team h3 img { width: 78px; height: 78px; object-fit: contain; padding: 7px; border: 4px solid var(--ink); background: var(--white); }.detail-scorer-team h3 span { display: grid; font-size: clamp(34px,2.4vw,58px); font-weight: 900; line-height: 1; }.detail-scorer-team h3 small { margin-top: 6px; color: var(--fifa-yellow); font-size: clamp(18px,1.05vw,25px); }
.detail-scorer-team article { display: grid; grid-template-columns: 110px 105px minmax(0,1fr); align-items: center; gap: 20px; min-height: 145px; padding: 20px 28px; border-bottom: 5px solid var(--ink); }.detail-scorer-team.away article { grid-template-columns: minmax(0,1fr) 105px 110px; text-align: right; }.detail-scorer-team.away article > strong { grid-column: 3; grid-row: 1; }.detail-scorer-team.away article .detail-scorer-photo { grid-column: 2; grid-row: 1; }.detail-scorer-team.away article > span:last-child { grid-column: 1; grid-row: 1; }.detail-scorer-team article > strong { color: var(--fifa-red); font-size: clamp(43px,2.8vw,68px); font-weight: 900; }.detail-scorer-team article > span:last-child { min-width: 0; display: grid; font-size: clamp(30px,2vw,48px); font-weight: 900; }.detail-scorer-team article > span:last-child small { color: var(--muted); font-size: clamp(20px,1.25vw,30px); font-weight: 700; }.detail-scorer-team p { padding: 30px; font-size: clamp(28px,1.8vw,44px); font-weight: 900; }
/* Keep upcoming kickoff time and timezone centered as one visual unit. */
.upcoming-final { width: 100%; min-width: 0; align-self: center; padding: 30px 12px; text-align: center; }.upcoming-final > strong { display: block; width: 100%; margin: 10px 0; font-size: clamp(90px,7vw,165px); line-height: 1; letter-spacing: -.075em; text-align: center; white-space: nowrap; }.upcoming-final span { display: inline-flex; justify-content: center; align-items: center; min-width: 260px; margin: 0 auto; line-height: 1.1; text-align: center; white-space: nowrap; }
@media (max-width: 1100px) { .detail-scorers-by-team { grid-template-columns: 1fr; }.detail-scorer-team { border-right: 0; border-bottom: 7px solid var(--ink); }.detail-scorer-team.away h3 { flex-direction: row; text-align: left; }.detail-scorer-team.away article { grid-template-columns: 75px 80px minmax(0,1fr); text-align: left; }.detail-scorer-team.away article > strong,.detail-scorer-team.away article .detail-scorer-photo,.detail-scorer-team.away article > span:last-child { grid-column: auto; grid-row: auto; }.upcoming-final > strong { font-size: clamp(62px,16vw,105px); }.upcoming-final span { min-width: 0; white-space: normal; } }
.upcoming-final { justify-self: stretch; justify-items: center; }
.upcoming-final > small,.upcoming-final > strong,.upcoming-final > span { justify-self: center; }
.upcoming-final > strong { width: auto; max-width: 100%; }
@media (max-width: 1100px) {
    .upcoming-final { width: 100%; overflow: hidden; padding-inline: 4px; }
    .upcoming-final > strong { width: 100%; font-size: clamp(38px,12vw,72px); letter-spacing: -.06em; white-space: nowrap; }
    .upcoming-final > span { min-width: 0; max-width: 100%; padding: 7px 9px; font-size: clamp(15px,4.7vw,25px); white-space: nowrap; }
}
/* Upcoming details mirrors the Upcoming card: team, kickoff, team. */
.upcoming-detail-scoreboard .detail-score-main { grid-template-columns: minmax(0,1fr) minmax(280px,.42fr) minmax(0,1fr); gap: clamp(28px,3vw,65px); min-height: 560px; padding: 45px 55px; }
.upcoming-detail-scoreboard .detail-score-main .b-team { width: 100%; min-width: 0; gap: 24px; }
.upcoming-detail-scoreboard .detail-score-main .b-team-flag { width: clamp(180px,13vw,310px); }
.upcoming-detail-scoreboard .detail-score-main .b-team > strong { width: 100%; max-width: 100%; min-height: 2.05em; display: grid; place-items: center; overflow: visible; font-size: clamp(48px,3.8vw,88px); line-height: 1.02; letter-spacing: -.045em; text-align: center; text-overflow: clip; white-space: normal; overflow-wrap: normal; word-break: normal; }
.upcoming-detail-scoreboard .upcoming-final { min-width: 0; }
@media (max-width: 1100px) {
    .upcoming-detail-scoreboard .detail-score-main { grid-template-columns: minmax(0,1fr) minmax(92px,.52fr) minmax(0,1fr); gap: 8px; min-height: 410px; padding: 28px 8px; }
    .upcoming-detail-scoreboard .detail-score-main .b-team { gap: 14px; }
    .upcoming-detail-scoreboard .detail-score-main .b-team-flag { width: clamp(80px,24vw,145px); }
    .upcoming-detail-scoreboard .detail-score-main .b-team > strong { min-height: 2.25em; font-size: clamp(24px,7vw,40px); line-height: 1.08; }
    .upcoming-detail-scoreboard .upcoming-final { padding: 15px 1px; }
    .upcoming-detail-scoreboard .upcoming-final > small { padding: 6px 5px; font-size: clamp(12px,3.5vw,19px); }
    .upcoming-detail-scoreboard .upcoming-final > strong { font-size: clamp(30px,9vw,55px); }
    .upcoming-detail-scoreboard .upcoming-final > span { font-size: clamp(11px,3.2vw,17px); padding: 6px 4px; }
}
.stats-top-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin: -20px 0 55px; }.stats-top-tabs a { --tab-color: var(--fifa-blue); display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 145px; padding: 22px 30px; color: var(--ink); border: 7px solid var(--ink); background: var(--white); box-shadow: 11px 11px 0 var(--tab-color); font-size: clamp(27px,1.8vw,44px); font-weight: 900; text-align: center; text-decoration: none; }.stats-top-tabs a:nth-child(2) { --tab-color: var(--fifa-red); }.stats-top-tabs a:nth-child(3) { --tab-color: var(--fifa-yellow); }.stats-top-tabs a b { font-size: clamp(45px,3.3vw,78px); }.stats-top-tabs a.active { color: var(--white); background: var(--tab-color); transform: translate(-5px,-5px); box-shadow: 18px 18px 0 var(--ink); }.stats-top-tabs a:nth-child(3).active { color: var(--ink); }
.leader-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 45px; }.leader-column { --leader-tone: var(--fifa-blue); min-width: 0; overflow: hidden; border: 8px solid var(--ink); background: var(--white); box-shadow: 15px 15px 0 var(--leader-tone); }.leader-column.tone-green { --leader-tone: var(--fifa-green); }.leader-column.tone-red { --leader-tone: var(--fifa-red); }.leader-column.tone-orange { --leader-tone: var(--fifa-orange); }.leader-column.tone-yellow { --leader-tone: var(--fifa-yellow); }.leader-column > h2 { display: flex; align-items: center; gap: 20px; margin: 0; padding: 25px 32px; color: var(--white); border-bottom: 8px solid var(--ink); background: var(--leader-tone); font-size: clamp(38px,2.8vw,66px); font-weight: 900; line-height: 1; }.leader-column.tone-yellow > h2 { color: var(--ink); }.leader-column > h2 b { font-size: 1.15em; }.leader-column > h2 em { margin-left: auto; padding: 8px 14px; color: var(--white); background: var(--ink); font-size: .65em; font-style: normal; }.leader-column > div { display: grid; }.leader-column article,.booking-column a { min-width: 0; display: grid; grid-template-columns: 70px 105px minmax(0,1fr) 150px; align-items: center; gap: 18px; min-height: 135px; padding: 16px 25px; color: var(--ink); border-bottom: 5px solid var(--ink); text-decoration: none; }.leader-column article > strong,.booking-column a > strong { color: var(--leader-tone); font-size: clamp(37px,2.5vw,58px); font-weight: 900; text-shadow: 1px 1px 0 var(--ink); }.leader-card-photo { width: 95px; height: 100px; display: grid; place-items: center; overflow: hidden; border: 4px solid var(--ink); background: var(--fifa-yellow); }.leader-card-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }.leader-card-name { min-width: 0; display: grid; gap: 6px; }.leader-card-name > b { overflow: hidden; font-size: clamp(28px,1.9vw,45px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.leader-card-name small { display: flex; align-items: center; gap: 9px; overflow: hidden; color: var(--muted); font-size: clamp(18px,1.15vw,27px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.leader-card-name small img { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; }.leader-card-value { display: grid; justify-items: center; padding: 9px; color: var(--white); background: var(--leader-tone); border: 4px solid var(--ink); }.tone-yellow .leader-card-value { color: var(--ink); }.leader-card-value b { font-size: clamp(45px,3.4vw,80px); font-weight: 900; line-height: .9; }.leader-card-value small { font-size: clamp(16px,.95vw,23px); font-weight: 900; }.leader-column p { padding: 30px; font-size: 30px; font-weight: 900; }
.booking-column a { grid-template-columns: 90px 105px minmax(0,1fr) minmax(180px,.55fr); }.booking-column a:hover { background: color-mix(in srgb,var(--leader-tone) 17%,white); }.booking-match { display: grid; justify-items: center; gap: 5px; font-size: clamp(20px,1.3vw,31px); font-weight: 900; text-align: center; }.booking-match b { padding: 4px 10px; color: var(--white); background: var(--ink); font-size: .75em; }
@media (max-width: 1500px) { .leader-columns { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .stats-top-tabs { grid-template-columns: 1fr; }.stats-top-tabs a { min-height: 95px; }.leader-columns { gap: 28px; }.leader-column article,.booking-column a { grid-template-columns: 55px 75px minmax(0,1fr); padding: 13px 12px; }.leader-card-photo { width: 68px; height: 75px; }.leader-card-value,.booking-match { grid-column: 2 / 4; width: 100%; }.booking-match { display: flex; justify-content: center; flex-wrap: wrap; padding: 8px; background: var(--paper); } }
/* Stats leader pairs always remain side by side for TV comparison. */
.leader-columns,.bookings-columns { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: clamp(18px,2vw,45px); }
@media (max-width: 1100px) {
    .leader-columns,.bookings-columns { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px; }
    .leader-column { border-width: 4px; box-shadow: 6px 6px 0 var(--leader-tone); }
    .leader-column > h2 { min-height: 85px; padding: 12px 8px; border-bottom-width: 4px; font-size: clamp(16px,4.5vw,25px); gap: 6px; }
    .leader-column > h2 em { padding: 4px 6px; }
    .leader-column article,.booking-column a { grid-template-columns: 35px 48px minmax(0,1fr); gap: 6px; min-height: 88px; padding: 7px 5px; border-bottom-width: 3px; }
    .leader-column article > strong,.booking-column a > strong { font-size: clamp(18px,5vw,28px); }
    .leader-card-photo { width: 43px; height: 52px; border-width: 2px; }
    .leader-card-name > b { font-size: clamp(14px,4vw,22px); }
    .leader-card-name small { gap: 3px; font-size: clamp(10px,2.8vw,15px); white-space: normal; }
    .leader-card-name small img { width: 21px; height: 21px; }
    .leader-card-value,.booking-match { grid-column: 1 / 4; width: 100%; }
    .leader-card-value b { font-size: clamp(25px,7vw,40px); }
    .leader-card-value small { font-size: clamp(10px,2.8vw,15px); }
    .booking-match { padding: 5px; font-size: clamp(10px,2.8vw,15px); }
}
.team-directory { display: grid; gap: 55px; }.team-directory-group { border: 8px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--group-tone,var(--fifa-blue)); }.team-directory-group:nth-child(4n+2) { --group-tone: var(--fifa-red); }.team-directory-group:nth-child(4n+3) { --group-tone: var(--fifa-yellow); }.team-directory-group:nth-child(4n+4) { --group-tone: var(--fifa-green); }.team-directory-group h2 { display: flex; align-items: center; gap: 22px; margin: 0; padding: 20px 30px; color: var(--white); border-bottom: 8px solid var(--ink); background: var(--group-tone); font-size: clamp(40px,3vw,72px); font-weight: 900; }.team-directory-group:nth-child(4n+3) h2 { color: var(--ink); }.team-directory-group h2 b { width: 82px; height: 82px; display: grid; place-items: center; color: var(--ink); background: var(--white); border: 5px solid var(--ink); }.team-directory-group > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }.team-directory-group a { min-width: 0; display: grid; justify-items: center; gap: 15px; padding: 28px 22px; color: var(--ink); border-right: 5px solid var(--ink); text-align: center; text-decoration: none; }.team-directory-group a:last-child { border-right: 0; }.team-directory-group a:hover { background: color-mix(in srgb,var(--group-tone) 20%,white); }.team-directory-group a > span { width: clamp(120px,9vw,210px); aspect-ratio: 1; display: grid; place-items: center; border: 6px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--group-tone); }.team-directory-group a img { width: 84%; height: 84%; object-fit: contain; }.team-directory-group a strong { max-width: 100%; overflow: hidden; font-size: clamp(32px,2.3vw,54px); font-weight: 900; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }.team-directory-group a small { color: var(--muted); font-size: clamp(18px,1.1vw,27px); font-weight: 900; }.team-directory-group a > b { padding: 8px 13px; color: var(--white); background: var(--ink); font-size: clamp(18px,1.05vw,25px); }
.team-profile-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; }.team-profile-identity,.team-coach-card { min-height: 500px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 45px; padding: 45px; color: var(--white); border: 9px solid var(--ink); background: var(--fifa-blue); box-shadow: 18px 18px 0 var(--fifa-yellow); }.team-profile-identity > span { width: clamp(220px,17vw,400px); aspect-ratio: 1; display: grid; place-items: center; border: 8px solid var(--ink); background: var(--white); }.team-profile-identity > span img { width: 86%; height: 86%; object-fit: contain; }.team-profile-identity small,.team-coach-card small { color: var(--fifa-yellow); font-size: clamp(23px,1.5vw,36px); font-weight: 900; }.team-profile-identity h1 { margin: 15px 0; font-size: clamp(85px,7vw,165px); font-weight: 900; line-height: .83; letter-spacing: -.09em; text-transform: uppercase; }.team-profile-identity p,.team-coach-card p { margin: 0; font-size: clamp(23px,1.5vw,36px); font-weight: 700; }.team-coach-card { grid-template-columns: 1fr; justify-items: center; gap: 20px; text-align: center; background: var(--fifa-red); box-shadow-color: var(--fifa-cyan); }.team-coach-card > span { width: 220px; height: 245px; overflow: hidden; border: 7px solid var(--ink); background: var(--fifa-yellow); }.team-coach-card img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }.team-coach-card strong { display: block; margin: 8px 0; font-size: clamp(43px,3vw,72px); font-weight: 900; }
.team-kpis { display: grid; grid-template-columns: repeat(7,1fr); gap: 22px; margin: 65px 0; }.team-kpis article { display: grid; justify-items: center; gap: 8px; min-height: 180px; padding: 25px 15px; color: var(--white); border: 6px solid var(--ink); background: var(--kpi-color,var(--fifa-blue)); box-shadow: 8px 8px 0 var(--ink); }.team-kpis article:nth-child(3n+2) { --kpi-color: var(--fifa-red); }.team-kpis article:nth-child(3n+3) { --kpi-color: var(--fifa-green); }.team-kpis strong { font-size: clamp(65px,5vw,115px); font-weight: 900; line-height: .8; }.team-kpis span { font-size: clamp(18px,1.1vw,27px); font-weight: 900; text-align: center; }
.team-detail-squad { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 8px solid var(--ink); border-top: 0; background: var(--white); }.team-detail-squad article { min-width: 0; display: grid; grid-template-columns: 105px minmax(0,1fr) repeat(3,100px); align-items: center; gap: 16px; min-height: 135px; padding: 15px 22px; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); }.team-player-photo { position: relative; width: 92px; height: 100px; display: grid; place-items: center; overflow: hidden; border: 4px solid var(--ink); background: var(--fifa-yellow); }.team-player-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }.team-player-photo b { position: absolute; left: 0; bottom: 0; padding: 3px 6px; color: var(--white); background: var(--ink); font-size: 18px; }.team-detail-squad article > div { min-width: 0; display: grid; gap: 5px; }.team-detail-squad article > div strong { overflow: hidden; font-size: clamp(27px,1.8vw,43px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.team-detail-squad article > div small { color: var(--muted); font-size: clamp(17px,1vw,24px); font-weight: 900; }.team-detail-squad article > span:not(.team-player-photo) { display: grid; justify-items: center; }.team-detail-squad article > span:not(.team-player-photo) b { font-size: clamp(34px,2.4vw,56px); font-weight: 900; }.team-detail-squad article > span:not(.team-player-photo) small { color: var(--muted); font-size: clamp(14px,.85vw,20px); font-weight: 900; }
.team-group-standing { border: 8px solid var(--ink); border-top: 0; background: var(--white); }.team-group-standing .b-table-head,.team-group-standing .b-table-row { grid-template-columns: minmax(0,1fr) 120px 140px 150px; min-height: 125px; padding: 0 38px; }.team-group-standing .b-table-head { font-size: 25px; }.team-group-standing .b-table-row span strong,.team-group-standing .b-table-row em { font-size: clamp(32px,2.3vw,54px); }.team-group-standing .b-table-row img { width: 75px; height: 75px; }.team-group-standing .current-team { background: var(--fifa-yellow); box-shadow: inset 18px 0 var(--fifa-blue); }
.team-match-list { display: grid; gap: 25px; }.team-match-list > a { display: grid; grid-template-columns: 1fr 340px 1fr; align-items: center; gap: 25px; min-height: 260px; padding: 28px 38px; color: var(--ink); border: 7px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--fifa-cyan); text-decoration: none; }.team-match-list .b-team { grid-template-columns: 110px 1fr; justify-items: start; text-align: left; }.team-match-list .b-team:last-child { grid-template-columns: 1fr 110px; text-align: right; }.team-match-list .b-team:last-child .b-team-flag { grid-column: 2; grid-row: 1; }.team-match-list .b-team:last-child > strong { grid-column: 1; grid-row: 1; }.team-match-list .b-team-flag { width: 100px; box-shadow: 6px 6px 0 var(--fifa-red); }.team-match-list .b-team > strong { font-size: clamp(35px,2.5vw,58px); }.team-match-list > a > span { display: grid; justify-items: center; gap: 6px; text-align: center; }.team-match-list > a > span small { color: var(--fifa-blue); font-size: 24px; font-weight: 900; }.team-match-list > a > span strong { font-size: clamp(62px,4.8vw,110px); font-weight: 900; }.team-match-list > a > span em { color: var(--muted); font-size: 23px; font-weight: 900; font-style: normal; }
@media (max-width: 1500px) { .team-directory-group > div { grid-template-columns: repeat(2,1fr); }.team-profile-hero { grid-template-columns: 1fr; }.team-kpis { grid-template-columns: repeat(4,1fr); }.team-detail-squad { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .team-directory-group > div { grid-template-columns: 1fr; }.team-directory-group a { border-right: 0; border-bottom: 4px solid var(--ink); }.team-profile-identity { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 30px 15px; }.team-profile-identity h1 { font-size: 75px; }.team-kpis { grid-template-columns: repeat(2,1fr); }.team-detail-squad article { grid-template-columns: 75px minmax(0,1fr); }.team-detail-squad article > span:not(.team-player-photo) { grid-column: span 1; }.team-player-photo { width: 68px; height: 78px; }.team-group-standing .b-table-head,.team-group-standing .b-table-row { grid-template-columns: minmax(0,1fr) 45px 50px 55px; padding: 0 10px; }.team-match-list > a { grid-template-columns: 1fr 90px 1fr; padding: 20px 8px; }.team-match-list .b-team { grid-template-columns: 1fr; justify-items: center; text-align: center; }.team-match-list .b-team:last-child { grid-template-columns: 1fr; text-align: center; }.team-match-list .b-team:last-child .b-team-flag,.team-match-list .b-team:last-child > strong { grid-column: auto; grid-row: auto; }.team-match-list .b-team > strong { font-size: 25px; white-space: normal; }.team-match-list .b-team-flag { width: 70px; }.team-match-list > a > span strong { font-size: 40px; } }
/* Point table: permanent two-column TV comparison with balanced default scale. */
.b-groups-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: clamp(22px,1.7vw,38px); }
.b-group-card { border-width: 6px; box-shadow: 10px 10px 0 var(--group-color,var(--fifa-blue)); }
.b-group-card h2 { padding: 20px 28px; border-bottom-width: 6px; font-size: clamp(34px,2.25vw,54px); }
.b-table-head,.b-table-row { grid-template-columns: minmax(0,1fr) 64px 74px 82px; padding: 0 22px; }
.b-table-head { min-height: 54px; font-size: clamp(16px,.9vw,22px); }
.b-table-row { min-height: 92px; border-top-width: 3px; }
.b-table-row > span { gap: 13px; }
.b-table-row img { width: 48px; height: 48px; }
.b-table-row span strong { font-size: clamp(23px,1.5vw,35px); line-height: 1.08; }
.b-table-row em { font-size: clamp(24px,1.55vw,37px); }
@media (max-width: 1100px) {
    .b-groups-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px; }
    .b-group-card { border-width: 3px; box-shadow: 4px 4px 0 var(--group-color,var(--fifa-blue)); }
    .b-group-card h2 { padding: 10px 8px; border-bottom-width: 3px; font-size: clamp(18px,5vw,28px); }
    .b-table-head,.b-table-row { grid-template-columns: minmax(0,1fr) 25px 29px 31px; gap: 2px; padding: 0 5px; }
    .b-table-head { min-height: 35px; font-size: clamp(8px,2.2vw,12px); }
    .b-table-row { min-height: 60px; border-top-width: 2px; }
    .b-table-row > span { gap: 4px; }
    .b-table-row img { width: 23px; height: 23px; }
    .b-table-row span strong { font-size: clamp(11px,3vw,17px); white-space: normal; line-height: 1.05; }
    .b-table-row em { font-size: clamp(12px,3.2vw,18px); }
    .b-table-row.qualified { box-shadow: inset 5px 0 var(--fifa-green); }
}

/* Broadcast typography safety: keep large text readable without collisions. */
body { font-family: var(--font); }
.tv-brand span,
.tv-tabs a span,
.tv-live-meta strong,
.b-title h1,
.b-team > strong,
.b-kickoff strong,
.b-player-hero h2,
.b-group-card h2,
.b-stat-kpis strong,
.complete-card-team > strong,
.complete-score-box strong,
.detail-final > strong,
.detail-section-title h2,
.upcoming-time-box strong,
.upcoming-final > strong,
.team-profile-identity h1,
.leader-column > h2 {
    letter-spacing: 0;
}
.b-title h1,
.b-player-hero h2,
.team-profile-identity h1 {
    line-height: .98;
    letter-spacing: -.02em;
}
.b-team > strong,
.complete-card-team > strong,
.upcoming-detail-scoreboard .detail-score-main .b-team > strong,
.b-group-card h2,
.detail-section-title h2,
.leader-column > h2 {
    line-height: 1.12;
}
.tv-live-meta strong,
.b-kickoff strong,
.complete-score-box strong,
.detail-final > strong,
.upcoming-time-box strong,
.upcoming-final > strong,
.b-stat-kpis strong {
    line-height: 1;
    letter-spacing: -.015em;
}
.detail-section-title h2,
.leader-column > h2,
.team-directory-group a strong {
    overflow-wrap: anywhere;
}

/* Player directory and profile */
.player-directory-title { margin-bottom: 35px; }
.tv-player-filters { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 28px; margin-bottom: 48px; padding: 28px; border: 7px solid var(--ink); background: var(--fifa-yellow); box-shadow: 12px 12px 0 var(--fifa-blue); }
.tv-player-filters label { display: grid; gap: 10px; color: var(--ink); font-size: clamp(20px,1.25vw,30px); font-weight: 900; text-transform: uppercase; }
.tv-player-filters select { width: 100%; min-height: 82px; padding: 0 25px; color: var(--ink); border: 5px solid var(--ink); border-radius: 0; background: var(--white); font: 800 clamp(25px,1.6vw,38px)/1 var(--font); }
.tv-player-filters > a { min-height: 82px; display: grid; place-items: center; padding: 15px 30px; color: var(--white); border: 5px solid var(--ink); background: var(--fifa-red); font-size: clamp(22px,1.4vw,34px); font-weight: 900; text-decoration: none; }
.tv-player-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.tv-player-card { --card-tone: var(--fifa-blue); min-width: 0; display: grid; grid-template-columns: 170px minmax(0,1fr) 250px 70px; align-items: stretch; overflow: hidden; color: var(--ink); border: 7px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--card-tone); text-decoration: none; }
.tv-player-card:nth-child(4n+2) { --card-tone: var(--fifa-red); }.tv-player-card:nth-child(4n+3) { --card-tone: var(--fifa-orange); }.tv-player-card:nth-child(4n+4) { --card-tone: var(--fifa-green); }
.tv-player-card-photo { position: relative; min-height: 210px; display: grid; place-items: end center; overflow: hidden; border-right: 6px solid var(--ink); background: var(--card-tone); }
.tv-player-card-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }.tv-player-card-photo > b { align-self: center; color: var(--white); font-size: 110px; }
.tv-player-card-photo em { position: absolute; top: 10px; left: 10px; padding: 6px 10px; color: var(--white); background: var(--ink); font-size: 22px; font-style: normal; font-weight: 900; }
.tv-player-card-info { min-width: 0; display: grid; align-content: center; gap: 8px; padding: 22px 25px; }
.tv-player-card-info > small { color: var(--card-tone); font-size: clamp(18px,1vw,25px); font-weight: 900; text-transform: uppercase; }
.tv-player-card-info > strong { overflow: hidden; font-size: clamp(30px,2vw,48px); font-weight: 900; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.tv-player-card-info > span { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: clamp(19px,1.15vw,28px); font-weight: 800; }.tv-player-card-info > span img { width: 42px; height: 42px; object-fit: contain; }
.tv-player-card-numbers { display: grid; grid-template-columns: repeat(3,1fr); border-left: 5px solid var(--ink); }
.tv-player-card-numbers b { display: grid; place-content: center; justify-items: center; gap: 4px; border-right: 3px solid var(--ink); background: var(--paper); }.tv-player-card-numbers b:last-child { border: 0; }
.tv-player-card-numbers strong { font-size: clamp(35px,2.5vw,58px); line-height: 1; }.tv-player-card-numbers small { font-size: clamp(13px,.8vw,19px); text-transform: uppercase; }
.tv-player-card-arrow { display: grid; place-items: center; color: var(--white); background: var(--card-tone); }.tv-player-card-arrow svg { width: 48px; stroke: currentColor; stroke-width: 5; }
.tv-player-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; margin: 65px 0 20px; font-size: clamp(24px,1.5vw,36px); font-weight: 900; text-align: center; }.tv-player-pagination a,.tv-player-pagination span { padding: 20px; color: var(--white); border: 5px solid var(--ink); background: var(--fifa-blue); text-decoration: none; }.tv-player-pagination span { opacity: .4; }.tv-player-pagination a:last-child,.tv-player-pagination span:last-child { background: var(--fifa-red); }
.tv-player-empty { grid-column: 1/-1; padding: 50px; border: 7px solid var(--ink); background: var(--white); font-size: 34px; font-weight: 900; text-align: center; }
.tv-detail-back { display: inline-flex; margin-bottom: 28px; padding: 15px 25px; color: var(--white); border: 5px solid var(--ink); background: var(--fifa-blue); font-size: 25px; font-weight: 900; text-decoration: none; }
.tv-player-detail-hero { display: grid; grid-template-columns: 390px minmax(0,1fr) 570px; min-height: 570px; color: var(--white); border: 9px solid var(--ink); background: var(--fifa-blue); box-shadow: 18px 18px 0 var(--fifa-yellow); }
.tv-player-detail-photo { position: relative; display: grid; place-items: end center; overflow: hidden; border-right: 8px solid var(--ink); background: var(--fifa-red); }.tv-player-detail-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }.tv-player-detail-photo > b { align-self: center; font-size: 180px; }
.tv-player-detail-photo span { position: absolute; top: 20px; left: 20px; padding: 9px 16px; color: var(--ink); background: var(--fifa-yellow); border: 4px solid var(--ink); font-size: 30px; font-weight: 900; }
.tv-player-detail-identity { min-width: 0; display: grid; align-content: center; gap: 18px; padding: 55px; }.tv-player-detail-identity > small,.tv-current-club small { color: var(--fifa-yellow); font-size: clamp(25px,1.6vw,38px); font-weight: 900; text-transform: uppercase; }
.tv-player-detail-identity h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(70px,5.4vw,130px); font-weight: 900; line-height: .98; }.tv-player-detail-identity > p { display: flex; align-items: center; gap: 18px; margin: 0; font-size: clamp(32px,2.3vw,55px); font-weight: 900; }.tv-player-detail-identity > p img { width: 70px; height: 70px; object-fit: contain; }
.tv-player-detail-identity > div { display: flex; flex-wrap: wrap; gap: 12px; }.tv-player-detail-identity > div span { padding: 9px 13px; color: var(--ink); border: 4px solid var(--ink); background: var(--white); font-size: 23px; font-weight: 800; }.tv-player-detail-identity > div b { color: var(--fifa-red); }
.tv-current-club { display: grid; align-content: center; gap: 18px; padding: 45px; color: var(--ink); border-left: 8px solid var(--ink); background: var(--fifa-yellow); }.tv-current-club small { color: var(--fifa-blue); }.tv-current-club strong { overflow-wrap: anywhere; font-size: clamp(48px,3.8vw,90px); line-height: 1; }.tv-current-club span { padding: 12px 15px; border: 4px solid var(--ink); background: var(--white); font-size: clamp(23px,1.5vw,36px); font-weight: 900; }
.tv-player-detail-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin: 70px 0 45px; }.tv-player-detail-tabs button { min-height: 105px; color: var(--ink); border: 6px solid var(--ink); background: var(--white); box-shadow: 9px 9px 0 var(--fifa-cyan); font: 900 clamp(27px,1.9vw,46px)/1 var(--font); cursor: pointer; }.tv-player-detail-tabs button:nth-child(2) { box-shadow-color: var(--fifa-yellow); }.tv-player-detail-tabs button:nth-child(3) { box-shadow-color: var(--fifa-red); }.tv-player-detail-tabs button.active { color: var(--white); background: var(--fifa-blue); transform: translate(-4px,-4px); box-shadow: 14px 14px 0 var(--ink); }
.tv-player-tab-panel[hidden] { display: none; }.tv-player-kpis { display: grid; grid-template-columns: repeat(7,1fr); gap: 20px; }.tv-player-kpis article { --kpi: var(--fifa-blue); min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--white); border: 6px solid var(--ink); background: var(--kpi); box-shadow: 8px 8px 0 var(--ink); }.tv-player-kpis article:nth-child(2),.tv-player-kpis article:nth-child(6) { --kpi: var(--fifa-orange); }.tv-player-kpis article:nth-child(3) { --kpi: var(--fifa-green); }.tv-player-kpis article:nth-child(4) { --kpi: var(--fifa-red); }.tv-player-kpis article:nth-child(7) { --kpi: var(--ink); }
.tv-player-kpis i { font-size: 35px; font-style: normal; }.tv-player-kpis strong { font-size: clamp(55px,4vw,95px); line-height: .9; }.tv-player-kpis span { font-size: clamp(18px,1.1vw,27px); font-weight: 900; text-transform: uppercase; }
.tv-player-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-top: 55px; }.tv-player-info-grid article { min-height: 155px; display: grid; align-content: center; gap: 8px; padding: 25px 30px; border: 6px solid var(--ink); background: var(--white); box-shadow: 9px 9px 0 var(--fifa-cyan); }.tv-player-info-grid article:nth-child(3n+2) { box-shadow-color: var(--fifa-yellow); }.tv-player-info-grid article:nth-child(3n+3) { box-shadow-color: var(--fifa-red); }.tv-player-info-grid small { color: var(--muted); font-size: 22px; font-weight: 900; text-transform: uppercase; }.tv-player-info-grid strong { overflow-wrap: anywhere; font-size: clamp(32px,2.3vw,55px); line-height: 1.05; }
.tv-season-grid,.tv-transfer-timeline { display: grid; gap: 30px; }.tv-season-grid article { border: 7px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--fifa-yellow); }.tv-season-grid header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 35px; color: var(--white); border-bottom: 7px solid var(--ink); background: var(--fifa-blue); font-size: clamp(30px,2.2vw,52px); font-weight: 900; }.tv-season-grid article > div { display: grid; grid-template-columns: repeat(6,1fr); }.tv-season-grid article > div span { min-height: 155px; display: grid; place-content: center; justify-items: center; gap: 8px; border-right: 4px solid var(--ink); }.tv-season-grid article > div span:last-child { border: 0; }.tv-season-grid article > div strong { font-size: clamp(48px,3.5vw,82px); line-height: 1; }.tv-season-grid article > div small { font-size: 20px; font-weight: 900; text-transform: uppercase; }
.tv-transfer-timeline article { display: grid; grid-template-columns: 270px minmax(0,1fr) 90px minmax(0,1fr) 300px; align-items: center; gap: 20px; min-height: 180px; padding: 25px 30px; border: 7px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--fifa-red); }.tv-transfer-timeline time,.tv-transfer-timeline > article > span { padding: 14px; color: var(--white); background: var(--fifa-blue); font-size: clamp(22px,1.5vw,36px); font-weight: 900; text-align: center; }.tv-transfer-timeline div { min-width: 0; display: grid; gap: 7px; }.tv-transfer-timeline div small { color: var(--fifa-red); font-size: 20px; font-weight: 900; text-transform: uppercase; }.tv-transfer-timeline div strong { overflow-wrap: anywhere; font-size: clamp(32px,2.2vw,52px); line-height: 1.05; }.tv-transfer-timeline > article > b { color: var(--fifa-red); font-size: 60px; text-align: center; }.tv-transfer-timeline > article > span { background: var(--fifa-green); }
@media (max-width: 1500px) {
    .tv-player-card { grid-template-columns: 120px minmax(0,1fr) 170px 50px; }.tv-player-card-photo { min-height: 165px; }.tv-player-card-info { padding: 12px; }.tv-player-card-numbers strong { font-size: 32px; }
    .tv-player-detail-hero { grid-template-columns: 280px minmax(0,1fr); }.tv-current-club { grid-column: 1/-1; border-left: 0; border-top: 7px solid var(--ink); }.tv-player-kpis { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 1100px) {
    .tv-player-filters { grid-template-columns: 1fr 1fr; padding: 15px; gap: 12px; }.tv-player-filters > a { grid-column: 1/-1; }.tv-player-directory { gap: 12px; }.tv-player-card { grid-template-columns: 65px minmax(0,1fr); border-width: 3px; box-shadow: 4px 4px 0 var(--card-tone); }.tv-player-card-photo { min-height: 100px; border-right-width: 3px; }.tv-player-card-photo em,.tv-player-card-numbers,.tv-player-card-arrow { display: none; }.tv-player-card-info > strong { font-size: clamp(16px,3.6vw,24px); }.tv-player-card-info > small,.tv-player-card-info > span { font-size: clamp(10px,2.4vw,15px); }.tv-player-card-info > span img { width: 22px; height: 22px; }
    .tv-player-detail-hero { grid-template-columns: 180px minmax(0,1fr); }.tv-player-detail-identity { padding: 20px; }.tv-player-detail-identity h1 { font-size: 50px; }.tv-player-detail-photo span { font-size: 14px; }.tv-player-kpis { grid-template-columns: repeat(4,1fr); }.tv-player-info-grid { grid-template-columns: repeat(2,1fr); }.tv-season-grid article > div { grid-template-columns: repeat(3,1fr); }.tv-transfer-timeline article { grid-template-columns: 1fr; }.tv-transfer-timeline > article > b { transform: rotate(90deg); }
}

/* Player entries in Upcoming and Complete match details open profiles. */
.detail-squad article,
.detail-scorer-team article,
.detail-cards article,
.detail-timeline article { position: relative; transition: background-color .2s ease, box-shadow .2s ease; }
.detail-player-hit { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.detail-squad article:has(.detail-player-hit):hover,
.detail-scorer-team article:has(.detail-player-hit):hover,
.detail-cards article:has(.detail-player-hit):hover,
.detail-timeline article:has(.detail-player-hit):hover { background: color-mix(in srgb,var(--fifa-yellow) 38%,white); box-shadow: inset 12px 0 var(--fifa-red); }

/* Manager Mode: operator-facing upcoming match control. */
.manager-title { margin-bottom: 38px; }
.manager-dashboard { display: grid; grid-template-columns: minmax(700px,.78fr) minmax(0,1.6fr); gap: 42px; align-items: start; }
.manager-match-list,.manager-match-preview { min-width: 0; border: 8px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--fifa-red); }
.manager-match-list > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 30px; color: var(--white); border-bottom: 7px solid var(--ink); background: var(--fifa-blue); }.manager-match-list > header strong { font-size: clamp(32px,2.2vw,52px); }.manager-match-list > header span { padding: 8px 13px; color: var(--ink); background: var(--fifa-yellow); border: 4px solid var(--ink); font-size: 22px; font-weight: 900; }
.manager-match-list > div { max-height: 1500px; overflow-y: auto; }.manager-match-list a { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 15px 22px; padding: 22px; color: var(--ink); border-bottom: 5px solid var(--ink); text-decoration: none; }.manager-match-list a.active { background: var(--fifa-yellow); box-shadow: inset 15px 0 var(--fifa-red); }.manager-match-list a:hover { background: color-mix(in srgb,var(--fifa-cyan) 25%,white); }
.manager-match-list time { grid-row: span 2; display: grid; place-content: center; justify-items: center; gap: 5px; padding: 12px; color: var(--white); background: var(--ink); }.manager-match-list time b { font-size: clamp(28px,1.8vw,43px); line-height: 1; }.manager-match-list time small { color: var(--fifa-yellow); font-size: 20px; font-weight: 900; text-transform: uppercase; }
.manager-match-list a > span { min-width: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }.manager-match-list a > span strong { min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; font-size: clamp(22px,1.45vw,35px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.manager-match-list a > span strong:last-child { justify-content: flex-end; text-align: right; }.manager-match-list a > span img { width: 43px; height: 43px; flex: 0 0 auto; object-fit: contain; }.manager-match-list a > span em { padding: 5px 8px; color: var(--white); background: var(--fifa-red); font-size: 17px; font-style: normal; font-weight: 900; }.manager-match-list a > small { color: var(--muted); font-size: 20px; font-weight: 900; text-transform: uppercase; }
.manager-match-preview { box-shadow-color: var(--fifa-yellow); }.manager-match-preview > header { display: grid; grid-template-columns: 1fr auto; gap: 8px 25px; padding: 28px 35px; color: var(--white); border-bottom: 8px solid var(--ink); background: var(--fifa-red); }.manager-match-preview > header span { color: var(--fifa-yellow); font-size: 25px; font-weight: 900; text-transform: uppercase; }.manager-match-preview > header strong { grid-row: span 2; align-self: center; padding: 12px 18px; color: var(--ink); background: var(--fifa-yellow); border: 5px solid var(--ink); font-size: 32px; text-transform: uppercase; }.manager-match-preview > header time { font-size: clamp(28px,1.8vw,43px); font-weight: 900; }
.manager-scoreboard { display: grid; grid-template-columns: minmax(0,1fr) 340px minmax(0,1fr); align-items: center; gap: 25px; min-height: 470px; padding: 45px; border-bottom: 7px solid var(--ink); background: var(--paper); }.manager-scoreboard .b-team { gap: 22px; }.manager-scoreboard .b-team-flag { width: clamp(180px,12vw,290px); }.manager-scoreboard .b-team > strong { font-size: clamp(38px,3vw,70px); white-space: normal; }.manager-scoreboard > span { display: grid; justify-items: center; gap: 8px; padding: 25px 12px; color: var(--white); border: 6px solid var(--ink); background: var(--fifa-blue); box-shadow: 8px 8px 0 var(--fifa-yellow); text-align: center; }.manager-scoreboard > span small,.manager-scoreboard > span em { font-size: 22px; font-style: normal; font-weight: 900; text-transform: uppercase; }.manager-scoreboard > span strong { font-size: clamp(48px,3.5vw,82px); line-height: 1; }
.manager-information { display: grid; grid-template-columns: repeat(2,1fr); }.manager-information article { min-width: 0; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 5px 18px; align-content: center; min-height: 185px; padding: 25px 30px; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); }.manager-information article svg { grid-row: span 3; width: 68px; height: 68px; align-self: center; padding: 10px; color: var(--white); background: var(--fifa-blue); stroke: currentColor; stroke-width: 4; }.manager-information article:nth-child(2) svg { background: var(--fifa-red); }.manager-information article:nth-child(3) svg { background: var(--fifa-green); }.manager-information article:nth-child(4) svg { color: var(--ink); background: var(--fifa-yellow); }.manager-information small { color: var(--muted); font-size: 19px; font-weight: 900; text-transform: uppercase; }.manager-information strong { overflow-wrap: anywhere; font-size: clamp(28px,2vw,46px); line-height: 1.05; }.manager-information span { color: var(--muted); font-size: 20px; font-weight: 800; }
.manager-open-details { min-height: 115px; display: flex; align-items: center; justify-content: center; gap: 22px; color: var(--white); background: var(--ink); font-size: clamp(30px,2vw,48px); font-weight: 900; text-decoration: none; text-transform: uppercase; }.manager-open-details svg { width: 60px; stroke: var(--fifa-yellow); stroke-width: 5; }
@media (max-width: 1500px) { .manager-dashboard { grid-template-columns: 540px minmax(0,1fr); gap: 25px; }.manager-match-list a { grid-template-columns: 1fr; }.manager-match-list time { grid-row: auto; display: flex; justify-content: space-between; }.manager-scoreboard { grid-template-columns: 1fr 200px 1fr; padding: 25px 10px; }.manager-information { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .tv-manager-menu { min-height: 135px; }.manager-dashboard { grid-template-columns: 1fr; }.manager-match-list > div { max-height: 650px; }.manager-scoreboard { grid-template-columns: 1fr 120px 1fr; }.manager-scoreboard .b-team-flag { width: 100px; }.manager-scoreboard .b-team > strong { font-size: 25px; }.manager-scoreboard > span strong { font-size: 30px; } }

/* Keep key TV comparison layouts stable while operators change browser zoom. */
.tv-player-detail-hero {
    grid-template-columns: minmax(0,.72fr) minmax(0,1.55fr) minmax(0,.9fr) !important;
}
.tv-current-club {
    grid-column: auto !important;
    border-top: 0 !important;
    border-left: 8px solid var(--ink) !important;
}
.team-directory-group > div {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
}
.detail-squads {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
}
.detail-squad > div {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
}
@media (max-width: 1500px) {
    .tv-player-detail-photo { min-width: 0; }
    .tv-player-detail-identity { padding: clamp(20px,2.3vw,45px); }
    .tv-player-detail-identity h1 { font-size: clamp(45px,5vw,90px); }
    .tv-current-club { padding: clamp(20px,2.3vw,40px); }
    .tv-current-club strong { font-size: clamp(35px,3.5vw,65px); }
    .team-directory-group a { padding: 20px 10px; }
    .team-directory-group a > span { width: clamp(75px,8vw,145px); border-width: 4px; box-shadow: 5px 5px 0 var(--group-tone); }
    .team-directory-group a strong { font-size: clamp(18px,2vw,35px); white-space: normal; }
    .detail-squads { gap: 20px; }
    .detail-squad h3 { padding: 20px; }
    .detail-squad > div { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .detail-squad article { grid-template-columns: 62px minmax(0,1fr); gap: 8px; min-height: 92px; padding: 8px; }
    .detail-squad article > span { width: 56px; height: 65px; border-width: 3px; }
    .detail-squad article strong { font-size: clamp(15px,1.45vw,27px); }
    .detail-squad article small { font-size: clamp(10px,.9vw,17px); }
}
@media (max-width: 1100px) {
    .tv-player-detail-hero { min-height: 300px; }
    .tv-player-detail-photo span { inset: 8px auto auto 8px; padding: 4px; border-width: 2px; font-size: clamp(7px,2vw,12px); }
    .tv-player-detail-identity { gap: 7px; padding: 10px 6px; }
    .tv-player-detail-identity > small,.tv-current-club small { font-size: clamp(8px,2.4vw,14px); }
    .tv-player-detail-identity h1 { font-size: clamp(17px,5vw,30px); }
    .tv-player-detail-identity > p { gap: 5px; font-size: clamp(11px,3vw,18px); }
    .tv-player-detail-identity > p img { width: 24px; height: 24px; }
    .tv-player-detail-identity > div { gap: 3px; }
    .tv-player-detail-identity > div span { padding: 3px; border-width: 2px; font-size: clamp(7px,2vw,12px); }
    .tv-current-club { gap: 6px; padding: 8px 5px; border-left-width: 3px !important; }
    .tv-current-club strong { font-size: clamp(14px,4vw,24px); }
    .tv-current-club span { padding: 3px; border-width: 2px; font-size: clamp(8px,2.2vw,13px); }
}

/* Manager Mode tactical board */
.screen-manager .tv-header { display: none; }
.screen-manager .tv-safe-area { padding: 0; }
.screen-manager .tv-canvas { min-height: 100vh; background: #071e17; }
.manager-analysis-shell { min-height: 100vh; padding: 92px 28px 28px; color: var(--white); background: radial-gradient(circle at 20% 10%, rgba(241,82,1,.28), transparent 30%), linear-gradient(135deg,#003b2f,#071e17 55%,#001b44); }
.manager-floating-bar { position: fixed; z-index: 50; top: 16px; left: 22px; right: 22px; min-height: 64px; display: grid; grid-template-columns: 170px minmax(0,1fr) auto 230px; align-items: center; gap: 16px; padding: 10px 14px; color: var(--white); border: 5px solid var(--ink); background: rgba(0,0,0,.88); box-shadow: 0 10px 0 var(--fifa-yellow); }
.manager-floating-bar a,.manager-floating-bar button { height: 48px; display: grid; place-items: center; color: var(--ink); border: 3px solid var(--white); background: var(--fifa-yellow); font: 900 20px/1 var(--font); text-decoration: none; cursor: pointer; }
.manager-floating-bar button { color: var(--white); background: var(--fifa-red); }
.manager-floating-bar > strong { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; font-size: clamp(25px,2.2vw,48px); line-height: 1; text-align: center; text-transform: uppercase; white-space: nowrap; }
.manager-floating-bar img { width: 45px; height: 45px; object-fit: contain; padding: 4px; background: var(--white); border: 2px solid var(--ink); }
.manager-floating-bar b { padding: 6px 10px; color: var(--ink); background: var(--fifa-yellow); font-size: .72em; }
.manager-floating-bar > span { color: var(--fifa-yellow); font-size: 24px; font-weight: 900; white-space: nowrap; }
.manager-save-alert { margin: 0 0 16px; padding: 18px 26px; color: var(--ink); border: 5px solid var(--ink); background: var(--fifa-yellow); font-size: 28px; font-weight: 900; text-align: center; }
.manager-save-alert.error { color: var(--white); background: var(--fifa-red); }
.manager-analysis-layout { display: grid; grid-template-columns: 360px minmax(0,1fr) 520px; gap: 24px; align-items: stretch; }
.manager-fixture-rail,.manager-board,.manager-team-drawers { min-width: 0; }
.manager-fixture-rail { overflow: hidden; border: 6px solid var(--ink); background: rgba(255,255,255,.96); box-shadow: 10px 10px 0 var(--fifa-red); }
.manager-fixture-rail header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: var(--white); border-bottom: 5px solid var(--ink); background: var(--fifa-blue); }
.manager-fixture-rail header strong { font-size: 28px; text-transform: uppercase; }.manager-fixture-rail header span { padding: 6px 10px; color: var(--ink); background: var(--fifa-yellow); border: 3px solid var(--ink); font-size: 20px; font-weight: 900; }
.manager-fixture-rail > div { max-height: calc(100vh - 205px); overflow-y: auto; }
.manager-fixture-rail a { display: grid; gap: 5px; padding: 14px 16px; color: var(--ink); border-bottom: 4px solid var(--ink); text-decoration: none; }
.manager-fixture-rail a.active { background: var(--fifa-yellow); box-shadow: inset 12px 0 var(--fifa-red); }
.manager-fixture-rail time { color: var(--fifa-red); font-size: 22px; font-weight: 900; }.manager-fixture-rail span { overflow: hidden; font-size: 22px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.manager-fixture-rail b { color: var(--fifa-blue); }
.manager-board { border: 7px solid var(--ink); background: #0a613f; box-shadow: 12px 12px 0 var(--fifa-yellow); }
.manager-pitch { position: relative; min-height: calc(100vh - 135px); overflow: hidden; background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 8.33%, rgba(0,0,0,.06) 8.33% 16.66%), linear-gradient(90deg,#12834f,#0b633c); }
.manager-pitch::before { content: ""; position: absolute; inset: 22px; border: 6px solid rgba(255,255,255,.85); pointer-events: none; }
.manager-pitch-line,.manager-pitch-box { position: absolute; pointer-events: none; }
.manager-pitch-mid { top: 22px; bottom: 22px; left: 50%; width: 6px; transform: translateX(-50%); background: rgba(255,255,255,.85); }
.manager-pitch-circle { top: 50%; left: 50%; width: 230px; height: 230px; border: 6px solid rgba(255,255,255,.85); border-radius: 50%; transform: translate(-50%,-50%); }
.manager-pitch-box { top: 28%; width: 120px; height: 44%; border: 6px solid rgba(255,255,255,.85); }.manager-pitch-box.left { left: 22px; border-left: 0; }.manager-pitch-box.right { right: 22px; border-right: 0; }
.manager-pitch-label { position: absolute; z-index: 2; top: 28px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--ink); background: var(--fifa-yellow); border: 4px solid var(--ink); font-size: 25px; font-weight: 900; text-transform: uppercase; }.manager-pitch-label.home { left: 32px; }.manager-pitch-label.away { right: 32px; }.manager-pitch-label img { width: 42px; height: 42px; object-fit: contain; }
.manager-slot { position: absolute; z-index: 4; width: clamp(115px,8.5vw,190px); min-height: 72px; transform: translate(-50%,-50%); display: grid; place-items: center; }
.manager-slot-label { width: 72px; height: 72px; display: grid; place-items: center; color: var(--white); border: 4px dashed rgba(255,255,255,.85); border-radius: 50%; background: rgba(0,0,0,.2); font-size: 24px; font-weight: 900; }
.manager-pitch-player { width: 100%; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 8px; padding: 6px; color: var(--ink); border: 4px solid var(--ink); background: var(--white); box-shadow: 6px 6px 0 var(--fifa-yellow); cursor: grab; }
.manager-slot.away .manager-pitch-player { box-shadow-color: var(--fifa-red); }
.manager-player-avatar { width: 46px; height: 52px; display: grid; place-items: center; overflow: hidden; color: var(--white); background: var(--fifa-blue); border: 3px solid var(--ink); font-size: 22px; font-weight: 900; }.manager-player-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.manager-pitch-player span:last-child,.manager-pool-player span:last-child { min-width: 0; display: grid; gap: 2px; }
.manager-pitch-player strong { overflow: hidden; font-size: clamp(14px,1.05vw,24px); line-height: 1; text-overflow: ellipsis; white-space: nowrap; }.manager-pitch-player small { color: var(--muted); font-size: clamp(10px,.72vw,16px); font-weight: 900; }
.manager-team-drawers { display: grid; align-content: start; gap: 18px; }
.manager-team-drawer { overflow: hidden; border: 6px solid var(--ink); background: rgba(255,255,255,.96); box-shadow: 10px 10px 0 var(--drawer-tone,var(--fifa-blue)); }.manager-team-drawer.away { --drawer-tone: var(--fifa-red); }
.manager-team-drawer summary { display: grid; grid-template-columns: 72px minmax(0,1fr) 145px; align-items: center; gap: 14px; padding: 16px; color: var(--white); background: var(--drawer-tone); cursor: pointer; list-style: none; }.manager-team-drawer summary::-webkit-details-marker { display: none; }
.manager-team-drawer summary img { width: 66px; height: 66px; object-fit: contain; padding: 5px; border: 3px solid var(--ink); background: var(--white); }.manager-team-drawer summary span { display: grid; gap: 4px; }.manager-team-drawer summary strong { overflow: hidden; font-size: 30px; text-overflow: ellipsis; white-space: nowrap; }.manager-team-drawer summary small { color: var(--fifa-yellow); font-size: 17px; font-weight: 900; text-transform: uppercase; }
.manager-team-drawer select { min-height: 58px; padding: 0 10px; color: var(--ink); border: 4px solid var(--ink); background: var(--fifa-yellow); font: 900 24px/1 var(--font); }
.manager-player-pool { max-height: calc(100vh - 255px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; overflow-y: auto; padding: 14px; }
.manager-pool-player { min-width: 0; display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 8px; padding: 8px; color: var(--ink); border: 3px solid var(--ink); background: var(--paper); cursor: grab; }
.manager-pool-player strong { overflow: hidden; font-size: 18px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }.manager-pool-player small { color: var(--muted); font-size: 13px; font-weight: 900; }
.drag-over { outline: 8px solid var(--fifa-yellow); outline-offset: 4px; }
@media (max-width: 1500px) {
    .manager-analysis-layout { grid-template-columns: 250px minmax(0,1fr) 360px; gap: 14px; }
    .manager-floating-bar { grid-template-columns: 120px minmax(0,1fr) auto 170px; }
    .manager-player-pool { grid-template-columns: 1fr; }
    .manager-slot { width: 115px; }
    .manager-pitch-player { grid-template-columns: 36px minmax(0,1fr); }
    .manager-player-avatar { width: 34px; height: 40px; }
}

/* Clean Manager Mode: one full field with team flag player switcher. */
.manager-clean-shell { min-height: 100vh; padding: 92px 24px 20px; background: radial-gradient(circle at 12% 8%, rgba(217,4,41,.22), transparent 28%), radial-gradient(circle at 88% 12%, rgba(241,82,1,.22), transparent 28%), linear-gradient(135deg,#002d40,#00555a 52%,#003026); }
.manager-clean-bar { grid-template-columns: 135px minmax(180px,.7fr) auto minmax(180px,.7fr) 205px; min-height: 64px; box-shadow: 0 8px 0 var(--fifa-orange); }
.manager-clean-bar > strong { font-size: clamp(20px,1.5vw,34px); }
.manager-team-switch { min-width: 0; display: flex !important; align-items: center; justify-content: center; gap: 10px; color: var(--white) !important; background: var(--fifa-blue) !important; }
.manager-team-switch img { width: 42px; height: 42px; }
.manager-team-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-team-switch.active { color: var(--ink) !important; background: var(--fifa-yellow) !important; box-shadow: inset 0 -7px var(--fifa-red), 0 0 0 5px var(--white); }
.manager-save-button { background: var(--fifa-red) !important; }
.manager-full-board { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 14px; min-height: calc(100vh - 118px); }
.manager-formation-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.manager-formation-strip label { min-width: 0; display: grid; grid-template-columns: 46px minmax(0,1fr) 132px; align-items: center; gap: 10px; padding: 7px 12px; color: var(--white); border: 4px solid var(--ink); background: rgba(0,0,0,.68); }
.manager-formation-strip img { width: 40px; height: 40px; object-fit: contain; padding: 4px; background: var(--white); border: 3px solid var(--ink); }
.manager-formation-strip span { overflow: hidden; font-size: clamp(20px,1.45vw,32px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.manager-formation-strip select { height: 43px; color: var(--ink); border: 3px solid var(--ink); background: var(--fifa-yellow); font: 900 20px/1 var(--font); }
.manager-full-field { width: 100%; border-width: 8px; box-shadow: 14px 14px 0 var(--fifa-yellow); }
.manager-full-field .manager-pitch { min-height: calc(100vh - 218px); }
.manager-pitch-player { position: relative; width: auto; min-width: 122px; max-width: 190px; grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center; }
.manager-pitch-player .manager-player-avatar { width: clamp(58px,4.5vw,96px); height: clamp(58px,4.5vw,96px); border-radius: 50%; border: 5px solid var(--white); background: var(--fifa-blue); box-shadow: 0 0 0 5px var(--ink), 8px 8px 0 rgba(0,0,0,.35); }
.manager-slot.away .manager-pitch-player .manager-player-avatar { background: var(--fifa-red); }
.manager-pitch-player span:last-child { order: -1; display: grid; justify-items: center; gap: 0; max-width: 190px; }
.manager-pitch-player strong { position: relative; z-index: 4; max-width: 190px; padding: 6px 10px; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; background: var(--fifa-yellow); box-shadow: 4px 4px 0 rgba(0,0,0,.32); font-size: clamp(13px,1vw,22px); line-height: 1; text-overflow: ellipsis; white-space: nowrap; animation: pitchNameFloat 3s ease-in-out infinite; }
.manager-slot.away .manager-pitch-player strong { color: var(--white); background: var(--fifa-blue); }
.manager-pitch-player small { display: none; }
.manager-slot-label { border-radius: 50%; }
.manager-horizontal-pool { position: fixed; z-index: 45; top: 78px; left: 24px; right: 24px; max-height: 0; display: grid; grid-template-columns: minmax(170px,220px) 52px minmax(0,1fr) 52px; align-items: stretch; overflow: hidden; opacity: 0; pointer-events: none; border: 5px solid var(--ink); background: rgba(255,255,255,.97); box-shadow: 10px 10px 0 var(--fifa-red); transform: translateY(-10px); transition: max-height .24s ease, opacity .2s ease, transform .2s ease; }
.manager-horizontal-pool.is-open { max-height: 186px; opacity: 1; pointer-events: auto; transform: translateY(0); }
.manager-horizontal-pool header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; gap: 4px 10px; padding: 8px 12px; color: var(--white); background: var(--fifa-blue); border-right: 5px solid var(--ink); }
.manager-horizontal-pool header strong { overflow: hidden; font-size: 28px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.manager-horizontal-pool header span { grid-column: 1 / 3; color: var(--fifa-yellow); font-size: 14px; font-weight: 900; text-transform: uppercase; }
.manager-horizontal-pool header button { min-width: 78px; min-height: 42px; color: var(--ink); border: 3px solid var(--white); background: var(--fifa-yellow); font: 900 17px/1 var(--font); text-transform: uppercase; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.manager-pool-scroll { display: grid; place-items: center; color: var(--white); border: 0; border-inline: 4px solid var(--ink); background: var(--fifa-blue); font: 900 50px/.8 var(--font); cursor: pointer; }
.manager-pool-scroll.right { background: var(--fifa-red); }
.manager-horizontal-pool .manager-player-pool { min-width: 0; height: auto; max-height: none; display: flex; align-items: center; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 10px; scroll-behavior: smooth; scrollbar-width: none; }
.manager-horizontal-pool .manager-player-pool::-webkit-scrollbar { display: none; }
.manager-horizontal-pool .manager-pool-player { min-width: 158px; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 6px; padding: 8px 9px; border-width: 3px; background: linear-gradient(180deg,var(--white),#f5efe2); text-align: center; }
.manager-horizontal-pool .manager-pool-player .manager-player-avatar { width: 58px; height: 58px; border-radius: 50%; border-width: 3px; }
.manager-horizontal-pool .manager-pool-player span:last-child { justify-items: center; max-width: 100%; }
.manager-horizontal-pool .manager-pool-player strong { max-width: 142px; padding: 5px 9px; color: var(--white); border-radius: 999px; background: var(--ink); font-size: 18px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.manager-horizontal-pool .manager-pool-player small { color: var(--fifa-blue); font-size: 13px; line-height: 1; white-space: nowrap; }
@keyframes pitchNameFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@media (max-width: 1500px) {
    .manager-clean-shell { padding-inline: 12px; }
    .manager-clean-bar { grid-template-columns: 90px minmax(90px,1fr) auto minmax(90px,1fr) 120px; gap: 8px; }
    .manager-floating-bar a,.manager-floating-bar button { font-size: 14px; }
    .manager-team-switch img { width: 30px; height: 30px; }
    .manager-formation-strip label { grid-template-columns: 34px minmax(0,1fr) 82px; gap: 5px; padding: 4px; }
    .manager-formation-strip img { width: 30px; height: 30px; }
    .manager-formation-strip select { height: 32px; font-size: 14px; }
    .manager-horizontal-pool { grid-template-columns: minmax(112px,145px) 36px minmax(0,1fr) 36px; top: 72px; left: 10px; right: 10px; }
    .manager-horizontal-pool.is-open { max-height: 172px; }
    .manager-horizontal-pool header { padding: 6px 8px; }
    .manager-horizontal-pool header strong { font-size: 18px; }
    .manager-horizontal-pool header button { min-width: 68px; min-height: 38px; font-size: 14px; }
    .manager-pool-scroll { font-size: 38px; }
    .manager-horizontal-pool .manager-player-pool { gap: 8px; padding: 8px; }
    .manager-horizontal-pool .manager-pool-player { min-width: 145px; padding: 8px; }
    .manager-horizontal-pool .manager-pool-player .manager-player-avatar { width: 52px; height: 52px; }
    .manager-horizontal-pool .manager-pool-player strong { max-width: 128px; font-size: 17px; }
    .manager-horizontal-pool .manager-pool-player small { font-size: 13px; }
}

.manager-full-field .manager-pitch-label {
    gap: 6px;
    padding: 5px 8px;
    border-width: 3px;
    font-size: clamp(14px,1vw,22px);
}
.manager-full-field .manager-pitch-label img {
    width: 30px;
    height: 30px;
}
