/* Cineby 0.4: black / scarlet palette. */
.s2d-epm-preview{--s2d26-accent-movie:#dd6c77;--s2d26-accent-movie-rgb:108,221,215}
/* Preview-only additions. Production archive card geometry remains untouched. */
.s2d-epm-preview .s2d-episode-group-card{position:relative}
.s2d-epm-preview .s2d-epm-info-host{position:absolute;z-index:12;top:7px;right:auto;bottom:auto;left:7px;display:block;width:34px;height:34px;margin:0;padding:0;pointer-events:auto}
.s2d-epm-preview .s2d-epm-info{position:relative;display:grid;width:34px;height:34px;margin:0;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.22);border-radius:50%;place-items:center;color:rgba(255,255,255,.82);background:rgba(8,3,4,.54);box-shadow:none;cursor:pointer;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);transition:color .16s ease,background-color .16s ease,border-color .16s ease}
.s2d-epm-preview .s2d-epm-info>span{position:relative;z-index:1;display:grid;width:18px;height:18px;place-items:center;font:italic 800 16px/18px Georgia,"Times New Roman",serif;transform:none}
.s2d-epm-preview .s2d-epm-info:hover,.s2d-epm-preview .s2d-epm-info:focus-visible{border-color:rgba(221,108,119,.82);color:#fff;background:rgba(24,7,9,.84);outline:0;transform:none}

.s2d-epm-preview .ofa-card-actions>.s2d-epm-watched{position:relative;top:auto;right:auto;flex:0 0 34px;margin:1px 1px 1px 0;box-shadow:none;transform:none}
.s2d-epm-preview .ofa-card-actions>.s2d-epm-watched:not(.is-settled){visibility:hidden}
.s2d-epm-preview .s2d-epm-watched:disabled{opacity:.62;cursor:wait}
html.s2d-epm-open,html.s2d-epm-open body,body.s2d-epm-open{overflow:hidden!important}
html body .s2d-epm.s2d26-search-modal.s2d26-search-modal[hidden]{display:none!important}
html body .s2d-epm.s2d26-search-modal.s2d26-search-modal{position:fixed!important;inset:0!important;z-index:2147483647!important;display:grid!important;align-items:center!important;box-sizing:border-box!important;width:100vw!important;height:100dvh!important;min-height:0!important;margin:0!important;padding:max(18px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))!important;overflow:hidden!important;--s2d26-accent-movie:var(--s2d26-accent,#dd6773);--s2d26-accent-movie-rgb:103,221,215}
.s2d-epm .s2d-epm__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.08);pointer-events:auto}
html body .s2d-epm .s2d-epm__dialog{position:relative!important;z-index:1;display:block!important;width:min(1180px,100%)!important;max-width:1180px!important;height:auto!important;max-height:100%!important;min-height:0!important;margin:0 auto!important;padding:0!important;outline:0;border:0;background:transparent;box-shadow:none}
.s2d-epm .s2d-epm__close{position:absolute!important;top:0!important;right:0!important;z-index:30}
.s2d-epm__scroll{height:auto;min-height:0;display:grid;grid-template-rows:auto auto;gap:18px;overflow:visible}
.s2d-epm__identity{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:18px;align-items:center;min-height:54px;margin:0;padding:0 62px 0 0;background:transparent;box-shadow:none;color:inherit;text-align:left}
.s2d-epm__logo{grid-column:1;grid-row:1 / 3;display:block;width:auto;max-width:220px;height:auto;max-height:54px;object-fit:contain}
.s2d-epm__series-title{grid-column:1;grid-row:1 / 3;max-width:260px;margin:0;font-size:25px;font-weight:800;line-height:1.05;color:inherit}
.s2d-epm__eyebrow{grid-column:2;grid-row:1;margin:0 0 5px;color:var(--s2d26-accent);font-size:10px;font-weight:800;line-height:1.2;letter-spacing:.1em;text-transform:uppercase}
.s2d-epm__identity h2{grid-column:2;grid-row:2;margin:0;font-size:clamp(18px,2vw,28px);line-height:1.12;color:inherit;overflow-wrap:anywhere}
.s2d-epm__workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:28px;min-height:0;align-items:start}
.s2d-epm__watch{display:flex;flex-direction:column;min-width:0;gap:14px}
.s2d-epm__hero{min-width:0;width:100%;display:flex;flex-direction:column;gap:8px}
.s2d-epm__player{position:relative;display:grid;place-items:center;max-width:100%;margin:0 auto;aspect-ratio:16/9;background:#070203 center/cover no-repeat;overflow:hidden}
.s2d-epm__iframe{position:relative;display:block;width:100%;height:100%;border:0;background:#000}
.s2d-epm .s2d26-player-play{z-index:12!important;pointer-events:auto!important;touch-action:manipulation}
.s2d-epm__player-loading{color:#fff;font-size:13px}
.s2d-epm__servers:empty{display:none}
.s2d-epm__servers{min-width:0;background:transparent;padding:0}
.s2d-epm__navigator{display:grid;grid-template-columns:minmax(100px,.65fr) minmax(0,1.35fr);gap:16px;min-width:0}
.s2d-epm__select{display:grid!important;min-width:0;gap:4px}
.s2d-epm__select>label{margin:0;color:var(--s2d26-modal-muted);font-size:9px;line-height:1;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.s2d-epm .s2d-epm__select .select_div{min-width:0;width:100%}
.s2d-epm .select_value{overflow:hidden;text-overflow:ellipsis}
.s2d-epm .s2d-epm__select .select_div.active .select_options{width:100%;max-height:min(228px,35dvh)}
.s2d-epm__content{display:flex;flex-direction:column;gap:18px;min-width:0;margin:0;padding:0}
.s2d-epm__ratings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.s2d-epm-rating{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"scope scope" "logo score" "votes votes";gap:4px 8px;align-items:center;min-width:0;padding:8px 0;border-bottom:1px solid var(--s2d26-modal-line)}
.s2d-epm-rating small{grid-area:scope;font-size:9px;line-height:1.1;text-transform:uppercase;color:var(--s2d26-modal-muted)}
.s2d-epm-rating__logo{grid-area:logo;display:block;width:58px;height:25px}
.s2d-epm-rating__logo svg{display:block;width:58px;height:25px}
.s2d-epm-rating strong{grid-area:score;font-size:20px;line-height:1;color:inherit}
.s2d-epm-rating em{grid-area:votes;font-size:9px;line-height:1;font-style:normal;color:var(--s2d26-modal-muted)}
.s2d-epm__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.s2d-epm__facts dt{font-size:9px;line-height:1.15;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--s2d26-modal-muted);margin:0 0 4px}
.s2d-epm__facts dd{font-size:12px;line-height:1.3;color:inherit;margin:0;overflow-wrap:anywhere}
.s2d-epm__overview{font-size:14px;line-height:1.5;margin:0;color:inherit}
.s2d-epm__status{font-size:11px;line-height:1.3;color:var(--s2d26-modal-muted);overflow-wrap:anywhere}
.s2d-epm__status:empty{display:none}
.s2d-epm [hidden]{display:none!important}
.s2d-epm.is-tight .s2d-epm__scroll{gap:10px}
.s2d-epm.is-tight .s2d-epm__content{gap:10px}
.s2d-epm.is-tight .s2d-epm__facts{gap:8px}
.s2d-epm.is-tight .s2d-epm__overview{font-size:12px;line-height:1.35}
.s2d-epm.is-compact .s2d-epm__identity{min-height:46px}
.s2d-epm.is-compact .s2d-epm__logo{max-height:40px;max-width:160px}
.s2d-epm.is-compact .s2d-epm__content{gap:6px}
.s2d-epm.is-compact .s2d-epm__facts{gap:5px}
.s2d-epm.is-compact .s2d-epm-rating{padding:3px 0;gap:2px 5px}
.s2d-epm.is-compact .s2d-epm__overview{font-size:11px;line-height:1.3}
@media(max-width:700px) and (orientation:portrait){
 html body .s2d-epm.s2d26-search-modal.s2d26-search-modal{padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom))!important}
 .s2d-epm__scroll{gap:12px}
 .s2d-epm__identity{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:4px;padding-right:52px;min-height:46px}
 .s2d-epm__logo{grid-row:1;max-width:150px;max-height:30px}
 .s2d-epm__series-title{grid-row:1;font-size:18px;max-width:none}
 .s2d-epm__eyebrow{grid-column:1;grid-row:2;margin:0;font-size:9px}
 .s2d-epm__identity h2{grid-column:1;grid-row:3;font-size:18px}
 .s2d-epm__workspace{display:flex;flex-direction:column;gap:12px}
 .s2d-epm__watch,.s2d-epm__content{width:100%;gap:10px}
 .s2d-epm__ratings{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .s2d-epm-rating{grid-template-columns:1fr;grid-template-areas:"scope" "logo" "score" "votes";gap:3px;padding:4px 0}
 .s2d-epm-rating strong{font-size:16px}
 .s2d-epm-rating__logo,.s2d-epm-rating__logo svg{width:45px;height:20px}
 .s2d-epm__facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .s2d-epm__facts dd{font-size:11px}
 .s2d-epm__overview{font-size:12px;line-height:1.4}
 .s2d-epm.is-compact .s2d-epm__logo{max-height:24px}
}
@media(max-height:500px) and (orientation:landscape){
 .s2d-epm__workspace{grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:16px}
 .s2d-epm__scroll{gap:8px}
 .s2d-epm__identity{min-height:46px}
 .s2d-epm__logo{max-height:38px;max-width:180px}
 .s2d-epm__content{gap:8px}
 .s2d-epm__overview{font-size:12px;line-height:1.3}
 .s2d-epm__facts{gap:6px}
}
@media(max-width:767.98px){.s2d-epm-preview .ofa-card-actions>.s2d-epm-watched{flex-basis:31px;width:31px;height:31px;margin:1px 0}.s2d-epm-preview .s2d-epm-info-host{width:31px;height:31px}.s2d-epm-preview .s2d-epm-info{width:31px;height:31px}}
@media(prefers-reduced-motion:reduce){.s2d-epm,.s2d-epm *{transition:none!important}}
.s2d-epm .s2d26-player-play-disc,
.s2d-epm .s2d26-player-play-disc svg{ display: block; width: 50px; height: 50px; }
.s2d-epm .s2d26-player-play-disc{ transform: translateX(.55px); }
@media (max-width: 650px){.s2d-epm .s2d26-player-play-disc,
  .s2d-epm .s2d26-player-play-disc svg{ width: 41px; height: 41px; }}
/* Rating SVGs carry their own fills; search icon strokes must not enter them. */
html body .s2d-epm .s2d-epm-rating__logo svg,
html body .s2d-epm .s2d-epm-rating__logo svg *{stroke:none!important;stroke-width:0!important}
html:not(.night-mode):not([data-theme="dark"]) .s2d-epm__logo{filter:drop-shadow(0 1px 2px rgba(32,18,19,.45))}
html:not(.night-mode):not([data-theme="dark"]) .s2d-epm .s2d26-server-choice.s2d26-server-choice{color:var(--s2d26-modal-muted)!important}
html:not(.night-mode):not([data-theme="dark"]) .s2d-epm .s2d26-server-choice.s2d26-server-choice:hover,
html:not(.night-mode):not([data-theme="dark"]) .s2d-epm .s2d26-server-choice.s2d26-server-choice:focus-visible{color:var(--s2d26-modal-text)!important}
html:not(.night-mode):not([data-theme="dark"]) .s2d-epm .s2d26-server-choice.s2d26-server-choice.is-active{color:var(--s2d26-accent-movie)!important}
.s2d-epm__gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.s2d-epm__gallery img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;cursor:default}
@media(max-width:767.98px){.s2d-epm__gallery{display:none!important}}

/* Mobile landscape: native float cards need their row spacing restored. */
@media(max-width:991.98px) and (orientation:landscape){
 html body .s2d-epm-preview.page-category .s2d-episode-groups-list>.s2d-episode-group-card{margin-bottom:16px!important}
}
/* Keep native list content/theme/selection; change only the opening direction. */
html body .s2d-epm .s2d-epm__select .select_div.active.is-dropup .select_options{
 top:auto!important;bottom:calc(100% + 4px)!important;
 max-height:var(--s2d-epm-picker-space,40dvh)!important;
}
