/* Musical Mishnayos — vibrant jewel-tone theme */
:root {
  --navy: #1a0840;
  --navy-deep: #11052c;
  --navy-soft: #2c1468;
  --parchment: #fff6e8;
  --parchment-deep: #f3e4c4;
  --card: #fffaf0;
  --ink: #1a1430;
  --muted: #5b4f6a;
  --line: #e6d4a4;
  --gold: #e0b44a;
  --gold-bright: #ffe08a;
  --gold-deep: #c48418;
  --cream: #fff8ec;
  --text-on-dark: #fff6e8;
  --muted-on-dark: #e4d5b8;
  --shadow: 0 16px 40px rgba(16, 8, 48, 0.28);
  --radius: 14px;
  --header-h: 4.15rem;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-he: "David Libre", "Frank Ruhl Libre", "Times New Roman", serif;
  --font-he-text: "Noto Serif Hebrew", "David Libre", "Times New Roman", serif;
  --max: 72rem;
  --theme: #e0b44a;
  --theme-deep: #c48418;
  --theme-soft: #ffe8b8;
  --theme-glow: rgba(224, 180, 74, 0.45);
}

.theme-berachos, .seder-zeraim {
  --theme: #ef7a28;
  --theme-deep: #c44712;
  --theme-soft: #ffe0c0;
  --theme-glow: rgba(239, 122, 40, 0.5);
}
.theme-pesachim {
  --theme: #c42848;
  --theme-deep: #7a1028;
  --theme-soft: #ffd4dc;
  --theme-glow: rgba(196, 40, 72, 0.5);
}
.theme-sukkah {
  --theme: #2e9a4e;
  --theme-deep: #146830;
  --theme-soft: #d4f0d8;
  --theme-glow: rgba(46, 154, 78, 0.5);
}
.theme-megillah {
  --theme: #7a3cc8;
  --theme-deep: #4a1878;
  --theme-soft: #ead8ff;
  --theme-glow: rgba(122, 60, 200, 0.5);
}
.theme-shevuos, .seder-nezikin {
  --theme: #149898;
  --theme-deep: #0a6068;
  --theme-soft: #c8f4f0;
  --theme-glow: rgba(20, 152, 152, 0.5);
}
.seder-moed {
  --theme: #c42848;
  --theme-deep: #7a1028;
  --theme-soft: #ffd4dc;
  --theme-glow: rgba(196, 40, 72, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-on-dark);
  background-color: #160830;
  background-image:
    radial-gradient(ellipse at 8% 12%, rgba(255, 140, 50, 0.22), transparent 42%),
    radial-gradient(ellipse at 96% 8%, rgba(120, 50, 220, 0.32), transparent 40%),
    radial-gradient(ellipse at 80% 90%, rgba(20, 160, 160, 0.22), transparent 44%),
    radial-gradient(ellipse at 20% 80%, rgba(180, 30, 80, 0.16), transparent 40%),
    linear-gradient(180deg, #1c0a42 0%, #160830 40%, #1a0a38 100%);
  background-attachment: fixed;
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--parchment); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, rgba(28, 8, 64, 0.96), rgba(60, 16, 110, 0.94) 50%, rgba(28, 20, 90, 0.96));
  backdrop-filter: blur(14px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ef7a28, #ffe08a, #7a3cc8, #149898, #ef7a28) 1;
  color: var(--parchment);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.logo {
  display: flex; flex-direction: column; gap: 0.08rem;
  text-decoration: none; color: var(--parchment); line-height: 1.1;
}
.logo [lang="he"] {
  font-family: var(--font-he);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(255, 200, 80, 0.55);
}
.logo .logo-en {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0e2c4;
  font-weight: 600;
}
.nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav a {
  color: #f0e2c4; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-bright); }

/* Hero band */
.hero-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3.4rem 0 3.8rem;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255, 150, 40, 0.5), transparent 46%),
    radial-gradient(ellipse at 88% 8%, rgba(130, 50, 230, 0.62), transparent 44%),
    radial-gradient(ellipse at 72% 92%, rgba(16, 170, 170, 0.42), transparent 46%),
    radial-gradient(ellipse at 30% 100%, rgba(200, 40, 80, 0.35), transparent 40%),
    linear-gradient(165deg, #1a0848 0%, #2a1478 30%, #1c3a8a 55%, #8a2058 82%, #d05a18 100%);
}
.listen-band { padding: 2.2rem 0 2.4rem; }
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("/images/pattern-geo.svg");
  background-size: 140px 122px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.hero-notes {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-notes .note {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 3.9rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.22), rgba(255, 248, 230, 0.08));
  border: 1px solid rgba(255, 224, 138, 0.5);
  box-shadow: 0 10px 20px rgba(10, 0, 30, 0.22);
  color: #ffe08a;
  font-size: 1.45rem;
  text-shadow: 0 0 12px rgba(255, 200, 80, 0.45);
  animation: float-note 16s ease-in-out infinite;
  opacity: 0.85;
}
.hero-notes .n1  { top: 12%; left: 6%;  animation-delay: 0s; font-size: 2.1rem; }
.hero-notes .n2  { top: 22%; left: 18%; animation-delay: -2s; }
.hero-notes .n3  { top: 8%;  left: 78%; animation-delay: -4s; font-size: 2.4rem; }
.hero-notes .n4  { top: 38%; left: 90%; animation-delay: -1s; }
.hero-notes .n5  { top: 68%; left: 8%;  animation-delay: -6s; }
.hero-notes .n6  { top: 72%; left: 84%; animation-delay: -3s; font-size: 2rem; }
.hero-notes .n7  { top: 50%; left: 4%;  animation-delay: -8s; }
.hero-notes .n8  { top: 16%; left: 52%; animation-delay: -5s; }
.hero-notes .n9  { top: 80%; left: 40%; animation-delay: -7s; }
.hero-notes .n10 { top: 44%; left: 72%; animation-delay: -9s; }
.hero-notes .n11 { top: 58%; left: 22%; animation-delay: -11s; }
.hero-notes .n12 { top: 28%; left: 34%; animation-delay: -10s; }
@keyframes float-note {
  0%, 100% { transform: translateY(0) rotate(-10deg); opacity: 0.35; }
  50% { transform: translateY(-28px) rotate(10deg); opacity: 0.9; }
}

