/* "קורה עכשיו" — the button on the board, the phone bar and the sheet · v3 light */
:root { --or: #F78B29; --or2: #FBB57E; --or3: #C25E0C; --or-soft: #FFF3E7; --or-line: #F6D3B3;
  --bd: #660822; --bd2: #8A1C3A; --bd-soft: #F7ECEF; --ink: #24191C; --ink2: #4A3D41; --mut: #7C6E72; --ln: #ECE3DD; --ln2: #F3ECE7; --paper: #FBF8F5; }

/* live dot */
.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: currentColor; position: relative; flex: 0 0 auto; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: nowpulse 2s ease-out infinite; }
@keyframes nowpulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none; } }

/* ---- pill on the TV board (stage pixels) ---- */
.rule { position: relative; }
.nowpill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 26px; margin: -12px 0;
  font: 600 24px/1 var(--sans); color: var(--bd); background: #fff; border: 1.5px solid var(--or-line); border-radius: 99px;
  cursor: pointer; white-space: nowrap; max-width: 900px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 16px rgba(102,8,34,.08); transition: background .6s, color .6s, border-color .6s; }
.nowpill .dot { color: var(--or); width: 12px; height: 12px; }
.nowpill.live { color: #fff; background: var(--or); border-color: var(--or); box-shadow: 0 0 0 5px rgba(247,139,41,.14), 0 6px 20px rgba(247,139,41,.30); }
.nowpill.live .dot { color: #fff; }
.nowpill .np-k { font-weight: 800; }
.nowpill .np-t { font-weight: 500; opacity: .85; margin-right: 4px; }
.portrait .nowpill { height: 54px; font-size: 28px; }

/* ---- phone: real-size bar above the scaled board ---- */
body.phone { cursor: auto; }
body.phone .bg::before, body.phone .bg::after { display: none; }
.nowbar { position: fixed; top: 0; left: 0; right: 0; height: 62px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 3px 12px 0;
  background: rgba(255,255,255,.97); border-top: 4px solid var(--bd); border-bottom: 1px solid var(--ln); box-shadow: 0 4px 16px rgba(102,8,34,.06); font-family: var(--sans); direction: rtl; }
.nowbar-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border: 0; border-radius: 99px;
  font: 700 17px/1 var(--sans); color: #fff; background: var(--or); box-shadow: 0 4px 12px rgba(247,139,41,.30); cursor: pointer; }
.nowbar-btn .dot { color: #fff; width: 9px; height: 9px; }
.nowbar-txt { flex: 1; min-width: 0; color: var(--ink2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowbar.live .nowbar-txt { color: var(--bd); font-weight: 700; }

/* ---- the sheet (real pixels; scales with the screen) ---- */
.nowsheet { position: fixed; inset: 0; z-index: 50; direction: rtl; font-family: var(--sans); color: var(--ink); cursor: auto;
  font-size: clamp(15px, calc(.85vw + .55vh), 25px); display: flex; align-items: center; justify-content: center; }
.ns-backdrop { position: absolute; inset: 0; background: rgba(36, 25, 28, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.ns-card { position: relative; width: min(36em, calc(100vw - 2em)); max-height: min(92vh, 60em); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ln); border-top: .3em solid var(--bd); border-radius: 1.3em;
  box-shadow: 0 30px 80px rgba(36,25,28,.22); overflow: hidden; transform: translateY(14px) scale(.98); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.nowsheet.in .ns-backdrop { opacity: 1; }
.nowsheet.in .ns-card { transform: none; opacity: 1; }
.ns-head { display: flex; align-items: flex-start; gap: .8em; padding: 1.05em 1.2em .85em; border-bottom: 1px solid var(--ln2); background: #fff; }
.ns-h { flex: 1; min-width: 0; }
.ns-head h2 { display: flex; align-items: center; gap: .5em; font: 800 1.55em/1.1 var(--serif); color: var(--bd); }
.ns-head h2 .dot { color: var(--or); width: .42em; height: .42em; }
.ns-hsub { margin-top: .3em; font-size: .9em; color: var(--mut); }
.ns-x { flex: 0 0 auto; width: 2.3em; height: 2.3em; border-radius: 50%; border: 0; background: #F4EEEA; color: var(--ink2); font-size: 1em; cursor: pointer; }
.ns-x:focus { outline: none; }
.ns-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: .9em 1.2em 1.1em; background: var(--paper); }
.ns-foot { display: flex; gap: .6em; padding: .8em 1.2em calc(.9em + env(safe-area-inset-bottom)); border-top: 1px solid var(--ln2); background: #fff; }
.ns-foot button { flex: 1; height: 2.75em; border-radius: 99px; font: 700 .98em/1 var(--sans); cursor: pointer; }
.ns-share { border: 0; color: #fff; background: var(--or); box-shadow: 0 4px 12px rgba(247,139,41,.28); }
.ns-board { border: 1.5px solid #E2C9D0; color: var(--bd); background: #fff; }

.ns-hero { border-radius: 1em; padding: .95em 1.1em 1em; margin-bottom: .9em; background: #fff; border: 1px solid var(--ln); box-shadow: 0 1px 2px rgba(102,8,34,.04), 0 6px 18px rgba(102,8,34,.05); }
.ns-hero.live { position: relative; border-color: var(--or-line); box-shadow: 0 6px 18px rgba(247,139,41,.10); }
.ns-hero.live::before { content: ""; position: absolute; right: 0; top: 1em; bottom: 1em; width: .26em; border-radius: .26em 0 0 .26em; background: var(--or); }
.ns-hero.idle { border: 1px dashed #E3D3CB; box-shadow: none; text-align: center; }
.ns-tag { display: inline-flex; align-items: center; gap: .45em; font-size: .78em; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--or); padding: .28em .8em; border-radius: 99px; }
.ns-tag .dot { color: #fff; width: .55em; height: .55em; }
.ns-name { margin-top: .3em; font: 800 1.75em/1.15 var(--serif); color: var(--bd); overflow-wrap: anywhere; }
.ns-hero.idle .ns-name { font-size: 1.3em; margin-top: 0; color: var(--bd); }
.ns-subt { margin-top: .15em; font-size: 1em; color: var(--ink2); }
.ns-meta { margin-top: .35em; font-size: .95em; color: var(--mut); }
.ns-prog { margin-top: .7em; height: .38em; border-radius: 99px; background: #F3E8DF; overflow: hidden; }
.ns-prog i { display: block; height: 100%; border-radius: 99px; background: var(--or); }

.ns-sec { margin-top: 1.05em; }
.ns-sec h3 { display: flex; align-items: center; gap: .6em; font-size: .8em; font-weight: 700; letter-spacing: .05em; color: var(--bd2); margin-bottom: .5em; }
.ns-sec h3::after { content: ""; flex: 1; height: 1px; background: var(--ln); }
.ns-next { display: flex; align-items: center; gap: .8em; padding: .75em 1em; border-radius: .9em; background: #fff; border: 1px solid var(--ln); box-shadow: 0 1px 2px rgba(102,8,34,.04); }
.ns-nn { flex: 1; min-width: 0; font-size: 1.3em; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ns-nn small, .ns-n small { display: block; font-size: .62em; font-weight: 400; color: var(--mut); margin-top: .1em; }
.ns-nt { flex: 0 0 auto; text-align: left; }
.ns-nt b { display: block; font-size: 1.45em; font-weight: 700; color: var(--bd); direction: ltr; font-variant-numeric: tabular-nums; }
.ns-nt span { display: inline-block; margin-top: .2em; font-size: .78em; font-weight: 700; color: var(--or3); background: var(--or-soft); border: 1px solid var(--or-line); padding: .12em .65em; border-radius: 99px; white-space: nowrap; }
.ns-list { margin-top: .55em; background: #fff; border: 1px solid var(--ln); border-radius: .9em; padding: .2em .8em; }
.ns-lh { font-size: .78em; color: var(--mut); margin: .5em .2em .25em; }
.ns-row { display: flex; align-items: center; gap: .7em; padding: .5em .2em; border-bottom: 1px solid var(--ln2); }
.ns-row:last-child { border-bottom: 0; }
.ns-n { flex: 1; min-width: 0; font-size: 1em; color: var(--ink); overflow-wrap: anywhere; }
.ns-t { flex: 0 0 auto; font-weight: 700; color: var(--bd); direction: ltr; font-variant-numeric: tabular-nums; }
.ns-row.moment .ns-n { color: var(--bd); }
.ns-in { font-size: .8em; color: var(--mut); }

.ns-chips { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: .5em; }
.ns-chips span { font-size: .85em; font-weight: 600; color: var(--bd); background: var(--bd-soft); padding: .25em .75em; border-radius: 99px; }
.ns-sh-t { font: 700 1.1em/1.25 var(--serif); color: var(--ink); }
.ns-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); gap: .5em; margin-top: .5em; }
.ns-cells div, .ns-zm div { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; padding: .55em .8em; border-radius: .7em; background: #fff; border: 1px solid var(--ln); }
.ns-cells span, .ns-zm span { font-size: .88em; color: var(--ink2); white-space: nowrap; }
.ns-cells b, .ns-zm b { color: var(--bd); direction: ltr; font-variant-numeric: tabular-nums; }
.ns-zm { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: .45em; }
.ns-zm div.nx { background: var(--or-soft); border-color: var(--or-line); }
.ns-cm { display: flex; gap: .7em; align-items: flex-start; padding: .6em .8em; border-radius: .8em; background: #fff; border: 1px solid var(--ln); margin-bottom: .45em; }
.ns-cm .ic { font-size: 1.4em; line-height: 1; }
.ns-cm b { color: var(--bd); font-size: .9em; }
.ns-cm small { color: var(--mut); }
.ns-ann { padding: .6em .8em; border-radius: .8em; background: #fff; border: 1px solid var(--ln); border-right: 3px solid var(--or); margin-bottom: .45em; }
.ns-ann b { color: var(--ink); }
.ns-ann div { font-size: .92em; color: var(--ink2); margin-top: .1em; white-space: pre-line; }
.ns-ann .w { color: var(--bd2); font-weight: 600; }
.ns-ann .nt { color: var(--or3); }

/* phones: a bottom sheet */
@media (max-width: 640px) {
  .nowsheet { align-items: flex-end; font-size: 16px; }
  .ns-card { width: 100vw; max-height: 90vh; max-height: 90dvh; border-radius: 1.3em 1.3em 0 0; border-bottom: 0; border-top-width: 1px; transform: translateY(40px); }
  .ns-head { padding-top: 1.3em; position: relative; }
  .ns-head::before { content: ""; position: absolute; top: .5em; left: 50%; width: 2.6em; height: .28em; margin-left: -1.3em; border-radius: 99px; background: #E2D6CF; }
}

/* board slide extras */
.s-when { margin-top: 20px; font-size: 34px; font-weight: 600; color: var(--bd2); }
.qr-url { margin-top: 14px; font-size: 22px; color: var(--mut); direction: ltr; text-align: right; }

html, body { background: var(--paper); }
