/* Shared semantic type roles. Load after the screen styles. Geometry and paint
   remain owned by those screens. TV minima use logical CSS pixels, not screenshot pixels. */
body.emra-redesign {
  --emra-font-ui: -apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,"Segoe UI",sans-serif;
  --emra-type-u: min(calc(100vw / 1672),calc(100vh / 941));
  --emra-weight-normal: 400;
  --emra-weight-medium: 500;
  --emra-weight-strong: 600;
  --emra-type-hero-title: clamp(26px,calc(46 * var(--emra-type-u)),52px);
  --emra-type-page-title: clamp(26px,calc(42 * var(--emra-type-u)),46px);
  --emra-type-dialog-title: clamp(23px,calc(36 * var(--emra-type-u)),38px);
  --emra-type-section-title: clamp(18px,calc(28 * var(--emra-type-u)),30px);
  --emra-type-nav-label: clamp(11px,calc(20 * var(--emra-type-u)),22px);
  --emra-type-card-caption: clamp(11px,calc(18 * var(--emra-type-u)),20px);
  --emra-type-control-label: clamp(13px,calc(20 * var(--emra-type-u)),22px);
  --emra-type-body: clamp(13px,calc(22 * var(--emra-type-u)),24px);
  --emra-type-secondary: clamp(11px,calc(17 * var(--emra-type-u)),19px);
  --emra-type-caption: clamp(10px,calc(15 * var(--emra-type-u)),17px);
  /* Fixed-height hero copy retains the approved Home/Films metrics on the TV. */
  --emra-type-hero-summary: clamp(14px,calc(18 * var(--emra-type-u)),20px);
  --emra-type-hero-meta: clamp(13px,calc(18 * var(--emra-type-u)),20px);
  --emra-type-pairing-code: clamp(27px,calc(46 * var(--emra-type-u)),40px);
  font-family: var(--emra-font-ui) !important;
}
body.emra-redesign .el-home,
body.emra-redesign .erc-movie-catalogue,
body.emra-redesign .erl-screen-heading,
body.emra-redesign .ers-settings,
body.emra-redesign .selectbox,
body.emra-redesign .modal,
body.emra-redesign .erp-player,
body.emra-redesign .eac-overlay,
body.emra-redesign input,
body.emra-redesign textarea,
body.emra-redesign select,
body.emra-redesign button{
  font-family: var(--emra-font-ui) !important;
}

body.emra-redesign .el-home h1,
body.emra-redesign .erc-movie-copy h1,
body.emra-redesign .erc-catalog-copy h1,
body.emra-redesign .erc-detail-hero .full-start-new__title,
body.emra-redesign .erc-detail-hero .full-start-new__title.twolines,
body.emra-redesign .emra-online-screen .explorer-card__title {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-hero-title) !important;
  /* Match the approved Series heading, including long-title variants. */
  letter-spacing: -.025em !important;
  text-transform: none !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.12 !important;
}

body.emra-redesign .el-overview,
body.emra-redesign .erc-movie-overview,
body.emra-redesign .erc-catalog-overview,
body.emra-redesign .erc-detail-overview {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-hero-summary) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.27 !important;
}
body.emra-redesign .el-meta,
body.emra-redesign .erc-movie-meta,
body.emra-redesign .erc-catalog-meta,
body.emra-redesign .erc-detail-meta,
body.emra-redesign .erc-detail-meta .full-start-new__head,
body.emra-redesign .erc-detail-meta .full-start-new__details {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-hero-meta) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.5 !important;
}

body.emra-redesign .el-card-title,
body.emra-redesign .el-card-wide .el-card-title,
body.emra-redesign .erc-movie-catalogue .card__title,
body.emra-redesign .erc-catalog-page .card__title,
body.emra-redesign .erc-library-page .card__title,
body.emra-redesign .erc-search-main .card__title,
body.emra-redesign .ems-card span,
body.emra-redesign .erl-station-grid .lmeRadioRecord-item__name,
body.emra-redesign .erl-collection-copy>.card__title,
body.emra-redesign .erl-channel-grid>.card .card__title,
body.emra-redesign .emra-online-card .online-prestige__title {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-card-caption) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.25 !important;
}

body.emra-redesign .erc-library-header h1,
body.emra-redesign .erl-screen-heading h1,
body.emra-redesign .erl-tv-title,
body.emra-redesign .ers-settings.ers-composed .settings__title {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-page-title) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.15 !important;
}

body.emra-redesign .eac-header h2,
body.emra-redesign .selectbox__title,
body.emra-redesign .selectbox.ers-settings-picker .selectbox__title,
body.emra-redesign .erp-player-picker .selectbox__title,
body.emra-redesign .modal__title,
body.emra-redesign .settings-input .settings-input__title {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-dialog-title) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.2 !important;
}

