:root {
  --ink: #111b21;
  --ink-2: #3b4a54;
  --muted: #667781;
  --line: #e9edef;
  --bg: #ffffff;
  --soft: #f0f2f5;
  --brand: #ff5a36;
  --brand-2: #ff2d6f;
  --seen: #c4ccd2;
  --badge: #ff5a36;
  --font: "Rubik", "Assistant", "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9edef; --ink-2: #c3ccd2; --muted: #8696a0; --line: #222d34;
    --bg: #0b141a; --soft: #1b262d; --seen: #43525c;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.demo-banner { background: #fff6d6; color: #5c4600; text-align: center; font-size: 13px; padding: 6px 16px; }

/* =============== מסך "עדכונים" =============== */
.app { max-width: 640px; margin: 0 auto; min-height: 100dvh; }

.appbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 14px 16px 8px; display: flex; align-items: center; gap: 10px; }
.appbar h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.appbar h1 em { font-style: normal; color: var(--brand); }
.appbar .sub { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 5px; color: #12a150; font-weight: 600; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #12a150; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.sec-h { font-size: 19px; font-weight: 700; padding: 12px 16px 10px; margin: 0; }

/* עיגול עם טבעת מחולקת לקטעים, קטע לכל עדכון */
.av { position: relative; flex: none; width: var(--s, 52px); height: var(--s, 52px); }
.av > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.av .face {
  position: absolute; inset: 4px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); font-size: calc(var(--s, 52px) * .4); overflow: hidden;
}
.av.plain .face { inset: 0; }
.face.logo { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; }