.hero-band .wrap { position: relative; z-index: 2; }
.hero { padding: 2.6rem 0 2.2rem; }
.hero-frame {
  position: relative;
  text-align: center;
  padding: 2.8rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, rgba(18, 6, 48, 0.42), rgba(18, 6, 48, 0.28));
  border: 2px solid rgba(255, 224, 138, 0.7);
  box-shadow:
    0 20px 50px rgba(8, 0, 24, 0.4),
    0 0 0 8px rgba(18, 6, 48, 0.25),
    inset 0 0 0 1px rgba(255, 224, 138, 0.25),
    0 0 80px rgba(255, 180, 60, 0.18);
  max-width: 52rem;
  margin-inline: auto;
  backdrop-filter: blur(4px);
  border-radius: 8px;
}
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 2.4rem; height: 2.4rem;
  pointer-events: none;
  background:
    linear-gradient(#ffe08a, #ffe08a) top left / 2.4rem 2px no-repeat,
    linear-gradient(#ffe08a, #ffe08a) top left / 2px 2.4rem no-repeat;
}
.hero-frame::before { top: 10px; left: 10px; }
.hero-frame::after {
  top: 10px; right: 10px;
  transform: scaleX(-1);
}
.hero-frame .frame-corners-bottom {
  position: absolute; inset: auto 10px 10px 10px; height: 2.4rem; pointer-events: none;
}
.hero-frame .frame-corners-bottom::before,
.hero-frame .frame-corners-bottom::after {
  content: "";
  position: absolute; width: 2.4rem; height: 2.4rem; bottom: 0;
  background:
    linear-gradient(#ffe08a, #ffe08a) bottom left / 2.4rem 2px no-repeat,
    linear-gradient(#ffe08a, #ffe08a) bottom left / 2px 2.4rem no-repeat;
}
.hero-frame .frame-corners-bottom::before { left: 0; }
.hero-frame .frame-corners-bottom::after { right: 0; transform: scaleX(-1); }

.hero-mark {
  position: absolute;
  top: 1.15rem;
  width: 2.6rem;
  height: 2.6rem;
  opacity: 0.85;
  filter: invert(86%) sepia(48%) saturate(600%) hue-rotate(2deg) brightness(1.15);
  pointer-events: none;
}
.hero-mark-l { left: 1.4rem; }
.hero-mark-r { right: 1.4rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; font-weight: 700; color: var(--gold-bright); margin: 0 0 0.85rem;
  text-shadow: 0 0 12px rgba(255, 200, 80, 0.4);
}
.hero-frame h1 {
  font-family: var(--font-he);
  font-weight: 700;
  font-size: clamp(3.4rem, 14vw, 7.2rem);
  line-height: 1.12;
  margin: 0 0 0.2rem;
  color: #ffe7a0;
  text-shadow:
    0 0 18px rgba(255, 200, 70, 0.85),
    0 0 42px rgba(255, 160, 40, 0.55),
    0 4px 0 rgba(80, 30, 0, 0.25);
  animation: he-glow 5s ease-in-out infinite;
}
@keyframes he-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 200, 70, 0.75), 0 0 42px rgba(255, 160, 40, 0.45), 0 4px 0 rgba(80, 30, 0, 0.25); }
  50% { text-shadow: 0 0 28px rgba(255, 230, 140, 1), 0 0 64px rgba(255, 180, 50, 0.7), 0 4px 0 rgba(80, 30, 0, 0.25); }
}
.hero-en {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff4d0;
  margin: 0 0 1rem;
}
.hero h1.page-title, .page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: #ffe7a0;
  text-shadow: 0 0 20px rgba(255, 200, 70, 0.55);
}
.listen-hero { position: relative; z-index: 2; text-align: start; }
.listen-hero .page-title { text-align: start; }
.lede { font-size: 1.18rem; color: var(--muted-on-dark); max-width: 38rem; margin: 0 auto 1.4rem; }
.listen-hero .lede { margin-inline: 0; text-align: start; color: #f3e8d0; }
.hero-band .source { color: #e8d8b4; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.listen-hero .actions { justify-content: flex-start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 999px; padding: 0.7rem 1.25rem; font-weight: 650; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.2; min-height: 2.75rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #ffe08a, #e0a428);
  color: #2a1400;
  box-shadow: 0 6px 18px rgba(224, 160, 40, 0.4);
}
.btn-primary:hover { background: linear-gradient(180deg, #fff0b0, #f0b430); color: #1a0c00; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff6e8; border-color: rgba(255, 224, 138, 0.75); }
.btn-ghost:hover { background: rgba(255, 224, 138, 0.16); color: #fff; border-color: #ffe08a; }

/* Content sections on the jewel page */
section { padding: 2rem 0; }
.section-title {
  font-family: var(--font-display); font-size: 1.95rem; margin: 0 0 0.4rem; font-weight: 600;
  color: #ffe7a0;
}
.section-intro { color: var(--muted-on-dark); margin: 0 0 1.4rem; max-width: 40rem; }

.panel-section {
  background: linear-gradient(180deg, #fffaf0, #fff3dc);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(224, 180, 74, 0.45);
  position: relative;
  overflow: hidden;
}
.panel-section::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, #ef7a28, #ffe08a, #7a3cc8, #149898, #c42848);
}
.panel-section .section-title { color: #3a1468; }
.panel-section p, .panel-section li { color: var(--ink); }
#why ul { padding-inline-start: 1.2rem; }
#why li { margin: 0 0 0.45rem; }

/* Ornament dividers */
.ornament-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 0.85rem;
  padding: 0.4rem 0 0.2rem;
  color: var(--gold-bright);
}
.ornament-divider img {
  width: 2.1rem; height: 2.1rem;
  filter: invert(86%) sepia(48%) saturate(600%) hue-rotate(2deg) brightness(1.15);
  opacity: 0.9;
}
.ornament-divider .div-center { width: 2.6rem; height: 2.6rem; }
.ornament-divider .div-line {
  height: 2px; width: min(28vw, 9rem);
  background: linear-gradient(90deg, transparent, #ffe08a, #ef7a28, #7a3cc8, #ffe08a, transparent);
  border-radius: 2px;
}

/* KumLern banner */
.kumlern {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 180, 50, 0.4), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(80, 20, 180, 0.55), transparent 52%),
    linear-gradient(120deg, #6a1478 0%, #c42848 42%, #ef7a28 78%, #e0a428 100%);
  color: #fffaf0;
  border: 2px solid rgba(255, 224, 138, 0.7);
  border-radius: var(--radius);
  padding: 1.85rem 4.4rem 1.7rem;
  box-shadow: 0 18px 40px rgba(140, 30, 60, 0.4), 0 0 40px rgba(255, 150, 40, 0.2);
  display: grid; gap: 0.35rem;
  position: relative;
  overflow: hidden;
}
.kumlern::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(255, 224, 138, 0.45);
  pointer-events: none;
  border-radius: 8px;
}
.kumlern-mark {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem;
  filter: invert(92%) sepia(40%) saturate(500%) hue-rotate(2deg) brightness(1.15);
  opacity: 0.85; pointer-events: none;
}
.kumlern-mark-l { left: 1.05rem; }
.kumlern-mark-r { right: 1.05rem; }
.kumlern .eyebrow { color: #ffe08a; }
.kumlern h2 { font-family: var(--font-display); font-size: 1.9rem; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.kumlern .when { font-size: 1.2rem; font-weight: 650; color: #ffe08a; }
.kumlern .where { margin: 0; color: #fff6e8; }
.kumlern .tbc { color: #f3e0c4; }
.tbc { color: var(--muted-on-dark); font-size: 0.95rem; margin: 0.6rem 0 0; }

/* Seder / masechta */
.seder-block {
  margin: 0 0 2.4rem;
  padding: 1.2rem 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 224, 138, 0.22);
  background: rgba(255, 248, 236, 0.06);
  box-shadow: inset 6px 0 0 var(--theme, #e0b44a);
}
.seder-zeraim {
  background: linear-gradient(90deg, rgba(239, 122, 40, 0.16), rgba(255, 248, 236, 0.05) 40%);
}
.seder-moed {
  background: linear-gradient(90deg, rgba(196, 40, 72, 0.16), rgba(122, 60, 200, 0.08) 50%, rgba(255, 248, 236, 0.05));
}
.seder-nezikin {
  background: linear-gradient(90deg, rgba(20, 152, 152, 0.18), rgba(255, 248, 236, 0.05) 45%);
}
.seder-label, .masechta-label {
  display: flex; align-items: baseline; gap: 0.85rem; flex-wrap: wrap;
  margin: 0 0 0.7rem;
}
.seder-label {
  border-bottom: 2px solid var(--theme, #e0b44a);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.seder-label h2 {
  font-family: var(--font-he);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  margin: 0;
  color: #ffe7a0;
  font-weight: 700;
  text-shadow: 0 0 16px var(--theme-glow, rgba(224,180,74,0.45));
}
.masechta-block { margin: 0 0 0.6rem; }
.masechta-label h3 {
  font-family: var(--font-he);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0;
  color: var(--theme-soft, #ffe8b8);
  font-weight: 700;
}
.en-inline, .he-inline { font-weight: 500; color: var(--muted-on-dark); }
.en-inline { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; }
.he-inline { font-family: var(--font-he); }
.perek-label {
  font-family: var(--font-he);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 1.2rem;
  margin: 1.15rem 0 0.65rem;
  text-align: start;
  direction: ltr;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.15rem;
}
.song-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 5px solid var(--theme, #e0b44a);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.song-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 22px 40px var(--theme-glow, rgba(224,180,74,0.45)), 0 8px 20px rgba(16, 8, 48, 0.28);
  border-color: var(--theme);
  color: var(--ink);
}
.song-card img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--parchment-deep); }
.song-card .meta { padding: 0.95rem 1rem 1.1rem; text-align: right; background: linear-gradient(180deg, #fffaf0, var(--theme-soft)); }
.song-card .ref {
  font-family: var(--font-he);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-deep);
  margin: 0 0 0.35rem;
}
.song-card h3.he, .song-card .he-title {
  font-family: var(--font-he-text);
  font-size: 1.55rem;
  line-height: 1.45;
  direction: rtl;
  text-align: right;
  margin: 0 0 0.25rem;
  color: #1a1430;
  font-weight: 600;
}
.song-card .en-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  color: #4a3c28;
  font-style: italic;
}
.song-card .credit { color: #5b4f6a; font-size: 0.85rem; margin: 0.4rem 0 0; }

.note {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.note a { color: var(--theme-deep, #c48418); }

/* Song page — keep existing block structure; typography + theme chrome only */
.crumb { font-size: 0.9rem; color: var(--muted-on-dark); margin: 1.3rem 0 1rem; }
.crumb a { color: var(--muted-on-dark); text-decoration: none; }
.crumb a:hover { color: var(--gold-bright); }
.song-layout {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.4rem;
}
@media (max-width: 780px) {
  .song-layout { grid-template-columns: 1fr; }
}
.cover-col img {
  width: 100%; border-radius: 12px; box-shadow: 0 16px 36px var(--theme-glow, rgba(224,180,74,0.4));
  border: 3px solid var(--theme, #e0b44a);
}
.song-heading { text-align: right; }
.song-kicker {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  letter-spacing: 0;
  text-transform: none;
}
.song-kicker [lang="he"] {
  font-family: var(--font-he);
  font-size: 1.35rem;
}
.song-he-title {
  font-family: var(--font-he-text);
  font-size: clamp(2rem, 5.4vw, 3.15rem);
  direction: rtl;
  text-align: right;
  margin: 0 0 0.35rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffe7a0;
  text-shadow: 0 0 22px var(--theme-glow, rgba(224,180,74,0.5));
}
.song-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  margin: 0 0 0.75rem;
  font-weight: 500;
  font-style: italic;
  color: var(--muted-on-dark);
}
.credits { color: var(--muted-on-dark); margin: 0 0 1rem; font-size: 0.98rem; }

.player-box {
  background:
    radial-gradient(ellipse at 100% 0%, var(--theme-glow, rgba(224,180,74,0.35)), transparent 55%),
    linear-gradient(160deg, #1c0a42, #2a1468 55%, #1a2048);
  color: var(--parchment);
  border: 2px solid var(--theme, #e0b44a);
  border-radius: 12px;
  padding: 1rem 1rem 1.05rem;
  margin: 0 0 1rem;
  box-shadow: 0 12px 28px var(--theme-glow, rgba(224,180,74,0.3));
}
.player-box .source { color: #d7cdb4; }
.player-box .source a { color: var(--gold-bright); }
.player-box .btn-primary { background: linear-gradient(180deg, #ffe08a, #e0a428); color: #2a1400; }
.player-box .btn-primary:hover { background: linear-gradient(180deg, #fff0b0, #f0b430); color: #1a0c00; }
.player-box .btn-ghost { color: var(--parchment); border-color: var(--gold-bright); }
.player-box .btn-ghost:hover { background: rgba(255, 224, 138, 0.16); color: #fff; }
audio { width: 100%; height: 2.8rem; }
.video-wrap { position: relative; aspect-ratio: 16/9; background: #07101c; border-radius: 8px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Visualizer */
.visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  gap: 3px;
  height: 3rem;
  margin: 0.85rem 0 0.55rem;
  padding: 0 0.1rem;
}
.visualizer span {
  flex: 1;
  height: 100%;
  border-radius: 2px 2px 0 0;
  transform: scaleY(0.28);
  transform-origin: bottom;
  background: linear-gradient(180deg, #fff6d0, var(--theme, #e0b44a));
  box-shadow: 0 0 8px var(--theme-glow, rgba(224,180,74,0.4));
}
.visualizer span:nth-child(3n) { transform: scaleY(0.5); }
.visualizer span:nth-child(4n) { transform: scaleY(0.2); }
.visualizer span:nth-child(5n) { transform: scaleY(0.66); }
.visualizer span:nth-child(7n) { transform: scaleY(0.38); }
.visualizer.is-playing span { animation: eq 0.7s ease-in-out infinite alternate; }
.visualizer.is-playing span:nth-child(2n) { animation-duration: 0.55s; }
.visualizer.is-playing span:nth-child(3n) { animation-duration: 0.9s; }
.visualizer.is-playing span:nth-child(4n) { animation-duration: 0.42s; }
.visualizer.is-playing span:nth-child(5n) { animation-delay: -0.2s; }
.visualizer.is-playing span:nth-child(odd) { animation-delay: -0.35s; }
@keyframes eq {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.text-block { margin: 1.6rem 0; }
.text-block h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.7rem;
  color: #ffe7a0;
  font-weight: 600;
}
.text-block h2 [lang="he"] {
  font-family: var(--font-he);
  font-weight: 700;
}
.he-text {
  font-family: var(--font-he-text);
  direction: rtl; text-align: right;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 2.05;
  font-weight: 500;
  color: #1a1430;
  background: var(--card);
  border: 2px solid var(--theme, #e0b44a);
  box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px rgba(224, 180, 74, 0.55), 0 10px 28px var(--theme-glow, rgba(224,180,74,0.28));
  border-radius: 8px;
  padding: 1.45rem 1.5rem 1.5rem;
}
.en-text {
  font-size: 1.08rem; line-height: 1.8; color: var(--ink);
  background: var(--card);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(224, 180, 74, 0.4);
}
.source { font-size: 0.85rem; color: var(--muted-on-dark); margin-top: 0.8rem; }
.text-block .source { color: var(--muted-on-dark); }
.text-block .source a { color: var(--gold-bright); }

/* Listen / playlist */
.listen-layout {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.6rem 0 3rem;
}
@media (max-width: 840px) {
  .listen-layout { grid-template-columns: 1fr; }
}
.now-playing {
  background:
    radial-gradient(ellipse at 0% 0%, var(--theme-glow, rgba(224,180,74,0.4)), transparent 55%),
    linear-gradient(165deg, #1c0a42, #3a1468 50%, #1a2848);
  color: var(--parchment);
  border: 2px solid var(--theme, #e0b44a);
  border-radius: 14px;
  padding: 1.05rem;
  box-shadow: 0 16px 36px var(--theme-glow, rgba(224,180,74,0.35));
  position: sticky; top: calc(var(--header-h) + 0.8rem);
}
.now-playing img { width: 100%; border-radius: 8px; margin-bottom: 0.9rem; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--theme, #e0b44a); }
.now-playing .np-he {
  font-family: var(--font-he-text);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.25rem;
  color: #ffe7a0;
  display: block;
  direction: rtl;
  text-align: right;
  text-shadow: 0 0 16px var(--theme-glow, rgba(224,180,74,0.5));
}
.now-playing .np-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 0.2rem;
  color: var(--gold-bright);
}
.now-sub { color: #e8d8b4; margin: 0 0 0.8rem; }
.now-playing a { color: var(--gold-bright); }
.now-playing .tbc { color: #e8d8b4; }
.controls { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0.6rem 0; }
.icon-btn {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--gold-bright); background: transparent; cursor: pointer;
  font-size: 0.95rem; color: var(--parchment); font-weight: 650;
  transition: background 0.15s ease, transform 0.15s ease;
}
.icon-btn.play {
  width: 3.7rem; height: 3.7rem;
  background: linear-gradient(180deg, #ffe08a, #e0a428);
  color: #2a1400; border-color: #ffe08a;
  font-size: 1.05rem;
  box-shadow: 0 0 18px var(--theme-glow, rgba(224,180,74,0.5));
}
.icon-btn:hover { background: rgba(255, 224, 138, 0.16); }
.icon-btn.play:hover { background: linear-gradient(180deg, #fff0b0, #f0b430); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.seek { width: 100%; accent-color: var(--theme, #e0b44a); }
.times { display: flex; justify-content: space-between; font-size: 0.8rem; color: #e8d8b4; font-variant-numeric: tabular-nums; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.queue button > span:nth-child(2),
.queue a.q-item > span:nth-child(2) {
  display: block;
  min-width: 0;
  text-align: right;
}
.queue button, .queue a.q-item {
  width: 100%; display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 0.75rem;
  align-items: center; text-align: left; background: var(--card);
  border: 1px solid rgba(255,255,255,0.08); border-left: 5px solid var(--theme, #e0b44a);
  border-radius: 10px; padding: 0.45rem 0.6rem;
  cursor: pointer; font: inherit; color: var(--ink); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.queue button:hover, .queue a.q-item:hover {
  transform: translateX(3px);
  box-shadow: 0 8px 18px var(--theme-glow, rgba(224,180,74,0.3));
}
.queue button[aria-current="true"], .queue a.q-item[aria-current="true"] {
  border-color: var(--theme-deep); background: var(--theme-soft);
  box-shadow: inset 0 0 0 1px var(--theme), 0 8px 18px var(--theme-glow);
}
.queue img { width: 3.2rem; height: 3.2rem; border-radius: 6px; object-fit: cover; }
.queue .q-he {
  font-family: var(--font-he-text);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1430;
  display: block;
  line-height: 1.4;
  direction: rtl;
  text-align: right;
}
.queue .q-title { font-weight: 500; font-style: italic; font-family: var(--font-display); color: #4a3c28; display: block; }
.queue .q-sub { font-size: 0.85rem; color: #5b4f6a; display: block; }
.queue .q-sub[lang="he"] { font-family: var(--font-he); }
.queue .q-dur { font-size: 0.8rem; color: #5b4f6a; font-variant-numeric: tabular-nums; }
.listen-layout .section-title { color: #ffe7a0; }

/* Footer */
.site-footer {
  background: linear-gradient(90deg, #11052c, #3a1468 50%, #1a2048);
  color: #e8d8b4;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #ef7a28, #ffe08a, #7a3cc8, #149898, #ef7a28) 1;
  padding: 1.8rem 0 2.3rem;
  font-size: 0.95rem;
  margin-top: 1.2rem;
}
.site-footer p { margin: 0.3rem 0; }
.site-footer a { color: var(--gold-bright); }

.recording { margin: 0 0 1.2rem; }
.recording-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.1rem 0 0.35rem;
  color: #ffe7a0;
}
.recording .credits { margin-bottom: 0.45rem; }

.player-box .actions { margin-top: 0.85rem; }
.listen-layout + .source, .hero .source, .listen-hero .source { margin-top: 0.7rem; }

@media (max-width: 640px) {
  .hero-band { padding: 2rem 0 2.2rem; }
  .hero-frame { padding: 2.1rem 1rem 1.8rem; }
  .hero-mark { width: 1.8rem; height: 1.8rem; top: 0.85rem; }
  .hero-mark-l { left: 0.85rem; }
  .hero-mark-r { right: 0.85rem; }
  .header-inner { flex-wrap: wrap; padding: 0.4rem 0; }
  .nav { gap: 0.85rem; }
  .he-text { font-size: 1.38rem; padding: 1.15rem 1.05rem; }
  .now-playing { position: static; }
  .song-he-title { text-align: right; }
  .kumlern { padding: 1.6rem 1.15rem 1.4rem; }
  .kumlern-mark { display: none; }
  .seder-block { padding: 1rem 0.75rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .song-card, .btn, .icon-btn, .queue button, .queue a.q-item { transition: none; }
  .song-card:hover, .btn-primary:hover { transform: none; }
  .hero-notes .note, .hero-frame h1, .visualizer.is-playing span { animation: none; }
  .hero-frame h1 { text-shadow: 0 0 18px rgba(255, 200, 70, 0.75), 0 4px 0 rgba(80, 30, 0, 0.25); }
  .visualizer.is-playing span { transform: scaleY(0.55); }
}
