/* KoreanOEM films (public/js/videos.js): brand in "How it works" on the home page, price next to the price breaks
   on /products, fast on /sample-box. The frame has a fixed shape, so nothing moves when the poster or the film
   arrives: 16:9, and 9:16 up to 600px wide (the same query as data-kfilm-portrait in the markup). */
.kfilm{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-areas:"media copy" "media tx";column-gap:44px;row-gap:14px;align-items:start}
.kfilm-flip{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);grid-template-areas:"copy media" "tx media"}
.kfilm-copy{grid-area:copy;align-self:end}
.kfilm-copy .eyebrow{margin-bottom:10px}
.kfilm-h{font-size:clamp(26px,2.5vw,36px);line-height:1.15;letter-spacing:-.03em;font-weight:400;max-width:20ch}
html[lang="ko"] .kfilm-h,html[lang="ja"] .kfilm-h,html[lang="zh-Hans"] .kfilm-h,html[lang="zh-Hant"] .kfilm-h,html[lang="th"] .kfilm-h,html[lang="ar"] .kfilm-h{letter-spacing:0;line-height:1.3}
.kfilm-sum{margin-top:10px;font-size:16px;line-height:1.55;color:var(--ink2);max-width:44ch}
.kfilm-media{grid-area:media;margin:0;min-width:0}

/* the film: poster (a lazy <picture>) over the video until the first frame plays */
.kfilm-frame{position:relative;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:var(--band);isolation:isolate;box-shadow:0 0 0 1px var(--line)}
.kfilm-on .kfilm-frame{cursor:pointer}
.kfilm-frame>video,.kfilm-nojs{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}
.kfilm-nojs{z-index:2;object-fit:contain;background:#15171a}
.kfilm-poster{position:absolute;inset:0;z-index:1;transition:opacity .3s var(--ease)}
.kfilm-poster img{width:100%;height:100%;object-fit:cover;display:block}
.kfilm-live .kfilm-poster{opacity:0;pointer-events:none}
.kfilm-big{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);display:none;align-items:center;gap:10px;padding:13px 20px 13px 14px;border-radius:999px;background:rgba(21,23,26,.82);color:#fff;font-weight:600;font-size:15px;white-space:nowrap;box-shadow:0 10px 28px rgba(0,0,0,.22)}
.kfilm-big svg{width:26px;height:26px;flex:none}
.kfilm-on[data-kfilm-state="idle"]:not([data-kfilm-auto]) .kfilm-big{display:inline-flex}

/* controls sit under the film, so they never cover the burned-in captions */
.kfilm-bar{display:flex;align-items:center;gap:8px;margin-top:10px}
.kfilm:not(.kfilm-on) .kfilm-bar{visibility:hidden}
.kfilm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;min-width:40px;padding:0 15px 0 12px;border-radius:999px;border:1px solid var(--line2);background:var(--panel);color:var(--ink);font-weight:600;font-size:13px;line-height:1;transition:border-color .2s,background-color .2s}
.kfilm-btn:hover{border-color:var(--ink3)}
.kfilm-btn svg{width:18px;height:18px;flex:none}
.kfilm-btn>span{display:inline-flex;align-items:center;gap:8px}
.kfilm-pp{width:40px;padding:0}
.kfilm-btn:focus-visible,.kfilm-big:focus-visible,.kfilm-tx summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* what the film says: the text alternative */
.kfilm-tx{grid-area:tx;font-size:14px;line-height:1.6;color:var(--ink2);max-width:52ch}
.kfilm-tx summary{display:inline-flex;align-items:center;gap:10px;padding:6px 0;cursor:pointer;list-style:none;font-weight:600;font-size:14px;color:var(--ink);border-radius:6px}
@media (max-width:560px){.kfilm-tx summary{min-height:40px}}
.kfilm-tx summary::-webkit-details-marker{display:none}
.kfilm-tx summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s var(--ease)}
[dir="rtl"] .kfilm-tx summary::before{transform:rotate(135deg)}
.kfilm-tx[open] summary::before{transform:rotate(45deg)}
.kfilm-tx p{margin-top:6px}

@media (max-width:960px){.kfilm,.kfilm-flip{column-gap:28px}}
@media (max-width:600px){
  .kfilm,.kfilm-flip{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "media" "tx";row-gap:16px}
  .kfilm-copy{align-self:start}
  .kfilm-media{width:100%;max-width:340px;justify-self:center}
  .kfilm-frame{aspect-ratio:9/16}
  .kfilm-bar{justify-content:center}
}
