/* THIRDLINE V5.2 — «حكاية». Brown #6B3F30 + white are the identity; orange #F6921E is a small accent (~10%).
   Mobile first. The programme's own vector logos (wordmark + the illustrated one) are drawn in currentColor. */
:root{--hk:#6B3F30;--hk-2:#8A5543;--hk-3:#A97563;--hk-ink:#3D231A;--hk-or:#F6921E;--hk-cream:#F7F0EA;--hk-line:rgba(107,63,48,.14)}
html[data-theme=dark]{--hk-cream:#22160f;--hk-line:rgba(255,235,220,.10)}
.hk-page{background:#fff}
html[data-theme=dark] .hk-page{background:#120b08}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* paper-like brown block, used by every hero */
.hk-hero,.hk-ephero,.hk-phero{position:relative;overflow:hidden;color:#fff;background:var(--hk);
  background-image:radial-gradient(90% 70% at 85% 0%,rgba(255,255,255,.13),transparent 60%),radial-gradient(70% 60% at 0% 100%,rgba(61,35,26,.55),transparent 70%)}
.hk-kicker{display:inline-block;color:#fff;opacity:.95}
.hk-kicker svg{display:block;width:96px;height:auto}

/* ===== the programme page ===== */
.hk-hero{padding:clamp(28px,7vw,72px) 0 clamp(30px,6vw,64px)}
.hk-hero__in{display:grid;justify-items:center;text-align:center;gap:14px}
.hk-hero__logo{margin:0;width:min(78vw,420px)}
.hk-hero__logo svg{display:block;width:100%;height:auto;color:#fff;animation:hkFloat 6s ease-in-out infinite}
.hk-hero__lead{margin:0;max-width:30em;font-size:clamp(16px,2.2vw,19px);line-height:1.85;color:rgba(255,255,255,.88)}
.hk-hero__count{display:flex;gap:10px;margin:4px 0 0;font-size:14px}
.hk-hero__count span{padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18)}
.hk-hero__count b{font:700 16px var(--f-num);color:var(--hk-or);margin-inline-end:3px}
@keyframes hkFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.hk-hero__logo svg{animation:none}}

.hk-h2{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:clamp(20px,2.6vw,26px);line-height:1.3}
.hk-h2::before{content:'';width:10px;height:10px;border-radius:3px;background:var(--hk-or);flex:none}

/* the newest episode */
.hk-latest{margin-top:-28px;position:relative;z-index:1}
.hk-latest__card{display:grid;grid-template-columns:118px minmax(0,1fr);gap:16px;align-items:center;padding:12px;border-radius:24px;background:var(--hk-cream);color:var(--hk-ink);box-shadow:0 18px 50px rgba(61,35,26,.22)}
html[data-theme=dark] .hk-latest__card{color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.hk-latest__img{position:relative;display:block;aspect-ratio:9/16;border-radius:16px;overflow:hidden;background:var(--hk-ink)}
.hk-latest__img img{width:100%;height:100%;object-fit:cover}
.hk-latest__txt{display:grid;gap:6px;min-width:0}
.hk-label{justify-self:start;padding:3px 10px;border-radius:999px;background:var(--hk);color:#fff;font-size:12px;font-weight:700}
.hk-latest__txt em{font-style:normal;font-size:13px;font-weight:700;color:var(--hk-or)}
.hk-latest__txt b{font-size:clamp(17px,2.4vw,24px);line-height:1.4}
.hk-latest__dek{display:none;font-size:15px;line-height:1.8;opacity:.8}
.hk-btn{justify-self:start;margin-top:4px;padding:8px 16px;border-radius:999px;background:var(--hk);color:#fff;font-size:13.5px;font-weight:700}
@media (min-width:700px){.hk-latest__card{grid-template-columns:200px minmax(0,1fr);gap:28px;padding:18px}.hk-latest__dek{display:block}}

/* the people */
.hk-people{padding-top:clamp(30px,5vw,48px)}
.hk-people__rail{list-style:none;margin:0;padding:4px max(var(--gut,16px),calc((100vw - var(--max,1200px)) / 2)) 10px;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.hk-people__rail::-webkit-scrollbar{display:none}
.hk-people__rail li{flex:none;scroll-snap-align:start}
.hk-people__rail a{display:grid;justify-items:center;gap:8px;width:84px;text-align:center;color:inherit}
.hk-people__ph{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;overflow:hidden;background:var(--hk);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--hk-or)}
html[data-theme=dark] .hk-people__ph{box-shadow:0 0 0 3px #120b08,0 0 0 5px var(--hk-or)}
.hk-people__ph img{width:100%;height:100%;object-fit:cover}
.hk-people__ph i{font-style:normal;font-size:28px;font-weight:700;color:#fff}
.hk-people__rail b{font-size:13px;line-height:1.35}

/* the grid of episodes: the video's first frame is the cover */
.hk-body{padding-block:clamp(28px,5vw,48px) 64px}
.hk-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
@media (min-width:700px){.hk-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:26px 18px}}
.hk-card{display:grid;gap:9px;color:inherit}
.hk-card__img{position:relative;display:block;aspect-ratio:9/16;border-radius:18px;overflow:hidden;background:var(--hk-ink);box-shadow:0 10px 26px rgba(61,35,26,.16)}
.hk-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.hk-card__txt{display:grid;gap:3px;padding-inline:2px}
.hk-card__txt em{font-style:normal;font-size:12px;font-weight:700;color:var(--hk-or)}
.hk-card__txt b{font-size:14.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hk-card__txt time{font-size:12px;color:var(--muted)}
@media (hover:hover){.hk-card:hover .hk-card__img img{transform:scale(1.05)}.hk-card:hover b{color:var(--hk)}html[data-theme=dark] .hk-card:hover b{color:#E2B9A8}}
.hk-play{position:absolute;inset-inline-start:10px;bottom:10px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 6px 16px rgba(0,0,0,.3)}
.hk-play::before{content:'';position:absolute;inset:0;margin:auto;width:0;height:0;border-block:7px solid transparent;border-left:11px solid var(--hk);transform:translateX(2px)}
.hk-play--lg{inset:0;margin:auto;width:66px;height:66px}
.hk-play--lg::before{border-block-width:12px;border-left-width:19px}
.hk-empty{text-align:center;color:var(--muted);padding:40px 0}

/* ===== one episode ===== */
.hk-ephero{padding:18px 0 34px}
.hk-ephero__in{display:grid;gap:18px}
.hk-ephero__grid{display:grid;gap:22px;justify-items:center}
.hk-video{position:relative;width:min(78vw,340px);aspect-ratio:9/16;border-radius:24px;overflow:hidden;background:var(--hk-ink);box-shadow:0 26px 70px rgba(0,0,0,.4),0 0 0 6px rgba(255,255,255,.08)}
.hk-video iframe,.hk-video__btn{position:absolute;inset:0;width:100%;height:100%;border:0}
.hk-video__btn{padding:0;cursor:pointer;background:none}
.hk-video__btn img{width:100%;height:100%;object-fit:cover}
.hk-video__btn .hk-play{transition:transform .2s}
.hk-video__btn:hover .hk-play{transform:scale(1.08)}
.hk-ephero__txt{display:grid;justify-items:center;text-align:center;gap:10px;max-width:640px}
.hk-tag{padding:5px 14px;border-radius:999px;background:var(--hk-or);color:#fff;font-size:14px;font-weight:700}
.hk-ephero h1{margin:0;font-size:clamp(25px,5.4vw,46px);line-height:1.35}
.hk-ephero__dek{margin:0;font-size:clamp(15.5px,2vw,18.5px);line-height:1.85;color:rgba(255,255,255,.86)}
.hk-ephero__meta{margin:0;font-size:13.5px;color:rgba(255,255,255,.7)}
.hk-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}
.hk-act{display:inline-flex;align-items:center;gap:6px;padding:9px 15px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font:600 14px var(--f-ar);cursor:pointer}
.hk-act svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hk-act:first-child svg{fill:currentColor;stroke:none}
.hk-act__b{display:none}.hk-act.is-done .hk-act__a{display:none}.hk-act.is-done .hk-act__b{display:inline}
@media (hover:hover){.hk-act:hover{background:#fff;color:var(--hk)}}
@media (min-width:880px){
  .hk-ephero{padding:26px 0 56px}
  .hk-ephero__grid{grid-template-columns:auto minmax(0,1fr);justify-items:start;align-items:center;gap:56px}
  .hk-video{width:330px}
  .hk-ephero__txt{justify-items:start;text-align:start}
  .hk-actions{justify-content:flex-start}
}
.hk-epbody{display:grid;gap:30px;padding-block:clamp(26px,5vw,52px)}
@media (min-width:980px){.hk-epbody{grid-template-columns:minmax(0,1fr) 320px;gap:56px;align-items:start}.hk-side{position:sticky;top:84px}}
.hk-story{max-width:44em}
.hk-story > p{margin:0 0 1.1em;font-size:clamp(17px,1.6vw,19px);line-height:2.05}
.hk-story__first{font-size:clamp(18.5px,2vw,21.5px);font-weight:500}
.hk-story__first::first-letter{color:var(--hk);font-weight:700}
html[data-theme=dark] .hk-story__first::first-letter{color:#E2B9A8}
.hk-sec{margin-top:clamp(28px,4vw,42px)}
.hk-tl{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.hk-tl li{display:flex;align-items:baseline;gap:12px}
.hk-tl b{flex:none;min-width:62px;padding:4px 10px;border-radius:999px;background:var(--hk-cream);border:1px solid var(--hk-line);color:var(--hk);font:700 14px var(--f-num);text-align:center}
html[data-theme=dark] .hk-tl b{color:#E2B9A8}
.hk-tl span{font-size:16px;line-height:1.85}
.hk-faq details{border-bottom:1px solid var(--hk-line);padding:14px 0}
.hk-faq summary{cursor:pointer;font-weight:700;font-size:16.5px;list-style:none;display:flex;justify-content:space-between;gap:12px}
.hk-faq summary::-webkit-details-marker{display:none}
.hk-faq summary::after{content:'+';font:400 22px/1 var(--f-num);color:var(--hk-or);transition:transform .2s}
.hk-faq details[open] summary::after{transform:rotate(45deg)}
.hk-faq p{margin:10px 0 0;line-height:1.9;color:var(--muted)}
.hk-side{display:grid;gap:16px;align-content:start}
.hk-pcard{display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;align-items:center;padding:12px;border-radius:22px;background:var(--hk);color:#fff}
.hk-pcard img{width:84px;height:84px;border-radius:16px;object-fit:cover}
.hk-pcard span{display:grid;gap:2px}
.hk-pcard small{font-size:12px;opacity:.75}
.hk-pcard b{font-size:18px}
.hk-pcard em{font-style:normal;font-size:13px;font-weight:700;color:#FFD3A6}
.hk-src{margin:0;font-size:13px;line-height:1.9;color:var(--muted)}
.hk-src a,.hk-note a{color:var(--hk);text-decoration:underline;text-underline-offset:3px}
html[data-theme=dark] .hk-src a,html[data-theme=dark] .hk-note a{color:#E2B9A8}
.hk-credit{margin:0;font-size:11px;color:var(--muted);line-height:1.6}
.hk-more{padding-bottom:64px}
.hk-rail{list-style:none;margin:0;padding:4px max(var(--gut,16px),calc((100vw - var(--max,1200px)) / 2)) 8px;display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.hk-rail::-webkit-scrollbar{display:none}
.hk-rail li{flex:none;width:clamp(140px,38vw,190px);scroll-snap-align:start}

/* labelled facts (episode side + person page) */
.hk-info{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hk-info div{padding:12px 14px;border-radius:16px;background:var(--hk-cream);border:1px solid var(--hk-line)}
.hk-info dt{font-size:12px;color:var(--muted);margin-bottom:4px}
.hk-info dd{margin:0;font-size:15px;font-weight:700;line-height:1.5}
.hk-info--side{grid-template-columns:minmax(0,1fr)}
.hk-info--side div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;align-items:baseline}
.hk-info--side dt{margin:0}

/* ===== one person ===== */
.hk-phero{padding:22px 0 40px;text-align:center}
.hk-phero__in{position:relative;display:grid;justify-items:center;gap:10px}
.hk-phero__ph{width:clamp(132px,36vw,190px);aspect-ratio:1;margin-top:10px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 5px rgba(255,255,255,.95),0 0 0 9px var(--hk-or),0 22px 60px rgba(0,0,0,.35)}
.hk-phero__ph img{width:100%;height:100%;object-fit:cover}
.hk-phero h1{margin:14px 0 0;font-size:clamp(30px,7vw,54px);line-height:1.2}
.hk-phero__en{margin:0;font:600 14px var(--f-en);letter-spacing:.04em;color:rgba(255,255,255,.72)}
.hk-phero__count{margin:6px 0 0;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.12);font-size:14px}
.hk-phero__count b{font:700 16px var(--f-num);color:var(--hk-or)}
.hk-pbody{padding-block:26px 64px;display:grid;gap:clamp(26px,4vw,40px)}
.hk-pbody > .hk-info{margin-top:-46px;position:relative;z-index:1}
@media (min-width:700px){.hk-pbody > .hk-info{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}}
.hk-lead{margin:0;font-size:clamp(17px,1.7vw,19.5px);line-height:2;max-width:46em}
.hk-sec .hk-h2{margin-top:0}
.hk-pbody .hk-sec{margin-top:0}
.hk-note{font-size:13px;color:var(--muted);line-height:1.9}
.hk-note p{margin:0}

/* footer */
.hk-foot{background:var(--hk-ink);color:rgba(255,255,255,.75);padding:34px 0}
.hk-foot__in{display:grid;justify-items:center;text-align:center;gap:10px}
.hk-foot__logo{color:#fff}
.hk-foot__logo svg{width:110px;height:auto;display:block}
.hk-foot p{margin:0;font-size:13.5px;line-height:1.8;max-width:40em}
.hk-foot a{color:#fff}
.hk-foot__links{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}

/* gentle reveal */
.js .hk-rv{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.js .hk-rv.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js .hk-rv{opacity:1;transform:none;transition:none}}
