/* Fan viewing controls. A permanent grid keeps players alive when pins change. */
#courtWall{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
#courtWall>.section-label,#courtWall>.wall-empty{grid-column:1/-1;margin:6px 0 0}
#courtWall>[data-slot]{min-width:0;scroll-margin-top:calc(var(--header-h,100px) + 24px)}
#courtWall>[data-wide="true"]{grid-column:1/-1}
#courtWall>[data-selected="true"] .tile{border:1px solid var(--accent);box-shadow:0 0 0 1px rgba(0,184,217,.12)}
#courtWall>[data-selected="false"] .stream-poster{min-height:150px}
#courtWall>[data-selected="false"]:has(.stream-poster) .video-wrap{aspect-ratio:auto;min-height:150px}
#courtWall .section-label[hidden],#courtWall .wall-empty[hidden]{display:none}
.stream-poster{width:100%;height:100%;min-height:200px;background:linear-gradient(135deg,#12282f,#17171d);color:var(--text);border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;font:inherit}
.stream-poster>span{font-size:30px;color:var(--accent)}
.stream-poster>small{color:#c8c8d0;font-size:13px}
.stream-poster:hover{background:linear-gradient(135deg,#17424e,#20202a)}
.status-badge:not(.status-live){background:#282832;color:#e4e4ec;box-shadow:none;animation:none}
.status-upcoming{color:#d9cdff!important}.status-finished{color:#b4e3d1!important}
.wall-empty{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:var(--panel)}
.wall-empty h2{margin:0 0 10px;font-size:22px}.wall-empty p{color:var(--muted);line-height:1.6}
.wall-empty button,.share-fallback button,.dual-picker-close{border:1px solid var(--accent);border-radius:999px;background:var(--accent);color:#03232b;font:inherit;font-weight:800;min-height:44px;padding:9px 18px;cursor:pointer}
.share-fallback{width:min(90vw,500px);background:var(--panel);color:var(--text);border:1px solid var(--accent);border-radius:18px;padding:24px}
.share-fallback::backdrop{background:#000b}.share-fallback h2{margin:0 0 12px}.share-fallback label{display:block;margin:18px 0 8px}
.share-fallback input{width:100%;box-sizing:border-box;min-height:44px;background:var(--bg);color:var(--text);border:1px solid var(--line);padding:10px;border-radius:8px;margin-bottom:18px}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid #fff;outline-offset:3px}
.watch-chip{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--accent);border-radius:50%;background:#0a0a0cdb;color:var(--text);font-size:20px;cursor:pointer}
.dual-picker-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.dual-picker-close{font-size:13px}
body.watching{overflow:hidden}
#watchMode:not([hidden]){display:flex;flex-direction:column;position:fixed;inset:0;z-index:55;background:var(--bg)}
#watchMode[hidden]{display:none}
.wm-topbar{display:flex;align-items:center;gap:12px;padding:8px 16px;min-height:56px;background:var(--panel-2);border-bottom:1px solid var(--line);box-sizing:border-box}
.wm-exit{flex-shrink:0;min-height:44px;padding:8px 16px;border:0;border-radius:999px;background:var(--accent);color:#03232b;font-weight:900;cursor:pointer}
.wm-title{flex:1;min-width:0;display:flex;align-items:center;gap:6px;font-weight:700}
.wm-title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.wm-title-logo{height:18px;width:auto}.wm-title-prefix{font-size:11px;color:var(--accent-2)}
.wm-video{display:flex;align-items:center;justify-content:center;background:#000;min-height:0}
.wm-video .video-wrap{width:100%;max-height:100%;aspect-ratio:16/9}
.watch-source-fallback{position:absolute;top:8px;right:8px;z-index:4;display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;max-width:calc(100% - 72px);padding:8px 12px;border:1px solid var(--accent);border-radius:10px;background:#0a0a0cf2;color:#fff;font-size:12px;font-weight:800;line-height:1.3;text-decoration:none}
.watch-source-fallback:hover{background:#16333b;text-decoration:underline}
.wm-dual-btn,.wm-single-btn{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--panel);font-weight:800;cursor:pointer}
.wm-single-btn{display:none}.wm-dual-btn{display:none}
body.dual-watch .wm-video{display:none}
body.dual-watch .wm-single-btn{display:inline-flex}
body.dual-watch .wm-dual-btn{display:none}
@media(min-width:1001px){
  .wm-topbar{height:64px}
  .wm-video{flex:1;width:calc(100% - 360px);padding:16px;box-sizing:border-box}
  .wm-video .video-wrap{max-width:calc((100vh - 96px)*16/9)}
  body.watching #chatMount{position:fixed;left:auto;right:16px;top:80px;bottom:16px;width:328px;height:auto;z-index:56}
  body.watching:not(.chat-open) .wm-video,body.watching.chat-off .wm-video{width:100%}
  body.watching:not(.chat-open) #chatMount{top:auto;bottom:16px;height:auto}
  body.watching:not(.dual-watch) .wm-dual-btn{display:inline-flex}
  .wm-dual{padding:16px}
}
@media(max-width:1000px){
  #courtWall{grid-template-columns:1fr;gap:12px}
  #courtWall>[data-slot]{grid-column:1/-1}
  #courtWall .banner .b-title{font-size:14px}
  .wm-topbar{min-height:calc(56px + env(safe-area-inset-top));height:auto;padding:calc(6px + env(safe-area-inset-top)) 10px 6px}
  .wm-title{font-size:12px}.wm-bag{display:none}
  .wm-exit{font-size:11px;padding:8px 10px}
  .wm-video{height:min(56.25vw,45vh);flex:0 0 auto}
  body.watching:not(.chat-open) .wm-video,body.watching.chat-off .wm-video{flex:1;height:auto;max-height:calc(100dvh - 104px)}
  body.watching:not(.chat-open) .wm-video .video-wrap,body.watching.chat-off .wm-video .video-wrap{width:min(100%,calc((100dvh - 104px)*16/9))}
  body.watching #chatMount{top:calc(56px + env(safe-area-inset-top) + min(56.25vw,45vh));bottom:0}
  body.watching #chatMount.chat-collapsed{top:auto;bottom:0;height:48px}
}
.skip-link{position:fixed;left:16px;top:8px;z-index:1000;transform:translateY(-160%);background:#fff;color:#101014;padding:12px 18px;border-radius:8px;font-weight:800;text-decoration:none}
.skip-link:focus{transform:none}
.no-script{padding:16px;color:#fff;background:#282832}
/* Browsers supporting reading-flow follow the visible pinned order for focus. */
#courtWall{reading-flow:grid-order}
