/* ==========================================================================
   TafsirKurd 2.0 — homepage «دەنگێ ئیسلامێ» section, premium pass.
   Scoped to #voice (.tk-iv) so the Islam Voice page itself is untouched.
   Featured series = a cinematic banner (thumbnail as backdrop, one slow push-in
   when it scrolls into view); episodes with speaker faces, «نوی» badges and a
   play overlay; series as playlist stacks; speakers in story rings.
   Motion: transform/opacity only, finite (A25 floor).
   ========================================================================== */
.tk-iv__stats { margin: var(--s3) 0 0; color: var(--muted); font-size: var(--t-sm); }
.tk-iv__stats b { color: var(--green-ink); font-weight: 800; font-size: var(--t-md); }

/* ── featured banner ── */
.tk-iv .tk-feature { display: block; position: relative; isolation: isolate; min-height: clamp(380px, 38vw, 520px); border-radius: var(--r-xl);
  overflow: hidden; background: #0b1510; color: #F4E8CC; box-shadow: 0 30px 60px -30px rgba(8, 20, 14, .55); }
.tk-iv .tk-feature__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tk-iv .tk-feature__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 30% 50%; }
html.tk-js .tk-iv .tk-feature.is-in .tk-feature__bg img { animation: tkIvPush 3.2s var(--ease) both; }
@keyframes tkIvPush { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.tk-iv .tk-feature:hover .tk-feature__bg img { transform: scale(1.05); transition: transform 1.4s var(--ease); }
/* readable side: text sits on the right (RTL) over a deep gradient */
.tk-iv .tk-feature__bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(8, 16, 12, .96) 0%, rgba(8, 16, 12, .86) 34%, rgba(8, 16, 12, .35) 62%, rgba(8, 16, 12, .05) 100%),
              linear-gradient(0deg, rgba(8, 16, 12, .55) 0%, rgba(8, 16, 12, 0) 40%); }
[dir="ltr"] .tk-iv .tk-feature__bg::after { transform: scaleX(-1); }
.tk-iv .tk-feature__body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  width: min(560px, 100%); min-height: inherit; padding: var(--s7) var(--s7); }
.tk-iv .tk-feature__tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 12px; border-radius: 999px;
  background: rgba(140, 196, 164, .16); border: 1px solid rgba(140, 196, 164, .35); color: #8CC4A4; font-weight: 700; font-size: var(--t-xs); }
