/* Keep the original design; provide definite dimensions on older TV engines. */
html.tv-browser { scroll-padding-top: 110px; }
.tv-browser button,.tv-browser a { scroll-margin-top: 110px; scroll-margin-bottom: 32px; }
.tv-browser :focus { outline: 3px solid #fff !important; outline-offset: 5px; }
.tv-browser .desktop-links a { font-size: 16px; }
.tv-browser .profile-menu-panel :is(a,button) { min-height: 48px; font-size: 16px; }
.legacy-layout .main-content,.legacy-layout footer { width: 92%; max-width: 1440px; margin-left: auto; margin-right: auto; }
.legacy-layout .topnav { width: 96%; max-width: 1440px; background: #1c1d27; background: linear-gradient(155deg,#222227,#19191b 65%,#233765); }
.legacy-layout .topnav>* { margin-right: 16px; }
.legacy-layout .desktop-links a { margin-right: 20px; }
.legacy-layout .hero { min-height: 640px; }
.legacy-layout .hero__content { width: 92%; max-width: 1440px; margin-left: auto; margin-right: auto; }
.legacy-layout .hero h1 { font-size: 72px; max-width: 760px; }
.legacy-layout .hero__content>p { font-size: 16px; }
.legacy-layout .hero__actions>* { margin-right: 12px; margin-bottom: 12px; }
.legacy-layout .poster-row { display: flex; overflow-x: auto; }
.legacy-layout .poster-row>.poster-card { flex: 0 0 180px; margin-right: 20px; }
.legacy-layout .poster-grid { display: flex; flex-wrap: wrap; }
.legacy-layout .poster-grid>.poster-card { width: 18%; margin: 0 2% 28px 0; }
.legacy-layout .poster-card__image { height: auto; }
.legacy-layout .poster-card__image img { height: auto; width: 100%; }
.legacy-layout .missing-poster { min-height: 250px; }
.legacy-layout .genres-grid { display: flex; flex-wrap: wrap; }
.legacy-layout .genres-grid>button { width: 23%; margin: 0 2% 12px 0; }
.legacy-layout .genres-page .page-heading h1 { font-size: 42px; }
.legacy-layout .account-page-content { width: 100%; }
@media(max-width:700px) {
 .legacy-layout .hero__content { width: 92%; }
 .legacy-layout .hero h1 { font-size: 36px; }
 .legacy-layout .poster-grid>.poster-card { width: 48%; }
 .legacy-layout .genres-grid>button { width: 48%; }
 .legacy-layout .genres-page .page-heading h1 { font-size: 30px; }
}
.legacy-layout .topnav,.legacy-layout .poster-row,.legacy-layout .poster-grid,.legacy-layout .genres-grid { gap: 0; }
.legacy-layout .landscape-row { display: flex; overflow-x: auto; gap: 0; }
.legacy-layout .landscape-row>article { flex: 0 0 320px; margin-right: 20px; min-height: 180px; }
.tv-browser .player-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; max-width: 90%; }
.tv-browser .player-quick-actions button { width: auto; min-width: 48px; min-height: 48px; padding: 10px 16px; border: 1px solid #777; border-radius: 8px; background: #20232b; color: #fff; font: 16px Arial,sans-serif; cursor: pointer; }
.tv-browser .player-server-menu { font-size: 18px; }
.tv-browser .player-server-menu button { min-height: 48px; }
.tv-browser .cinema-controls { opacity: 1; visibility: visible; pointer-events: auto; }
.tv-playback-help { position: absolute; top: 120px; left: 5%; right: 5%; z-index: 15; padding: 16px; background: #171a22; color: #fff; font: 16px/1.5 Arial,sans-serif; border: 1px solid #666; border-radius: 8px; }

.tv-playback-help button { min-height: 44px; margin-left: 16px; padding: 8px 12px; color: #fff; background: #333; border: 1px solid #888; border-radius: 6px; cursor: pointer; }
.tv-browser .cinema-player>header { padding-top: 88px; padding-left: 24px; pointer-events: none; }
.legacy-layout .player-server-menu { width: 320px; max-width: 90%; max-height: 70vh; }
