/* GameVision 5.4 — TV Station / Broadcast Safe Area */
:root{--gv-tv-safe-x:clamp(12px,2vw,28px);--gv-tv-safe-y:clamp(12px,2vh,24px)}
body.gv-tv-station{--gv-tv-shell:#03070d;--gv-tv-edge:rgba(255,255,255,.11)}
body.gv-tv-station .court-card{isolation:isolate;background:linear-gradient(180deg,#05090f,#02050a)!important;box-shadow:0 28px 80px rgba(0,0,0,.42)!important}
body.gv-tv-station svg.court{transform-origin:50% 50%;will-change:transform;backface-visibility:hidden}

/* True safe title region — no highlight word, player name or play label may be clipped. */
body.gv-tv-station .hl{inset:0!important;padding:0 0 var(--gv-tv-safe-y) var(--gv-tv-safe-x)!important;overflow:visible!important;align-items:flex-end!important;justify-content:flex-start!important}
body.gv-tv-station .hl .card{box-sizing:border-box!important;width:max-content!important;max-width:min(460px,52%)!important;min-width:0!important;padding:10px 14px 11px!important;overflow:visible!important;border-radius:8px!important}
body.gv-tv-station .hl .kicker{display:block!important;max-width:100%!important;font-size:8px!important;letter-spacing:.14em!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
body.gv-tv-station .hl .big{display:block!important;max-width:100%!important;font-size:clamp(20px,2.5vw,34px)!important;line-height:.92!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important}
body.gv-tv-station .hl .sub{display:block!important;max-width:100%!important;font-size:10px!important;line-height:1.18!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
body.gv-tv-station .gvdi-story{max-width:calc(50% - var(--gv-tv-safe-x))!important;right:var(--gv-tv-safe-x)!important;bottom:var(--gv-tv-safe-y)!important;overflow:hidden!important}

/* Desktop television shell: keep the entire broadcast centered inside the viewport. */
@media (min-width:1000px) and (min-height:650px){
  body.gv-tv-station{height:100dvh;min-height:100dvh;overflow:hidden}
  body.gv-tv-station>.wrap{height:100dvh;min-height:0;max-width:1720px!important;margin:0 auto!important;padding:8px 14px 10px!important;display:grid;gap:6px;overflow:hidden}
  body.gv-tv-station.vba-live-view>.wrap{grid-template-rows:auto auto auto auto minmax(0,1fr) auto}
  body.gv-tv-station.vba-live-view .title{display:none!important}
  body.gv-tv-station:not(.vba-live-view)>.wrap{grid-template-rows:auto auto auto auto minmax(0,1fr) auto}
  body.gv-tv-station:not(.vba-live-view) .title{height:38px!important;min-height:38px!important;margin:0!important}
  body.gv-tv-station .gv-livebar{margin:0!important;min-height:40px;padding:7px 10px!important}
  body.gv-tv-station .board{margin:0!important;padding:7px 16px!important;min-height:72px!important;border-radius:8px!important}
  body.gv-tv-station .logo{width:42px!important;height:42px!important;border-radius:8px!important}
  body.gv-tv-station .team .city{font-size:9px!important}
  body.gv-tv-station .team .name{font-size:20px!important}
  body.gv-tv-station .score{font-size:48px!important}
  body.gv-tv-station .center{min-width:128px!important;gap:1px!important}
  body.gv-tv-station .clock{font-size:30px!important}
  body.gv-tv-station .qtr{font-size:9px!important}
  body.gv-tv-station .bug{font-size:8px!important}
  body.gv-tv-station .wp{margin:0!important;height:8px!important}
  body.gv-tv-station .wp-l{margin:0!important;font-size:8px!important;line-height:12px!important}
  body.gv-tv-station .stage{min-height:0!important;height:100%!important;margin:0!important;gap:8px!important;grid-template-columns:minmax(0,1fr) minmax(300px,350px)!important;align-items:stretch!important;overflow:hidden!important}
  body.gv-tv-station .court-card{min-width:0!important;min-height:0!important;height:100%!important;padding:7px!important;border-radius:8px!important;display:grid!important;grid-template-rows:26px minmax(0,1fr)!important;overflow:hidden!important}
  body.gv-tv-station .court-card .hd{height:26px!important;min-height:26px!important;margin:0 2px!important;align-self:center!important}
  body.gv-tv-station svg.court{grid-row:2!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;border-radius:5px!important}
  body.gv-tv-station .fan-panel{height:100%!important;min-height:0!important;border-radius:8px!important;overflow:hidden!important}
  body.gv-tv-station .fan-view{min-height:0!important;overflow:auto!important}
  body.gv-tv-station .feed{max-height:none!important;min-height:0!important}
  body.gv-tv-station .controls{min-height:42px!important;max-height:46px!important;margin:0!important;padding:4px 6px!important;gap:5px!important;justify-content:center!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;background:rgba(4,8,13,.82);border:1px solid var(--gv-tv-edge);border-radius:8px;backdrop-filter:blur(12px)}
  body.gv-tv-station .controls .btn{flex:0 0 auto!important;min-height:34px!important;padding:6px 10px!important;font-size:11px!important;border-radius:7px!important;white-space:nowrap!important}
  body.gv-tv-station .bottom-nav{display:none!important}
}

/* Narrow screens remain scrollable, but the broadcast itself stays squared and safe. */
@media (max-width:999px){
  body.gv-tv-station .court-card{border-radius:10px!important}
  body.gv-tv-station .hl .card{max-width:min(390px,72%)!important}
  body.gv-tv-station .hl .big{font-size:clamp(18px,5vw,28px)!important}
  body.gv-tv-station .gvdi-story{max-width:62%!important}
}

/* GameVision 6.0: the broadcast is the page. Keep one centered television frame. */
@media (min-width:1000px) and (min-height:650px){
  body.gv-tv-station .stage{align-items:center!important;justify-items:stretch!important}
  body.gv-tv-station .court-card{width:min(100%,calc((100dvh - 182px)*16/9))!important;aspect-ratio:16/9!important;height:auto!important;max-height:100%!important;justify-self:center!important;align-self:center!important;grid-template-rows:26px minmax(0,1fr)!important}
  body.gv-tv-station .fan-panel{align-self:stretch!important}
  body.gv-tv-station:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 50% 12%,color-mix(in srgb,var(--gv-station-accent,#19c8ff) 7%,transparent),transparent 34%)}
}
body.gv-tv-station .court-card:after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--gv-station-accent,#19c8ff) 18%,transparent);z-index:16}
