/* Reserved bottom row; physical columns keep the dock RIGHT in both languages.
   The local controller adapts capacity to viewport width and root text scale. */
.tv-mode .tv-scene>.tv-bottom-row{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,72%);gap:16px;align-items:end;flex:0 0 auto;direction:ltr;min-width:0}
.tv-mode .tv-scene>.tv-bottom-row:has(>.tv-explorer-dock[data-capacity="2"]){grid-template-columns:minmax(0,1fr) minmax(540px,58%)}
.tv-mode .tv-scene>.tv-bottom-row:has(>.tv-explorer-dock[data-visible-count="1"]){grid-template-columns:minmax(0,1fr) minmax(300px,380px)}
.tv-mode .tv-bottom-row>.tv-scoreboard{grid-column:1;grid-row:1;position:relative;inset:auto;width:auto;min-width:0;margin:0}
.tv-mode .tv-bottom-row>.tv-explorer-dock{grid-column:2;grid-row:1;position:relative;inset:auto;min-width:0;align-self:end;direction:ltr;background:#fff6df;color:#123d48;border:2px solid #67bac5;border-radius:24px;padding:12px;box-shadow:0 6px 0 #04243355}
[dir=rtl] .tv-mode .tv-bottom-row>:is(.tv-scoreboard,.tv-explorer-dock){direction:rtl}
.tv-mode .tv-explorer-dock>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-block-end:8px}
.tv-mode .tv-explorer-dock h2{font:800 clamp(1.375rem,1.65vw,3rem)/1.4 SirajTVExpedition,Arial,sans-serif;color:#123d48;margin:0}
.tv-mode .tv-explorer-dock nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tv-mode .tv-explorer-dock nav button{font:700 clamp(1.125rem,1.25vw,2.25rem)/1.4 SirajTVExpedition,Arial,sans-serif;min-height:44px;padding:5px 10px;border:1px solid #0b6f78;border-radius:12px;background:#e4f5ef;color:#123d48}
.tv-mode .tv-explorer-dock nav button:disabled{opacity:.45;cursor:default}
.tv-mode .tv-explorer-dock nav button:focus-visible{outline:4px solid #087c83;outline-offset:3px;background:#ffdf83}
.tv-mode .tv-explorer-page{font-size:clamp(1.125rem,1.25vw,2.125rem);font-weight:700;white-space:nowrap}
.tv-mode .tv-explorer-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none;align-items:stretch}
.tv-mode .tv-explorer-dock[data-capacity="2"] .tv-explorer-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.tv-mode .tv-explorer-dock:is([data-capacity="1"],[data-visible-count="1"]) .tv-explorer-cards{grid-template-columns:minmax(0,1fr)}
.tv-mode .tv-explorer-card{display:flex;flex-direction:row;align-items:center;gap:12px;min-width:0;padding:8px;border:1px solid #aad8d2;border-radius:18px;background:#ecfaf7}
.tv-mode .tv-explorer-portrait{display:block;flex:0 0 auto;width:clamp(96px,5vw,160px);height:clamp(96px,5vw,160px);aspect-ratio:1;overflow:hidden;border-radius:20px;background:#d6eee9}
.tv-mode .tv-explorer-portrait img{display:block;width:100%;height:100%;object-fit:cover}
.tv-mode .tv-explorer-name{display:block;flex:1;min-width:0;font:700 clamp(1.375rem,1.4vw,3rem)/1.45 SirajTVExpedition,Arial,sans-serif;color:#123d48;text-align:start;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
.tv-mode .tv-bottom-row .teams{grid-template-columns:repeat(2,minmax(0,1fr))}
.tv-mode .tv-bottom-row .team-head{flex-wrap:wrap}
/* Keep the current chapter; the second strip of dots is redundant in this lobby. */
.tv-mode .tv-scene:has(>.tv-bottom-row){gap:12px;padding-block:3vh}
.tv-mode .tv-scene:has(>.tv-bottom-row)>.exp-chapter-strip{display:none}
.tv-mode .tv-scene:has(>.tv-bottom-row)>.exp-journey-bar{gap:12px}
.tv-mode .tv-scene:has(>.tv-bottom-row)>.exp-journey-bar .exp-chapter-emblem{width:44px;height:44px}
.tv-mode .tv-scene:has(>.tv-bottom-row)>.exp-journey-bar h2{font-size:clamp(24px,1.9vw,42px);line-height:1.3}
.tv-mode .tv-scene:has(>.tv-bottom-row)>.exp-journey-bar .eyebrow{font-size:clamp(18px,1.4vw,30px);line-height:1.3;margin:0}
.tv-mode .tv-scene:has(>.tv-bottom-row)>.exp-journey-bar .exp-local-nav button{font-size:clamp(18px,1.4vw,30px);min-height:44px;padding:6px 12px}
.tv-mode .tv-scene:has(>.tv-bottom-row)>.tv-content{min-height:300px}
.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby{min-height:280px}
.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby .join-code-panel{padding:16px;gap:8px}
.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby .join-code-panel .qr-box{margin:0;width:clamp(128px,10vw,208px);height:clamp(128px,10vw,208px)}
.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby .join-code-panel h2{font-size:clamp(24px,1.7vw,64px);line-height:1.3}
.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby .join-code-panel p{font-size:clamp(18px,1.3vw,40px);line-height:1.3}
.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby .display-code{font-size:clamp(32px,3vw,80px);line-height:1.3}
/* Large text and compact windows use one shared vertical flow, not clipped inner lanes. */
.tv-mode .tv-scene:has(.tv-explorer-dock[data-capacity="1"]){height:auto;min-height:100svh}
.tv-mode .tv-scene:has(.tv-explorer-dock[data-capacity="1"])>.tv-content{flex:1 0 auto;overflow:visible}
.tv-mode .tv-scene:has(.tv-explorer-dock[data-capacity="1"])>.tv-bottom-row{grid-template-columns:minmax(0,1fr) minmax(0,540px)}
.tv-mode .tv-explorer-dock[data-capacity="1"] .tv-explorer-card{gap:16px}
@media(max-width:1000px){.tv-mode .tv-scene>.tv-bottom-row,.tv-mode .tv-scene>.tv-bottom-row:has(>.tv-explorer-dock){grid-template-columns:1fr}.tv-mode .tv-bottom-row>.tv-explorer-dock{grid-column:1;grid-row:2;justify-self:right;width:min(100%,540px);box-sizing:border-box}.tv-mode .tv-bottom-row>.tv-scoreboard{grid-column:1;grid-row:1}.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby{grid-template-columns:1fr}.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby .tv-welcome{grid-template-columns:minmax(120px,30%) minmax(0,1fr)}}
@media(max-width:520px){.tv-mode .tv-explorer-card{gap:10px;padding:6px}.tv-mode .tv-explorer-portrait{width:88px;height:88px}.tv-mode .tv-explorer-dock>header{align-items:flex-start}.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-game-lobby .tv-welcome{grid-template-columns:1fr}.tv-mode .tv-scene:has(>.tv-bottom-row) .tv-lobby-poster{height:160px}}
@media(prefers-reduced-motion:reduce){.tv-mode .tv-explorer-dock,.tv-mode .tv-explorer-dock *{animation:none!important;transition:none!important}}
.reduce-motion .tv-explorer-dock,.reduce-motion .tv-explorer-dock *{animation:none!important;transition:none!important}