.tk-iv .tk-feature__tag .tk-icon { width: 14px; height: 14px; }
.tk-iv .tk-feature__title { font: 800 clamp(1.7rem, 1.6vw + 1.2rem, 2.8rem)/1.25 var(--f-ui); color: #FBF3DD; text-wrap: balance; }
.tk-iv .tk-feature__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #D7CDB4; font-size: var(--t-sm); }
.tk-iv .tk-feature__av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(244, 232, 204, .7); }
.tk-iv .tk-feature__count:not(:empty)::before { content: '·'; margin-inline-end: 10px; opacity: .6; }
.tk-iv .tk-feature__desc { color: #C9BFA6; font-size: var(--t-sm); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-iv .tk-feature__cta { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin-top: var(--s3); font-weight: 700; font-size: var(--t-lg); color: #FBF3DD; }
.tk-iv .tk-feature__play { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: #F4E8CC; color: #0F3A25; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform var(--d3) var(--ease); }
.tk-iv .tk-feature__play .tk-icon { width: 26px; height: 26px; fill: currentColor; margin-inline-start: 3px; }
/* a ring that ripples out three times when the banner arrives (finite, transform/opacity) */
.tk-iv .tk-feature__play::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(244, 232, 204, .55); opacity: 0; }
html.tk-js .tk-iv .tk-feature.is-in .tk-feature__play::before { animation: tkIvRing 1.8s var(--ease) .6s 3; }
@keyframes tkIvRing { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.tk-iv .tk-feature:hover .tk-feature__play { transform: scale(1.08); }
@media (max-width: 900px) {
  .tk-iv .tk-feature { min-height: 0; }
  .tk-iv .tk-feature__bg { position: relative; display: block; aspect-ratio: 16 / 9; z-index: 0; }
  .tk-iv .tk-feature__bg::after { background: linear-gradient(0deg, #0b1510 0%, rgba(11, 21, 16, 0) 55%); }
  .tk-iv .tk-feature__body { width: 100%; margin-top: -48px; padding: 0 var(--s5) var(--s5); }
  .tk-iv .tk-feature__play { width: 54px; height: 54px; }
}

/* ── rails: a little more room and depth ── */
.tk-iv .tk-row { margin-top: var(--s7); }
.tk-iv .tk-media__img { border-radius: var(--r-lg); box-shadow: 0 14px 28px -18px rgba(15, 30, 20, .55); }
.tk-iv .tk-media:hover .tk-media__img img { transform: scale(1.06); }

/* episodes */
.tk-ep__new { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 9px; border-radius: 6px; background: var(--green); color: var(--on-green); font-size: 11px; font-weight: 700; }
.tk-ep__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(244, 232, 204, .94); color: #0F3A25; opacity: 0; transform: scale(.8); transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease); }
.tk-ep__play .tk-icon { width: 22px; height: 22px; fill: currentColor; margin-inline-start: 2px; }
.tk-ep:hover .tk-ep__play, .tk-ep:focus-visible .tk-ep__play { opacity: 1; transform: none; }
.tk-ep__row { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.tk-ep__row .tk-media__t { margin-top: 0; }
.tk-ep__av { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-strong); }

/* series: a playlist stack — two offset sheets behind the thumbnail */
.tk-rail--stack { padding-top: 12px; }
.tk-ser__stack { position: relative; display: block; }
.tk-ser__stack::before, .tk-ser__stack::after { content: ''; position: absolute; inset-inline: 8%; top: -6px; bottom: 6px; border-radius: var(--r-lg);
  background: var(--sand); opacity: .75; z-index: 0; }
.tk-ser__stack::after { inset-inline: 16%; top: -12px; bottom: 12px; opacity: .45; }
.tk-ser__stack .tk-media__img { position: relative; z-index: 1; }
.tk-ser:hover .tk-ser__stack .tk-media__img { transform: translate3d(0, -3px, 0); }
.tk-ser .tk-media__img { transition: transform var(--d3) var(--ease); }
.tk-ser__count { position: absolute; bottom: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  background: rgba(8, 20, 14, .82); color: #F4E8CC; font-size: 11px; font-weight: 700; }
.tk-ser__count .tk-icon { width: 13px; height: 13px; }

/* speakers: story rings */
.tk-iv .tk-speakers { grid-auto-columns: 128px; padding-top: 4px; }
.tk-iv .tk-speaker { display: grid; justify-items: center; gap: 2px; }
.tk-speaker__ring { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; padding: 3px; margin-bottom: 8px;
  background: conic-gradient(from 210deg, var(--green), #8CC4A4, #D8B56A, var(--green)); transition: transform var(--d3) var(--ease); }
.tk-iv .tk-speaker .tk-speaker__ring img { width: 100%; height: 100%; margin: 0; border-radius: 50%; object-fit: cover; border: 3px solid var(--cream); box-shadow: none; }
.tk-iv .tk-speaker:hover .tk-speaker__ring { transform: translate3d(0, -4px, 0) scale(1.03); }
.tk-speaker__name { font-weight: 600; font-size: var(--t-sm); line-height: 1.4; text-align: center; }
.tk-iv .tk-speaker small { color: var(--muted); font-size: var(--t-xs); }

@media (prefers-reduced-motion: reduce) {
  .tk-iv .tk-feature__bg img, .tk-iv .tk-feature__play::before { animation: none !important; }
}
