/* One web interface material. Native TV retains its own control paint. */
body.emra-redesign:not(.emra-native-tv){
 --erd-rail:0px;--erd-open:0px;
 --emra-glass-floating:var(--emra-glass-background);--emra-glass-inset:#ffffff08;
 --emra-fill-control:#ffffff08;--emra-fill-hover:#ffffff14;--emra-fill-selected:#ffffff20;
 --emra-backdrop:var(--emra-glass-backdrop);--emra-radius-window:18px;
 --emra-shadow-panel:var(--emra-glass-shadow);--emra-line:#ffffff24;
 --emra-dialog-background:linear-gradient(155deg,#3d3e4a26,#25263030),rgba(2,8,13,.88);--emra-control-ink:#eeedf3;--emra-control-radius:18px;--emra-radius-control:18px;--emra-radius-inset:16px;
}
body.emra-redesign:not(.emra-native-tv) :is(.ers-pane .settings-param,.ers-option,.selectbox-item,.modal__button,.erc-detail-hero .full-start__button,.eac-button,.erc-search-keyboard-button){
 box-sizing:border-box;min-height:44px;border:var(--emra-glass-border);border-radius:var(--emra-control-radius);
 background:var(--emra-glass-background);box-shadow:var(--emra-glass-shadow);color:var(--emra-control-ink);
 backdrop-filter:var(--emra-glass-backdrop);-webkit-backdrop-filter:var(--emra-glass-backdrop);
 font-family:var(--emra-font-ui);font-size:13px;font-weight:400;text-shadow:0 1px 2px #000d;
 transition:background .18s ease,box-shadow .18s ease,transform .22s cubic-bezier(.2,1.3,.4,1);
}
body.emra-redesign:not(.emra-native-tv) :is(.ers-pane .settings-param.focus,.ers-option[aria-checked="true"],.selectbox-item.focus,.modal__button.focus,.erc-detail-hero .full-start__button.focus,.eac-button:focus-visible){
 background:linear-gradient(145deg,#ffffff27,#ffffff0c);color:#fff;border-color:#ffffff52;
 box-shadow:inset 0 1px 1px #ffffff4a,0 2px 8px #0002;transform:none;
}
body.emra-redesign:not(.emra-native-tv) :is(.erl-live-tab,.erl-collection-tab,.erl-tv-heading .view--category){
 font-size:var(--emra-filter-text);font-family:var(--emra-font-ui);
}
body.emra-redesign:not(.emra-native-tv) :is(.erl-live-tabs,.erl-collection-tabs){
 display:flex;align-items:center;gap:6px;width:max-content;max-width:100%;overflow-x:auto;
 margin:0;padding:0;border:0;border-radius:0;background:none;scrollbar-width:none;
}
body.emra-redesign:not(.emra-native-tv) .erl-collections>.erl-screen-heading{padding:var(--nav-header-inset) var(--nav-content-end-inset) 8px var(--nav-content-inset);}
body.emra-redesign:not(.emra-native-tv) .erl-collections>.erl-screen-heading h1{display:none;}
body.emra-redesign:not(.emra-native-tv) .erl-collections .category-full.erl-editorial-grid{grid-template-columns:repeat(auto-fit,minmax(min(156px,100%),1fr));gap:12px;padding:8px var(--nav-content-end-inset) 0 var(--nav-content-inset);}
body.emra-redesign:not(.emra-native-tv) .erl-editorial-card .card__view{height:156px;border-radius:14px;}
body.emra-redesign:not(.emra-native-tv) .erl-editorial-card .erl-collection-copy{padding:30px 10px 9px;}
body.emra-redesign:not(.emra-native-tv) .erl-collection-copy>.card__title{font-size:14px;line-height:1.25;margin-bottom:6px;}
body.emra-redesign:not(.emra-native-tv) .erl-collection-copy>.cub-collection-card__bottom{font-size:10px;gap:5px;}
body.emra-redesign:not(.emra-native-tv) .erl-editorial-card .cub-collection-card__head{font-size:10px;padding:9px;}
body.emra-redesign:not(.emra-native-tv) :is(.settings__title,.selectbox__title,.modal__title,.erc-search-label,.emra-downloads-shell h1){font-family:var(--emra-font-display)!important;font-weight:300!important;letter-spacing:.035em;}
body.emra-redesign:not(.emra-native-tv) .erc-detail-hero .full-start-new__title{font-family:var(--emra-font-display)!important;font-weight:300!important;letter-spacing:.035em!important;text-transform:none;}
body.emra-redesign:not(.emra-native-tv) :is(.ers-settings .settings__content,.selectbox__content,.modal__content,.settings-input__content){
 background:var(--emra-dialog-background);border:var(--emra-glass-border);border-radius:18px;
 box-shadow:var(--emra-glass-shadow);backdrop-filter:var(--emra-glass-backdrop);-webkit-backdrop-filter:var(--emra-glass-backdrop);
}
body.emra-redesign.settings--open:not(.emra-native-tv) .settings.ers-settings::before,body.emra-redesign.selectbox--open:not(.emra-native-tv) .selectbox::before,body.emra-redesign:not(.emra-native-tv) .modal::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(0,0,0,.62);pointer-events:none;}
body.emra-redesign:not(.emra-native-tv) :is(.ers-categories,.ers-pane,.selectbox__body)>.scroll{mask-image:none;-webkit-mask-image:none;}
body.emra-redesign:not(.emra-native-tv) .ers-pane .settings-param{border-radius:14px;padding:12px;margin-bottom:6px;}

body.emra-redesign:not(.emra-native-tv) .search{bottom:0;height:100dvh!important;}
body.emra-redesign:not(.emra-native-tv) .erc-search-editor{position:relative;width:100%;max-width:none;margin:0;padding:0 0 10px;box-sizing:border-box;}
body.emra-redesign:not(.emra-native-tv) .erc-search-field{width:100%;max-width:none;min-height:46px;padding:0 12px;box-sizing:border-box;border:var(--emra-glass-border);border-radius:24px;background:var(--emra-glass-background);box-shadow:var(--emra-glass-shadow);backdrop-filter:var(--emra-glass-backdrop);-webkit-backdrop-filter:var(--emra-glass-backdrop);}
body.emra-redesign:not(.emra-native-tv) .erc-search-field :is(.search__input,.simple-keyboard-input){background:transparent;color:#f3f5f7;font-size:16px;min-height:44px;}
body.emra-redesign:not(.emra-native-tv) :is(.search-source,.search-history-key,.simple-keyboard .hg-button){border:var(--emra-glass-border);border-radius:16px;background:var(--emra-glass-background);box-shadow:var(--emra-glass-shadow);color:#eeedf3;min-height:44px;}
body.emra-redesign:not(.emra-native-tv) :is(.search-source.focus,.search-history-key.focus,.simple-keyboard .hg-button.focus){background:linear-gradient(145deg,#ffffff27,#ffffff0c);color:#fff;}
body.emra-redesign:not(.emra-native-tv) .erc-search-main{padding-bottom:var(--nav-clearance);}
body.emra-redesign:not(.emra-native-tv) .erc-detail-hero .full-start-new__buttons .full-start__button{padding:10px 15px;border-radius:22px;}
body.emra-redesign:not(.emra-native-tv) .erc-detail-meta{gap:6px 10px;}
body.emra-redesign:not(.emra-native-tv) .erc-detail-page .full-descr{padding-bottom:var(--nav-clearance);}
body.emra-downloads-shell{--bg:#02080d;--text:#f3f5f7;--muted:#b2bec6;--gold:#c5c2d0;background:var(--bg);}
body.emra-downloads-shell :is(.primary,.secondary,.text-button,.panel,.movie,.network){border:var(--emra-glass-border);border-radius:18px;background:var(--emra-glass-background);box-shadow:var(--emra-glass-shadow);color:var(--text);backdrop-filter:var(--emra-glass-backdrop);-webkit-backdrop-filter:var(--emra-glass-backdrop);}
body.emra-downloads-shell :is(.primary,.secondary,.text-button){min-height:44px;border-radius:22px;}
body.emra-downloads-shell :is(h1,h2){font-family:var(--emra-font-display);font-weight:300;}
body.emra-downloads-shell h1{font-size:clamp(20px,4vw,30px);}
body.emra-downloads-shell .empty{border:var(--emra-glass-border);border-radius:18px;}
@media(max-width:760px) and (orientation:portrait){

 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding-bottom:8px;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading :is(.erl-tv-title,.info__left){display:none;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading>.erl-live-tabs{grid-column:1;grid-row:1;margin:0;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading .info__right{grid-column:2;grid-row:1;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-title{font-size:20px;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-hero{min-height:0;padding-bottom:20px;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-hero .full-start-new__title{font-size:24px;max-width:100%;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-copy{max-width:100%;}
}
@media(max-width:1024px) and (max-height:500px){
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading{height:var(--nav-header-inset);padding:0;display:block;position:relative;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-title{display:none;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading .info__left{display:none;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading>.erl-live-tabs{position:absolute;left:calc(248px + env(safe-area-inset-left,0px));right:calc(190px + env(safe-area-inset-right,0px));top:0;height:48px;width:auto;margin:0;}
 body.emra-redesign:not(.emra-native-tv) .erl-tv-heading .info__right{position:absolute;right:calc(60px + env(safe-area-inset-right,0px));top:2px;width:auto;}
 body.emra-redesign:not(.emra-native-tv) .erl-collections>.erl-screen-heading{height:var(--nav-header-inset);padding:0;position:relative;}
 body.emra-redesign:not(.emra-native-tv) .erl-collection-tabs{position:absolute;left:calc(248px + env(safe-area-inset-left,0px));right:calc(60px + env(safe-area-inset-right,0px));top:0;width:auto;height:48px;}
 body.emra-redesign:not(.emra-native-tv) .erl-editorial-card .card__view{height:130px;}
 body.emra-redesign:not(.emra-native-tv) .erl-collections .category-full.erl-editorial-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}

 body.emra-redesign:not(.emra-native-tv) .erc-detail-hero{min-height:0;padding-top:var(--nav-header-inset);padding-bottom:16px;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-hero .full-start-new__title{font-size:24px;}
 body.emra-redesign:not(.emra-native-tv) .erc-detail-overview{-webkit-line-clamp:2;margin-bottom:12px;}
}
@media(prefers-reduced-motion:reduce){body.emra-redesign:not(.emra-native-tv) :is(.settings-param,.settings-folder,.selectbox-item,.modal__button,.full-start__button,.erl-live-tab,.erl-collection-tab){transition:none;}}

body.emra-redesign:not(.emra-native-tv) .erl-collections>.scroll>.scroll__content{padding-top:8px;}
/* The search editor uses the same header rhythm instead of a second centered hero. */

body.emra-redesign:not(.emra-native-tv) .erc-search-label{font-size:14px;margin:0 0 8px;line-height:20px;}

body.emra-redesign:not(.emra-native-tv) .erc-search-keyboard-button{position:absolute;right:0;top:28px;width:44px;height:44px;padding:10px;}
@media(max-width:1024px) and (max-height:500px){
 body.emra-redesign:not(.emra-native-tv) .erc-search-body{padding-top:calc(56px + var(--emra-safe-top,0px));}
 body.emra-redesign:not(.emra-native-tv) .erc-search-editor{position:fixed;left:calc(248px + env(safe-area-inset-left,0px));right:calc(60px + env(safe-area-inset-right,0px));top:calc(2px + var(--emra-safe-top,0px));height:44px;width:auto;padding:0;z-index:72;}
 body.emra-redesign:not(.emra-native-tv) .erc-search-label{position:fixed;left:calc(124px + env(safe-area-inset-left,0px));top:calc(14px + var(--emra-safe-top,0px));width:112px;margin:0;font-size:12px;}
 body.emra-redesign:not(.emra-native-tv) .erc-search-keyboard-button{top:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-search-field{min-height:44px;height:44px;}
 body.emra-redesign:not(.emra-native-tv) .erc-search-field .simple-keyboard-input{min-height:40px;height:40px;}
}

body.emra-redesign:not(.emra-native-tv) .ers-settings .settings__head .settings__title,
body.emra-redesign:not(.emra-native-tv) .selectbox .selectbox__title,
body.emra-redesign:not(.emra-native-tv) .modal .modal__title{font-family:var(--emra-font-display)!important;font-weight:300!important;letter-spacing:.035em;}

@media(max-width:1024px) and (max-height:500px){
 body.emra-redesign:not(.emra-native-tv){--emra-shelf-heading-gap:10px;}
 body.emra-redesign.emra-library-home:not(.emra-native-tv) .el-home .el-shelf > .items-line__head{margin-bottom:var(--emra-shelf-heading-gap);}
}
@media(max-width:1024px) and (max-height:500px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv){--emra-shelf-y-unit:calc(100vh / 941);--emra-shelf-row-gap:calc(20 * var(--emra-shelf-y-unit));}
 body.emra-redesign:not(.emra-native-tv) .el-home .el-shelf{margin-bottom:var(--emra-shelf-row-gap);}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line{padding-bottom:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line > .items-line__head{margin-bottom:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line > .items-line__body > .scroll--horizontal{
  padding-top:var(--emra-shelf-heading-gap);
  padding-bottom:var(--emra-shelf-row-gap);
 }
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line .card:not(.card--wide):not(.card--collection) > .card__view{margin-bottom:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-series-page .items-line .card:not(.card--wide):not(.card--collection) > .card__title{
  height:calc(54 * var(--emra-shelf-y-unit));
  max-height:none;
  padding-block:calc(4 * var(--emra-shelf-y-unit)) 0;
 }
}
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv){--emra-shelf-y-unit:calc(100vh / 720);}
}
@media(max-width:600px) and (max-height:500px) and (orientation:landscape){
 body.emra-redesign:not(.emra-native-tv){--emra-shelf-y-unit:calc(100vh / 900);}
}

/* Settings index and parameter page are distinct screens in the same native shell. */
body.emra-redesign:not(.emra-native-tv) .settings.ers-settings .settings__content{
 left:calc(8px + env(safe-area-inset-left,0px));right:calc(8px + env(safe-area-inset-right,0px));top:calc(8px + env(safe-area-inset-top,0px));
 width:auto;max-width:none;height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
 max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
}
body.emra-redesign:not(.emra-native-tv) .ers-settings .ers-layout{flex-direction:column;overflow:hidden;gap:0;}
body.emra-redesign:not(.emra-native-tv) .ers-settings [hidden]{display:none!important;}
body.emra-redesign:not(.emra-native-tv) .ers-settings .ers-categories{display:block;flex:1;width:100%;min-width:0;max-width:none;min-height:0;border:0;overflow:hidden;}
body.emra-redesign:not(.emra-native-tv) .ers-categories>.scroll{height:100%!important;max-height:100%;width:100%;}
body.emra-redesign:not(.emra-native-tv) .ers-categories .settings-folder{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;max-width:none;min-height:52px;height:auto;padding:10px 14px!important;margin:0 0 4px!important;}
body.emra-redesign:not(.emra-native-tv) .ers-categories .settings-folder__name{display:block;flex:1;font-size:14px;line-height:1.3;white-space:normal;}
body.emra-redesign:not(.emra-native-tv) .ers-categories .settings-folder__icon{display:block;width:20px;height:20px;flex:0 0 20px;margin:0;}
body.emra-redesign:not(.emra-native-tv) .ers-categories .settings-folder[data-component="account"]{display:none!important;}
body.emra-redesign:not(.emra-native-tv) .ers-category-arrow{font-size:23px;opacity:.65;line-height:1;}
body.emra-redesign:not(.emra-native-tv) .ers-settings .settings__head{position:relative;min-height:56px;padding-left:60px;}
body.emra-redesign:not(.emra-native-tv) .ers-settings.ers-settings-index .settings__head{padding-left:20px;}
body.emra-redesign:not(.emra-native-tv) .ers-settings .settings__title{font-size:20px;line-height:1.25;}
body.emra-redesign:not(.emra-native-tv) .ers-back{position:absolute;left:8px;top:8px;width:44px;height:44px;padding:11px;border:var(--emra-glass-border);border-radius:20px;background:var(--emra-glass-background);color:#f3f5f7;cursor:pointer;}
body.emra-redesign:not(.emra-native-tv) .ers-back svg{display:block;width:20px;height:20px;}
body.emra-redesign:not(.emra-native-tv) .ers-settings-index .ers-back{display:none;}

/* Web search has one identity title and one query field; history stays private in the native model. */
body.emra-redesign:not(.emra-native-tv) .erc-search-keyboard-button,
body.emra-redesign:not(.emra-native-tv) .erc-search-recent{display:none!important;}
body.emra-redesign:not(.emra-native-tv) .erc-search-editor{padding-right:0;}
body.emra-redesign:not(.emra-native-tv) .erc-search-editor .erc-search-label{font-family:var(--emra-font-display)!important;font-weight:300!important;letter-spacing:.055em;}
body.emra-redesign:not(.emra-native-tv) .erc-search-workspace{display:block;min-width:0;}
body.emra-redesign:not(.emra-native-tv) .erc-search-main{width:100%;min-width:0;}
@media(max-width:1024px) and (max-height:500px){
 body.emra-redesign:not(.emra-native-tv) .erc-search-editor{padding:0;}
 body.emra-redesign:not(.emra-native-tv) .erc-search-editor .erc-search-label{font-size:12px!important;text-transform:uppercase;}
}
