/* Entity pages (/book, /video, /series) — server-rendered, one column, no JS needed to read. */
.tke { padding-block: var(--s5) var(--s9); }
.tke h1 { margin: var(--s2) 0 var(--s3); font-size: var(--t-h2); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.tke h2 { margin: 0 0 var(--s4); font-size: var(--t-h3); }
.tke h2 small { color: var(--muted); font-weight: 500; font-size: .7em; margin-inline-start: 6px; }
.tke-desc { max-width: 68ch; color: var(--ink-2); line-height: 1.85; white-space: pre-line; }
.tke-vmeta { margin: 0 0 var(--s4); color: var(--muted); font-size: var(--t-sm); }
.tke-vmeta a { color: var(--green); font-weight: 600; }
.tke-actions, .tke-store { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.tke-note { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--wash); color: var(--ink-2); font-size: var(--t-sm); }
.tke-more { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); }

/* book */
.tke-book { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: var(--s7); align-items: start; }
.tke-book__cover { margin: 0; padding: var(--s4) var(--s5) var(--s6); }
.tke-book__cover .bk3__book { transform: rotateY(-22deg) rotateX(4deg); }
.tke-ar { margin: 0 0 var(--s4); color: var(--muted); font-family: var(--f-ar); font-size: var(--t-lg); }
.tke-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); gap: var(--s3) var(--s6); margin: var(--s5) 0; }
.tke-dl div { display: grid; gap: 2px; }
.tke-dl dt { color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.tke-dl dd { margin: 0; font-weight: 600; }
.tke-dl dd a { color: var(--green); }
.tke-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s5) var(--s4); padding: 0; margin: 0 0 var(--s5); list-style: none; }
.tke-grid a { display: grid; gap: var(--s2); color: inherit; }
.tke-grid img, .tke-ph { display: block; width: 100%; aspect-ratio: 3 / 4.3; object-fit: cover; border-radius: 7px 3px 3px 7px; background: var(--wash-2); box-shadow: var(--shadow-1); transition: transform var(--d2) var(--ease); }
.tke-grid a:hover img { transform: translateY(-3px); }
.tke-grid b { font-size: var(--t-sm); line-height: 1.4; }
.tke-grid small { color: var(--muted); font-size: var(--t-xs); }

/* video */
.tke-player { position: relative; aspect-ratio: 16 / 9; max-height: 72vh; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; background: #0b1510; box-shadow: var(--shadow-2); }
.tke-facade { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.tke-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tke-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--on-green); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform var(--d2) var(--ease); }
.tke-play .tk-icon { width: 28px; height: 28px; margin-inline-start: 3px; }
.tke-facade:hover .tke-play { transform: translate(-50%, -50%) scale(1.06); }
.tke-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tke-vbody { max-width: 820px; margin-top: var(--s5); }
.tke-vbody .tkp-kick a { color: inherit; }
.tke-eps { display: grid; gap: var(--s2); padding: 0; margin: 0; list-style: none; counter-reset: ep; }
.tke-eps a { display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); align-items: center; padding: var(--s2); border-radius: var(--r-md); color: inherit; transition: background var(--d1) var(--ease); }
.tke-eps a:hover, .tke-eps .is-now a { background: var(--wash); }
.tke-eps .is-now b { color: var(--green); }
.tke-eps img { display: block; width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); background: var(--wash-2); }
.tke-eps b { display: block; font-size: var(--t-sm); line-height: 1.4; }
.tke-eps small { color: var(--muted); font-size: var(--t-xs); }

/* series */
.tke-shead { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: var(--s6); align-items: start; }
.tke-shead__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); background: var(--wash-2); }

@media (max-width: 720px) {
  .tke-book, .tke-shead { grid-template-columns: 1fr; gap: var(--s5); }
  .tke-book__cover { width: min(220px, 62vw); margin-inline: auto; }   /* the 3D cover sizes from its box: one column gave it none (0×0 on phones) */
  .tke-player { border-radius: var(--r-md); margin-inline: calc(-1 * var(--gutter)); }
  .tke-eps a { grid-template-columns: 96px 1fr; }
  .tke-eps img { width: 96px; }
}
/* the surah a lesson explains → the reader */
.tke-quran { margin: var(--s4) 0 0; }
.tke-quran a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); background: var(--wash-2); color: var(--green-ink); font-weight: 600; font-size: var(--t-sm); }
.tke-quran a:hover { background: color-mix(in srgb, var(--green) 16%, var(--wash-2)); }

/* related, underneath the item (book · video · series): volumes, lessons, the teacher */
.tke-more h3 { margin: var(--s6) 0 var(--s3); font-size: var(--t-md); color: var(--ink-2); }
.tke-eps--series a { grid-template-columns: 140px 1fr; }
.tke-eps--series img, .tke-ph--wide { width: 140px; aspect-ratio: 16 / 9; }
.tke-ph--wide { display: block; border-radius: var(--r-sm); background: var(--wash-2); }
.tke-teacher__card { display: flex; align-items: center; gap: var(--s5); }
.tke-teacher__card h2 { margin: 2px 0 4px; }
.tke-teacher__card h2 a { color: inherit; }
.tke-teacher__card h2 a:hover { color: var(--green); }
.tke-teacher__card .tke-vmeta { margin: 0; }
.tke-teacher__av { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--wash-2); color: var(--green-ink);
  font: 700 1.8rem/1 var(--f-ui); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.tke-teacher__av img { width: 100%; height: 100%; object-fit: cover; }
.tke-teacher__links { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; }
[data-save][aria-pressed="true"] { border-color: var(--green); color: var(--green); }
@media (max-width: 720px) {
  .tke-eps--series a { grid-template-columns: 112px 1fr; }
  .tke-eps--series img, .tke-ph--wide { width: 112px; }
  .tke-teacher__av { width: 68px; height: 68px; }
}
/* a lesson's own page is the watch page: self-hosted <video>, previous / next */
.tke-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.tke-player__none { position: absolute; inset: auto var(--s4) var(--s4); margin: 0; }
.tke-wnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.tke-wnav__a { display: grid; gap: 2px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); min-width: 0; }
.tke-wnav__a:hover { border-color: var(--green); }
.tke-wnav__a small { color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.tke-wnav__a b { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tke-wnav__a--next { text-align: end; }   /* previous first (the reading start), as Islam Voice had it */