/* שורת כרטיסי הסטטוס */
.cards { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cards::-webkit-scrollbar { display: none; }
.card {
  position: relative; flex: none; width: 104px; height: 176px; border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 0; padding: 0; background: var(--c, #243640); color: #fff; text-align: center; scroll-snap-align: start;
}
.card .prev-txt {
  position: absolute; inset: 52px 8px 34px; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; line-height: 1.3; overflow: hidden;
}
.card img.prev-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.card .av { position: absolute; top: 8px; right: 8px; --s: 40px; z-index: 2; }
.card .av .face { border: 2px solid var(--c, #243640); inset: 3px; }
.card .nm { position: absolute; bottom: 8px; inset-inline: 8px; z-index: 2; font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .spon { position: absolute; bottom: 26px; right: 8px; z-index: 2; font-size: 10.5px; opacity: .85; }

/* רשימת ערוצים */
.chan { display: flex; align-items: center; gap: 13px; padding: 10px 16px; width: 100%; background: none; border: 0; text-align: right; cursor: pointer; }
.chan:hover { background: var(--soft); }
.chan .mid { flex: 1; min-width: 0; }
.chan b { display: block; font-size: 16.5px; font-weight: 600; }
.chan .last { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.chan .t { font-size: 12px; color: var(--muted); }
.chan .t.new { color: var(--badge); font-weight: 600; }
.chan .badge { background: var(--badge); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }

.advertise { margin: 22px 16px 10px; background: var(--soft); border-radius: 18px; padding: 20px; }
.advertise h2 { margin: 0 0 6px; font-size: 19px; }
.advertise p { margin: 0 0 8px; color: var(--ink-2); }
.advertise ul { margin: 0 0 14px; padding: 0 18px 0 0; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 99px; border: 0; cursor: pointer; }
footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px 16px 30px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.skeleton { background: linear-gradient(90deg, var(--soft), var(--bg), var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* =============== צופה הסטטוס =============== */
.viewer { position: fixed; inset: 0; z-index: 100; background: #0b141a; display: none; align-items: center; justify-content: center; gap: 24px; }
.viewer.open { display: flex; }

.stage {
  position: relative; width: 100%; max-width: 460px; height: 100dvh; overflow: hidden; color: #fff;
  user-select: none; -webkit-user-select: none; touch-action: none; background: var(--solid, #243640);
}
@media (min-width: 700px) { .stage { height: min(94dvh, 880px); border-radius: 8px; } }

.bars { position: absolute; top: 8px; inset-inline: 8px; display: flex; gap: 4px; z-index: 4; transition: opacity .2s; }
.bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; }
.bars i b { display: block; height: 100%; width: 0; background: #fff; }

.s-head { position: absolute; top: 18px; inset-inline: 4px 8px; display: flex; align-items: center; gap: 6px; z-index: 4; transition: opacity .2s; }
.s-head .av { --s: 38px; }
.s-head .who { flex: 1; min-width: 0; line-height: 1.25; padding-inline-start: 4px; }
.s-head .who b { display: block; font-size: 16px; font-weight: 600; }
.s-head .who small { font-size: 13px; opacity: .85; }
.ico { background: none; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 22px; display: grid; place-items: center; flex: none; }
.ico:hover { background: rgba(255,255,255,.1); }
.ico svg { width: 24px; height: 24px; fill: currentColor; }

/* טקסט במרכז המסך, כמו סטטוס טקסט */
.s-text {
  position: absolute; inset: 76px 26px 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; z-index: 2; gap: 14px;
}
.s-text h2 { margin: 0; font-size: clamp(27px, 7.4vw, 36px); font-weight: 600; line-height: 1.25; }
.s-text p { margin: 0; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.45; opacity: .95; }
.s-text .tip { font-size: 17px; opacity: .92; }
.s-text.fade > * { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; } }

/* סטטוס עם תמונה: התמונה במרכז והכיתוב למטה */
.s-img { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; background: #000; }
.s-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.s-caption { position: absolute; inset-inline: 0; bottom: 92px; z-index: 3; text-align: center; padding: 14px 20px; background: rgba(0,0,0,.45); }
.s-caption b { display: block; font-size: 18px; margin-bottom: 4px; }
.s-caption span { font-size: 15.5px; opacity: .95; }

/* שורת "השב" למטה */
.s-foot { position: absolute; bottom: 0; inset-inline: 0; padding: 0 10px 14px; z-index: 4; transition: opacity .2s; }
.chev { display: block; margin: 0 auto 6px; background: none; border: 0; color: #fff; cursor: pointer; opacity: .9; }
.chev svg { width: 26px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.reply-row { display: flex; align-items: center; gap: 8px; }
.reply {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; padding: 0 16px;
  background: rgba(0,0,0,.28); border: 0; color: rgba(255,255,255,.85); cursor: pointer; font-size: 16px; text-align: right;
}
.reply .em { font-size: 20px; opacity: .9; }
.heart { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.28); border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; }
.heart svg { width: 24px; height: 24px; }
.heart.on svg path { fill: #ff3b5c; stroke: #ff3b5c; }
.heart.pop { animation: heartPop .45s ease; }
@keyframes heartPop { 40% { transform: scale(1.35); } }
.cta { display: block; text-align: center; background: #fff; color: #111b21; font-weight: 600; font-size: 16.5px; padding: 13px; border-radius: 24px; }

.spon-tag { font-size: 12.5px; opacity: .85; }

/* לוח האימוג'י שעולה מלמטה */
.panel {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 8; padding: 18px 14px 16px;
  background: #0b141a; transform: translateY(105%); transition: transform .25s ease;
  border-radius: 18px 18px 0 0;
}
.panel.open { transform: none; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.quick button { background: none; border: 0; font-size: 38px; line-height: 1; padding: 8px 0; cursor: pointer; border-radius: 14px; transition: transform .12s; }
.quick button:hover { background: rgba(255,255,255,.08); transform: scale(1.12); }
.quick button.mine { background: rgba(255,255,255,.14); }
.panel .acts { display: flex; gap: 8px; }
.panel .acts a, .panel .acts button { flex: 1; text-align: center; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 12px; padding: 10px 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.details { max-height: 36dvh; overflow-y: auto; margin: 0 0 14px; padding: 0 4px; touch-action: pan-y; }
.details p { margin: 0 0 10px; font-size: 16px; line-height: 1.65; color: #e9edef; }
.details .src { font-size: 13px; color: #8696a0; }
.details .src a { text-decoration: underline; }

.flyer { position: absolute; z-index: 9; font-size: 70px; pointer-events: none; left: 50%; bottom: 120px; transform: translateX(-50%); animation: fly 1.1s ease-out forwards; }
@keyframes fly { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 25% { transform: translate(-50%, -40px) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -260px) scale(1); opacity: 0; } }

.tap { position: absolute; top: 70px; bottom: 110px; z-index: 3; }
.tap.prev { right: 0; width: 34%; }
.tap.next { left: 0; width: 66%; }

/* בזמן החזקה: כל הכפתורים נעלמים, כמו בסטטוס */
.stage.paused .bars, .stage.paused .s-head, .stage.paused .s-foot { opacity: 0; }
.stage:has(.panel.open) .s-foot { opacity: 0; pointer-events: none; }

/* מחשב: חיצים בצדדים ומודעות בצד */
.nav-arrow { display: none; }
@media (min-width: 700px) {
  .nav-arrow { display: grid; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; place-items: center; font-size: 22px; flex: none; }
  .nav-arrow:hover { background: rgba(255,255,255,.22); }
}
.v-close { position: absolute; top: 16px; left: 18px; display: none; }
@media (min-width: 700px) { .v-close { display: grid; } }
.v-side { width: 250px; display: none; flex-direction: column; gap: 12px; }
@media (min-width: 1150px) { .v-side { display: flex; } }
.v-side .lbl { color: #8696a0; font-size: 12px; font-weight: 600; }
.side-ad { display: block; border-radius: 14px; padding: 14px; color: #fff; background: var(--ad-c, #243640); }
.side-ad img { width: 100%; border-radius: 10px; margin-bottom: 10px; aspect-ratio: 16/10; object-fit: cover; }
.side-ad b { display: block; font-size: 16px; margin-bottom: 4px; }
.side-ad p { margin: 0 0 10px; font-size: 14px; opacity: .9; }
.side-ad .go { display: inline-block; background: #fff; color: #111b21; font-weight: 600; padding: 6px 14px; border-radius: 99px; font-size: 14px; }
.side-house { border: 1.5px dashed rgba(255,255,255,.3); border-radius: 14px; padding: 16px; color: #aebac1; text-align: center; font-size: 14px; }
.side-house b { color: #fff; display: block; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =============== התקנה למסך הבית =============== */
.install { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; flex: none; }
.install:hover { border-color: var(--brand); }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(92vw, 420px);
  background: var(--ink); color: var(--bg); border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.6;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: fadeIn .25s ease;
}
.toast b { display: block; margin-bottom: 4px; }
.toast button { float: left; background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; }

/* =============== אייקונים בקו דק =============== */
.i { display: inline-block; vertical-align: middle; flex: none; }
.face.ic { color: #fff; }
.card .av .face.ic { border-color: var(--c, #243640); }
.reply .em { display: grid; place-items: center; opacity: .85; }
.hot-pill { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #c0392b; font-size: 14px; font-weight: 700; padding: 3px 11px 3px 9px; border-radius: 99px; }
.panel .acts button { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.install { display: inline-flex; align-items: center; gap: 6px; }
.advertise h2 { display: flex; align-items: center; gap: 8px; }
.toast .i { vertical-align: -3px; }

/* =============== ערכת נושא וגודל טקסט מההגדרות =============== */
:root[data-theme="dark"] {
  --ink: #e9edef; --ink-2: #c3ccd2; --muted: #8696a0; --line: #222d34;
  --bg: #0b141a; --soft: #1b262d; --seen: #43525c;
}
html.fs-s body { font-size: 15px; }
html.fs-s .s-text h2 { font-size: clamp(23px, 6.4vw, 30px); }
html.fs-s .s-text p { font-size: clamp(16px, 4.2vw, 19px); }
html.fs-l body { font-size: 18px; }
html.fs-l .chan b { font-size: 18px; }
html.fs-l .chan .last { font-size: 15.5px; }
html.fs-l .s-text h2 { font-size: clamp(31px, 8.6vw, 42px); }
html.fs-l .s-text p { font-size: clamp(20px, 5.6vw, 25px); }
html.fs-l .details p { font-size: 18px; }

/* =============== תפריט שלוש נקודות =============== */
.menu-wrap { position: relative; }
.menu-btn { background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu-btn:hover { background: var(--soft); }
.menu {
  position: absolute; top: 44px; left: 0; min-width: 210px; background: var(--bg); border-radius: 12px; padding: 6px 0; z-index: 30;
  box-shadow: 0 6px 24px rgba(0,0,0,.18), 0 0 0 1px var(--line); display: none;
}
.menu.open { display: block; animation: fadeIn .15s ease; }
.menu a, .menu button { display: block; width: 100%; text-align: right; padding: 12px 18px; background: none; border: 0; font-size: 15.5px; cursor: pointer; color: var(--ink); }
.menu a:hover, .menu button:hover { background: var(--soft); }

/* ערוצים מושתקים, מקופלים בתחתית הרשימה */
.muted-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; background: none; border: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.muted-toggle .i { transition: transform .2s; }
.muted-toggle.open .i { transform: rotate(180deg); }
.muted-list { display: none; opacity: .75; }
.muted-list.open { display: block; }

/* =============== עמוד הגדרות =============== */
.set-top { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; align-items: center; gap: 8px; padding: 10px 8px; }
.set-top h1 { margin: 0; font-size: 21px; font-weight: 600; }
.set-top a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.set-top a:hover { background: var(--soft); }
.profile { display: flex; align-items: center; gap: 16px; padding: 14px 16px 18px; border-bottom: 1px solid var(--line); }
.profile b { display: block; font-size: 19px; font-weight: 600; }
.profile span { color: var(--muted); font-size: 14.5px; }
.set-sec { padding: 18px 16px 4px 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.set-row {
  display: flex; align-items: center; gap: 22px; width: 100%; padding: 14px 20px; background: none; border: 0; text-align: right;
  color: var(--ink); cursor: pointer; font-size: 16.5px;
}
.set-row:hover { background: var(--soft); }
.set-row > .i { color: var(--muted); }
.set-row .txt { flex: 1; min-width: 0; }
.set-row .txt b { display: block; font-weight: 400; }
.set-row .txt small { display: block; color: var(--muted); font-size: 14px; margin-top: 1px; }
.set-row.danger, .set-row.danger > .i { color: #d93847; }
.set-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px 40px; }

/* מתג הפעלה */
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 3px 0; border-radius: 99px; background: var(--seen); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 50%; right: -2px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: right .2s; }
.switch input:checked + i { background: color-mix(in srgb, var(--brand) 55%, transparent); }
.switch input:checked + i::after { right: 20px; background: var(--brand); }

/* חלון בחירה */
.dlg-back { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; animation: fadeIn .15s ease; }
.dlg { width: min(100%, 360px); background: var(--bg); border-radius: 24px; padding: 22px 0 10px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.dlg h3 { margin: 0 24px 12px; font-size: 19px; font-weight: 600; }
.dlg p { margin: 0 24px 10px; color: var(--ink-2); }
.dlg label { display: flex; align-items: center; gap: 18px; padding: 12px 24px; cursor: pointer; font-size: 16px; }
.dlg label:hover { background: var(--soft); }
.dlg input[type=radio], .dlg input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.dlg .btns { display: flex; justify-content: flex-end; gap: 4px; padding: 10px 14px 4px; }
.dlg .btns button { background: none; border: 0; color: var(--brand); font-weight: 600; font-size: 15.5px; padding: 10px 14px; border-radius: 99px; cursor: pointer; }
.dlg .btns button:hover { background: var(--soft); }
.dlg .btns button.red { color: #d93847; }
.snack { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #323739; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 15px; z-index: 400; animation: fadeIn .2s ease; }

/* =============== מבנה מסך "עדכונים" =============== */
body.has-nav .app { padding-bottom: 92px; }
.appbar h1 { font-size: 23px; }
.appbar .menu-btn .i { width: 24px; height: 24px; }

/* כרטיס "הוספה" ראשון, כמו "הסטטוס שלי" */
.card.add { background: var(--soft); color: var(--ink); text-decoration: none; display: block; }
.card.add::after { background: none; }
.card.add .prev-txt { color: var(--muted); font-weight: 500; }
.card.add .nm { color: var(--ink); }
.card.add .av .face { border: 2px solid var(--soft); inset: 0; }
.card.add .plus {
  position: absolute; bottom: -3px; left: -3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; border: 2px solid var(--soft);
}

/* כפתור "פרטים" בשורה, כמו "עקוב" */
.follow { flex: none; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); font-weight: 600; font-size: 14px; padding: 6px 16px; border-radius: 99px; }
a.chan { color: inherit; text-decoration: none; }
.chan .mid b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* כפתור צף */
.fab {
  position: fixed; left: max(16px, calc(50% - 304px)); bottom: 92px; z-index: 20; width: 56px; height: 56px; border-radius: 16px; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.fab:hover { filter: brightness(1.08); }

/* סרגל ניווט תחתון */
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 20; display: flex; justify-content: center; gap: 0;
  background: var(--bg); border-top: 1px solid var(--line); padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
}
.bottom-nav a, .bottom-nav button {
  flex: 1; max-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0;
  color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.bottom-nav .pill { width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .2s; }
.bottom-nav .on .pill { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.bottom-nav .on { font-weight: 700; }

/* מסך חיפוש */
.search { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: none; overflow-y: auto; }
.search.open { display: block; animation: fadeIn .15s ease; }
.search-bar { position: sticky; top: 0; background: var(--bg); display: flex; align-items: center; gap: 6px; padding: 8px; max-width: 640px; margin: 0 auto; }
.search-bar input { flex: 1; font: inherit; font-size: 17px; color: var(--ink); background: var(--soft); border: 0; border-radius: 99px; padding: 11px 18px; outline: none; }
#search-results { max-width: 640px; margin: 0 auto; }
.search-bar input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }

/* סרטון בסטטוס */
.s-img video { max-width: 100%; max-height: 100%; object-fit: contain; background: #000; }
.sound-btn { position: absolute; top: 70px; left: 12px; z-index: 5; background: rgba(0,0,0,.35); }

/* כיתוב בתחתית, כמו בסטטוס */
.s-caption { background: linear-gradient(transparent, rgba(0,0,0,.55) 35%); padding: 34px 20px 14px; bottom: 82px; text-align: center; }
.cap-text { font-size: 16.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.cap-text b { font-weight: 700; }
.s-caption.open { background: rgba(0,0,0,.72); max-height: 60%; overflow-y: auto; top: auto; }
.s-caption.open .cap-text { -webkit-line-clamp: unset; display: block; }
.cap-more { background: none; border: 0; color: #fff; font-weight: 700; font-size: 15px; padding: 4px 10px; cursor: pointer; opacity: .9; }
.s-caption { z-index: 4; }

/* =============== מסך התחברות =============== */
html.walled body { overflow: hidden; }
.login-wall { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.lw-box { width: min(100%, 380px); text-align: center; }
.lw-box h1 { font-size: 32px; margin: 0 0 8px; }
.lw-box h1 em { font-style: normal; color: var(--brand); }
.lw-sub { color: var(--muted); margin: 0 0 28px; font-size: 16.5px; }
.lw-google { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 99px; padding: 13px 20px; font-weight: 600; font-size: 16.5px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.lw-google:hover { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.lw-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.lw-err { color: #e05252; font-weight: 600; margin: 14px 0 0; }
.lw-links { margin-top: 30px; font-size: 13.5px; }
.lw-links a { color: var(--muted); text-decoration: underline; }

/* =============== פעמון =============== */
.bell-btn { position: relative; }
.bell-badge { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: #e0243c; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.bell-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bell-item.unread { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.bi-mid { flex: 1; min-width: 0; }
.bi-mid b { font-size: 16px; }
.bi-mid p { margin: 4px 0; color: var(--ink-2); white-space: pre-wrap; }
.bi-mid small { color: var(--muted); font-size: 12.5px; }
.bi-tag { margin-inline-start: 8px; font-size: 11.5px; font-weight: 700; color: var(--brand); border: 1px solid var(--brand); border-radius: 99px; padding: 0 7px; }
.bell-form { max-width: 640px; margin: 18px auto 40px; padding: 16px; display: grid; gap: 10px; }
.bell-form h3 { margin: 0; font-size: 17px; }
.bell-form select, .bell-form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.bell-form textarea { min-height: 110px; resize: vertical; }
.bell-form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 600; font-size: 14.5px; }
.form-msg.good { color: #12a150; } .form-msg.bad { color: #e05252; }
.cap-credit { font-size: 11px; opacity: .65; margin-top: 2px; }
.seo-intro { margin: 18px 16px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.seo-intro .seo-h1 { font-size: 14px; margin: 0 0 4px; color: var(--ink-2); }
.seo-intro p { margin: 0; }

/* =============== כלים שימושיים =============== */
.tools { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.tools::-webkit-scrollbar { display: none; }
.tool { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--soft); border: 0; border-radius: 16px; padding: 12px 6px 10px; cursor: pointer; text-align: center; }
.tool:hover { filter: brightness(1.06); }
.tool .t-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 4px; }
.tool b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tool small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* =============== התרעות בראש המסך =============== */
#alerts { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
#alerts:empty { display: none; }
#alerts { margin-top: 4px; }
.alert-bar { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; border: 0; border-radius: 14px; padding: 11px 14px; font-size: 14.5px; line-height: 1.4; color: #fff; cursor: pointer; }
.alert-bar span { flex: 1; min-width: 0; }
.alert-bar i { font-style: normal; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 99px; flex: none; }
.alert-bar svg { flex: none; }
.alert-bar.red { background: #b3261e; animation: alertPulse 2.4s ease-in-out infinite; }
.alert-bar.red.static { animation: none; margin-bottom: 8px; cursor: default; }
.alert-bar.blue { background: #1f6aa5; }
.alert-bar.calm { background: var(--soft); color: var(--ink); cursor: default; }
@keyframes alertPulse { 50% { background: #8f1d17; } }

/* =============== חלון כלי (זמנים, פיקוד העורף) =============== */
.sheet-body { max-width: 640px; margin: 0 auto; padding: 4px 16px 40px; }
.sheet-h { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.zm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.zm-city { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border: 0; border-radius: 99px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.zm-days { display: flex; background: var(--soft); border-radius: 99px; padding: 3px; }
.zm-days button { border: 0; background: none; padding: 6px 16px; border-radius: 99px; cursor: pointer; font-weight: 600; color: var(--muted); }
.zm-days button.on { background: var(--bg); color: var(--ink); }
.zm-date { color: var(--muted); margin: 12px 2px 8px; font-size: 14.5px; }
.zm-list, .zm-shabbat { background: var(--soft); border-radius: 16px; overflow: hidden; }
.zm-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.zm-row:last-child { border-bottom: 0; }
.zm-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.zm-row.next { background: rgba(255,90,54,.12); }
.zm-row.next b { color: var(--brand); }
.zm-shabbat { margin-top: 16px; }
.zm-shabbat h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px 6px; font-size: 16px; }
.zm-share { margin: 18px auto 0; display: flex; justify-content: center; }
.zm-note { color: var(--muted); font-size: 12.5px; margin: 14px 2px 0; line-height: 1.6; }
.oref-list { display: flex; flex-direction: column; gap: 8px; }
.oref-item { background: var(--soft); border-radius: 14px; padding: 10px 14px; border-inline-start: 4px solid #b3261e; }
.oref-item small { color: var(--muted); font-size: 12.5px; }
.oref-item p { margin: 4px 0 0; white-space: pre-wrap; font-size: 15px; }
.guide { display: flex; flex-direction: column; gap: 8px; }
.guide div { background: var(--soft); border-radius: 14px; padding: 10px 14px; }
.guide b { font-size: 15.5px; }
.guide p { margin: 3px 0 0; color: var(--ink-2); font-size: 14.5px; }
.phones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.phones a { background: var(--soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; }
.phones b { font-size: 22px; color: #b3261e; }
.phones span { font-size: 13.5px; color: var(--muted); }
.city-list { max-height: 50vh; overflow-y: auto; }
.dlg { max-height: 90vh; overflow-y: auto; }
.snack-act { background: none; border: 0; color: #7fd1ff; font-weight: 700; cursor: pointer; margin-inline-start: 8px; }
.reply-row .heart + .heart { margin-inline-start: 0; }
.zm-warn { color: var(--ink-2); background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.share-dlg { width: min(100%, 400px); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 14px 8px; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; border-radius: 14px; cursor: pointer; font-size: 13.5px; color: var(--ink); text-align: center; }
.share-grid a:hover, .share-grid button:hover { background: var(--soft); }
.share-grid span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share-back { z-index: 500; }

/* "גלו עוד": כמו "ערוצים מומלצים" בסטטוס */
.tools { gap: 8px; padding: 2px 16px 16px; }
.disc { flex: none; width: 128px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.disc .d-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 8px; }
.disc b { font-size: 15px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc small { font-size: 12.5px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc .follow { margin-top: 10px; border: 0; cursor: pointer; width: 100%; font: inherit; font-weight: 600; font-size: 14px; }
.pin-ic { color: var(--muted); display: inline-flex; transform: rotate(40deg); }
/* כפתור צף קטן מעל הגדול, כמו העיפרון בסטטוס */
.fab-mini {
  position: fixed; left: max(24px, calc(50% - 296px)); bottom: 160px; z-index: 20; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
body.has-viewer .fab-mini { display: none; }
/* מחשב: הכפתורים הצפים מחוץ לעמודה, כדי שלא יסתירו את הרשימה */
@media (min-width: 820px) {
  .fab { left: calc(50% - 320px - 80px); }
  .fab-mini { left: calc(50% - 320px - 72px); }
}
/* הלוגו: האות נ בעיגול צבעוני, גדולה ובולטת כמו תמונת פרופיל בסטטוס */
.face.logo {
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 55%), linear-gradient(135deg, #ff6a3d, #ff2d6f);
  color: #fff; font-weight: 800; font-size: calc(var(--s, 40px) * .5); line-height: 1; letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
/* "שלחו לנו" */
.send-page { padding: 8px 16px 40px; }
.send-intro { color: var(--ink-2); margin: 4px 0 16px; }
.send-page form { display: flex; flex-direction: column; gap: 8px; }
.send-page label { font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.send-page input:not([type=checkbox]):not([type=file]), .send-page textarea { font: inherit; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.send-page textarea { min-height: 110px; resize: vertical; }
.send-file { border: 2px dashed var(--line); border-radius: 16px; padding: 22px; text-align: center; cursor: pointer; font-weight: 600; color: var(--brand); }
.send-file input { display: none; }
#preview img, #preview video { width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; background: #000; }
.send-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; }
.send-consent input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.send-note { color: var(--muted); font-size: 12.5px; }
.send-page form[hidden], #send-login[hidden] { display: none !important; }

/* סרטון מוטמע מיוטיוב */
.s-yt { display: flex; align-items: center; justify-content: center; }
.s-yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; position: relative; z-index: 5; }
.stage.has-yt .tap { display: none; }

/* שערי מטבע */
.rates { background: var(--soft); border-radius: 16px; overflow: hidden; }
.rate-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rate-row:last-child { border-bottom: 0; }
.rate-row .rf { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 19px; line-height: 1; }
.rate-row .rf.sm { font-size: 14px; }
.rate-row .rn { flex: 1; display: flex; flex-direction: column; }
.rate-row .rn small { color: var(--muted); font-size: 12.5px; direction: ltr; text-align: right; }
.rate-row .rv { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.rate-row .rv b { font-size: 17px; }
.rate-row .rv small { font-size: 12.5px; color: var(--muted); }
.rate-row .rv small.up { color: #12a150; }
.rate-row .rv small.down { color: #e0243c; }

/* סידור ערוצים */
.dlg.arrange { width: min(100%, 420px); }
.ar-list { max-height: 60vh; overflow-y: auto; padding: 0 12px; }
.ar-row { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ar-row span { flex: 1; font-size: 15.5px; }
.ar-row button { background: var(--soft); border: 0; border-radius: 10px; width: 36px; height: 34px; cursor: pointer; color: var(--ink); }
.ar-row button:disabled { opacity: .3; cursor: default; }
.ar-pin { color: var(--muted) !important; }
.ar-pin.on { background: var(--brand) !important; color: #fff !important; }

.live-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 4px 2px 0; }
.live-note i { width: 8px; height: 8px; border-radius: 50%; background: #12a150; animation: blink 1.6s infinite; }
.ar-auto { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bell-badge[hidden] { display: none; }

.quick button .emo { width: 44px; height: 44px; display: block; margin: 0 auto; pointer-events: none; }
img.emo.fly { width: 48px; height: 48px; }

/* אייקונים מרשימים: מעבר צבע עמוק, ברק עדין, צל וזוהר בצבע האייקון (לא "צעצוע" שטוח) */
.disc .d-ic, .face.ic {
  background:
    radial-gradient(120% 90% at 28% 12%, rgba(255,255,255,.42), rgba(255,255,255,0) 52%),
    linear-gradient(155deg, color-mix(in srgb, var(--ic) 70%, #fff) 0%, var(--ic) 46%, color-mix(in srgb, var(--ic) 66%, #000) 100%);
  box-shadow: 0 10px 22px -7px color-mix(in srgb, var(--ic) 75%, transparent), inset 0 1px 1px rgba(255,255,255,.6), inset 0 -9px 14px rgba(0,0,0,.24);
}
.disc .d-ic { width: 68px; height: 68px; }
.d-ic svg, .face.ic svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.38)); }
.disc { background: var(--soft); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); transition: transform .15s; }
.disc:hover { transform: translateY(-2px); }
/* מודעה: לחיצה על אמצע המסך פותחת את הקישור, והקישור מוצג מתחת לכותרת */
.ad-tap { position: absolute; left: 22%; right: 22%; top: 64px; bottom: 110px; z-index: 6; cursor: pointer; }
.s-caption .ad-link, .s-text .ad-link { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; direction: ltr; text-decoration: underline; opacity: .95; }
html.pre-login body > *:not(.login-wall) { visibility: hidden; }
html.pre-login .login-wall { visibility: visible; }

.cap-body { display: none; text-align: right; font-size: 16px; line-height: 1.7; margin-top: 10px; white-space: normal; }
.s-caption.open .cap-body { display: block; }

.ad-tap { left: 0 !important; right: 0 !important; }
.ad-pan img { animation: adpan 9s ease-in-out infinite alternate; transform-origin: 50% 30%; }
@keyframes adpan { from { transform: scale(1) translateY(0); } to { transform: scale(1.14) translateY(-3%); } }
.ad-link { pointer-events: auto; position: relative; z-index: 8; }

/* גרפים בעמוד השערים */
.chart-card { background: var(--soft); border-radius: 18px; padding: 16px 14px 12px; margin-bottom: 6px; }
.ch-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 4px 8px; }
.ch-name { font-size: 18px; display: block; }
.ch-code { color: var(--muted); direction: ltr; display: block; text-align: right; }
.ch-val { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.ch-val b { font-size: 26px; line-height: 1.1; }
.ch-val small.up, .rate-row small.up { color: #1f9d55; } .ch-val small.down { color: #d64545; }
.ch-svgwrap { position: relative; direction: ltr; touch-action: pan-y; }
.ch-svgwrap svg { width: 100%; height: 220px; display: block; }
.ch-svgwrap .gl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ch-svgwrap .gt { fill: var(--muted); font-size: 11px; }
.ch-svgwrap .vl { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-load { height: 220px; display: grid; place-items: center; color: var(--muted); }
.ch-tip { position: absolute; top: 4px; background: var(--bg, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; white-space: nowrap; direction: rtl; text-align: center; }
.ch-tip b, .ch-tip small { display: block; } .ch-tip small { color: var(--muted); font-size: 11.5px; }
.ch-tabs { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.ch-tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 7px 4px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.ch-tabs button.on { background: var(--bg, #fff); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.rate-row { cursor: pointer; } .rate-row.sel { background: rgba(31,157,85,.10); }
.rate-row .spark { width: 64px; height: 26px; flex: none; direction: ltr; }
.rate-row .rv { min-width: 96px; }

.seo-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; line-height: 1.55; }
.seo-list li { padding: 5px 0; border-top: 1px solid var(--line, rgba(128,128,128,.18)); }
.seo-list a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.seo-list span { color: var(--muted); }

.fc-now { display: flex; align-items: center; gap: 16px; padding: 6px 2px 12px; }
.fc-big { font-size: 56px; font-weight: 300; line-height: 1; }
.fc-now small { display: block; color: var(--muted); margin-top: 4px; }
.fc-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.fc-h { flex: none; min-width: 58px; text-align: center; padding: 8px 6px; border-radius: 10px; background: rgba(128,128,128,.12); display: grid; gap: 3px; }
.fc-h small { color: var(--muted); font-size: 11px; }
.fc-days { display: grid; }
.fc-day { display: grid; grid-template-columns: 78px 1fr 44px 64px; align-items: center; gap: 6px; padding: 10px 2px; border-top: 1px solid rgba(128,128,128,.18); font-size: 14px; }
.fc-day .fc-p, .fc-day .fc-w { color: var(--muted); }
.fc-day .fc-t { text-align: left; direction: ltr; }

/* מעבר מהיר + הגדלה למסך מלא */
.tap.prev { width: 28%; } .tap.next { width: 28%; }
.bars i { position: relative; } .bars i::after { content: ""; position: absolute; inset: -9px 0; cursor: pointer; }
.s-img img, .s-img video { cursor: zoom-in; }
.ico[hidden] { display: none; }
.lb { position: fixed; inset: 0; z-index: 3000; background: #000; display: none; }
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.lb-bar { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 40px; background: rgba(20,28,33,.88); z-index: 2; }
.lb-bar button, .lb-x { min-width: 52px; height: 52px; border-radius: 26px; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; font: 600 16px/1 inherit; }
.lb-bar button:hover, .lb-x:hover { background: rgba(255,255,255,.26); }
.lb-bar button:focus-visible, .lb-x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-bar .lb-pct { min-width: 74px; }
.lb-x { position: absolute; top: max(14px, env(safe-area-inset-top)); inset-inline-start: 14px; z-index: 2; width: 52px; background: rgba(20,28,33,.88); }
.qlist { position: absolute; inset: 0; z-index: 20; background: rgba(11,20,26,.98); display: none; flex-direction: column; }
.qlist.open { display: flex; }
.ql-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; font-size: 18px; }
.ql-head span { flex: 1; opacity: .6; font-size: 14px; }
.ql-list { overflow-y: auto; padding: 0 10px 20px; display: grid; gap: 6px; }
.ql-row { display: flex; gap: 12px; align-items: center; text-align: right; background: rgba(255,255,255,.06); border: 0; border-radius: 12px; padding: 8px; color: #fff; cursor: pointer; font: inherit; }
.ql-row:hover, .ql-row:focus-visible { background: rgba(255,255,255,.14); }
.ql-row.cur { outline: 2px solid #25d366; }
.ql-th { position: relative; width: 62px; height: 62px; flex: none; border-radius: 10px; overflow: hidden; background: #243640; }
.ql-th img { width: 100%; height: 100%; object-fit: cover; }
.ql-play { position: absolute; inset: 0; display: grid; place-items: center; }
.ql-play::before { content: "▶"; font-size: 18px; color: #fff; text-shadow: 0 1px 4px #000; }
.ql-t { display: grid; gap: 3px; min-width: 0; font-size: 15px; line-height: 1.35; }
.ql-t b { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ql-t small { opacity: .65; font-size: 12.5px; } .ql-t em { color: #25d366; font-style: normal; font-weight: 700; }

.vwait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; background: #000; }
.vwait { position: absolute; z-index: 3; inset-inline: 12px; bottom: 150px; text-align: center; background: rgba(0,0,0,.65); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; }

.sound-btn.hint { width: auto; padding: 0 14px; border-radius: 22px; background: rgba(0,0,0,.7); display: flex; align-items: center; gap: 8px; animation: sndpulse 1.6s ease-in-out infinite; }
.sound-btn .snd-lbl { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }
@keyframes sndpulse { 50% { box-shadow: 0 0 0 8px rgba(255,255,255,.18); } }

/* חלון הגדלה גדול ויפה (לא מסך מלא): נגרר, מגדילים ומקטינים בתוכו */
.lb { background: rgba(6,12,16,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb.open { display: grid; place-items: center; }
.lb-card { position: relative; width: min(92vw, 980px); height: min(82vh, 760px); display: flex; flex-direction: column; background: #0f1a21; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; animation: lbin .18s ease-out; }
.lb-card.full { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
@keyframes lbin { from { opacity: 0; scale: .96; } }
.lb-title { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; color: #fff; font-size: 15px; font-weight: 600; cursor: grab; user-select: none; touch-action: none; background: rgba(255,255,255,.05); }
.lb-title.grab { cursor: grabbing; }
.lb-title span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-card .lb-x { position: static; width: 44px; min-width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.14); inset: auto; }
.lb-card .lb-stage { position: relative; inset: auto; flex: 1; min-height: 0; cursor: grab; background: #000; }
.lb-card .lb-stage:active { cursor: grabbing; }
.lb-card .lb-bar { position: static; transform: none; align-self: center; margin: 10px 0 12px; background: rgba(255,255,255,.08); }
.lb-card.full .lb-title { cursor: default; }
@media (max-width: 600px) { .lb-card { width: 96vw; height: 76vh; border-radius: 14px; } }

.vretry{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;width:64px;height:64px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;cursor:pointer;display:grid;place-items:center}

/* הרחבה למסך מלא: אותו עיצוב ואותם כפתורים, רק מתפרס על כל המסך */
.viewer.wide { gap: 0; }
.viewer.wide .stage { max-width: 100vw; width: 100vw; height: 100dvh; border-radius: 0; }
.viewer.wide .v-side { display: none; }
/* במסך המורחב: חיצי מעבר בין הסטטוסים בשולי המסך, מעל הסטטוס */
.viewer.wide .nav-arrow { display: grid; position: absolute; top: 50%; transform: translateY(-50%); z-index: 8; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; place-items: center; }
.viewer.wide .nav-arrow:hover { background: rgba(0,0,0,.7); }
.viewer.wide #arr-prev { right: 14px; }
.viewer.wide #arr-next { left: 14px; }
.viewer.wide .tap.prev, .viewer.wide .tap.next { width: 14%; }
@media (max-width: 699px) { .viewer.wide .nav-arrow { display: none; } }


/* תמונה בהירה למעלה: כיתוב ואייקונים שחורים (עם הילה בהירה דקה) */
.stage.lt .s-head, .stage.lt .s-head .ico { color: #111; }
.stage.lt .s-head .who { text-shadow: 0 0 6px rgba(255,255,255,.55); }
.stage.lt .s-head .who small { opacity: .8; }
.stage.lt .s-head .ico { filter: drop-shadow(0 0 3px rgba(255,255,255,.6)); }
.stage.lt .s-head .ico:hover { background: rgba(0,0,0,.08); }
.stage.lt .bars i { background: rgba(0,0,0,.28); }
.stage.lt .bars i b { background: #111; }

/* התמונה והסרטון תמיד נכנסים במלואם בפרופורציה נכונה (גם במסך המורחב) */
.s-img img, .s-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.s-img .vwait-img, .s-img .vretry { }
/* לחיצה אחת על התמונה או הסרטון פותחת תצוגה מוגדלת; רק קצה צר בכל צד מעביר בין סטטוסים */
.tap.prev, .tap.next { width: 12%; }
.viewer.wide .tap.prev, .viewer.wide .tap.next { width: 8%; }

/* הגדלה: נפתחת מיד במסך מלא עם קפיצה קטנה */
@keyframes lbpop{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
.lb-card.pop{animation:lbpop .22s cubic-bezier(.2,.9,.3,1.2)}
.lb-stage img,.lb-stage video{transition:transform .12s ease-out}

/* סיכום: טקסט בלבד, נגלל, בלי לחפוף את הכותרת והכפתורים */
.s-text.sum { position: absolute; inset: 92px 0 150px; display: block; overflow-y: auto; padding: 6px 22px 24px; text-align: right; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.s-text.sum h2 { font-size: clamp(22px, 5.6vw, 28px); margin: 0 0 10px; }
.s-text.sum h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #9fe3c6; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 4px; }
.s-text.sum p { font-size: clamp(16px, 4.2vw, 19px); line-height: 1.5; margin: 0 0 9px; }
.s-text.sum p.sum-lead { opacity: .8; }

.bars.many { gap: 1px; }

/* חיפוש: מסננים */
.sfilters{display:flex;gap:8px;flex-wrap:wrap;padding:8px 14px;max-width:640px;margin:0 auto}
.sfilters select,.sfilters button{background:var(--card,#1f2c34);color:inherit;border:1px solid rgba(128,128,128,.35);border-radius:18px;padding:6px 12px;font:inherit;font-size:14px}
.sfilters button{cursor:pointer}
#search-results{max-width:640px;margin:0 auto}
/* באנר "מה פספסתי" ומצב אופליין */
.missed{display:block;width:calc(100% - 28px);margin:6px 14px;padding:11px 14px;border:0;border-radius:14px;background:linear-gradient(135deg,#ff5a36,#ff2d6f);color:#fff;font:inherit;font-weight:600;font-size:15px;cursor:pointer;text-align:center}
.offline-note{margin:6px 14px;padding:8px 12px;border-radius:12px;background:rgba(255,180,0,.16);color:#e8a500;font-size:14px;text-align:center}
/* חלון קיצורי מקלדת */
.kbd-help{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center}
.kbd-help.open{display:flex}
.kbd-help div{background:#1f2c34;color:#fff;border-radius:16px;padding:20px 26px;max-width:380px;width:88%;line-height:2}
.kbd-help kbd{background:#33444e;border-radius:6px;padding:1px 8px;margin-inline-start:8px;font-family:inherit;font-size:13px}
.kbd-help h3{margin:0 0 6px}
