/* שיעורי הרב — הדמיה "סטרים": ספוטיפיי (מבנה, ספרייה, נגן) × נטפליקס (שלט ראשי, שורות, סדרה/עונה/פרק) × אפל מיוזיק (נגן מלא, טקסט) */
:root{
  color-scheme: dark;
  /* Primitive */
  --ink-950: oklch(0.135 0.006 60);
  --ink-900: oklch(0.175 0.007 60);
  --ink-850: oklch(0.21 0.008 60);
  --ink-800: oklch(0.25 0.009 60);
  --ink-700: oklch(0.32 0.01 60);
  --paper-50: oklch(0.975 0.006 85);
  --paper-200: oklch(0.83 0.012 80);
  --paper-400: oklch(0.70 0.012 80);
  --gold-400: oklch(0.83 0.135 84);
  --gold-500: oklch(0.76 0.14 80);
  --gold-ink: oklch(0.22 0.04 70);
  --play-disc: oklch(0.11 0.01 60 / 0.62);
  --play-disc-ink: #fff;
  --play-disc-border: 1.5px solid oklch(1 0 0 / 0.82);
  --play-disc-shadow: 0 4px 16px oklch(0 0 0 / 0.42);
  --wine-500: oklch(0.50 0.16 22);
  --cedar-500: oklch(0.52 0.09 158);
  /* Semantic */
  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-2: var(--ink-850);
  --hover: var(--ink-800);
  --line: oklch(1 0 0 / 0.08);
  --text: var(--paper-50);
  --text-2: var(--paper-200);
  --text-3: var(--paper-400);
  --accent: var(--gold-400);
  --accent-ink: var(--gold-ink);
  --mishna: var(--wine-500);
  --parasha: var(--cedar-500);
  /* Type */
  --f-ui: "Rubik", system-ui, sans-serif;
  --f-title: "Frank Ruhl Libre", "Times New Roman", serif;
  --fs-billboard: clamp(2.9rem, 7.4vw, 6rem);
  --fs-h1: clamp(2.3rem, 5vw, 4.25rem);
  --fs-row: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-meta: 0.9375rem;
  --fs-small: 0.875rem;
  /* Space & shape */
  --gutter: clamp(16px, 4vw, 56px);
  --r-card: 8px;
  --r-tile: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --side-w: 300px;
  --bar-h: 88px;
  --read-scale: 1;
}
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* מגע (נייד): בלי הריבוע הכחול בנגיעה, בלי הגדלה בנגיעה כפולה (למשל שתי קפיצות של 15 שניות), בלי בחירת טקסט ותפריט "שמור תמונה" בלחיצה ארוכה על כפתור או כריכה */
a, button, input, label, select, textarea, summary, [role=button], [tabindex]{ touch-action: manipulation; }
button, .bar, .tabs, .np-head, .np-cover, .np-scrub, .np-ctl, .np-tools, .chip{ -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a img, button img, .cover img{ -webkit-user-drag: none; -webkit-touch-callout: none; }
/* הזזה הצידה (סרגל, כריכה) — בלי רישום המשתנה המעבר "קופץ" במקום לגלוש */
@property --sx{ syntax: '<length>'; inherits: false; initial-value: 0px; }
body{ margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-ui); font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection{ background: oklch(0.83 0.135 84 / 0.35); color: var(--text); }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img{ display: block; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i{ width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num{ direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
*{ scrollbar-width: thin; scrollbar-color: var(--ink-700) transparent; }

/* ---------- מבנה ---------- */
.shell{ display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
.side{ display: none; }
.main{ min-width: 0; padding-bottom: 84px; }
body.has-bar .main{ padding-bottom: 156px; }
@media (min-width: 1024px){
  .shell{ grid-template-columns: var(--side-w) 1fr; gap: 8px; padding: 8px; height: 100dvh; }
  body.has-bar .shell{ padding-bottom: calc(var(--bar-h) + 8px); }
  .brand-mob + .top-chips{ margin-inline-start: 0 !important; }
  .side{ display: flex; flex-direction: column; gap: 8px; min-height: 0; }
  .side-top, .side-lib{ background: var(--surface); border-radius: var(--r-card); }
  .side-top{ padding: 20px 20px 12px; }
  .side-lib{ flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 12px 8px; }
  .main{ --page-bg: var(--surface); background: var(--surface); border-radius: var(--r-card); overflow-y: auto; overflow-x: hidden; padding-bottom: 40px; position: relative; }
  .tabs{ display: none !important; }
  .brand-mob{ display: none !important; }
}
.brand{ display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--f-title); line-height: 1; }
.brand-word{ font-weight: 900; font-size: 1.6rem; color: var(--accent); letter-spacing: -0.01em; }
.brand-sub{ font-weight: 700; font-size: 1.15rem; color: var(--text); }
.side-nav{ display: grid; gap: 2px; margin-top: 22px; }
.side-nav a{ display: flex; align-items: center; gap: 16px; padding: 10px 8px; font-weight: 600; font-size: 1.05rem; color: var(--text-3); border-radius: 6px; transition: color .2s; }
.side-nav a.is-on{ color: var(--text); } @media (hover: hover){ .side-nav a:hover{ color: var(--text); } }
.side-lib-head{ display: flex; align-items: center; gap: 12px; padding: 4px 8px 14px; font-weight: 600; color: var(--text-2); }
.side-chips{ display: flex; gap: 8px; padding: 0 8px 12px; flex-wrap: wrap; }
.side-list{ list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.side-list a{ display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 6px; }
@media (hover: hover){ .side-list a:hover{ background: var(--hover); } }
.side-list img{ width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--surface-2); }
.side-list b{ display: block; font-weight: 500; font-size: 1rem; }
.side-list span{ font-size: var(--fs-small); color: var(--text-3); }

/* ---------- כפתורים ---------- */
.chip{ height: 34px; padding: 0 14px; border-radius: 999px; background: oklch(1 0 0 / 0.08); color: var(--text); font-size: var(--fs-small); font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, transform .16s var(--ease); }
@media (hover: hover){ .chip:hover{ background: oklch(1 0 0 / 0.14); } }
.chip:active{ transform: scale(0.97); }
.chip.is-on{ background: var(--text); color: var(--bg); }
.ib{ width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--text-2); transition: color .2s, background .2s, opacity .2s, transform .16s var(--ease); }
@media (hover: hover){ .ib:hover:not(:disabled){ color: var(--text); background: oklch(1 0 0 / 0.07); } }
.ib:active:not(:disabled){ transform: scale(0.94); }
.ib:disabled{ opacity: 0.28; cursor: default; }
.ib.txt{ font-weight: 600; font-size: 0.95rem; }
.ib[aria-pressed="true"]{ color: var(--accent); }
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px 0 30px; border-radius: 6px; font-weight: 600; font-size: 1.1rem; transition: background .2s, transform .16s var(--ease); }
.btn .i{ width: 26px; height: 26px; }
.btn:active{ transform: scale(0.97); }
.btn-play{ background: var(--text); color: var(--bg); }
@media (hover: hover){ .btn-play:hover{ background: oklch(0.88 0.006 85); } }
.btn-ghost{ background: oklch(0.6 0.01 80 / 0.42); color: var(--text); backdrop-filter: blur(6px); }
@media (hover: hover){ .btn-ghost:hover{ background: oklch(0.6 0.01 80 / 0.3); } }
.playbtn{ width: 44px; height: 44px; border-radius: 999px; background: var(--text); color: var(--bg); display: grid; place-items: center; transition: transform .16s var(--ease); }
.playbtn .i{ width: 20px; height: 20px; }
@media (hover: hover){ .playbtn:hover{ transform: scale(1.05); } }
.playbtn:active{ transform: scale(0.95); }
.fab{ width: 58px; height: 58px; border-radius: 999px; background: var(--play-disc); color: var(--play-disc-ink); border: 1.75px solid oklch(1 0 0 / 0.84); backdrop-filter: blur(8px); display: grid; place-items: center; box-shadow: var(--play-disc-shadow); transition: transform .2s var(--ease), background .2s, border-color .2s; }
.fab .i{ width: 24px; height: 24px; transform: translateX(1px); }
@media (hover: hover){ .fab:hover{ transform: scale(1.06); background: oklch(0.14 0.01 60 / 0.78); border-color: #fff; } }
.fab:active{ transform: scale(0.96); }

/* ---------- כותרת עליונה ---------- */
.top{ position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter) 12px; transition: background .3s; }
.top.is-solid{ background: oklch(0.135 0.006 60 / 0.92); backdrop-filter: blur(14px); }
@media (min-width: 1024px){ .top.is-solid{ background: oklch(0.175 0.007 60 / 0.92); } }
.bsd{ position: absolute; inset-inline-end: var(--gutter); top: 6px; font-size: 0.8rem; color: var(--text-3); }
.top-chips{ display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.brand-mob + .top-chips{ margin-inline-start: auto; }
@media (max-width: 1023px){
  .top{ flex-wrap: wrap; row-gap: 10px; }
  .brand-mob + .top-chips{ margin-inline-start: 0; width: 100%; }
}
.top.is-flat .top-chips{ display: none; }

/* ---------- שלט ראשי (נטפליקס) ---------- */
.billboard{ position: relative; margin-top: -120px; min-height: min(86vh, 760px); display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(28px, 6vh, 72px); isolation: isolate; }
@media (min-width: 1024px){ .billboard{ margin-top: -62px; min-height: min(78vh, 680px); } }
.billboard > img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.billboard::after{ content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, oklch(0.135 0.006 60 / 0.6) 30%, transparent 62%),
    linear-gradient(to left, oklch(0.135 0.006 60 / 0.85) 0%, oklch(0.135 0.006 60 / 0.35) 45%, transparent 75%); }
@media (min-width: 1024px){ .billboard::after{ background:
    linear-gradient(to top, var(--surface) 0%, oklch(0.175 0.007 60 / 0.55) 28%, transparent 60%),
    linear-gradient(to left, oklch(0.175 0.007 60 / 0.9) 0%, oklch(0.175 0.007 60 / 0.4) 42%, transparent 72%); } }
.bb-in{ max-width: 640px; }
.bb-tag{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-meta); color: var(--text); }
.bb-tag .dot{ width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px oklch(0.83 0.135 84 / 0.22); }
.bb-title{ font-family: var(--f-title); font-weight: 900; font-size: var(--fs-billboard); line-height: 0.95; margin: 14px 0 16px; letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 30px oklch(0 0 0 / 0.5); }
.bb-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--text-2); font-size: var(--fs-meta); }
.bb-meta .new{ color: var(--accent); font-weight: 600; }
.bb-desc{ font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--text); margin: 14px 0 26px; max-width: 34ch; text-shadow: 0 1px 12px oklch(0 0 0 / 0.6); }
.bb-actions{ display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- שורות ---------- */
.row{ margin-top: clamp(26px, 4vh, 40px); position: relative; }
.row-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: 12px; }
.row-head h2{ margin: 0; font-size: var(--fs-row); font-weight: 700; letter-spacing: -0.005em; }
.row-head a{ font-size: var(--fs-small); font-weight: 600; color: var(--text-3); }
@media (hover: hover){ .row-head a:hover{ color: var(--text); text-decoration: underline; text-underline-offset: 4px; } }
.track{ display: flex; gap: clamp(8px, 1vw, 14px); overflow-x: auto; padding: 4px var(--gutter) 18px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar{ display: none; }
.track > *{ scroll-snap-align: start; flex: none; }
.row-nav{ position: absolute; top: 44px; bottom: 18px; width: calc(var(--gutter) - 4px); display: none; place-items: center; background: oklch(0.135 0.006 60 / 0.55); color: var(--text); z-index: 3; opacity: 0; transition: opacity .2s, background .2s; }
.row-nav .i{ width: 34px; height: 34px; }
.row-nav.prev{ inset-inline-start: 0; }
.row-nav.next{ inset-inline-end: 0; }
@media (hover: hover){ .row-nav:hover{ background: oklch(0.135 0.006 60 / 0.8); } }
@media (hover: hover) and (min-width: 1024px){ .row-nav{ display: grid; } .row:hover .row-nav{ opacity: 1; } }

/* כרטיס רחב (16:9) */
.wide{ width: clamp(250px, 24vw, 340px); }
.wide .pic{ position: relative; aspect-ratio: 16/9; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.wide .pic img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover){ .wide:hover .pic img{ transform: scale(1.05); } }
.wide .pic::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0 0 0 / 0.78), transparent 58%); }
.pic-title{ position: absolute; inset-inline: 12px; bottom: 10px; z-index: 1; font-family: var(--f-title); font-weight: 900; font-size: 1.55rem; line-height: 1.05; text-shadow: 0 1px 10px oklch(0 0 0 / 0.6); }
.pic-title small{ display: block; font-family: var(--f-ui); font-weight: 500; font-size: var(--fs-small); color: var(--text-2); margin-top: 4px; }
.badge{ position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; padding: 3px 10px; border-radius: 5px; background: oklch(0.13 0.012 60 / 0.74); border: 1px solid oklch(0.84 0.12 84 / 0.38); backdrop-filter: blur(8px); color: oklch(0.91 0.105 85); font-weight: 600; font-size: 0.76rem; line-height: 1.3; letter-spacing: 0.01em; box-shadow: 0 3px 10px oklch(0 0 0 / 0.28); }
.pic .over{ position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.pic .over span{ width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: oklch(0.11 0.01 60 / 0.68); color: #fff; border: 1.5px solid oklch(1 0 0 / 0.85); box-shadow: 0 4px 14px oklch(0 0 0 / 0.45); backdrop-filter: blur(6px); transition: transform .18s var(--ease), background .18s; }
.pic .over .i{ transform: translateX(1px); }
.wide:focus-visible .over{ opacity: 1; } @media (hover: hover){ .wide:hover .over{ opacity: 1; } }
.prog{ position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: oklch(1 0 0 / 0.25); z-index: 2; }
.prog i{ display: block; height: 100%; background: var(--accent); }
.cap{ padding: 8px 2px 0; }
.cap b{ display: block; font-weight: 500; font-size: 1rem; }
.cap span{ font-size: var(--fs-small); color: var(--text-3); }

/* פוסטר (2:3) — מסכת = סדרה */
.poster{ width: clamp(150px, 14.5vw, 210px); }
.poster .pic{ position: relative; aspect-ratio: 2/3; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.poster .pic img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover){ .poster:hover .pic img{ transform: scale(1.05); } }
.poster .pic::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0 0 0 / 0.85) 4%, transparent 55%); }
.poster .pic-title{ font-size: clamp(1.7rem, 2.2vw, 2.2rem); bottom: 14px; }
.poster.is-empty .pic img{ filter: grayscale(1) brightness(0.45); }
.poster .seder{ position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; padding: 2px 8px; border-radius: 5px; background: oklch(0.13 0.01 60 / 0.58); backdrop-filter: blur(6px); font-size: 0.78rem; font-weight: 600; color: oklch(0.95 0.008 85); box-shadow: 0 2px 8px oklch(0 0 0 / 0.24); }

