/* KORE FLIX — rich detail screen. Isolated from legacy modal rules. */
.kf-detail-screen{
  width:min(1340px,calc(100vw - 28px));max-width:1340px;
  max-height:calc(100dvh - 28px);padding:0;overflow:auto;overscroll-behavior:contain;
  background:#101217;border:1px solid rgba(255,255,255,.14);border-radius:14px;
  color:#f5f5f6;scrollbar-color:#444958 transparent;
}
.kf-detail-screen::backdrop{background:rgba(3,4,6,.92);backdrop-filter:blur(10px)}
.kf-detail-banner{
  height:clamp(250px,29vw,385px);background-position:50% 35%;
  background-size:cover;background-color:#23242b;position:relative;
}
.kf-detail-banner:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,#101217 3%,rgba(16,18,23,.05) 90%),
    linear-gradient(90deg,rgba(16,18,23,.65),transparent 70%);
}
.kf-detail-banner .detail-hero-overlay{display:none}
.kf-detail-banner-brand{
  position:absolute;z-index:1;left:45px;top:25px;
  font-weight:900;letter-spacing:-.09em;font-size:22px;color:#ef485b;
  text-shadow:0 2px 10px #000;
}
.kf-detail-brand-prefix{color:white}
.kf-detail-close{
  position:sticky;float:right;right:18px;top:16px;margin:16px 16px -52px 0;
  z-index:15;width:46px;height:46px;background:#141720e8;
  border:1px solid rgba(255,255,255,.3);font-size:30px;
}
.kf-detail-layout{
  position:relative;display:grid;grid-template-columns:minmax(180px,250px) minmax(0,1fr);
  gap:clamp(24px,4vw,54px);margin-top:-125px;
  padding:0 clamp(26px,4vw,54px) 30px;align-items:start;z-index:2;
}
.kf-detail-art-column{min-width:0}
.kf-detail-poster{
  width:100%;aspect-ratio:2/3;overflow:hidden;border-radius:7px;
  background:#282c37;border:1px solid #ffffff28;
  box-shadow:0 20px 80px #000c,0 2px 10px #000b;
}
.kf-detail-poster img{display:block;width:100%;height:100%;object-fit:cover}
.kf-detail-poster-fallback{
  display:grid;place-items:center;text-align:center;padding:25px;
  width:100%;height:100%;font-size:clamp(16px,2vw,26px);font-weight:900;
  background:radial-gradient(circle at 80% 20%,#8d4353,#292d3d 65%,#181920);
  letter-spacing:-.06em;overflow-wrap:anywhere;
}
.kf-detail-main{min-width:0;margin-top:115px}
.kf-detail-main .detail-tag{
  color:#f66c79;text-transform:uppercase;letter-spacing:.14em;
  font-size:11px;font-weight:850;margin:0 0 11px;
}
.kf-detail-main h2{
  font-size:clamp(26px,3.2vw,47px);letter-spacing:-.055em;
  font-weight:850;line-height:1.17;margin:0 0 13px;overflow-wrap:anywhere;
}
.kf-detail-main .detail-meta{font-size:12px;color:#b7bcc8;line-height:1.8;margin:0 0 20px}
.kf-detail-main .detail-description{max-width:840px;font-size:13px;color:#e0e0e6;line-height:1.9;margin:0 0 16px}
.kf-detail-main .detail-credit{max-width:850px;color:#9ca3b3;margin:0 0 18px;font-size:12px;line-height:1.7}
.kf-detail-actions{display:flex;gap:11px;align-items:center;flex-wrap:wrap;margin:21px 0 0}
.kf-detail-actions .button{padding:13px 18px;min-height:45px;font-size:12px;border-radius:6px}
.kf-detail-actions .kf-detail-play{min-width:170px}
.kf-detail-source{
  display:flex;align-items:center;flex-wrap:wrap;column-gap:12px;row-gap:8px;
  margin-top:18px;padding:13px 15px;border-radius:7px;
  background:#1b1f28;border:1px solid rgba(255,255,255,.1);
}
.kf-detail-source[hidden]{display:none}
.kf-detail-source label{font-size:11px;color:#abb2c0;font-weight:750}
.kf-detail-source select{
  background:#282d39;border:1px solid #566073;border-radius:5px;
  color:#f7f7fa;padding:9px 12px;font-size:12px;min-height:38px;
}
.kf-detail-source>span{flex-basis:100%;font-size:11px;color:#aab0bf;line-height:1.6}
.kf-detail-episodes{
  margin-left:clamp(275px,25vw,360px);
  padding:0 clamp(26px,4vw,54px) 50px 0;
}
.kf-detail-episodes[hidden]{display:none}
.kf-detail-episodes-header{
  display:flex;justify-content:space-between;align-items:flex-end;gap:15px;
  border-top:1px solid #ffffff23;padding-top:25px;margin-bottom:19px;
}
.kf-detail-episodes-header h3{font-size:22px;letter-spacing:-.04em;margin:0 0 5px}
.kf-detail-episodes-header p{color:#a5abb8;font-size:11px;line-height:1.7;margin:0}
.kf-detail-season-counter{color:#a1a7b4;font-size:11px;white-space:nowrap}
.kf-detail-season-strip{
  display:flex;overflow-x:auto;gap:13px;scroll-snap-type:x proximity;
  padding:3px 4px 16px;scrollbar-width:thin;scrollbar-color:#555c6a transparent;
}
.kf-season-card{
  flex:0 0 136px;width:136px;display:flex;flex-direction:column;
  text-align:left;padding:0;background:transparent;color:#edf0f4;border:0;
  border-radius:7px;scroll-snap-align:start;
}
.kf-season-cover{
  display:block;position:relative;width:100%;aspect-ratio:2/3;overflow:hidden;
  background:linear-gradient(145deg,#483f53,#2a303f 50%,#1a1c25);
  border:2px solid transparent;border-radius:6px;
}
.kf-season-cover img{display:block;width:100%;height:100%;object-fit:cover;opacity:.88}
.kf-season-cover:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(0deg,#0c0f15d9,transparent)}
.kf-season-cover strong{
  position:absolute;bottom:7px;right:9px;font-size:37px;font-weight:900;
  color:#ffffffd9;letter-spacing:-.08em;text-shadow:0 2px 6px #000;z-index:1;
}
.kf-season-label{font-size:12px;font-weight:800;margin:9px 0 3px}
.kf-season-card small{font-size:10px;color:#9299aa}
.kf-season-card.selected .kf-season-cover{border-color:#f25365;box-shadow:0 0 0 3px #f2536530}
.kf-season-card:hover .kf-season-cover{border-color:#e9a7b2}
.kf-season-card:focus-visible{outline:2px solid #f25365;outline-offset:3px}
.kf-detail-episode-toolbar{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  margin:23px 0 15px;
}
.kf-detail-episode-toolbar h4{font-size:15px;margin:0}
.kf-detail-episode-toolbar span{color:#979fae;font-size:11px}
.kf-detail-episode-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kf-episode-choice{
  display:flex;align-items:center;gap:12px;text-align:left;min-width:0;min-height:95px;
  background:#1a1d25;color:#f3f4f7;border:1px solid #343a46;
  border-radius:8px;padding:10px;transition:background .16s,border-color .16s;
}
.kf-episode-choice:hover{background:#232732;border-color:#737989}
.kf-episode-choice.selected{border-color:#f05466;background:#27202a}
.kf-episode-visual{
  position:relative;flex:0 0 110px;width:110px;aspect-ratio:16/9;overflow:hidden;
  border-radius:5px;background:linear-gradient(125deg,#353e51,#171b26);
}
.kf-episode-visual img{width:100%;height:100%;object-fit:cover;display:block}
.kf-episode-visual small{
  position:absolute;bottom:4px;left:5px;padding:4px 5px;background:#000b;
  font-size:10px;color:#fff;border-radius:3px;font-weight:800;
}
.kf-episode-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:6px}
.kf-episode-copy strong{font-size:11px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.kf-episode-copy small{
  font-size:10px;line-height:1.45;color:#aeb3c0;display:-webkit-box;
  -webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
.kf-episode-check{flex:none;opacity:0;color:#ff8997;font-size:20px}
.kf-episode-choice.selected .kf-episode-check{opacity:1}
.kf-detail-manual-episode{
  background:#1b1f27;border:1px solid #353b48;border-radius:8px;
  padding:17px 18px;margin-top:12px;
}
.kf-detail-manual-episode p{font-size:12px;line-height:1.7;color:#b3b9c5;margin:0 0 12px}
.kf-detail-manual-fields{display:flex;gap:14px}
.kf-detail-manual-fields label{display:flex;flex-direction:column;gap:7px;color:#b9bfca;font-size:11px}
.kf-detail-manual-fields input{
  background:#292e3a;border:1px solid #525968;border-radius:5px;color:#fff;
  width:110px;padding:11px;font-size:14px;
}
.kf-detail-disclaimer{font-size:10px;line-height:1.65;color:#848e9c;margin:23px 0 0}

@media(max-width:1100px){
 .kf-detail-layout{grid-template-columns:minmax(160px,210px) minmax(0,1fr);margin-top:-95px;gap:24px;padding:0 26px 26px}
 .kf-detail-main{margin-top:88px}
 .kf-detail-episodes{margin-left:260px;padding-right:26px}
 .kf-detail-episode-list{grid-template-columns:1fr}
}
@media(max-width:700px){
 .kf-detail-screen{
  width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;
  margin:0;border:0;border-radius:0;
 }
 .kf-detail-banner{height:218px;background-position:50% 30%}
 .kf-detail-banner-brand{top:20px;left:19px;font-size:17px}
 .kf-detail-close{margin:10px 11px -50px 0;top:8px;right:9px;width:39px;height:39px}
 .kf-detail-layout{display:block;min-height:0;margin-top:-70px;padding:0 19px 24px}
 .kf-detail-art-column{float:left;width:114px;margin:0 15px 12px 0}
 .kf-detail-poster{box-shadow:0 10px 35px #000b}
 .kf-detail-main{margin-top:0;padding-top:78px}
 .kf-detail-main .detail-tag{font-size:9px;margin-bottom:6px}
 .kf-detail-main h2{font-size:clamp(19px,5vw,28px);line-height:1.17;margin:0 0 9px}
 .kf-detail-main .detail-meta{font-size:10px;margin:0 0 17px}
 .kf-detail-main .detail-description{clear:both;font-size:12px;line-height:1.85;margin:21px 0 11px}
 .kf-detail-main .detail-credit{font-size:11px;line-height:1.65}
 .kf-detail-actions{clear:both;margin:17px 0 0}
 .kf-detail-actions .button{flex:1;min-width:122px;font-size:11px;padding:11px}
 .kf-detail-actions .kf-detail-play{min-width:155px;flex-grow:2}
 .kf-detail-source{clear:both;margin-top:15px}
 .kf-detail-source label{flex-basis:100%}
 .kf-detail-source select{width:100%}
 .kf-detail-episodes{clear:both;margin:0;padding:0 19px 50px}
 .kf-detail-episodes-header{padding-top:22px}
 .kf-detail-episodes-header h3{font-size:20px}
 .kf-detail-episodes-header p{font-size:11px}
 .kf-detail-season-counter{display:none}
 .kf-season-card{flex-basis:123px;width:123px}
 .kf-detail-episode-list{grid-template-columns:minmax(0,1fr)}
 .kf-episode-choice{min-height:84px;padding:8px;gap:9px}
 .kf-episode-visual{flex-basis:103px;width:103px}
 .kf-episode-copy strong{font-size:11px}
 .kf-detail-episode-toolbar{margin-top:18px}
}
@media(max-width:370px){
 .kf-detail-art-column{width:100px;margin-right:12px}
 .kf-detail-main h2{font-size:19px}
 .kf-detail-actions .button{min-width:100%}
 .kf-season-card{flex-basis:110px;width:110px}
 .kf-episode-visual{flex-basis:93px;width:93px}
}
@media(prefers-reduced-motion:reduce){
 .kf-episode-choice{transition:none}
}

/* Select a missing season when no complete season guide is available. */
.kf-season-more{
 flex:0 0 136px;width:136px;min-height:185px;
 display:flex;justify-content:center;align-items:center;text-align:center;
 padding:16px;border:1px dashed #697181;border-radius:7px;
 background:#1b1f29;color:#dce1ec;font-size:12px;font-weight:800;
}
.kf-season-more:hover,.kf-season-more:focus-visible{
 background:#262c38;border-color:#f25365;outline-offset:3px;
}
@media(max-width:700px){.kf-season-more{flex-basis:123px;width:123px;min-height:160px}}
