/* Front Page Theme: Cinema Dark v67
   Single source of truth for Cinema Dark homepage sections, cards, rails, actor rail and hero presentation. */
.kyi-theme-cinema-dark.kyi-public-page {
  --cd-front-bg:#06101c;
  --cd-front-bg-2:#071421;
  --cd-front-card:#0b1422;
  --cd-front-line:rgba(255,255,255,.10);
  --cd-front-line-strong:rgba(255,255,255,.16);
  --cd-front-text:#f8fafc;
  --cd-front-muted:rgba(226,232,240,.74);
  --cd-front-soft:rgba(148,163,184,.72);
  --cd-front-accent:var(--ft-accent,#f5c542);
  --cd-front-gap:clamp(14px,1.28vw,22px);
  --cd-front-radius:16px;
  --cd-section-title:clamp(17px,1.12vw,22px);
  --cd-section-subtitle:clamp(11.5px,.72vw,13px);
  --cd-card-title:clamp(13px,.82vw,16px);
  --cd-wide-title:clamp(16px,1vw,20px);
  --cd-poster-title:clamp(12.5px,.76vw,14.5px);
  --cd-meta-size:clamp(11px,.72vw,13px);
  color:var(--cd-front-text);
}

.kyi-theme-cinema-dark .kyi-frontpage-shell {
  background:linear-gradient(180deg,#050b14 0%,var(--cd-front-bg) 24%,var(--cd-front-bg-2) 100%);
}

/* Cinema Dark Hero v66: authoritative homepage hero styling lives here, not in shared/base theme CSS. */
.kyi-theme-cinema-dark .kyi-frontpage-shell.kyi-has-cinema-hero { padding-top:0; }
.kyi-theme-cinema-dark .kyi-cinema-hero {
  position:relative;
  width:100vw;
  max-width:100vw;
  min-height:clamp(620px,82vh,860px);
  margin:0 calc(50% - 50vw);
  overflow:hidden;
  isolation:isolate;
  color:#fff;
  background:#06101c;
  box-shadow:none;
}
.kyi-theme-cinema-dark .kyi-cinema-hero-stage,
.kyi-theme-cinema-dark .kyi-cinema-hero-slide,
.kyi-theme-cinema-dark .kyi-cinema-hero-poster,
.kyi-theme-cinema-dark .kyi-cinema-bg-video,
.kyi-theme-cinema-dark .kyi-cinema-hero-scrim { position:absolute; inset:0; }
.kyi-theme-cinema-dark .kyi-cinema-hero-stage { z-index:1; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .72s ease, visibility .72s ease;
  background-image:var(--kyi-hero-bg);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-active { opacity:1; visibility:visible; pointer-events:auto; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(3,7,18,.58) 0%,rgba(3,7,18,.40) 36%,rgba(3,7,18,.17) 68%,rgba(3,7,18,.22) 100%),
    linear-gradient(180deg,rgba(3,7,18,.18) 0%,rgba(3,7,18,.02) 42%,rgba(6,16,28,.90) 100%);
}
.kyi-theme-cinema-dark .kyi-cinema-hero-slide::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:34%;
  z-index:4;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(6,16,28,0),var(--cd-front-bg,#06101c));
}
.kyi-theme-cinema-dark .kyi-cinema-hero-poster { z-index:1; overflow:hidden; background:#06101c; transform:scale(1.012); transition:transform 8s ease, opacity .42s ease, visibility .42s ease; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-active .kyi-cinema-hero-poster { transform:scale(1.035); }
.kyi-theme-cinema-dark .kyi-cinema-hero-poster-img,
.kyi-theme-cinema-dark .kyi-cinema-bg-video video { width:100%; height:100%; object-fit:cover; object-position:center center; display:block; border:0; }
.kyi-theme-cinema-dark .kyi-cinema-bg-video iframe {
  position:absolute;
  top:50%;
  left:50%;
  width:100vw;
  height:56.25vw;
  min-width:177.7778vh;
  min-height:100%;
  max-width:none;
  max-height:none;
  display:block;
  border:0;
  transform:translate(-50%,-50%);
}
.kyi-theme-cinema-dark .kyi-cinema-bg-video.is-sound iframe {
  width:110vw;
  height:61.875vw;
  min-width:195.5556vh;
  min-height:110%;
}
.kyi-theme-cinema-dark .kyi-cinema-bg-video.is-sound video { transform:scale(1.045); transform-origin:center center; }
.kyi-theme-cinema-dark .kyi-cinema-bg-video { z-index:2; opacity:0; visibility:hidden; transition:opacity .42s ease, visibility .42s ease; pointer-events:none; background:#06101c; overflow:hidden; }
.kyi-theme-cinema-dark .kyi-cinema-bg-video.is-loaded { opacity:1; visibility:visible; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-poster .kyi-cinema-bg-video,
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-paused .kyi-cinema-bg-video,
.kyi-theme-cinema-dark .kyi-cinema-hero-slide:not(.is-active) .kyi-cinema-bg-video { opacity:0; visibility:hidden; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.has-video-loaded.is-previewing .kyi-cinema-hero-poster,
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.has-video-loaded.is-playing .kyi-cinema-hero-poster { opacity:0; visibility:hidden; }
.kyi-theme-cinema-dark .kyi-cinema-hero-scrim { display:none; }
.kyi-theme-cinema-dark .kyi-cinema-hero-content {
  position:absolute;
  left:var(--ft-gutter,clamp(18px,4vw,70px));
  bottom:clamp(76px,11vh,132px);
  z-index:6;
  width:min(680px,calc(100vw - (var(--ft-gutter,clamp(18px,4vw,70px)) * 2) - 120px));
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-shadow:0 10px 26px rgba(0,0,0,.38);
}
.kyi-theme-cinema-dark .kyi-cinema-kicker { display:none; }
.kyi-theme-cinema-dark .kyi-cinema-hero h1 {
  margin:0 0 clamp(10px,1.05vw,16px);
  max-width:min(660px,100%);
  color:#F1E6AD;
  font:700 var(--ft-type-hero,clamp(32px,4vw,56px))/1 var(--ft-font,"Inter",system-ui,sans-serif);
  letter-spacing:-.028em;
  text-wrap:balance;
}
.kyi-theme-cinema-dark .kyi-cinema-hero-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 clamp(9px,1vw,14px);
  color:rgba(255,255,255,.92);
  font-size:clamp(12px,.78vw,14px);
  font-weight:520;
  line-height:1.35;
}
.kyi-theme-cinema-dark .kyi-cinema-hero-meta .kyi-dot-sep { opacity:.52; font-weight:500; }
.kyi-theme-cinema-dark .kyi-cinema-hero-meta span:not(.kyi-dot-sep) { text-shadow:0 7px 18px rgba(0,0,0,.40); }
.kyi-theme-cinema-dark .kyi-cinema-hero-content p {
  margin:0 0 clamp(18px,1.75vw,26px);
  max-width:60ch;
  color:rgba(241,245,249,.82);
  font-size:clamp(13.5px,.92vw,16px);
  font-weight:400;
  line-height:1.62;
}
.kyi-theme-cinema-dark .kyi-cinema-hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.kyi-theme-cinema-dark .kyi-cinema-hero-actions .kyi-hero-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  height:48px;
  min-height:48px;
  padding:0 21px;
  border:1px solid transparent;
  border-radius:6px;
  color:#fff;
  text-decoration:none;
  font-size:clamp(13px,.82vw,15px);
  font-weight:620;
  letter-spacing:-.01em;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,filter .18s ease;
}
.kyi-theme-cinema-dark .kyi-cinema-hero-actions .kyi-hero-btn:hover,
.kyi-theme-cinema-dark .kyi-cinema-hero-actions .kyi-hero-btn:focus-visible { transform:translateY(-1px); filter:brightness(1.045); }
.kyi-theme-cinema-dark .kyi-cinema-hero-actions .kyi-hero-btn-primary { min-width:152px; color:#06101c; background:#E7DCA6; border-color:#E7DCA6; box-shadow:0 14px 34px rgba(0,0,0,.24); }
.kyi-theme-cinema-dark .kyi-cinema-hero-actions .kyi-hero-btn-secondary { min-width:118px; color:#fff; background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.16); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.kyi-theme-cinema-dark .kyi-hero-btn-plus { display:inline-grid; place-items:center; width:18px; height:18px; font-size:18px; line-height:1; }
.kyi-theme-cinema-dark .kyi-cinema-play {
  position:absolute;
  right:var(--ft-gutter,clamp(18px,4vw,70px));
  bottom:clamp(88px,12vh,148px);
  z-index:7;
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  padding:0 18px 0 12px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:999px;
  color:#fff;
  background:rgba(3,7,18,.24);
  text-decoration:none;
  box-shadow:0 18px 48px rgba(0,0,0,.28);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.kyi-theme-cinema-dark .kyi-cinema-play:hover,
.kyi-theme-cinema-dark .kyi-cinema-play:focus-visible { transform:translateY(-1px); border-color:rgba(255,255,255,.62); background:rgba(255,255,255,.12); outline:0; }
.kyi-theme-cinema-dark .kyi-cinema-play-icon { position:relative; width:34px; height:34px; flex:0 0 34px; border-radius:50%; background:#fff; box-shadow:0 10px 24px rgba(0,0,0,.28); }
.kyi-theme-cinema-dark .kyi-cinema-play-icon::before { content:""; position:absolute; left:13px; top:9px; border-left:11px solid #06101c; border-top:7px solid transparent; border-bottom:7px solid transparent; }
.kyi-theme-cinema-dark .kyi-cinema-play-text { font-size:13px; font-weight:620; letter-spacing:-.01em; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-playing .kyi-cinema-play-icon::before,
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-playing .kyi-cinema-play-icon::after { content:""; position:absolute; top:9px; width:4px; height:16px; border:0; background:#06101c; border-radius:1px; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-playing .kyi-cinema-play-icon::before { left:11px; }
.kyi-theme-cinema-dark .kyi-cinema-hero-slide.is-playing .kyi-cinema-play-icon::after { right:11px; }
.kyi-theme-cinema-dark .kyi-hero-arrows { position:absolute; inset:0; z-index:8; pointer-events:none; }
.kyi-theme-cinema-dark .kyi-hero-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:64px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:4px;
  color:rgba(255,255,255,.86);
  background:rgba(3,7,18,.16);
  cursor:pointer;
  pointer-events:auto;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.kyi-theme-cinema-dark .kyi-hero-arrow-prev { left:clamp(8px,1vw,18px); }
.kyi-theme-cinema-dark .kyi-hero-arrow-next { right:clamp(8px,1vw,18px); }
.kyi-theme-cinema-dark .kyi-hero-arrow span { display:block; transform:translateY(-2px); font-size:46px; font-weight:220; line-height:1; text-shadow:0 8px 24px rgba(0,0,0,.48); }
.kyi-theme-cinema-dark .kyi-hero-arrow:hover,
.kyi-theme-cinema-dark .kyi-hero-arrow:focus-visible { color:#fff; background:rgba(255,255,255,.10); outline:0; }
.kyi-theme-cinema-dark .kyi-hero-dots {
  position:absolute;
  left:var(--ft-gutter,clamp(18px,4vw,70px));
  bottom:clamp(28px,4.8vh,56px);
  z-index:9;
  display:flex;
  align-items:center;
  gap:8px;
}
.kyi-theme-cinema-dark .kyi-hero-dots button { width:34px; height:18px; padding:0; border:0; border-radius:999px; background:transparent; cursor:pointer; position:relative; }
.kyi-theme-cinema-dark .kyi-hero-dots button::before { content:""; position:absolute; left:0; right:0; top:8px; height:2px; border-radius:99px; background:rgba(255,255,255,.34); transition:height .18s ease,background .18s ease,transform .18s ease; }
.kyi-theme-cinema-dark .kyi-hero-dots button.is-active::before { height:3px; background:#fff; transform:translateY(-.5px); }
.kyi-theme-cinema-dark .kyi-cinema-hero + .kyi-home-section { padding-top:clamp(12px,1.55vw,24px); }
@media (max-width:1180px) {
  .kyi-theme-cinema-dark .kyi-cinema-hero { min-height:clamp(590px,78vh,780px); }
  .kyi-theme-cinema-dark .kyi-cinema-hero-content { width:min(630px,calc(100vw - (var(--ft-gutter,clamp(18px,4vw,70px)) * 2))); bottom:clamp(70px,9.5vh,116px); }
  .kyi-theme-cinema-dark .kyi-cinema-play { right:var(--ft-gutter,clamp(18px,4vw,70px)); bottom:clamp(32px,5vh,62px); }
}
@media (max-width:760px) {
  .kyi-theme-cinema-dark .kyi-cinema-hero { min-height:min(680px,76vh); }
  .kyi-theme-cinema-dark .kyi-cinema-hero-content { left:var(--ft-gutter,18px); right:var(--ft-gutter,18px); bottom:clamp(92px,13vh,118px); width:auto; }
  .kyi-theme-cinema-dark .kyi-cinema-hero h1 { font-size:clamp(28px,8.8vw,42px); letter-spacing:-.034em; }
  .kyi-theme-cinema-dark .kyi-cinema-hero-content p { max-width:100%; font-size:13.5px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .kyi-theme-cinema-dark .kyi-cinema-hero-actions .kyi-hero-btn { height:44px; min-height:44px; padding:0 15px; font-size:13px; }
  .kyi-theme-cinema-dark .kyi-cinema-play { left:var(--ft-gutter,18px); right:auto; bottom:clamp(44px,6vh,64px); min-height:46px; padding-right:14px; }
  .kyi-theme-cinema-dark .kyi-cinema-play-icon { width:30px; height:30px; flex-basis:30px; }
  .kyi-theme-cinema-dark .kyi-cinema-play-icon::before { left:12px; top:8px; border-left-width:10px; border-top-width:6px; border-bottom-width:6px; }
  .kyi-theme-cinema-dark .kyi-hero-arrow { display:none; }
  .kyi-theme-cinema-dark .kyi-hero-dots { left:auto; right:var(--ft-gutter,18px); bottom:clamp(56px,7vh,76px); }
  .kyi-theme-cinema-dark .kyi-hero-dots button { width:25px; }
}
@media (max-width:520px) {
  .kyi-theme-cinema-dark .kyi-cinema-hero { min-height:620px; }
  .kyi-theme-cinema-dark .kyi-cinema-hero-meta { font-size:12px; gap:5px; }
  .kyi-theme-cinema-dark .kyi-cinema-hero-actions { gap:8px; }
}
@media (prefers-reduced-motion:reduce) {
  .kyi-theme-cinema-dark .kyi-cinema-hero-slide,
  .kyi-theme-cinema-dark .kyi-cinema-hero-poster,
  .kyi-theme-cinema-dark .kyi-cinema-bg-video,
  .kyi-theme-cinema-dark .kyi-cinema-hero-actions .kyi-hero-btn,
  .kyi-theme-cinema-dark .kyi-cinema-play { transition:none; }
}
.kyi-theme-cinema-dark .kyi-home-section {
  position:relative;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:clamp(22px,3.1vw,44px) var(--ft-gutter,clamp(18px,4vw,70px));
  background:linear-gradient(180deg,var(--cd-front-bg) 0%,var(--cd-front-bg-2) 100%);
  color:var(--cd-front-text);
  overflow:hidden;
  z-index:3;
}
.kyi-theme-cinema-dark .kyi-home-section + .kyi-home-section { padding-top:clamp(18px,2.35vw,34px); }
.kyi-theme-cinema-dark .kyi-home-section-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:clamp(12px,1.25vw,18px);
}
.kyi-theme-cinema-dark .kyi-home-section-head > div {
  position:relative;
  min-width:0;
  padding-bottom:6px;
}
.kyi-theme-cinema-dark .kyi-home-section-head h2 {
  position:relative;
  display:inline-block;
  margin:0;
  padding-bottom:7px;
  color:#f9fbff;
  font-size:var(--cd-section-title);
  font-weight:650;
  letter-spacing:-.012em;
  line-height:1.14;
  text-wrap:balance;
}
.kyi-theme-cinema-dark .kyi-home-section-head h2::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:clamp(34px,3.4vw,58px);
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(248,250,252,.72),rgba(248,250,252,.08));
}
.kyi-theme-cinema-dark .kyi-home-section-head p {
  margin:3px 0 0;
  max-width:68ch;
  color:var(--cd-front-muted);
  font-size:var(--cd-section-subtitle);
  font-weight:450;
  line-height:1.42;
}
.kyi-theme-cinema-dark .kyi-home-view-all {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#fff;
  text-decoration:none;
  font-size:clamp(13px,.84vw,15px);
  font-weight:680;
  letter-spacing:-.01em;
  white-space:nowrap;
  opacity:.9;
  transition:opacity .18s ease, transform .18s ease;
}
.kyi-theme-cinema-dark .kyi-home-view-all:hover,
.kyi-theme-cinema-dark .kyi-home-view-all:focus-visible { opacity:1; transform:translateX(2px); }
.kyi-theme-cinema-dark .kyi-home-view-icon {
  position:relative;
  width:16px;
  height:16px;
  display:inline-block;
  flex:0 0 16px;
  background:none;
}
.kyi-theme-cinema-dark .kyi-home-view-icon::before {
  content:"";
  position:absolute;
  inset:2px;
  display:block;
  background:radial-gradient(circle,currentColor 2px,transparent 2.25px) 0 0/8px 8px;
  opacity:.92;
}
.kyi-theme-cinema-dark .kyi-home-view-icon::after { content:none; display:none; }

/* Rails and grids */
.kyi-theme-cinema-dark .kyi-home-rail-shell { position:relative; overflow:visible; }
.kyi-theme-cinema-dark .kyi-home-rail-viewport {
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  scroll-padding-inline:4px;
  scrollbar-width:none;
  outline:0;
  padding-block:4px 14px;
  margin-block:-4px -14px;
}
.kyi-theme-cinema-dark .kyi-home-rail-viewport::-webkit-scrollbar { display:none; }
.kyi-theme-cinema-dark .kyi-home-rail-track { display:flex; gap:var(--cd-front-gap); align-items:stretch; }
.kyi-theme-cinema-dark .kyi-home-grid { display:grid; gap:var(--cd-front-gap); align-items:start; }
.kyi-theme-cinema-dark .kyi-home-layout-grid_3 .kyi-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.kyi-theme-cinema-dark .kyi-home-layout-grid_4 .kyi-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.kyi-theme-cinema-dark .kyi-home-layout-grid_5 .kyi-home-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.kyi-theme-cinema-dark .kyi-home-layout-grid_6 .kyi-home-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card{width:100%;height:auto}
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--wide_detail,
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--wide_simple,
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--episode_landscape,
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--episode_wide,
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--episode_compact{aspect-ratio:16/9}
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--poster_detail,
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--poster_simple,
.kyi-theme-cinema-dark .kyi-home-grid .kyi-home-card--poster_compact{aspect-ratio:2/3}

/* Card base */
.kyi-theme-cinema-dark .kyi-home-card {
  position:relative;
  display:block;
  flex:0 0 auto;
  color:#fff;
  text-decoration:none;
  overflow:hidden;
  scroll-snap-align:start;
  isolation:isolate;
  border:1px solid rgba(255,255,255,.095);
  border-radius:var(--cd-front-radius);
  background:var(--cd-front-card);
  box-shadow:0 14px 32px rgba(0,0,0,.20);
  transform:translateZ(0);
  transition:transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease, filter .24s ease;
}
.kyi-theme-cinema-dark .kyi-home-card:hover,
.kyi-theme-cinema-dark .kyi-home-card:focus-visible {
  transform:translateY(-4px);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 22px 52px rgba(0,0,0,.34);
  filter:saturate(1.025);
  z-index:5;
}
.kyi-theme-cinema-dark .kyi-home-card:focus-visible { outline:2px solid rgba(255,255,255,.42); outline-offset:4px; }
.kyi-theme-cinema-dark .kyi-home-card-media { position:relative; display:block; width:100%; height:100%; overflow:hidden; background:#111827; isolation:isolate; }
.kyi-theme-cinema-dark .kyi-home-card-media::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:56%;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(2,6,23,0),rgba(2,6,23,.62));
}
.kyi-theme-cinema-dark .kyi-home-card-media img { position:relative; z-index:1; width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.001); transition:transform .34s cubic-bezier(.2,.8,.2,1), filter .28s ease; }
.kyi-theme-cinema-dark .kyi-home-card:hover .kyi-home-card-media img,
.kyi-theme-cinema-dark .kyi-home-card:focus-visible .kyi-home-card-media img { transform:scale(1.045); }
.kyi-theme-cinema-dark .kyi-home-card-placeholder { display:grid; place-items:center; width:100%; height:100%; color:#94a3b8; font-size:clamp(24px,2.4vw,38px); font-weight:850; background:linear-gradient(135deg,#0f172a,#1e293b); }
.kyi-theme-cinema-dark .kyi-home-card-body {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:clamp(12px,1.2vw,18px);
  background:linear-gradient(180deg,rgba(2,6,23,0),rgba(2,6,23,.74));
  opacity:1;
  transform:none;
  color:#fff;
  text-shadow:none;
}
.kyi-theme-cinema-dark .kyi-home-card-body strong {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:#fff;
  font-size:var(--cd-card-title);
  font-weight:660;
  letter-spacing:-.012em;
  line-height:1.14;
}
.kyi-theme-cinema-dark .kyi-home-card-meta,
.kyi-theme-cinema-dark .kyi-home-card-info-row .kyi-home-card-meta {
  color:var(--cd-front-muted);
  font-size:var(--cd-meta-size);
  font-weight:620;
  letter-spacing:0;
  line-height:1.34;
}
.kyi-theme-cinema-dark .kyi-home-card-summary {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:rgba(226,232,240,.78);
  font-size:clamp(12px,.74vw,13px);
  font-weight:450;
  line-height:1.42;
}
.kyi-theme-cinema-dark .kyi-home-card-badge {
  position:absolute;
  top:12px;
  left:12px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(2,6,23,.70);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  color:#fff;
  font-size:11px;
  font-weight:850;
  letter-spacing:.035em;
  text-transform:uppercase;
}

/* Card dimensions */
.kyi-theme-cinema-dark .kyi-home-card--wide_detail,
.kyi-theme-cinema-dark .kyi-home-card-wide_detail { width:clamp(310px,29vw,500px); height:clamp(174px,16.3vw,282px); }
.kyi-theme-cinema-dark .kyi-home-card--wide_simple,
.kyi-theme-cinema-dark .kyi-home-card-wide { width:clamp(250px,23vw,390px); height:clamp(141px,13vw,220px); }
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape,
.kyi-theme-cinema-dark .kyi-home-card-episode_landscape { width:clamp(278px,24vw,392px); height:auto; aspect-ratio:16/9; border-radius:10px; }
.kyi-theme-cinema-dark .kyi-home-card--episode_wide,
.kyi-theme-cinema-dark .kyi-home-card-episode_wide { width:clamp(280px,25.5vw,430px); height:clamp(158px,14.4vw,242px); }
.kyi-theme-cinema-dark .kyi-home-card--episode_compact { width:clamp(210px,19vw,320px); height:clamp(118px,10.7vw,180px); }
.kyi-theme-cinema-dark .kyi-home-card--poster_detail,
.kyi-theme-cinema-dark .kyi-home-card--poster_simple,
.kyi-theme-cinema-dark .kyi-home-card--poster_compact,
.kyi-theme-cinema-dark .kyi-home-card-poster,
.kyi-theme-cinema-dark .kyi-home-card-poster_compact { width:clamp(150px,13vw,220px); height:auto; aspect-ratio:2/3; }
.kyi-theme-cinema-dark .kyi-home-card--poster_compact { width:clamp(132px,10.5vw,188px); }

/* Wide-detail rail: always readable title, actions remain future-ready. */
.kyi-theme-cinema-dark .kyi-home-card--wide_detail .kyi-home-card-body strong,
.kyi-theme-cinema-dark .kyi-home-card-wide_detail .kyi-home-card-body strong { font-size:var(--cd-wide-title); font-weight:680; line-height:1.08; letter-spacing:-.022em; }
.kyi-theme-cinema-dark .kyi-home-card-info-row { display:flex; align-items:center; gap:8px; min-width:0; }
.kyi-theme-cinema-dark .kyi-home-card-rating { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:22px; padding:0 8px; border-radius:4px; background:rgba(245,197,66,.96); color:#14100a; font-size:10px; font-weight:850; letter-spacing:.02em; }
.kyi-theme-cinema-dark .kyi-home-card-actions { display:flex; gap:clamp(12px,.9vw,18px); align-items:center; color:#f8fafc; font-size:clamp(12px,.76vw,14px); font-weight:720; }
.kyi-theme-cinema-dark .kyi-home-card-action { display:inline-flex; align-items:center; gap:8px; }
.kyi-theme-cinema-dark .kyi-home-card-action--details { color:#f0d37a; }
.kyi-theme-cinema-dark .kyi-home-card-action-play { position:relative; width:22px; height:22px; min-width:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; border:2px solid currentColor; color:currentColor; background:transparent; font-size:0; line-height:0; }
.kyi-theme-cinema-dark .kyi-home-card-action-play::before { content:""; display:block; width:0; height:0; border-top:4px solid transparent; border-bottom:4px solid transparent; border-left:6px solid currentColor; transform:translateX(1px); }
.kyi-theme-cinema-dark .kyi-home-card-action-play::after { content:none; display:none; }
.kyi-theme-cinema-dark .kyi-home-card-action--list span:first-child { color:var(--cd-front-accent); font-weight:520; }

/* Episode cards */
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape { box-shadow:0 12px 28px rgba(0,0,0,.20); }
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape:hover,
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape:focus-visible { border-color:rgba(255,255,255,.16); box-shadow:0 20px 46px rgba(0,0,0,.34); }
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape .kyi-home-card-media::before { content:""; position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(180deg,rgba(2,6,23,.08),rgba(2,6,23,.16) 52%,rgba(2,6,23,.50)); }
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape .kyi-home-card-media::after { height:46%; background:linear-gradient(180deg,rgba(2,6,23,0),rgba(2,6,23,.36)); }
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape .kyi-home-card-body { z-index:4; background:transparent; padding:clamp(11px,1vw,16px); }
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape .kyi-home-card-body strong,
.kyi-theme-cinema-dark .kyi-home-card--episode_wide .kyi-home-card-body strong,
.kyi-theme-cinema-dark .kyi-home-card--episode_compact .kyi-home-card-body strong { font-size:clamp(13px,.82vw,16px); font-weight:660; }
.kyi-theme-cinema-dark .kyi-home-card-play {
  position:absolute;
  right:12px;
  top:12px;
  z-index:5;
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(245,197,66,.96);
  color:#111827;
  font-size:13px;
  box-shadow:0 10px 28px rgba(0,0,0,.32);
}
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape .kyi-home-card-play {
  left:50%;
  top:50%;
  right:auto;
  width:clamp(44px,3.8vw,58px);
  height:clamp(44px,3.8vw,58px);
  border:1px solid rgba(255,255,255,.72);
  background:rgba(2,6,23,.42);
  color:#fff;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0;
  transform:translate(-50%,-50%) scale(.9);
  transition:opacity .2s ease, transform .2s ease, background .2s ease;
}
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape:hover .kyi-home-card-play,
.kyi-theme-cinema-dark .kyi-home-card--episode_landscape:focus-visible .kyi-home-card-play { opacity:1; transform:translate(-50%,-50%) scale(1); background:rgba(2,6,23,.58); }
.kyi-theme-cinema-dark .kyi-home-card-duration { position:absolute; right:12px; bottom:12px; z-index:5; display:inline-flex; align-items:center; min-height:22px; padding:3px 7px; border-radius:4px; background:rgba(2,6,23,.72); color:rgba(248,250,252,.88); font-size:12px; font-weight:720; }

/* Compact/simple cards */
.kyi-theme-cinema-dark .kyi-home-card--poster_simple .kyi-home-card-summary,
.kyi-theme-cinema-dark .kyi-home-card--poster_compact .kyi-home-card-summary,
.kyi-theme-cinema-dark .kyi-home-card--wide_simple .kyi-home-card-summary,
.kyi-theme-cinema-dark .kyi-home-card--episode_compact .kyi-home-card-summary,
.kyi-theme-cinema-dark .kyi-home-card--poster_simple .kyi-home-card-actions,
.kyi-theme-cinema-dark .kyi-home-card--poster_compact .kyi-home-card-actions,
.kyi-theme-cinema-dark .kyi-home-card--wide_simple .kyi-home-card-actions,
.kyi-theme-cinema-dark .kyi-home-card--episode_compact .kyi-home-card-actions { display:none; }
.kyi-theme-cinema-dark .kyi-home-card--poster_detail .kyi-home-card-body strong,
.kyi-theme-cinema-dark .kyi-home-card--poster_simple .kyi-home-card-body strong,
.kyi-theme-cinema-dark .kyi-home-card--poster_compact .kyi-home-card-body strong { font-size:var(--cd-poster-title); font-weight:650; }


/* Circular actor rail */
.kyi-theme-cinema-dark .kyi-home-type-actors {
  padding-top:clamp(18px,2.25vw,34px);
  padding-bottom:clamp(20px,2.6vw,40px);
  background:linear-gradient(180deg,#060f1a 0%,#071421 100%);
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-section-head {
  margin-bottom:clamp(12px,1.05vw,18px);
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-section-head h2 {
  font-size:clamp(16px,1vw,20px);
  font-weight:640;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-section-head p {
  max-width:52ch;
  font-size:clamp(11.5px,.7vw,12.5px);
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-rail-shell {
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-rail-viewport {
  padding-block:6px 8px;
  margin-block:-6px -8px;
  scroll-snap-type:none;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-rail-track {
  gap:clamp(18px,1.55vw,30px);
  align-items:flex-start;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-rail-arrow {
  display:none;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor,
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card-actor {
  width:clamp(92px,7.15vw,128px);
  min-width:clamp(92px,7.15vw,128px);
  height:auto;
  aspect-ratio:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:center;
  filter:none;
  scroll-snap-align:none;
  isolation:auto;
  transition:transform .22s ease;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:hover,
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:focus-visible {
  transform:translateY(-3px);
  border-color:transparent;
  box-shadow:none;
  filter:none;
  z-index:4;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:focus-visible {
  outline:0;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:focus-visible .kyi-home-card-media--portrait {
  outline:2px solid rgba(255,255,255,.52);
  outline-offset:4px;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card-media--portrait {
  width:clamp(82px,6.45vw,116px);
  height:clamp(82px,6.45vw,116px);
  flex:0 0 auto;
  border-radius:50%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  box-shadow:0 12px 26px rgba(0,0,0,.24);
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card-media--portrait::after,
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card-media--portrait::before {
  display:none;
  content:none;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card-media--portrait img {
  object-fit:cover;
  object-position:center top;
  transform:scale(1.002);
  filter:saturate(1.02) contrast(1.02);
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:hover .kyi-home-card-media--portrait img,
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:focus-visible .kyi-home-card-media--portrait img {
  transform:scale(1.055);
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor .kyi-home-card-body {
  position:static;
  display:flex;
  align-items:center;
  width:100%;
  gap:4px;
  padding:9px 2px 0;
  background:none;
  color:#f8fafc;
  text-align:center;
  text-shadow:none;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor .kyi-home-card-body strong {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:clamp(11.5px,.72vw,13.5px);
  line-height:1.18;
  font-weight:620;
  letter-spacing:-.008em;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor .kyi-home-card-meta {
  display:none;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card.is-rail-clone {
  pointer-events:auto;
}
.kyi-theme-cinema-dark .kyi-home-type-actors.is-paused .kyi-home-card--actor .kyi-home-card-media--portrait,
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:hover .kyi-home-card-media--portrait,
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-card--actor:focus-visible .kyi-home-card-media--portrait {
  border-color:rgba(255,255,255,.28);
}

/* Genre rows */
.kyi-theme-cinema-dark .kyi-home-genre-row { margin-top:22px; }
.kyi-theme-cinema-dark .kyi-home-genre-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.kyi-theme-cinema-dark .kyi-home-genre-head h3 { margin:0; color:#f9fbff; font-size:clamp(15.5px,1vw,19px); font-weight:640; letter-spacing:-.01em; }
.kyi-theme-cinema-dark .kyi-home-genre-section .kyi-home-rail-track { gap:clamp(12px,1vw,18px); }

/* Rail arrows */
.kyi-theme-cinema-dark .kyi-home-rail-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:8;
  border:0;
  background:transparent;
  color:#fff;
  width:46px;
  height:80px;
  display:grid;
  place-items:center;
  font-size:58px;
  font-weight:200;
  line-height:1;
  cursor:pointer;
  text-shadow:0 4px 18px rgba(0,0,0,.75);
  opacity:.72;
  transition:opacity .18s ease, transform .18s ease;
}
.kyi-theme-cinema-dark .kyi-home-rail-arrow:hover,
.kyi-theme-cinema-dark .kyi-home-rail-arrow:focus-visible { opacity:1; background:transparent; outline:0; }
.kyi-theme-cinema-dark .kyi-home-rail-arrow[disabled] { opacity:.18; cursor:default; pointer-events:none; }
.kyi-theme-cinema-dark .kyi-home-rail-arrow.is-hidden { display:none; }
.kyi-theme-cinema-dark .kyi-home-rail-prev { left:-48px; }
.kyi-theme-cinema-dark .kyi-home-rail-next { right:-48px; }
.kyi-theme-cinema-dark .kyi-home-rail-prev:hover { transform:translateY(-50%) translateX(-2px); }
.kyi-theme-cinema-dark .kyi-home-rail-next:hover { transform:translateY(-50%) translateX(2px); }

@media(max-width:1280px){
  .kyi-theme-cinema-dark .kyi-home-layout-grid_6 .kyi-home-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .kyi-theme-cinema-dark .kyi-home-layout-grid_5 .kyi-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1180px){
  .kyi-theme-cinema-dark .kyi-home-rail-prev{left:-18px}
  .kyi-theme-cinema-dark .kyi-home-rail-next{right:-18px}
}
@media(max-width:980px){
  .kyi-theme-cinema-dark .kyi-home-layout-grid_3 .kyi-home-grid,
  .kyi-theme-cinema-dark .kyi-home-layout-grid_4 .kyi-home-grid,
  .kyi-theme-cinema-dark .kyi-home-layout-grid_5 .kyi-home-grid,
  .kyi-theme-cinema-dark .kyi-home-layout-grid_6 .kyi-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .kyi-theme-cinema-dark .kyi-home-card--wide_detail{width:78vw;height:44vw}
  .kyi-theme-cinema-dark .kyi-home-card--poster_detail{width:34vw}
  .kyi-theme-cinema-dark .kyi-home-card--poster_compact{width:29vw}
}
@media(max-width:700px){
  .kyi-theme-cinema-dark { --cd-front-gap:12px; --cd-section-title:clamp(17px,4.7vw,21px); --cd-card-title:clamp(12.5px,3.65vw,14.5px); --cd-poster-title:clamp(12px,3.45vw,13.5px); }
  .kyi-theme-cinema-dark .kyi-home-section{padding-left:18px;padding-right:18px}
  .kyi-theme-cinema-dark .kyi-home-section-head{align-items:flex-start;gap:12px}
  .kyi-theme-cinema-dark .kyi-home-view-all{font-size:13px}
  .kyi-theme-cinema-dark .kyi-home-layout-grid_3 .kyi-home-grid,
  .kyi-theme-cinema-dark .kyi-home-layout-grid_4 .kyi-home-grid,
  .kyi-theme-cinema-dark .kyi-home-layout-grid_5 .kyi-home-grid,
  .kyi-theme-cinema-dark .kyi-home-layout-grid_6 .kyi-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kyi-theme-cinema-dark .kyi-home-card--wide_detail,
  .kyi-theme-cinema-dark .kyi-home-card--wide_simple,
  .kyi-theme-cinema-dark .kyi-home-card--episode_wide{width:82vw;height:46vw;min-height:172px}
  .kyi-theme-cinema-dark .kyi-home-card--episode_landscape{width:78vw;min-height:150px}
  .kyi-theme-cinema-dark .kyi-home-card--episode_compact{width:68vw;height:38vw}
  .kyi-theme-cinema-dark .kyi-home-card--poster_detail,
  .kyi-theme-cinema-dark .kyi-home-card--poster_simple{width:42vw}
  .kyi-theme-cinema-dark .kyi-home-card--poster_compact{width:38vw}
  .kyi-theme-cinema-dark .kyi-home-card-summary,
  .kyi-theme-cinema-dark .kyi-home-card-actions{display:none}
  .kyi-theme-cinema-dark .kyi-home-rail-arrow{display:none}
  .kyi-theme-cinema-dark .kyi-home-card--episode_landscape .kyi-home-card-play{opacity:1;transform:translate(-50%,-50%) scale(.92)}
}

/* v65: actor rail motion engine uses transform, not scrollLeft, to avoid browser rounding stalls. */
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-actor-auto-viewport {
  overflow:hidden;
  scroll-behavior:auto;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-actor-auto-track {
  width:max-content;
  flex-wrap:nowrap;
  will-change:transform;
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
}
.kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-actor-auto-track .kyi-home-card {
  flex:0 0 auto;
}
@media (prefers-reduced-motion: reduce) {
  .kyi-theme-cinema-dark .kyi-home-type-actors .kyi-home-actor-auto-track {
    transform:none !important;
    will-change:auto;
  }
}
