/* Methstreams Template 2 v2.0.12 — independent match details and docked chat.
   Every rule is scoped to the V2 WordPress theme; legacy Core controls stay authoritative. */
body.nbl-template-2 .mt2-app.mt2-match-detail{
  --mtm-accent:#46e4aa;--mtm-bg:#0a101a;--mtm-panel:#151e2d;
  --mtm-panel2:#1b293a;--mtm-line:#293b50;--mtm-text:#f0f7ff;--mtm-muted:#aec0d3;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-shell{
  --nbl-primary:#46e4aa;--nbl-live:#1ebc83;--nbl-card:#151e2d;
  --nbl-background:#101927;--nbl-border:#293b50;--nbl-text:#f0f7ff;
  --nbl-muted:#aec0d3;--nbl-shadow:none;
  width:100%!important;max-width:100%!important;min-width:0!important;
  background:transparent!important;color:var(--mtm-text)!important;box-shadow:none!important;
}
/* Template 2 owns the header/footer: suppress Core's duplicate brand/nav/footer in this surface. */
body.nbl-template-2 .mt2-match-detail .nbl-game-shell>header,
body.nbl-template-2 .mt2-match-detail .nbl-game-shell>footer,
body.nbl-template-2 .mt2-match-detail .nbl-game-shell>.nbl-site-footer,
body.nbl-template-2 .mt2-match-detail .nbl-game-shell>.nbl-home-footer{display:none!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-main{
  padding:12px 0 28px!important;margin:0!important;max-width:none!important;
  width:100%!important;min-width:0!important;display:grid;gap:15px!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-breadcrumb{color:#94aac0!important;font-size:11px!important}
body.nbl-template-2 .mt2-match-detail .nbl-breadcrumb a{color:#c1d2e1!important}
body.nbl-template-2 .mt2-match-detail .nbl-breadcrumb a:hover{color:var(--mtm-accent)!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-title-row{
  padding:24px 25px!important;min-height:142px!important;display:flex!important;
  align-items:center!important;border:1px solid #366458!important;border-radius:15px!important;
  background:linear-gradient(115deg,#172837 0%,#153c35 77%,#174439 100%)!important;
  box-shadow:none!important;overflow:hidden;position:relative;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-title-row:before,
body.nbl-template-2 .mt2-match-detail .nbl-game-title-row:after{content:none!important;display:none!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-title-row h1{
  color:var(--mtm-text)!important;font-size:clamp(24px,2.4vw,35px)!important;
  line-height:1.17!important;margin:9px 0!important;letter-spacing:-.035em!important;
  text-wrap:balance;overflow-wrap:anywhere;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-kicker{color:var(--mtm-accent)!important;font-size:11px!important;font-weight:900!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-kicker>span{background:#235c4b!important;color:#c4ffdf!important;border-radius:5px!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-kicker>span.is-live{background:#0c8054!important;color:#fff!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-title-row p,
body.nbl-template-2 .mt2-match-detail .nbl-game-page-intro{color:#c1d7e0!important;font-size:12px!important;line-height:1.65!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-page-intro{margin:0!important;padding:0 4px!important}
/* The old side-by-side chat frame collapses to one video column after porting chat. */
body.nbl-template-2 .mt2-match-detail .nbl-game-live-chat-grid.mt2-chat-ported{
  grid-template-columns:minmax(0,1fr)!important;gap:0!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-first-screen-video{min-width:0!important;max-width:100%!important;width:100%!important}
body.nbl-template-2 .mt2-match-detail :is(.nbl-video-availability,.nbl-seo-card,.nbl-game-matchup-only,.nbl-game-info){
  background:var(--mtm-panel)!important;border:1px solid var(--mtm-line)!important;
  border-radius:13px!important;box-shadow:none!important;color:var(--mtm-text)!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-video-availability .nbl-section-title,
body.nbl-template-2 .mt2-match-detail .nbl-section-title,
body.nbl-template-2 .mt2-match-detail .nbl-card-head{
  color:var(--mtm-text)!important;background:#1b2939!important;
  border-color:var(--mtm-line)!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-section-title strong,
body.nbl-template-2 .mt2-match-detail .nbl-section-title h2,
body.nbl-template-2 .mt2-match-detail .nbl-card-head strong{color:#f4faff!important}
body.nbl-template-2 .mt2-match-detail .nbl-section-title small,
body.nbl-template-2 .mt2-match-detail .nbl-card-head small{color:#b1c7d9!important}
body.nbl-template-2 .mt2-match-detail .nbl-video-availability-body{background:var(--mtm-panel)!important;color:var(--mtm-text)!important}
body.nbl-template-2 .mt2-match-detail .nbl-video-stage,
body.nbl-template-2 .mt2-match-detail .nbl-video-placeholder{background:#060c15!important}
body.nbl-template-2 .mt2-match-detail .nbl-video-placeholder strong,
body.nbl-template-2 .mt2-match-detail .nbl-video-status-copy>strong{color:#f1f7ff!important}
body.nbl-template-2 .mt2-match-detail .nbl-video-placeholder small,
body.nbl-template-2 .mt2-match-detail .nbl-video-status-copy>p{color:#b8cbdb!important}
body.nbl-template-2 .mt2-match-detail .nbl-video-status-copy a,
body.nbl-template-2 .mt2-match-detail .nbl-game-main a:not(.nbl-watch-line):hover{color:var(--mtm-accent)!important}
/* Make both Core-controlled watch links real full-width action cards; don't change URL or access control. */
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only{
  padding:13px!important;background:#101b29!important;border:1px solid #344a61!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-lines,
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-lines.is-single-line{
  width:100%!important;max-width:100%!important;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-lines.is-single-line{
  grid-template-columns:minmax(0,1fr)!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  min-width:0!important;width:100%!important;max-width:none!important;min-height:76px!important;
  gap:12px!important;padding:14px 17px!important;box-sizing:border-box!important;
  border:1px solid #3b7865!important;border-radius:12px!important;
  background:linear-gradient(120deg,#183d36,#255347)!important;color:#edfff7!important;
  text-decoration:none!important;transition:border-color .16s,filter .16s,transform .16s;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line.is-promo{
  background:linear-gradient(120deg,#0d654b,#07845b)!important;border-color:#22a67c!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line strong{
  display:block;color:#fff!important;font-size:16px!important;line-height:1.2!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line small{
  display:block;color:#bdebd8!important;font-size:12px!important;line-height:1.4!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-play{
  flex:0 0 43px!important;width:43px!important;height:43px!important;border-radius:10px!important;
  background:#eafff6!important;color:#0d513f!important;display:grid;place-items:center;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line:not([aria-disabled="true"]):hover{filter:brightness(1.12)}
/* Disabled / pending Line 1 is still disabled: a larger card must not bypass Core playback gating. */
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line.is-pending,
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line[aria-disabled="true"]{
  opacity:.64!important;cursor:not-allowed!important;filter:grayscale(.32)!important;
  background:#344252!important;border-color:#576677!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line.is-pending:hover{filter:grayscale(.32)!important}
/* Matchup, scores, metadata and more details are one dark visual system. */
body.nbl-template-2 .mt2-match-detail :is(.nbl-video-matchup,.nbl-game-score,.nbl-game-info-grid,.nbl-game-score>div){
  color:#eff7ff!important;border-color:var(--mtm-line)!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-info-grid{background:var(--mtm-panel)!important;padding:14px!important;gap:9px!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-info-grid>span{
  min-width:0!important;padding:13px!important;background:#1c2b3b!important;
  border:1px solid #2d435b!important;border-radius:9px!important;
  color:#a7bdd2!important;font-size:10px!important;
}
body.nbl-template-2 .mt2-match-detail .nbl-game-info-grid strong{color:#f5f9ff!important;font-size:12px!important;overflow-wrap:anywhere}
body.nbl-template-2 .mt2-match-detail :is(.nbl-game-score,.nbl-video-matchup) :is(strong,b){color:#f5faff!important}
body.nbl-template-2 .mt2-match-detail :is(.nbl-seo-card,.nbl-game-info,.nbl-match-context) :is(p,small,time,span){color:inherit}
body.nbl-template-2 .mt2-match-detail .nbl-game-info-grid span{color:#b5c8d7!important}
body.nbl-template-2 .mt2-match-detail .nbl-match-context p{color:#b8cadb!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-main :is(a:not(.nbl-watch-line),button):focus-visible{outline:2px solid #46e4aa!important;outline-offset:3px}
body.nbl-template-2 .mt2-match-detail .nbl-shared-game-ad img{max-width:100%;height:auto;display:block}
/* The fixed widget is in body rather than inside the page's scrollable panel. */
body.nbl-template-2 .mt2-floating-chat{
  position:fixed!important;right:23px;bottom:21px;z-index:1200!important;
  box-sizing:border-box;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
body.nbl-template-2 .mt2-floating-chat[hidden],
body.nbl-template-2 .mt2-floating-chat .mt2-chat-panel[hidden]{display:none!important}
body.nbl-template-2 .mt2-chat-launcher{
  margin-left:auto;display:flex;align-items:center;justify-content:center;gap:9px;
  min-width:144px;min-height:53px;padding:10px 16px;background:#46e4aa;
  color:#08261e;border:1px solid #6af7bf;border-radius:999px;
  font-weight:900;font-size:14px;box-shadow:0 12px 38px rgba(0,0,0,.44);
  cursor:pointer;
}
body.nbl-template-2 .mt2-chat-launcher-icon{display:inline-flex;align-items:center;justify-content:center;font-size:21px;line-height:1}
body.nbl-template-2 .mt2-chat-launcher:focus-visible,
body.nbl-template-2 .mt2-chat-toolbar button:focus-visible{outline:3px solid #fff;outline-offset:2px}
body.nbl-template-2 .mt2-chat-panel{
  position:absolute;bottom:67px;right:0;width:min(385px,calc(100vw - 26px));
  height:min(560px,calc(100dvh - 146px));min-height:240px;
  display:flex;flex-direction:column;overflow:hidden;
  background:#141f30;border:1px solid #38596a;border-radius:16px;
  color:#f5faff;box-shadow:0 25px 80px rgba(0,0,0,.58);
}
body.nbl-template-2 .mt2-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;background:#1b3240;border-bottom:1px solid #385369;min-height:50px}
body.nbl-template-2 .mt2-chat-toolbar>span{display:flex;gap:8px;align-items:center;color:#f4fff9}
body.nbl-template-2 .mt2-chat-toolbar i{display:block;width:9px;height:9px;background:#46e4aa;border-radius:50%}
body.nbl-template-2 .mt2-chat-toolbar button{background:#2b4355;color:#f5faff;border:1px solid #4a6378;border-radius:8px;width:32px;height:32px;font-size:23px;line-height:1;cursor:pointer}
body.nbl-template-2 .mt2-chat-slot{display:flex;flex:1;min-height:0;overflow:hidden}
body.nbl-template-2 .mt2-chat-slot>.nbl-chat-card{
  --nbl-background:#141f30;--nbl-card:#141f30;--nbl-border:#32495d;
  --nbl-text:#f5faff;--nbl-muted:#b6cadc;--nbl-primary:#46e4aa;
  display:flex!important;flex-direction:column!important;flex:1;min-height:0!important;
  width:100%!important;max-width:100%!important;margin:0!important;
  border:0!important;border-radius:0!important;overflow:hidden!important;
  background:#141f30!important;color:#f5faff!important;
}
body.nbl-template-2 .mt2-chat-slot .nbl-card-head{padding:8px 12px!important;background:#172637!important;border-bottom:1px solid #31465d!important;min-height:44px}
body.nbl-template-2 .mt2-chat-slot .nbl-card-head strong{color:#eefbff!important}
body.nbl-template-2 .mt2-chat-slot .nbl-chat-body{flex:1!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;background:#141f30!important;color:#eaf5ff!important}
body.nbl-template-2 .mt2-chat-slot .nbl-chat-compose{flex:0 0 auto;background:#1a2a3b!important;border-top:1px solid #31465d!important;padding:9px!important}
body.nbl-template-2 .mt2-chat-slot .nbl-chat-input{display:flex;align-items:center;gap:6px}
body.nbl-template-2 .mt2-chat-slot [data-nbl-chat-message]{min-width:0!important;background:#ecf4fb!important;color:#142234!important;border:1px solid #b7c8d8!important}
body.nbl-template-2 .mt2-chat-slot .nbl-chat-send{background:#46e4aa!important;color:#092c21!important}
body.nbl-template-2 .mt2-chat-slot .nbl-chat-message-copy p{color:#f0f6ff!important}
body.nbl-template-2 .mt2-chat-slot .nbl-chat-name strong{color:#eaf9ff!important}
body.nbl-template-2 .mt2-chat-slot .nbl-chat-status-row{color:#c2d4e3!important}
body.nbl-template-2 .mt2-chat-slot [hidden]{display:none!important}
@media(max-width:750px){
  body.nbl-template-2 .mt2-match-detail .nbl-game-title-row{min-height:0!important;padding:19px 17px!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-title-row h1{font-size:25px!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-lines{gap:7px!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line{min-height:68px!important;padding:11px 9px!important;gap:5px!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line strong{font-size:12px!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-line small{font-size:10px!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-play{flex-basis:32px!important;width:32px!important;height:32px!important}
  body.nbl-template-2 .mt2-floating-chat{right:11px;bottom:calc(13px + env(safe-area-inset-bottom,0px))}
  body.nbl-template-2:has(.nbl-bottom-nav) .mt2-floating-chat{bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  body.nbl-template-2 .mt2-chat-launcher{min-width:121px;min-height:49px;font-size:12px;padding:9px 12px}
  body.nbl-template-2 .mt2-chat-panel{bottom:61px;height:min(510px,calc(100dvh - 154px));width:min(380px,calc(100vw - 22px))}
}
@media(max-width:390px){
  body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-lines{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.nbl-template-2 .mt2-match-detail .nbl-game-actions-only .nbl-watch-play{flex-basis:26px!important;width:26px!important;height:26px!important}
}

body.nbl-template-2 .mt2-chat-slot .nbl-chat-send svg{fill:currentColor!important;color:#063f2c!important}
/* Match details only: avoid inherited red Core icon/link states. */
body.nbl-template-2 .mt2-match-detail .nbl-game-shell :is(.nbl-game-kicker,.nbl-section-title a,.nbl-video-badge:not(.is-live)){border-color:#387566!important}
body.nbl-template-2 .mt2-match-detail .nbl-game-shell a:not(.nbl-watch-line):not(.nbl-game-team-url){color:#b5f6df}
