/* Navigation geometry is owned only by navigation.css. */
body.emra-redesign {--err-viewport: 100vh; --err-safe-bottom: env(safe-area-inset-bottom,0px);}
@supports (height:100dvh) {body.emra-redesign {--err-viewport: 100dvh;}}
@media (pointer:coarse) {
body.emra-redesign.emra-native-tv .erc-library-tab,body.emra-redesign .search-source,body.emra-redesign .search-history-key,body.emra-redesign .simple-button{min-height: 44px;}
body.emra-redesign.emra-native-tv .erc-search-keyboard-button,body.emra-redesign.emra-native-tv .selectbox-item,body.emra-redesign.emra-native-tv .settings-folder,body.emra-redesign.emra-native-tv .settings-param,body.emra-redesign.emra-native-tv .modal__button,body.emra-redesign.emra-native-tv .full-start__button{min-height: 44px;}
body.emra-redesign .erc-search-keyboard-button,body.emra-redesign .selectbox-item,body.emra-redesign .settings-folder,body.emra-redesign .settings-param,body.emra-redesign .modal__button,body.emra-redesign .full-start__button{min-height: 44px;}
body.emra-redesign.emra-native-tv .erc-search-keyboard-button{min-width: 44px; min-height: 44px;}
body.emra-redesign .erc-search-keyboard-button{min-width: 44px; min-height: 44px;}body.emra-redesign .head__actions>.open--profile {min-width: 44px; min-height: 44px;}body.emra-redesign .simple-keyboard .hg-button {min-height: 44px;}
body.emra-redesign.emra-native-tv .erl-tv-heading .view--category{min-height: 44px;}
body.emra-redesign .erl-tv-heading .view--category{min-height: 44px;}
body.emra-redesign.emra-native-tv .erc-library-tab:active{outline: 2px solid rgba(240,247,252,.85); outline-offset: 2px;}}
@media (max-width:850px) {body.emra-redesign {font-size: 16px !important;}body.emra-redesign:not(.emra-library-home) .wrap__content {height: var(--err-viewport);}body.emra-redesign:not(.emra-library-home) .head__body>.head__actions {top: max(16px,env(safe-area-inset-top,0px)); right: max(16px,env(safe-area-inset-right,0px));}body.emra-redesign .erc-detail-hero {min-height: 27em; padding: 64px 24px 26px;}body.emra-redesign .erc-detail-copy {max-width: 100%;}body.emra-redesign .erc-detail-hero .full-start-new__title,
body.emra-redesign .erc-detail-hero .full-start-new__title.twolines {font-size: 2.5em; max-width: 13em;}body.emra-redesign .erc-detail-overview {max-width: 32em;}body.emra-redesign .erc-catalog-hero {min-height: 210px; padding: 64px 24px 24px;}body.emra-redesign .erc-catalog-copy h1 {font-size: 2em; max-width: 14em;}body.emra-redesign .erc-catalog-page .mapping--grid .card,
body.emra-redesign .erc-library-page .mapping--grid .card {width: 25%;}body.emra-redesign .erc-library-header {padding: 68px 24px 22px;}body.emra-redesign .erc-library-header h1 {font-size: 2.3em;}
body.emra-redesign.emra-native-tv .erc-library-tabs{flex-wrap: wrap; border-radius: 16px; max-width: 100%;}
body.emra-redesign.emra-native-tv .erc-library-tab{min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; padding: 10px 13px;}body.emra-redesign .search {left: var(--erd-rail); width: calc(100vw - var(--erd-rail)); bottom: var(--err-nav); height: calc(var(--err-viewport) - var(--err-nav)) !important;}body.emra-redesign .erc-search-body {padding: 0 20px 24px;}body.emra-redesign .erc-search-editor {padding-right: 56px; max-width: 100%;}body.emra-redesign .erc-search-body .search__input {font-size: 20px; padding: 13px 17px; min-height: 50px; border-radius: 22px;}
body.emra-redesign.emra-native-tv .erc-search-keyboard-button{width: 46px; height: 46px; padding: 12px;}
body.emra-redesign .erc-search-keyboard-button{width: 46px; height: 46px; padding: 12px;}body.emra-redesign .erc-search-workspace {display: block;}body.emra-redesign .erc-search-recent {margin-top: 20px; border: 0; padding: 0 8px;}body.emra-redesign .erc-search-recent .search__history .scroll__body {flex-direction: row;}body.emra-redesign .erc-search-recent .search-history-key {width: auto; min-height: 44px; display: flex; align-items: center; margin-right: 8px;}body.emra-redesign .erc-search-keyboard {max-width: 100%;}body.emra-redesign .ers-settings .settings__content {left: calc(var(--erd-rail) + 12px); right: 12px; top: 12px; height: calc(var(--err-viewport) - 24px) !important; max-height: calc(var(--err-viewport) - 24px);}body.emra-redesign .ers-settings .settings__head {padding: 18px 18px 12px;}body.emra-redesign .ers-settings .settings__title {font-size: 25px;}body.emra-redesign .ers-layout {gap: 10px; padding: 0 12px 12px;}body.emra-redesign .ers-categories {flex-basis: 31%; min-width: 140px; max-width: 200px;}
body.emra-redesign.emra-native-tv .ers-categories .settings-folder{min-height: 44px; padding: 11px 10px; gap: 9px; font-size: 14px;}
body.emra-redesign .ers-categories .settings-folder{min-height: 44px; padding: 11px 10px; gap: 9px; font-size: 14px;}body.emra-redesign .ers-categories .settings-folder__icon {width: 21px; height: 21px; flex-basis: 21px;}
body.emra-redesign.emra-native-tv .ers-pane .settings-param{min-height: 44px; font-size: 15px; column-gap: 10px; padding: 12px; margin: 0 4px 4px;}
body.emra-redesign .ers-pane .settings-param{min-height: 44px; font-size: 15px; column-gap: 10px; padding: 12px; margin: 0 4px 4px;}body.emra-redesign .ers-pane .settings-param__value {min-width: 0; max-width: 15em; overflow-wrap: anywhere;}body.emra-redesign .ers-pane .settings-param__descr {font-size: 12px; line-height: 1.45;}body.emra-redesign .selectbox__content {left: calc(var(--erd-rail) + 16px); right: 16px; top: 8vh; width: auto; max-width: none; max-height: 82vh;}body.emra-redesign .selectbox__body,
body.emra-redesign .selectbox__body>.scroll {max-height: calc(82vh - 88px);}
body.emra-redesign.emra-native-tv .selectbox-item{min-height: 44px; font-size: 16px; padding: 12px;}
body.emra-redesign .selectbox-item{min-height: 44px; font-size: 16px; padding: 12px;}body.emra-redesign .emra-source-picker .selectbox__content,
body.emra-redesign .emra-online-picker .selectbox__content {left: calc((100vw + var(--erd-rail)) / 2); right: auto; top: 50%; width: calc(100vw - var(--erd-rail) - 24px); max-width: 700px; height: min(640px,86vh) !important; transform: translate(-50%,-50%) !important;}body.emra-redesign .emra-source-picker .scroll__body {grid-template-columns: repeat(2,minmax(0,1fr));}
body.emra-redesign.emra-native-tv .emra-source-picker .selectbox-item{min-height: 76px;}
body.emra-redesign .emra-source-picker .selectbox-item{min-height: 76px;}body.emra-redesign .settings-input .settings-input__content {width: calc(100vw - var(--erd-rail) - 24px); max-width: none; margin-left: var(--erd-rail); max-height: calc(var(--err-viewport) - 24px); padding: 18px;}body.emra-redesign .ers-account-dialog .modal__content {width: calc(100vw - var(--erd-rail) - 28px); max-width: 680px;}body.emra-redesign .search-box>.scroll {max-width: calc(100vw - 24px); height: calc(var(--err-viewport) - 24px) !important; margin: 12px auto;}body.emra-redesign .pincode__container {max-width: calc(100vw - 24px); margin-top: 24px; padding: 20px;}body.emra-redesign .emra-online-screen .explorer__files-head {padding: 24px 20px 8px;}body.emra-redesign .emra-online-screen .explorer__files-body>.scroll>.scroll__content {padding: 16px 20px 28px;}body.emra-redesign .emra-online-screen .explorer-card__title {font-size: 1.5em; letter-spacing: .035em;}body.emra-redesign .emra-online-screen .torrent-filter {display: flex; flex-wrap: wrap; gap: 8px;}body.emra-redesign .emra-online-screen .torrent-filter .simple-button {min-height: 44px; margin: 0; display: flex; align-items: center; justify-content: center;}body.emra-redesign .emra-online-screen .torrent-filter .filter--sort {margin-left: 0;}body.emra-redesign .emra-online-screen .emra-online-grid {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px;}body.emra-redesign .erl-screen-heading {padding: 24px 22px 20px;}body.emra-redesign .erl-screen-heading h1,
body.emra-redesign .erl-tv-title {font-size: 30px;}body.emra-redesign .erl-station-grid {grid-template-columns: repeat(3,minmax(0,1fr)); padding: 8px 22px 24px; gap: 12px;}body.emra-redesign .erl-station-grid .lmeRadioRecord-item {min-height: 140px; padding: 16px 8px 12px;}body.emra-redesign .erl-tv-heading {padding: 24px 22px 16px;}body.emra-redesign .erl-tv-workspace {padding: 0 22px 20px; gap: 14px;}body.emra-redesign .erl-channel-grid {grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px;}body.emra-redesign .erl-has-epg .erl-channel-grid {grid-template-columns: repeat(2,minmax(0,1fr));}body.emra-redesign .erl-tv-workspace.erl-has-epg {grid-template-columns: minmax(0,1fr) 36%;}body.emra-redesign .erl-tv-workspace #my_iptv_epg {padding: 12px;}body.emra-redesign .erl-collections .items-line .erl-editorial-card {width: calc((100vw - var(--erd-rail) - 66px) / 2) !important; flex-basis: calc((100vw - var(--erd-rail) - 66px) / 2); margin-right: 14px;}body.emra-redesign .erl-collections .category-full.erl-editorial-grid {grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 22px 24px; gap: 14px;}body.emra-redesign .erl-editorial-card .card__view {height: 210px;}}
@media (max-width:600px) {body.emra-redesign:not(.emra-library-home) .wrap__content {margin-left: 0 !important; width: 100% !important; height: calc(var(--err-viewport) - var(--err-nav));}body.emra-redesign.emra-sections-open .wrap__left {width: min(320px,90vw) !important; padding-top: max(20px,env(safe-area-inset-top,0px)); height: var(--err-viewport);}body.emra-redesign .erc-detail-hero {min-height: 0; padding: 78px 20px 32px;}body.emra-redesign .erc-detail-hero .full-start-new__title,
body.emra-redesign .erc-detail-hero .full-start-new__title.twolines {font-size: 2.15em; letter-spacing: .01em; max-width: 100%;}body.emra-redesign .erc-detail-overview {font-size: 15px; line-height: 1.55;}body.emra-redesign .erc-detail-meta {font-size: 14px;}body.emra-redesign .erc-detail-no-backdrop .erc-detail-poster {display: none;}body.emra-redesign .erc-detail-no-backdrop .erc-detail-copy {max-width: 100%;}body.emra-redesign .erc-detail-page .items-line__head,
body.emra-redesign .erc-detail-page .full-descr {padding-left: 20px; padding-right: 20px;}body.emra-redesign .erc-catalog-hero {padding: 76px 20px 24px; min-height: 220px;}body.emra-redesign .erc-catalog-page .mapping--grid,
body.emra-redesign .erc-library-page .mapping--grid {padding-left: 12px; padding-right: 12px;}body.emra-redesign .erc-catalog-page .mapping--grid .card,
body.emra-redesign .erc-library-page .mapping--grid .card {width: 33.333333%; padding-left: 5px; padding-right: 5px;}body.emra-redesign .erc-library-header {padding: 76px 20px 24px;}body.emra-redesign .erc-library-header h1 {font-size: 32px;}
body.emra-redesign.emra-native-tv .erc-library-tab{font-size: 13px; padding: 10px;}body.emra-redesign .erc-library-hint {font-size: 12px;}body.emra-redesign .erc-search-body {padding-left: 14px; padding-right: 14px;}body.emra-redesign .erc-search-keyboard .simple-keyboard {font-size: 13px;}body.emra-redesign .ers-settings .settings__content {left: 8px; right: 8px; top: max(8px,env(safe-area-inset-top,0px)); height: calc(var(--err-viewport) - 16px) !important; max-height: calc(var(--err-viewport) - 16px); border-radius: 14px;}body.emra-redesign .ers-settings .settings__head {padding: 16px 14px 12px;}body.emra-redesign .ers-settings .settings__title {font-size: 23px;}body.emra-redesign .ers-layout {flex-direction: column; gap: 10px; padding: 0 10px 12px;}body.emra-redesign .ers-categories {flex: 0 0 148px; min-width: 0; max-width: none; width: 100%;}body.emra-redesign .ers-settings .settings__body.ers-pane {width: 100%;}
body.emra-redesign.emra-native-tv .ers-pane .settings-param{grid-template-columns: minmax(0,1fr); gap: 5px;}
body.emra-redesign .ers-pane .settings-param{grid-template-columns: minmax(0,1fr); gap: 5px;}body.emra-redesign .ers-pane .settings-param__value {text-align: left; font-size: 14px; max-width: 100%;}body.emra-redesign .ers-pane .settings-param__descr {grid-column: 1;}body.emra-redesign .selectbox__content {left: 12px; right: 12px; width: auto; top: 8vh; max-width: none;}body.emra-redesign .emra-source-picker .selectbox__content,
body.emra-redesign .emra-online-picker .selectbox__content {left: 50%; width: calc(100vw - 16px); max-width: none; height: min(640px,88vh) !important;}body.emra-redesign .emra-source-picker .selectbox__head,
body.emra-redesign .emra-online-picker .selectbox__head {padding: 18px 16px 12px;}body.emra-redesign .emra-source-picker .scroll__content {padding: 8px 14px 16px;}
body.emra-redesign.emra-native-tv .emra-source-picker .selectbox-item{padding: 12px 10px; gap: 8px; font-size: 15px;}
body.emra-redesign .emra-source-picker .selectbox-item{padding: 12px 10px; gap: 8px; font-size: 15px;}body.emra-redesign .emra-source-monogram {font-size: 18px;}body.emra-redesign .emra-picker-hint {padding: 10px 16px 14px; font-size: 12px; line-height: 1.4;}body.emra-redesign .settings-input .settings-input__content {width: calc(100vw - 16px); margin-left: 0; padding: 14px;}body.emra-redesign .settings-input .settings-input__title {font-size: 22px;}body.emra-redesign .settings-input .settings-input__input {font-size: 18px;}body.emra-redesign .modal__content {max-width: calc(100vw - 24px); padding: 18px;}body.emra-redesign .ers-account-dialog .modal__content {width: calc(100vw - 24px); max-width: calc(100vw - 24px);}body.emra-redesign .ers-account-dialog .account-modal-split {padding: 8px 0;}body.emra-redesign .emra-online-screen .explorer__files-head {padding: 76px 16px 10px;}body.emra-redesign .emra-online-screen .explorer-card {gap: 14px;}body.emra-redesign .emra-online-screen .explorer-card__head,
body.emra-redesign .emra-online-screen .explorer-card__head-left {width: 64px; flex-basis: 64px;}body.emra-redesign .emra-online-screen .explorer-card__head-img {width: 64px; height: 94px;}body.emra-redesign .emra-online-screen .explorer-card__title {font-size: 21px; line-height: 1.2; letter-spacing: .02em;}body.emra-redesign .emra-online-screen .explorer__files-body>.scroll>.scroll__content {padding: 14px 16px calc(24px + var(--err-nav));}body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__head {display: block;}body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__title {white-space: normal; font-size: 14px; line-height: 1.4;}body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__time {font-size: 12px; padding-left: 0; margin-top: 3px;}body.emra-redesign .erl-screen-heading {padding: 76px 20px 22px;}body.emra-redesign .erl-radio {height: calc(var(--err-viewport) - var(--err-nav)); padding-bottom: 92px;}body.emra-redesign .erl-radio>.scroll {height: calc(var(--err-viewport) - var(--err-nav) - 220px) !important; max-height: calc(var(--err-viewport) - var(--err-nav) - 220px);}body.emra-redesign .erl-station-grid {grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 18px 24px;}body.emra-redesign.emra-live-radio .erl-radio-dock {left: 12px; right: 12px; bottom: calc(var(--err-nav) + 10px); height: 72px; padding: 12px 16px; font-size: 15px; gap: 12px;}body.emra-redesign.emra-live-radio .erl-radio-dock .lmeRadioRecord-player__name {font-size: 16px;}body.emra-redesign .erl-tv {height: calc(var(--err-viewport) - var(--err-nav));}body.emra-redesign .erl-tv-heading {padding: 76px 18px 16px;}body.emra-redesign .erl-tv-heading .info__right {grid-column: 1; grid-row: 3; justify-self: start;}body.emra-redesign .erl-tv-workspace {padding: 0 16px 18px; height: calc(var(--err-viewport) - var(--err-nav) - 195px);}body.emra-redesign .erl-tv-workspace.erl-has-epg {grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(96px,1fr) minmax(100px,33%);}body.emra-redesign .erl-channel-grid,
body.emra-redesign .erl-has-epg .erl-channel-grid {grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px;}body.emra-redesign .erl-channel-grid>.card.card--collection {padding: 9px 6px !important;}body.emra-redesign .erl-channel-grid>.card .card__view {height: 64px !important;}body.emra-redesign .erl-channel-grid>.card .card__title {font-size: 12px;}body.emra-redesign .erl-tv-workspace #my_iptv_epg {height: 100%; max-height: 100%; align-self: stretch;}body.emra-redesign .erl-collections>.scroll {max-height: calc(var(--err-viewport) - var(--err-nav) - 130px);}body.emra-redesign .erl-collections .items-line .erl-editorial-card {width: calc(100vw - 42px) !important; flex-basis: calc(100vw - 42px); margin-right: 14px;}body.emra-redesign .erl-collections .category-full.erl-editorial-grid {grid-template-columns: minmax(0,1fr); padding: 8px 18px 24px;}body.emra-redesign .erl-editorial-card .card__view {height: 220px;}}
@media (max-height:500px) and (orientation:landscape) {body.emra-redesign .ers-settings .settings__content {top: 6px; height: calc(var(--err-viewport) - 12px) !important; max-height: calc(var(--err-viewport) - 12px);}body.emra-redesign .ers-settings .settings__head {padding: 12px 16px 8px;}body.emra-redesign .ers-settings .settings__title {font-size: 22px;}body.emra-redesign .ers-layout {flex-direction: row; gap: 10px;}body.emra-redesign .ers-categories {flex: 0 0 32%; max-width: 200px; min-width: 120px; width: auto;}
body.emra-redesign.emra-native-tv .ers-pane .settings-param{grid-template-columns: minmax(0,1fr);}
body.emra-redesign .ers-pane .settings-param{grid-template-columns: minmax(0,1fr);}body.emra-redesign .selectbox__content {top: 4vh; max-height: 92vh;}body.emra-redesign .selectbox__body,
body.emra-redesign .selectbox__body>.scroll {max-height: calc(92vh - 68px);}body.emra-redesign .emra-source-picker .selectbox__content,
body.emra-redesign .emra-online-picker .selectbox__content {height: 92vh !important; top: 50%; transform: translate(-50%,-50%) !important; left: calc((100vw + var(--erd-rail)) / 2); right: auto;}body.emra-redesign .emra-source-picker .selectbox__head,
body.emra-redesign .emra-online-picker .selectbox__head {padding: 12px 16px 8px;}body.emra-redesign .emra-picker-context {font-size: 13px; margin-top: 5px;}body.emra-redesign .emra-picker-hint {padding: 6px 16px 8px; font-size: 11px;}body.emra-redesign .erl-tv-heading {padding-top: 20px; padding-bottom: 10px;}body.emra-redesign .erl-tv-heading .info__right {grid-column: 2; grid-row: 1/3;}body.emra-redesign .erl-tv-workspace {height: calc(var(--err-viewport) - var(--err-nav) - 110px);}body.emra-redesign .erl-tv-workspace.erl-has-epg {grid-template-columns: minmax(0,1fr) 32%; grid-template-rows: minmax(0,1fr);}body.emra-redesign .erl-screen-heading {padding-top: 20px; padding-bottom: 16px;}body.emra-redesign .erl-radio>.scroll {height: calc(var(--err-viewport) - var(--err-nav) - 160px) !important; max-height: calc(var(--err-viewport) - var(--err-nav) - 160px);}body.emra-redesign .erl-station-grid .lmeRadioRecord-item {min-height: 120px; padding: 12px 8px;}}
@media (prefers-reduced-motion:reduce) {
body.emra-redesign.emra-native-tv .erc-library-tab{transition: none;}}

/* Phone/tablet geometry. Desktop and native TV retain their own layout. */
@media (max-width:1366px) {
body.emra-redesign:not(.emra-native-tv),
body.emra-redesign.emra-unslop-preview:not(.emra-native-tv){--emra-safe-top:max(env(safe-area-inset-top,0px),var(--emra-tg-top,0px));--emra-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--emra-tg-bottom,0px));}
 body.emra-redesign:not(.emra-native-tv) .navigation-bar{display:none!important;}
 body.emra-redesign:not(.emra-native-tv) .emra-fixed-wordmark{left:var(--nav-edge);top:calc(16px + var(--emra-safe-top));width:112px;height:28px;}
 body.emra-redesign:not(.emra-native-tv) .el-top-actions,body.emra-redesign:not(.emra-native-tv) .head__body>.head__actions{top:calc(12px + var(--emra-safe-top));right:max(14px,env(safe-area-inset-right,0px));}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero-copy{padding-top:var(--nav-header-inset);width:min(720px,85vw);padding-right:20px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-shelves{padding-right:var(--nav-content-end-inset);padding-bottom:var(--nav-clearance);}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-hero{height:auto;min-height:250px;display:flex;flex-direction:column;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-copy{padding:var(--nav-header-inset) 20px 14px var(--nav-content-inset);}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-copy h1{font-size:clamp(24px,3vw,34px);line-height:1.15;margin-bottom:8px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-filters{position:relative;left:auto;right:auto;bottom:auto;padding:0 20px 16px var(--nav-content-inset);flex-wrap:nowrap;gap:6px;margin-top:auto;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-hero,body.emra-redesign:not(.emra-native-tv) .erc-library-header,body.emra-redesign:not(.emra-native-tv) .erl-screen-heading,body.emra-redesign:not(.emra-native-tv) .erl-tv-heading{padding-top:var(--nav-header-inset);}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-hero{padding-top:var(--nav-header-inset);padding-left:var(--nav-content-inset);padding-right:20px;min-height:380px;}
 body.emra-redesign:not(.emra-native-tv) .erc-search-body{padding-top:var(--nav-header-inset);padding-left:var(--nav-content-inset);padding-right:16px;}
 body.emra-redesign:not(.emra-native-tv) .eac-panel{max-height:calc(100dvh - 32px - var(--emra-safe-top) - var(--emra-safe-bottom));overflow-y:auto;}
}
@media (max-width:600px){
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero{height:auto;min-height:390px;padding-bottom:24px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero-copy{width:100%;}
 body.emra-redesign:not(.emra-native-tv) .el-home h1{font-size:26px!important;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-hero{min-height:280px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-copy h1{font-size:25px;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page .mapping--grid .card,body.emra-redesign:not(.emra-native-tv) .erc-library-page .mapping--grid .card{width:50%;}
 body.emra-redesign:not(.emra-native-tv) .ers-layout{flex-direction:column;overflow-y:auto;}
 body.emra-redesign:not(.emra-native-tv) .ers-categories{display:flex;flex:0 0 auto;max-width:100%;width:100%;min-width:0;overflow-x:auto;}
body.emra-redesign:not(.emra-native-tv) .ers-categories .settings-folder{flex:0 0 auto;}
 body.emra-redesign:not(.emra-native-tv) .ers-pane{min-height:0;}
}
@media (max-width:1366px) and (max-height:540px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero{height:auto;min-height:260px;padding-bottom:20px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero-copy{width:75%;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-hero{min-height:210px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-copy{padding-bottom:8px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-copy p{-webkit-line-clamp:1;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-filters{padding-bottom:12px;}
}

@media(max-width:600px){body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid>.card{width:100%;}}
@media(max-width:1366px){
 body.emra-redesign:not(.emra-native-tv) .full-person{font-size:14px;width:min(280px,calc(100vw - 100px));padding-right:12px;}
 body.emra-redesign:not(.emra-native-tv) .full-person__photo{width:72px;height:72px;margin-right:12px;border-radius:12px;}
 body.emra-redesign:not(.emra-native-tv) .full-person__body{min-width:0;}
 body.emra-redesign:not(.emra-native-tv) .full-person__name{font-size:15px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;}
 body.emra-redesign:not(.emra-native-tv) .full-person__role{font-size:12px;line-height:1.35;margin-top:6px;white-space:normal;}
}

/* Landscape navigation has three explicit regions: logo, scrollable icons, profile.
   Narrow desktop windows use the same geometry; native TV stays unchanged. */
@media (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (orientation:landscape) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-fixed-wordmark{top:calc(18px + var(--emra-safe-top));width:88px;height:26px;}
 body.emra-redesign:not(.emra-native-tv) .el-top-actions,body.emra-redesign:not(.emra-native-tv) .head__body>.head__actions{top:calc(10px + var(--emra-safe-top));}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero-copy{width:min(720px,85vw);}
}

/* Portrait phone: a compact icon row frees the full page width for three posters.
   Horizontal overflow belongs to the row, never to the entire page. */
@media (max-width:600px) and (orientation:portrait){
 body.emra-redesign:not(.emra-native-tv) .el-home .el-scroll{top:var(--nav-header-inset);}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero{min-height:270px;height:auto;padding-bottom:24px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero-copy{padding:16px 16px 12px;width:100%;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-shelves{padding-left:var(--nav-content-inset);padding-right:var(--nav-content-end-inset);}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-row{gap:10px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-card:not(.el-card-wide){flex-basis:calc((100% - 20px) / 3);}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-card-wide{flex-basis:84%;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-card-title{font-size:12px!important;line-height:1.3!important;height:34px;padding:4px 0 0;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-card-wide .el-card-title{height:auto;padding:24px 10px 10px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-shelf{margin-bottom:20px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-shelf > .items-line__head{margin-bottom:10px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-actions{height:auto;gap:12px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-primary{min-width:132px;min-height:44px;font-size:15px!important;border-radius:24px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-plus{width:44px;height:44px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-plus svg{width:22px;height:22px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px;padding-left:16px;padding-right:16px;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page .mapping--grid .card,
 body.emra-redesign:not(.emra-native-tv) .erc-library-page .mapping--grid .card{width:33.333333%;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid>.card{width:100%;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .card__title{font-size:12px!important;line-height:1.3;height:36px;}
}

/* Mobile catalogues: the selected film preview must not reserve half the
   screen above a separately scrolling list. Full details live on the card. */
@media (max-width:600px), (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .erc-movie-copy,
 body.emra-redesign:not(.emra-native-tv) .erc-movie-art,
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-copy,
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-art{display:none;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-hero::after{content:none;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-hero{height:auto;min-height:0;padding:var(--nav-header-inset) 0 0;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-filters{position:relative;left:auto;right:auto;bottom:auto;margin:0;padding:0 16px 12px var(--nav-content-inset);}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-hero{height:var(--nav-header-inset);min-height:0;padding:0;}
}

/* One portrait-poster size in main shelves, search and recommendation rows.
   Episode stills and collection covers keep their own aspect ratios. */
@media (max-width:600px) and (orientation:portrait){
 body.emra-redesign:not(.emra-native-tv){--emra-mobile-poster-width:calc((100vw - 52px) / 3);}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-card:not(.el-card-wide){flex-basis:var(--emra-mobile-poster-width);}
 body.emra-redesign:not(.emra-native-tv) .items-line .scroll--horizontal .scroll__content{padding-left:0;padding-right:16px;}
 body.emra-redesign:not(.emra-native-tv) .items-line .mapping--line>.card:not(.card--wide):not(.card--collection){width:var(--emra-mobile-poster-width);min-width:0;flex:0 0 var(--emra-mobile-poster-width);}
 body.emra-redesign:not(.emra-native-tv) .items-line .mapping--line>.card:not(.card--wide):not(.card--collection)+.card{margin-left:10px;}
 body.emra-redesign:not(.emra-native-tv) .items-line .card:not(.card--wide):not(.card--collection) .card__view{padding-bottom:150%;margin-bottom:6px;}
 body.emra-redesign:not(.emra-native-tv) .items-line .card:not(.card--wide):not(.card--collection) .card__img{object-fit:contain;border-radius:8px;}
 body.emra-redesign:not(.emra-native-tv) .items-line .card:not(.card--wide):not(.card--collection) .card__title{font-size:12px!important;line-height:1.3!important;min-height:32px;max-height:32px;-webkit-line-clamp:2;}
}

/* A detail image belongs to its scrollable card, not the global catalogue scene. */
body.emra-redesign .erc-detail-art{display:none;}
@media (max-width:600px) and (orientation:portrait){
 body.emra-redesign:not(.emra-native-tv) .erc-detail-hero{display:block;min-height:0;padding:var(--nav-header-inset) 0 24px;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-art:not([hidden]){display:block;position:relative;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-stage{padding:20px 16px 0;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-copy{max-width:100%;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-page::after{content:none;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-head{padding:calc(var(--nav-header-inset) + 12px) 16px 12px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-controls{flex-direction:column;align-items:stretch;gap:12px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-season-tabs{flex:0 0 auto;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:3px 2px;scrollbar-width:none;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-season-tab{flex:0 0 auto;min-height:44px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions{margin-left:0;width:100%;flex-wrap:wrap;justify-content:flex-start;gap:8px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions .filter--sort,
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions .emra-online-voice{width:calc((100% - 8px) / 2);max-width:none;min-height:52px;font-size:14px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-grid{gap:18px 12px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__head-img{height:64px;aspect-ratio:1;}
}

/* Landscape Movies follows the approved Home poster density: six on wide
   phones/tablets, four at the same narrow breakpoint used by Home shelves. */
@media (min-width:601px) and (max-width:1366px) and (orientation:landscape) and (pointer:coarse), (min-width:601px) and (max-width:1000px) and (max-height:540px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv){--emra-landscape-poster-columns:6;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid{grid-template-columns:repeat(var(--emra-landscape-poster-columns),minmax(0,1fr));gap:16px 12px;padding-left:var(--nav-content-inset);padding-right:20px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid>.card{width:100%;min-width:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .card__title{font-size:12px!important;line-height:1.3;height:36px;padding:5px 0 0;}
}
@media (min-width:601px) and (max-width:850px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv){--emra-landscape-poster-columns:4;}
}

/* Touch navigation is readable without guessing icons or relying on hover. */
@media (max-width:600px), (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-head{padding-top:calc(var(--nav-header-inset) + 12px);}
}

/* Source tools are circular hit targets in either phone orientation. Their
   native callbacks and source/voice dropdowns remain the same controls. */
@media (max-width:600px), (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions{gap:8px;align-items:center;flex-wrap:wrap;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions>.simple-button:not(.filter--sort):not(.emra-online-voice){display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;margin:0;padding:10px;box-sizing:border-box;border-radius:50%;font-size:16px;line-height:1;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions>.simple-button:not(.filter--sort):not(.emra-online-voice)>svg{display:block;flex:0 0 22px;width:22px;height:22px;max-width:22px;max-height:22px;margin:0;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions .filter--sort{flex:0 1 112px;width:112px;max-width:112px;min-height:44px;height:44px;padding:6px 26px 6px 10px;font-size:14px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions .emra-online-voice{flex:1 1 132px;width:auto;max-width:210px;min-height:44px;height:44px;padding:6px 26px 6px 10px;font-size:14px;}
}

/* Give source results the actual remainder of the screen. Native pixel-height
   snapshots must not push them below a growing header after Telegram rotates. */
@media (max-width:600px), (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen{height:var(--err-viewport)!important;max-height:var(--err-viewport);overflow:hidden;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files{display:flex;flex-direction:column;height:100%;min-height:0;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-head{flex:0 0 auto;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-body{flex:1 1 0;min-height:0;overflow:hidden;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-body>.scroll{height:100%!important;max-height:100%;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-body>.scroll>.scroll__content{padding-bottom:calc(24px + var(--emra-safe-bottom));}
}
@media (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (orientation:landscape) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-head{padding:var(--nav-header-inset) max(16px,env(safe-area-inset-right,0px),var(--emra-tg-right,0px)) 6px var(--nav-content-inset);}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-identity{margin-bottom:8px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card{gap:12px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__head,
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__head-left{flex:0 0 40px;width:40px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__head-img{width:40px;height:40px;aspect-ratio:1;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__title{font-size:20px;line-height:24px;letter-spacing:0;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__genres{font-size:12px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-season-tabs{flex-wrap:nowrap;min-width:0;overflow-x:auto;touch-action:pan-x;pointer-events:auto;padding:3px 1px;scrollbar-width:none;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-season-tab{flex:0 0 auto;min-height:40px;padding:8px 14px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions{width:max-content;max-width:100%;min-width:0;margin:0;flex-wrap:nowrap;gap:8px;overflow-x:auto;touch-action:pan-x;pointer-events:auto;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions .filter--sort{flex:0 0 100px;width:100px;max-width:100px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions .emra-online-voice{flex:0 0 136px;width:136px;max-width:136px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer__files-body>.scroll>.scroll__content{padding-top:8px;padding-left:var(--nav-content-inset);padding-right:max(16px,env(safe-area-inset-right,0px),var(--emra-tg-right,0px));}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page .items-line__head{margin-bottom:10px;}
}
@media (max-width:740px) and (max-height:540px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-actions{width:max-content;max-width:calc(100vw - var(--nav-content-inset) - max(16px,env(safe-area-inset-right,0px),var(--emra-tg-right,0px)) - 90px);}
}

@media (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (orientation:landscape) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
 body.emra-redesign:not(.emra-native-tv) .el-top-actions,
 body.emra-redesign:not(.emra-native-tv) .head__body>.head__actions{right:max(14px,env(safe-area-inset-right,0px),var(--emra-tg-right,0px));}
}
@media (max-width:1000px) and (max-height:540px) and (orientation:landscape), (max-width:1366px) and (orientation:landscape) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__title{font-size:20px!important;line-height:24px!important;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__genres{margin:0;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__head-left{margin:0;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-card .online-prestige__body{padding:6px 0 0;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-card .online-prestige__title{font-size:14px;line-height:18px;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-card .online-prestige__time{font-size:12px;line-height:18px;}
}
@media (min-width:851px) and (max-width:1000px) and (max-height:540px) and (orientation:landscape), (min-width:851px) and (max-width:1366px) and (orientation:landscape) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:850px) and (max-height:540px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__head,
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .explorer-card__genres{display:none;}
 body.emra-redesign:not(.emra-native-tv) .emra-online-screen .emra-online-identity{margin-bottom:6px;}
}
/* Touch tablets in portrait use the same scrollable row, not a clipped column. */
@media (min-width:601px) and (max-width:1366px) and (orientation:portrait) and (pointer:coarse){
 body.emra-redesign:not(.emra-native-tv) .el-home .el-scroll{top:var(--nav-header-inset);}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-hero-copy{padding-top:20px;}
}

/* Portrait TV: category actions follow the TV/radio switch in a separate row. */
@media (max-width:600px) and (orientation:portrait){
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading{grid-template-columns:minmax(0,1fr);}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading>.erl-live-tabs{grid-column:1;grid-row:3;min-width:0;box-sizing:border-box;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading .info__right{grid-column:1;grid-row:4;justify-self:start;min-width:0;max-width:100%;}
body.emra-redesign:not(.emra-native-tv) .erl-tv-heading .view--category{box-sizing:border-box;max-width:100%;}
}

/* Compact phone header: identity, section and controls share one safe row. */
.erc-library-controls{display:contents;}
body.emra-redesign:not(.emra-native-tv) .erc-library-controls{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;}
@media (max-width:1024px) and (max-height:500px){
 body.emra-redesign:not(.emra-native-tv){--nav-header-inset:calc(48px + var(--emra-safe-top,0px));--nav-content-inset:calc(env(safe-area-inset-left,0px) + 8px);--nav-content-end-inset:calc(env(safe-area-inset-right,0px) + 8px);}
 body.emra-redesign:not(.emra-native-tv) .head{height:var(--nav-header-inset);min-height:0;}
 body.emra-redesign:not(.emra-native-tv) .emra-fixed-wordmark{top:calc(12px + var(--emra-safe-top,0px));height:22px;width:108px;left:calc(6px + env(safe-area-inset-left,0px));}
 body.emra-redesign:not(.emra-native-tv) .el-top-actions,body.emra-redesign:not(.emra-native-tv) .head__body>.head__actions{top:calc(2px + var(--emra-safe-top,0px));right:calc(6px + env(safe-area-inset-right,0px));}
 body.emra-redesign:not(.emra-native-tv) .head .open--profile{top:calc(2px + var(--emra-safe-top,0px));}
 body.emra-redesign:not(.emra-native-tv) .emra-section-title{left:calc(124px + env(safe-area-inset-left,0px));right:auto;width:112px;top:calc(14px + var(--emra-safe-top,0px));font-size:13px;line-height:20px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-hero{height:var(--nav-header-inset);min-height:0;padding:0;overflow:visible;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-filters{position:fixed;z-index:75;left:calc(248px + env(safe-area-inset-left,0px));right:calc(60px + env(safe-area-inset-right,0px));top:var(--emra-safe-top,0px);bottom:auto;height:48px;min-height:0;margin:0;padding:0;gap:6px;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-hero{height:var(--nav-header-inset);min-height:0;padding:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-library-header{height:var(--nav-header-inset);min-height:0;box-sizing:border-box;margin:0;padding:0;display:block;overflow:visible;}
 body.emra-redesign:not(.emra-native-tv) .erc-library-controls{display:flex;position:fixed;z-index:75;left:calc(248px + env(safe-area-inset-left,0px));right:calc(60px + env(safe-area-inset-right,0px));top:var(--emra-safe-top,0px);height:48px;align-items:center;justify-content:flex-start;gap:8px;overflow-x:auto;scrollbar-width:none;}
 body.emra-redesign:not(.emra-native-tv) .erc-library-header h1,body.emra-redesign:not(.emra-native-tv) .erc-library-hint{display:none;}

 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page>.scroll>.scroll__content,
 body.emra-redesign:not(.emra-native-tv) .erc-library-page>.scroll>.scroll__content{padding-top:8px;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page .items-line{padding-left:var(--nav-content-inset);padding-right:var(--nav-content-end-inset);}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page .scroll--horizontal>.scroll__content{padding-left:0;padding-right:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page .mapping--grid,
 body.emra-redesign:not(.emra-native-tv) .erc-library-page .mapping--grid,
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid{padding-left:var(--nav-content-inset);padding-right:var(--nav-content-end-inset);}
}

/* Browse lists stay clear to their edges in both orientations. */
body.emra-redesign.emra-browse-page:not(.emra-native-tv) .scroll--mask:not(.scroll--horizontal){mask-image:none;-webkit-mask-image:none;}
/* These custom catalogue pages own their viewport; native header subtraction must not shorten them. */
@media(max-width:1366px){
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page,
 body.emra-redesign:not(.emra-native-tv) .erc-library-page,
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue{height:100dvh;display:flex;flex-direction:column;min-height:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-hero,
 body.emra-redesign:not(.emra-native-tv) .erc-library-header,
 body.emra-redesign:not(.emra-native-tv) .erc-movie-hero{flex:0 0 auto;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page>.scroll,
 body.emra-redesign:not(.emra-native-tv) .erc-library-page>.scroll,
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue>.scroll{flex:1;min-height:0;height:0!important;}
}
/* Live/collection viewports reach the same bottom edge as Home; clearance is inside the scroller. */
body.emra-redesign:not(.emra-native-tv) .erl-tv{height:100dvh;}
body.emra-redesign:not(.emra-native-tv) .erl-tv-workspace{padding-bottom:0;}
body.emra-redesign:not(.emra-native-tv) .erl-collections{height:100dvh;display:flex;flex-direction:column;min-height:0;}
body.emra-redesign:not(.emra-native-tv) .erl-collections>.erl-screen-heading{flex:0 0 auto;}
body.emra-redesign:not(.emra-native-tv) .erl-collections>.scroll{flex:1;min-height:0;height:0!important;max-height:none;}
body.emra-redesign:not(.emra-native-tv) .erl-tv-workspace>.scroll>.scroll__content>.scroll__body,
body.emra-redesign:not(.emra-native-tv) .erl-collections>.scroll>.scroll__content>.scroll__body{padding-bottom:var(--nav-clearance);box-sizing:border-box;}
/* Portrait uses a compact identity row and a separate touch-friendly control row. */
@media(max-width:760px) and (orientation:portrait){
 body.emra-redesign:not(.emra-native-tv){--nav-header-inset:calc(56px + var(--emra-safe-top,0px));}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-hero{height:var(--nav-header-inset);min-height:0;padding:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-library-header{padding-top:var(--nav-header-inset);padding-bottom:8px;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page>.scroll>.scroll__content,
 body.emra-redesign:not(.emra-native-tv) .erc-library-page>.scroll>.scroll__content{padding-top:8px;}
 body.emra-redesign:not(.emra-native-tv) .erc-catalog-page .items-line{padding-bottom:24px;}
}

/* Keep the portrait movie filters close to the first poster row. */
@media (max-width:600px) and (orientation:portrait) {
 body.emra-redesign:not(.emra-native-tv) .erc-movie-filters {padding-bottom:8px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue>.scroll>.scroll__content {padding-top:11px;}
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid {padding-top:0;}
}

@media (max-width:600px) and (orientation:portrait), (orientation:landscape) {
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line__head .items-line__more {display:none;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line .card-more__box {
  display:grid;place-items:center;width:100%;height:auto!important;aspect-ratio:2/3;
  box-sizing:border-box;border:1px solid rgba(202,221,232,.17);border-radius:0;
  padding:0;background:#0c151b;color:#f7f8f8;
 }
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line .card-more__title {margin:0;padding:0;color:inherit;font-size:clamp(14px,1.4vw,21px);line-height:1.3;}
}

@media (max-width:600px) and (orientation:portrait) {
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line__head {margin-bottom:3px;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line .card:not(.card--wide):not(.card--collection) .card__title {height:auto;min-height:0;margin-bottom:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line .card__age {font-size:10px;line-height:1.3;margin-top:2px;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line .scroll--horizontal {padding-top:5px;padding-bottom:6px;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line {padding-bottom:6px;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-shelf {margin-bottom:12px;}
}

@media (max-width:600px) and (orientation:portrait) {
 body.emra-redesign:not(.emra-native-tv) .el-home .el-card:not(.el-card-wide) .el-card-title,
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid .card__title {height:auto;min-height:0;margin-bottom:0;}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-card:not(.el-card-wide) .el-card-year:not(:empty),
 body.emra-redesign:not(.emra-native-tv) .erc-movie-catalogue .mapping--grid .card__age:not(:empty) {
  display:block;color:#9faaB5;font-size:10px;line-height:1.3;margin-top:2px;
 }
}

/* Shelf titles use the available header width in landscape. */
@media (max-width:1024px) and (max-height:500px) and (orientation:landscape) {
 body.emra-redesign:not(.emra-native-tv):has(.activity--active.emra-expanded-shelf) .emra-section-title:not([hidden]){
  width:auto;right:calc(68px + max(env(safe-area-inset-right,0px),var(--emra-tg-right,0px)));
  font-size:11px!important;white-space:nowrap;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
 }
}

@media (orientation:landscape) {
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf {
  --emra-shelf-columns:var(--emra-landscape-poster-columns,6);
  --emra-shelf-column-gap:12px;
  --emra-shelf-start:var(--nav-content-inset,16px);
  --emra-shelf-end:var(--nav-content-end-inset,16px);
 }
}
@media (max-width:1000px) and (orientation:landscape) {
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf {--emra-shelf-columns:var(--emra-landscape-poster-columns,4);}
}
@media (max-width:600px) and (orientation:portrait), (orientation:landscape) {
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf :is(.mapping--grid,.category-full) {
  display:grid;grid-template-columns:repeat(var(--emra-shelf-columns,3),minmax(0,1fr));gap:16px var(--emra-shelf-column-gap,10px);
  padding:0 var(--emra-shelf-end,16px) var(--nav-clearance,30px) var(--emra-shelf-start,16px);margin:0;
 }
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf :is(.mapping--grid,.category-full)>.card {
  width:100%;min-width:0;margin:0;padding:0;
 }
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf .card__view {
  height:auto;padding-bottom:150%;margin-bottom:0;
 }
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf .card__img {object-fit:contain;}
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf .card__title {
  height:auto;min-height:0;margin-bottom:0;padding:5px 0 0;font-size:12px!important;line-height:1.3!important;
 }
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf .card__age:not(:empty) {
  display:block;color:#9faab5;font-size:10px;line-height:1.3;margin-top:2px;
 }
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf .erc-catalog-hero {min-height:0;}
 body.emra-redesign:not(.emra-native-tv) .emra-expanded-shelf .erc-movie-filters {display:none;}
}

.emra-poster-year {display:none;}
@media (max-width:600px) and (orientation:portrait), (orientation:landscape) {
 body.emra-redesign:not(.emra-native-tv) .emra-year-on-poster {display:none!important;}
 body.emra-redesign:not(.emra-native-tv) :is(.card__view,.el-card-art)>.emra-poster-year {
  position:absolute;display:block;right:1px;bottom:1px;z-index:3;
  padding:3px 5px;border-radius:4px;background:rgba(0,0,0,.72);color:#fff;
  font-size:10px;line-height:1;font-variant-numeric:tabular-nums;pointer-events:none;
 }
 body.emra-redesign:not(.emra-native-tv) :is(.card__view,.el-card-art)>:is(.card__vote,.el-card-rating,.card__type,.card__quality) {
  top:1px;bottom:auto;margin:0;box-sizing:border-box;min-height:20px;
  align-items:center;justify-content:center;
 }
 body.emra-redesign:not(.emra-native-tv) :is(.card__view,.el-card-art)>:is(.card__vote,.el-card-rating) {left:1px;}
 body.emra-redesign:not(.emra-native-tv) :is(.card__view,.el-card-art)>:is(.card__type,.card__quality) {
  display:inline-flex;right:1px;left:auto;padding:3px 5px;line-height:1;
 }
}

/* Square corners for poster art, including expanded shelves and detail pages. */
body.emra-redesign :is(
 .card:not(.card--collection):not(.card--channel):not(.erl-channel-grid > .card) :is(.card__view,.card__img),
 .el-card-art,.el-card-art > img,.full-start__img,.emra-picker-poster,
 .emra-online-card .online-prestige__img,.emra-online-card .online-prestige__img > img
),
body.emra-redesign .card:not(.card--collection):not(.card--channel):not(.erl-channel-grid > .card) .card__view::after {
 border-radius:0!important;
}
