/* Player layout lives only in redesign-player.css. Other rules preserved. */
body.emra-redesign .emra-source-picker .selectbox__content,
body.emra-redesign .emra-online-picker .selectbox__content {left: calc((100vw + var(--erd-rail,16.4vw)) / 2); top: 50%; bottom: auto; right: auto; width: min(42em, 73vw); height: min(36em, 79vh) !important; max-height: 79vh; transform: translate(-50%, -50%) !important; border: 1px solid var(--ers-rim,rgba(229,239,255,.23)); border-radius: var(--emra-radius-panel,1.2em); background: var(--emra-glass-panel,rgba(25,34,42,.88)); color: var(--emra-ink,#f5f6f8); box-shadow: var(--emra-shadow-panel,0 1.8em 6em rgba(0,0,0,.46)); -webkit-backdrop-filter: blur(30px) saturate(1.12); backdrop-filter: blur(30px) saturate(1.12); overflow: hidden; transition: opacity .2s;}
body.emra-redesign .emra-source-picker .selectbox__layer,
body.emra-redesign .emra-online-picker .selectbox__layer {background: rgba(3,7,11,.46);}
body.emra-redesign .emra-source-picker .selectbox__head,
body.emra-redesign .emra-online-picker .selectbox__head {padding: 1.5em 1.55em .7em;}
body.emra-redesign .emra-source-picker .selectbox__title,
body.emra-redesign .emra-online-picker .selectbox__title {font-size: 1.5em; font-weight: 500; letter-spacing: -.025em;}
body.emra-redesign .emra-picker-context {display: flex; align-items: center; gap: .85em; font-size: 1em; margin-top: 1em; line-height: 1.35;}
body.emra-redesign .emra-picker-poster {flex: 0 0 4.6em; width: 4.6em; height: 3.3em; object-fit: cover; object-position: center 25%; border-radius: .35em;}
body.emra-redesign .emra-picker-identity {flex: 1; min-width: 0;}
body.emra-redesign .emra-picker-title {color: var(--emra-ink,#f5f6f8); font-size: 1.05em; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
body.emra-redesign .emra-picker-meta {color: var(--emra-muted,#aeb5ba); font-size: .78em; margin-top: .25em;}
body.emra-redesign .emra-picker-scene {position: absolute; inset: 0; overflow: hidden; pointer-events: none;}
body.emra-redesign .emra-picker-scene img {width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .55;}
body.emra-redesign .emra-picker-scene:after {content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,var(--erd-bg,#090c10),transparent 70%),linear-gradient(0deg,var(--erd-bg,#090c10),transparent 80%);}
body.emra-redesign .emra-picker-hint {flex: 0 0 auto; padding: .85em 1.6em 1.2em; font-size: .78em; color: var(--emra-muted,#aeb5ba);}
body.emra-redesign .emra-source-picker .selectbox__body,
body.emra-redesign .emra-online-picker .selectbox__body {height: auto !important; min-height: 0; max-height: none !important; flex: 1 1 auto;}
body.emra-redesign .emra-source-picker .selectbox__body > .scroll,
body.emra-redesign .emra-online-picker .selectbox__body > .scroll {min-height: 0; height: 100%;}
body.emra-redesign .emra-source-picker .scroll__content {padding: .55em 1.55em 1em;}
body.emra-redesign .emra-source-picker .scroll__body {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65em;}
body.emra-redesign .emra-source-picker .selectbox-item {display: flex; align-items: center; gap: .65em; min-width: 0; min-height: 3.6em; padding: .75em .85em; margin: 0; border: 1px solid var(--emra-line,rgba(255,255,255,.1)); border-radius: var(--emra-radius-card,.7em); background: var(--emra-glass-card,rgba(255,255,255,.035)); color: var(--emra-ink,#f4f6f8);}
body.emra-redesign .emra-source-picker .selectbox-item__title {font-size: .97em; line-height: 1.3; overflow-wrap: anywhere;}
body.emra-redesign .emra-source-picker .selectbox-item__subtitle {font-size: .75em;}
body.emra-redesign .emra-source-picker .selectbox-item.selected:not(.nomark),
body.emra-redesign .emra-source-picker .selectbox-item.picked {padding-right: 1.9em;}
body.emra-redesign .emra-source-picker .selectbox-item.selected:not(.nomark):after,
body.emra-redesign .emra-source-picker .selectbox-item.picked:after {right: .65em; width: .45em; height: .75em; top: 1em;}
body.emra-redesign .emra-source-picker .selectbox-item.focus,
body.emra-redesign .emra-source-picker .selectbox-item.hover {background: var(--emra-glass-card,rgba(220,234,246,.13)); border-color: var(--emra-ink,#edf5fc); box-shadow: var(--emra-focus-ring,0 0 0 1px #edf5fc); color: var(--emra-ink,#fff);}
body.emra-redesign .emra-online-picker .selectbox__content {width: min(32em, 64vw); height: min(30em,68vh) !important;}
body.emra-redesign .emra-online-picker .scroll__content {padding: .3em .85em 1em;}
body.emra-redesign .emra-online-picker .selectbox-item {margin: .2em 0; padding: .85em 1em; border-radius: .6em; min-height: 2.9em;}
body.emra-redesign .emra-online-screen {display: block; width: 100% !important;}
body.emra-redesign .emra-online-screen .explorer__left {display: none;}
body.emra-redesign .emra-online-screen .explorer__files {width: 100%;}
body.emra-redesign .emra-online-screen .explorer__files-head {padding: 3.5vh 3.5% .35em;}
body.emra-redesign .emra-online-screen .emra-online-identity {padding: 0; margin-bottom: 1.15em;}
body.emra-redesign .emra-online-screen .explorer-card {display: flex; align-items: center; gap: 3.5%; min-height: 0;}
body.emra-redesign .emra-online-screen .explorer-card__head {display: block; flex: 0 0 12%; width: 12%; margin: 0;}
body.emra-redesign .emra-online-screen .explorer-card__head-left {width: 100%;}
body.emra-redesign .emra-online-screen .explorer-card__head-img {width: 100%; height: auto; aspect-ratio: 1; padding: 0; border-radius: .55em; overflow: hidden;}
body.emra-redesign .emra-online-screen .explorer-card__head-img img {width: 100%; height: 100%; object-fit: cover;}
body.emra-redesign .emra-online-screen .explorer-card__head-body,
body.emra-redesign .emra-online-screen .explorer-card__descr {display: none;}
body.emra-redesign .emra-online-screen .explorer-card__body {flex: 1; min-width: 0; padding: 0;}
body.emra-redesign .emra-online-screen .explorer-card__title {font-size: clamp(1.25em,2.35vw,2.35em); font-weight: 400; line-height: 1.18; letter-spacing: .16em; text-transform: uppercase; max-width: 23em; margin-bottom: .35em;}
body.emra-redesign .emra-online-screen .explorer-card__genres {color: #aeb8c5; font-size: .9em; line-height: 1.4;}
body.emra-redesign .emra-online-screen .torrent-filter {padding: 0; margin: 0;}
body.emra-redesign .emra-online-screen .torrent-filter .simple-button {font-size: .92em; padding: .65em 1.05em; border-radius: 1.5em; border: 1px solid rgba(255,255,255,.15); background: rgba(26,36,46,.65);}
body.emra-redesign .emra-online-screen .torrent-filter .simple-button.focus {color: #171c22; background: #f7f8fa; border-color: #fff;}
body.emra-redesign .emra-online-screen .torrent-filter .filter--sort {margin-left: auto;}
body.emra-redesign .emra-online-screen .emra-online-filter {width: 100%;}
body.emra-redesign .emra-online-screen .emra-online-filter > .scroll__content {overflow: visible;}
body.emra-redesign .emra-online-screen .emra-online-filter .scroll__body {width: 100%;}
body.emra-redesign .emra-online-screen .emra-online-controls {display: flex; align-items: center; gap: 1em; width: 100%; white-space: normal;}
body.emra-redesign .emra-online-screen .emra-season-tabs {display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: .3em; min-width: 0;}
body.emra-redesign .emra-online-screen .emra-season-tabs[hidden] {display: none;}
body.emra-redesign .emra-online-screen .emra-online-controls .emra-season-tab {margin: 0; padding: .65em 1.25em; font-size: .84em; line-height: 1.2; white-space: nowrap;}
body.emra-redesign .emra-online-screen .emra-online-controls .emra-season-tab[aria-selected="true"] {background: var(--emra-fill-primary,var(--emra-ink,#f5f6f8)); color: var(--emra-text-on-light,var(--emra-canvas,#090c10)); border-color: var(--emra-fill-primary,var(--emra-ink,#f5f6f8));}
body.emra-redesign .emra-online-screen .emra-online-actions {display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: .55em; margin-left: auto; min-width: 0;}
body.emra-redesign .emra-online-screen .emra-online-actions .simple-button {margin: 0; min-width: 0; font-size: .8em; line-height: 1.15;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--sort,
body.emra-redesign .emra-online-screen .emra-online-actions .emra-online-voice {display: flex; flex-direction: column; align-items: flex-start; width: 9.2em; max-width: 15vw; height: auto; min-height: 3.4em; padding: .65em 1.9em .65em .85em; border-radius: var(--emra-radius-control,.8em); position: relative;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--sort:before,
body.emra-redesign .emra-online-screen .emra-online-actions .emra-online-voice:before {content: ''; position: absolute; right: .8em; top: 43%; width: .4em; height: .4em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--sort > span,
body.emra-redesign .emra-online-screen .emra-control-label {font-size: .72em; margin: 0 0 .15em; color: var(--emra-muted,#aeb5ba);}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--sort > div,
body.emra-redesign .emra-online-screen .emra-control-value {font-size: .95em; flex-shrink: 0; margin: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--filter {width: 2.5em; height: 2.5em; padding: 0; border-radius: 50%; font-size: .9em; justify-content: center;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--filter > span {font-size: 0;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--filter > span:after {content: '···'; font-size: 1.25rem;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--filter > div,
body.emra-redesign .emra-online-screen .emra-online-actions .filter--search > div {display: none;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--search {width: 2.5em; height: 2.5em; padding: .6em; border-radius: 50%;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--search svg {width: 100%; height: 100%; margin: 0;}
body.emra-redesign .emra-online-screen .emra-online-actions .filter--sort.hide {display: none;}
body.emra-redesign .emra-online-screen .explorer__files-body > .scroll > .scroll__content {padding: 1.1em 3.5% 2.4em;}
body.emra-redesign .emra-online-screen .emra-online-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.4em 1.2em; align-items: start;}
body.emra-redesign .emra-online-grid > :not(.emra-online-card) {grid-column: 1/-1;}
body.emra-redesign .emra-online-screen .online-prestige-watched {order: 1; justify-self: start; display: inline-flex; align-items: center; max-width: 100%; padding: .4em .55em; margin: 0; border: 0; border-radius: .5em; background: transparent; font-size: .78em; color: var(--emra-muted,#aeb5ba);}
body.emra-redesign .emra-online-screen .online-prestige-watched__icon {width: 1em; height: 1em; flex: 0 0 1em;}
body.emra-redesign .emra-online-screen .online-prestige-watched__icon > svg {width: 1em; height: 1em;}
body.emra-redesign .emra-online-screen .online-prestige-watched__body {padding: 0 0 0 .5em; line-height: 1.4;}
body.emra-redesign .emra-online-screen .online-prestige-watched.focus {color: var(--emra-ink,#f5f6f8); box-shadow: var(--emra-focus-ring,0 0 0 1px #edf5fc);}
body.emra-redesign .emra-online-screen .online-prestige-watched.focus:after {display: none;}
body.emra-redesign .emra-online-screen .emra-online-card {display: flex; flex-direction: column; min-width: 0; margin: 0; border-radius: .65em; background: transparent; border: 1px solid transparent; overflow: visible;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__img {width: 100%; min-height: 0; height: 0; padding-bottom: 56.25%; flex-shrink: 0; overflow: hidden; border-radius: .65em; background: rgba(130,151,173,.1);}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__img > img {border-radius: .65em;}
body.emra-redesign .emra-online-screen .emra-online-card--no-image .online-prestige__img > img {display: none;}
body.emra-redesign .emra-online-screen .emra-online-card--no-image .online-prestige__img:before {content: 'Нет кадра'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8em; color: var(--emra-muted,#aeb5ba);}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__episode-number {position: absolute; left: .7em; bottom: .7em; top: auto; right: auto; width: auto; height: auto; font-size: .8em; line-height: 1; font-weight: 500;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__body {padding: .65em .15em .15em; min-width: 0;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__head {display: flex; gap: .5em; align-items: baseline;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__title {font-size: .98em; line-height: 1.4; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__time {font-size: .78em; flex-shrink: 0; color: #aeb6c1; padding-left: .3em;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__footer {justify-content: flex-start; font-size: .75em; margin-top: .25em; color: var(--emra-muted,#aeb5ba);}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__quality {font-size: .88em; padding-left: 0;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__info {display: none;}
body.emra-redesign .emra-online-screen .emra-online-card .online-prestige__timeline {position: absolute; left: .65em; right: .65em; top: -1.3em; margin: 0;}
/* The image owns the selection frame. Clear native whole-card focus paint,
   including the --full template before async decoration adds emra-online-card.
   Keep a transparent border (same geometry), and leave history/retry controls alone. */
body.emra-redesign .emra-online-screen .online-prestige--full.focus,
body.emra-redesign .emra-online-screen .online-prestige--full.hover,
body.emra-redesign .emra-online-screen .emra-online-card.focus,
body.emra-redesign .emra-online-screen .emra-online-card.hover {background: transparent!important; border-color: transparent!important; outline: none!important; color: white; box-shadow: none!important;}
body.emra-redesign .emra-online-screen .online-prestige--full.focus .online-prestige__img,
body.emra-redesign .emra-online-screen .online-prestige--full.hover .online-prestige__img,
body.emra-redesign .emra-online-screen .emra-online-card.focus .online-prestige__img,
body.emra-redesign .emra-online-screen .emra-online-card.hover .online-prestige__img {box-shadow: 0 0 0 2px #f5f8fc,0 .4em 1.2em rgba(0,0,0,.3);}
body.emra-redesign .emra-online-screen .online-prestige--full:after,
body.emra-redesign .emra-online-screen .emra-online-card:after {display: none!important; content: none!important;}
@media (max-width: 900px) {body.emra-redesign .emra-online-screen .emra-online-controls {align-items: flex-start; flex-wrap: wrap; gap: .65em;}body.emra-redesign .emra-online-screen .emra-season-tabs {flex-basis: 100%;}body.emra-redesign .emra-online-screen .emra-online-actions {width: 100%; justify-content: flex-start; margin: 0;}body.emra-redesign .emra-online-screen .emra-online-actions .filter--sort,
body.emra-redesign .emra-online-screen .emra-online-actions .emra-online-voice {max-width: 34vw; width: 11em;}body.emra-redesign .emra-online-screen .emra-online-grid {grid-template-columns: repeat(2,minmax(0,1fr));}body.emra-redesign .emra-source-picker .scroll__body {grid-template-columns: repeat(2,minmax(0,1fr));}}
@media (max-width: 580px) {body.emra-redesign .emra-source-picker .selectbox__content,
body.emra-redesign .emra-online-picker .selectbox__content {left: 50%; width: 94vw; height: 80vh !important;}body.emra-redesign .emra-online-screen .explorer__files-head {padding: .7em .8em .3em;}body.emra-redesign .emra-online-screen .explorer__files-body > .scroll > .scroll__content {padding: .8em .8em 2em;}body.emra-redesign .emra-online-screen .explorer-card__title {font-size: 1.25em; letter-spacing: .035em;}body.emra-redesign .emra-online-screen .emra-online-grid {gap: 1em .7em;}}
@media (prefers-reduced-motion: reduce) {body.emra-redesign .emra-source-picker .selectbox__content,
body.emra-redesign .emra-online-picker .selectbox__content {transition: none;}}


body.emra-redesign .emra-source-refusal {margin:12px 24px 12px var(--nav-content-inset);padding:16px 20px;border:1px solid var(--emra-rim);border-radius:var(--emra-radius-control);background:var(--emra-glass-floating);font-size:var(--emra-type-body);line-height:1.5;}
body.emra-redesign .emra-source-refusal p {margin:0 0 12px;}
body.emra-redesign .emra-source-refusal button {font:inherit;padding:10px 18px;cursor:pointer;}

body.emra-redesign .emra-online-unavailable .online-prestige__time,body.emra-redesign .emra-online-unavailable .online-prestige__quality {display:none;}
body.emra-redesign .emra-online-screen .emra-online-unavailable .online-prestige__img {opacity:.3;}
body.emra-redesign .emra-source-option{position:relative;gap:10px;}
body.emra-redesign .emra-source-logo{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;pointer-events:none;}
body.emra-redesign .emra-source-logo>svg{display:block;width:30px;height:30px;}
body.emra-redesign .emra-source-quality{font-size:11px;line-height:1.2;white-space:nowrap;color:var(--emra-text-secondary,#b8c3cc);margin-left:auto;}
body.emra-redesign .emra-source-option{flex-wrap:wrap;align-content:center;}
body.emra-redesign .emra-source-option .emra-source-quality{flex:0 0 calc(100% - 40px);margin:2px 0 0 40px;}