/* ריבוע (פרשה / מועד) */
.sq{ display: block; width: clamp(150px, 13vw, 190px); }
.sq .pic{ position: relative; aspect-ratio: 1; border-radius: var(--r-tile); overflow: hidden; background: var(--surface-2); box-shadow: 0 8px 24px oklch(0 0 0 / 0.35); }
.sq .pic img{ width: 100%; height: 100%; object-fit: cover; }
.sq .pic::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0 0 0 / 0.7), transparent 60%); }
.sq .pic-title{ font-size: 1.5rem; }
.sq .fabmini{ position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 999px; background: var(--play-disc); color: var(--play-disc-ink); border: var(--play-disc-border); backdrop-filter: blur(8px); display: grid; place-items: center; box-shadow: var(--play-disc-shadow); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .3s var(--ease), background .2s; }
.sq .fabmini .i{ width: 18px; height: 18px; transform: translateX(1px); }
.sq:focus-within .fabmini{ opacity: 1; transform: none; } @media (hover: hover){ .sq:hover .fabmini{ opacity: 1; transform: none; } }
@media (hover: none){ .sq .fabmini{ opacity: 1; transform: none; width: 40px; height: 40px; } }
.sq-wrap{ padding: 10px; margin: -10px; border-radius: 10px; transition: background .2s; }
@media (hover: hover){ .sq-wrap:hover{ background: var(--hover); } }


/* אריחי סדרים (ספוטיפיי "גלישה") */
.tiles{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 14px; padding: 0 var(--gutter); }
.tile{ position: relative; aspect-ratio: 1.6; border-radius: 8px; overflow: hidden; padding: 14px 16px; font-weight: 700; font-size: 1.35rem; background: var(--c, var(--surface-2)); isolation: isolate; transition: transform .2s var(--ease); }
.tile:active{ transform: scale(0.98); }
.tile img{ position: absolute; width: 46%; aspect-ratio: 1; object-fit: cover; bottom: -6%; inset-inline-end: -8%; transform: rotate(-24deg); box-shadow: 0 6px 18px oklch(0 0 0 / 0.4); border-radius: 4px; z-index: -1; }
.tile small{ display: block; font-weight: 500; font-size: var(--fs-small); opacity: 0.85; margin-top: 2px; }

