/* ============================================================
   מרכז ההסברה החרדי - עיצוב
   צבעים: טורקיז-פטרול כהה, טורקיז בהיר ואלמוג. גופנים: Rubik ו-Assistant.
   ============================================================ */
:root {
  --bg: #F3F7F8;
  --bg-2: #E8F0F2;
  --surface: #FFFFFF;
  --surface-2: #F8FBFB;
  --line: #DCE6E8;
  --line-strong: #C2D2D6;
  --ink: #0B1A1E;
  --ink-2: #2D4147;
  --muted: #5E7278;

  --primary: #0B7A75;
  --primary-2: #086560;
  --primary-soft: #DDF2EF;
  --bright: #2DD4BF;
  --cyan: #22D3EE;
  --accent: #FF6B4A;
  --accent-2: #FF8A6E;
  --accent-ink: #1B0D08;
  --accent-soft: #FFE9E3;
  --night: #06252B;
  --night-2: #0A3740;
  --night-3: #041A1F;
  --focus: #0B7A75;

  --head: "Rubik", "Segoe UI", Arial, sans-serif;
  --body: "Assistant", "Segoe UI", Arial, sans-serif;

  --maxw: 1200px;
  --header-h: 72px;
  --r: 20px;
  --r-sm: 14px;
  --shadow-1: 0 1px 2px rgba(6, 37, 43, .06), 0 2px 8px rgba(6, 37, 43, .04);
  --shadow-2: 0 26px 50px -26px rgba(6, 37, 43, .38), 0 10px 18px -10px rgba(6, 37, 43, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071417;
    --bg-2: #0A1C20;
    --surface: #0E2328;
    --surface-2: #0B1E22;
    --line: #17343A;
    --line-strong: #24484F;
    --ink: #E6F0F1;
    --ink-2: #B9CBCE;
    --muted: #87A0A5;
    --primary: #2DD4BF;
    --primary-2: #5EEAD4;
    --primary-soft: #0F3A3A;
    --accent-soft: #3A1C14;
    --focus: #5EEAD4;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 26px 50px -26px rgba(0, 0, 0, .8), 0 10px 18px -10px rgba(0, 0, 0, .5);
  }
}

/* ---------------------------------------------------------- בסיס */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, var(--maxw)); } }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; font-weight: 700; color: var(--ink); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--head); font-size: .82rem; font-weight: 500;
  color: var(--primary); background: var(--primary-soft);
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.sec-head { max-width: 760px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.sec-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
.sec-lead { color: var(--muted); margin-top: .9rem; font-size: 1.1rem; max-width: 640px; }

/* ---------------------------------------------------------- כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px;
  font-family: var(--head); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .25s;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 10px 24px -12px rgba(11, 122, 117, .8); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 10px 24px -10px rgba(255, 107, 74, .75); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-wa { background: #25D366; color: #062A14; }
.btn-wa svg { fill: currentColor; }
.btn-wa:hover { background: #3BE07A; box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .8); }
.btn-small { min-height: 38px; padding: .35rem 1rem; font-size: .9rem; }
.btn .ext { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-btn { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: var(--night-3); }
  .btn-primary:hover { background: var(--primary-2); }
}

/* ---------------------------------------------------------- כותרת עליונה */
.topbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--header-h); color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.topbar.is-solid, .nav-open .topbar {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(6, 37, 43, .45);
}
.topbar-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo { width: 42px; height: 42px; border-radius: 12px; }
.brand-name { font-family: var(--head); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.brand-name b { font-weight: 800; color: var(--bright); }
.topbar.is-solid .brand-name b, .nav-open .brand-name b { color: var(--primary); }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: .2rem; }
.nav a {
  font-family: var(--head); font-size: .97rem; text-decoration: none;
  padding: .5rem .85rem; border-radius: 999px; opacity: .88;
  transition: background-color .2s, opacity .2s;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.topbar.is-solid .nav a:hover { background: var(--bg-2); }
/* "שליחת חומר": קישור רגיל, כדי שכפתור התרומה יהיה הכפתור היחיד שבולט */
.nav .nav-cta { opacity: .88; }

.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.nav-open .menu-icon { background: transparent; }
.nav-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .menu-btn { display: inline-flex; }
  .logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.1rem; }
  .nav {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem; box-shadow: 0 20px 30px -24px rgba(6, 37, 43, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav a { padding: .85rem .6rem; border-radius: 12px; font-size: 1.05rem; opacity: 1; }
  .nav a:hover { background: var(--bg-2); }
}

/* ---------------------------------------------------------- פתיחה */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(13, 90, 98, .9), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%);
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 4.5rem)) 0 clamp(2rem, 5vw, 3rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; animation: drift 20s ease-in-out infinite alternate; }
.orb-1 { width: 560px; height: 560px; top: -220px; inset-inline-end: -140px; background: radial-gradient(circle, rgba(20, 184, 166, .75), transparent 65%); }
.orb-2 { width: 480px; height: 480px; bottom: -260px; inset-inline-start: 8%; background: radial-gradient(circle, rgba(34, 211, 238, .5), transparent 65%); animation-duration: 26s; }
.orb-3 { width: 340px; height: 340px; top: 18%; inset-inline-start: -120px; background: radial-gradient(circle, rgba(255, 107, 74, .35), transparent 65%); animation-duration: 31s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.1); }
  100% { transform: translate(-40px, 30px) scale(.94); }
}

