/* Bolivia: keep the full three-row broadcast inside the pitch HUD at any size. */
#hud[data-league=bolivia] .tv-board{display:grid;grid-template-columns:4.2cqw 23.8cqw;grid-template-rows:4.8cqw 2.2cqw;width:28cqw;height:7cqw;min-height:0;background:none;gap:0;overflow:hidden;border-radius:.3cqw;box-shadow:0 .2cqw .7cqw #0005}
#hud[data-league=bolivia] .tv-brand{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;background:#f7f7f2;padding:.2cqw;min-width:0}
#hud[data-league=bolivia] .tv-brand img{width:3.6cqw;height:4cqw;object-fit:contain}
#hud[data-league=bolivia] .tv-match{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 3.6cqw;grid-template-rows:2.4cqw 2.4cqw;background:#f6f8f7;gap:0}
#hud[data-league=bolivia] .tv-result{display:contents}
#hud[data-league=bolivia] .tv-team{display:flex;align-items:center;justify-content:flex-start;gap:.5cqw;padding:0 .4cqw;min-width:0;background:#f5f7f5;color:#142a31;transform:none;clip-path:none;border:0}
#hud[data-league=bolivia] .tv-team span{font:700 2cqw/1 Arial,sans-serif;letter-spacing:0}
#hud[data-league=bolivia] .tv-team-left{grid-column:1;grid-row:1;border-bottom:1px solid #52615d}
#hud[data-league=bolivia] .tv-team-right{grid-column:1;grid-row:2}
#hud[data-league=bolivia] .tv-team img{display:block;width:2.1cqw;height:2.1cqw;object-fit:contain;order:0}
#hud[data-league=bolivia] #leftScore,#hud[data-league=bolivia] #rightScore{display:flex;align-items:center;justify-content:center;grid-column:2;background:#ed1425;color:#fff;font:800 2.2cqw/1 Arial,sans-serif;min-width:0;padding:0}
#hud[data-league=bolivia] #leftScore{grid-row:1}#hud[data-league=bolivia] #rightScore{grid-row:2;background:#153c74}
#hud[data-league=bolivia] .tv-dash,#hud[data-league=bolivia] .tv-season{display:none}
#hud[data-league=bolivia] .tv-clock{grid-column:1/3;grid-row:2;background:#e61931;color:#fff;display:flex;align-items:center;justify-content:center;min-width:0;padding:0;font:700 1.9cqw/1 Arial,sans-serif;letter-spacing:0}
/* Japan: J1 mark, dark team panels, white central result and timer below. */
#hud[data-league=japon] .tv-board{display:grid;grid-template-columns:27px 260px;grid-template-rows:31px 19px;width:287px;gap:0;background:none;min-height:50px;overflow:hidden;box-shadow:0 2px 6px #0005}
#hud[data-league=japon] .tv-brand{grid-column:1;grid-row:1;background:#fff;display:flex;align-items:center;justify-content:center;padding:2px}
#hud[data-league=japon] .tv-brand img{width:23px;height:27px;object-fit:contain}
#hud[data-league=japon] .tv-match{grid-column:2;grid-row:1;display:grid;grid-template-columns:1fr 68px 1fr;gap:0;background:#101014}
#hud[data-league=japon] .tv-team{display:flex;align-items:center;justify-content:center;background:#101014;color:#fff;gap:4px;padding:2px 4px;font-size:15px;min-width:0;clip-path:none;transform:none;border:0}
#hud[data-league=japon] .tv-team img{width:20px;height:24px;object-fit:contain}
#hud[data-league=japon] .tv-result{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr);align-items:stretch;justify-content:normal;gap:0;width:100%;min-width:0;height:100%;box-sizing:border-box;border:0;margin:0;background:#fff;color:#12121a;padding:0;font-size:26px}
#hud[data-league=japon] .tv-result b{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;box-sizing:border-box;margin:0;padding:0;background:none;color:#12121a;font:800 26px/1 Arial,sans-serif;font-variant-numeric:tabular-nums;text-align:center}
#hud[data-league=japon] .tv-result .tv-dash{display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;padding:0;font:500 16px/1 Arial,sans-serif}
#hud[data-league=japon] .tv-clock{grid-column:2;grid-row:2;justify-self:center;display:flex;justify-content:center;background:#fff;color:#14141b;min-width:90px;padding:0 8px;font-size:15px}
#hud[data-league=japon] .tv-season{display:none}
@media(max-width:600px){#hud[data-league=japon] .tv-board{width:253px;grid-template-columns:25px 228px}#hud[data-league=japon] .tv-team{font-size:13px}}
/* Keep names centered in each black panel independently of badge width. */
#hud[data-league=japon] .tv-team{display:grid;grid-template-columns:20px minmax(0,1fr) 20px;grid-template-rows:1fr;align-items:center;justify-content:normal;gap:0;padding:0 3px;box-sizing:border-box}
#hud[data-league=japon] .tv-team img{grid-row:1;grid-column:1;width:18px;height:23px;position:static;transform:none;order:initial;justify-self:center;margin:0}
#hud[data-league=japon] .tv-team-right img{grid-column:3}
#hud[data-league=japon] .tv-team span{grid-row:1;grid-column:2;position:static;transform:none;display:block;width:100%;min-width:0;margin:0;padding:0;text-align:center;font:700 15px/1 Arial,sans-serif;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:center}
@media(max-width:600px){#hud[data-league=japon] .tv-team{grid-template-columns:17px minmax(0,1fr) 17px;padding:0 2px}#hud[data-league=japon] .tv-team img{width:16px;height:21px}#hud[data-league=japon] .tv-team span{font-size:13px}}

/* Eredivisie: horizontal names, two centered score cells and white timer. */
#hud[data-league=eredivisie] .tv-board{display:grid;grid-template-columns:250px 70px;grid-template-rows:30px;width:320px;min-height:30px;gap:0;background:none;border-radius:0;overflow:visible;box-shadow:0 2px 5px #0005}
#hud[data-league=eredivisie] .tv-brand,#hud[data-league=eredivisie] .tv-season,#hud[data-league=eredivisie] .tv-dash{display:none}
#hud[data-league=eredivisie] .tv-match{grid-column:1;grid-row:1;display:grid;grid-template-columns:90px 35px 35px 90px;grid-template-rows:30px;background:none;gap:0;overflow:visible}
#hud[data-league=eredivisie] .tv-result{display:contents}
#hud[data-league=eredivisie] .tv-team{grid-row:1;display:flex;align-items:center;justify-content:center;gap:0;padding:0 5px;min-width:0;width:auto;transform:none;clip-path:none;border:0;border-radius:0;background:var(--club-color,#183b69);color:#fff;font-size:20px;line-height:30px;text-shadow:0 1px 2px #0008;overflow:hidden}
#hud[data-league=eredivisie] .tv-team-left{grid-column:1}#hud[data-league=eredivisie] .tv-team-right{grid-column:4}
#hud[data-league=eredivisie] .tv-team img{display:none}
#hud[data-league=eredivisie] #leftScore,#hud[data-league=eredivisie] #rightScore{grid-row:1;display:flex;align-items:center;justify-content:center;position:relative;width:35px;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:#ededeb;color:#121212;font-size:22px;line-height:30px;text-shadow:none}
#hud[data-league=eredivisie] #leftScore{grid-column:2;border-right:1px solid #c5c5c5}#hud[data-league=eredivisie] #rightScore{grid-column:3;background:#dededb}
#hud[data-league=eredivisie] .tv-clock{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0;margin:0;padding:0;background:#f0f0ed;color:#161616;font-size:19px;line-height:30px;border-radius:0}

/* Official Conference identity: green mark and clock underline, central goals. */
#hud[data-league=conference] .tv-board{display:grid;grid-template-columns:34px 74px 250px;grid-template-rows:32px;width:358px;min-height:32px;background:#141414;gap:0;border-radius:0;overflow:visible;box-shadow:0 2px 5px #0006}
#hud[data-league=conference] .tv-brand{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;background:#111;padding:1px}
#hud[data-league=conference] .tv-brand img{width:31px;height:28px;object-fit:contain;filter:invert(1) hue-rotate(180deg)}
#hud[data-league=conference] .tv-clock{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;background:#080808;color:#fff;padding:0;margin:0;font-size:21px;line-height:29px;border-bottom:3px solid #00bf32;border-radius:0}
#hud[data-league=conference] .tv-match{grid-column:3;grid-row:1;display:grid;grid-template-columns:90px 35px 35px 90px;grid-template-rows:32px;background:none;gap:0}
#hud[data-league=conference] .tv-result{display:contents}
#hud[data-league=conference] .tv-team{grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0;gap:0;padding:0 4px;border:0;border-radius:0;transform:none;clip-path:none;background:#252525;color:#fff;font-size:20px;line-height:32px;text-shadow:none}
#hud[data-league=conference] .tv-team-left{grid-column:1;border-right:4px solid var(--club-color,#d7132b)}#hud[data-league=conference] .tv-team-right{grid-column:4;border-left:4px solid var(--club-color,#4cb7df)}
#hud[data-league=conference] .tv-team img,#hud[data-league=conference] .tv-dash,#hud[data-league=conference] .tv-season{display:none}
#hud[data-league=conference] #leftScore,#hud[data-league=conference] #rightScore{grid-row:1;display:flex;align-items:center;justify-content:center;width:35px;min-width:0;position:relative;margin:0;padding:0;background:#fff;color:#000;font-size:23px;line-height:32px;border:0;border-radius:0;text-shadow:none}
#hud[data-league=conference] #leftScore{grid-column:2;border-right:1px solid #292929}#hud[data-league=conference] #rightScore{grid-column:3}
[data-mode=conference]{background:linear-gradient(#25352a,#102b17);border-color:#5ca76d}
/* Fixed grid cells must not inherit the generic clock minimum in cqw. */
#hud[data-league=conference] .tv-clock{min-width:0;width:74px}
#hud:is([data-league=conference],[data-league=eredivisie]) .tv-team span{font:700 20px/1 Arial,sans-serif;letter-spacing:0;max-width:100%;text-align:center}
#hud[data-league=conference] .tv-board{height:32px}
#hud[data-league=eredivisie] .tv-board{height:30px}
/* Scottish Premiership: club badges at both ends, central black goals and white clock. */
#hud[data-league=scotland] .tv-board{display:grid;grid-template-columns:1fr;grid-template-rows:4.4cqw 2.1cqw;width:48cqw;height:6.5cqw;min-height:0;gap:0;background:transparent}
#hud[data-league=scotland] .tv-brand,#hud[data-league=scotland] .tv-season,#hud[data-league=scotland] .tv-dash{display:none}
#hud[data-league=scotland] .tv-match{grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 5.3cqw 5.3cqw minmax(0,1fr);grid-template-rows:4.4cqw;gap:0;background:#070a09}
#hud[data-league=scotland] .tv-result{display:contents}
#hud[data-league=scotland] .tv-team{grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0;gap:.8cqw;padding:0 .4cqw;border:0;clip-path:none;transform:none;background:linear-gradient(90deg,var(--club-color),#050a0955),var(--club-color);color:var(--scotland-ink,#fff)}
#hud[data-league=scotland] .tv-team-left{grid-column:1}
#hud[data-league=scotland] .tv-team-right{grid-column:4;flex-direction:row-reverse}
#hud[data-league=scotland] .tv-team img{width:3.7cqw;height:3.7cqw;object-fit:contain;flex:none}
#hud[data-league=scotland] .tv-team span{flex:1;text-align:center;font:700 2.7cqw/1 Arial,sans-serif;letter-spacing:0}
#hud[data-league=scotland] #leftScore,#hud[data-league=scotland] #rightScore{grid-row:1;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;margin:0;padding:0;border:0;background:#070a09;color:#fff;font:700 3.8cqw/1 Arial,sans-serif;text-align:center}
#hud[data-league=scotland] #leftScore{grid-column:2;border-right:.16cqw solid #e2ca28}
#hud[data-league=scotland] #rightScore{grid-column:3}
#hud[data-league=scotland] .tv-clock{grid-row:2;justify-self:center;width:12cqw;min-width:0;margin:0;padding:0;background:#fffff8;color:#101b19;font:700 2cqw/1 Arial,sans-serif;letter-spacing:0}

/* Cabezones runtime recovery epoch 1 */
