/* VH MATCH UI v1 - tidier match page on phones and desktop. Pure presentation: every text, heading,
 * table and JSON-LD stays in the HTML (crawlers and AI readers see it all); sections are only collapsed. */

/* ---------- hero: score pill is the toggle, follow buttons under each team ---------- */
.match-hero .vh-match-score-toggle{display:none!important}
.match-hero .versus-score{cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;user-select:none}
.match-hero .versus-score:focus-visible{outline:2px solid #ff7468;outline-offset:4px;border-radius:14px}
.vh-score-hint{font-size:11px;font-weight:600;color:#8fa6bd;white-space:nowrap}
.match-hero .club .vh-follow{margin-top:8px}
.match-hero .club{display:flex;flex-direction:column;align-items:center}
.match-hero .club-right{align-items:center}
.vh-match-follow:empty{display:none!important}

/* ---------- now playing bar under the player ---------- */
.vh-now{display:flex;align-items:center;gap:9px;margin:0 0 14px;padding:10px 14px;border:1px solid #243246;border-top:0;border-radius:0 0 14px 14px;background:#101924;font-size:13px;color:#d5ddea}
.vh-now-dot{width:8px;height:8px;border-radius:50%;background:#8fa6bd;flex:none}
.vh-now[data-av="expected"] .vh-now-dot{background:#3ecf8e}.vh-now[data-av="restricted"] .vh-now-dot{background:#ff8a7f}
.vh-now-main{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vh-now-main strong{color:#fff}
.vh-now-av{font-size:12px;font-weight:700;white-space:nowrap;color:#8fa6bd}
.vh-now[data-av="expected"] .vh-now-av{color:#3ecf8e}.vh-now[data-av="restricted"] .vh-now-av{color:#ff8a7f}
#player:has(+ .vh-now),.player:has(+ .vh-now){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}

/* ---------- format chips: all visible, wrap instead of scrolling sideways ---------- */
.vh-video-categories{display:flex!important;flex-wrap:wrap!important;gap:6px!important;overflow:visible!important}
.vh-video-categories a{white-space:nowrap}
@media (max-width:760px){
  .vh-video-categories{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
  .vh-video-categories a{display:flex!important;align-items:center;justify-content:space-between;gap:6px;min-width:0;margin:0!important}
}

/* ---------- source rows: number · publisher · length · status, no repeated country column ---------- */
.vh-source-tabs.vh-source-list{gap:6px!important}
.vh-source-tabs.vh-source-list .vh-source-item{min-height:52px!important;padding:9px 12px!important;gap:3px!important}
.vh-source-tabs.vh-source-list .vh-source-region-preview{display:none!important}
.vh-source-main{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px!important}
.vh-source-number{font-size:12px!important;padding:3px 8px;border-radius:8px;background:#0f1722;border:1px solid #2c4058;color:#c3d2e2!important;white-space:nowrap}
.vh-source-publisher{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-weight:700}
.vh-source-duration{font-size:12px;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.08);white-space:nowrap}
.vh-source-country-toggle{min-width:0!important;padding:8px 12px!important;gap:2px!important}
.vh-source-country-toggle .vh-source-detail-hint{font-size:10.5px!important;opacity:.75}
.vh-source-row.vh-av-restricted{opacity:.9}
.vh-source-row.vh-av-restricted .vh-source-availability{color:#ff8a7f}
.vh-source-row.vh-av-unknown .vh-source-availability{color:#c3d2e2}
.vh-src-group{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px 0 0;padding:8px 12px;border-radius:10px;font-size:12px;font-weight:750;letter-spacing:.2px}
.vh-src-group.ok{color:#3ecf8e;background:rgba(62,207,142,.07)}
.vh-src-group.no{color:#ff8a7f;background:rgba(255,138,127,.07)}
.vh-src-group[hidden]{display:none!important}

/* ---------- collapsible info sections (content stays in the page) ---------- */
.vh-mui-head{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;cursor:pointer}
.vh-mui-head h2{margin:0!important}
.vh-mui-head:focus-visible{outline:2px solid #ff7468;outline-offset:4px;border-radius:8px}
.vh-mui-chev{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.07);color:#c3d2e2;font-size:12px;transition:transform .2s}
.vh-mui.is-open .vh-mui-chev{transform:rotate(180deg)}
.vh-mui.is-collapsed>:not(.vh-mui-head){display:none!important}
.vh-mui.is-collapsed{padding-top:14px!important;padding-bottom:14px!important}

/* ---------- related matches: first ones + "show more" ---------- */
.vh-rel-hidden{display:none!important}
.vh-rel-more{display:block;margin:12px auto 0;height:42px;padding:0 20px;border-radius:999px;border:1px solid #34475f;background:#182637;color:#e9f0f8;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.vh-rel-more:hover{border-color:#e77b75}

/* ---------- phones ---------- */
@media (max-width:760px){
  .match-hero{padding:14px!important;gap:10px}
  .match-hero .match-hero-top{font-size:12px}
  .match-hero .versus-row{grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr)!important;gap:6px!important;margin:6px 0 2px!important}
  .match-hero .team-badge.large{width:52px!important;height:52px!important}
  .match-hero .club-name{font-size:14px!important}
  .match-hero .versus-score .vh-spoiler-score{font-size:20px}
  .match-hero .club .vh-follow{height:28px!important;line-height:26px!important;padding:0 10px!important;font-size:12px!important;max-width:100%;display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .match-hero .match-meta-line{justify-content:center;text-align:center;font-size:12px!important;gap:6px 10px!important;flex-wrap:wrap}
  .match-hero>p.muted.small{display:none}
  .vh-match-watch-heading{margin:16px 0 8px!important}
  .vh-match-watch-heading .eyebrow,.vh-match-watch-heading>.muted{display:none}
  .vh-match-watch-heading h2{font-size:19px!important;margin:0!important}
  .twocol>section>.player,.twocol>section>#player{margin-left:-14px!important;margin-right:-14px!important;border-radius:0!important;border-left:0!important;border-right:0!important}
  .vh-now{margin-left:-14px;margin-right:-14px;border-radius:0;border-left:0;border-right:0;padding:9px 14px}
  .vh-source-heading{display:none!important}
  .vh-source-tabs.vh-source-list .vh-source-row{grid-template-columns:minmax(0,1fr) 44px!important}
  .vh-source-country-toggle{padding:0!important;align-items:center!important;justify-content:center!important}
  .vh-source-country-toggle>*{display:none!important}
  .vh-source-country-toggle::after{content:"ⓘ";font-size:16px;color:#8fa6bd}
  .vh-source-country-panel{grid-column:1/-1}
  .vh-mui{border-radius:14px!important}
  .vh-mui.is-collapsed{padding:12px 14px!important}
  .vh-mui-head h2{font-size:16px!important}
}

/* ---------- VH MATCH LAYOUT v3.1: 2 columns only around the player; related matches full width below ---------- */
.twocol.vh-mx{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,340px);gap:18px 22px;align-items:start;margin-bottom:26px}
.twocol.vh-mx:not(:has(>.vh-match-side)){grid-template-columns:minmax(0,1fr)}
.twocol.vh-mx>.vh-mx-main,.twocol.vh-mx>.vh-match-side{min-width:0}
.twocol.vh-mx>.vh-match-side{display:flex;flex-direction:column;gap:14px}
.twocol.vh-mx>.vh-match-side{position:static!important}
@media (max-width:900px){.twocol.vh-mx{grid-template-columns:minmax(0,1fr);gap:14px}}

/* compact source panel */
.vh-src-panel{margin:0;padding:12px!important}
.vh-src-panel[hidden]{display:none!important}
.vh-src-panel .vh-source-heading{display:flex!important;align-items:center;justify-content:space-between;margin:0 0 8px!important}
.vh-src-count{min-width:26px;padding:2px 8px;border-radius:999px;background:#ed6062;color:#fff;font-size:12px;font-weight:800;text-align:center}
.vh-src-panel .vh-source-heading h2{font-size:16px!important;margin:0!important}
.vh-src-panel .vh-video-categories{display:flex!important;flex-wrap:wrap!important;margin:0 0 8px!important;gap:4px!important}
.vh-src-panel .vh-video-categories a{display:inline-flex!important;align-items:center;gap:5px;font-size:11.5px!important;padding:4px 8px!important;min-height:0!important;margin:0!important;border-radius:999px!important}
.vh-src-panel .vh-source-tabs.vh-source-list .vh-source-row{grid-template-columns:minmax(0,1fr) 40px!important}
.vh-src-panel .vh-source-tabs.vh-source-list .vh-source-item{min-height:46px!important;padding:8px 10px!important}
.vh-src-panel .vh-source-country-toggle{padding:0!important;align-items:center!important;justify-content:center!important}
.vh-src-panel .vh-source-country-toggle>*{display:none!important}
.vh-src-panel .vh-source-country-toggle::after{content:"ⓘ";font-size:16px;color:#8fa6bd}
.vh-src-panel .vh-source-country-panel{grid-column:1/-1}
.vh-src-panel .vh-src-group{margin:4px 0 0;padding:6px 10px;font-size:11.5px}
.vh-src-panel .vh-show-all-sources{display:flex;justify-content:space-between;align-items:center;width:100%;margin:8px 0 0;padding:10px 12px;border-radius:10px;border:1px solid #34475f;background:#142131;color:#c3d2e2;font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left}
.vh-src-panel .vh-show-all-sources:hover{border-color:#e77b75}
.vh-src-panel .vh-show-all-sources[hidden]{display:none!important}
@media (max-width:900px){.vh-src-panel{padding:10px!important}}

/* replay services: collapsible card in the sidebar */
.vh-replay-side{margin:0;padding:12px!important}
.vh-replay-side>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer}
.vh-replay-side>summary::-webkit-details-marker{display:none}
.vh-rs-text{flex:1;min-width:0}
.vh-rs-text strong{display:block;font-size:14px;color:#f1f5fb}
.vh-rs-text small{display:block;margin-top:2px;color:#8fa6bd;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vh-rs-body{margin-top:10px}
.vh-rs-body .vh-replay-providers{margin:0!important}
.vh-rs-body .vh-replay-providers>.section-row{display:none}

/* goals: one compact row under the player */
.vh-goals-bar{margin:10px 0 0}
.vh-gb-hidden,.vh-gb-open>summary{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #243246;border-radius:12px;background:#121d2a;font-size:13px;list-style:none;cursor:pointer}
.vh-gb-open>summary::-webkit-details-marker{display:none}
.vh-gb-hidden{cursor:default}
.vh-gb-hidden strong{flex:1;font-size:13px;font-weight:650}
.vh-gb-btn{margin-left:auto;padding:6px 12px;border-radius:999px;border:0;background:#ed6062;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.vh-gb-ico{font-size:14px;line-height:1}
.vh-gb-open>summary h2{margin:0;font-size:14px;font-weight:750}
.vh-gb-n{min-width:22px;padding:1px 7px;border-radius:999px;background:#24364b;color:#fff;font-size:12px;font-weight:800;text-align:center}
.vh-gb-preview{flex:1;min-width:0;color:#9fb3c8;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vh-gb-chev{margin-left:auto;color:#8fa6bd;transition:transform .2s}
details[open]>summary .vh-gb-chev{transform:rotate(180deg)}
.vh-gb-open[open]>summary{border-radius:12px 12px 0 0}
.vh-gb-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px;padding:8px;border:1px solid #243246;border-top:0;border-radius:0 0 12px 12px;background:#0f1822}
.vh-goals-bar .vh-gb-goal{display:flex;align-items:center;gap:10px;min-height:0;margin:0;padding:7px 10px;border:1px solid #2a3c52;border-radius:10px;background:#172333;color:#e7eef7;font:inherit;font-size:13px;text-align:left;box-shadow:none}
.vh-goals-bar button.vh-gb-goal{cursor:pointer}
.vh-goals-bar button.vh-gb-goal:hover,.vh-goals-bar button.vh-gb-goal.active{border-color:#ed6062;background:#22303f}
.vh-goals-bar .vh-gb-goal>strong{min-width:32px;color:#ff8a7f;font-weight:800}
.vh-goals-bar .vh-gb-goal>span{flex:1;min-width:0;font-weight:650;overflow-wrap:anywhere}
.vh-goals-bar .vh-gb-goal small{display:block;color:#8fa6bd;font-size:11px;font-weight:500}
.vh-goals-bar .vh-gb-goal>b{color:#ed6062;font-size:12px}
.vh-goals-bar .vh-goal-unmapped{opacity:.75}
html:not(.vh-scores-visible) .vh-gb-open{display:none}
html.vh-scores-visible .vh-gb-hidden{display:none}

/* related matches: full width, 4 cards per row on desktop */
.vh-mx-related .related-matches{margin:0 0 22px}
.vh-mx-related .related-matches .section-row{margin:0 0 10px}
.vh-mx-related .related-matches .section-row h2{font-size:18px;margin:0}
@media (min-width:1101px){.vh-mx-related .vh-cover-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.vh-rel-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.vh-rel-pair .vh-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media (max-width:900px){.vh-rel-pair{grid-template-columns:minmax(0,1fr)}}
@media (max-width:580px){.vh-rel-pair .vh-cover-grid{grid-template-columns:1fr!important}}

/* match information accordion (inside "Match details") */
.vh-info-detail{grid-column:1/-1}
.vh-info{padding:4px 16px 16px}
.vh-info-answer{margin:0 0 14px}
.vh-info-answer .vh-answer-first{margin:0 0 6px;padding:0;border:0;background:none;max-width:none;font-size:13px}
.vh-info-answer .vh-answer-first strong{color:#fff}
.vh-info-answer .match-meta-line{display:none}
.vh-info-answer>p.muted.small{margin:0;font-size:12px}
.vh-info-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:18px;align-items:start}
.vh-info-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 16px;margin:0;padding:12px 14px;border:1px solid #243246;border-radius:12px;background:#111b27;font-size:13px}
.vh-info-facts dt{color:#8fa6bd}.vh-info-facts dd{margin:0;color:#e7eef7;overflow-wrap:anywhere}
.vh-info-pill{display:inline-block;margin-left:6px;padding:0 9px;border-radius:999px;background:#1f3a2c;color:#3ecf8e;font-size:11.5px;font-weight:700}
.vh-info-glance h3{margin:0 0 8px;font-size:13px;color:#c3d2e2}
.vh-info-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:6px}
.vh-info-tiles div{padding:10px 6px;border:1px solid #243246;border-radius:10px;background:#111b27;text-align:center}
.vh-info-tiles b{display:block;font-size:17px;color:#fff}.vh-info-tiles span{font-size:11px;color:#8fa6bd}
.vh-info-pub{margin:10px 0 0;font-size:12px;color:#adbed1;line-height:1.5}.vh-info-pub span{display:block;color:#8fa6bd;margin-bottom:2px}
@media (max-width:760px){.vh-info{padding:4px 12px 14px}.vh-info-cols{grid-template-columns:1fr}}
.vh-h2-sub{font-weight:500;opacity:.7;font-size:.78em}

/* geo-only filter: sources blocked in the chosen country are hidden; a note says how many */
html.vh-geo-only .vh-source-row.vh-av-restricted,html.vh-geo-only .vh-src-group.restricted{display:none!important}
.vh-geo-note{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.06);font-size:12.5px}
.vh-geo-note button{flex:none;padding:4px 10px;border-radius:8px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-weight:650;cursor:pointer}
.vh-geo-note[hidden]{display:none!important}

/* =========================================================== PLAYER COVER FACADE (never a YouTube thumbnail) */
.vh-ssr-facade{position:absolute;inset:0;z-index:3;display:grid;place-items:center;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:#101820 center/cover no-repeat;cursor:pointer}
.vh-ssr-facade::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.35))}
.vh-ssr-play{position:relative;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#e5484d;color:#fff;font-size:26px;box-shadow:0 8px 24px rgba(0,0,0,.35);transition:transform .2s}
.vh-ssr-facade:hover .vh-ssr-play{transform:scale(1.06)}
.vh-ssr-crests{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:clamp(24px,8vw,96px)}
.vh-ssr-crests img{width:clamp(56px,12vw,110px);height:auto;object-fit:contain}
#player,.vh-auto-video{position:relative}
.player>.vh-ssr-facade,#player>.vh-ssr-facade,.vh-auto-video>.vh-ssr-facade{position:absolute!important;inset:0!important;z-index:5!important;width:100%!important;height:100%!important;margin:0!important}
