/* Shul Media — recordings library, "Just added" strip and sticky player (v1.178.0). */
.shul-mp, .shul-mpbar {
	--mp-navy: #0b2a4f; --mp-navy2: #123a68; --mp-gold: #c8962e; --mp-goldtx: #7a560c;
	--mp-ink: #1b2430; --mp-mute: #5b6676; --mp-line: #e3e6ec; --mp-paper: #faf8f3; --mp-card: #fff;
	font-family: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--mp-ink);
	box-sizing: border-box;
}
.shul-mp *, .shul-mpbar * { box-sizing: border-box; }
.shul-mp svg, .shul-mpbar svg { width: 1em; height: 1em; fill: currentColor; display: block; }
.shul-mp .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Library ---------- */
.shul-mp-lib { background: var(--mp-paper); }
.shul-mp-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.shul-mp-hero { background: linear-gradient(160deg, var(--mp-navy) 0%, var(--mp-navy2) 100%); color: #fff; padding: 56px 0 48px; }
.shul-mp-hero h1 { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 4px 0 12px; color: #fff; }
.shul-mp-hero p { max-width: 640px; margin: 0; color: #d7e0ee; font-size: 18px; }
.shul-mp-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px !important; color: var(--mp-gold) !important; font-weight: 700; }
.shul-mp-body { padding-top: 32px; padding-bottom: 56px; }
.shul-mp-h2, .shul-mp-recent h2 { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 26px; margin: 0 0 16px; color: var(--mp-navy); }
.shul-mp-empty { font-size: 18px; color: var(--mp-mute); }

.shul-mp-teachers { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; scrollbar-width: thin; }
.shul-mp-teacher { flex: 0 0 auto; width: 120px; background: none; border: 0; padding: 6px; border-radius: 14px; cursor: pointer; text-align: center; color: inherit; font: inherit; }
.shul-mp-teacher:hover, .shul-mp-teacher:focus-visible { background: #fff; }
.shul-mp-teacher.is-on { background: #fff; box-shadow: 0 0 0 2px var(--mp-gold); }
.shul-mp-face { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; background: var(--mp-navy); color: var(--mp-gold); font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 28px; font-weight: 700; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11,42,79,.15); }
.shul-mp-face img { width: 100%; height: 100%; object-fit: cover; }
.shul-mp-tname { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; }
.shul-mp-tcount { display: block; font-size: 13px; color: var(--mp-mute); margin-top: 2px; }

.shul-mp-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.shul-mp-search { flex: 1 1 260px; }
.shul-mp-search input { width: 100%; height: 44px; border: 1px solid var(--mp-line); border-radius: 999px; padding: 0 18px; font: inherit; font-size: 16px; background: #fff; color: var(--mp-ink); }
.shul-mp-search input:focus { outline: 2px solid var(--mp-gold); outline-offset: 1px; }
.shul-mp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shul-mp-chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.shul-mp-chip:hover { border-color: var(--mp-gold); }
.shul-mp-chip.is-on { background: var(--mp-navy); border-color: var(--mp-navy); color: #fff; }
.shul-mp-count { color: var(--mp-mute); font-size: 14px; margin: 8px 0 10px; }

.shul-mp-list { list-style: none; margin: 0; padding: 0; background: var(--mp-card); border: 1px solid var(--mp-line); border-radius: 16px; overflow: hidden; }
.shul-mp-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--mp-line); margin: 0; }
.shul-mp-row:first-child { border-top: 0; }
.shul-mp-row[hidden] { display: none; }
.shul-mp-cover { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--mp-navy); color: var(--mp-gold); font-weight: 700; font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 18px; }
.shul-mp-cover img { width: 100%; height: 100%; object-fit: cover; }
.shul-mp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shul-mp-title { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--mp-navy) !important; text-decoration: none; overflow-wrap: anywhere; }
.shul-mp a.shul-mp-title { text-decoration: none !important; }
.shul-mp a.shul-mp-title:hover { text-decoration: underline !important; }
.shul-mp-sub { font-size: 14px; color: var(--mp-mute); }
.shul-mp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.shul-mp-tag { font-size: 12px; font-weight: 600; color: var(--mp-goldtx); background: #f6eedc; border-radius: 999px; padding: 2px 9px; }
.shul-mp-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--mp-navy); background: #e8eef7; border-radius: 999px; padding: 4px 10px; }

.shul-mp-play { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--mp-gold); color: var(--mp-navy); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 22px; padding: 0; transition: transform .12s ease, background .12s ease; }
.shul-mp-play:hover { transform: scale(1.06); background: #d6a43c; }
.shul-mp-play:focus-visible { outline: 3px solid var(--mp-navy); outline-offset: 2px; }
.shul-mp-play.is-on { background: var(--mp-navy); color: var(--mp-gold); }
.shul-mp-play span { font-size: 17px; font-weight: 700; }
.shul-mp-none { color: var(--mp-mute); padding: 18px 0; }
.shul-mp-morewrap { text-align: center; margin: 22px 0 0; }
.shul-mp-more { height: 44px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--mp-navy); background: transparent; color: var(--mp-navy); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.shul-mp-more:hover { background: var(--mp-navy); color: #fff; }

/* ---------- "Just added" strip ---------- */
.shul-mp-recent { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.shul-mp-recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shul-mp-recent-head a { color: var(--mp-goldtx); font-weight: 700; text-decoration: none; }
.shul-mp-recent-head a:hover { text-decoration: underline; }
.shul-mp-cards { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shul-mp-card { position: relative; scroll-snap-align: start; background: var(--mp-card); border: 1px solid var(--mp-line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.shul-mp-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; width: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--mp-navy), var(--mp-navy2)); color: var(--mp-gold); font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 44px; font-weight: 700; margin-bottom: 6px; }
.shul-mp-art img { width: 100%; height: 100%; object-fit: cover; }
.shul-mp-card > .shul-mp-play { position: absolute; right: 22px; top: 22px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.shul-mp-card > .shul-mp-badge { position: absolute; left: 22px; top: 22px; }
.shul-mp-card .shul-mp-title { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* No photo yet: the rabbi's name as typed (e.g. "Rabbi Saadon"), never initials. */
.shul-mp-face.is-name, .shul-mp-art.is-name { text-align: center; line-height: 1.15; padding: 10px; }
.shul-mp-face.is-name { font-size: 14px; }
.shul-mp-art.is-name { font-size: 26px; padding: 18px; }
.shul-mp-single .shul-mp-art.is-name { font-size: 18px; }
.shul-mp-face.is-name > span, .shul-mp-art.is-name > span { display: block; overflow-wrap: anywhere; }

/* ---------- A recording's own page ---------- */
.shul-mp-single { display: flex; gap: 20px; align-items: center; margin: 0 0 24px; padding: 16px; background: var(--mp-paper); border: 1px solid var(--mp-line); border-radius: 16px; }
.shul-mp-single .shul-mp-art { width: 120px; flex: 0 0 120px; margin: 0; font-size: 36px; }
.shul-mp-single .shul-mp-play { width: auto; height: 50px; padding: 0 24px 0 18px; border-radius: 999px; margin-top: 8px; }

/* ---------- Sticky player ---------- */
html.shul-mp-open body { padding-bottom: 84px; }
.shul-mpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; background: var(--mp-navy); color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.25); border-top: 3px solid var(--mp-gold); }
.shul-mpbar-row { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px; min-height: 72px; }
.shul-mpbar-art { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--mp-navy2); color: var(--mp-gold); display: flex; align-items: center; justify-content: center; font-size: 22px; text-decoration: none; }
.shul-mpbar-art img { width: 100%; height: 100%; object-fit: cover; }
.shul-mpbar-meta { flex: 0 1 240px; min-width: 0; display: flex; flex-direction: column; }
.shul-mpbar-title { color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shul-mpbar-title:hover { text-decoration: underline; }
.shul-mpbar-rabbi { color: #c5d1e3; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shul-mpbar-ctl, .shul-mpbar-extra { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.shul-mpbar-b { position: relative; height: 40px; min-width: 40px; border: 0; border-radius: 999px; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-weight: 700; font-size: 20px; padding: 0 8px; text-decoration: none; }
.shul-mpbar-b:hover { background: rgba(255,255,255,.1); color: #fff; }
.shul-mpbar-b:focus-visible { outline: 2px solid var(--mp-gold); outline-offset: 1px; }
.shul-mpbar-b[hidden] { display: none; }
.shul-mpbar-back span, .shul-mpbar-fwd span { position: absolute; font-size: 8px; font-weight: 700; top: 50%; left: 50%; transform: translate(-50%, -38%); }
.shul-mpbar-pp { width: 48px; height: 48px; background: var(--mp-gold); color: var(--mp-navy); font-size: 24px; }
.shul-mpbar-pp:hover { background: #d6a43c; color: var(--mp-navy); }
.shul-mpbar-speed { font-size: 14px; min-width: 50px; border: 1px solid rgba(255,255,255,.3); height: 32px; }
.shul-mpbar-vid[aria-pressed="true"] { color: var(--mp-gold); }
.shul-mpbar-qn { position: absolute; top: 2px; right: 0; font-size: 10px; background: var(--mp-gold); color: var(--mp-navy); border-radius: 999px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; }
.shul-mpbar-qn:empty { display: none; }
.shul-mpbar-seek { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; color: #c5d1e3; font-variant-numeric: tabular-nums; }
.shul-mpbar-seek input { flex: 1 1 auto; min-width: 60px; accent-color: var(--mp-gold); height: 20px; margin: 0; background: transparent; }
.shul-mpbar-video { max-width: 1240px; margin: 0 auto; padding: 12px 16px 0; }
.shul-mpbar-video[hidden] { display: none; }
.shul-mpbar-video video { display: block; width: 100%; max-width: 640px; max-height: 48vh; margin: 0 auto; border-radius: 10px; background: #000; }
.shul-mpbar:not(.is-video) .shul-mpbar-video video { display: none; }
.shul-mpbar-queue { max-width: 1240px; margin: 0 auto; padding: 0 16px 12px; max-height: 40vh; overflow-y: auto; }
.shul-mpbar-queue[hidden] { display: none; }
.shul-mpbar-qhead { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.shul-mpbar-clear { background: none; border: 0; color: var(--mp-gold); font: inherit; font-weight: 700; cursor: pointer; }
.shul-mpbar-queue ol { list-style: none; margin: 0; padding: 0; }
.shul-mpbar-qi { width: 100%; text-align: left; background: none; border: 0; color: #fff; font: inherit; padding: 8px 4px; display: flex; flex-direction: column; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.08); }
.shul-mpbar-qi:hover { background: rgba(255,255,255,.06); }
.shul-mpbar-qt { font-weight: 600; }
.shul-mpbar-qr { font-size: 13px; color: #c5d1e3; }
.shul-mpbar-msg { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 8px); margin: 0; background: var(--mp-ink); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.shul-mpbar-msg:empty { display: none; }

@media (max-width: 900px) {
	.shul-mpbar-share, .shul-mpbar-dl { display: none; }
	.shul-mpbar-meta { flex-basis: 180px; }
}
@media (max-width: 699px) {
	html.shul-mp-open body { padding-bottom: 128px; }
	.shul-mpbar-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "art meta ctl" "seek seek extra"; gap: 6px 10px; padding: 8px 12px 10px; }
	.shul-mpbar-art { grid-area: art; width: 40px; height: 40px; }
	.shul-mpbar-meta { grid-area: meta; }
	.shul-mpbar-ctl { grid-area: ctl; }
	.shul-mpbar-seek { grid-area: seek; }
	.shul-mpbar-extra { grid-area: extra; justify-self: end; gap: 0; }
	.shul-mpbar-extra .shul-mpbar-b:not(.shul-mpbar-speed) { min-width: 36px; padding: 0 6px; }
	.shul-mpbar-extra .shul-mpbar-speed { min-width: 44px; }
	.shul-mp-row { gap: 10px; padding: 12px; align-items: flex-start; }
	.shul-mp-row .shul-mp-cover { display: none; }
	.shul-mp-badge { display: none; }
	.shul-mp-card > .shul-mp-badge { display: inline-flex; }
	.shul-mp-hero { padding: 40px 0 32px; }
	.shul-mp-single { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .shul-mp-play { transition: none; } }
@media print { .shul-mpbar { display: none !important; } }

/* ---------- Live (1.1.0) ---------- */
.shul-mpbar.is-live .shul-mpbar-back, .shul-mpbar.is-live .shul-mpbar-fwd, .shul-mpbar.is-live .shul-mpbar-speed,
.shul-mpbar.is-live .shul-mpbar-dl, .shul-mpbar.is-live .shul-mpbar-q, .shul-mpbar.is-live .shul-mpbar-seek input, .shul-mpbar.is-live .shul-mpbar-dur { display: none; }
.shul-mpbar.is-live .shul-mpbar-cur { color: #fff; font-weight: 800; letter-spacing: .1em; background: #c62828; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.shul-mp-livedot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c62828; flex: 0 0 auto; animation: shul-mp-pulse 1.6s infinite; }
@keyframes shul-mp-pulse { 0% { box-shadow: 0 0 0 0 rgba(198,40,40,.55); } 70% { box-shadow: 0 0 0 10px rgba(198,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(198,40,40,0); } }
.shul-mp-livepill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 99991; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); background: var(--mp-navy); color: #fff; border: 2px solid #c62828; border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 15px; }
html.shul-mp-open .shul-mp-livepill { bottom: 96px; }
.shul-mp-pilltext { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shul-mp-pillbtn { flex: 0 0 auto; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--mp-gold); color: var(--mp-navy); font: inherit; font-weight: 800; cursor: pointer; }
.shul-mp-pillx { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #c5d1e3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; padding: 0; }
.shul-mp-livecard { max-width: 640px; background: #fff; border: 1px solid var(--mp-line); border-radius: 16px; padding: 28px; }
.shul-mp-livestate { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--mp-mute); }
.shul-mp-livestate.is-off .shul-mp-livedot { background: #a7aaad; animation: none; }
.shul-mp-livestate.is-on { color: #c62828; }
.shul-mp-livetitle { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 28px; color: var(--mp-navy); margin: 12px 0 4px; }
.shul-mp-livesub { color: var(--mp-mute); margin: 0 0 18px; }
.shul-mp-livebtn { height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: #c62828; color: #fff; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.shul-mp-livebtn:disabled { background: var(--mp-navy); cursor: default; }
.shul-mp-livenote { color: var(--mp-mute); margin: 18px 0 0; }
.shul-mp-livetitle[hidden], .shul-mp-livesub[hidden], .shul-mp-livebtn[hidden], .shul-mp-livenote[hidden] { display: none; }
@media (max-width: 699px) { html.shul-mp-open .shul-mp-livepill { bottom: 136px; } .shul-mp-livecard { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .shul-mp-livedot { animation: none; } }