/* ---------- עמוד סדרה (נטפליקס) ---------- */
.hero{ position: relative; margin-top: -120px; min-height: min(70vh, 600px); display: flex; align-items: flex-end; padding: 0 var(--gutter) 28px; isolation: isolate; }
@media (min-width: 1024px){ .hero{ margin-top: -62px; } }
.hero > img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after{ content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--page-bg, var(--bg)) 2%, oklch(0.135 0.006 60 / 0.5) 40%, transparent 75%), linear-gradient(to left, oklch(0.135 0.006 60 / 0.75), transparent 70%); }
.hero h1{ font-family: var(--f-title); font-weight: 900; font-size: var(--fs-h1); line-height: 0.98; margin: 6px 0 12px; letter-spacing: -0.02em; }
.hero .kick{ font-weight: 600; color: var(--text-2); }
.kick-link{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px 4px 14px; margin-bottom: 6px; border-radius: 999px;
  background: oklch(1 0 0 / 0.14); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18);
  color: var(--text); font-weight: 600; font-size: var(--fs-small);
  transition: background .2s, transform .16s var(--ease);
}
.kick-link .i{ width: 16px; height: 16px; color: var(--accent); }
@media (hover: hover){ .kick-link:hover{ background: oklch(1 0 0 / 0.22); } }
.kick-link:active{ transform: scale(0.97); }
.up-link{
  display: inline-flex; align-items: center; gap: 4px;
  margin: 4px var(--gutter) 4px; padding: 5px 12px 5px 14px; border-radius: 999px;
  background: oklch(1 0 0 / 0.08); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); font-size: var(--fs-small); font-weight: 600;
  transition: background .2s, color .2s, transform .16s var(--ease);
}
.up-link .i{ width: 16px; height: 16px; color: var(--accent); }
@media (hover: hover){ .up-link:hover{ background: oklch(1 0 0 / 0.14); color: var(--text); } }
.up-link:active{ transform: scale(0.97); }
:root[data-theme="day"] .up-link{ background: oklch(0.97 0.012 85 / 0.72); backdrop-filter: blur(10px); color: var(--text); }
.hero p{ max-width: 46ch; margin: 12px 0 22px; font-size: 1.1rem; color: var(--text); }
.hero .acts{ display: flex; align-items: center; gap: 14px; }
.hero .lacts{ flex-wrap: wrap; gap: 10px 12px; }
.lacts .btn{ height: 44px; padding: 0 18px 0 20px; font-size: 1rem; }
.lacts .btn .i{ width: 18px; height: 18px; }
.lacts .ib{ background: oklch(0.6 0.01 80 / 0.3); color: var(--text); }
.series{ padding: 0 var(--gutter); }
.seasons{ display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 4px; margin-bottom: 8px; }
.season{ display: inline-grid; place-items: center; flex: none; height: 40px; min-width: 64px; padding: 0 14px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
@media (hover: hover){ .season:hover{ background: var(--hover); color: var(--text); } }
.season.is-on{ background: var(--text); color: var(--bg); }
.season[aria-disabled="true"]{ opacity: 0.4; pointer-events: none; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ep-head{ display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 6px; }
.ep-head h2{ margin: 0; font-size: 1.35rem; }
.ep-head span{ color: var(--text-3); font-size: var(--fs-meta); }
.ep{ display: grid; grid-template-columns: 3.2rem clamp(120px, 18vw, 200px) 1fr; align-items: center; gap: 18px; padding: 16px 12px; border-radius: 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
@media (hover: hover){ .ep:hover{ background: var(--surface-2); } }
.ep.is-now{ background: oklch(0.83 0.135 84 / 0.08); }
.ep-n{ font-family: var(--f-title); font-weight: 900; font-size: 2.1rem; color: var(--text-3); text-align: center; }
.ep.is-now .ep-n{ color: var(--accent); }
.ep .pic{ position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.ep .pic img{ width: 100%; height: 100%; object-fit: cover; }
.ep .pic .over{ opacity: 1; background: oklch(0 0 0 / 0.25); }
.ep .pic .over span{ width: 42px; height: 42px; }
.ep .pic .over .i{ width: 18px; height: 18px; }
.ep.is-now .pic .over span{ background: oklch(0.11 0.015 65 / 0.78); color: var(--gold-400); border-color: var(--gold-400); }
.ep-body b{ display: flex; justify-content: space-between; gap: 12px; font-size: 1.1rem; font-weight: 600; }
.ep-body b span{ font-weight: 400; font-size: var(--fs-meta); color: var(--text-3); }
.ep-body p{ margin: 6px 0 0; font-family: var(--f-title); font-size: 1.08rem; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-body p.wait{ color: var(--text-3); font-family: var(--f-ui); font-size: var(--fs-meta); }
@media (max-width: 640px){
  .ep{ grid-template-columns: 116px 1fr; gap: 14px; padding: 14px 4px; }
  .ep-n{ display: none; }
  .ep-body b{ flex-direction: column; gap: 0; }
}
.empty-season{ padding: 40px 0; color: var(--text-2); }

/* עמוד סדר — רשת פוסטרים */
.grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; padding: 0 var(--gutter); }
.grid .poster{ width: auto; }

/* חיפוש */
.searchbox{ position: relative; margin: 8px var(--gutter) 26px; max-width: 520px; }
.searchbox input{ width: 100%; height: 52px; border-radius: 999px; border: 0; padding: 0 52px 0 20px; background: var(--paper-50); color: var(--bg); font: inherit; font-size: 1.05rem; }
.searchbox input::placeholder{ color: oklch(0.45 0.01 80); }
.searchbox input{ text-overflow: ellipsis; }
.searchbox .i{ position: absolute; inset-inline-start: 16px; top: 14px; color: oklch(0.35 0.01 80); }
.results{ padding: 0 var(--gutter); display: grid; gap: 4px; }
.res{ display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 6px; }
@media (hover: hover){ .res:hover{ background: var(--hover); } }
.res img{ width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.res span{ display: block; font-size: var(--fs-small); color: var(--text-3); }
.page-title{ font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 700; margin: 12px var(--gutter) 18px; letter-spacing: -0.01em; }
.note{ padding: 0 var(--gutter); color: var(--text-2); max-width: 52ch; }

/* ---------- כריכה (משותף לנגן ולסרגל) ---------- */
.cover{ position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--surface-2); isolation: isolate; container-type: inline-size; }
.cover img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover::after{ content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(0 0 0 / 0.72) 0%, oklch(0 0 0 / 0.15) 46%, transparent 62%), linear-gradient(to bottom, oklch(0 0 0 / 0.6), transparent 30%); }
.cv-mark{ position: absolute; top: 6.5cqi; inset-inline-start: 7cqi; font-family: var(--f-title); font-weight: 900; font-size: 5.2cqi; color: var(--accent); line-height: 1; }
.cv-t{ position: absolute; inset-inline: 7cqi; bottom: 13cqi; font-family: var(--f-title); font-weight: 900; font-size: 15cqi; line-height: 0.95; letter-spacing: -0.02em; color: var(--text); text-shadow: 0 2px 18px oklch(0 0 0 / 0.45); }
.cv-s{ position: absolute; inset-inline: 7cqi; bottom: 6.5cqi; font-weight: 600; font-size: 5cqi; color: oklch(1 0 0 / 0.85); }

/* ---------- נגן תחתון ---------- */
.bar{ position: fixed; z-index: 40; inset-inline: 8px; bottom: calc(68px + env(safe-area-inset-bottom)); height: 64px; border-radius: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 0 8px 0 10px; background: var(--np-b, oklch(0.3 0.03 40)); box-shadow: 0 10px 30px oklch(0 0 0 / 0.5); overflow: hidden; transition: background .6s; }
.bar[hidden]{ display: none; }
.bar-prog{ position: absolute; inset-inline: 12px; bottom: 0; height: 2px; background: oklch(1 0 0 / 0.22); }
.bar-prog i{ display: block; height: 100%; width: 0; background: var(--text); }
.bar-now{ display: flex; align-items: center; gap: 12px; min-width: 0; text-align: start; transform: translateX(var(--sx, 0px)); }
.bar-art{ width: 46px; flex: none; }
.bar-art .cover{ border-radius: 6px; }
.bar-txt{ min-width: 0; display: grid; }
.bar-txt b, .bar-txt span{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-txt b{ font-weight: 600; font-size: 1rem; }
.bar-txt span{ font-size: var(--fs-small); color: oklch(1 0 0 / 0.72); }
.bar-ctl, .bar-btns{ display: flex; align-items: center; gap: 6px; }
.bar-end{ display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.hide-mob{ display: none !important; }
.pill{ height: 30px; padding: 0 10px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.35); color: var(--text-2); font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums; transition: color .2s, box-shadow .2s; }
@media (hover: hover){ .pill:hover{ color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); } }
@media (min-width: 1024px){
  .bar{ inset-inline: 0; bottom: 0; height: var(--bar-h); border-radius: 0; grid-template-columns: minmax(240px, 1fr) minmax(380px, 1.6fr) minmax(240px, 1fr); padding: 0 16px; background: var(--bg); box-shadow: none; }
  .bar-prog{ display: none; }
  .bar-art{ width: 58px; }
  .bar-ctl{ flex-direction: column; gap: 2px; justify-content: center; }
  .bar-btns{ gap: 4px; }
  .bar-btns .ib{ width: 38px; height: 38px; }
  .bar-btns .ib .i{ width: 22px; height: 22px; }
  .bar-btns .playbtn{ width: 38px; height: 38px; margin: 0 6px; }
  .hide-mob{ display: inline-grid !important; }
  .bar-end.hide-mob, .bar-scrub.hide-mob{ display: flex !important; }
  .bar-txt span{ color: var(--text-3); }
}
.bar-scrub{ width: 100%; max-width: 620px; display: flex; align-items: center; gap: 10px; }
.bar-scrub .t{ font-size: 0.8rem; color: var(--text-3); min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
input[type=range]{ -webkit-appearance: none; appearance: none; flex: 1; height: 18px; background: transparent; cursor: pointer; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track{ height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--text) var(--p), oklch(1 0 0 / 0.25) var(--p)); }
input[type=range]::-moz-range-track{ height: 4px; border-radius: 4px; background: oklch(1 0 0 / 0.25); }
input[type=range]::-moz-range-progress{ height: 4px; border-radius: 4px; background: var(--text); }
input[type=range]::-webkit-slider-thumb{ -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 99px; background: var(--text); opacity: 0; transition: opacity .15s; }
input[type=range]:focus-visible::-webkit-slider-thumb{ opacity: 1; } @media (hover: hover){ input[type=range]:hover::-webkit-slider-thumb{ opacity: 1; } }
input[type=range]::-moz-range-thumb{ width: 13px; height: 13px; border: 0; border-radius: 99px; background: var(--text); }

/* ---------- סרגל ניווט תחתון ---------- */
.tabs{ position: fixed; z-index: 39; inset-inline: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(to top, var(--bg) 55%, oklch(0.135 0.006 60 / 0.85)); }
.tabs a{ display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 0.8rem; font-weight: 500; color: var(--text-3); }
.tabs a.is-on{ color: var(--text); }
.tabs a.is-on .i{ stroke-width: 2.4; }

/* ---------- נגן מלא (אפל מיוזיק) ---------- */
.np{ position: fixed; inset: 0; z-index: 60; overflow: hidden; color: var(--text); background: var(--np-c, oklch(0.22 0.03 40)); transform: translateY(100%); transition: transform .5s var(--ease); }
.np.is-open{ transform: none; }
.np[hidden]{ display: none; }
/* רקע: שלושה כתמי צבע מהכריכה, נעים לאט — במקום תמונה מטושטשת עכורה */
.np-bg{ position: absolute; inset: 0; overflow: hidden; filter: blur(70px) saturate(1.25); }
.np-bg i{ position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.9; animation: drift 26s ease-in-out infinite alternate; }
.np-bg i:nth-child(1){ background: var(--np-a, oklch(0.5 0.1 40)); top: -25vmax; inset-inline-start: -15vmax; }
.np-bg i:nth-child(2){ background: var(--np-b, oklch(0.4 0.08 60)); bottom: -30vmax; inset-inline-end: -20vmax; animation-delay: -9s; animation-duration: 32s; }
.np-bg i:nth-child(3){ background: var(--np-d, oklch(0.35 0.06 30)); top: 30%; left: 30%; width: 45vmax; height: 45vmax; animation-delay: -17s; }
@keyframes drift{ from{ transform: translate(0, 0) scale(1); } to{ transform: translate(8vmax, 6vmax) scale(1.15); } }
.np-in{ position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) clamp(20px, 5vw, 56px) max(18px, env(safe-area-inset-bottom)); }
.np-head{ display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.np-head .ib{ color: var(--text); }
.np-head .i{ width: 28px; height: 28px; }
.np-from{ font-size: var(--fs-small); font-weight: 600; color: oklch(1 0 0 / 0.75); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-body{ flex: 1; min-height: 0; display: grid; }
.np-main{ width: min(100%, 420px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.np-cover{ width: 100%; border-radius: 12px; box-shadow: 0 30px 60px -12px oklch(0 0 0 / 0.55); transform: translateX(var(--sx, 0px)) scale(var(--sc, 1)); transition: transform .55s var(--ease), box-shadow .55s var(--ease), opacity .2s; }
.np.is-paused .np-cover{ --sc: 0.84; box-shadow: 0 14px 30px -10px oklch(0 0 0 / 0.4); }
.np-mini{ display: none; align-items: center; gap: 12px; text-align: start; padding: 4px 0 14px; }
.np-mini .cover{ width: 56px; border-radius: 6px; flex: none; }
.np-mini b{ display: block; font-weight: 600; }
.np-mini span span{ font-size: var(--fs-small); color: oklch(1 0 0 / 0.72); }
.np-meta{ margin-top: clamp(20px, 4vh, 34px); }
.np-meta h2{ margin: 0; font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.np-meta p{ margin: 2px 0 0; color: oklch(1 0 0 / 0.72); font-size: 1.05rem; }
.np-scrub{ margin-top: 18px; }
.np-scrub input{ width: 100%; height: 22px; }
/* מגע (נייד): הנגן עוקב אחרי האצבע — בזמן גרירה בלי מעבר; הפס מתעבה כשגוררים; כפתורים נלחצים */
.np.is-drag, .bar-now.is-drag, .np-cover.is-drag{ transition: none !important; }
@media (max-width: 1023px){ .bar, .np-head, .np-cover, .np-meta, .np-bg{ touch-action: none; } .np{ overscroll-behavior: contain; } }
/* כל הנגן המלא נגרר (גם מהרווחים שבין הפקדים — שם הדפדפן היה "חוטף" את המגע ועוצר את הגרירה); רק הטקסט והתור נגללים */
@media (max-width: 1023px){
  .np{ touch-action: none; }
  .np-pane{ touch-action: pan-y; overscroll-behavior: contain; }
  .np:not([hidden]){ will-change: transform; }
  .np.is-drag .np-bg i{ animation-play-state: paused; }
  .bar-now{ transition: opacity .15s; }
  .bar-now:active{ opacity: 0.72; }
}
/* נייד: הנגן נפתח מתוך הסרגל (app.js, morphAt) — בזמן המעבר הכל נשלט מהקוד, בלי מעברי CSS שייגררו מאחור.
   הרקע (--bgo) מופיע קודם, הפקדים (--fo) אחריו; הכריכה עפה מהתמונה הקטנה בסרגל (translate/scale) */
.np.is-morph, .np.is-morph *{ transition: none !important; }
.np.is-morph{ background: transparent; border-radius: 14px 14px 0 0; }
.np.is-morph::before{ content: ""; position: absolute; inset: 0; background: var(--np-c, oklch(0.22 0.03 40)); opacity: var(--bgo, 1); }
.np.is-morph .np-bg{ opacity: var(--bgo, 1); will-change: opacity; }
.np.is-morph .np-bg i{ animation-play-state: paused; }
.np.is-morph :is(.np-head, .np-meta, .np-scrub, .np-ctl, .np-tools, .np-mini, .np-panel){ opacity: var(--fo, 1); }
.np.is-morph .np-cover{ will-change: translate, scale; }
/* טלפון נמוך: הכריכה קטנה כדי שהכל ייכנס — אחרת היא נמעכת למלבן */
@media (max-width: 899px){
  .np-cover{ flex: none; align-self: center; width: min(100%, max(190px, 100vh - 430px)); width: min(100%, max(190px, 100dvh - 430px)); }
}
/* ציר הזמן: הפס דק, אבל שטח הנגיעה גבוה — קל לתפוס באצבע */
.np-scrub input{ height: 36px; margin-block: -7px; }
.np-scrub input::-webkit-slider-runnable-track{ transition: height .15s ease-out; }
.np-scrub.is-scrub input::-webkit-slider-runnable-track{ height: 12px; }
.np-scrub.is-scrub .np-times{ color: var(--text); }
.np-ctl .ib, .bar .playbtn{ transition: transform .12s ease-out; }
.np-ctl .ib:active:not(:disabled), .np-play:active, .bar .playbtn:active{ transform: scale(0.92); }
@media (prefers-reduced-motion: reduce){ .np, .np-cover, .bar-now{ transition-duration: .01ms !important; } }
.np-scrub input::-webkit-slider-runnable-track{ height: 6px; border-radius: 6px; background: linear-gradient(to right, oklch(1 0 0 / 0.92) var(--p), oklch(1 0 0 / 0.28) var(--p)); }
.np-scrub input::-webkit-slider-thumb{ width: 0; height: 0; }
.np-times{ display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 500; color: oklch(1 0 0 / 0.65); font-variant-numeric: tabular-nums; margin-top: 2px; }
/* ניגון רציף ומהירות — ליד ציר הזמן, בין הזמנים (דניאל, 15.10: "יותר מדי אייקונים למטה") */
.np-opts{ display: flex; gap: 8px; }
.opt{ height: 44px; min-width: 52px; padding: 0 12px; border-radius: 99px; display: grid; place-items: center; color: oklch(1 0 0 / 0.75); background: oklch(1 0 0 / 0.08); transition: color .2s, background .2s; }
.opt .i{ width: 21px; height: 21px; }
.opt .spd{ font-size: 0.95rem; font-weight: 700; }
@media (hover: hover){ .opt:hover{ color: var(--text); background: oklch(1 0 0 / 0.14); } }
.opt#npCont[aria-pressed="true"]{ color: var(--accent); }
.np-ctl{ display: flex; align-items: center; justify-content: space-between; margin-top: clamp(10px, 2.4vh, 22px); }
.np-ctl .ib{ color: var(--text); width: 52px; height: 52px; }
.np-ctl .ib .i{ width: 30px; height: 30px; }
.np-ctl .ib.mid .i{ width: 36px; height: 36px; stroke-width: 1.8; }
.np-ctl .ib:disabled{ opacity: 0.3; cursor: default; }
.np-play{ width: 76px; height: 76px; border-radius: 99px; display: grid; place-items: center; color: var(--text); transition: transform .16s var(--ease), background .2s; }
.np-play .i{ width: 50px; height: 50px; }
@media (hover: hover){ .np-play:hover{ background: oklch(1 0 0 / 0.08); } }
.np-play:active{ transform: scale(0.92); }
.np-tools{ display: flex; justify-content: space-around; margin-top: clamp(14px, 3vh, 28px); }
.tool{ display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 62px; flex: 1; max-width: 96px; padding: 6px 4px; border-radius: 10px; font-size: 0.8rem; font-weight: 500; color: oklch(1 0 0 / 0.7); transition: color .2s, background .2s; }
.tool .i{ width: 24px; height: 24px; }
.tool .spd{ height: 24px; display: grid; place-items: center; font-size: 1rem; font-weight: 700; }
@media (hover: hover){ .tool:hover{ color: var(--text); } }
.tool.is-busy{ color: var(--accent); }
.tool.is-busy .i{ animation: dl 1s ease-in-out infinite; }
@keyframes dl{ 50%{ transform: translateY(3px); } }
.tool[aria-pressed="true"]{ color: var(--text); background: oklch(1 0 0 / 0.14); }
/* לוח: טקסט / הבא בתור */
.np-panel{ display: none; min-height: 0; flex-direction: column; }
.np-panel-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.np-tabs{ display: none; gap: 6px; padding: 4px; border-radius: 10px; background: oklch(0 0 0 / 0.2); }
.np-tabs button{ height: 36px; padding: 0 16px; border-radius: 7px; font-weight: 600; font-size: 0.95rem; color: oklch(1 0 0 / 0.7); }
.np-tabs button[aria-selected="true"]{ background: oklch(1 0 0 / 0.16); color: var(--text); }
.np-read-bar{ display: flex; align-items: center; gap: 8px; }
.np-read-bar[hidden]{ display: none; }
.read-size-grp{ display: inline-flex; gap: 4px; }
.read-pill{ height: 34px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: oklch(1 0 0 / 0.1); color: oklch(1 0 0 / 0.9); font-size: 0.85rem; font-weight: 600; transition: background .18s, color .18s; }
@media (hover: hover){ .read-pill:hover{ background: oklch(1 0 0 / 0.18); } }
.read-pill[aria-pressed="true"]{ background: var(--accent); color: var(--accent-ink); }
.read-pill:disabled{ opacity: 0.4; cursor: default; }
@media (hover: hover){ .read-pill:disabled:hover{ background: oklch(1 0 0 / 0.1); } }
.bart-slot:empty{ display: none; }
.np-pane{ overflow-y: auto; min-height: 0; flex: 1; margin: 0; padding: 0; scrollbar-width: none; }
.np-pane[hidden]{ display: none; }
.np-text{ padding-bottom: 44px; padding-inline-end: 4px; mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.np-text .ln{ font-family: var(--f-title); font-weight: 700; font-size: calc(clamp(1.5rem, 1.2rem + 1.15vw, 2.2rem) * var(--read-scale)); line-height: 1.48; margin: 0 0 0.5em; color: oklch(1 0 0 / 0.95); text-wrap: pretty; }
.np-text .ln-n{ display: block; font-weight: 600; font-size: 0.95rem; color: var(--accent); margin: 0 0 0.55em; }
.np-text .ln-n:not(:first-child){ margin-top: 1.4em; }
.bart-card{ margin: 14px 0 22px; padding: 16px 20px; border-radius: 12px; background: oklch(0 0 0 / 0.28); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08); border-inline-start: 3px solid var(--accent); }
.bart-head{ font-size: 0.84rem; font-weight: 700; color: var(--accent); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid oklch(1 0 0 / 0.1); letter-spacing: 0.01em; }
.bart-p{ margin: 0; font-family: var(--f-title); font-weight: 400; font-size: calc(1.22rem * var(--read-scale)); line-height: 1.82; color: oklch(0.94 0.01 82); text-wrap: pretty; }
.bart-p + .bart-p{ margin-top: 0.85em; padding-top: 0.85em; border-top: 1px solid oklch(1 0 0 / 0.08); }
.bart-p .dh{ font-weight: 900; color: oklch(0.88 0.125 84); margin-inline-end: 2px; }
.bart-empty{ margin: 0; font-size: 0.9rem; color: oklch(1 0 0 / 0.65); }
.np-text .src{ font-size: var(--fs-small); color: oklch(1 0 0 / 0.65); }
.np-text .src a{ text-decoration: underline; text-underline-offset: 3px; }
.np-text .pdf{ display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; }
.np-queue{ list-style: none; }
.np-queue h3{ margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; color: oklch(1 0 0 / 0.65); }
.np-queue li + li h3{ margin-top: 18px; }
.qi{ width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-align: start; transition: background .2s; }
@media (hover: hover){ .qi:hover{ background: oklch(1 0 0 / 0.1); } }
.qi .cover{ width: 48px; border-radius: 5px; flex: none; }
.qi b{ display: block; font-weight: 600; }
.qi > span > span{ font-size: var(--fs-small); color: oklch(1 0 0 / 0.65); }
.qi.is-now b{ color: var(--accent); }
/* נייד: לוח פתוח מחליף את הכריכה (כמו מילים באפל מיוזיק) */
@media (max-width: 899px){
  .np.panel-open .np-body{ display: flex; flex-direction: column; }
  .np.panel-open .np-main{ display: contents; }
  .np.panel-open .np-cover, .np.panel-open .np-meta{ display: none; }
  .np.panel-open .np-mini{ display: flex; order: 0; }
  .np.panel-open .np-panel{ display: flex; order: 1; flex: 1; padding-top: 6px; }
  .np.panel-open .np-scrub{ order: 2; }
  .np.panel-open .np-ctl{ order: 3; }
  .np.panel-open .np-tools{ order: 4; }
  .np-text .ln{ font-size: calc(1.52rem * var(--read-scale)); }
  .bart-p{ font-size: calc(1.12rem * var(--read-scale)); }
  /* בנייד אין לשוניות; כשגם פס הקריאה מוסתר (הבא בתור) — לא להשאיר רווח ריק בראש הלוח */
  .np-panel-head:has(> .np-read-bar[hidden]){ display: none; }
}
/* מחשב: כריכה ופקדים מימין, טקסט/תור משמאל — בלי חלל ריק */
@media (min-width: 900px){
  .np-in{ padding-inline: clamp(32px, 6vw, 96px); }
  .np-body{ grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
  .np-main{ margin: 0; max-height: 100%; }
  .np-cover{ width: min(100%, 50vh); align-self: center; }
  .np-panel{ display: flex; height: min(100%, 640px); align-self: center; }
  .np-tabs{ display: flex; }
  .np-tools #npTextBtn, .np-tools #npQueueBtn{ display: none; }
  .np-tools{ justify-content: center; gap: 18px; }
}
@media (prefers-reduced-motion: reduce){ .np-bg i{ animation: none; } }

.toast{ position: fixed; z-index: 80; left: 50%; bottom: 170px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 8px; background: var(--paper-50); color: var(--bg); font-weight: 500; transition: opacity .25s, transform .35s var(--ease); }
.toast.is-on{ opacity: 1; transform: translate(-50%, 0); }
.foot{ padding: 48px var(--gutter) 0; font-size: 0.8rem; color: var(--text-3); }

/* כניסה — רגע אחד, מחובר לניווט */
.view-in{ animation: viewIn .5s var(--ease) both; }
.view-in.no-in{ animation: none; }
@keyframes viewIn{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* כריכה קטנה (סרגל, תור) — רק התמונה, בלי כתב שלא ייקרא */
@container (max-width: 140px){ .cv-mark, .cv-t, .cv-s{ display: none; } }

/* ---------- נגן בינוני (dock) ---------- */
.dock{ color: var(--text); }
.dock[hidden]{ display: none; }
.dock-head{ display: flex; align-items: center; gap: 2px; }
.dock-head b{ flex: 1; min-width: 0; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-head .ib{ width: 40px; height: 40px; color: var(--text); }
.dock-head .ib .i{ width: 22px; height: 22px; }
.dock-scroll{ overflow-y: auto; min-height: 0; scrollbar-width: none; }
.dock-cover{ width: 100%; border-radius: 10px; cursor: zoom-in; box-shadow: 0 18px 40px -14px oklch(0 0 0 / 0.6); transition: transform .3s var(--ease); }
@media (hover: hover){ .dock-cover:hover{ transform: scale(1.01); } }
.dock-meta{ margin-top: 16px; }
.dock-meta h3{ margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.dock-meta p{ margin: 2px 0 0; color: oklch(1 0 0 / 0.72); }
.dock-play{ display: none; }
.dock-ctl{ display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.dock-ctl .ib{ color: var(--text); width: 50px; height: 50px; }
.dock-ctl .ib .i{ width: 28px; height: 28px; }
.dock-ctl .ib.mid .i{ width: 34px; height: 34px; stroke-width: 1.8; }
.dock-ctl .ib:disabled{ opacity: 0.3; }
.dock-ctl .np-play{ width: 66px; height: 66px; }
.dock-ctl .np-play .i{ width: 44px; height: 44px; }
.dock-acts{ display: flex; gap: 8px; margin-top: 16px; }
.act{ flex: 1; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; background: oklch(1 0 0 / 0.08); font-size: 0.85rem; font-weight: 500; color: oklch(1 0 0 / 0.85); transition: background .2s, color .2s; }
@media (hover: hover){ .act:hover{ background: oklch(1 0 0 / 0.14); color: var(--text); } }
.act .i{ width: 22px; height: 22px; }
.act[hidden]{ display: none; }
.act.is-busy{ color: var(--accent); }
.dock-card{ margin-top: 14px; padding: 16px; border-radius: 12px; background: oklch(1 0 0 / 0.07); }
.dock-card header{ display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.dock-card h4{ margin: 0; font-size: 1rem; font-weight: 700; }
.dock-card header button{ font-size: var(--fs-small); font-weight: 600; color: oklch(1 0 0 / 0.7); }
@media (hover: hover){ .dock-card header button:hover{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; } }
.dock-text{ font-family: var(--f-title); font-weight: 700; font-size: 1.3rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.dock-text .src{ font-family: var(--f-ui); font-weight: 400; font-size: var(--fs-meta); color: oklch(1 0 0 / 0.7); }
#dockQueue .qi{ padding: 6px 4px; }
#dockQueue .qi .cover{ width: 44px; }

/* מחשב: לוח שלישי בצד (משמאל ב-RTL), כמו "מתנגן עכשיו" בספוטיפיי */
@media (min-width: 1024px){
  body.dock-open .shell{ grid-template-columns: var(--side-w) minmax(0, 1fr) 360px; }
  .dock{ display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-card); padding: 14px 16px 0; background: linear-gradient(to bottom, var(--np-b, var(--surface)) 0%, var(--surface) 55%); }
  .dock-grab{ display: none; }
  .dock-head{ margin-bottom: 12px; }
  .dock-scroll{ flex: 1; padding-bottom: 16px; }
  .dock-head #dockMin .i{ transform: rotate(-90deg); }
}
/* נייד: גיליון מלמטה בגובה ~70%, נגרר למעלה למסך מלא ולמטה לסרגל */
@media (max-width: 1023px){
  .dock{ position: fixed; z-index: 55; inset-inline: 0; bottom: 0; height: min(78dvh, 720px); display: flex; flex-direction: column; padding: 0 20px max(14px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: linear-gradient(to bottom, var(--np-a, oklch(0.4 0.06 40)) 0%, var(--np-c, var(--bg)) 70%); box-shadow: 0 -20px 60px oklch(0 0 0 / 0.55); transform: translateY(var(--drag, 0px)); transition: transform .45s var(--ease); touch-action: none; }
  .dock.is-enter{ transform: translateY(100%); }
  .dock.is-drag{ transition: none; }
  .dock-grab{ display: grid; place-items: center; height: 26px; cursor: grab; }
  .dock-grab i{ width: 40px; height: 5px; border-radius: 9px; background: oklch(1 0 0 / 0.45); }
  .dock-head{ margin-bottom: 8px; }
  .dock-scroll{ flex: 1; touch-action: pan-y; }
  .dock-cover{ width: min(62%, 300px); margin: 0 auto; display: block; }
  .dock-meta{ text-align: center; }
  .dock-play{ display: block; margin-top: 10px; }
  body.dock-open .bar{ display: none; }
  body.dock-open .tabs{ visibility: hidden; }
}
.dock-cover{ text-align: start; }

/* ---------- ⋮ לכל שיעור + תפריט ---------- */
.ep{ grid-template-columns: 3.2rem clamp(120px, 18vw, 200px) 1fr auto; }
@media (max-width: 640px){ .ep{ grid-template-columns: 116px 1fr auto; } }
.more{ width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; color: var(--text-3); transition: color .2s, background .2s; }
@media (hover: hover){ .more:hover, .ep:hover .more{ color: var(--text); } }
@media (hover: hover){ .more:hover{ background: oklch(1 0 0 / 0.1); } }
.menu{ position: fixed; z-index: 90; min-width: 230px; padding: 6px; border-radius: 10px; background: var(--ink-800); box-shadow: 0 16px 40px oklch(0 0 0 / 0.55), 0 0 0 1px oklch(1 0 0 / 0.06); }
.menu[hidden]{ display: none; }
.menu button{ width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 6px; font-size: 1rem; text-align: start; }
.menu button:focus-visible{ background: oklch(1 0 0 / 0.1); outline: none; } @media (hover: hover){ .menu button:hover{ background: oklch(1 0 0 / 0.1); outline: none; } }
.menu .i{ width: 20px; height: 20px; color: var(--text-2); }

/* ---------- יצירת קשר ---------- */
/* הכפתור: בדף הבית בלבד, ליד יום/לילה — באותו סגנון כמוהו, כדי שלא ייראה כעוד מסנן.
   טלפון: סמל ווטסאפ בלבד (השם בתווית הנגישות); מחשב: סמל + "יצירת קשר" */
.contact-trigger{ margin-inline-start: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; width: 36px; padding: 0; border-radius: 99px; background: oklch(1 0 0 / 0.08); color: var(--text); font-size: var(--fs-small); font-weight: 600; transition: background .2s; }
.contact-trigger[hidden]{ display: none; }
.contact-trigger .i{ width: 19px; height: 19px; color: #25d366; }
.contact-trigger span{ display: none; }
.contact-trigger:not([hidden]) ~ .install-btn, .contact-trigger:not([hidden]) ~ .theme-btn{ margin-inline-start: -8px; }
@media (hover: hover){ .contact-trigger:hover{ background: oklch(1 0 0 / 0.14); } }
@media (min-width: 1024px){ .contact-trigger{ width: auto; padding: 0 12px; } .contact-trigger span{ display: inline; } }
@media (max-width: 1023px){ .contact-trigger{ order: 2; } }
/* טלפון צר (עד 479): בלי חיתוך —
   חמשת המסננים נכנסים בשורה אחת (ריווח קטן יותר), והסמל תמיד בשורה העליונה.
   כשמוצג גם "התקנה" — השם קטן מעט והרווחים 6px, כדי שהשם, יצירת קשר, התקנה ויום/לילה ייכנסו יחד גם ברוחב 360 */
@media (max-width: 479px){
  #top .top-chips{ gap: 6px; }
  #top .top-chips .chip{ padding: 0 10px; }
  #top:has(> .install-btn:not([hidden])){ column-gap: 6px; }
  #top:has(> .install-btn:not([hidden])) .contact-trigger ~ .install-btn{ margin-inline-start: 0; }
  #top:has(> .install-btn:not([hidden])) .install-btn{ padding: 0 7px; }
  #top:has(> .install-btn:not([hidden])) .brand-word{ font-size: 1.28rem; }
  #top:has(> .install-btn:not([hidden])) .brand-sub{ font-size: .92rem; }
}
:root[data-theme="day"] .contact-trigger{ background: oklch(0 0 0 / 0.06); }
:root[data-theme="day"] .contact-trigger .i{ color: #128c4a; }
:root[data-theme="day"]:not(.no-day-bg) .contact-trigger{ background: oklch(0.97 0.012 85 / 0.6); backdrop-filter: blur(10px); }

/* החלונית: בחירת סוג (פעם אחת) → כתיבה → ווטסאפ */
.feedback-layer{ position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 16px; background: oklch(0 0 0 / .65); overflow-y: auto; overscroll-behavior: contain; }
.feedback-layer[hidden]{ display: none; }
.feedback-panel{ width: min(100%, 460px); max-height: 100%; overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 20px 70px oklch(0 0 0 / .35); }
.feedback-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-head h2{ margin: 0; font-family: var(--f-title); font-size: 1.85rem; }
.feedback-context{ margin: 6px 0 18px; color: var(--text-2); overflow-wrap: anywhere; }
.feedback-field{ display: grid; gap: 8px; }
.feedback-field textarea{ width: 100%; min-width: 0; min-height: 140px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 400; line-height: 1.7; resize: vertical; }
.feedback-field textarea:focus{ outline: none; border-color: var(--accent); }
.feedback-back{ display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: .85rem; color: var(--text-3); }
.feedback-back .i{ width: 16px; height: 16px; transform: scaleX(-1); }
@media (hover: hover){ .feedback-back:hover{ color: var(--text); } }
.contact-choices[hidden], #feedbackForm[hidden]{ display: none; }
.contact-choice{ --tone: var(--accent); width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; text-align: start; transition: background .2s, border-color .2s; }
.contact-choice > span:nth-child(2){ flex: 1; }
.contact-choice b{ display: block; font-weight: 600; font-size: 1rem; }
.contact-choice small{ display: block; margin-top: 3px; color: var(--text-3); font-size: .8rem; line-height: 1.6; }
.contact-choice-icon{ display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: var(--tone); background: color-mix(in oklch, var(--tone) 16%, transparent); }
.contact-choice-icon .i{ width: 22px; height: 22px; }
.contact-arrow{ width: 16px; color: var(--text-3); }
@media (hover: hover){ .contact-choice:hover{ background: var(--surface-2); border-color: color-mix(in oklch, var(--tone) 45%, var(--line)); } }
.contact-note{ display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: .8rem; line-height: 1.7; margin: 18px 0 0; }
.contact-note .i, .feedback-hint .i{ width: 15px; height: 15px; color: #25d366; }
/* הצעה גלויה לצרף את השיעור שמתנגן — דלוק/כבוי בלחיצה */
.feedback-attach{ width: 100%; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--text-2); font-size: .85rem; text-align: start; transition: background .2s, border-color .2s; }
.feedback-attach[hidden]{ display: none; }
.feedback-attach .i{ width: 16px; height: 16px; color: var(--text-3); }
.feedback-attach b{ font-weight: 600; color: var(--text); }
.feedback-attach[aria-pressed="true"]{ border-style: solid; border-color: color-mix(in oklch, var(--accent) 55%, var(--line)); background: color-mix(in oklch, var(--accent) 10%, transparent); }
.feedback-attach[aria-pressed="true"] .i{ color: var(--accent); }
.feedback-hint{ margin: 12px 0 16px; color: var(--text-3); font-size: var(--fs-small); }
.feedback-send{ width: 100%; height: auto; min-height: 50px; padding: 12px; background: #1faa59; color: #fff; font-size: 1rem; }
@media (hover: hover){ .feedback-send:hover{ background: #189a4f; } }
body.feedback-open{ overflow: hidden; }
body.feedback-open .main{ overflow: hidden; }

/* ---------- תור ורשימות ---------- */
.qrow{ display: flex; align-items: center; gap: 4px; }
.qrow .qi{ flex: 1; min-width: 0; }
.qrow .qi b, .qrow .qi > span > span{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.qrow .qi > span{ min-width: 0; }
.qrm{ width: 36px; height: 36px; flex: none; color: oklch(1 0 0 / 0.6); }
.qrm .i{ width: 18px; height: 18px; }
.qhint{ display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px; border-radius: 10px; background: oklch(1 0 0 / 0.06); font-size: var(--fs-small); color: oklch(1 0 0 / 0.75); }
.qhint .i{ width: 18px; height: 18px; flex: none; }
.qsave{ display: flex; gap: 8px; margin-top: 12px; }
.qsave input{ flex: 1; min-width: 0; height: 42px; border-radius: 8px; border: 0; padding: 0 12px; background: oklch(1 0 0 / 0.1); color: var(--text); font: inherit; }
.qsave input::placeholder{ color: oklch(1 0 0 / 0.5); }
.btn-save{ height: 42px; padding: 0 16px; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 600; white-space: nowrap; }

/* הלוח בצד: מצב "מתנגן עכשיו" או "התור" */
.dock-q{ display: none; overflow-y: auto; min-height: 0; flex: 1; margin: 0; padding: 0 0 16px; list-style: none; scrollbar-width: none; }
.dock.mode-queue .dock-scroll{ display: none; }
.dock.mode-queue .dock-q{ display: block; }
@media (max-width: 1023px){ .dock.mode-queue .dock-q{ display: block; } }

/* כפתורי הסרגל: מצב פעיל + תווית במעבר עכבר */
.bar-end .ib[aria-pressed="true"]{ color: var(--accent); }
.bar-end .ib[aria-pressed="true"]::after{ content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 9px; background: var(--accent); }
.bar-end .ib{ position: relative; }
@media (hover: hover){ .tip:hover::before{ content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 6px; background: var(--ink-700); color: var(--text); font-size: 0.8rem; font-weight: 500; pointer-events: none; } }

/* כריכה קטנה — רק תמונה */
.cover.sm .cv-mark, .cover.sm .cv-t, .cover.sm .cv-s{ display: none; }

/* ---------- בניית רשימה ---------- */
.addb{ width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 99px; box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.45); color: var(--text); transition: background .2s, box-shadow .2s, transform .15s var(--ease); }
@media (hover: hover){ .addb:hover{ box-shadow: inset 0 0 0 1.5px var(--text); } }
.addb:active{ transform: scale(0.92); }
.addb.is-on{ background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.addb .i{ width: 20px; height: 20px; stroke-width: 2.4; }
.res-l{ cursor: default; }
.res-l > div{ flex: 1; min-width: 0; }
.res-l b{ display: block; }
.buildbar{ position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 12px; margin: 0 var(--gutter) 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 0.95rem; box-shadow: 0 10px 30px oklch(0 0 0 / 0.4); }
.buildbar span{ flex: 1; min-width: 0; }
.buildbar .btn-save{ background: var(--accent-ink); color: var(--accent); }
.buildbar .btn-save:disabled, .bact .btn-save:disabled{ opacity: 0.45; cursor: default; }
.buildbar .lnk{ color: var(--accent-ink); }
.buildbar .bx{ width: 36px; height: 36px; flex: none; margin-inline-start: -4px; color: var(--accent-ink); }
.buildbar .bx:hover{ background: oklch(0 0 0 / 0.12); }
body.building .top{ display: none; }
.lnk{ font-weight: 600; font-size: var(--fs-small); color: oklch(1 0 0 / 0.75); text-decoration: underline; text-underline-offset: 3px; }
.show-mob{ display: none; }
@media (max-width: 1023px){ .show-mob{ display: inline; } }
.qnew{ display: grid; gap: 10px; justify-items: center; margin-top: 20px; }
.btn-new{ width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 600; }
.btn-new .i{ width: 20px; height: 20px; }
.dock-b{ display: none; flex-direction: column; min-height: 0; flex: 1; padding-bottom: 16px; }
.dock.mode-build .dock-scroll, .dock.mode-build .dock-q{ display: none; }
.dock.mode-build .dock-b{ display: flex; }
.dock.mode-build #dockExpand{ display: none; } /* ברשימה בבנייה אין נגן להגדיל */
.bname{ height: 48px; border: 0; border-radius: 10px; padding: 0 14px; background: oklch(1 0 0 / 0.1); color: var(--text); font: inherit; font-size: 1.15rem; font-weight: 600; }
.bname::placeholder{ color: oklch(1 0 0 / 0.5); font-weight: 400; }
.bhint{ margin: 10px 2px; font-size: var(--fs-small); color: oklch(1 0 0 / 0.7); }
.blist{ flex: 1; overflow-y: auto; min-height: 0; scrollbar-width: none; }
.bact{ display: flex; align-items: center; gap: 14px; padding-top: 12px; }
.bact .btn-save{ flex: 1; height: 46px; }
.btn-new.alt{ background: oklch(1 0 0 / 0.12); color: var(--text); }
@media (hover: hover){ .btn-new.alt:hover{ background: oklch(1 0 0 / 0.18); } }

/* ---------- התור: שלושה חלקים ---------- */
.qsec{ margin-bottom: 22px; }
.qsec-h{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qsec-h h3{ margin: 0; }
.qsec > h3, .qsec-h{ margin-bottom: 8px; }
.qlist{ list-style: none; margin: 0; padding: 0; }
.qrow{ display: flex; align-items: center; gap: 2px; border-radius: 8px; transition: background .2s, box-shadow .2s; }
.qrow .qi{ flex: 1; min-width: 0; }
.qrow .qi > span{ min-width: 0; }
.qrow .qi b, .qrow .qi > span > span{ display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qh{ width: 40px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 8px; color: oklch(1 0 0 / 0.55); cursor: grab; touch-action: none; }
@media (hover: hover){ .qh:hover{ color: var(--text); background: oklch(1 0 0 / 0.08); } }
.qh .i{ width: 22px; height: 22px; }
.qrow.dragging{ background: oklch(1 0 0 / 0.16); box-shadow: 0 10px 26px oklch(0 0 0 / 0.45); position: relative; z-index: 2; }
.qrow.dragging .qh{ cursor: grabbing; color: var(--text); }
.is-sorting{ user-select: none; }
.qempty{ margin: 4px 2px 12px; font-size: var(--fs-small); color: oklch(1 0 0 / 0.68); }
.qsec .btn-new{ margin-top: 6px; }
/* מתג */
.switch{ width: 46px; height: 28px; flex: none; border-radius: 99px; background: oklch(1 0 0 / 0.25); position: relative; transition: background .2s; }
.switch i{ position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 99px; background: var(--text); box-shadow: 0 2px 6px oklch(0 0 0 / 0.35); transition: inset-inline-start .2s var(--ease); }
.switch[aria-checked="true"]{ background: var(--accent); }
.switch[aria-checked="true"] i{ inset-inline-start: 21px; background: var(--accent-ink); }
/* הפעולה העיקרית בשורה: סיכום (פרשה/מועד) או טקסט (משנה) — זהב, עם שם */
.tool.is-key{ grid-auto-flow: column; gap: 8px; flex: 0 1 auto; max-width: none; padding: 10px 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 0.95rem; font-weight: 700; }
@media (hover: hover){ .tool.is-key:hover{ color: var(--accent-ink); filter: brightness(1.06); } }
.tool.is-key[aria-pressed="true"]{ background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px oklch(1 0 0 / 0.5); }
.tool[hidden]{ display: none; }
.np-tools{ align-items: center; }

/* רשתות לחומש / מועדים / עיון */
.sq-grid{ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.sq-grid .sq{ width: auto; }
.sq-grid .sq-wrap{ margin: 0; }
.sq.is-empty .pic img{ filter: grayscale(1) brightness(0.45); }
.sq.is-empty .cap span{ color: var(--text-3); }
/* "בית" פעיל — לבן ומודגש, בלי מסגרת */
.side-nav a.is-on{ color: var(--text); font-weight: 700; }
.side-nav a.is-on .i{ stroke-width: 2.5; }

/* ---------- דף הבית: המערכת ---------- */
.sys{ position: relative; margin-top: -120px; min-height: min(88vh, 780px); display: flex; align-items: flex-end; padding: 140px var(--gutter) clamp(28px, 5vh, 56px); overflow: hidden; isolation: isolate; }
@media (min-width: 1024px){ .sys{ margin-top: -62px; padding-top: 90px; } }
.wall{ position: absolute; inset: -10% -20%; z-index: -2; transform: rotate(-8deg) scale(1.08); }
.wall-in{ display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; animation: wall 80s linear infinite alternate; }
.wall-in img{ width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; filter: saturate(1) brightness(0.85); }
@keyframes wall{ from{ transform: translateY(0); } to{ transform: translateY(-18%); } }
@media (max-width: 700px){ .wall-in{ grid-template-columns: repeat(5, 1fr); } }
.sys::after{ content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, var(--page-bg, var(--bg)) 0%, oklch(0.135 0.006 60 / 0.75) 30%, oklch(0.135 0.006 60 / 0.35) 70%, oklch(0.135 0.006 60 / 0.6) 100%),
  linear-gradient(to left, oklch(0.135 0.006 60 / 0.9) 0%, oklch(0.135 0.006 60 / 0.45) 50%, oklch(0.135 0.006 60 / 0.05) 100%); }
.sys-in{ max-width: 900px; }
.sys-title{ font-family: var(--f-title); font-weight: 900; font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 0.95; margin: 0 0 16px; letter-spacing: -0.02em; text-shadow: 0 2px 30px oklch(0 0 0 / 0.6); }
.sys-title span{ color: var(--accent); }
.sys-sub{ font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem); line-height: 1.6; max-width: 40ch; margin: 0 0 26px; text-shadow: 0 1px 14px oklch(0 0 0 / 0.7); }
@media (prefers-reduced-motion: reduce){ .wall-in{ animation: none; } }

/* רקע דף הבית: הצילום של הרב — מכוון על הרב, צבע חם וכהה */
.sys-photo{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 32%; z-index: -2; filter: brightness(0.62) saturate(0.85) sepia(0.18) contrast(1.05); }
@media (max-width: 700px){ .sys-photo{ object-position: 44% 30%; } }
.sys.has-photo::after{ background:
  linear-gradient(to top, var(--page-bg, var(--bg)) 0%, oklch(0.135 0.006 60 / 0.7) 32%, oklch(0.135 0.006 60 / 0.15) 65%, oklch(0.135 0.006 60 / 0.45) 100%),
  linear-gradient(to left, oklch(0.135 0.006 60 / 0.88) 0%, oklch(0.135 0.006 60 / 0.4) 45%, transparent 75%); }
/* הרב לצד הכותרת, לא מאחוריה */
@media (min-width: 701px){ .sys-photo{ width: 140%; inset: 0 auto 0 -40%; object-position: 50% 34%; } }
@media (max-width: 700px){ .sys-photo{ top: -17%; height: 100%; } }

/* מתג ברור: מסלול זהב = פועל, עיגול לבן תמיד + מילה */
.switch-w{ display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; color: oklch(1 0 0 / 0.75); }
.switch-w[aria-checked="true"]{ color: var(--accent); }
.switch-w .switch{ display: block; }
.switch-w[aria-checked="true"] .switch{ background: var(--accent); }
.switch-w[aria-checked="true"] .switch i{ inset-inline-start: 21px; background: #fff; }
.switch-w[aria-checked="false"] .switch i{ background: #fff; }
/* תווית הכפתורים בסרגל לא נחתכת */
@media (min-width: 1024px){ .bar{ overflow: visible; } }
@media (hover: hover){ .tip:hover::before{ z-index: 5; } }

/* ---------- לוח "מתנגן עכשיו" — פחות עומס ---------- */
.only-desk{ display: none; }
@media (min-width: 1024px){ .only-desk{ display: block; } .only-mob{ display: none; } }
.dock-head b{ font-size: 0.95rem; font-weight: 700; color: oklch(1 0 0 / 0.85); }
@media (min-width: 1024px){ .dock-head #dockMin .i{ transform: none; } }
.dock-meta h3{ font-size: 1.3rem; }
.dock-meta p{ font-size: 0.95rem; }
.dock-acts{ gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.act{ flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; background: transparent; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.16); font-size: 0.85rem; }
@media (hover: hover){ .act:hover{ background: oklch(1 0 0 / 0.08); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.3); } }
.act .i{ width: 18px; height: 18px; }
.dock-card{ background: oklch(1 0 0 / 0.05); }
/* כפתור פעיל בסרגל — צבע ונקודה, בלי טבעת */
.bar-end .ib:focus-visible{ outline-offset: 0; }


/* "לימוד עם טקסט" — הפעולה הראשית בלוח */
.act-main{ background: var(--text); color: var(--bg); box-shadow: none; font-weight: 600; }
@media (hover: hover){ .act-main:hover{ background: var(--paper-200); color: var(--bg); } }
.act[aria-pressed="true"]{ color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* מתג יום/לילה */
.theme-btn{ margin-inline-start: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: oklch(1 0 0 / 0.08); font-size: var(--fs-small); font-weight: 600; transition: background .2s; }
@media (hover: hover){ .theme-btn:hover{ background: oklch(1 0 0 / 0.14); } }
.theme-btn .i{ width: 18px; height: 18px; }
.top{ padding-top: 22px; }
.bsd{ top: 4px; }
@media (max-width: 1023px){ .theme-btn{ order: 2; } .brand-mob{ order: 1; } .top-chips{ order: 3; } }

/* =================== מצב יום =================== */
/* נייר בהיר לממשק; הכריכות, השלטים, הנגן והלוח — איים כהים (כמו אפל מיוזיק במצב בהיר) */
:root[data-theme="day"]{
  color-scheme: light;
  --bg: oklch(0.965 0.006 80);
  --surface: oklch(0.993 0.003 85);
  --surface-2: oklch(0.935 0.008 80);
  --hover: oklch(0.91 0.01 80);
  --line: oklch(0 0 0 / 0.09);
  --text: oklch(0.21 0.012 60);
  --text-2: oklch(0.4 0.012 60);
  --text-3: oklch(0.52 0.012 60);
  --accent: oklch(0.6 0.13 72);
  --accent-ink: oklch(0.99 0.01 85);
}
:root[data-theme="day"] :is(.np, .dock, .billboard, .hero, .menu, .iyun){
  color-scheme: dark;
  --bg: oklch(0.135 0.006 60); --page-bg: oklch(0.135 0.006 60);
  --surface: oklch(0.175 0.007 60); --surface-2: oklch(0.21 0.008 60); --hover: oklch(0.25 0.009 60);
  --line: oklch(1 0 0 / 0.08);
  --text: oklch(0.975 0.006 85); --text-2: oklch(0.83 0.012 80); --text-3: oklch(0.70 0.012 80);
  --accent: oklch(0.83 0.135 84); --accent-ink: oklch(0.22 0.04 70);
  color: var(--text);
}
@media (max-width: 1023px){ :root[data-theme="day"] .bar{ color-scheme: dark; --text: oklch(0.975 0.006 85); --text-2: oklch(0.83 0.012 80); --bg: oklch(0.135 0.006 60); color: var(--text); } }
/* השלטים כאיים: כרטיס מעוגל, לא נמרח לתוך הנייר */
:root[data-theme="day"] :is(.billboard, .hero){ margin: 0 12px; border-radius: 18px; overflow: hidden; }
@media (min-width: 1024px){ :root[data-theme="day"] :is(.billboard, .hero){ margin: 0 16px; } }
/* כתב על צילום — תמיד לבן */
.pic-title, .cv-t, .tile{ color: #fff; }
.pic-title small{ color: oklch(1 0 0 / 0.82); }
/* רכיבים עם לבן-שקוף קבוע */
:root[data-theme="day"] .chip{ background: oklch(0 0 0 / 0.06); }
@media (hover: hover){ :root[data-theme="day"] .chip:hover{ background: oklch(0 0 0 / 0.1); } }
:root[data-theme="day"] .chip.is-on{ background: var(--text); color: var(--bg); }
:root[data-theme="day"] .theme-btn{ background: oklch(0 0 0 / 0.06); }
@media (hover: hover){ :root[data-theme="day"] .ib:hover:not(:disabled), :root[data-theme="day"] .more:hover{ background: oklch(0 0 0 / 0.06); } }
:root[data-theme="day"] .pill{ box-shadow: inset 0 0 0 1.5px oklch(0 0 0 / 0.25); }
:root[data-theme="day"] .addb{ box-shadow: inset 0 0 0 1.5px oklch(0 0 0 / 0.3); color: var(--text); }
:root[data-theme="day"] .addb.is-on{ color: var(--accent-ink); box-shadow: none; }
:root[data-theme="day"] .searchbox input{ background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px oklch(0 0 0 / 0.05); }
:root[data-theme="day"] .top.is-solid{ background: oklch(0.993 0.003 85 / 0.9); }
@media (max-width: 1023px){ :root[data-theme="day"] .top.is-solid{ background: oklch(0.965 0.006 80 / 0.9); } }
:root[data-theme="day"] .tabs{ background: linear-gradient(to top, var(--bg) 60%, oklch(0.965 0.006 80 / 0.85)); }
:root[data-theme="day"] .toast{ background: oklch(0.21 0.012 60); color: #fff; }
:root[data-theme="day"] .lnk{ color: var(--text-2); }
:root[data-theme="day"] .row-nav{ background: oklch(0.993 0.003 85 / 0.7); }
:root[data-theme="day"] .sq .pic{ box-shadow: 0 8px 20px oklch(0 0 0 / 0.15); }
:root[data-theme="day"] .side-top, :root[data-theme="day"] .side-lib, :root[data-theme="day"] .main{ box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="day"] body{ background: oklch(0.93 0.008 80); }
@media (max-width: 1023px){ :root[data-theme="day"] body{ background: var(--bg); } }
:root[data-theme="day"] .bar{ box-shadow: 0 -1px 0 var(--line); }
:root[data-theme="day"] .bsd{ color: var(--text-2); text-shadow: 0 1px 6px oklch(1 0 0 / 0.85); }
@media (min-width: 1024px){
  :root[data-theme="day"] .bar input[type=range]::-webkit-slider-runnable-track{ background: linear-gradient(to right, var(--text) var(--p), oklch(0 0 0 / 0.18) var(--p)); }
  :root[data-theme="day"] .bar input[type=range]::-moz-range-track{ background: oklch(0 0 0 / 0.18); }
  :root[data-theme="day"] .bar-txt span, :root[data-theme="day"] .bar-scrub .t{ color: var(--text-2); }
}
@media (max-width: 1023px){ :root[data-theme="day"] .bar{ box-shadow: 0 10px 30px oklch(0 0 0 / 0.25); } }
.playbtn.is-loading, .np-play.is-loading{ position: relative; animation: play-pulse 1.1s ease-in-out infinite; }
.playbtn.is-loading::after, .np-play.is-loading::after{ content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid transparent; border-top-color: var(--accent); animation: play-spin .85s linear infinite; pointer-events: none; }
@keyframes play-pulse{ 0%, 100%{ opacity: 1; } 50%{ opacity: 0.72; } }
@keyframes play-spin{ to{ transform: rotate(360deg); } }

/* ---------- רקע מושקע למצב יום: צילום + לוחות נייר שקופים-למחצה ---------- */
:root[data-theme="day"]:not(.no-day-bg) body{ background: oklch(0.9 0.015 80); }
:root[data-theme="day"]:not(.no-day-bg) body::before{ content: ""; position: fixed; inset: -30px; z-index: -1; background: var(--day-bg) center / cover no-repeat; filter: blur(3px) saturate(1.05) brightness(1.04); }
:root[data-theme="day"]:not(.no-day-bg) :is(.side-top, .side-lib, .main){ background: oklch(0.985 0.005 85 / 0.8); backdrop-filter: blur(22px) saturate(1.15); box-shadow: 0 1px 0 oklch(1 0 0 / 0.6) inset, 0 10px 40px oklch(0.3 0.03 70 / 0.12); }
:root[data-theme="day"]:not(.no-day-bg) .top.is-solid{ background: oklch(0.985 0.005 85 / 0.82); }
:root[data-theme="day"]:not(.no-day-bg) .bar{ background: oklch(0.985 0.005 85 / 0.86); backdrop-filter: blur(22px); }
@media (max-width: 1023px){
  :root[data-theme="day"]:not(.no-day-bg) .main{ background: transparent; box-shadow: none; backdrop-filter: none; }
  :root[data-theme="day"]:not(.no-day-bg) .view-in > :not(.sys):not(.billboard):not(.hero){ position: relative; }
  :root[data-theme="day"]:not(.no-day-bg) body::after{ content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(to bottom, oklch(0.975 0.006 80 / 0.55), oklch(0.975 0.006 80 / 0.86) 40%); }
  :root[data-theme="day"]:not(.no-day-bg) .bar{ background: var(--np-b, oklch(0.3 0.03 40)); }
}
/* הרקע צריך להיראות: לוח מרכזי כמעט שקוף (צעיף בהיר רך), צד — נייר */
:root[data-theme="day"]:not(.no-day-bg) .main{ background: oklch(0.985 0.005 85 / 0.42); backdrop-filter: blur(4px) saturate(1.1); }
:root[data-theme="day"]:not(.no-day-bg) body::before{ filter: saturate(1.08) brightness(1.06); }
:root[data-theme="day"]:not(.no-day-bg) .row-head h2, :root[data-theme="day"]:not(.no-day-bg) .page-title{ text-shadow: 0 1px 12px oklch(1 0 0 / 0.9), 0 0 2px oklch(1 0 0 / 0.8); }
:root[data-theme="day"]:not(.no-day-bg) .cap span, :root[data-theme="day"]:not(.no-day-bg) .note{ color: var(--text); text-shadow: 0 1px 8px oklch(1 0 0 / 0.9); }

/* ---------- רקע לפי הדף (מצב יום) ---------- */
:root[data-theme="day"]:not(.no-day-bg) body::before{ display: none; }
.pagebg{ display: none; position: fixed; inset: -60px; z-index: -1; }
:root[data-theme="day"]:not(.no-day-bg) .pagebg{ display: block; }
.pagebg i{ position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .8s var(--ease); filter: saturate(1.08) brightness(1.06); }
.pagebg i.blur{ filter: blur(34px) saturate(1.3) brightness(1.12); transform: scale(1.1); }
.pagebg i.on{ opacity: 1; }


/* ---------- דף הבית במצב יום: בהיר, בלי תיבה כהה — כותרת על הרקע, הרב בתמונה ממוסגרת ---------- */
:root[data-theme="day"] .sys{ margin: 0; min-height: 0; padding: 18px var(--gutter) 34px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; overflow: visible; }
:root[data-theme="day"] .sys::after{ display: none; }
:root[data-theme="day"] .sys-photo{ position: relative; inset: auto; grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 4 / 4.4; border-radius: 22px; object-position: 30% 30%; filter: saturate(0.95) sepia(0.12) contrast(1.03); box-shadow: 0 30px 60px -20px oklch(0.25 0.04 240 / 0.45), 0 0 0 6px oklch(1 0 0 / 0.55); z-index: 0; }
:root[data-theme="day"] .sys-in{ grid-column: 1; grid-row: 1; max-width: none; }
:root[data-theme="day"] .sys-title{ text-shadow: 0 2px 24px oklch(1 0 0 / 0.9); }
:root[data-theme="day"] .sys-sub{ text-shadow: 0 1px 14px oklch(1 0 0 / 0.95); color: var(--text); }
@media (max-width: 760px){
  :root[data-theme="day"] .sys{ grid-template-columns: 1fr; padding-top: 6px; }
  :root[data-theme="day"] .sys-photo{ grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; object-position: 38% 30%; }
  :root[data-theme="day"] .sys-in{ grid-row: 2; }
}
:root[data-theme="day"] .sys-photo{ content: url("img/rabbi-crop.jpg"); object-position: 50% 30%; filter: saturate(0.92) sepia(0.16) contrast(1.04) brightness(0.98); }
@media (max-width: 760px){ :root[data-theme="day"] .sys-photo{ aspect-ratio: 16 / 11; object-position: 50% 25%; } }

/* מצב יום: הצילום נמס לתוך השמיים — בלי מסגרת, שוליים רכים, הרב במרכז */
:root[data-theme="day"] .sys-photo{ border-radius: 0; box-shadow: none; aspect-ratio: 1 / 1.05; object-position: 46% 40%;
  -webkit-mask-image: radial-gradient(ellipse 52% 56% at 46% 44%, #000 38%, rgb(0 0 0 / 0.55) 58%, transparent 78%);
          mask-image: radial-gradient(ellipse 52% 56% at 46% 44%, #000 38%, rgb(0 0 0 / 0.55) 58%, transparent 78%);
  filter: saturate(0.9) sepia(0.1) contrast(1.06) brightness(1.02); }
:root[data-theme="day"].blend .sys-photo{ mix-blend-mode: multiply; filter: saturate(0.85) contrast(1.12) brightness(1.08); }
@media (max-width: 760px){ :root[data-theme="day"] .sys-photo{ aspect-ratio: 16 / 12; margin-bottom: -40px; } }
/* כוונון: בלי קצה חתוך — דעיכה רכה לגמרי בתוך התמונה, והרב גדול יותר */
:root[data-theme="day"] .sys-photo{ transform: scale(1.18); transform-origin: 46% 42%;
  -webkit-mask-image: radial-gradient(ellipse 42% 46% at 46% 43%, #000 30%, rgb(0 0 0 / 0.6) 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 42% 46% at 46% 43%, #000 30%, rgb(0 0 0 / 0.6) 60%, transparent 100%); }
:root[data-theme="day"] .sys{ overflow: clip; }
/* טלפון: הרקע צריך להיראות — צעיף קל בלבד; כרטיסים ותפריט תחתון על נייר */
@media (max-width: 1023px){
  :root[data-theme="day"]:not(.no-day-bg) body::after{ background: linear-gradient(to bottom, oklch(0.975 0.006 80 / 0.12), oklch(0.975 0.006 80 / 0.38) 55%, oklch(0.975 0.006 80 / 0.5)); }
  :root[data-theme="day"]:not(.no-day-bg) .tabs{ background: oklch(0.985 0.005 85 / 0.82); backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--line); }
  :root[data-theme="day"]:not(.no-day-bg) .top.is-solid{ background: oklch(0.985 0.005 85 / 0.75); backdrop-filter: blur(18px); }
  :root[data-theme="day"]:not(.no-day-bg) .cap b, :root[data-theme="day"]:not(.no-day-bg) .row-head h2{ text-shadow: 0 1px 10px oklch(1 0 0 / 0.95), 0 0 2px oklch(1 0 0 / 0.9); }
}

/* ---------- מצב יום — פחות לבן: רקע רווי יותר, בלי צעיף, כרטיסים שקופים-צבעוניים ---------- */
:root[data-theme="day"]:not(.no-day-bg) .pagebg i{ filter: saturate(1.45) contrast(1.06) brightness(0.96); background-position: center top; }
:root[data-theme="day"]:not(.no-day-bg) .pagebg i.blur{ filter: blur(30px) saturate(1.45) brightness(0.86); }
:root[data-theme="day"]:not(.no-day-bg) .main{ background: oklch(0.97 0.01 85 / 0.22); backdrop-filter: none; }
:root[data-theme="day"]:not(.no-day-bg) :is(.side-top, .side-lib){ background: oklch(0.97 0.012 85 / 0.66); }
:root[data-theme="day"]:not(.no-day-bg) .chip:not(.is-on), :root[data-theme="day"]:not(.no-day-bg) .theme-btn{ background: oklch(0.97 0.012 85 / 0.6); backdrop-filter: blur(10px); }
:root[data-theme="day"]:not(.no-day-bg) .season:not(.is-on){ background: oklch(0.97 0.012 85 / 0.6); }
@media (max-width: 1023px){
  :root[data-theme="day"]:not(.no-day-bg) body::after{ display: none; }
  :root[data-theme="day"]:not(.no-day-bg) .tabs{ background: oklch(0.97 0.012 85 / 0.6); }
  :root[data-theme="day"]:not(.no-day-bg) .pagebg i:not(.blur){ background-position: 30% top; }
}
/* דפים עם רקע כריכה כהה מטושטש במצב יום — שומרים על הרקע השקוף-העשיר בלי קופסאות לבנות, ומתאימים טקסט ואייקונים לבהיר וחד */
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .main{ background: oklch(0.08 0.01 60 / 0.22); }
@media (max-width: 1023px){
  :root[data-theme="day"].has-blur-bg:not(.no-day-bg) .main{ background: transparent; }
  :root[data-theme="day"].has-blur-bg:not(.no-day-bg) .pagebg::after{
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, oklch(0.06 0.01 60 / 0.18), oklch(0.06 0.01 60 / 0.34) 55%, oklch(0.06 0.01 60 / 0.42));
  }
}
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in{
  --text: oklch(0.985 0.006 85);
  --text-2: oklch(0.90 0.012 82);
  --text-3: oklch(0.80 0.012 80);
  --line: oklch(1 0 0 / 0.16);
  --hover: oklch(1 0 0 / 0.1);
  --surface-2: oklch(1 0 0 / 0.09);
  --accent: var(--gold-400);
  --accent-ink: var(--gold-ink);
  color: var(--text);
}
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in :is(.row-head h2, .page-title, .cap b, .cap span, .note, .ep-head h2, .ep-head span){
  text-shadow: 0 1px 10px oklch(0 0 0 / 0.55);
}
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in .season:not(.is-on){
  background: oklch(0.12 0.01 60 / 0.42); color: oklch(0.96 0.008 85);
  border: 1px solid oklch(1 0 0 / 0.18); backdrop-filter: blur(8px);
}
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in .season.is-on{
  background: oklch(0.985 0.006 85); color: oklch(0.16 0.01 60);
}
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in .season[aria-disabled="true"]{
  background: oklch(0.12 0.01 60 / 0.22); color: oklch(1 0 0 / 0.52); opacity: 0.65;
}
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in :is(.ep-cmt, .more){ color: oklch(0.88 0.01 82); }
@media (hover: hover){
  :root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in :is(.ep-cmt:not(.has-comments), .more):hover{
    background: oklch(1 0 0 / 0.12); color: #fff;
  }
}
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in .ep.is-now{ background: oklch(0.83 0.135 84 / 0.14); }
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in .pill{ box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.35); color: #fff; }
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .view-in .addb{ box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.35); color: #fff; }
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .top:not(.is-solid) :is(.brand-mob, .brand-sub, .bsd){ color: oklch(0.98 0.008 85); text-shadow: 0 1px 10px oklch(0 0 0 / 0.6); }
:root[data-theme="day"].has-blur-bg:not(.no-day-bg) .top:not(.is-solid) .brand-word{ color: var(--gold-400); }

/* טלפון: בלי קפיצה כששורת הכתובת נעלמת — הרקע והדף בגובה המסך המלא (lvh), לא בגובה המשתנה */
.pagebg{ inset: auto; top: -60px; left: -60px; right: -60px; height: calc(100vh + 120px); height: calc(100lvh + 120px); }
.shell{ min-height: 100vh; min-height: 100lvh; }
.np-bg{ height: 100lvh; }
@media (max-width: 1023px){
  .billboard{ min-height: min(86svh, 760px); }
  .hero{ min-height: min(70svh, 600px); }
  .sys{ min-height: min(88svh, 780px); }
  .dock{ height: min(78svh, 720px); }
}

/* אריחי סדרים/חומשים — באותה שפה כמו שאר הכרטיסים: תמונה מלאה, צל מלמטה, כותרת בפרנק רוהל; צבע הסדר — פס דק */
.tile{ display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 9; padding: 14px 16px; background: var(--surface-2); color: #fff; font-family: var(--f-title); font-weight: 900; font-size: 1.55rem; line-height: 1.1; box-shadow: inset 0 -3px 0 var(--c); }
.tile img{ position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; border-radius: 0; box-shadow: none; z-index: -2; transition: transform .5s var(--ease); }
.tile::after{ content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(0 0 0 / 0.8) 5%, oklch(0 0 0 / 0.15) 55%, transparent 75%); }
@media (hover: hover){ .tile:hover img{ transform: scale(1.05); } }
.tile small{ font-family: var(--f-ui); font-weight: 500; font-size: var(--fs-small); color: oklch(1 0 0 / 0.85); opacity: 1; margin-top: 4px; }
.tiles{ grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); }
@media (min-width: 1024px){ .tiles{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec-head{ padding-top: 4px; } .sec-head .page-title{ margin-bottom: 6px; } .sec-head .note{ margin-bottom: 6px; }

/* דף החיפוש: אריחי צבע נקיים, בלי צילום (כמו "עיון בקטגוריות" באפל מיוזיק) */
.plain-tiles .tile{ aspect-ratio: 2.1; justify-content: space-between; background: linear-gradient(135deg, var(--c), color-mix(in oklch, var(--c) 62%, black)); box-shadow: none; font-size: 1.45rem; }
.plain-tiles .tile img{ display: none; }
.plain-tiles .tile::after{ background: radial-gradient(120% 90% at 0% 100%, oklch(1 0 0 / 0.14), transparent 60%); }
@media (hover: hover){ .plain-tiles .tile:hover{ filter: brightness(1.08); } }
.plain-tiles .tile small{ order: 2; }


/* עיון בדף הבית — כרטיס גדול לכל שיעור, בתמונה שלו (1.11): שם השיעור בגדול, מתחת שורת טקסט רגילה — בלי תגית */
.iyun{ width: clamp(270px, 26vw, 360px); aspect-ratio: 4 / 3; border-radius: var(--r-card); padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; position: relative; overflow: hidden; isolation: isolate; }
.iyun img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.iyun::after{ content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(0 0 0 / 0.85) 10%, oklch(0 0 0 / 0.3) 55%, oklch(0 0 0 / 0.1) 100%); }
.iyun q{ quotes: none; font-family: var(--f-title); font-weight: 700; font-size: 1.5rem; line-height: 1.25; text-wrap: balance; color: #fff; }
.iyun .meta{ display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-small); color: oklch(1 0 0 / 0.82); }
.iyun .meta .playbtn{ flex: none; width: 40px; height: 40px; background: var(--play-disc); color: var(--play-disc-ink); border: var(--play-disc-border); backdrop-filter: blur(8px); box-shadow: var(--play-disc-shadow); }
.iyun .meta .playbtn .i{ width: 16px; height: 16px; transform: translateX(1px); }

/* פרשת השבוע — כרטיס רחב ונמוך (לא שלט מסך מלא) */
.week{ position: relative; isolation: isolate; overflow: hidden; margin: 14px var(--gutter) 6px; border-radius: 16px; min-height: 230px; display: flex; align-items: flex-end; color: #fff; box-shadow: 0 20px 50px -20px oklch(0 0 0 / 0.6); }
.week > img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; z-index: -2; }
.week::after{ content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, oklch(0.12 0.01 60 / 0.92) 0%, oklch(0.12 0.01 60 / 0.6) 45%, transparent 80%), linear-gradient(to top, oklch(0 0 0 / 0.5), transparent 60%); }
.week-in{ padding: 22px 26px; max-width: 560px; }
.week-k{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-small); color: oklch(1 0 0 / 0.88); }
.week-k i{ width: 8px; height: 8px; border-radius: 9px; background: oklch(0.83 0.135 84); box-shadow: 0 0 0 4px oklch(0.83 0.135 84 / 0.25); }
.week h2{ margin: 6px 0 4px; font-family: var(--f-title); font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; }
.week p{ margin: 0 0 16px; color: oklch(1 0 0 / 0.85); }
.week-acts{ display: flex; gap: 10px; flex-wrap: wrap; }
.week .btn{ height: 46px; font-size: 1rem; padding: 0 20px 0 22px; }
.week .btn-play{ background: #fff; color: oklch(0.15 0.01 60); }
.week .btn-ghost{ background: oklch(1 0 0 / 0.18); color: #fff; }
@media (max-width: 700px){ .week{ min-height: 300px; } .week::after{ background: linear-gradient(to top, oklch(0.12 0.01 60 / 0.95) 15%, oklch(0.12 0.01 60 / 0.4) 60%, transparent 90%); } }

/* התקנה — כפתור ליד יום/לילה, והדרכה לאייפון (אי כהה בשני המצבים, כמו הנגן) */
.install-btn{ margin-inline-start: auto; }
.install-btn[hidden]{ display: none; }
.install-btn:not([hidden]) + .theme-btn{ margin-inline-start: 8px; }
.install-btn .i{ color: var(--accent); }
.ios-bg{ position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center; background: oklch(0 0 0 / 0.55); animation: iosIn .2s ease-out; }
.ios-bg.to-top{ align-items: flex-start; }
@keyframes iosIn{ from{ opacity: 0; } }
.ios-sh{ width: min(100%, 520px); max-height: 86svh; overflow: auto; background: var(--ink-850); color: var(--paper-50); border-radius: 22px 22px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px oklch(0 0 0 / 0.5); }
.ios-bg.to-top .ios-sh{ border-radius: 0 0 22px 22px; padding-top: calc(20px + env(safe-area-inset-top)); }
@media (min-width: 700px){ .ios-bg{ align-items: center; } .ios-sh{ border-radius: 22px; } }
.ios-hd{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ios-hd > div{ flex: 1; }
.ios-hd img{ width: 48px; height: 48px; border-radius: 12px; }
.ios-t{ font-family: var(--f-title); font-weight: 900; font-size: 1.45rem; line-height: 1.1; }
.ios-sub{ font-size: var(--fs-small); color: var(--paper-400); text-align: end; }
.ios-x{ width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 99px; background: oklch(1 0 0 / 0.08); color: var(--paper-50); }
.ios-x .i{ width: 20px; height: 20px; }
.ios-steps{ list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ios-steps li{ display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-body); line-height: 1.55; }
.ios-steps i{ flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 700; }
.ios-steps small{ font-size: var(--fs-small); color: var(--paper-400); }
.ios-sh .en{ color: var(--paper-400); font-size: 0.92em; white-space: nowrap; }
.ios-ic{ width: 20px; height: 20px; vertical-align: -4px; margin: 0 2px; color: var(--accent); }
.ios-lead, .ios-note{ margin: 14px 0 0; font-size: var(--fs-meta); color: var(--paper-200); line-height: 1.5; }
.ios-lead{ margin: 0 0 14px; }
.ios-acts{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ios-acts button{ height: 46px; padding: 0 20px; border-radius: 99px; font-weight: 600; }
.ios-copy{ background: var(--accent); color: var(--accent-ink); }
.ios-done{ background: oklch(1 0 0 / 0.1); color: var(--paper-50); }
.ios-arrow{ position: fixed; bottom: calc(8px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: var(--accent); animation: iosArrow 1.1s ease-in-out infinite; }
.ios-arrow .i{ width: 48px; height: 48px; stroke-width: 2.6; filter: drop-shadow(0 2px 6px oklch(0 0 0 / 0.6)); }
@keyframes iosArrow{ 50%{ transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce){ .ios-arrow, .ios-bg{ animation: none; } }
/* טלפון: המילה "התקנה" נשארת ליד האייקון, כדי שלא יתבלבל עם הורדת שיעור (דניאל, 26.10).
   כדי ששניהם ייכנסו בשורה אחת עם השם גם ברוחב 360 — יום/לילה מוצג אז כאייקון בלבד (השם בתווית הנגישות) והרווחים קטנים */
@media (max-width: 479px){ .install-btn{ padding: 0 8px; gap: 4px; }
  .top:has(> .install-btn:not([hidden])){ column-gap: 8px; }
  .install-btn:not([hidden]) + .theme-btn{ margin-inline-start: 0; width: 36px; padding: 0; justify-content: center; }
  .install-btn:not([hidden]) + .theme-btn span{ display: none; } }


/* ==========================================================================
   מערכת תגובות לשיעורים, פניות פרטיות ("יצירת קשר") ומסך ניהול (מ־111)
   עיצוב מותאם לשפת "שיעורי הרב" (אי כהה חם, טיפוגרפיית פרנק-רוהל ונגיעות זהב)
   ========================================================================== */

/* 1. כפתורי כותרת עליונה (יצירת קשר + ניהול) — מקשה אחת מאוזנת לצד יום/לילה */
.contact-trigger {
  height: 36px;
  padding: 0 13px;
  gap: 7px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.08);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08);
}
.contact-trigger .i {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.admin-trigger {
  margin-inline-start: -8px;
}
.contact-trigger:not([hidden]) ~ .admin-trigger:not([hidden]) {
  margin-inline-start: -8px;
}
@media (max-width: 1023px) {
  .admin-trigger {
    order: 2;
    margin-inline-start: -6px;
  }
}
:root[data-theme="day"] .contact-trigger,
:root[data-theme="day"] .admin-trigger {
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.08);
}
:root[data-theme="day"] .contact-trigger .i,
:root[data-theme="day"] .admin-trigger .i {
  color: var(--accent);
}

/* 2. פעולות בשורת שיעור (.ep): כפתור תגובות אלגנטי + כפתור ⋮ */
.ep-acts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ep-cmt {
  position: relative;
  min-width: 38px;
  height: 36px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  color: var(--text-3);
  transition: color .2s, background .2s, box-shadow .2s, transform .15s var(--ease);
}
.ep-cmt .i {
  width: 18px;
  height: 18px;
}
.ep-cmt:active {
  transform: scale(0.94);
}
/* כשיש תגובות לשיעור — כפתור התגובות הופך לתגית חמה ומזמינה */
.ep-cmt.has-comments {
  height: 34px;
  padding: 0 11px 0 9px;
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 34%, transparent);
  color: var(--text);
}
.ep-cmt.has-comments .i {
  color: var(--accent);
  width: 16px;
  height: 16px;
}
.ep-cmt.has-comments .ep-cmt-n {
  background: transparent;
  color: var(--text);
  min-width: auto;
  height: auto;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .ep-cmt:hover, .ep:hover .ep-cmt {
    color: var(--text);
  }
  .ep-cmt:hover {
    background: oklch(1 0 0 / 0.1);
  }
  .ep-cmt.has-comments:hover {
    background: color-mix(in oklch, var(--accent) 22%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 50%, transparent);
  }
  :root[data-theme="day"] .ep-cmt:not(.has-comments):hover {
    background: oklch(0 0 0 / 0.06);
  }
}

.ep-cmt-n, .cmt-inline-badge, .cmt-badge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ep-cmt-n[hidden], .cmt-inline-badge[hidden], .cmt-badge[hidden] {
  display: none;
}

/* 3. מעטפת החלוניות (#feedback, #commentsLayer, #adminLayer) — אי כהה חם ומוקפד בשני המצבים */
.feedback-layer,
:root[data-theme="day"] .feedback-layer {
  color-scheme: dark;
  --bg: oklch(0.135 0.006 60);
  --surface: oklch(0.175 0.008 60);
  --surface-2: oklch(0.215 0.009 60);
  --hover: oklch(0.255 0.01 60);
  --line: oklch(1 0 0 / 0.09);
  --text: oklch(0.975 0.006 85);
  --text-2: oklch(0.84 0.012 80);
  --text-3: oklch(0.68 0.012 80);
  --accent: oklch(0.83 0.135 84);
  --accent-ink: oklch(0.20 0.04 70);
  background: oklch(0.08 0.005 60 / 0.68);
  backdrop-filter: blur(8px);
  animation: sheetFadeIn .2s var(--ease);
}
@keyframes sheetFadeIn {
  from { opacity: 0; }
}
.feedback-panel {
  position: relative;
  width: min(100%, 490px);
  max-height: min(90dvh, 780px);
  padding: 24px 26px 26px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(165deg, oklch(0.215 0.012 65 / 0.98) 0%, oklch(0.15 0.007 60 / 0.99) 100%);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.12),
    0 0 0 1px oklch(1 0 0 / 0.08),
    0 32px 80px -12px oklch(0 0 0 / 0.72);
  animation: sheetSlideUp .26s var(--ease);
}
@keyframes sheetSlideUp {
  from { transform: translateY(14px) scale(0.985); opacity: 0; }
}
.sheet-grab {
  display: none;
}
/* בנייד: גיליון תחתון (Bottom Sheet) טבעי כמו הנגן */
.feedback-layer {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
@media (max-width: 680px) {
  .feedback-layer {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }
  .feedback-panel,
  .comments-panel,
  .admin-panel {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0;
    box-sizing: border-box;
    max-height: 92dvh !important;
    border-radius: 24px 24px 0 0;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    animation: sheetBottomUp .28s var(--ease);
  }
  @keyframes sheetBottomUp {
    from { transform: translateY(100%); }
  }
  .sheet-grab {
    display: grid;
    place-items: center;
    height: 22px;
    margin-bottom: 4px;
  }
  .sheet-grab i {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: oklch(1 0 0 / 0.28);
  }
}

.sheet-head-title h2,
.comments-head h2,
.admin-head h2 {
  margin: 0;
  font-family: var(--f-title);
  font-weight: 900;
  font-size: clamp(1.55rem, 1.35rem + 0.6vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}
.comments-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}
.feedback-head .ib {
  width: 38px;
  height: 38px;
  flex: none;
  background: oklch(1 0 0 / 0.07);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.06);
}
@media (hover: hover) {
  .feedback-head .ib:hover {
    background: oklch(1 0 0 / 0.14);
    color: var(--text);
  }
}

/* 4. עיצוב כרטיסי הבחירה ב"יצירת קשר" (#feedback) */
.feedback-context {
  margin: 6px 0 16px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.contact-choice {
  padding: 15px 14px;
  margin-top: 10px;
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 16px;
  background: oklch(1 0 0 / 0.035);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.contact-choice-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: color-mix(in oklch, var(--tone) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--tone) 32%, transparent);
}
.contact-choice b {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text);
}
.contact-choice small {
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.5;
}
@media (hover: hover) {
  .contact-choice:hover {
    background: oklch(1 0 0 / 0.07);
    border-color: color-mix(in oklch, var(--tone) 50%, var(--line));
    transform: translateX(-2px);
  }
}

/* 5. שדות טופס וכפתורי שליחה בתגובות וביצירת קשר */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.feedback-input,
.feedback-field {
  display: grid;
  gap: 6px;
}
.feedback-input > span,
.feedback-field > span {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-2);
}
.feedback-input input,
.feedback-field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid oklch(1 0 0 / 0.11);
  border-radius: 12px;
  background: oklch(0 0 0 / 0.24);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.feedback-input input {
  height: 44px;
}
.feedback-field textarea {
  min-height: 112px;
  line-height: 1.65;
  resize: vertical;
}
.feedback-input input::placeholder,
.feedback-field textarea::placeholder {
  color: oklch(1 0 0 / 0.38);
}
.feedback-input input:focus,
.feedback-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: oklch(0 0 0 / 0.34);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
}
.feedback-submit-btn {
  width: 100%;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.35), inset 0 1px 0 oklch(1 0 0 / 0.35);
  justify-content: center;
  transition: filter .2s, transform .15s var(--ease);
}
@media (hover: hover) {
  .feedback-submit-btn:hover:not(:disabled) {
    filter: brightness(1.06);
  }
}
.feedback-submit-btn:disabled {
  opacity: 0.48;
  cursor: default;
}
.feedback-submit-btn.is-busy {
  opacity: 0.85;
  cursor: progress;
}
.feedback-submit-btn.is-busy .i {
  display: none;
}
.feedback-submit-btn.is-busy::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2.5px solid color-mix(in oklch, var(--accent-ink) 28%, transparent);
  border-top-color: var(--accent-ink);
  animation: btnSpin 0.7s linear infinite;
  flex: none;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .feedback-submit-btn.is-busy::before { animation: none; }
}
.community-challenge {
  margin: 12px 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.community-challenge-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-2);
  text-align: center;
}
.feedback-error {
  margin: 10px 0 0;
  padding: 10px 13px;
  border-radius: 11px;
  background: oklch(0.45 0.16 25 / 0.22);
  border: 1px solid oklch(0.68 0.18 25 / 0.5);
  color: oklch(0.95 0.04 25);
  font-size: 0.86rem;
}
.feedback-panel [hidden] {
  display: none !important;
}
.feedback-panel.is-centered-card .feedback-head {
  justify-content: flex-end;
  margin-bottom: -14px;
}
.feedback-panel.is-centered-card .sheet-head-title,
.feedback-panel.is-centered-card .feedback-context {
  display: none;
}
.mail-confirm-card {
  text-align: center;
  padding: 6px 8px 4px;
}
.mail-confirm-kicker {
  margin-bottom: 6px;
}
.mail-confirm-card h3 {
  margin: 0 0 10px;
  font-family: var(--f-title);
  font-weight: 900;
  font-size: clamp(1.55rem, 1.35rem + 0.6vw, 1.85rem);
  line-height: 1.15;
  color: var(--text);
}
.mail-confirm-lead {
  margin: 0 auto 22px;
  max-width: 34ch;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.65;
}
.mail-confirm-card .feedback-error {
  margin: 0 0 18px;
  text-align: center;
}
.mail-confirm-acts {
  display: flex;
  justify-content: center;
}
.mail-confirm-acts .feedback-submit-btn {
  width: 100%;
  max-width: 300px;
  min-height: 48px;
  font-size: 1rem;
  white-space: nowrap;
}
.mail-confirm-foot {
  margin: 16px auto 0;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
}
.mail-confirm-icon.is-err {
  background: oklch(0.55 0.16 25 / 0.18);
  box-shadow: inset 0 0 0 1px oklch(0.68 0.18 25 / 0.42);
  color: oklch(0.86 0.12 25);
}
.feedback-error[hidden],
#feedbackWhatsappView[hidden],
#feedbackSuccess[hidden] {
  display: none;
}

/* מסך אישור פנייה פרטית (REF) */
.feedback-success {
  text-align: center;
  padding: 16px 8px 6px;
}
.feedback-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 40%, transparent);
  color: var(--accent);
}
.feedback-success-icon .i {
  width: 28px;
  height: 28px;
}
.feedback-success h3 {
  margin: 0 0 6px;
  font-family: var(--f-title);
  font-weight: 900;
  font-size: 1.65rem;
}
.feedback-success p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.feedback-ref-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px dashed color-mix(in oklch, var(--accent) 45%, var(--line));
  background: oklch(0 0 0 / 0.25);
  font-size: 0.9rem;
}
.feedback-ref-box code {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.feedback-success-acts {
  display: flex;
  gap: 10px;
}
.feedback-success-acts .btn {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  justify-content: center;
}

/* 6. חלונית תגובות לשיעור (#commentsLayer) — כותרת עם כריכה, שרשור ותגובת הרב */
.comments-panel {
  width: min(100%, 640px);
  max-height: min(88dvh, 800px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comments-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.comments-head-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.comments-art {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
  box-shadow: 0 6px 18px oklch(0 0 0 / 0.45), 0 0 0 1px oklch(1 0 0 / 0.12);
}
.comments-art[hidden] {
  display: none;
}
.comments-head-txt {
  min-width: 0;
}
.comments-head-txt h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comments-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.comments-count-pill {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}
.btn-compose-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 42%, transparent);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .15s var(--ease);
}
.btn-compose-toggle .i {
  width: 17px;
  height: 17px;
}
@media (hover: hover) {
  .btn-compose-toggle:hover {
    background: color-mix(in oklch, var(--accent) 24%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 60%, transparent);
  }
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.86rem;
  border-radius: 999px;
}
.comments-form {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 0.1);
  background: oklch(1 0 0 / 0.04);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05);
}
.comments-form[hidden] {
  display: none;
}
.comments-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: color-mix(in oklch, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.comments-reply-banner[hidden] {
  display: none;
}
.comments-reply-banner button {
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: underline;
  color: var(--text-2);
}
.comments-form-acts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.comments-form-acts .btn-ghost {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.comments-form-acts .feedback-submit-btn {
  width: auto;
  min-height: 40px;
  padding: 0 22px;
  font-size: 0.92rem;
}
.comments-notice {
  padding: 12px 15px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 45%, var(--line));
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}
.comments-notice[hidden] {
  display: none;
}

/* רשימת התגובות וכרטיסי הדיון */
.comments-list {
  flex: 1;
  min-height: 160px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-inline-end: 2px;
}
.cmt-card {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 0.08);
  background: oklch(1 0 0 / 0.04);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04);
}
.cmt-replies {
  margin-top: 12px;
  padding-inline-start: 16px;
  border-inline-start: 2px solid color-mix(in oklch, var(--accent) 42%, oklch(1 0 0 / 0.12));
  display: grid;
  gap: 10px;
}
.cmt-reply {
  padding: 13px 15px;
  border-radius: 14px;
  background: oklch(0 0 0 / 0.22);
  border-color: oklch(1 0 0 / 0.06);
}
/* עיצוב ייחודי לתשובת הרב או צוות האתר */
.cmt-card.is-official-card {
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 13%, oklch(0.2 0.01 60)) 0%, oklch(0.17 0.008 60) 100%);
  border-color: color-mix(in oklch, var(--accent) 38%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--accent) 22%, transparent), 0 6px 20px oklch(0 0 0 / 0.22);
}
.cmt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cmt-author-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  flex: none;
  display: grid;
  place-items: center;
  background: oklch(1 0 0 / 0.09);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12);
  color: var(--text);
  font-family: var(--f-title);
  font-weight: 900;
  font-size: 1.05rem;
}
.cmt-avatar.is-official {
  background: linear-gradient(145deg, var(--gold-400), var(--gold-500));
  color: var(--accent-ink);
  box-shadow: 0 3px 10px oklch(0 0 0 / 0.3);
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cmt-author-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.cmt-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cmt-author {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}
.cmt-role-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 48%, transparent);
  color: var(--accent);
}
.cmt-time {
  font-size: 0.76rem;
  color: var(--text-3);
}
.cmt-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cmt-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.cmt-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 4px 8px;
  margin-inline-start: -8px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.cmt-act-btn .i {
  width: 14px;
  height: 14px;
}
@media (hover: hover) {
  .cmt-act-btn:hover {
    color: var(--text);
    background: oklch(1 0 0 / 0.07);
  }
}
.cmt-edit-btn {
  color: var(--accent);
}
.toast {
  z-index: 220;
}
.cmt-report-box {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid oklch(1 0 0 / 0.12);
  background: oklch(0 0 0 / 0.26);
}
.cmt-report-box[hidden] {
  display: none;
}
.cmt-report-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-2);
}
.cmt-report-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cmt-reason-chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.08);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s;
}
.cmt-reason-chip.is-on {
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 50%, transparent);
  color: var(--accent);
}
.cmt-report-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(0 0 0 / 0.3);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.cmt-report-input:focus {
  outline: none;
  border-color: var(--accent);
}
.cmt-report-done {
  font-size: 0.86rem;
  font-weight: 600;
  color: oklch(0.82 0.13 150);
}
.admin-report-alert {
  padding: 8px 12px;
  border-radius: 10px;
  background: oklch(0.55 0.19 28 / 0.18);
  border: 1px solid oklch(0.65 0.19 28 / 0.42);
  color: oklch(0.88 0.12 28);
  font-size: 0.84rem;
  font-weight: 700;
}
.admin-filters .chip b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-inline-start: 4px;
  border-radius: 999px;
  background: oklch(0.55 0.21 26);
  color: #fff;
  font-size: 0.72rem;
}
.admin-filters .chip b[hidden] {
  display: none;
}
.cmt-inline-edit {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed oklch(1 0 0 / 0.14);
}
.cmt-inline-edit[hidden] {
  display: none;
}
.cmt-inline-edit textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid oklch(1 0 0 / 0.16);
  background: oklch(0 0 0 / 0.3);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
}
.cmt-inline-edit textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.cmt-inline-edit-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cmt-inline-edit-acts .feedback-submit-btn {
  width: auto;
  min-height: 36px;
  padding: 0 18px;
}
.cmt-empty, .cmt-loading {
  margin: 26px 0;
  padding: 24px 16px;
  border-radius: 16px;
  border: 1px dashed oklch(1 0 0 / 0.1);
  text-align: center;
  color: var(--text-3);
  font-size: 0.94rem;
}

/* 7. מסך ניהול תגובות ופניות (#adminLayer) */
.admin-panel {
  width: min(100%, 780px);
  max-height: min(90dvh, 840px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-head {
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-head-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-select {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(1 0 0 / 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}
.admin-tabs, .admin-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-tabs .chip b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-inline-start: 4px;
  border-radius: 999px;
  background: oklch(0 0 0 / 0.22);
  font-size: 0.75rem;
}
.admin-filters[hidden] {
  display: none;
}
.admin-body {
  flex: 1;
  min-height: 240px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-inline-end: 2px;
}
.admin-card {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 0.09);
  background: oklch(1 0 0 / 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-lesson-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-lesson-title {
  display: inline-block;
  font-family: var(--f-title);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--accent);
}
.admin-lesson-jump {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.07);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.14);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
@media (hover: hover) {
  .admin-lesson-jump:hover {
    background: oklch(1 0 0 / 0.14);
    color: var(--text);
  }
}
.admin-sub {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 3px;
}
.admin-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: oklch(1 0 0 / 0.09);
  color: var(--text-2);
  white-space: nowrap;
}
.admin-status-pill.is-pending, .admin-status-pill.is-new {
  background: color-mix(in oklch, var(--accent) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 42%, transparent);
  color: var(--accent);
}
.admin-status-pill.is-published, .admin-status-pill.is-resolved {
  background: oklch(0.6 0.15 150 / 0.2);
  box-shadow: inset 0 0 0 1px oklch(0.68 0.15 150 / 0.4);
  color: oklch(0.82 0.13 150);
}
.admin-card-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.admin-card-acts .feedback-submit-btn {
  width: auto;
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.86rem;
}
.admin-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: oklch(0.56 0.18 28 / 0.18);
  box-shadow: inset 0 0 0 1px oklch(0.66 0.19 28 / 0.42);
  color: oklch(0.86 0.14 28);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background .2s, color .2s, transform .15s;
}
@media (hover: hover) {
  .admin-delete-btn:hover {
    background: oklch(0.56 0.18 28 / 0.28);
  }
}
.admin-delete-btn.is-confirming {
  background: oklch(0.55 0.21 26);
  box-shadow: 0 4px 16px oklch(0.55 0.21 26 / 0.45);
  color: #fff;
}
.admin-reply-box {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed oklch(1 0 0 / 0.12);
}
.admin-reply-box[hidden] {
  display: none;
}
.admin-reply-box textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(0 0 0 / 0.28);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
}
.admin-reply-box textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-reply-box .feedback-submit-btn {
  justify-self: start;
  width: auto;
  min-height: 40px;
  padding: 0 20px;
}

/* 8. התאמת נוחות קריאה והקלדה לנייד (עבור הרב ומאזינים בטלפון) */
@media (max-width: 820px) {
  .comments-panel,
  .admin-panel,
  .feedback-panel {
    max-height: 92dvh;
    padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .comments-list,
  .admin-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .cmt-body,
  .admin-card .cmt-body {
    font-size: 1.05rem;
    line-height: 1.78;
  }
  /* מניעת זום אוטומטי של iOS Safari בעת מיקוד בשדה הקלדה */
  .feedback-field textarea,
  .feedback-input input,
  .admin-reply-box textarea,
  .admin-select {
    font-size: 16px;
  }
  .cmt-act-btn {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 0.88rem;
  }
  .btn-compose-toggle {
    height: 44px;
    padding: 0 18px;
    font-size: 0.92rem;
  }
  .admin-card {
    padding: 16px;
    gap: 12px;
  }
  .admin-lesson-title {
    font-size: 1.2rem;
  }
  .admin-card-acts .btn,
  .admin-card-acts .feedback-submit-btn,
  .admin-delete-btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
  }
  .admin-reply-box .feedback-submit-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 0.96rem;
  }
}


/* Native content scrolling stays separate from the mobile sheet drag handle. */
.feedback-panel, .comments-list, .admin-body {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
.feedback-panel { overflow-x: hidden; }
.comments-list, .admin-body { min-height: min(160px, 25dvh); }
.cmt-card, .admin-card { flex-shrink: 0; }
.feedback-panel > .sheet-grab, .feedback-panel > .feedback-head { flex-shrink: 0; }
.feedback-panel.sheet-ready { animation: none; }
.feedback-panel.sheet-moving { will-change: transform; }
@media (max-width: 680px) {
  .feedback-layer { overflow: hidden; }
  .feedback-panel > .sheet-grab, .feedback-panel > .feedback-head {
    touch-action: none;
    user-select: none;
    cursor: grab;
  }
  .feedback-panel > .sheet-grab { min-height: 32px; }
  .feedback-panel.sheet-moving { cursor: grabbing; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-layer, .feedback-panel { animation: none; }
}

/* ---------- דף הבית: פתיחה עם מרחב (דניאל, 22.11) — בלי קוביות; גופן הכותרות לכל הפתיחה ---------- */
.sys-title{ margin: 0 0 14px; }
.sys-by{ font-family: var(--f-title); font-weight: 500; font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.4rem); color: var(--text-2); margin: 0 0 clamp(18px, 3vh, 28px); text-shadow: 0 1px 14px oklch(0 0 0 / 0.7); }
.sys-sub{ font-family: var(--f-title); font-weight: 500; font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem); line-height: 1.5; max-width: 32ch; margin: 0; text-wrap: pretty; }
.sys-sub .num{ font-weight: 900; color: var(--accent); }
:root[data-theme="day"] .sys-by{ text-shadow: 0 1px 14px oklch(1 0 0 / 0.95); }
/* הפתיחה נמוכה יותר — רואים את תחילת הגלריה כבר במסך הראשון */
.sys{ min-height: min(74vh, 660px); }
@media (max-width: 760px){ .sys{ min-height: 0; padding-top: 21vh; padding-bottom: 16px; } .sys-title{ font-size: 2.6rem; margin-bottom: 8px; } .sys-by{ margin-bottom: 14px; } .sys-sub{ font-size: 1.15rem; } .now{ margin-top: 20px; } }

/* ---------- "עכשיו" (22.11, דניאל בחר את ג): מדף ראשון בסגנון הכרטיסים באתר, המשנה האחרונה ופרשת השבוע ---------- */
.now{ margin-top: clamp(22px, 4vh, 36px); }

/* כמו שורה ראשונה בנטפליקס: אותה שפה כמו הכרטיסים שמתחת, כך שהפתיחה זורמת ישר לגלריה */
.shelf-head{ font-family: var(--f-ui); font-weight: 700; font-size: var(--fs-row); margin-bottom: 10px; text-shadow: 0 1px 12px oklch(0 0 0 / 0.5); }
.shelf{ display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: clamp(8px, 1vw, 14px); }
.sc{ display: grid; gap: 6px; min-width: 0; }
.sc-pic{
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden;
  box-shadow: inset 0 0 0 1px oklch(1 0.02 85 / 0.16), 0 10px 26px oklch(0.1 0.02 60 / 0.24);
}
.sc-pic img{ width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.sc:hover .sc-pic img{ transform: scale(1.045); }
.sc-pic::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.08 0.01 55 / 0.86) 0%, oklch(0.08 0.01 55 / 0.28) 44%, oklch(0.08 0.01 55 / 0.06) 68%, oklch(0.08 0.01 55 / 0.36) 100%);
}
.sc-t{
  position: absolute; inset-inline: 13px; bottom: 11px; z-index: 1;
  font-family: var(--f-title); font-weight: 900; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.01em;
  color: oklch(0.985 0.008 85); text-shadow: 0 2px 14px oklch(0 0 0 / 0.72), 0 1px 2px oklch(0 0 0 / 0.55);
}
.sc:not(.is-soon) .sc-t{ padding-inline-end: 44px; }
/* סמל ההפעלה: כהה־שקוף עם מסגרת וחץ לבן שמשתלב בתמונה, בפינה התחתונה־שמאלית */
.sc-play{
  position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px;
  background: var(--play-disc); color: var(--play-disc-ink);
  border: var(--play-disc-border); backdrop-filter: blur(8px);
  box-shadow: var(--play-disc-shadow);
  transition: transform .22s var(--ease), background .22s, border-color .22s;
}
.sc-play .i{ width: 14px; height: 14px; transform: translateX(1px); }
@media (hover: hover){
  .sc:hover .sc-play, .sc-play:hover{
    transform: scale(1.07);
    background: oklch(0.14 0.01 60 / 0.78);
    border-color: #fff;
  }
}
.sc-cap{ font-size: var(--fs-small); color: var(--text-2); }
:root[data-theme="day"] .shelf-head, :root[data-theme="day"] .sc-cap{ text-shadow: 0 1px 10px oklch(1 0 0 / 0.95); color: var(--text); }

