@font-face{font-family:"Heebo";src:url(fonts/heebo.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"FrankRuhl";src:url(fonts/frank.woff2) format("woff2");font-weight:300 900;font-display:swap;unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
:root{--slate:#5d6261;--slate-d:#3f4445;--red:#e3302f;--red-d:#c2201f;--bg:#f2f2f0;--card:#fff;--ink:#1d2122;--muted:#646a6b;--line:#e2e3e1;--tabh:64px;--sid:24px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Heebo",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.5;padding-bottom:calc(var(--tabh) + env(safe-area-inset-bottom))}
button,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--red);outline-offset:2px;border-radius:6px}
.skip{position:absolute;right:-999px;top:0;background:#fff;padding:8px 12px;z-index:50}
.skip:focus{right:8px}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(6px + env(safe-area-inset-top)) 16px 6px;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:3px solid var(--red)}
.logo{height:46px;width:auto;display:block}
.top-date{font-size:14px;font-weight:600;color:var(--slate-d);text-align:left;line-height:1.3}
.top-date small{display:block;font-weight:400;color:var(--muted);font-size:12px}
main{max-width:720px;margin:0 auto;padding:0 14px}
.view[hidden]{display:none}
.view-head{padding:18px 2px 10px}
.view-head.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
h1{font-size:24px;font-weight:800;margin:0;color:var(--slate-d);letter-spacing:0}
h1::after{content:"";display:block;width:34px;height:4px;background:var(--red);border-radius:2px;margin-top:6px}
.view-head.row h1::after{display:none}
.sub{margin:4px 0 0;color:var(--muted);font-size:14px}
/* news */
.feed{display:grid;gap:14px;padding-bottom:20px}
.post{background:var(--card);border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.06),0 4px 14px rgba(0,0,0,.05);scroll-margin-top:80px}
.post .media{position:relative;background:#16191a;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center}
.post .media img,.post .media video{width:100%;height:100%;object-fit:contain;display:block;background:#16191a}
.post .badge{position:absolute;top:10px;right:10px;background:var(--red);color:#fff;font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;pointer-events:none}
.post .cap{padding:12px 14px 4px;font-size:18px;font-weight:600;line-height:1.45}
.post .meta{display:flex;justify-content:space-between;align-items:center;padding:4px 10px 10px 14px;color:var(--muted);font-size:13px}
.share{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:8px 10px;border-radius:10px;color:var(--slate);font-weight:600;cursor:pointer;min-height:40px}
.share:active{background:var(--bg)}
.share svg{width:18px;height:18px;fill:currentColor}
/* zmanim */
.zcard{background:var(--card);border-radius:16px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.hero{background:linear-gradient(135deg,var(--slate-d),var(--slate));color:#fff;text-align:center;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:auto -40px -60px auto;width:160px;height:160px;border-radius:50%;background:rgba(227,48,47,.25)}
.hdate{font-size:26px;font-weight:800;position:relative}
.gdate{opacity:.85;font-size:15px;position:relative}
.parsha{margin-top:8px;display:inline-block;background:var(--red);padding:3px 14px;border-radius:999px;font-weight:700;font-size:16px;position:relative}
.parsha:empty,.holiday:empty{display:none}
.holiday{margin-top:6px;font-size:15px;font-weight:600;position:relative}
.locrow{display:flex;align-items:center;gap:8px;margin:12px 0 8px;flex-wrap:wrap}
.loc{display:flex;align-items:center;gap:4px;font-weight:600;color:var(--slate-d);flex:1 1 auto;min-width:0}
.loc svg{width:18px;height:18px;fill:var(--red);flex:none}
.chip{border:0;background:var(--red);color:#fff;font-weight:700;font-size:14px;padding:7px 14px;border-radius:999px;cursor:pointer;min-height:36px}
.chip.ghost{background:#fff;color:var(--slate-d);border:1px solid var(--line)}
.daynav{display:flex;gap:8px;margin:6px 0 12px}
.navbtn{flex:1;border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 6px;font-weight:600;color:var(--slate-d);cursor:pointer;min-height:42px}
.navbtn.today{flex:.8}
.navbtn[aria-pressed=true]{background:var(--slate-d);color:#fff;border-color:var(--slate-d)}
.shabbos{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.shabbos[hidden]{display:none}
.sb{background:#fff4f3;border:1px solid #f6c9c8;border-radius:14px;padding:12px;text-align:center}
.sb .l{font-size:14px;color:var(--red-d);font-weight:700}
.sb .t{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;direction:ltr}
.zlist{list-style:none;margin:0;padding:0;background:var(--card);border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.zlist li{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);gap:12px}
.zlist li:last-child{border-bottom:0}
.zlist .zn{font-weight:600}
.zlist .zs{display:block;font-size:12px;color:var(--muted);font-weight:400}
.zlist .zt{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;direction:ltr;color:var(--slate-d)}
.zlist li.past .zn,.zlist li.past .zt{color:#9aa0a0}
.zlist li.next{background:#fff4f3;box-shadow:inset -4px 0 0 var(--red)}
.zlist li.next .zt{color:var(--red-d)}
.zlist li.next .zs{color:var(--red-d);font-weight:700}
.note{font-size:13px;color:var(--muted);margin:12px 4px 24px}
/* siddur */
.nusach{font-size:14px;font-weight:600;color:#fff;background:var(--slate);padding:2px 10px;border-radius:999px;vertical-align:middle}
.fontctl{display:flex;gap:6px}
.fontctl button{width:46px;height:40px;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:800;cursor:pointer}
.tefilos{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tefilos::-webkit-scrollbar{display:none}
.tefilos button{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 16px;font-weight:700;cursor:pointer;white-space:nowrap;min-height:40px}
.tefilos button[aria-pressed=true]{background:var(--red);border-color:var(--red);color:#fff}
.jump{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.jump label{white-space:nowrap;font-weight:600;color:var(--muted);font-size:14px}
.jump select{flex:1;min-width:0;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:#fff;min-height:40px}
.sidtext{background:#fffdf8;border:1px solid #ece6d6;border-radius:16px;padding:18px 18px 28px;font-family:"FrankRuhl","Times New Roman","David",serif;font-size:var(--sid);line-height:1.75;color:#141414}
.sidtext h2{font-family:"Heebo",sans-serif;font-size:calc(var(--sid) * .8);font-weight:800;color:var(--red-d);margin:22px 0 8px;padding-bottom:4px;border-bottom:2px solid #f0d8d6;scroll-margin-top:84px}
.sidtext h2:first-child{margin-top:0}
.sidtext p{margin:0 0 .7em;text-align:justify}
.sidtext small{font-family:"Heebo",sans-serif;font-size:.62em;color:#7a6f5a;line-height:1.5}
.sidtext big{font-size:1.1em}
.sidtext .loading{font-family:"Heebo",sans-serif;color:var(--muted);font-size:16px}
.credit{font-size:12px;color:var(--muted);margin:10px 4px 24px}
.credit a{color:var(--slate-d)}
/* music */
.player{background:var(--slate-d);border-radius:16px;overflow:hidden;color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.screen{position:relative;aspect-ratio:16/9;background:#111}
.screen img{width:100%;height:100%;object-fit:cover;display:block;opacity:.75}
.screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.bigplay{position:absolute;inset:0;margin:auto;width:72px;height:72px;border-radius:50%;border:0;background:var(--red);z-index:2;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.bigplay svg{width:38px;height:38px;fill:#fff;margin-left:4px}
.nowrow{direction:ltr;display:flex;align-items:center;gap:10px;padding:12px}
.now{flex:1;min-width:0;text-align:center;direction:rtl}
.nt{font-weight:800;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.na{font-size:14px;opacity:.8}
.pbtn{width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.12);cursor:pointer;flex:none}
.pbtn svg{width:24px;height:24px;fill:#fff}
.playlist{list-style:none;margin:14px 0 24px;padding:0;display:grid;gap:8px}
.playlist button{width:100%;display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid transparent;border-radius:14px;padding:8px;text-align:right;cursor:pointer}
.playlist button[aria-current=true]{border-color:var(--red);background:#fff4f3}
.playlist img{width:96px;height:54px;object-fit:cover;border-radius:8px;flex:none;background:#ddd}
.playlist .pt{font-weight:700;display:block}
.playlist .pa{font-size:14px;color:var(--muted)}
.playlist .num{margin-inline-start:auto;color:var(--muted);font-size:13px;padding-inline-end:6px}
/* tab bar */
.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;background:rgba(255,255,255,.98);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -2px 12px rgba(0,0,0,.05)}
.tab{flex:1;min-width:0;padding:0 2px;height:var(--tabh);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:none;color:#7b8182;font-size:12px;font-weight:600;cursor:pointer;position:relative;white-space:nowrap}
.tab svg{width:26px;height:26px;fill:currentColor}
.tab.active{color:var(--red)}
.tab.active::before{content:"";position:absolute;top:0;width:36px;height:3px;border-radius:0 0 3px 3px;background:var(--red)}
/* install + toast */
.install{position:fixed;left:10px;right:10px;bottom:calc(var(--tabh) + env(safe-area-inset-bottom) + 10px);z-index:40;background:#fff;border-radius:16px;box-shadow:0 8px 30px rgba(0,0,0,.18);display:flex;align-items:center;gap:8px;padding:6px 8px 6px 6px;max-width:560px;margin:0 auto}
.install[hidden]{display:none}
.install img{border-radius:10px;flex:none}
.itext{flex:1;min-width:0;font-size:14px;line-height:1.35}
.itext b{display:block;font-size:14px}
.itext span[hidden]{display:none}
.itext span{color:var(--muted)}
.install .x{border:0;background:none;font-size:16px;color:var(--muted);width:32px;height:32px;cursor:pointer;flex:none}
.install .chip{flex:none}
.toast{position:fixed;left:50%;bottom:calc(var(--tabh) + env(safe-area-inset-bottom) + 18px);transform:translateX(-50%) translateY(20px);background:var(--slate-d);color:#fff;padding:9px 18px;border-radius:999px;font-weight:600;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media (min-width:760px){.feed{grid-template-columns:1fr 1fr}.logo{height:54px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* zemer card + audio player */
.zemer{background:linear-gradient(135deg,#1f1f1f,#3a2a2c);color:#fff;border-radius:18px;padding:16px;box-shadow:0 6px 20px rgba(0,0,0,.18);margin-bottom:18px}
.zemer-top{display:flex;gap:12px;align-items:center}
.zemer-top img{width:56px;height:56px;border-radius:14px;flex:none;background:#121212}
.zemer-t{font-weight:900;font-size:21px;line-height:1.25}
.zemer-s{font-size:14px;opacity:.85;margin-top:4px}
.zemer-btns{display:flex;gap:10px;margin-top:14px}
.zbtn{flex:1;display:block;text-align:center;padding:13px 10px;border-radius:12px;background:#ffb3b8;color:#1d1d1d;font-weight:800;font-size:17px;text-decoration:none}
.zbtn.ghost{background:rgba(255,255,255,.12);color:#fff}
.zemer-n{font-size:12px;opacity:.7;margin-top:8px;text-align:center}
.mhead{font-size:19px;font-weight:800;margin:20px 2px 10px}
.aplayer{background:var(--slate-d);color:#fff;border-radius:16px;padding:10px 12px 12px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.aplayer .nowrow{justify-content:center;gap:18px;padding:4px}
.pbtn.big{width:64px;height:64px;background:var(--red)}
.pbtn.big svg{width:34px;height:34px}
.aplayer .now{margin:6px 0 8px}
.aplayer audio{width:100%;display:block;height:40px}
.alist .anum{width:44px;height:44px;border-radius:50%;background:var(--slate);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.alist .anum svg{width:22px;height:22px;fill:#fff}
.alist button[aria-current=true] .anum{background:var(--red)}
.ytnote{background:#fff7e0;border:1px solid #f0d58a;color:#5a4500;border-radius:12px;padding:10px 12px;font-size:15px;margin-bottom:10px}
.scrnote{position:absolute;inset:auto 0 0 0;background:rgba(0,0,0,.7);color:#fff;text-align:center;padding:8px;font-size:15px;z-index:3}
.player.blocked .bigplay{opacity:.5}

.rhead{display:flex;align-items:center;gap:8px;margin-top:4px}
.livedot{display:inline-flex;align-items:center;gap:5px;background:var(--red);color:#fff;font-size:12px;font-weight:800;padding:2px 9px;border-radius:99px}
.livedot::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:rblink 1.4s infinite}
@keyframes rblink{50%{opacity:.25}}
.rsub{margin:-6px 2px 10px;color:var(--muted);font-size:14px}
.radios{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}
.rcard{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:16px;padding:10px 12px;box-shadow:0 2px 10px rgba(0,0,0,.07);border:2px solid transparent}
.rcard[data-st=on],.rcard[data-st=load]{border-color:var(--red)}
.rlogo{width:52px;height:52px;border-radius:12px;overflow:hidden;flex:none;background:var(--slate-d);color:#fff;font-weight:900;font-size:24px;display:flex;align-items:center;justify-content:center}
.rlogo img{width:100%;height:100%;object-fit:cover;display:block;background:#fff}
.rinfo{flex:1;min-width:0}
.rn{font-weight:800;font-size:18px;line-height:1.25}
.rd{font-size:13px;color:var(--muted);line-height:1.3}
.rmsg{font-size:13px;font-weight:700;color:var(--red-d);line-height:1.3}
.rmsg:empty{display:none}
.rcard[data-st=err] .rmsg{color:#9a5b00}
.rlive{font-size:11px;font-weight:800;color:var(--red);border:1.5px solid var(--red);border-radius:6px;padding:0 5px;flex:none}
.rcard[data-st=on] .rlive{background:var(--red);color:#fff}
.rplay{width:54px;height:54px;border-radius:50%;border:0;background:var(--red);display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer;box-shadow:0 3px 10px rgba(227,48,47,.35)}
.rplay svg{width:30px;height:30px;fill:#fff}
.rcard[data-st=load] .rplay{animation:rblink 1.2s infinite}
.rgrp{display:block}
.rgrp>summary{list-style:none;cursor:pointer;font-weight:800;font-size:16px;color:var(--slate-d);background:#e6e7e4;border-radius:12px;padding:9px 14px;display:flex;justify-content:space-between;align-items:center}
.rgrp>summary::-webkit-details-marker{display:none}
.rgrp>summary::after{content:"▾";font-size:14px;transition:transform .2s}
.rgrp:not([open])>summary::after{transform:rotate(90deg)}
.rgrp .rcard{margin-top:8px}

.locbtns{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.lchip{border:1px solid var(--line);background:#fff;color:var(--slate-d);font:inherit;font-weight:700;font-size:14px;padding:6px 12px;border-radius:999px;cursor:pointer;min-height:34px;white-space:nowrap}
.lchip.on{background:var(--red);border-color:var(--red);color:#fff}
.lchip.geo::before{content:"⌖ ";font-weight:400}

/* scanner */
.sc-empty{text-align:center;color:var(--muted);padding:30px 10px;font-size:15px}