.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--head); font-size: .88rem; color: rgba(255, 255, 255, .8);
  padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ping 2s var(--ease) infinite; opacity: 0;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  color: #fff; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(2.7rem, 7vw, 5.2rem); line-height: 1.02; margin-top: 1.3rem;
}
.grad {
  background: linear-gradient(90deg, #5EEAD4 0%, #22D3EE 55%, #A5F3FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 1.3rem; max-width: 560px; font-size: clamp(1.1rem, 1.7vw, 1.25rem); color: rgba(255, 255, 255, .78); }

.hero-search {
  position: relative; display: flex; align-items: center; gap: .5rem; margin-top: 2rem; max-width: 580px;
  padding: .4rem; padding-inline-start: 3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--bright); background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.hero-search svg {
  position: absolute; inset-inline-start: 1.1rem; width: 20px; height: 20px;
  fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.9; stroke-linecap: round;
}
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 1.05rem; padding: .5rem 0; }
.hero-search input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-search input:focus { outline: none; }
.hero-search .btn { min-height: 44px; }

.topics { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; max-width: 600px; }
.topics-label { font-size: .9rem; color: rgba(255, 255, 255, .6); margin-inline-end: .2rem; }
.topic {
  font-family: var(--head); font-size: .88rem; color: rgba(255, 255, 255, .88);
  padding: .3rem .85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  transition: border-color .2s, background-color .2s, color .2s;
}
.topic:hover { border-color: var(--bright); color: #fff; background: rgba(45, 212, 191, .12); }

.feature {
  position: relative; display: block; text-decoration: none; color: #fff;
  padding: .75rem; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  transition: transform .4s var(--ease), border-color .3s;
}
.feature::before {
  content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(45, 212, 191, .28), transparent);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }
.feature:hover { transform: translateY(-6px); border-color: rgba(45, 212, 191, .6); }
.feature-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--night-2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 26, 31, .7), transparent 55%); }
.feature-play {
  position: absolute; z-index: 2; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 10px rgba(255, 107, 74, .22), 0 16px 34px -12px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feature-play svg { width: 28px; height: 28px; fill: currentColor; margin-inline-end: -4px; }
.feature:hover .feature-play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255, 107, 74, .18), 0 16px 34px -12px rgba(0, 0, 0, .7); }
.feature-badge {
  position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px;
  font-family: var(--head); font-size: .78rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 999px; background: var(--bright); color: var(--night-3);
}
.feature-media .dur { position: absolute; z-index: 2; bottom: 12px; inset-inline-end: 12px; }
.feature-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem .6rem .5rem; }
.feature-speaker { font-size: .9rem; color: var(--bright); font-family: var(--head); }
.feature-title { font-family: var(--head); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.3; }

.stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .1);
}
.stats li { display: flex; flex-direction: column; }
.stats b { font-family: var(--head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { color: rgba(255, 255, 255, .6); margin-top: .4rem; font-size: .95rem; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-feature { max-width: 560px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; }
  .hero-search { padding-inline-start: 2.6rem; }
  .hero-search svg { inset-inline-start: .9rem; }
  .hero-search .btn { padding-inline: 1rem; }
}

/* ---------------------------------------------------------- רצועת הדוברים */
.strip {
  position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.strip-set { display: flex; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(var(--shift, 50%)); } }
.strip-item {
  display: inline-flex; align-items: center; gap: 1.1rem; padding: 1.05rem 1.1rem;
  font-family: var(--head); font-size: 1.02rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.strip-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bright); }
.strip-item:hover { color: var(--primary); }
.strip-tag { font-size: .74rem; font-weight: 500; color: var(--primary); background: var(--primary-soft); padding: .1rem .55rem; border-radius: 999px; margin-inline-start: -.2rem; }

/* ---------------------------------------------------------- ספרים */
.books { background: var(--bg); }
.book-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.book {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.5rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.book-visual { display: block; perspective: 900px; }
.book-visual img, .book-tile {
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 22px 40px -22px rgba(6, 37, 43, .7), 0 6px 14px -8px rgba(6, 37, 43, .35);
  transition: transform .5s var(--ease);
}
.book:hover .book-visual img, .book:hover .book-tile { transform: rotateY(-10deg) translateX(-4px); }
.book-tile {
  aspect-ratio: 115 / 190; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem .85rem; color: #fff; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(45, 212, 191, .45), transparent 60%),
    linear-gradient(165deg, var(--night-2), var(--night-3));
}
.book-tile::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 8px; background: rgba(0, 0, 0, .25); }
.book-tile svg { width: 30px; height: 30px; fill: none; stroke: var(--bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.book-tile strong { font-family: var(--head); font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.book-tile small { font-size: .78rem; color: rgba(255, 255, 255, .7); }
.tag {
  display: inline-block; font-family: var(--head); font-size: .78rem; font-weight: 600;
  padding: .2rem .65rem; border-radius: 999px; background: var(--accent-soft); color: #B23A1E;
}
@media (prefers-color-scheme: dark) { .tag { color: var(--accent-2); } }
.book h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; margin-top: .7rem; }
.book-series { font-size: .92rem; color: var(--muted); margin-top: .3rem; }
.book-by { font-family: var(--head); color: var(--primary); font-weight: 500; margin-top: .35rem; }
.book-summary { color: var(--ink-2); margin-top: .8rem; }
.book-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.book-facts li { font-size: .85rem; color: var(--muted); background: var(--bg-2); padding: .15rem .65rem; border-radius: 8px; }
.book-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
@media (max-width: 980px) { .book-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .book { grid-template-columns: 1fr; }
  .book-visual { width: 130px; }
}

/* ---------------------------------------------------------- שאלות ותשובות */
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.q-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  min-height: 176px; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background-color .3s;
}
.q-card::before {
  content: "?"; position: absolute; z-index: -1; top: -1.6rem; inset-inline-end: .6rem;
  font-family: var(--head); font-size: 8rem; font-weight: 800; line-height: 1; color: var(--primary-soft);
  transition: transform .5s var(--ease), color .3s;
}
.q-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--bright); background: var(--surface); }
.q-card:hover::before { transform: rotate(-12deg) scale(1.08); color: rgba(45, 212, 191, .25); }
.q-text { font-family: var(--head); font-size: 1.22rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.q-answer { display: flex; align-items: center; gap: .7rem; font-size: .93rem; color: var(--muted); }
.q-play {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); transition: transform .3s var(--ease);
}
.q-play svg { width: 15px; height: 15px; fill: currentColor; margin-inline-end: -2px; }
.q-card:hover .q-play { transform: scale(1.1); }
.q-answer b { color: var(--ink-2); font-weight: 600; }

.ask-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding: 1.4rem 1.6rem; border-radius: var(--r);
  background: var(--primary-soft); border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent);
}
.ask-band h3 { font-size: 1.3rem; font-weight: 700; }
.ask-band p { color: var(--ink-2); margin-top: .2rem; }

