/* Compact television controls; preserve the existing grid and mobile layout. */
body:not(.phone-mode) #tvHud{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;background:#0d1d2aee;border:1px solid #345365;border-radius:12px;padding:7px 10px;box-shadow:0 4px 18px #0007;overflow:visible;}
body:not(.phone-mode) #tvHud .tv-bug,body:not(.phone-mode) #tvHud .tv-controls{background:transparent;box-shadow:none;border:0;padding:0;backdrop-filter:none;}
body:not(.phone-mode) #tvHud .tv-bug{gap:8px;flex-wrap:nowrap;}
body:not(.phone-mode) #tvHud .ip-approved-logo{width:145px;height:auto;}
body:not(.phone-mode) #tvHud .ip-tv-brand span,body:not(.phone-mode) #tvModeSub{display:none;}
body:not(.phone-mode) #tvHud .tv-controls{justify-content:flex-end;gap:7px;}
body:not(.phone-mode) #tvHud #tvPoolStatus{display:none;margin:0;text-align:right;font-size:11px;}
body:not(.phone-mode) #tvHud.tv-expanded #tvPoolStatus{display:block;}
body:not(.phone-mode) #tvHud.tv-expanded .tv-options{max-height:60vh;overflow:auto;justify-content:flex-start;}
body:not(.phone-mode) #tvHud .tv-grid-picker{position:relative;}
body:not(.phone-mode) #tvHud .tv-grid-picker summary{cursor:pointer;display:flex;align-items:center;}
body:not(.phone-mode) #tvHud .tv-grid-choices{position:absolute;top:calc(100% + 8px);right:0;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(56px,1fr));gap:6px;background:#102536;border:1px solid #476779;border-radius:9px;padding:9px;box-shadow:0 8px 24px #0008;}
body:not(.phone-mode) #tvHud .tv-grid-picker[open]{flex-basis:auto;}
body:not(.phone-mode) #tvHud .tv-options #tvSecondary{display:flex;gap:6px;flex-wrap:wrap;}
body:not(.phone-mode) #tvHud .ip-site-menu{position:relative;}
body:not(.phone-mode) #tvHud .ip-site-menu-links{position:absolute;top:calc(100% + 8px);left:0;right:auto;min-width:240px;max-height:75vh;overflow:auto;}
.tv-source-pref{display:flex;align-items:center;gap:6px;color:#d1e1ea;font-size:12px;flex-wrap:wrap;}
.tv-policy-note{flex-basis:100%;margin:2px 0;color:#b9cbd6;font-size:12px;line-height:1.4;}
@media(max-width:900px){body:not(.phone-mode) #tvHud{grid-template-columns:minmax(0,1fr)}body:not(.phone-mode) #tvHud .tv-controls{justify-content:flex-start}}
@media(max-width:600px){body.phone-mode .tv-source-pref,body.phone-mode .tv-policy-note{grid-column:1/-1}.tv-source-pref select{max-width:100%}}
body:not(.phone-mode) #tvHud .tv-bug{align-self:start;}
body:not(.phone-mode) #tvHud .tv-controls{justify-content:flex-start;}
body:not(.phone-mode) #tvHud #tvOptionsBtn{margin-left:auto;}
@media(max-width:600px){
 body.phone-mode #tvHud .tv-controls{grid-template-columns:repeat(2,minmax(0,1fr));}
 body.phone-mode #tvHud #tvShuffleAllBtn,body.phone-mode #tvHud #tvOptionsBtn{grid-column:auto;}
 body.phone-mode #tvHud:not(.tv-expanded) .tv-theme-control,body.phone-mode #tvHud:not(.tv-expanded) #tvPoolStatus{display:none;}
 body.phone-mode #tvHud .tv-theme-control{grid-column:1/-1;}
}