body.emra-redesign .items-line__title,
body.emra-redesign .ems-recent h2,
body.emra-redesign .erc-search-recent h2,
body.emra-redesign .ers-section-heading,
body.emra-redesign .ers-pane .settings-param-title,
body.emra-redesign .erp-track-column h2 {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-section-title) !important;
  font-weight: var(--emra-weight-medium) !important;
  line-height: 1.25 !important;
}
body.emra-redesign .el-primary,
body.emra-redesign .el-save,
body.emra-redesign .el-retry,
body.emra-redesign.emra-native-tv .erc-movie-filter,
body.emra-redesign.emra-native-tv .erc-library-tab,
body.emra-redesign .erc-search-main .search-source,
body.emra-redesign .emra-season-tab,
body.emra-redesign .emra-online-actions .simple-button,
body.emra-redesign .emra-online-actions .filter--sort>div,
body.emra-redesign .emra-control-value,
body.emra-redesign .emra-picker-title,
body.emra-redesign .emra-source-picker .selectbox-item__title,
body.emra-redesign .selectbox-item,
body.emra-redesign .selectbox-item__title,
body.emra-redesign .ers-option,
body.emra-redesign .ers-categories .settings-folder,
body.emra-redesign .ers-categories .settings-folder__name,
body.emra-redesign .ers-pane .settings-param,
body.emra-redesign .ers-pane .settings-param__name,
body.emra-redesign .ers-pane .settings-param__value,
body.emra-redesign .full-start__button,
body.emra-redesign .full-start__button span,
body.emra-redesign .modal__button,
body.emra-redesign .eac-action:not(.eac-close),
body.emra-redesign .eac-bot,
body.emra-redesign .erp-control-label,
body.emra-redesign .erp-player .player-panel__quality{
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-control-label) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.25 !important;
}
body.emra-redesign .el-primary,
body.emra-redesign .full-start__button span {
  font-weight: var(--emra-weight-medium) !important;
}

body.emra-redesign .eac-note,
body.emra-redesign .ems-recent>p,
body.emra-redesign .empty__descr,
body.emra-redesign .full-descr__text,
body.emra-redesign .settings-param-text,
body.emra-redesign .settings-input__input {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-body) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.5 !important;
}
body.emra-redesign .erp-player .player-info__values,
body.emra-redesign .emra-online-card .online-prestige__footer,
body.emra-redesign .emra-control-label,
body.emra-redesign .emra-online-actions .filter--sort>span,
body.emra-redesign .erc-search-main .search-source__count {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-caption) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.4 !important;
}
body.emra-redesign .ers-pane .settings-param__descr,
body.emra-redesign .selectbox-item__subtitle,
body.emra-redesign .emra-picker-meta,
body.emra-redesign .emra-picker-hint,
body.emra-redesign .erc-library-hint,
body.emra-redesign .eac-hint,
body.emra-redesign .eac-status,
body.emra-redesign .erp-player .player-info__time,
body.emra-redesign .erp-timebar .player-panel__timenow,
body.emra-redesign .erp-timebar .player-panel__timeend {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-secondary) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.4 !important;
}
body.emra-redesign .eac-code {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-pairing-code) !important;
  font-weight: var(--emra-weight-medium) !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums;
}


/* Programme information must stay readable inside channel tiles. */
body.emra-redesign .erl-channel-grid>.card .card__title {font-size:var(--emra-type-control-label)!important;line-height:1.3;}
body.emra-redesign .erl-channel-grid>.card .card__age,
body.emra-redesign .erl-channel-grid>.card .card__epg-title {font-size:max(13px,var(--emra-type-secondary))!important;line-height:1.4;}

/* Content-type kickers share one role across Home, catalogue and detail.
   Their uppercase label is distinct from the natural-case media title. */
body.emra-redesign .el-eyebrow,
body.emra-redesign .erc-movie-kicker,
body.emra-redesign .erc-catalog-kicker,
body.emra-redesign .erc-detail-kicker {
  font-family: var(--emra-font-ui) !important;
  font-size: var(--emra-type-caption) !important;
  font-weight: var(--emra-weight-normal) !important;
  line-height: 1.25 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

@font-face{font-family:"EMRA Display";font-style:normal;font-weight:200 900;font-display:swap;src:url('./fonts/unbounded/cyrillic.woff2?v=1') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"EMRA Display";font-style:normal;font-weight:200 900;font-display:swap;src:url('./fonts/unbounded/latin.woff2?v=1') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
body.emra-redesign{--emra-font-display:"EMRA Display",var(--emra-font-ui);--emra-filter-text:12px;}
body.emra-redesign:not(.emra-native-tv) .emra-section-title{
 font-family:var(--emra-font-display)!important;font-size:13px!important;font-weight:300!important;letter-spacing:.07em;text-transform:uppercase;
}
body.emra-redesign:not(.emra-native-tv) .erc-library-header h1,
body.emra-redesign:not(.emra-native-tv) .erl-screen-heading h1,
body.emra-redesign:not(.emra-native-tv) .erl-tv-title,
body.emra-redesign:not(.emra-native-tv) .items-line__title,
body.emra-redesign:not(.emra-native-tv) .ems-recent h2,
body.emra-redesign:not(.emra-native-tv) .erc-search-recent h2{
 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) .erc-movie-filter,
body.emra-redesign:not(.emra-native-tv) .erc-library-tab{
 font-family:var(--emra-font-ui)!important;font-size:var(--emra-filter-text)!important;font-weight:400!important;line-height:1.2!important;
}
body.emra-redesign:not(.emra-native-tv) :is(.el-shelf,.erc-series-page) .items-line__title {color:var(--emra-text-primary);}
@media(max-width:760px){body.emra-redesign:not(.emra-native-tv){--emra-type-section-title:16px;}}
@media(max-width:1024px) and (max-height:500px){
 body.emra-redesign:not(.emra-native-tv){--emra-type-section-title:15px;--emra-filter-text:11.5px;}
 body.emra-redesign:not(.emra-native-tv) .emra-section-title{font-size:12px!important;letter-spacing:.055em;}
}

@media(max-width:359px) and (orientation:portrait){
 body.emra-redesign:not(.emra-native-tv){--emra-filter-text:11px;}
}
