/* Ohr Pnimi · additions on top of the base design */
.sr-skip{position:absolute;left:-9999px;top:8px;z-index:200;background:var(--gold);color:#1b1404;padding:10px 14px;border-radius:10px;font-weight:600}
.sr-skip:focus{left:8px}
body.locked{overflow:hidden}
.muted{color:var(--muted)}
.gold{color:var(--goldText)}
.brand .mk{width:44px;height:44px;flex:none;display:block;margin:-4px -2px -4px -6px}
.brand .mk svg{width:100%;height:100%;overflow:visible}
.topbar .brand .mk{width:38px;height:38px}
.nav hr{border:0;border-top:1px solid var(--line);margin:10px 12px}
.side{overflow-y:auto;scrollbar-width:none}
.side-follow{min-height:0}
.side .follows a.gold{color:var(--goldText);font-weight:600}
.topbar .iconbtn{border:0}

/* sections */
.sec.first{margin-top:0}
.sec-r{display:flex;align-items:center;gap:16px}
#hContinue .sec{margin:0 0 34px}
.card{color:inherit}
.av{overflow:hidden}
.av img{width:100%;height:100%;object-fit:cover}
.badge{display:inline-flex;align-items:center;gap:5px}
.badge svg{width:12px;height:12px}
.badge.lang{left:auto;right:10px;font-family:var(--heb);font-size:12px;letter-spacing:0}.badge.lang.lat{font-family:inherit;font-size:11px}
.thumb.noimg:after{display:none}

/* hero with the Radiant Alef */
.hero{grid-template-columns:1.25fr .75fr}
.hero-mark{justify-self:center;width:min(320px,90%);aspect-ratio:1;filter:drop-shadow(0 0 40px rgba(240,168,62,.35));animation:glow 7s ease-in-out infinite}
.hero-mark svg{width:100%;height:100%;overflow:visible}
@keyframes glow{0%,100%{opacity:.9;transform:scale(1)}50%{opacity:1;transform:scale(1.03)}}
/* the welcome block sits first on the home page, so keep it compact */
.hero.welcome{padding-top:34px;padding-bottom:34px}
.hero.welcome h1{font-size:44px;margin:12px 0 12px}
.hero.welcome .lead{margin-bottom:22px}
.hero.welcome .quote{margin-top:22px;padding-top:16px}
.wl-head{display:flex;align-items:center;gap:10px}
.wl-mark{display:none;width:40px;height:40px;flex:none;filter:drop-shadow(0 0 14px rgba(240,168,62,.35))}
.wl-mark svg{width:100%;height:100%;overflow:visible}
.hero-glow{position:absolute;right:-10%;top:50%;width:70%;aspect-ratio:1;transform:translateY(-50%);z-index:-1;background:radial-gradient(circle,rgba(240,168,62,.18),transparent 62%);pointer-events:none}
/* live numbers under the welcome paragraph */
.hstats{display:flex;align-items:center;margin:0 0 20px}
.hstats[hidden]{display:none}
.hs-live{display:inline-flex;align-items:center;gap:7px;font-size:10.5px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:#9fdcaa;padding:5px 10px 5px 9px;border-radius:999px;background:rgba(127,196,138,.1);border:1px solid rgba(127,196,138,.28);margin-right:6px;flex:none}
.hs-live i{width:7px;height:7px;border-radius:50%;background:#7fd68d;box-shadow:0 0 0 0 rgba(127,214,141,.6);animation:hsPulse 2.4s ease-out infinite}
@keyframes hsPulse{0%{box-shadow:0 0 0 0 rgba(127,214,141,.55)}70%,100%{box-shadow:0 0 0 7px rgba(127,214,141,0)}}
.hstats a{display:flex;flex-direction:column;gap:3px;padding:2px 18px;border-left:1px solid rgba(255,255,255,.13);color:inherit;min-width:0}
.hstats .hs-live + a{border-left:0;padding-left:12px}
.hstats b{font-family:var(--serif);font-weight:600;font-size:24px;line-height:1;color:#f6d58e;font-variant-numeric:tabular-nums;letter-spacing:-.2px}
.hstats a span{font-size:10.5px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase;color:rgba(246,241,230,.6);white-space:nowrap}
.hstats a:hover span{color:#f6f1e6}
@media(max-width:359px){.hs-live{font-size:0;gap:0;padding:6px;margin-right:2px}}
.hstats b.tick{animation:hsTick .9s ease-out}
@keyframes hsTick{0%{color:#fff;text-shadow:0 0 14px rgba(246,213,142,.9)}100%{color:#f6d58e;text-shadow:none}}
/* desktop and iPad: a thinner welcome, with the numbers and buttons side by side and the quote on one line */
@media(min-width:861px){
  .hero.welcome{min-height:0;padding:26px 44px;gap:28px;grid-template-columns:minmax(0,1fr) auto}
  .hero.welcome .inner{max-width:none}
  .hero.welcome h1{font-size:40px;margin:8px 0 10px}
  .hero.welcome .lead{max-width:760px;margin-bottom:18px;font-size:16.5px}
  .hero.welcome .hero-act{display:flex;align-items:center;flex-wrap:wrap;gap:16px 30px}
  .hero.welcome .hstats{margin:0}
  .hero.welcome .quote{margin-top:18px;padding-top:14px;flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:4px 16px}
  .hero.welcome .quote .heb{font-size:18px}
  .hero.welcome .hero-mark{width:clamp(130px,15vw,190px)}
}
@media(min-width:861px) and (max-width:1100px){.hero.welcome h1{font-size:33px}.hero.welcome{padding:24px 34px}}

/* shorts */
.thumb.tall{aspect-ratio:9/16}
.rail.shorts{grid-auto-columns:minmax(150px,1fr)}
@media(min-width:1000px){.rail.shorts{grid-auto-columns:calc((100% - 100px)/6)}}
.grid.shorts{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.card.short h3{font-size:14px}
.vid.tall{aspect-ratio:9/16;max-height:78vh;margin:0 auto;width:auto}
.vid.tall #yt,.vid.tall iframe{position:absolute;inset:0}

/* shiur page */
.yt-note{display:flex;gap:8px;align-items:center;padding:10px 30px;font-size:12.5px;color:var(--faint);border-bottom:1px solid var(--line)}
.yt-note svg{width:15px;height:15px;flex:none}
.fh-link{margin-left:auto;flex:none;background:none;border:0;padding:4px 0;font:inherit;color:var(--goldText);text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
.fhelp{position:relative;margin:14px 30px 4px;padding:16px 18px;background:var(--card);border:1px solid var(--gold);border-radius:14px}
.fhelp b{display:block;font-size:16px;margin:0 32px 6px 0}
.fhelp p{margin:0 0 10px;font-size:14px;color:var(--muted);line-height:1.5}
.fhelp p b{display:inline;font-size:inherit;margin:0;color:var(--text)}
.fhelp .row-btns{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.fhelp .x{position:absolute;top:10px;right:10px;width:32px;height:32px;display:grid;place-items:center;background:none;border:0;color:var(--muted);cursor:pointer;border-radius:50%}
.fhelp .x svg{width:18px;height:18px}
.fhelp details{margin-top:8px;font-size:13px}
.fhelp summary{cursor:pointer;color:var(--goldText);padding:4px 0}
.fhelp pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12.5px/1.5 ui-monospace,Menlo,Consolas,monospace;background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:12px;margin:8px 0 0;color:var(--text);user-select:text;-webkit-user-select:text}
.acts{margin-top:4px}
.acts .btn{height:42px;padding:0 16px;font-size:14px}
.desc.clamp{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.desc a{color:var(--goldText);word-break:break-all}
.heb-tag{font-family:var(--heb);color:var(--goldText)}.heb-tag.lat{font-family:inherit}
.upnext h4{display:flex;align-items:baseline}

/* tiles */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tile{display:flex;flex-direction:column;gap:4px;padding:20px;border-radius:18px;border:1px solid var(--line);background:var(--card);transition:.2s}
.tile:hover{border-color:var(--gold);transform:translateY(-2px)}
.tile svg{width:26px;height:26px;color:var(--gold);margin-bottom:8px}
.tile b{font-size:16px}
.tile small{color:var(--muted);font-size:13px}

/* tabs as links */
.tabs a{padding:12px 16px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;flex:none;white-space:nowrap}
.tabs a.on{color:var(--text);border-color:var(--gold)}

/* browse */
.bnav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.bnav a{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:14px;font-weight:500}
.bnav a svg{width:17px;height:17px;color:var(--gold)}
.bnav a:hover{border-color:var(--gold)}
.bnav a.quiet{background:none;color:var(--faint);border-style:dashed}
.fbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:22px}
.fsel{display:flex;flex-wrap:wrap;gap:8px}
.fsel select,.drawer-f select,.settings select,.adm select,.adm input,.adm textarea,.si-form input{height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--text);font:500 14px var(--sans);padding:0 12px;outline:none;max-width:100%}
.fsel select:focus,.si-form input:focus{border-color:var(--gold)}
.fbtn{display:none;height:40px}
.pill{font-size:11px;background:var(--gold);color:#1b1404;padding:2px 7px;border-radius:999px}
.drawer-f{display:flex;flex-direction:column;gap:10px;margin:14px 0 18px}
.drawer-f select{width:100%;height:48px}
.more-wrap{display:flex;justify-content:center;margin:30px 0 10px}
.count{margin-bottom:14px}

/* skeletons */
.sk{pointer-events:none}
.sk h3{height:16px;width:80%;border-radius:6px;background:var(--card2)}
.skt{width:200px;border-radius:8px;background:var(--card2);color:transparent}

/* search */
.dym{margin-bottom:18px;color:var(--muted)}
.linkbtn{color:var(--goldText);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.ser-list{display:flex;flex-direction:column;gap:8px}
.ser-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--card)}
.ser-row:hover{border-color:var(--gold)}
.ser-row > svg{width:20px;height:20px;color:var(--gold);flex:none}
.ser-row div{flex:1;min-width:0}
.ser-row b{display:block;font-weight:600}
.ser-row small{color:var(--muted);font-size:13px}

/* speaker page */
.sp-he{color:var(--goldText)!important;font-size:20px;margin:2px 0 6px!important;text-align:left}
.spk-card > a{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.spk-card > a > div{min-width:0}
.series-hero .by{display:inline-flex;align-items:center;gap:8px;color:var(--muted);margin:4px 0 12px}

/* sheet (sign in, share, filters) */
.sheet{position:fixed;inset:0;z-index:95;display:none;align-items:center;justify-content:center;background:rgba(5,7,14,.72);backdrop-filter:blur(14px);padding:20px}
.sheet.open{display:flex;animation:fade .2s ease}
.sheet-card{position:relative;width:min(440px,100%);max-height:92vh;overflow:auto;background:var(--bg2);border:1px solid var(--line);border-radius:26px;padding:30px 26px 22px;box-shadow:0 40px 100px rgba(0,0,0,.6);animation:up .3s cubic-bezier(.2,.7,.2,1);text-align:center}
.sheet-card h2{font-family:var(--serif);font-size:26px;font-weight:600}
.sheet-card p{margin-top:6px;line-height:1.5}
.sheet-card .x{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.sheet-card .x svg{width:20px;height:20px}
.si-mark{width:84px;height:84px;margin:0 auto 6px}
.si-mark svg{width:100%;height:100%;overflow:visible}
.si-btns{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.si-btns .btn{justify-content:center;width:100%}
.btn.si{background:var(--card);border:1px solid var(--line)}
.btn.si.apple{background:#fff;color:#000;border-color:#fff}
[data-theme="light"] .btn.si.apple{background:#000;color:#fff;border-color:#000}
.or{display:flex;align-items:center;gap:10px;color:var(--faint);font-size:12.5px;margin:18px 0 4px}
.or:before,.or:after{content:"";flex:1;border-top:1px solid var(--line)}
.si-form{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.si-form input{height:50px;font-size:16px;padding:0 16px}
.si-form .btn{justify-content:center}
.si-form input.code{text-align:center;letter-spacing:8px;font-size:22px;font-variant-numeric:tabular-nums}
.fine{font-size:12.5px;color:var(--faint);margin-top:14px!important}
.sheet-card > .linkbtn{margin-top:10px;font-size:14px}
.tog{display:flex;align-items:center;gap:10px;justify-content:flex-start;text-align:left;margin-top:14px;cursor:pointer;font-size:14.5px}
.tog input{width:20px;height:20px;accent-color:var(--gold);flex:none}

/* my learning */
.nudge{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:18px;border:1px solid rgba(232,182,90,.4);background:radial-gradient(80% 140% at 0% 0%,rgba(232,182,90,.14),transparent 60%),var(--card);margin-bottom:22px}
.nudge > svg{width:24px;height:24px;color:var(--gold);flex:none}
.nudge div{flex:1;display:flex;flex-direction:column}
.nudge span{color:var(--muted);font-size:13.5px}
.nudge .btn{height:40px}
.mystats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}
.mystats div{padding:16px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.mystats b{display:block;font-family:var(--serif);font-size:28px;font-weight:600;color:var(--gold)}
.mystats span{color:var(--muted);font-size:13px}
.moments{display:flex;flex-direction:column;gap:8px}
.moment{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--card)}
.moment > a{display:flex;align-items:center;gap:14px;flex:1;min-width:0}
.moment .mt{font-variant-numeric:tabular-nums;font-weight:700;color:var(--goldText);min-width:58px;display:flex;align-items:center}
.moment .mt svg{width:20px;height:20px}
.moment b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.moment small{color:var(--muted);font-size:12.5px}
.moment div{min-width:0}

/* settings */
.settings{display:flex;flex-direction:column;gap:14px;max-width:680px}
.settings section{padding:20px;border-radius:18px;border:1px solid var(--line);background:var(--card)}
.settings h3{font-family:var(--serif);font-size:19px;font-weight:600;margin-bottom:10px}
.settings p{margin:6px 0 12px;line-height:1.5}
.settings textarea{width:100%;min-height:80px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:14px var(--sans);padding:10px 12px;margin-bottom:10px}

/* car mode */
body.car-on .side,body.car-on .tabbar,body.car-on .topbar,body.car-on .mini{display:none!important}
body.car-on main{margin-left:0;padding:24px}
.car{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:26px;min-height:90vh}
.car-now{text-align:center}
.car-now b{display:block;font-family:var(--serif);font-size:30px;line-height:1.2}
.car-now small{display:block;color:var(--muted);font-size:18px;margin:8px 0 16px}
.car-ctrls{display:flex;justify-content:center;align-items:center;gap:30px}
.car-ctrls button{width:110px;height:110px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;position:relative}
.car-ctrls button svg{width:46px;height:46px}
.car-ctrls button span{position:absolute;bottom:14px;font-size:13px;font-weight:700;color:var(--muted)}
.car-ctrls .pp{width:150px;height:150px;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#1b1404;border:0}
.car-ctrls .pp svg{width:60px;height:60px}
.car-list{display:flex;flex-direction:column;gap:10px}
.car-list button{text-align:left;padding:20px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.car-list b{display:block;font-size:19px}
.car-list small{color:var(--muted);font-size:15px}
.car-empty{text-align:center;font-family:var(--serif);font-size:26px;color:var(--muted)}

/* Shabbos and Yom Tov */
.quiet-screen{display:none}
body.quiet .quiet-screen{position:fixed;inset:0;z-index:150;display:grid;place-items:center;background:radial-gradient(70% 70% at 50% 40%,#18213f,#080b16);color:#f6f1e6;text-align:center;padding:30px}
.quiet-in svg{width:150px;height:150px;overflow:visible;margin:0 auto 18px;display:block}
.quiet-in h1{font-family:var(--serif);font-size:44px;font-weight:600}
.quiet-in p{color:rgba(246,241,230,.7);margin-top:12px;line-height:1.6;font-size:16px}

/* not found */
.nf>div>svg{width:110px;height:110px;margin:0 auto 18px;display:block}

/* admin */
.adm h3{font-family:var(--serif);font-size:19px;font-weight:600;margin-bottom:12px}
.kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.kpis div{padding:18px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.kpis b{display:block;font-family:var(--serif);font-size:30px;color:var(--gold)}
.kpis span{color:var(--muted);font-size:13px}
.chart{width:100%;height:auto}
.chart rect{fill:var(--gold)}
.chart text{fill:var(--faint);font-size:11px}
.adm-cols{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:30px}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;color:var(--faint);font-size:11.5px;text-transform:uppercase;letter-spacing:1px;padding:8px;border-bottom:1px solid var(--line)}
.tbl td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.tbl a{color:var(--goldText)}
.adm-list{display:flex;flex-direction:column;gap:10px}
.adm-row{display:flex;gap:14px;padding:12px;border-radius:14px;border:1px solid var(--line);background:var(--card)}
.adm-row > img,.adm-row .ph-img{width:150px;aspect-ratio:16/9;object-fit:cover;border-radius:10px;flex:none;background:var(--card2)}
.adm-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.adm-main small{color:var(--muted)}
.adm-main small a{color:var(--goldText)}
.adm-title{width:100%;font-weight:600!important}
.adm-ctl{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.adm textarea{width:100%;height:auto;min-height:60px;padding:10px 12px}
.btn.sm{height:38px;padding:0 14px;font-size:13.5px}

@media(max-width:860px){
  .hero{grid-template-columns:1fr}
  .hero-mark{display:none}
  .wl-mark{display:block}
  .wl-head .eyebrow:before{display:none}
  .hero.welcome{padding-top:24px;padding-bottom:24px}
  .hero.welcome h1{font-size:32px;margin:10px 0}
  .hero.welcome .lead{font-size:15px;margin-bottom:18px}
  .hero.welcome .quote{display:none}
  .hstats{margin-bottom:16px}
  .hstats a{padding:2px 11px}
  .hstats a:last-child{padding-right:0}
  .hstats b{font-size:20px}
  .hstats a span{letter-spacing:1px}
  .hs-live{padding:4px 8px;letter-spacing:1.2px}
  .tiles{grid-template-columns:1fr}
  .fsel{display:none}
  .fbtn{display:inline-flex}
  .yt-note{padding:10px 18px}
  .fhelp{margin:12px 18px 4px}
  .acts .btn{flex:1 1 calc(50% - 6px);justify-content:center}
  .rail.shorts{grid-auto-columns:42%}
  .grid.shorts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mystats b{font-size:22px}
  .adm-cols{grid-template-columns:1fr}
  .adm-row > img,.adm-row .ph-img{width:96px}
  .sheet{align-items:flex-end;padding:0}
  .sheet-card{border-radius:26px 26px 0 0;width:100%;padding-bottom:calc(22px + var(--safeB))}
  .car-ctrls button{width:84px;height:84px}
  .car-ctrls .pp{width:120px;height:120px}
}
/* Hebrew titles read right to left on their own */
.card h3,.mini-card b,.pbody h2,.ep b,.np h2,.moment b,.ser-row b,.car-list b,.car-now b,.adm-title,.mini .ti b,.feat h3{unicode-bidi:plaintext;text-align:start}
.sortseg{max-width:100%;overflow-x:auto;scrollbar-width:none}
.sortseg::-webkit-scrollbar{display:none}
.sortseg button{white-space:nowrap;flex:none}
@media(max-width:860px){
  .hero .row-btns{flex-wrap:wrap}
  .hero .row-btns .btn{white-space:nowrap;flex:1 1 auto}
}
@media(min-width:600px) and (max-width:860px){
  .rail{grid-auto-columns:46%}
  .rail.shorts{grid-auto-columns:28%}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* chips are links too */
.chip{display:inline-flex;align-items:center;justify-content:center;flex:none}
/* a Short among normal cards keeps the 16:9 shape; tall only in Shorts rails and grids */
.grid:not(.shorts) .thumb.tall,.rail:not(.shorts) .thumb.tall{aspect-ratio:16/9}
/* small floating player: keeps playing while browsing */
.minibar{display:none}
.overlay.mini-mode{display:block!important;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none;padding:0;overflow:visible;inset:auto;animation:none}
.overlay.mini-mode .panel-wrap{position:fixed;right:20px;bottom:calc(20px + var(--mini));width:360px;pointer-events:auto;z-index:85}
.overlay.mini-mode .panel{border-radius:18px;min-height:0;padding-top:0;animation:up .25s ease;box-shadow:0 20px 60px rgba(0,0,0,.55)}
.overlay.mini-mode .pbody,.overlay.mini-mode .yt-note,.overlay.mini-mode .close{display:none}
.overlay.mini-mode .vid.tall{max-height:42vh}
.overlay.mini-mode .minibar{display:flex;align-items:center;gap:4px;padding:8px 8px 8px 14px;background:var(--bg2)}
.minibar .mb-t{flex:1;min-width:0}
.minibar b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext;text-align:start}
.minibar small{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.minibar button{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:var(--text);flex:none}
.minibar button:hover{background:var(--card)}
.minibar svg{width:18px;height:18px}
@media(max-width:860px){.overlay.mini-mode .panel-wrap{right:10px;width:min(78vw,340px);bottom:calc(var(--tabbar) + 10px + var(--mini) + var(--safeB))}}
.gbtn{display:flex;justify-content:center;min-height:44px}
.settings .legal a{color:var(--goldText)}
/* Read shelf */
.books{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:24px 18px}
.book{display:flex;flex-direction:column;gap:8px;color:inherit}
.book-c{position:relative;aspect-ratio:3/4.2;border-radius:6px 12px 12px 6px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:16px 14px 14px 18px;background:linear-gradient(160deg,color-mix(in srgb,var(--bh) 85%,#e8b65a 15%),var(--bh) 60%,#0a0e1a);box-shadow:0 14px 30px rgba(0,0,0,.35),inset 4px 0 0 rgba(255,255,255,.08);transition:.25s}
.book-c:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(90deg,rgba(0,0,0,.35),transparent)}
.book-c:after{content:"";position:absolute;inset:10px 10px 10px 14px;border:1px solid rgba(232,182,90,.35);border-radius:4px 8px 8px 4px;pointer-events:none}
.book-c img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.book:hover .book-c{transform:translateY(-4px) rotate(-.5deg)}
.bk-t{position:relative;font-family:var(--serif);font-weight:600;font-size:17px;line-height:1.2;color:#f6efe0;margin-top:10px}
.bk-a{position:relative;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:#e8b65a}
.book b{font-size:14px;line-height:1.3;font-weight:600}
.book small{color:var(--faint);font-size:12px}
@media(max-width:860px){.books{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}}
.spk-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.spk-card b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spk-card small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.np-links:empty{display:none}
.np-links a{display:inline-flex;align-items:center;gap:6px;font-size:13px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;color:inherit;text-decoration:none}
.np-links a svg{width:14px;height:14px}
.sp-head .lbl{display:block;font-size:11.5px;letter-spacing:1.6px;text-transform:uppercase;color:var(--goldText);font-weight:700;margin-bottom:4px}
.spk-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 22px}
.spk-tools .chips{margin:0}
.spk-find{display:flex;align-items:center;gap:8px;flex:1 1 260px;max-width:420px;height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--card)}
.spk-find svg{width:18px;height:18px;color:var(--muted);flex:none}
.spk-find input{flex:1;border:0;background:transparent;color:var(--text);font:inherit;font-size:15px;outline:none;min-width:0}
.spk-find:focus-within{border-color:var(--gold)}
/* Shiur page on phones: nothing wider than the screen */
.pbody > *{min-width:0}
.pbody h2{overflow-wrap:anywhere}
@media(max-width:860px){
  .pbody{grid-template-columns:minmax(0,1fr)}
  .panel{max-width:100vw;overflow-x:hidden}
  .acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .acts .btn{min-width:0;height:auto;min-height:44px;padding:8px 10px;white-space:normal;line-height:1.2;text-align:center;justify-content:center;font-size:13.5px}
  .acts .btn svg{flex:none}
  .seg{max-width:100%}
  .seg button{padding:0 14px}
}
/* the small floating video player never sits on top of the last buttons on a page */
body.vmini main{padding-bottom:calc(48px + var(--mini) + 260px)}
@media(max-width:860px){body.vmini main{padding-bottom:calc(var(--tabbar) + 32px + var(--mini) + var(--safeB) + 44vw + 80px)}}

/* Hebrew titles match the size of the English beside them.
   Hebrew letters draw about a fifth smaller than English capitals at the same size, so they are set 1.2x larger to look equal. */
.brand .h{font-size:27px;line-height:1.05;margin-top:4px;font-weight:500}
.sec-h .heb{font-size:30px;margin-left:12px;font-weight:500}
.ph .heb{font-size:46px;line-height:1.1;margin-top:0;margin-bottom:0;font-weight:500}
.sp-he{font-size:43px!important;line-height:1.1;font-weight:500}
@media(max-width:860px){
  .sec-h .heb{font-size:25px;margin-left:10px}
  .ph .heb{font-size:36px}
  .sp-he{font-size:32px!important}
}

/* Speaker About: blurb, count and website link */
.sp-head .sp-bio{color:var(--text);opacity:.88;margin:8px 0 6px;max-width:620px;line-height:1.6;white-space:pre-line}
.sp-head .sp-meta{color:var(--muted);font-size:14px;margin:0 0 16px}
.site-btn{gap:8px}
.site-btn svg{width:16px;height:16px}

/* About page */
.about{max-width:780px;display:flex;flex-direction:column;gap:38px;padding-bottom:30px}
.about h2{font-family:var(--serif);font-size:25px;font-weight:600;margin-bottom:14px}
.about p{line-height:1.7;margin-bottom:10px}
.ab-lead p{font-size:17px}
.ab-stats{color:var(--muted)}
.ab-stats b{color:var(--goldText);font-weight:600}
.ab-list{list-style:none;display:flex;flex-direction:column;gap:14px;padding:0;margin:0}
.ab-list li{line-height:1.65;padding-left:18px;position:relative}
.ab-list li:before{content:"";position:absolute;left:0;top:.7em;width:6px;height:6px;border-radius:50%;background:var(--gold)}
.ab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.ab-grid a{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:16px;background:var(--card);border:1px solid var(--line);transition:.2s}
.ab-grid a:hover{border-color:var(--gold)}
.ab-grid svg{width:22px;height:22px;color:var(--gold);margin-bottom:4px}
.ab-grid b{font-weight:600}
.ab-grid small{color:var(--muted);font-size:13px;line-height:1.45}
.ab-credit{padding:24px;border-radius:20px;background:var(--card);border:1px solid var(--line)}
.ab-credit p{font-size:17px;margin-bottom:6px}
.ab-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ab-prod{display:flex;flex-direction:column;gap:6px;padding:22px;border-radius:20px;background:var(--card);border:1px solid var(--line);transition:.2s}
.ab-prod:hover{border-color:var(--gold);transform:translateY(-2px)}
.ab-prod .heb{font-size:24px;color:var(--goldText);text-align:left}
.ab-prod b{font-family:var(--serif);font-size:21px;font-weight:600}
.ab-prod small{color:var(--muted);line-height:1.55;font-size:14px}
.ab-go{display:inline-flex;align-items:center;gap:8px;margin-top:8px;color:var(--goldText);font-weight:600;font-size:14px}
.ab-go svg{width:16px;height:16px}
@media(max-width:860px){.ab-grid,.ab-products{grid-template-columns:1fr}}

/* Ohr Pnimi sharing, kept prominent under every shiur */
.share-bar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 6px}
.share-bar .btn{height:46px}
.btn.wa{background:#1f9d55;color:#fff;border:1px solid #1f9d55}
.btn.wa:hover{background:#18864a}
.btn.wa svg{width:20px;height:20px}
.share-hi{color:var(--goldText)!important;border-color:var(--gold)!important}
@media(max-width:860px){.share-bar .btn{flex:1;justify-content:center;padding:0 14px}}
/* weekly email choices */
.dg{margin-top:14px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.dg-h{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:16px 0 8px}
.dg-h:first-child{margin-top:0}
.dg .tog{margin-top:10px}
.dg-spk{flex-wrap:wrap;gap:8px;margin-top:12px;overflow:visible}
.dg-spk .chip{cursor:pointer}
/* niggunim: one swipeable row of occasions, and a menu for the singer */
#ngFilters{margin:-6px 0 22px}
.ng-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
.ng-scroll::-webkit-scrollbar{display:none}
.ng-scroll .chip{flex:none;cursor:pointer}
.ng-scroll .chip:last-child{margin-right:30px}
.ng-row{display:flex;align-items:center;gap:10px;margin-top:14px}
.ng-sel{flex:1;min-width:0;max-width:320px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--text);font:500 14px var(--sans);padding:0 12px;outline:none}
.ng-sel:focus{border-color:var(--gold)}
.ng-row .btn{margin-left:auto;flex:none}
@media (max-width:700px){ .ng-scroll{margin:0 -18px;padding:2px 18px} }

/* account deletion link, and the app shell */
.linkbtn.danger{color:#e07a6a;margin-top:14px;display:inline-block}
/* an app that can only open with a connection (the iPhone app before 1.1) cannot play downloads offline, so they are hidden there.
   An app that keeps the site for offline use (Android, and iPhone from 1.1) shows them: see can-offline in native.js */
.is-app:not(.can-offline) [data-dl],.is-app:not(.can-offline) [data-dlv],.is-app:not(.can-offline) [data-nodl],.is-app:not(.can-offline) [data-travel],.is-app:not(.can-offline) a[href="#library/downloads"]{display:none!important}
/* notifications (app only) */
.bellbtn svg{width:18px;height:18px}
.bellbtn.on{color:var(--gold);border-color:var(--gold)}
.bell-top{position:relative;border:0;display:inline-flex;align-items:center;justify-content:center;margin-left:auto}
.bell-top svg{width:22px;height:22px}
.bell-top + .iconbtn{margin-left:4px}
.bell-top .dot{position:absolute;top:8px;right:8px;width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 2px var(--bg)}
.bell-top .dot[hidden]{display:none}
.ph .row-btns{margin-top:12px}
#notifySet .ser-row{gap:10px}
.alerts .ser-row.unread b{color:var(--gold)}

/* search boxes inside a series, a speaker and the series list */
.in-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 18px}
.in-tools .find-in{flex:1 1 280px;max-width:460px}
.in-count{font-size:13.5px;margin:0 0 10px}
.in-tools .in-count{margin:0}
.ep[hidden],.ser-row[hidden]{display:none}
.fbar .find-in{flex:1 1 200px;max-width:280px;height:40px}
.fsel.show{display:flex}
.series-hero + .in-tools{margin-top:6px}
@media(max-width:860px){ .fbar .find-in{order:3;flex-basis:100%;max-width:none} }

/* admin and tab bar on phones */
@media(max-width:860px){
  .tabbar.five{grid-template-columns:repeat(5,1fr)}
  .adm-cols{grid-template-columns:1fr}
  .adm-row{flex-direction:column}
  .adm-row > img,.adm-row .ph-img{width:100%}
}

/* explore and topic pages */
.crumbs{font-size:13px;color:var(--muted);margin:0 0 10px;display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.crumbs a{color:var(--goldText)}
.crumbs b{color:var(--text);font-weight:600}
.chip small{opacity:.6;margin-left:7px;font-weight:500;font-size:.85em}
.narrow .chips{flex-wrap:wrap}
.guides{grid-template-columns:repeat(3,1fr)}
.guides .tile svg{width:20px;height:20px}
.xgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.xcard{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:18px;border:1px solid var(--line);background:var(--card)}
.xhead{display:flex;flex-direction:column;gap:4px}
.xhead .heb{font-family:var(--heb);color:var(--goldText);font-size:15px}
.xhead b{font-size:18px;font-family:var(--serif)}
.xhead small{color:var(--muted);font-size:13px;line-height:1.45}
.xhead:hover b{color:var(--goldText)}
.xcard .chips{flex-wrap:wrap;margin:0}
@media(max-width:860px){.guides{grid-template-columns:1fr 1fr}.xgrid{grid-template-columns:1fr}}
@media(max-width:520px){.guides{grid-template-columns:1fr}}

.ib-list{display:flex;flex-direction:column;gap:14px}
.ib-card{display:flex;gap:16px;padding:16px;border-radius:14px;border:1px solid var(--line);background:var(--card)}
.ib-card > img,.ib-card .ib-ph{width:96px;height:96px;object-fit:cover;border-radius:10px;flex:none;background:var(--card2)}
.ib-main{flex:1;min-width:0}
.ib-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ib-card h3{margin:6px 0 2px;font-size:17px;line-height:1.35;overflow-wrap:anywhere}
.ib-facts{color:var(--goldText);font-size:13.5px}
.ib-ok{color:#7fc48a;font-size:13.5px;font-weight:600;margin-top:4px}
.ib-err{color:#e08a7c;font-size:13.5px;margin-top:4px}
.ib-desc{margin:8px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}
.ib-recent{margin-top:8px;font-size:13.5px}
.ib-recent ul{margin:4px 0 0;padding-left:18px;color:var(--muted)}
.ib-note{margin-top:8px;font-size:14px}
.ib-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.ib-who{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.ib-wholab{display:inline-flex;align-items:center;gap:10px;font-size:13.5px;font-weight:600;margin-right:10px}
.ib-wholab input{min-width:250px}
.ib-new{display:flex;gap:14px;align-items:flex-start;margin-top:12px;padding:14px;border-radius:12px;background:var(--card2);border:1px solid var(--line)}
.ib-new[hidden]{display:none}
.ib-pic{width:76px;height:76px;border-radius:50%;flex:none;overflow:hidden;background:var(--card);border:1px dashed var(--line)}
.ib-pic img{width:100%;height:100%;object-fit:cover;display:block}
.ib-newf{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.ib-newf .adm-ctl{margin:0}
.ib-seg{display:inline-flex;padding:3px;border-radius:999px;background:var(--card);border:1px solid var(--line)}
.ib-seg label{cursor:pointer}
.ib-seg input{position:absolute;opacity:0;pointer-events:none}
.ib-seg span{display:block;padding:6px 16px;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--muted)}
.ib-seg input:checked + span{background:var(--text);color:var(--bg)}
.ib-seg input:focus-visible + span{outline:2px solid var(--gold);outline-offset:2px}
@media (max-width:640px){.ib-card > img,.ib-card .ib-ph{width:64px;height:64px}}
@media (max-width:640px){.ib-wholab{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0 0 6px}.ib-wholab input{min-width:0;width:100%}.ib-new{flex-direction:column}}

/* ---------- All mashpi'im / Following, counts, honest empty lines (Nov 2026) ---------- */
.scope-wrap{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 14px}
.scope-wrap .sortseg button{display:inline-flex;align-items:center;gap:4px}
.scope-note{color:var(--muted);font-size:13px}
.sec-tools{margin:-6px 0 12px}
.sec-tools .scope-wrap{margin:0}
.fav{color:var(--gold);font-size:11px;margin-left:3px;line-height:1}
.count{color:var(--muted);font-size:14px;margin:2px 0 12px;min-height:1.2em}
.status{margin:6px 0 22px;font-size:14.5px}
.note{font-size:14px;color:var(--muted);margin:0 0 10px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.grid.cap>.card:nth-child(n+25){display:none}
.achips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 4px}
.achips:empty{display:none}
.achips .chip{cursor:pointer}
.tiles.routes .tile{text-align:left;font:inherit;color:inherit;cursor:pointer;width:100%}

/* ---------- welcome (first visit) and the personal home header ---------- */
.ob{position:fixed;inset:0;z-index:96;display:none;align-items:center;justify-content:center;background:rgba(5,7,14,.78);backdrop-filter:blur(16px);padding:24px}
.ob.open{display:flex;animation:fade .2s ease}
.ob-card{position:relative;display:flex;flex-direction:column;width:min(760px,100%);height:min(780px,100%);background:var(--bg2);border:1px solid var(--line);border-radius:28px;box-shadow:0 40px 100px rgba(0,0,0,.6);overflow:hidden;animation:up .3s cubic-bezier(.2,.7,.2,1)}
.ob-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px 6px}
.ob-top .linkbtn{font-size:14px;color:var(--muted)}
.ob-dots{display:flex;gap:6px}
.ob-dots i{width:26px;height:4px;border-radius:4px;background:var(--line)}
.ob-dots i.on{background:var(--gold)}
.ob-body{flex:1;overflow:auto;padding:14px 28px 24px;overscroll-behavior:contain}
.ob-body h2{font-family:var(--serif);font-size:30px;font-weight:600;line-height:1.15;outline:none}
.ob-body > p.muted{margin-top:8px;line-height:1.55}
.ob-body .lead{font-size:17px;line-height:1.6;margin-top:12px}
.ob-hero{text-align:center;max-width:520px;margin:6vh auto 0}
.ob-hero p.muted{margin-top:14px;line-height:1.55}
.ob-mark{display:inline-grid;place-items:center;width:84px;height:84px;margin-bottom:18px}
.ob-mark svg{width:100%;height:100%}
.ob-mark.done{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#1b1404}
.ob-mark.done svg{width:36px;height:36px}
.ob-tour{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:12px}
.ob-tour li{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.ob-tour .ic{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--card2);color:var(--gold)}
.ob-tour .ic svg{width:22px;height:22px}
.ob-tour b{font-size:15.5px}
.ob-tour p{margin-top:3px;color:var(--muted);font-size:14px;line-height:1.5}
.ob-group{margin-top:22px}
.ob-group h3{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin-bottom:10px}
.ob-group h3 .heb{margin-left:10px;color:var(--goldText);letter-spacing:0;text-transform:none;font-size:15px;font-weight:500}
.ob-group .chips{margin-bottom:0}
.ob-chip.on{background:linear-gradient(135deg,var(--gold2),var(--gold));color:#1b1404;border-color:transparent}
.ob-group .find-in{margin-bottom:14px;max-width:360px}
.ob-spks{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.ob-spk{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 6px 10px;border-radius:16px;border:1px solid transparent;transition:.15s}
.ob-spk:hover{background:var(--card)}
.ob-spk b{font-size:13px;font-weight:600;line-height:1.3;text-align:center}
.ob-spk .av{transition:.15s}
.ob-spk .tick{position:absolute;top:8px;right:calc(50% - 40px);display:none;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--gold);color:#1b1404;box-shadow:0 0 0 3px var(--bg2)}
.ob-spk .tick svg{width:14px;height:14px}
.ob-spk.on{background:var(--card);border-color:var(--gold)}
.ob-spk.on .av{box-shadow:0 0 0 3px var(--gold)}
.ob-spk.on .tick{display:grid}
.ob-none{grid-column:1/-1;padding:10px 0}
.ob-langs{display:grid;gap:10px;margin-top:20px;max-width:420px}
.ob-lang{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:16px;border:1px solid var(--line);background:var(--card);text-align:left;font-size:15.5px}
.ob-lang svg{width:20px;height:20px;color:transparent;border-radius:50%;border:1.5px solid var(--line);padding:2px}
.ob-lang.on{border-color:var(--gold)}
.ob-lang.on svg{color:#1b1404;background:var(--gold);border-color:var(--gold)}
.ob-lang small.heb,.lang-pick small.heb{font-family:var(--heb);font-size:14px}
.lang-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;max-width:640px}
.lang-pick{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--card);text-align:left;font-size:15px}
.lang-pick b{font-weight:600}.lang-pick small{color:var(--muted);margin-left:auto}
.lang-pick svg{width:18px;height:18px;flex:none;color:transparent;border-radius:50%;border:1.5px solid var(--line);padding:2px}
.lang-pick.on{border-color:var(--gold)}
.lang-pick.on svg{color:#1b1404;background:var(--gold);border-color:var(--gold)}
.ob-keep{margin-top:26px;padding:18px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.ob-keep p{color:var(--muted);font-size:14.5px;line-height:1.5;margin-bottom:12px}
.ob-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px calc(16px + var(--safeB,0px));border-top:1px solid var(--line);background:var(--bg2)}
.ob-foot .btn svg{width:18px;height:18px}
@media(max-width:860px){
  .ob{padding:0}
  .ob-card{width:100%;height:100%;border-radius:0;border:0;padding-top:var(--safeT,0px)}
  .ob-body{padding:10px 18px 22px}
  .ob-body h2{font-size:26px}
  .ob-top{padding:14px 18px 4px}
  .ob-foot{padding:12px 18px calc(12px + var(--safeB,0px))}
  .ob-spks{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ob-hero{margin-top:3vh}
}
.me-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin:6px 0 8px}
.me-head .eyebrow{display:block;color:var(--goldText);font-size:13px;font-weight:600;letter-spacing:.04em;margin-bottom:6px}
.me-head h1{font-family:var(--serif);font-size:36px;font-weight:600;line-height:1.1}
.me-chips{display:flex;flex-wrap:wrap;gap:8px}
.me-chips .chip.edit{color:var(--goldText);border-color:var(--gold);display:inline-flex;gap:6px}
.me-chips .chip.edit svg{width:15px;height:15px}
@media(max-width:860px){.me-head h1{font-size:30px}.me-chips{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none;padding-bottom:2px}.me-chips::-webkit-scrollbar{display:none}}
.me-head .eyebrow:before{display:none}.me-head .eyebrow{text-transform:none;letter-spacing:.02em}
#onboard .ob-group .chips{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
#onboard .chip.ob-chip{white-space:normal;height:auto;min-height:36px;padding:7px 15px;text-align:left}
#onboard .chip.ob-chip.on{background:linear-gradient(135deg,var(--gold2),var(--gold));color:#1b1404;border-color:transparent;font-weight:600}
.ob-have{margin-top:14px;font-size:14.5px;color:var(--muted)}
/* side panel: the whole panel scrolls, nothing squashes, and the account and theme buttons stay at the bottom over their own background */
.side{gap:0}
.side > *{flex:none}
.side .nav{margin-bottom:24px}
.side .brand{margin-bottom:28px}
.side .follows{overflow:visible}
.side .foot{position:sticky;bottom:-28px;margin:auto -18px -28px;padding:14px 18px 20px;background:var(--bg);border-top:1px solid var(--line);z-index:1}
.side .follows .av{flex:none}
/* phones: choices in Settings wrap rather than run off the edge */
@media(max-width:860px){.settings .sortseg{display:flex;flex-wrap:wrap;max-width:100%;border-radius:20px}.settings .sortseg button{white-space:nowrap}}
.set-sub{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin:16px 0 8px}
.settings .set-chips{flex-wrap:wrap;margin-bottom:6px}
.settings .set-chips .chip{display:inline-flex;align-items:center}
.settings section > .row-btns{margin-top:14px}
/* home: This week strip, thin Continue learning strip, tabbed Your topics */
.wk-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(170px,1fr);gap:12px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.wk-strip::-webkit-scrollbar{display:none}
.wk-tile{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:16px;background:var(--card);border:1px solid var(--line);transition:.2s;min-width:0}
.wk-tile:hover{border-color:var(--gold)}
.wk-tile .heb{color:var(--goldText);font-size:17px;line-height:1.2}
.wk-tile b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-tile small{color:var(--muted);font-size:13px}
.cl-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,340px);gap:12px;overflow-x:auto;scrollbar-width:none}
.cl-strip::-webkit-scrollbar{display:none}
.cl-item{display:flex;gap:12px;align-items:center;padding:8px;border-radius:14px;background:var(--card);border:1px solid var(--line);min-width:0;transition:.2s}
.cl-item:hover{border-color:var(--gold)}
.cl-th{position:relative;flex:none;width:96px;aspect-ratio:16/9;border-radius:9px;overflow:hidden;background:var(--card2);display:grid;place-items:center}
.cl-th img{width:100%;height:100%;object-fit:cover}
.cl-th svg{width:36px;height:36px}
.cl-th > i{position:absolute;left:0;bottom:0;height:3px;background:var(--gold2)}
.cl-tx{min-width:0;display:flex;flex-direction:column;gap:3px}
.cl-tx b{font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cl-tx small{color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.tp-tabs::-webkit-scrollbar{display:none}
.tp-tabs .chip.on{background:linear-gradient(135deg,var(--gold2),var(--gold));color:#1b1404;border-color:transparent;font-weight:600}
.rail.loading{opacity:.45;transition:opacity .2s}
@media(max-width:860px){.wk-strip{grid-auto-columns:150px}.cl-strip{grid-auto-columns:82%}.cl-th{width:84px}}
.wk-tile b{white-space:normal;line-height:1.3}
@media(max-width:860px){.wk-strip{grid-auto-columns:minmax(150px,46%)}}
/* series: tick shiurim off by hand, and "I've learnt some already" */
.ep{grid-template-columns:44px 150px 1fr auto 40px}
.ep-tick{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;color:transparent;transition:.15s;background:transparent}
.ep-tick svg{width:18px;height:18px}
.ep-tick:hover{border-color:var(--gold);color:var(--faint)}
.ep-tick.on{background:linear-gradient(135deg,var(--gold2),var(--gold));border-color:transparent;color:#1b1404}
.ep.fin b{color:var(--muted)}
.eps.pick .ep{cursor:copy;outline:1px dashed var(--line)}
.eps.pick .ep:hover{outline-color:var(--gold);background:var(--card)}
.pick-bar{position:sticky;top:12px;z-index:5;margin:0 0 14px;padding:14px 16px;border-radius:16px;background:var(--card);border:1px solid var(--gold);box-shadow:0 10px 30px rgba(0,0,0,.25)}
.pick-bar p{font-size:14.5px;line-height:1.5;margin-bottom:10px}
.pick-bar .row-btns{margin-top:0}
@media(max-width:860px){
  .ep{grid-template-columns:28px 104px 1fr 36px}
  .ep .st{grid-column:3;grid-row:2;justify-self:start;margin-top:-6px}
  .ep .ep-tick{grid-column:4;grid-row:1}
  .pick-bar{top:calc(68px + var(--safeT))}
}
/* Series page: where you're up to */
.upto{display:grid;grid-template-columns:220px 1fr;gap:20px;align-items:center;margin:4px 0 22px;padding:18px;border-radius:20px;background:var(--card);border:1px solid var(--gold);box-shadow:var(--shadow)}
.upto.done{grid-template-columns:1fr}
.upto .lbl{display:block;font-size:11.5px;letter-spacing:1.6px;text-transform:uppercase;color:var(--goldText);font-weight:700;margin-bottom:4px}
.upto h2{font-size:24px;line-height:1.2;margin:0 0 6px}
.upto h2 .muted{font-weight:500;font-size:18px}
.upto-t{font-size:15.5px;line-height:1.45;margin:0 0 4px;unicode-bidi:plaintext}
.upto .row-btns{margin-top:14px}
.upto-art{display:block;position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#0b1020}
.upto-art img{width:100%;height:100%;object-fit:cover}
.upto-art .audio-art{width:100%;height:100%}
.upto-art .eprog{position:absolute;left:0;right:0;bottom:0;margin:0;max-width:none;border-radius:0;height:4px;background:rgba(0,0,0,.45)}
.upto-p{display:none}
.ep-more{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 8px;padding:12px 14px;border-radius:14px;border:1px dashed var(--line);background:transparent;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.ep-more svg{width:16px;height:16px}
.ep-more:hover{border-color:var(--gold);color:var(--text)}
.ep-more[hidden]{display:none}
.ep.flash{animation:epflash 1.8s ease}
@keyframes epflash{0%,60%{background:color-mix(in srgb,var(--gold) 22%,transparent)}100%{background:transparent}}
@media(max-width:700px){
  .upto{grid-template-columns:1fr;gap:12px;padding:14px 16px}
  .upto-art{display:none}
  .upto-p{display:block;max-width:none;margin-top:10px}
  .upto h2{font-size:21px}
  .upto .row-btns .btn{flex:1 1 auto;justify-content:center}
  /* once you've started, your place matters more than the artwork: keep the top short so the card shows without scrolling */
  .series-hero.has-upto{padding-bottom:16px}
  .series-hero.has-upto .series-art{display:none}
  .series-hero.has-upto .row-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .series-hero.has-upto .row-btns .btn{padding:9px 10px;font-size:13.5px;min-height:40px;justify-content:center;text-align:center;line-height:1.2}
  .series-hero.has-upto .row-btns .btn svg{width:16px;height:16px;flex:none}
}
/* My Learning: My series */
.lib-note{margin:0 0 14px;font-size:14px}
.my-series{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
.my-ser{padding:16px;border-radius:18px;background:var(--card);border:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.my-ser-h b{display:block;font-size:16px;font-weight:600;line-height:1.35}
.my-ser-h small{display:block;color:var(--muted);font-size:13px;margin:4px 0 10px}
.my-ser .row-btns{margin-top:auto}
.my-ser .btn.gold{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex}
.my-ser .muted svg{width:16px;height:16px;vertical-align:-3px}
.side .foot .bell-top{margin-left:0;border:1px solid var(--line)}
.side .foot .bell-top svg{width:20px;height:20px}
.my-ser .btn.gold bdi{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
/* player: the series box */
.seriesbox .sb-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.seriesbox .sb-acts:empty{display:none}
.seriesbox .sb-also{margin-top:10px;font-size:13px;color:var(--muted)}
.seriesbox .sb-also a{color:var(--goldText)}
/* mashpia page: his series */
.sp-ser{margin-top:6px}
.ser-tile b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;unicode-bidi:plaintext;text-align:start}
.in-tools .sortseg{margin-left:8px}
/* Back, at the top of every page below the main ones */
.backrow{margin:-8px 0 10px}
.backbtn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px 0 10px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--muted);font-size:14px;font-weight:600;transition:.15s}
.backbtn:hover{color:var(--text);border-color:var(--gold)}
.backbtn svg{width:18px;height:18px}
@media(max-width:860px){.backrow{margin:-6px 0 8px}.backbtn{height:34px;font-size:13.5px}}
/* a shiur in a series you follow */
.sermk{display:flex;align-items:center;gap:5px;margin:10px 2px -4px;font-size:12px;font-weight:700;color:var(--goldText);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext}
.sermk i{font-style:normal;font-size:10px}
/* mashpi'im lists run A to Z by surname: a small note says so, and letter headings mark the way */
.az-note{display:flex;align-items:center;gap:7px;margin:10px 0 4px;font-size:13px;color:var(--muted);line-height:1.4}
.az-note svg{width:15px;height:15px;flex:none;color:var(--goldText)}
.spk-grid .az-h{grid-column:1/-1;margin:14px 0 -2px;padding-bottom:4px;border-bottom:1px solid var(--line);font-size:15px;letter-spacing:1px;color:var(--goldText);font-weight:700}
.spk-grid .az-h:first-child{margin-top:2px}
.ob-group .az-note{margin:-4px 0 10px}
/* mashpia cards: the title sits small above the name, and the name wraps rather than losing the surname */
.spk-card .spk-ttl{display:block;font-size:12px;color:var(--muted);line-height:1.2;margin-bottom:1px}
.spk-card b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}
/* asking to turn notifications on (apps) */
.push-ask .pa-bell{width:64px;height:64px;margin:4px auto 14px;border-radius:50%;display:grid;place-items:center;color:var(--gold);background:color-mix(in srgb,var(--gold) 14%,transparent)}
.push-ask .pa-bell svg{width:30px;height:30px}
.push-ask .pa-small{font-size:13px;margin-top:10px}
.push-ask .si-btns{margin-top:18px}
.push-ask [data-push-yes] svg{width:18px;height:18px}
.push-ask h2:focus{outline:none}
/* the question about women teachers (welcome step, and the one-time card) */
.ob-lang span{display:grid;gap:3px}
.ob-lang small{color:var(--muted);font-size:13px;line-height:1.35}
.ob-note{font-size:13px;margin-top:14px}
.women-ask .ob-langs{max-width:none;margin-top:16px}
.women-ask h2:focus{outline:none}
/* the first welcome screen: what the next minute holds */
.ob-plan{margin:22px auto 0;text-align:left;max-width:460px}
.ob-plan h3{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:10px}
.ob-plan ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ob-plan li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--card);border:1px solid var(--line)}
.ob-plan .ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--card2);color:var(--gold)}
.ob-plan .ic svg{width:19px;height:19px}
.ob-plan b{font-size:15px}
.ob-plan p{margin-top:2px;color:var(--muted);font-size:13.5px;line-height:1.45}
/* iPhones zoom the whole page in when you tap a box whose text is under 16px, and it then slides sideways: keep every box at 16px or more on touch screens */
@media (hover:none) and (pointer:coarse){input:not(.code),select,textarea{font-size:16px!important}}

/* iPhone visitors on the website: a small card pointing to the app (above the tab bar and the audio player) */
.appban{position:fixed;left:10px;right:10px;bottom:calc(var(--tabbar) + var(--safeB) + var(--mini) + 10px);z-index:55;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;border-radius:18px;background:rgba(19,26,46,.94);backdrop-filter:blur(20px) saturate(1.4);border:1px solid var(--line);box-shadow:0 10px 30px rgba(0,0,0,.35);animation:appban .35s ease-out}
[data-theme="light"] .appban{background:rgba(255,253,248,.96)}
.appban img{width:44px;height:44px;border-radius:11px;flex:none}
.appban div{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.appban b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appban small{font-size:12.5px;color:var(--muted)}
.appban .btn{flex:none;height:38px;padding:0 14px;font-size:14px;white-space:nowrap;box-shadow:none}
.appban .x{flex:none;width:34px;height:34px;display:grid;place-items:center;border:0;background:none;color:var(--faint);padding:0}
.appban .x svg{width:18px;height:18px}
body.car-on .appban,body.quiet .appban{display:none}
@keyframes appban{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* the finished tick and the language badge share the top right corner: the badge moves over */
:has(> .done-tick) > .badge.lang{right:44px}

/* v45: the video's "keep playing small" button, top left; taking a shiur out of Continue learning; the full audio player on phones */
.close.minb{right:auto;left:14px;width:auto;min-width:42px;padding:0 14px 0 10px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.close.minb span{white-space:nowrap}
@media(max-width:860px){.close.minb{left:10px}}
@media(max-width:420px){.close.minb span{display:none}.close.minb{padding:0;width:42px;justify-content:center}}
.forget{position:absolute;z-index:4;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.6);color:#fff;border:0;padding:0;cursor:pointer}
.forget svg{width:14px;height:14px}
.forget:hover{background:rgba(0,0,0,.85)}
.card .thumb .forget{left:8px;top:8px}
.cl-item{position:relative;padding-right:40px}
.cl-item .forget{right:8px;top:50%;transform:translateY(-50%);background:none;color:var(--faint);width:32px;height:32px}
.cl-item .forget:hover{background:var(--card2);color:var(--text)}
.np-card{transition:transform .18s ease;touch-action:pan-y}
@media(max-width:860px){
  /* the card never sits under the phone's status bar, where taps do not arrive */
  .np{padding-top:calc(var(--safeT) + 10px)}
  .app-android .np{padding-top:max(calc(var(--safeT) + 10px),38px)}
  .np-card{min-height:calc(100vh - var(--safeT) - 10px);min-height:calc(100dvh - var(--safeT) - 10px)}
  .np .x{width:46px;height:46px;top:10px;right:10px}
  .np .x svg{width:24px;height:24px}
  .np .handle{width:56px;height:5px;padding:12px 40px;margin:-12px auto 6px;box-sizing:content-box;background-clip:content-box;cursor:pointer}
}
/* on phones the two buttons sit in their own strip above the video, so they never cover YouTube's own controls */
@media(max-width:860px){
  .overlay:not(.mini-mode) .panel{padding-top:calc(var(--safeT) + 50px)}
  .app-android .overlay:not(.mini-mode) .panel{padding-top:calc(max(var(--safeT),28px) + 50px)}
  .overlay .close{top:calc(var(--safeT) + 4px);background:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--text)}
  .app-android .overlay .close{top:calc(max(var(--safeT),28px) + 4px)}
  .close.minb{left:6px;padding:0 14px 0 8px;width:auto}
  .close.minb span{display:inline}
  .overlay #closeBtn{right:6px}
}
.moments + .lib-note{margin-top:14px}

/* v46: room between a mashpia's series and the search box under them; the Download button on a video that has no audio copy */
#spSeries:not(:empty) + .in-tools{margin-top:26px}
/* v48: the language row (v47) sits between the series and the search box, so the rule above stopped matching. Whatever shows first under the series gets the room. */
#spSeries:not(:empty) + .sp-lang:empty + .in-tools{margin-top:26px}
#spSeries:not(:empty) + .sp-lang:not(:empty){margin-top:26px}
.btn.line.dim{opacity:.55}
/* the full audio player's down button stays in reach on a phone even when the player is scrolled */
@media(max-width:860px){.np .x{position:sticky;top:8px;right:auto;align-self:flex-end;flex:none;margin:0 -10px -46px 0}}

/* language filter on a mashpia's page (v47) */
.sp-lang{display:flex;gap:8px;margin:6px 0 12px}.sp-lang:empty{display:none}

/* v48: the small video can be dragged anywhere; a swipe from the left edge goes back (iPhone app) */
.overlay.mini-mode .panel-wrap.placed{left:var(--mx,auto);top:var(--my,auto);right:auto;bottom:auto}
.overlay.mini-mode .panel-wrap.dragging .panel{box-shadow:0 26px 70px rgba(0,0,0,.7);animation:none}
.overlay.mini-mode .panel-wrap.dragging{transition:none}
.overlay.mini-mode .minibar{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.overlay.mini-mode .panel-wrap.dragging .minibar{cursor:grabbing}
.overlay.mini-mode .minibar button{cursor:pointer}
.mini-drag{display:none}
.overlay.mini-mode .panel-wrap.dragging .mini-drag{display:block;position:absolute;inset:0;z-index:3}
@media(pointer:coarse){.overlay.mini-mode .mini-drag{display:block;position:absolute;inset:0;z-index:3;touch-action:none}}
.swipeback{position:fixed;left:0;top:50%;z-index:200;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#1a1405;opacity:0;transform:translate(-48px,-50%);transition:opacity .2s,transform .2s;pointer-events:none;box-shadow:0 6px 20px rgba(0,0,0,.4)}
.swipeback svg{width:22px;height:22px}
.swipeback.go{transform:translate(0,-50%) scale(1.12)}

/* v49: a mashpia's own PDFs (his Read tab, and "From the mashpi'im" on the Read page) */
.doc-list{display:grid;gap:10px}
.doc-row b{unicode-bidi:plaintext;text-align:start;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.doc-row small{display:block;color:var(--muted);font-size:12.5px;margin-top:3px}
.doc-n{margin:0 0 12px}
.doc-who{margin:0 0 26px}
.doc-who-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.doc-who-h a:first-child{display:flex;align-items:center;gap:10px;color:inherit;min-width:0}
.doc-who-h b{font-size:16px}
@media(min-width:861px){.doc-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shorts viewer (v52, 25 Nov 2026): one short after another, full screen; swipe or scroll for the next */
body.sv-on{overflow:hidden}
body:not(.sv-on) .sv{display:none}
.sv{position:fixed;inset:0;z-index:1000;background:#000;color:#fff}
.sv-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.sv-frame{position:relative;height:100%;aspect-ratio:9/16;max-width:100vw}
.sv-frame #svYT,.sv-frame iframe,.sv-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.sv-frame video{display:none;object-fit:contain}.sv-frame.mp4 video{display:block}.sv-frame.mp4 #svYT,.sv-frame.mp4 iframe{visibility:hidden}
.sv-scroll{position:absolute;inset:0;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;outline:none;-webkit-overflow-scrolling:touch}
.sv-scroll::-webkit-scrollbar{display:none}
.sv-slide{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;overflow:hidden}
.sv-th{height:100%;aspect-ratio:9/16;max-width:100vw;object-fit:cover;transition:opacity .25s}
.sv-slide.live .sv-th{opacity:0}
.sv-info{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:min(56.25dvh,100vw);box-sizing:border-box;padding:40px 76px calc(22px + env(safe-area-inset-bottom)) 16px;background:linear-gradient(transparent,rgba(0,0,0,.7));display:flex;flex-direction:column;gap:8px}
.sv-who{display:flex;align-items:center;gap:8px;color:#fff;font-weight:600;text-decoration:none;align-self:flex-start}
.sv-seen{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;font-size:12.5px;font-weight:600;color:#1b1404;background:var(--gold2);border-radius:99px;padding:3px 10px 3px 7px}
.sv-seen[hidden]{display:none}
.sv-seen svg{width:13px;height:13px}
.sv-title{font-weight:500;font-size:15px;line-height:1.4;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.sv-side{position:absolute;bottom:calc(26px + env(safe-area-inset-bottom));right:max(8px,calc(50% - min(28.125dvh,50vw) + 8px));display:flex;flex-direction:column;gap:16px}
.sv-btn{display:flex;flex-direction:column;align-items:center;gap:3px;color:#fff;background:none;border:0;font:inherit;font-size:11px;text-decoration:none;cursor:pointer;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.sv-btn svg{width:26px;height:26px}
.sv-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 12px 18px;background:linear-gradient(rgba(0,0,0,.5),transparent);pointer-events:none}
.sv-top>*{pointer-events:auto}
.sv-x,.sv-mute{background:rgba(0,0,0,.35);border:0;color:#fff;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;cursor:pointer;font-size:17px}
.sv-x svg{width:20px;height:20px}
.sv-h{font-weight:600;letter-spacing:.02em}
.sv-nav{position:absolute;right:20px;top:50%;transform:translateY(-50%);display:none;flex-direction:column;gap:12px}
.sv-nav button{width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;font-size:15px}
.sv-nav button:hover{background:rgba(255,255,255,.28)}
@media(hover:hover) and (pointer:fine){.sv-nav{display:flex}}
.sv-tap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.65);padding:12px 20px;border-radius:999px;font-weight:600;cursor:pointer}
.sv-tap[hidden]{display:none}
.sv-end{height:1px}

/* v57: Browse shortcuts as an even grid (two across on phones, four on wider screens), long ones full width */
.bnav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bnav a{min-width:0;height:46px;padding:0 14px}
.bnav a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bnav a.wide{grid-column:1/-1}
.bnav a.quiet{justify-content:center}
@media (min-width:760px){.bnav{grid-template-columns:repeat(4,minmax(0,1fr))}.bnav a.wide{grid-column:span 2}}
/* v58: a smooth video page. A blur over the whole screen behind a playing video has to be worked out again for every frame,
   and on phones (above all iPhones) that made taps on ✕ and Share wait. On a phone the video page fills the screen, so the
   blur behind it was never seen: it is solid now, and the page underneath is not drawn while it is covered.
   Anything that opens over a playing video (the Share card, the audio player) dims it without blurring it. */
@media(max-width:860px){
  .overlay{background:var(--bg2);backdrop-filter:none;-webkit-backdrop-filter:none}
  .overlay .panel{box-shadow:none}
  body:has(#overlay.open:not(.mini-mode)) #view{visibility:hidden}
}
body:has(#overlay.open) .sheet,body:has(#overlay.open) .np{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(5,7,14,.9)}
.overlay .vid{contain:layout paint}
/* v59: the Shorts viewer is on layer 1000, so the Share card (95), the welcome/sign-in cards (96) and the short messages (99)
   opened behind it: Share seemed to do nothing, and its link and ✕ could not be tapped (the taps went to the short).
   While Shorts is open they come above it, and dim it without blurring the playing video. */
body.sv-on .sheet,body.sv-on .ob{z-index:1010}
body.sv-on .toast{z-index:1020}
body.sv-on .sheet,body.sv-on .ob{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(0,0,0,.6)}

/* v60: MP4 shorts in the Shorts viewer (horizontal clips shown whole; "Tap for sound" when a phone starts one muted) */
.sv-frame.mp4.wide{aspect-ratio:auto;width:100vw;max-width:100vw}
.sv-th.wide{aspect-ratio:auto;width:100%;height:auto;max-height:100%;object-fit:contain}
.sv-snd{position:absolute;left:50%;top:calc(64px + env(safe-area-inset-top));transform:translateX(-50%);z-index:3;background:rgba(0,0,0,.65);color:#fff;border:0;border-radius:999px;padding:9px 16px;font:inherit;font-weight:600;font-size:14px;cursor:pointer}
.sv-snd[hidden]{display:none}
/* v60: the two separate sections side by side under Niggunim: half each on phones, two columns each from 760px, so every row is full */
@media (min-width:760px){.bnav a.sec2{grid-column:span 2}}
.ob-kids{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:12px 14px;border:1px dashed var(--line);border-radius:12px;color:var(--faint);font-size:14px;line-height:1.45}
.ob-kids svg{width:20px;height:20px;flex:none;color:var(--gold);margin-top:1px}.ob-kids b{color:var(--text);margin-right:4px}
/* v61: Exclusive to Ohr Pnimi. A gold banner across the top of the cover; the corner badges and the finished tick move down under it.
   Gold with dark lettering reads the same on the light and dark themes. Narrow covers (shorts, the phone list) say just "Exclusive". */
.xband{position:absolute;left:0;right:0;top:0;z-index:2;height:24px;display:flex;align-items:center;justify-content:center;gap:0;padding:0 8px;background:linear-gradient(90deg,#c48d33,#f3d283 50%,#c48d33);color:#1b1404;font-size:10.5px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;white-space:nowrap;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,.28);pointer-events:none}
.xband b{font-weight:800}.xband i{font-style:normal;font-weight:700;white-space:pre}
.thumb.x .badge{top:32px}
.thumb.x .done-tick{top:30px}
.rail.shorts .xband i,.grid.shorts .xband i{display:none}
@media(max-width:600px){
  .grid:not(.shorts) .xband{height:18px;font-size:9px;letter-spacing:.7px}
  .grid:not(.shorts) .xband i{display:none}
  .grid:not(.shorts) .thumb.x .badge{top:23px}
  .grid:not(.shorts) .thumb.x .done-tick{top:22px;width:22px;height:22px}
}
/* the Exclusive shortcut leads Browse, full width and in gold */
.bnav a.xtile{grid-column:1/-1;justify-content:center;font-weight:600;border-color:var(--gold);background:linear-gradient(90deg,rgba(232,182,90,.24),rgba(232,182,90,.08) 50%,rgba(232,182,90,.24));color:var(--goldText)}
@media (min-width:760px){.bnav a.xtile{grid-column:1/-1}}
/* in the player, next to the date and length */
.pmeta .xtag{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;background:linear-gradient(90deg,#c48d33,#f3d283 50%,#c48d33);color:#1b1404;font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;text-decoration:none}
.np-x{display:flex;justify-content:center;margin-top:10px}
.np-x .xtag{display:inline-flex;align-items:center;padding:3px 12px;border-radius:999px;background:linear-gradient(90deg,#c48d33,#f3d283 50%,#c48d33);color:#1b1404;font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;text-decoration:none}
/* v73: Ohr Pnimi's own PDF reader (#doc/<id>, #pdf/<shiur>/<address>) */
.rd{margin:-8px auto 0;max-width:980px}
.rd-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:10px 4px;background:var(--bg);border-bottom:1px solid var(--line)}
.rd-back{flex:none;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--text);cursor:pointer}
.rd-back svg{width:20px;height:20px}
.rd-t{flex:1;min-width:0}
.rd-t b{display:block;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-t small{display:block;color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-act{flex:none;display:flex;gap:6px}
.rd-act button,.rd-act a{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--text);cursor:pointer;font-size:20px;line-height:1}
.rd-act svg{width:18px;height:18px}
.rd-act button:hover,.rd-act a:hover,.rd-back:hover{border-color:var(--gold)}
.rd-head{padding:12px 4px 4px}
.rd-from{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13.5px;flex-wrap:wrap}
.rd-from span{color:var(--text);font-weight:600}
.rd-from small{color:var(--faint)}
.rd-pages{display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 0 24px;min-height:50vh}
.rd-pages.wide{align-items:flex-start;overflow-x:auto}
.rd-page{flex:none;background:#fff;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.25),0 6px 18px rgba(0,0,0,.12);overflow:hidden}
.rd-page canvas{display:block}
.rd-wait{display:flex;flex-direction:column;align-items:center;gap:12px;padding:60px 0;color:var(--muted)}
.rd-wait .spin{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--gold);animation:rdspin .9s linear infinite}
@keyframes rdspin{to{transform:rotate(360deg)}}
.rd-pg{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:30;padding:6px 12px;border-radius:999px;background:rgba(20,22,30,.78);color:#fff;font-size:12.5px;pointer-events:none;backdrop-filter:blur(6px)}
.rd-foot{display:flex;justify-content:center;padding:4px 0 40px}
.desc-url{overflow-wrap:anywhere;color:var(--muted)}
.desc a svg{width:15px;height:15px;vertical-align:-3px;margin-right:4px}
@media (max-width:600px){.rd-act{gap:4px}.rd-act button,.rd-act a{width:34px;height:34px}.rd-pages{gap:8px}}

/* ===================================================================================================
   v76 redesign (Yehuda, 29 Nov 2026): "super premium, and not built by AI without thought".
   Quieter and more like a well-made sefer than an app template: a bookish serif (Newsreader) with a plain sans
   (Instrument Sans), no spaced-out capital labels, no glows, gold kept for the main action and progress only,
   soft rectangles instead of pills. Everything here overrides the older rules above, so it can be read (or taken
   out) in one place.
   =================================================================================================== */
:root{--serif:'Newsreader',Georgia,serif;--sans:'Instrument Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;--radius:14px}
/* plain labels, never tracked capitals */
.side h6,.eyebrow,.feat .lbl,.filters label,.upnext h4,.seriesbox .lbl,.series-hero .lbl,.spot .lbl,.hs-live,.hstats a span,.tbl th,.bk-a,.sp-head .lbl,.dg-h,.ob-group h3,.set-sub,.upto .lbl,.ob-plan h3,.xband,.pmeta .xtag,.np-x .xtag{text-transform:none!important;letter-spacing:0!important}
.eyebrow:before{display:none}
.side h6{font-size:12.5px;font-weight:500}
/* no glows: flat, calm colour */
.hero-glow,.hero .rings,.hero .core{display:none!important}
.hero{background:#10172b;box-shadow:none;border:1px solid rgba(255,255,255,.06)}
.series-hero,.spot{background:var(--card)}
.nudge{background:var(--card)}
.topic:before{background:var(--tc);opacity:.10}
.audio-art{background:#1a2238}
.av.mono{background:#1f2846!important;border-color:rgba(255,255,255,.08)}
[data-theme="light"] .av.mono{background:#ecdfc2!important;border-color:rgba(60,40,10,.12)}
.side{background:var(--bg)}
/* type */
.sec-h h2,.ph h1,.hero h1{font-weight:500;letter-spacing:-.01em}
.sec-h h2{font-size:26px}
.sec-h .heb{font-size:24px;font-weight:400}
.hero h1 em{color:inherit}
.card h3{font-weight:500}
/* soft rectangles, not pills */
.btn{border-radius:12px}
.chip,.tag,.pill,.badge,.soon{border-radius:10px}
.seg,.sortseg,.ib-seg,.spk-find{border-radius:12px}
.seg button,.sortseg button,.ib-seg span{border-radius:9px}
.backbtn{border-radius:12px}
/* gold only where it leads: the main button, progress, a followed mashpia's star */
.see{color:var(--muted);font-weight:500;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line)}
.see:hover{color:var(--text)}
.wk-tile:hover,.cl-item:hover{border-color:var(--line);background:var(--card2)}

/* ---------- cards: one label at most, the rest in the line underneath ---------- */
.card .meta .ml{color:var(--faint);flex:none}
.card .meta .ml.heb{font-size:14px}
.card.x .thumb{box-shadow:0 0 0 1.5px #d8a94f}
.xlab{position:absolute;left:8px;top:8px;z-index:2;font-size:11px;font-weight:600;padding:4px 8px;border-radius:7px;background:#e3b865;color:#1b1404}
/* our own cover, only for shiurim with no picture of their own (audio-only, from podcast feeds) */
.own{position:absolute;inset:0;container-type:size;overflow:hidden;color:#f5efe2;background:var(--oc,#1e3a4a)}
.own .oh{position:absolute;right:-3cqw;top:5cqh;font:400 30cqh/1 var(--heb);color:rgba(245,239,226,.12);white-space:nowrap;direction:rtl}
.own .ot{position:absolute;left:7cqw;right:9cqw;bottom:10cqh;display:flex;flex-direction:column;gap:3cqh}
.own .ot b{font:500 max(12px,11.5cqh)/1.12 var(--serif);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;unicode-bidi:plaintext}
.own .ot i{font-style:normal;font-size:max(10px,6.5cqh);color:rgba(245,239,226,.8);display:flex;align-items:center;gap:6px}
.own .ot i:before{content:"";width:2px;height:1em;background:#e3b865}

/* ---------- top bar on phones: search lives here now ---------- */
.topbar .tb-r{display:flex;gap:4px;align-items:center}
.tabbar{grid-template-columns:repeat(5,1fr)!important}
.tabbar.six{grid-template-columns:repeat(6,1fr)!important}

/* ---------- home (v76) ---------- */
.hm-date{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:2px 0 18px;color:var(--muted);font-size:14px}
.hm-date .heb{font-size:17px;color:var(--text)}
.hm-date .day{color:var(--goldText);font-weight:500}
.carry{display:flex;gap:16px;align-items:center;padding:12px;border-radius:16px;background:var(--card);border:1px solid var(--line);margin-bottom:28px;max-width:720px}
.carry .ct{position:relative;width:168px;flex:none;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--card2)}
.carry .ct img{width:100%;height:100%;object-fit:cover}
.carry .ct > i{position:absolute;left:0;bottom:0;height:3px;background:var(--gold)}
.carry .cx{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.carry .cx small{color:var(--goldText);font-size:12.5px;font-weight:600}
.carry .cx b{font:500 19px/1.2 var(--serif);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;unicode-bidi:plaintext}
.carry .cx span{color:var(--muted);font-size:13.5px}
.carry .cp{width:52px;height:52px;border-radius:50%;background:var(--gold);color:var(--goldInk);display:grid;place-items:center;flex:none}
.carry .cp svg{width:20px;height:20px}
.fits{margin-bottom:30px;max-width:720px}
.fits h2{font:500 21px var(--serif);margin-bottom:10px}
.fits .tbar{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;border-radius:12px;background:var(--card);border:1px solid var(--line)}
.fits .tbar a{display:grid;place-items:center;height:38px;border-radius:9px;font-size:14px;font-weight:500;color:var(--text)}
.fits .tbar a:hover{background:var(--card2)}
.fits .moods{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:6px}
.fits .moods a{display:grid;place-items:center;height:38px;border-radius:10px;border:1px solid var(--line);font-size:13.5px;font-weight:500;color:var(--muted)}
.fits .moods a:hover{color:var(--text);background:var(--card)}
.wk2 .tabs{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--card);border:1px solid var(--line);margin-bottom:12px;max-width:720px}
.wk2 .tabs button{flex:1;min-height:46px;border-radius:9px;font-size:13.5px;font-weight:500;color:var(--muted);line-height:1.25;padding:4px 6px}
.wk2 .tabs button small{display:block;font-size:11.5px;font-weight:500}
.wk2 .tabs button.on{background:var(--card2);color:var(--text)}
.wk2 .tabs button.on small{color:var(--goldText)}
.lrows{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:6px 28px}
.lrow{display:flex;gap:14px;align-items:center;padding:7px 0;min-width:0}
.lrow .lt{position:relative;width:112px;flex:none;aspect-ratio:16/9;border-radius:9px;overflow:hidden;background:var(--card2)}
.lrow .lt img{width:100%;height:100%;object-fit:cover}
.lrow .lx{min-width:0}
.lrow .lx b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;font-weight:500;line-height:1.3;unicode-bidi:plaintext}
.lrow .lx small{display:block;color:var(--muted);font-size:13px;margin-top:3px;line-height:1.4;overflow-wrap:anywhere} /* v80: wraps instead of cutting off the date (Yehuda, 29 Nov 2026) */
.wk2 .all{display:inline-block;margin-top:8px}
.myspk{display:flex;gap:16px;overflow-x:auto;scrollbar-width:none;padding:4px 2px}
.myspk::-webkit-scrollbar{display:none}
.myspk a{display:flex;flex-direction:column;align-items:center;gap:7px;width:70px;flex:none;font-size:12px;text-align:center;line-height:1.25;color:var(--text)}
.myspk .ring{border-radius:50%;padding:3px;box-shadow:0 0 0 1px var(--line)}
.myspk .ring.new{box-shadow:0 0 0 2px var(--gold)}
.myspk .more{width:62px;height:62px;border-radius:50%;border:1px dashed var(--line);display:grid;place-items:center;color:var(--muted)}
.welcome2{padding:22px;border-radius:16px;background:var(--card);border:1px solid var(--line);margin-bottom:24px;max-width:720px}
.welcome2 h1{font:500 30px/1.12 var(--serif);margin:0 0 8px}
.welcome2 p{color:var(--muted);margin:0 0 14px;line-height:1.5}
.friday{position:relative;overflow:hidden;padding:22px;border-radius:18px;background:#1b2340;color:#f3eee3;margin-bottom:26px;max-width:720px}
.friday .big{position:absolute;right:-6px;top:-30px;font:400 150px/1 var(--heb);color:rgba(241,207,138,.08)}
.friday small{color:#e3b865;font-weight:600;font-size:12.5px}
.friday .heb{font-size:22px;display:block;margin-top:10px;text-align:left}
.friday h2{font:500 25px/1.15 var(--serif);margin-top:2px}
.friday .when{display:inline-flex;gap:8px;align-items:center;margin-top:14px;font-size:14px;background:rgba(255,255,255,.08);border-radius:10px;padding:8px 12px}
.friday .when svg{width:18px;height:18px}
@media(max-width:860px){
  .carry .ct{width:118px}
  .carry .cx b{font-size:17px}
  .lrows{grid-template-columns:1fr}
  .lrow .lt{width:104px}
  .sec-h h2{font-size:23px}
}
@media(max-width:380px){.fits .moods a,.fits .tbar a{font-size:12.5px}}

@media(min-width:1180px){.hm-top{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:start;margin-bottom:30px}.hm-top .carry,.hm-top .fits{margin-bottom:0;max-width:none}.hm-top .carry + .see{margin:10px 0 0!important}}
.ls-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
@media(max-width:860px){.ls-tiles .tile{padding:14px 12px;min-height:0}.ls-tiles .tile small{display:none}.ls-tiles .tile b{font-size:13.5px;line-height:1.25}}
.me-links{margin:-6px 0 16px}
/* v76: the shiur page's actions as one calm row of icons with short words */
.acts2{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:4px!important;margin-top:14px}
.acts2 .btn{flex-direction:column;justify-content:center;height:auto;min-height:64px;padding:8px 4px;gap:6px;border:0!important;background:transparent!important;color:var(--muted);font-size:12px;font-weight:500;text-align:center;line-height:1.2;box-shadow:none!important}
.acts2 .btn svg{width:22px;height:22px}
.acts2 .btn:hover{color:var(--text);background:var(--card)!important}
.acts2 .btn.on{color:var(--goldText)}
.acts2 .btn.dim{opacity:.6}
.pbody h2{font-weight:500}
/* v76: the welcome walkthrough, calmer */
.ob-card{background:var(--bg)}
.ob-dots{flex:1;margin-right:16px}
.ob-dots i{flex:1;width:auto}
.ob-body h2{font-weight:500}
.ob-tour{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ob-tour li{flex-direction:column;gap:6px;padding:12px 14px;border-radius:14px}
.ob-tour .ic{width:auto;height:auto;background:none;justify-content:start}
.ob-tour p{font-size:13px;line-height:1.4}
.ob-mark.done{background:var(--gold)}
#onboard .chip.ob-chip.on,.ob-chip.on{background:var(--text);color:var(--bg);border-color:var(--text)}
.ob-lang,.ob-women .ob-lang{border-radius:14px}
.ob-lang.on{background:var(--card2);border-width:1.5px}
.ob-foot .btn.gold{flex:1;justify-content:center;max-width:420px;margin-left:auto}
.ob-plan li{border-radius:14px}
@media(max-width:400px){.ob-tour{grid-template-columns:1fr}}
/* v76: Car mode, flat and big */
.car-ctrls .pp{background:var(--gold)}
.car-list button{border-radius:16px}
.car-hd{font:500 20px var(--serif);margin:26px 0 10px;color:var(--muted)}
.car-big{display:block;width:100%;text-align:left;padding:22px;border-radius:20px;background:#1e4a4a;color:#f3eee3;margin-bottom:18px}
.car-big small{display:block;color:#f1cf8a;font-weight:600;font-size:15px}
.car-big b{display:block;font:500 28px/1.15 var(--serif);margin-top:8px}
.car-big span{display:block;font-size:17px;opacity:.8;margin-top:6px}
/* v76: a mashpia's series as covers (the playlist's own picture, else Ohr Pnimi's cover) */
.sr-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,230px);gap:16px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.sr-strip::-webkit-scrollbar{display:none}
.sr-cov{display:flex;flex-direction:column;gap:7px;min-width:0}
.sr-cov .sc{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--card2)}
.sr-cov .sc img{width:100%;height:100%;object-fit:cover}
.sr-cov b{font-size:14.5px;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;unicode-bidi:plaintext}
.sr-cov small{color:var(--muted);font-size:12.5px}
@media(max-width:860px){.sr-strip{grid-auto-columns:minmax(160px,180px)}}
/* v76: the mashpia's name stays readable in a card's line, the rest gives way */
.card .meta .nm{min-width:4.5em;flex:0 1 auto}
.card .meta .when{overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
/* v76: the gold button is flat gold, no gradient or glow */
.btn.gold{background:var(--gold);box-shadow:none}
.btn.gold:hover{transform:none;box-shadow:none;filter:brightness(1.05)}
.ctrls .pp,.ctrls .pp:hover,.np .big .pp{background:var(--gold);box-shadow:none}
body.car-on .backbtn{display:none}
/* v76: Explore's ways in, two to a row on phones so the page is shorter */
@media(max-width:860px){
  .tiles.guides{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tiles.guides .tile{padding:14px;min-height:0;gap:4px}
  .tiles.guides .tile svg{display:none}
  .tiles.guides .tile b{font-size:14.5px;line-height:1.25}
  .tiles.guides .tile small{font-size:12px;line-height:1.35}
}
.seg button.on,.tp-tabs .chip.on{background:var(--text);color:var(--bg);border-color:var(--text)}
.np .big .pp:hover,.ep-tick.on{background:var(--gold)}
/* v77: Coming up on the This week page, and room for more tabs on the home page */
.cu-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:6px 24px}
.cu-row{display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--card);min-width:0}
.cu-row:hover{background:var(--card2)}
.cu-d{display:flex;flex-direction:column;align-items:center;width:52px;flex:none;line-height:1.15}
.cu-d b{font:500 16px var(--serif)}
.cu-d small,.cu-n small{color:var(--muted);font-size:12px}
.cu-n{flex:1;min-width:0;display:flex;flex-direction:column}
.cu-n b{font-size:14.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cu-h{color:var(--goldText);font-size:16px;flex:none;max-width:40%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk2 .tabs{overflow-x:auto;scrollbar-width:none}
.wk2 .tabs::-webkit-scrollbar{display:none}
.wk2 .tabs button{flex:1 0 auto;min-width:92px}

/* ===== v78 admin (Yehuda, 29 Nov 2026: "super easy and user friendly"), in the v76 look ===== */
.adm-tabs a{position:relative}
.abadge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:7px;border-radius:10px;background:var(--gold);color:var(--goldInk);font-size:11.5px;font-weight:700;vertical-align:1px}
.adm-sub{margin:-6px 0 18px}
.adm-skel{display:flex;flex-direction:column;gap:10px}.adm-skel i{display:block;height:74px;border-radius:12px;background:var(--card);animation:shimmer 1.4s ease-in-out infinite}
.nd-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:26px}
.nd-tile{display:flex;flex-direction:column;gap:2px;padding:18px 18px 16px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--text);text-decoration:none;transition:border-color .15s}
.nd-tile b{font-family:var(--serif);font-size:38px;font-weight:600;line-height:1.05;color:var(--muted)}
.nd-tile.has b{color:var(--gold)}
.nd-tile span{font-size:15px;font-weight:600}
.nd-tile small{color:var(--muted);font-size:13px;margin-top:6px}
.nd-tile.has:hover{border-color:var(--gold)}
.nd-tile .mt-l{font-family:var(--serif);font-size:22px}
.nd-done{display:flex;gap:14px;align-items:center;padding:18px;border-radius:12px;border:1px solid var(--line);background:var(--card);margin-bottom:26px}
.nd-done svg{width:28px;height:28px;color:var(--gold);flex:none}.nd-done b{display:block;font-size:16px}.nd-done span{color:var(--muted);font-size:14px}
.adm-row.ar2{align-items:flex-start;padding:14px;border-radius:12px;transition:opacity .25s,transform .25s}
.adm-row.ar2 > .av{flex:none}
.adm-row.gone{opacity:0;transform:translateX(12px)}
.adm-t{font-size:15.5px;line-height:1.4;unicode-bidi:plaintext;text-align:start;overflow-wrap:anywhere}
.adm-t .heb{font-family:var(--heb);font-weight:500;color:var(--muted);margin-left:6px}
.adm-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}
.adm-acts .btn svg{width:16px;height:16px}
.ast{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:8px;font-size:12.5px;font-weight:600;background:var(--card2);color:var(--muted);margin-right:2px}
.ast-live,.ast-approved,.ast-active{color:#7fc48a;background:rgba(127,196,138,.12)}
.ast-review,.ast-pending{color:var(--goldText);background:rgba(232,182,90,.14)}
.ast-hidden,.ast-paused{color:#e08a7c;background:rgba(224,138,124,.12)}
.adm-det{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px 14px;margin-top:10px;padding:14px;border-radius:10px;background:var(--bg2);border:1px solid var(--line)}
.adm-det[hidden]{display:none}
.af{display:flex;flex-direction:column;gap:5px;min-width:0}.af.wide{grid-column:1/-1}
.af > span{font-size:12.5px;font-weight:600;color:var(--muted)}
.af input,.af select,.af textarea{width:100%}
.af-note{grid-column:1/-1;font-size:12.5px;margin:0}
.adm-find{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.adm-find .chips{margin:0}
.adm-list .adm-row[hidden]{display:none}
.kp2{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.kp2 b{font-size:26px}
.st-share{display:grid;grid-template-columns:minmax(0,340px) 1fr;gap:22px;align-items:start}
.st-pic{border-radius:12px;overflow:hidden;border:1px solid var(--line);aspect-ratio:4/5;background:var(--card)}
.st-pic img{width:100%;height:100%;display:block}
.st-btns{display:flex;flex-direction:column;gap:10px;align-items:stretch;max-width:300px}
.st-btns .btn{justify-content:center}
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:860px){
  .st-share{grid-template-columns:1fr}.st-pic{max-width:360px}.st-btns{max-width:none}
  .adm-row.ar2{flex-direction:row}
  .adm-row.ar2 > img,.adm-row.ar2 .ph-img{width:96px}
  .adm-det{grid-template-columns:1fr}
  .nd-tiles{grid-template-columns:1fr}
  .nd-tile{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 10px}.nd-tile b{font-size:30px}.nd-tile small{flex-basis:100%;margin-top:0}
}
@media(max-width:480px){.adm-row.ar2 > img,.adm-row.ar2 .ph-img{width:76px}}
/* the admin's input rule (height 40, small padding) also caught the search boxes, so their icon sat on the text */
.adm .search{margin-bottom:0}
.adm .search input{height:50px;padding:0 16px 0 48px;font-size:16px;border-radius:12px}
.adm .search svg{left:17px;width:19px;height:19px}

/* v81: the date on its own line under the mashpia, on every card and row (Yehuda, 30 Nov 2026) */
.card .meta.when2{margin-top:-6px;white-space:normal}
.card .meta.when2 .when{overflow:visible;text-overflow:clip;white-space:normal;flex:none}
.lrow .lx small.lw{margin-top:1px;color:var(--faint)}

/* v81: the thin card at the top of home: the date, then one line that turns (Yehuda, 30 Nov 2026) */
.hcard{margin:2px 0 20px;padding:11px 15px 10px;border-radius:16px;border:1px solid var(--line);background:linear-gradient(120deg,rgba(232,182,90,.13),rgba(232,182,90,.03) 55%,transparent),var(--card)}
.hc-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;font-size:13.5px;color:var(--muted)}
.hc-top .hc-en{min-width:0}
.hc-top .hc-he{font-family:var(--heb);font-size:17px;color:var(--text);white-space:nowrap}
.hc-tick{display:flex;align-items:center;gap:10px;margin-top:7px;padding-top:8px;border-top:1px solid var(--line);color:var(--text);min-height:24px;transition:opacity .22s,transform .22s}
.hc-tick.out{opacity:0;transform:translateY(4px)}
.hc-lbl{flex:none;display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--goldText)}
.hc-lbl i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.18);animation:hcPulse 2s ease-in-out infinite}
@keyframes hcPulse{50%{opacity:.45}}
.hc-txt{flex:1;min-width:0;font-size:14.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-txt .heb{font-family:var(--heb);font-size:15px;color:var(--muted);font-weight:400;margin-left:4px}
.hc-dots{flex:none;display:flex;gap:4px}
.hc-dots b{width:5px;height:5px;border-radius:50%;background:var(--line);background:rgba(160,160,170,.35)}
.hc-dots b.on{background:var(--gold)}
@media (max-width:420px){ .hc-dots{display:none} .hc-top{font-size:12.5px} }
@media (prefers-reduced-motion:reduce){ .hc-tick{transition:none} .hc-lbl i{animation:none} }

/* v81: Featured mashpia on home */
.feat-m{margin:0 0 6px}
.fm-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 -6px;padding:14px 16px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.fm-who{display:flex;align-items:center;gap:14px;min-width:0;color:inherit}
.fm-who > span:last-child{display:flex;flex-direction:column;min-width:0}
.fm-who small{font-size:10.5px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--goldText)}
.fm-who b{font-family:var(--serif);font-size:20px;font-weight:600;line-height:1.2}
.fm-who em{font-style:normal;font-size:13px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fm-head .btn{flex:none}
@media (max-width:520px){ .fm-head{flex-wrap:wrap} .fm-head .btn{width:100%;justify-content:center} }

/* v81: Who teaches it, on a Yom Tov or parsha page */
.who-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}
.who-chip{flex:none;display:inline-flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text);font:inherit;font-size:13.5px;cursor:pointer}
.who-chip small{color:var(--faint);font-size:12px}
.who-chip.on{border-color:var(--gold);background:rgba(232,182,90,.14)}
.who-strip .sortseg{margin-top:10px}
.hc-tick[hidden]{display:none}
.hc-stats{display:flex;align-items:center;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.hc-stats:empty{display:none}
.hc-stats .hs-live{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--goldText);padding-right:12px}
.hc-stats .hs-live i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.18);animation:hcPulse 2s ease-in-out infinite}
.hc-stats a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;border-left:1px solid var(--line);color:inherit;min-width:0}
.hc-stats b{font-family:var(--serif);font-weight:600;font-size:19px;line-height:1.1;color:var(--gold2);font-variant-numeric:tabular-nums}
[data-theme=light] .hc-stats b{color:var(--goldText)}
.hc-stats a span{font-size:10.5px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.hc-stats{transition:opacity .22s}
.hc-stats.out{opacity:0}
.hc-stats a{padding:0 4px}
.hc-stats a span{font-size:9.5px;letter-spacing:.8px}

/* v82 (Yehuda, 30 Nov 2026: the stat labels overlapped on a phone, "no good, cant happen!", and "the middle line ... should be centered").
   Labels in sentence case (design rule: no spaced-out capitals), allowed to wrap inside their own column; middle line centred. */
.hc-stats{align-items:stretch}
.hc-stats .hs-live{align-self:center;flex:none;text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:600;padding-right:10px}
.hc-stats a{padding:0 6px;justify-content:flex-start;gap:3px}
.hc-stats a span{font-size:11.5px;font-weight:500;letter-spacing:0;text-transform:none;white-space:normal;text-align:center;line-height:1.2;max-width:100%;overflow-wrap:break-word}
.hc-lbl{text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:600}
.hc-tick{justify-content:center;text-align:center}
.hc-txt{flex:0 1 auto}
@media (max-width:360px){ .hc-stats b{font-size:17px} .hc-stats a{padding:0 4px} .hc-stats a span{font-size:11px} }
/* v82 bug check: at 320 wide "117,316" spilled out of its column. Equal columns that may shrink, and a smaller number on small phones */
.hc-stats a{flex:1 1 0}
.hc-stats b{max-width:100%;white-space:nowrap}
@media (max-width:360px){ .hc-stats b{font-size:15.5px} .hc-stats a{padding:0 2px} .hc-stats .hs-live{padding-right:6px;font-size:11.5px} }

/* v83 (Yehuda, 30 Nov 2026: "there needs to be a gap between see all and the featured", and the mashpia and his shiurim
   "should be one section"): one card holding the mashpia and the row of his shiurim, with the usual space above it */
.feat-m{margin:44px 0 0;padding:18px 18px 10px;border-radius:18px;background:var(--card);border:1px solid var(--line);overflow:hidden}
.feat-m .fm-head{margin:0;padding:0;background:none;border:0;border-radius:0}
.feat-m .sec{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.feat-m .sec-h{margin-bottom:12px}
.feat-m .sec-h h2{font-size:19px}
.feat-m .rail{margin:0 -18px;padding:0 18px 6px;scroll-padding:0 18px}
@media (max-width:860px){
  .feat-m{margin-top:36px;padding:16px 16px 8px}
  .feat-m .rail{margin:0 -16px;padding:0 16px 6px;scroll-padding:0 16px}
}

/* v83 (Yehuda, 30 Nov 2026: "can the gold band go all the way round also, not stop at the top of the card", then "the gold
   should not go round the name of the mashpiia and the info. just all the way round the card"): the gold line goes round the
   picture only, drawn just inside its edge, so the top of a row can no longer cut its top side off */
.card.x .thumb{box-shadow:none}
.card.x .thumb::after{content:'';position:absolute;inset:0;border:1.5px solid #d8a94f;border-radius:inherit;pointer-events:none;z-index:3}
/* v83 bug check: in the phone list the date line (v81) fell under the picture; it belongs under the mashpia's name */
@media(max-width:600px){
  .grid:not(.shorts) .card{grid-template-rows:auto auto 1fr}
  .grid:not(.shorts) .card .thumb{grid-row:1 / 4}
  .grid:not(.shorts) .card .meta.when2{grid-column:2;margin-top:-2px}
}

/* v85: the finished tick and how far through, in This week rows and Up next (Yehuda: "anything watched wherever it is needs a tick") */
.lrow .lt .done-tick,.mini-card .thumb .done-tick{right:5px;top:5px;width:20px;height:20px}
.lrow .lt .done-tick svg,.mini-card .thumb .done-tick svg{width:12px;height:12px}
.lrow .lt .prog,.mini-card .thumb .prog{height:3px}

/* v86: Ohr Pnimi's own cover in the players too (Yehuda, 30 Nov 2026: the player still showed the old alef).
   In the small square of the mini player there is no room for the title: just the colour and his Hebrew name. */
.mini .art .own .ot{display:none}
.mini .art .own .oh{inset:0;display:grid;place-items:center;padding:3px;white-space:normal;text-align:center;font-size:30cqh;line-height:1.05;color:rgba(245,239,226,.6)}
.np-art .own,.series-art .own,.upto-art .own{text-align:left}
/* v89: the banner's counter when a day has many items (yahrzeits), and a yahrzeit line that is not a link */
.hc-dots small{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.hc-tick:not([href]){cursor:default}
/* v90: a long name in the banner wraps onto more lines instead of being cut off (views.js hcFit keeps the height steady) */
.hc-txt{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-wrap:balance;line-height:1.3}
.hc-txt .heb{display:inline-block;max-width:100%;white-space:normal}
/* v90 (Yehuda: "also centre it all. the header. the dates also. english alphabet on one line and hebrew on the other") */
.hc-top{flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;text-align:center;gap:2px}
.hc-top .hc-en{text-wrap:balance}
/* v90 (Yehuda: "the this week with the yartzheit if it is a really long name it takes up too much space and fills up the whole iphone"): a tab's name keeps to two lines and a tab to a set width; the row slides sideways as before */
.wk2 .tabs button{max-width:150px;min-width:0;flex:1 1 92px}
.wk2 .tabs button .wn{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.wk2 .tabs button small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* v90: on a phone the banner's label sits on its own line above the name, both centred, so the name has the full width */
@media (max-width:560px){ .hc-tick{flex-direction:column;gap:1px} .hc-txt{max-width:100%} }
/* v90: the Carry on card's remove button, on the corner of its picture as on the cards */
.carry{position:relative}
.carry .forget{left:18px;top:18px}
/* v90, third upload (Yehuda, 30 Nov 2026, iPhone screenshot: "the screen now moves to the left and has a huge blue side"): the home This week
   link "See all for <a long yahrzeit name>" did not wrap, so it was wider than the phone and the whole page slid sideways.
   It wraps now. */
.wk2 .all,.see{white-space:normal;max-width:100%;overflow-wrap:anywhere}
/* (fourth upload: a rule here that clipped html and body sideways was taken out again the same evening. On the iPhone it drew a white line down the right edge while scrolling. Page-level scrolling stays exactly as base.css has it; do not put overflow rules on html.) */
/* v90, fifth upload (Yehuda, iPhone screenshots: "white line on the right is still there"): the line is the phone's own scroll bar,
   which shows light on a dark page while scrolling. On touch screens the page's scroll bar is hidden; a computer keeps its own. */
@media (hover:none) and (pointer:coarse){
  html{scrollbar-width:none}
  html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0;height:0}
}

/* v91 (1 Dec 2026): articles (Substack and the like) read as text in Ohr Pnimi's own reader. Size follows the − and + buttons (--az). */
.rd-pages.rd-art{display:block;--az:1}
.rd-article{max-width:680px;margin:0 auto;padding:6px 20px 32px;font-family:var(--serif);font-size:calc(1.12rem * var(--az,1));line-height:1.72;color:var(--text);overflow-wrap:break-word}
.rd-article h1{font-size:1.7em;line-height:1.2;margin:.2em 0 .9em;font-weight:600}
.rd-article h2,.rd-article h3,.rd-article h4,.rd-article h5,.rd-article h6{line-height:1.3;margin:1.6em 0 .5em;font-weight:600}
.rd-article h2{font-size:1.35em}.rd-article h3{font-size:1.18em}.rd-article h4,.rd-article h5,.rd-article h6{font-size:1.05em}
.rd-article p{margin:0 0 1.1em}
.rd-article blockquote{margin:1.3em 0;padding:.1em 0 .1em 1em;border-left:3px solid var(--faint);color:var(--muted);font-style:italic}
.rd-article img{display:block;max-width:100%;height:auto;margin:1.2em auto;border-radius:10px}
.rd-article figure{margin:1.4em 0}
.rd-article figcaption{font-family:var(--sans);font-size:.8em;color:var(--muted);text-align:center;margin-top:-.5em}
.rd-article ul,.rd-article ol{padding-left:1.3em;margin:0 0 1.1em}.rd-article li{margin:.3em 0}
.rd-article hr{border:0;border-top:1px solid var(--line);margin:2em auto;width:40%}
.rd-article pre{white-space:pre-wrap;font-size:.85em}
.rd-article table{border-collapse:collapse;max-width:100%;display:block;overflow-x:auto;font-size:.9em}
.rd-article td,.rd-article th{border:1px solid var(--line);padding:6px 8px}
@media (max-width:600px){.rd-article{padding:4px 14px 28px;font-size:calc(1.06rem * var(--az,1))}.rd-article h1{font-size:1.5em}}
.rd-article .he{font-family:var(--heb);text-align:right;font-style:normal}
.rd-article blockquote.he{border-left:0;border-right:3px solid var(--faint);padding:.1em 1em .1em 0}

/* v92: the app froze while scrolling a mashpia page with the small video playing (1 Dec 2026). Every duration and "Exclusive"
   label on a picture had its own blur, so a page of shiurim had 25 or more blurs to work out again on every frame of a scroll,
   over a playing video; on iPhones that can lock the whole page (WebKit bug 249314). The labels are almost solid already,
   so they are flat now and look the same. While a video is open or playing small, the top and bottom bars are flat too. */
.dur,.badge,.rd-pg,.btn.ghost{backdrop-filter:none;-webkit-backdrop-filter:none}
.dur{background:rgba(8,10,18,.86)}
.badge{background:rgba(10,14,26,.84)}
body.vmini .topbar,body:has(#overlay.open) .topbar,
body.vmini .tabbar,body:has(#overlay.open) .tabbar{backdrop-filter:none;-webkit-backdrop-filter:none}
body.vmini .topbar,body:has(#overlay.open) .topbar{background:rgb(10,14,26)}
body.vmini .tabbar,body:has(#overlay.open) .tabbar{background:rgb(10,14,26)}
[data-theme="light"] body.vmini .topbar,[data-theme="light"] body:has(#overlay.open) .topbar{background:rgb(248,243,232)}
[data-theme="light"] body.vmini .tabbar,[data-theme="light"] body:has(#overlay.open) .tabbar{background:rgb(248,243,232)}
/* v97: Most listened, top 5 on the home page (views.js topBlock) */
.top5 .tp-tabs{margin-bottom:10px}
.top-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:4px 28px;transition:opacity .2s}
.top-list.loading{opacity:.45}
.top-list .lrow{gap:12px}
.top-n{flex:none;width:26px;text-align:center;font-family:var(--serif,Georgia,serif);font-size:30px;line-height:1;font-weight:600;color:var(--goldText);font-variant-numeric:lining-nums}
@media (max-width:560px){ .top-list{grid-template-columns:1fr} .top-list .lrow .lt{width:96px} .top-n{width:20px;font-size:26px} }
/* v98: on a computer the YouTube video went blurry, jumpy and fell behind the sound after about 38 minutes at 1.25x
   (3 Dec 2026, R' Klein's live Likutei Moharan). The video page still had a full-screen blur behind it on wide screens,
   and the two round buttons sitting on the video had their own blur, so the browser re-blurred around and over the video
   on every frame, on top of decoding it (v58 removed the same blur on phones only). Now: no blur anywhere while the big
   video page is open, a plain dim behind it, and the page underneath is not drawn while it is covered. */
@media(min-width:861px){
  .overlay{background:rgba(5,7,14,.9);backdrop-filter:none;-webkit-backdrop-filter:none}
  .overlay .close{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(0,0,0,.62)}
  body:has(#overlay.open:not(.mini-mode)) #view{visibility:hidden}
}