/* פרשה שטרם עלתה — עיטור שקט "יעלה בקרוב" בסגנון דפוס עברי עדין */
.sc.is-soon .sc-pic{ box-shadow: inset 0 0 0 1px oklch(1 0.02 85 / 0.14), 0 10px 26px oklch(0.1 0.02 60 / 0.2); }
.sc.is-soon .sc-pic img, .sq.is-soon .pic img, .week.is-soon > img{ filter: saturate(0.76) brightness(0.76); }
.sc.is-soon .sc-pic::after, .sq.is-soon .pic::after{
  background: linear-gradient(to top, oklch(0.08 0.01 55 / 0.88) 0%, oklch(0.08 0.01 55 / 0.22) 52%, oklch(0.08 0.01 55 / 0.42) 100%);
}
.sc.is-soon .badge, .sq.is-soon .badge{
  background: oklch(0.14 0.01 60 / 0.62); color: oklch(0.92 0.015 85);
  border: 1px solid oklch(1 0 0 / 0.16); backdrop-filter: blur(8px);
}
.sc-soon{
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px; border-radius: 4px;
  background: oklch(0.12 0.01 60 / 0.58);
  border: 1px solid oklch(0.92 0.04 84 / 0.24);
  backdrop-filter: blur(8px);
  color: oklch(0.95 0.02 85);
  font-family: var(--f-title); font-weight: 700; font-size: 0.82rem; line-height: 1.3; letter-spacing: 0.015em;
  white-space: nowrap;
}
.sc-soon::before, .soon-pill::before{
  content: ""; width: 5px; height: 5px; flex: none;
  background: oklch(0.85 0.125 84);
  transform: rotate(45deg);
  box-shadow: 0 0 8px oklch(0.85 0.125 84 / 0.55);
}
.sq .sc-soon{ top: 36px; inset-inline-start: 8px; inset-inline-end: auto; padding: 2px 8px; gap: 6px; font-size: 0.74rem; }
.sq .sc-soon::before{ width: 4px; height: 4px; }
.sq.is-soon .badge{ top: 8px; inset-inline-start: 8px; padding: 2px 8px; font-size: 0.72rem; }
.sq.is-soon .cap span{ color: var(--accent); font-weight: 500; }