/* חלון "שאלה חדשה" */
.ask {
  margin: auto; padding: 0; border: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
}
.ask::backdrop { background: rgba(2, 12, 15, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ask[open] { animation: player-in .3s var(--ease); }
.ask-form { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.ask-head { display: flex; align-items: center; justify-content: space-between; }
.ask-head h3 { font-size: 1.5rem; font-weight: 700; }
.ask .icon-btn { color: var(--ink); background: var(--bg-2); }
.ask .icon-btn:hover { background: var(--line); }
.ask-lead { color: var(--muted); margin-top: -.4rem; }
.ask-form .btn { align-self: flex-start; }

/* כפתור תרומה בכותרת */
.donate-btn {
  order: 3; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  min-height: 40px; padding: .4rem 1.15rem; border-radius: 999px;
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  background: var(--accent); color: var(--accent-ink);
  transition: background-color .2s, transform .2s var(--ease), box-shadow .25s;
}
.donate-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.donate-btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.nav { order: 2; }
@media (max-width: 1100px) {
  .donate-btn { order: 1; margin-inline-start: auto; min-height: 40px; padding: .4rem 1rem; font-size: .95rem; }
  .menu-btn { order: 2; margin-inline-start: 0; }
}
@media (max-width: 400px) { .brand-name { display: none; } }

/* תיבת אישור בטופס */
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.check input { flex: none; width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--primary); }
.check a { color: var(--primary); text-underline-offset: 3px; }

/* דפים משפטיים: תנאי שימוש, פרטיות, נגישות */
.legal-page { background: var(--bg); }
.legal { padding: calc(var(--header-h) + 2.5rem) 0 4rem; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .4rem; }
.legal .updated { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.8; }
.legal p { margin-top: .6rem; }
.legal ul { margin: .6rem 0 0; padding-inline-start: 1.4rem; }
.legal a { color: var(--primary); text-underline-offset: 3px; }
.legal mark { background: var(--accent-soft); color: var(--ink); padding: 0 .3em; border-radius: 4px; }
.legal .note { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--primary-soft); color: var(--ink); }

/* לשונית שיתוף בצד המסך */
.share-tab {
  position: fixed; left: 0; top: 55%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .9rem .55rem; border-radius: 0 16px 16px 0;
  background: var(--night); color: #fff; font-family: var(--head); font-weight: 500; font-size: .9rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55);
  transform: translateX(-34%);
  transition: transform .3s var(--ease), background-color .2s;
}
.share-tab:hover, .share-tab:focus-visible { transform: none; background: var(--primary); }
.share-tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.share-tab span { writing-mode: vertical-rl; }
@media (prefers-reduced-motion: reduce) { .share-tab { transition: none; } }

/* חלון שיתוף */
.share-link { display: flex; align-items: center; gap: .6rem; padding: .6rem; border-radius: 16px; background: var(--bg-2); }
.share-link input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink-2); font-size: .95rem; padding: .4rem .5rem; }
.share-link input:focus { outline: none; }
.share-link .btn { flex: none; }
.share-nets { display: flex; justify-content: space-between; gap: .4rem; margin-top: .4rem; }
.share-net {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--muted); text-decoration: none; cursor: pointer;
}
.share-net span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.share-net:hover span { background: var(--primary); color: #fff; transform: translateY(-3px); }
.share-net svg { width: 24px; height: 24px; fill: currentColor; }
.share-net svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- ספריית הווידאו */
.cat-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.cat-jump a {
  font-family: var(--head); font-size: .92rem; text-decoration: none; color: var(--primary);
  padding: .35rem .95rem; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--primary) 35%, transparent);
  transition: background-color .2s, color .2s;
}
.cat-jump a:hover { background: var(--primary); color: #fff; }
.category { padding-block: 0; }
.category + .category { margin-top: clamp(2.6rem, 6vw, 4rem); }
/* קפיצה לקטגוריה: הכותרת שלה נעצרת מתחת לשורת הסינון הנעוצה */
/* (גובה הכותרת העליונה כבר נכלל ב-scroll-padding של הדף) */
.category { scroll-margin-top: var(--toolbar-h, 150px); }
@media (max-width: 760px) { .category { scroll-margin-top: 0; } }
.cat-head {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem;
  padding-bottom: 1rem; border-bottom: 2px solid var(--line);
}
.cat-num {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--head); font-size: 1.3rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), #0E7490);
}
.cat-head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.cat-head p { color: var(--muted); }
.cat-head h3 .shorts-logo { width: .9em; height: .9em; margin-inline-start: .35em; vertical-align: -.1em; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-count { margin-inline-start: auto; font-family: var(--head); font-size: .9rem; color: var(--muted); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .cat-num { color: var(--night-3); } }
@media (max-width: 560px) { .cat-count { display: none; } }
.library { background: var(--bg); }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; flex-direction: column; gap: .8rem;
  padding-block: .9rem; margin-bottom: 1.8rem; background: var(--bg);
}
.toolbar::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--line); }
.toolbar-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
/* שורה אחת תמיד. כשיש יותר מדי דוברים, גוללים הצידה */
.chips {
  display: flex; gap: .5rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.chip { flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: .3rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-family: var(--head); font-size: .92rem; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-count { font-size: .75rem; min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--bg-2); color: var(--muted); text-align: center; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .2); color: #fff; }
@media (prefers-color-scheme: dark) {
  .chip[aria-pressed="true"] { color: var(--night-3); }
  .chip[aria-pressed="true"] .chip-count { color: var(--night-3); background: rgba(4, 26, 31, .15); }
}
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button {
  font-family: var(--head); font-size: .88rem; color: var(--muted); padding: .35rem .9rem; border-radius: 999px;
  white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.search { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 340px; margin-inline-start: auto; }
.search svg {
  position: absolute; inset-inline-start: .9rem; width: 18px; height: 18px;
  fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; pointer-events: none;
}
.search input {
  width: 100%; min-height: 44px; padding: .4rem 2.7rem .4rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.result-line { display: flex; align-items: center; gap: 1rem; font-size: .95rem; color: var(--ink-2); }

@media (max-width: 760px) {
  .chips {
    scrollbar-width: none; padding-bottom: 0;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .toolbar { position: static; }
  .seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: 1 0 auto; }
  .search { max-width: none; flex-basis: 100%; }
}

.speaker { padding-block: 1.2rem 1rem; }
.speaker + .speaker { margin-top: 1.6rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.speaker-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.3rem; }
.speaker-head h4 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); font-weight: 700; }
.speaker-meta { color: var(--muted); font-size: .95rem; }
.series + .series { margin-top: 2rem; }
.series-title { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1rem; }
.series-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--bright), var(--cyan)); }
.series-title span { font-size: .85rem; color: var(--muted); font-weight: 400; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 1.7rem 1.3rem; }
.series.is-collapsed:not(.is-searching) .card.is-extra { display: none; }
.series:not(.is-collapsed) .more-btn, .series.is-searching .more-btn { display: none; }
.more-btn {
  display: flex; align-items: center; gap: .55rem; margin: 1.7rem auto 0;
  min-height: 44px; padding: .4rem 1.4rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-family: var(--head); font-size: .95rem; color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.more-btn:hover { border-color: var(--primary); color: var(--primary); }
.more-btn::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--r-sm); }
.card:focus-visible { outline-offset: 5px; }
.thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-sm); background: var(--night-2); box-shadow: var(--shadow-1);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 26, 31, .6), transparent 50%); opacity: .75; transition: opacity .3s; }
.card:hover .thumb { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card:hover .thumb img { transform: scale(1.06); }
.card:hover .thumb::after { opacity: 1; }
.thumb-fallback {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 1rem; text-align: center;
  background: radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, .4), transparent 60%), linear-gradient(160deg, var(--night-2), var(--night-3));
}
.thumb-fallback span { font-family: var(--head); font-weight: 600; font-size: 1.15rem; color: #fff; }
.thumb.no-img .thumb-fallback { display: flex; }
.thumb-play {
  position: absolute; z-index: 2; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 8px rgba(255, 107, 74, .2), 0 10px 24px -8px rgba(0, 0, 0, .6);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--ease);
}
.thumb-play svg { width: 21px; height: 21px; fill: currentColor; margin-inline-end: -3px; }
.card:hover .thumb-play, .card:focus-visible .thumb-play { opacity: 1; transform: none; }
@media (hover: none) { .thumb-play { opacity: .95; transform: scale(.82); } }
.dur, .thumb-dur {
  position: absolute; z-index: 2; bottom: 9px; inset-inline-end: 9px;
  padding: .12rem .5rem; border-radius: 7px; background: rgba(4, 26, 31, .82); color: #fff;
  font-family: var(--head); font-size: .76rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.badges { position: absolute; z-index: 2; top: 9px; inset-inline-start: 9px; display: flex; gap: .35rem; }
.badge { font-family: var(--head); font-size: .72rem; font-weight: 600; padding: .14rem .55rem; border-radius: 7px; }
.badge-short { background: var(--bright); color: var(--night-3); }
.badge-kolel { background: var(--accent); color: var(--accent-ink); letter-spacing: .04em; }
.badge-fr {
  display: inline-flex; align-items: center; gap: .35rem; background: #fff; color: #0B1A1E;
  box-shadow: 0 0 0 1px rgba(4, 26, 31, .12);
}
.badge-fr svg { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(4, 26, 31, .15); }
.speaker-head .badge-fr, .chip .badge-fr { font-size: .74rem; padding: .12rem .5rem; border-radius: 7px; }
.badge-tag { background: var(--night-3); color: var(--bright); }
.card-speaker { font-family: var(--head); font-size: .86rem; font-weight: 500; color: var(--primary); }
.badge-ext { display: inline-flex; align-items: center; gap: .3rem; background: rgba(4, 26, 31, .82); color: #fff; }
.badge-ext .ext { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-body { display: flex; flex-direction: column; gap: .25rem; padding: .9rem .15rem 0; }
.card-title {
  font-family: var(--head); font-weight: 500; font-size: 1.04rem; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.card:hover .card-title { color: var(--primary); }
.card-title[dir="ltr"] { text-align: left; }
.card-sub { font-size: .92rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: .84rem; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ---------------------------------------------------------- הפלג הירושלמי */
.peleg { background: linear-gradient(180deg, var(--primary-soft), var(--bg)); border-top: 1px solid var(--line); }
.peleg .speaker { padding-block: 0; }
.rabbi-head { margin-bottom: 1.6rem; }
.rabbi-head h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
.rabbi-role { font-family: var(--head); font-weight: 500; color: var(--primary); margin-top: .2rem; }
.rabbi-head .speaker-meta { margin-top: .1rem; }

/* ---------------------------------------------------------- תיעוד הסתה ואפליה */
.evidence {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(900px 480px at 10% 0%, rgba(13, 90, 98, .85), transparent 65%), linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%);
}
.evidence::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.evidence .sec-head h2 { color: #fff; }
.evidence .kicker { background: rgba(255, 107, 74, .16); color: var(--accent-2); }
.evidence .sec-lead { color: rgba(255, 255, 255, .72); max-width: 700px; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.ev-card {
  display: flex; flex-direction: column; gap: .9rem; text-decoration: none; color: inherit;
  padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.ev-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.ev-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 107, 74, .16); color: var(--accent-2); }
.ev-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ev-card h3 { color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }
.ev-card p { color: rgba(255, 255, 255, .75); max-width: 520px; }
.ev-card.is-wide { grid-column: 1 / -1; }
.ev-points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 2rem; margin-top: .3rem; }
.ev-points li { position: relative; padding-inline-start: 1.1rem; color: rgba(255, 255, 255, .8); font-size: .97rem; }
.ev-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
@media (max-width: 760px) { .ev-points { grid-template-columns: 1fr; } }
.ev-go { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--head); font-weight: 600; color: var(--accent-2); }
.ev-go svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.ev-card:hover .ev-go svg { transform: translate(-3px, -3px); }
.ev-source { margin-top: 1.6rem; font-size: .92rem; color: rgba(255, 255, 255, .6); max-width: 760px; }
.ev-source a { color: rgba(255, 255, 255, .9); text-underline-offset: 3px; }
@media (max-width: 760px) { .ev-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- מסמכים */
.sources { background: var(--surface); border-top: 1px solid var(--line); }
.doc {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.doc::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: linear-gradient(var(--bright), var(--cyan)); }
.doc-figure {
  display: block; background: #fff; padding: 9px; border-radius: 8px;
  box-shadow: 0 18px 34px -20px rgba(6, 37, 43, .55);
  transform: rotate(-2deg); transition: transform .45s var(--ease);
}
.doc:hover .doc-figure { transform: rotate(0) translateY(-4px); }
.doc-figure img { border-radius: 3px; }
.doc-list { display: grid; gap: 1.2rem; }
.doc-tile {
  aspect-ratio: 3 / 4; border-radius: 12px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.1rem; color: #fff; max-width: 200px;
  background: radial-gradient(120% 70% at 100% 0%, rgba(45, 212, 191, .45), transparent 60%), linear-gradient(165deg, var(--night-2), var(--night-3));
  box-shadow: 0 18px 34px -20px rgba(6, 37, 43, .55);
}
.doc-tile svg { width: 34px; height: 34px; fill: none; stroke: var(--bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.doc-tile b { font-family: var(--head); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
@media (max-width: 640px) { .doc-tile { aspect-ratio: auto; flex-direction: row; align-items: center; gap: .8rem; max-width: none; padding: .8rem 1rem; } }
.doc-kicker { font-family: var(--head); font-size: .88rem; color: var(--primary); font-weight: 500; }
.doc-title { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-top: .5rem; }
.doc-summary { color: var(--ink-2); margin-top: .8rem; max-width: 640px; }
.doc-quote {
  margin-top: .9rem; padding: .7rem 1rem; border-inline-start: 3px solid var(--bright);
  background: var(--primary-soft); border-radius: 0 10px 10px 0;
  font-family: var(--head); font-weight: 500; color: var(--ink); max-width: 640px;
}
.doc-details { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
@media (max-width: 640px) {
  .doc { grid-template-columns: 1fr; }
  .doc-figure { width: 140px; }
}

/* ---------------------------------------------------------- שיתוף */
.share-band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(120deg, #0B7A75 0%, #0A8F87 45%, #0E7490 100%);
  padding-block: clamp(2.8rem, 6vw, 4rem);
}
.share-band::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  top: -260px; inset-inline-start: -120px; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
}
.share-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.share-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.share-band p { color: rgba(255, 255, 255, .82); margin-top: .5rem; max-width: 560px; }
.share-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------------------------------------------------------- אודות וטופס */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 800; }
.about-text { color: var(--ink-2); margin-top: 1rem; font-size: 1.1rem; max-width: 620px; }
.features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.features li {
  display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  padding: 1.3rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.features li:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.f-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--bright), var(--primary));
  box-shadow: 0 12px 24px -12px rgba(11, 122, 117, .7);
}
.f-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 420px) { .features { grid-template-columns: 1fr; } }

.suggest {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 1rem;
}
.suggest h3 { font-size: 1.45rem; font-weight: 700; }
.suggest-lead { color: var(--muted); margin-top: -.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-family: var(--head); font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface-2);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.suggest .btn { align-self: flex-start; min-width: 140px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-status { font-size: .95rem; padding: .7rem .9rem; border-radius: 12px; background: var(--bg-2); color: var(--ink-2); }
.form-status.ok { background: var(--primary-soft); color: var(--primary); }
.form-status.err { background: var(--accent-soft); color: #B23A1E; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- תחתית */
.footer { background: var(--night-3); color: rgba(255, 255, 255, .68); padding-block: 2.8rem; font-size: .93rem; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .9rem; max-width: 560px; }
.footer-brand strong { font-family: var(--head); font-size: 1.12rem; color: #fff; font-weight: 600; display: block; }
.visits { margin-top: .7rem; font-family: var(--head); font-size: .9rem; color: rgba(255, 255, 255, .6); }
.visits b { color: var(--bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .8); font-family: var(--head); }
.footer-links a:hover { color: var(--bright); }

/* ---------------------------------------------------------- כניסה הדרגתית */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .orb, .strip-track, .pulse::after, .feature::before { animation: none; }
  .thumb, .thumb img, .book-visual img, .book-tile, .doc-figure, .feature, .q-card { transition: none; }
}

/* ============================================================
   הנגן
   ============================================================ */
.player {
  margin: auto; padding: 0; border: 0;
  width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: #06171B; color: #fff;
  border-radius: 22px; overflow: hidden auto;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85);
}
.player::backdrop { background: rgba(2, 12, 15, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player[open] { animation: player-in .34s var(--ease); }
@keyframes player-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .player[open] { animation: none; } }

.player-head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.3rem 1rem; }
.player-titles { flex: 1; min-width: 0; }
.player-kicker { font-family: var(--head); font-size: .85rem; color: var(--bright); }
.player-head h3 { color: #fff; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; margin-top: .2rem; line-height: 1.3; }
.player-head h3[dir="ltr"] { text-align: left; }
.player-meta { font-size: .88rem; color: rgba(255, 255, 255, .6); margin-top: .3rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); transition: background-color .2s, transform .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

.stage { background: #000; display: flex; flex-direction: column; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.media, .media iframe, .media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media video { object-fit: contain; background: #000; }

/* השכבה המגינה: חוסמת לחיצה על רכיבי יוטיוב (קישורים, כותרות, המלצות) */
.shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }

.veil {
  position: absolute; inset: 0; z-index: 3;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.5rem; text-align: center;
  background-color: #06171B;
  background-image: linear-gradient(rgba(4, 26, 31, .5), rgba(4, 26, 31, .85)), var(--poster, none);
  background-size: cover; background-position: center;
}
.veil.is-on { display: flex; }
.veil.is-paused, .veil.is-start { cursor: pointer; }
.stage[data-engine="kolel"] .veil.is-paused { background: rgba(4, 26, 31, .35); }
.veil-play {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 12px rgba(255, 107, 74, .2), 0 14px 34px -10px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease);
}
.veil-play:hover { transform: scale(1.07); }
.veil-play svg { width: 30px; height: 30px; fill: currentColor; margin-inline-end: -4px; }
.veil-title { font-family: var(--head); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 600; color: #fff; max-width: 640px; }
.veil-text { color: rgba(255, 255, 255, .75); font-size: .95rem; max-width: 520px; }
.veil-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.veil-actions .btn { min-height: 44px; white-space: normal; text-align: center; }
.veil-next small { display: block; font-size: .75rem; opacity: .75; }
.veil-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--bright); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* כשהדפדפן דורש לחיצה בתוך הסרטון עצמו (בעיקר באייפון) */
.stage.direct-tap .shield, .stage.direct-tap .veil { display: none; }
.stage-hint {
  position: absolute; z-index: 4; top: 12px; inset-inline: 0; margin: auto; width: max-content; max-width: calc(100% - 24px);
  padding: .35rem .9rem; border-radius: 999px; background: rgba(4, 26, 31, .88); color: #fff;
  font-size: .85rem; pointer-events: none;
}
/* בזמן פרסומת של יוטיוב השכבה המגינה מפנה מקום, כדי שאפשר יהיה לדלג */
.stage.in-ad .shield { pointer-events: none; }

.transport {
  display: flex; align-items: center; gap: .35rem; padding: .5rem .8rem;
  background: #06171B; border-top: 1px solid rgba(255, 255, 255, .06); direction: ltr;
}
.t-btn { height: 38px; min-width: 38px; padding: 0 .4rem; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; transition: background-color .2s; }
.t-btn:hover { background: rgba(255, 255, 255, .1); }
.t-btn svg { width: 22px; height: 22px; fill: currentColor; }
.t-btn svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-rate { font-family: var(--head); font-size: .85rem; font-weight: 500; min-width: 46px; font-variant-numeric: tabular-nums; }
.t-time { font-family: var(--head); font-size: .82rem; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 .3rem; }
.t-seek { flex: 1; min-width: 60px; height: 22px; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; --p: 0%; }
.t-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--bright) var(--p), rgba(255, 255, 255, .22) var(--p)); }
.t-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.t-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--bright); }
.t-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; margin-top: -5px; background: #fff; box-shadow: 0 0 0 4px rgba(45, 212, 191, .35); border: 0; }
.t-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(45, 212, 191, .35); }
.t-seek:focus-visible { outline: none; }
.t-seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent); }

.stage:fullscreen { width: 100%; height: 100%; }
.stage:fullscreen .screen { flex: 1; aspect-ratio: auto; }
.stage:-webkit-full-screen { width: 100%; height: 100%; }
.stage:-webkit-full-screen .screen { flex: 1; aspect-ratio: auto; }

.player-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; padding: .9rem 1.3rem 1.1rem; }
.player-source { font-size: .88rem; color: rgba(255, 255, 255, .6); }
.player-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.toast {
  position: absolute; bottom: 18px; inset-inline: 0; margin: auto; width: max-content; max-width: calc(100% - 32px); z-index: 6;
  padding: .45rem 1rem; border-radius: 999px; background: #fff; color: var(--night-3);
  font-size: .9rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}

@media (max-width: 640px) {
  .player { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; margin: auto 0 0; }
  .player-head { padding: .9rem 1rem .8rem; }
  .player-foot { padding: .8rem 1rem 1rem; }
  .transport { padding: .4rem .5rem; gap: .15rem; }
  .t-time { font-size: .76rem; padding: 0 .15rem; }
  .t-rate { min-width: 40px; }
}