.hero-soon > img{ filter: saturate(0.76) brightness(0.68); }
.hero-soon .acts{ flex-wrap: wrap; }
.soon-pill{
  display: inline-flex; align-items: center; gap: 9px;
  margin: 4px 0 8px; padding: 5px 14px; border-radius: 4px;
  background: oklch(0.12 0.01 60 / 0.54);
  border: 1px solid oklch(0.92 0.04 84 / 0.26);
  backdrop-filter: blur(8px);
  color: oklch(0.96 0.02 85);
  font-family: var(--f-title); font-weight: 700; font-size: 1rem; letter-spacing: 0.015em;
}

/* טלפון: הכל במסך הראשון */
@media (max-width: 760px){
  .shelf-head{ font-size: 1.05rem; margin-bottom: 8px; }
  .shelf{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sc-t{ font-size: 1.08rem; inset-inline: 9px; bottom: 8px; }
  .sc:not(.is-soon) .sc-t{ padding-inline-end: 36px; }
  .sc-play{ width: 30px; height: 30px; bottom: 7px; inset-inline-end: 7px; }
  .sc-play .i{ width: 12px; height: 12px; }
  .sc .badge{ font-size: 0.68rem; padding: 2px 7px; top: 7px; inset-inline-start: 7px; }
  .sc-soon{ top: 7px; inset-inline-end: 7px; gap: 5px; padding: 2px 7px; font-size: 0.7rem; }
  .sc-soon::before{ width: 4px; height: 4px; }
  .sc-cap{ font-size: 0.78rem; }
}

@media (max-width: 760px){
  :root[data-theme="day"] .sys{ padding-bottom: 16px; }
  :root[data-theme="day"] .sys-photo{ aspect-ratio: 16 / 7.5; margin-bottom: -48px; object-position: 50% 28%; }
}
