/* ============================================================
   19 — נגן הרדיו הצף (inc/player.php + js/player.js)
   סטריפ בתחתית המסך: מדליון התוכנית "יוצא" מעל הפס, שם התוכנית, הרב ונושא
   השיעור, כפתור נגינה זהוב בין אקולייזרים בצבעי הקשת (כמו בעמוד הרדיו),
   עוצמה, "לעמוד הרדיו", טיימר כיבוי, מזעור וסגירה. קו עליון זהוב-ורוד שמתמלא
   לפי ההתקדמות של התוכנית הנוכחית. במזעור — עיגול צף בפינה.
   + המעטפת (#brz-shell) שמחזיקה את העמודים בזמן שהרדיו מנגן.
   ============================================================ */

/* ---------- המעטפת: העמוד הנוכחי בתוך מסגרת, הנגן נשאר בחוץ ---------- */
html.brz-shell-on,
html.brz-shell-on body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.brz-shell-on body > *:not(#brz-shell):not(#brz-pl):not(#brz-pl-audio) { display: none !important; }
#brz-shell {
  position: fixed;
  inset: 0 0 var(--brz-pl-h, 0px) 0;
  z-index: 1;
  background: #fff;
  transition: bottom .4s ease;
}
#brz-shell-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* מקום בתחתית העמוד כדי שהסטריפ לא יסתיר את הפוטר */
#brz-pl-spacer { height: var(--brz-pl-h, 0px); }
html.brz-shell-on #brz-pl-spacer { display: none; }

/* ---------- הנגן ---------- */
.brz-pl {
  --pl-h: 82px;
  --gold: #f4c94e;
  --gold-hi: #fff0b8;
  --gold-deep: #c98b17;
  --live: #ff4d5e;
  --muted: rgba(255, 255, 255, .74);
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1080;               /* מעל התוכן וסרגל ההדר, מתחת למגירת המובייל ולפופאפים */
  direction: rtl;
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  line-height: 1.25;
  color: #fff;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.brz-pl[hidden] { display: none !important; }
.brz-pl *,
.brz-pl *::before,
.brz-pl *::after { box-sizing: border-box; }
.brz-pl button:hover,
.brz-pl button:focus {
  background-color: transparent;
  color: inherit;
}
.brz-pl button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}
/* כפתורי הנגינה הזהובים: אייקון נייבי גם במצב פוקוס/ריחוף (האיפוס שלמעלה היה הופך אותו ללבן) */
.brz-pl button.brz-pl__play,
.brz-pl button.brz-pl__mini-play { color: #1b1f4f; }
.brz-pl a { color: inherit; text-decoration: none; }
.brz-pl svg { display: block; fill: currentColor; }
.brz-pl :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.brz-pl .brz-pl__dock {
  position: relative;
  pointer-events: auto;
  transform: translateY(calc(100% + 40px));
  transition: transform .6s cubic-bezier(.18, .9, .22, 1.08), opacity .3s ease;
  filter: drop-shadow(0 -10px 26px rgba(9, 14, 46, .38));
}
.brz-pl.is-in .brz-pl__dock { transform: none; }
/* העיגול מוצג: הסטריפ יורד ונעלם — וגם יוצא מסדר הטאב, והאנימציות שבו עוצרות */
.brz-pl.is-min .brz-pl__dock {
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .6s cubic-bezier(.18, .9, .22, 1.08), opacity .3s ease, visibility 0s linear .6s;
}
.brz-pl.is-min .brz-pl__dock *,
.brz-pl.is-min .brz-pl__dock *::before,
.brz-pl.is-min .brz-pl__dock *::after { animation-play-state: paused !important; }
.brz-pl.is-pulse .brz-pl__dock { animation: brz-pl-pulse .7s ease; }

/* רקע: נייבי-אינדיגו, הילות אור שנעות לאט, ונקודות אור קטנות */
.brz-pl .brz-pl__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 140% at 92% 0%, rgba(244, 201, 78, .2), rgba(244, 201, 78, 0) 60%),
    linear-gradient(90deg, #2a1c62 0%, #1b2468 46%, #101d52 100%);
}
.brz-pl .brz-pl__aurora {
  position: absolute;
  inset: -60% -10%;
  background:
    radial-gradient(28% 60% at 20% 40%, rgba(255, 79, 135, .22), rgba(255, 79, 135, 0) 70%),
    radial-gradient(30% 70% at 60% 60%, rgba(120, 92, 255, .22), rgba(120, 92, 255, 0) 70%),
    radial-gradient(26% 60% at 85% 30%, rgba(244, 201, 78, .16), rgba(244, 201, 78, 0) 70%);
  animation: brz-pl-aurora 18s ease-in-out infinite alternate;
}
.brz-pl .brz-pl__stars {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 30%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 27% 72%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 41% 22%, #ffe9a6 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 64%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 69% 18%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 83% 78%, #ffe9a6 50%, transparent 52%),
    radial-gradient(1px 1px at 94% 40%, #fff 50%, transparent 52%);
  animation: brz-pl-twinkle 4.5s ease-in-out infinite alternate;
}

/* קו עליון: זהב-ורוד, וההתקדמות של התוכנית הנוכחית מתמלאת עליו */
.brz-pl .brz-pl__progress {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;                  /* מתחת לפס — המדליון שיוצא למעלה מכסה את הקו */
  height: 3px;
  background: linear-gradient(90deg, rgba(244, 201, 78, .5), rgba(255, 79, 135, .55) 50%, rgba(244, 201, 78, .5));
}
.brz-pl .brz-pl__progress i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--p, 0%);
  background: linear-gradient(270deg, #fff6d0, var(--gold) 40%, #ff7aa6);
  box-shadow: 0 0 10px rgba(255, 220, 130, .9);
  transition: width 1s linear;
}
.brz-pl .brz-pl__progress i::after {
  content: '';
  position: absolute;
  inset-inline-end: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(244, 201, 78, .45), 0 0 12px 3px rgba(255, 230, 150, .9);
}

.brz-pl .brz-pl__bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  height: calc(var(--pl-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 clamp(12px, 2vw, 30px) env(safe-area-inset-bottom, 0px);
}

/* ---- מה מתנגן ---- */
.brz-pl .brz-pl__now {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  min-width: 0;
}
.brz-pl .brz-pl__art {
  position: relative;
  flex: 0 0 auto;
  width: 136px;
  aspect-ratio: 400 / 328;
  margin-top: -50px;          /* המדליון "יוצא" מעל הפס (כ-40px), והקו העליון עובר מאחוריו */
  transition: transform .25s ease;
}
.brz-pl .brz-pl__art:hover { transform: translateY(-2px) scale(1.04); }
.brz-pl .brz-pl__img,
.brz-pl .brz-pl__fallback {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(5, 10, 40, .55));
}
.brz-pl .brz-pl__img[hidden],
.brz-pl .brz-pl__fallback[hidden] { display: none; }
.brz-pl .brz-pl__fallback { padding: 6% 14%; }
.brz-pl .brz-pl__fallback svg { width: 100%; height: 100%; }
.brz-pl .brz-pl__halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 226, 140, .55), rgba(255, 210, 100, .18) 55%, rgba(255, 210, 100, 0));
  opacity: .4;
  transition: opacity .4s ease;
}
.brz-pl.is-playing .brz-pl__halo {
  opacity: 1;
  animation: brz-pl-halo 2.8s ease-in-out infinite;
}

.brz-pl .brz-pl__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brz-pl .brz-pl__station {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  white-space: nowrap;
}
.brz-pl .brz-pl__station b {
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--gold);
}
.brz-pl .brz-pl__onair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 9px;
  border-radius: 999px;
  background: rgba(255, 77, 94, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .5);
  color: #ffb3bb;
  font-size: 11.5px;
  font-weight: 800;
}
.brz-pl .brz-pl__onair i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, .7);
}
.brz-pl.is-playing .brz-pl__onair i { animation: brz-pl-live 1.6s ease-out infinite; }
.brz-pl .brz-pl__next {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .62);
}
.brz-pl .brz-pl__next[hidden] { display: none; }
.brz-pl .brz-pl__next b { font-weight: 700; color: rgba(255, 233, 166, .9); }
.brz-pl .brz-pl__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
.brz-pl .brz-pl__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.005em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.brz-pl .brz-pl__rav {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
  color: #ffdf86;
}
.brz-pl .brz-pl__rav[hidden] { display: none; }
.brz-pl .brz-pl__topic {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--muted);
}
/* דהייה בקצה רק כשהשורה ארוכה מהמקום ובאמת גוללת — אחרת היא מוצגת שלמה */
.brz-pl .brz-pl__topic.is-marquee {
  -webkit-mask-image: linear-gradient(to left, #000 90%, transparent);
          mask-image: linear-gradient(to left, #000 90%, transparent);
}
.brz-pl .brz-pl__topic-in { display: inline-block; }
.brz-pl .brz-pl__topic.is-marquee .brz-pl__topic-in {
  animation: brz-pl-marquee var(--mq, 10s) linear 2s infinite alternate;
}
.brz-pl.is-new .brz-pl__info { animation: brz-pl-new .7s ease both; }
.brz-pl.is-new .brz-pl__art { animation: brz-pl-art-new .8s cubic-bezier(.2, .9, .3, 1.3) both; }

/* ---- נגינה ---- */
.brz-pl .brz-pl__center {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brz-pl .brz-pl__play,
.brz-pl .brz-pl__mini-play {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #1b1f4f;
  background:
    radial-gradient(circle at 35% 28%, #fffbe6 0%, #ffe48a 26%, #f2bd3c 62%, #c98b17 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .14),
    0 10px 22px -8px rgba(201, 139, 23, .9),
    inset 0 -3px 6px rgba(150, 90, 0, .35),
    inset 0 2px 3px rgba(255, 255, 255, .8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brz-pl .brz-pl__play:hover { transform: scale(1.06); }
.brz-pl .brz-pl__play:active { transform: scale(.96); }
.brz-pl .brz-pl__ic {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}
.brz-pl .brz-pl__ic svg { width: 100%; height: 100%; }
.brz-pl .brz-pl__ic--play svg { transform: translateX(1px); }
.brz-pl .brz-pl__ic--pause,
.brz-pl.is-playing .brz-pl__ic--play,
.brz-pl.is-loading .brz-pl__ic--play { display: none; }
.brz-pl.is-playing .brz-pl__ic--pause { display: grid; }
.brz-pl .brz-pl__spin {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid rgba(255, 240, 184, .18);
  border-top-color: var(--gold-hi);
  opacity: 0;
}
.brz-pl.is-loading .brz-pl__spin {
  opacity: 1;
  animation: brz-pl-spin .9s linear infinite;
}
.brz-pl.is-loading .brz-pl__ic--pause { display: grid; opacity: .45; }
.brz-pl .brz-pl__ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.brz-pl.is-playing .brz-pl__play .brz-pl__ripple::before,
.brz-pl.is-playing .brz-pl__play .brz-pl__ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(244, 201, 78, .6);
  animation: brz-pl-ripple 2.4s ease-out infinite;
}
.brz-pl.is-playing .brz-pl__play .brz-pl__ripple::after { animation-delay: 1.2s; }

/* אקולייזר קשת סביב הכפתור (כמו בעמוד הרדיו) */
.brz-pl .brz-pl__eqs { display: flex; }
.brz-pl .brz-pl__eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
}
.brz-pl .brz-pl__eq i {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  transform: scaleY(.18);
  transform-origin: 50% 100%;
  opacity: .55;
  transition: transform .4s ease, opacity .4s ease;
}
.brz-pl .brz-pl__eqs--r .brz-pl__eq i:nth-child(1) { color: #8f6bff; }
.brz-pl .brz-pl__eqs--r .brz-pl__eq i:nth-child(2) { color: #d24dff; }
.brz-pl .brz-pl__eqs--r .brz-pl__eq i:nth-child(3) { color: #ff4f9a; }
.brz-pl .brz-pl__eqs--r .brz-pl__eq i:nth-child(4) { color: #ff4d5e; }
.brz-pl .brz-pl__eqs--r .brz-pl__eq i:nth-child(5) { color: #ff8a3d; }
.brz-pl .brz-pl__eqs--l .brz-pl__eq i:nth-child(1) { color: #ffc93d; }
.brz-pl .brz-pl__eqs--l .brz-pl__eq i:nth-child(2) { color: #8fe04a; }
.brz-pl .brz-pl__eqs--l .brz-pl__eq i:nth-child(3) { color: #2fdc9a; }
.brz-pl .brz-pl__eqs--l .brz-pl__eq i:nth-child(4) { color: #2fd2ff; }
.brz-pl .brz-pl__eqs--l .brz-pl__eq i:nth-child(5) { color: #4d8dff; }
.brz-pl.is-playing .brz-pl__eq i {
  opacity: 1;
  animation: brz-pl-eq .9s ease-in-out infinite alternate;
}
.brz-pl.is-playing .brz-pl__eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.brz-pl.is-playing .brz-pl__eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
.brz-pl.is-playing .brz-pl__eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.2s; }
.brz-pl.is-playing .brz-pl__eq i:nth-child(5) { animation-duration: 1s; animation-delay: -.65s; }
.brz-pl.is-playing .brz-pl__eqs--l .brz-pl__eq i { animation-delay: -.4s; }

.brz-pl .brz-pl__hint {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1b2662;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(9, 14, 46, .55);
  animation: brz-pl-hint 1.6s ease-in-out infinite;
}
.brz-pl .brz-pl__hint::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.brz-pl .brz-pl__hint[hidden] { display: none; }
.brz-pl.is-blocked .brz-pl__play { animation: brz-pl-call 1.6s ease-in-out infinite; }

/* ---- צד שמאל: עוצמה, עמוד הרדיו, טיימר, מזעור, סגירה ---- */
.brz-pl .brz-pl__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.brz-pl .brz-pl__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #fff;
  transition: background-color .18s ease, transform .18s ease, color .18s ease;
}
.brz-pl .brz-pl__icon:hover { background: rgba(255, 255, 255, .17); transform: translateY(-1px); }
.brz-pl .brz-pl__icon svg { width: 21px; height: 21px; }
.brz-pl .brz-pl__close:hover { background: rgba(255, 77, 94, .3); }
.brz-pl .brz-pl__sleep.is-on { color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(244, 201, 78, .7); }
.brz-pl .brz-pl__badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #1b1f4f;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
.brz-pl .brz-pl__badge[hidden] { display: none; }

.brz-pl .brz-pl__vol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-end: 4px;
}
.brz-pl .brz-pl__range {
  -webkit-appearance: none;
          appearance: none;
  width: clamp(70px, 7vw, 110px);
  height: 5px;
  margin: 0;
  border-radius: 5px;
  background: linear-gradient(to left, var(--gold) 0 var(--v, 100%), rgba(255, 255, 255, .22) var(--v, 100%) 100%);
  cursor: pointer;
  direction: rtl;
}
.brz-pl .brz-pl__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(244, 201, 78, .55), 0 2px 6px rgba(0, 0, 0, .35);
}
.brz-pl .brz-pl__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(244, 201, 78, .55), 0 2px 6px rgba(0, 0, 0, .35);
}

.brz-pl .brz-pl__page {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1.5px rgba(244, 201, 78, .75);
  color: #ffe9a6;
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.brz-pl .brz-pl__page:hover {
  background: rgba(244, 201, 78, .16);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 18px -10px rgba(244, 201, 78, .8);
  color: #fff3c7;
}
.brz-pl .brz-pl__page svg { width: 19px; height: 19px; }
.brz-pl .brz-pl__page.is-here { opacity: .55; pointer-events: none; }

/* תפריט הטיימר */
.brz-pl .brz-pl__sleepwrap { position: relative; }
.brz-pl .brz-pl__menu {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: 236px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #24306f, #141d4f);
  box-shadow: 0 0 0 1px rgba(244, 201, 78, .45), 0 24px 44px -12px rgba(5, 9, 35, .7);
  animation: brz-pl-menu .22s ease both;
}
.brz-pl .brz-pl__menu[hidden] { display: none; }
.brz-pl .brz-pl__menu-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
}
.brz-pl .brz-pl__chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.brz-pl .brz-pl__chips button,
.brz-pl .brz-pl__menu-off {
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color .15s ease;
}
.brz-pl .brz-pl__chips button:hover,
.brz-pl .brz-pl__menu-off:hover { background: rgba(244, 201, 78, .25); }
.brz-pl .brz-pl__menu-off {
  width: 100%;
  margin-top: 6px;
  color: var(--muted);
}
.brz-pl .brz-pl__menu-left {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #ffdf86;
  text-align: center;
}
.brz-pl .brz-pl__menu-left[hidden] { display: none; }

/* ---- העיגול בפינה: מוצג בכל עמוד (גם בלי רדיו), "לשידור החי" בחצי עיגול מעליו ---- */
.brz-pl .brz-pl__mini {
  position: fixed;
  left: max(20px, env(safe-area-inset-left, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
  animation: brz-pl-mini-in .55s cubic-bezier(.2, .9, .3, 1.25) both;
}
.brz-pl.is-quick .brz-pl__mini { animation: brz-pl-fade .3s ease both; }
.brz-pl .brz-pl__mini[hidden] { display: none; }
.brz-pl .brz-pl__mini-open {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2c3a86, #121a4a);
  box-shadow: 0 14px 30px -10px rgba(9, 14, 46, .7);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3);
}
.brz-pl .brz-pl__mini-open:hover { transform: translateY(-2px) scale(1.04); }
.brz-pl .brz-pl__mini-open:active { transform: scale(.97); }
.brz-pl .brz-pl__mini-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f4c94e, #ff4f87, #8f6bff, #2fd2ff, #8fe04a, #f4c94e);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
.brz-pl.is-playing .brz-pl__mini-ring { animation: brz-pl-spin 4s linear infinite; }

/* הכיתוב המקושת — נייבי עם הילה לבנה (כמו כותרות הסטריפ), שני ניצוצות זהב בקצוות */
.brz-pl .brz-pl__arc {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 162.16%;              /* 120/74 — מרכז ה-SVG על מרכז העיגול */
  height: 162.16%;
  margin: -81.08% 0 0 -81.08%;
  overflow: visible;
  pointer-events: none;
  animation: brz-pl-arc-in .9s .18s cubic-bezier(.2, .85, .25, 1) both;
}
.brz-pl.is-quick .brz-pl__arc { animation: none; }
.brz-pl .brz-pl__arc text {
  font-family: 'Rubik', 'Heebo', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  direction: ltr;
  unicode-bidi: bidi-override;
  text-anchor: middle;
  pointer-events: auto;        /* גם לחיצה על הכיתוב פותחת את הסטריפ */
}
.brz-pl .brz-pl__arc-halo {
  fill: #fff;
  stroke: #fff;
  stroke-width: 4.6px;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(20, 30, 80, .28));
}
.brz-pl .brz-pl__arc-txt { fill: url(#brz-pl-arc-g); }
.brz-pl .brz-pl__arc-star {
  fill: url(#brz-pl-arc-s);
  stroke: rgba(150, 95, 0, .35);
  stroke-width: .5px;
  transform-box: fill-box;
  transform-origin: center;
  animation: brz-pl-star 2.8s ease-in-out infinite;
}
.brz-pl .brz-pl__arc-star--2 { animation-delay: -1.4s; }
.brz-pl .brz-pl__mini-open:hover .brz-pl__arc-txt { fill: #2a2f8f; }
.brz-pl .brz-pl__mini-art {
  display: block;
  width: 66px;
  aspect-ratio: 400 / 328;
}
.brz-pl .brz-pl__mini-art img,
.brz-pl .brz-pl__mini-art .brz-pl__fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.brz-pl .brz-pl__mini-art img[hidden] { display: none; }
.brz-pl .brz-pl__mini-open .brz-pl__eq {
  position: absolute;
  bottom: 7px;
  left: 50%;
  translate: -50% 0;
  height: 12px;
  gap: 2px;
  color: #ffdf86;
}
.brz-pl .brz-pl__mini-open .brz-pl__eq i { width: 3px; box-shadow: none; }
.brz-pl .brz-pl__mini-play {
  position: absolute;
  bottom: -4px;
  right: -8px;
  width: 34px;
  height: 34px;
}
.brz-pl .brz-pl__mini-play:hover { transform: scale(1.08); }
.brz-pl .brz-pl__mini-play:active { transform: scale(.94); }
.brz-pl .brz-pl__mini-play .brz-pl__ic { width: 15px; height: 15px; }
.brz-pl .brz-pl__mini-play .brz-pl__spin { inset: -4px; border-width: 2px; }
/* כשהרדיו לא מנגן: גל זהב עדין שמזמין ללחוץ (רק transform/opacity) */
.brz-pl .brz-pl__mini-play .brz-pl__ripple::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(244, 201, 78, .85);
  opacity: 0;
}
.brz-pl:not(.is-playing):not(.is-loading) .brz-pl__mini-play .brz-pl__ripple::before {
  animation: brz-pl-invite 3.6s ease-out 1.4s infinite;
}
.brz-pl.is-blocked .brz-pl__mini-play { animation: brz-pl-call 1.6s ease-in-out infinite; }

/* ---- אנימציות ---- */
@keyframes brz-pl-aurora {
  from { transform: translate3d(-4%, 0, 0) rotate(0deg); }
  to   { transform: translate3d(4%, 6%, 0) rotate(4deg); }
}
@keyframes brz-pl-twinkle { from { opacity: .3; } to { opacity: .7; } }
@keyframes brz-pl-halo {
  0%, 100% { transform: scale(.94); opacity: .75; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@keyframes brz-pl-live {
  0%   { box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 77, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}
@keyframes brz-pl-spin { to { transform: rotate(360deg); } }
@keyframes brz-pl-ripple {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.65); opacity: 0; }
}
@keyframes brz-pl-eq {
  0%   { transform: scaleY(.22); }
  40%  { transform: scaleY(.85); }
  70%  { transform: scaleY(.45); }
  100% { transform: scaleY(1); }
}
@keyframes brz-pl-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--shift, 0px)); }
}
/* רק שקיפות — טרנספורם היה הופך את .brz-pl__info לבסיס המיקום של תג "שידור חי" במובייל */
@keyframes brz-pl-new {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes brz-pl-art-new {
  from { opacity: 0; transform: scale(.7) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes brz-pl-pulse {
  0%, 100% { transform: none; }
  30%      { transform: translateY(-6px); }
  60%      { transform: translateY(1px); }
}
@keyframes brz-pl-hint {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes brz-pl-call {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 0 0 0 rgba(244, 201, 78, .7); }
  50%      { box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 0 0 12px rgba(244, 201, 78, 0); }
}
@keyframes brz-pl-menu {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes brz-pl-mini-in {
  from { opacity: 0; transform: scale(.4) translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes brz-pl-fade { from { opacity: 0; } to { opacity: 1; } }
/* הכיתוב "מתגלגל" על היקף העיגול למקומו */
@keyframes brz-pl-arc-in {
  from { opacity: 0; transform: rotate(-40deg) scale(.92); }
  to   { opacity: 1; transform: none; }
}
@keyframes brz-pl-star {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .55; }
  50%      { transform: scale(1.15) rotate(45deg); opacity: 1; }
}
@keyframes brz-pl-invite {
  0%   { transform: scale(1); opacity: .95; }
  42%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---- מסכים בינוניים ---- */
@media (max-width: 1180px) {
  .brz-pl .brz-pl__vol { display: none; }
  .brz-pl .brz-pl__eqs { display: none; }
  .brz-pl .brz-pl__next { display: none; }
}
@media (max-width: 960px) {
  .brz-pl .brz-pl__page span { display: none; }
  .brz-pl .brz-pl__page { width: 40px; padding: 0; justify-content: center; }
}

/* ---- מובייל ---- */
@media (max-width: 760px) {
  .brz-pl { --pl-h: 70px; }
  .brz-pl .brz-pl__bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding-inline: 10px 8px;
  }
  .brz-pl .brz-pl__now { position: relative; gap: 8px; }
  .brz-pl .brz-pl__art { width: 92px; margin-top: -38px; }
  /* "שידור חי" יושב על תחתית המדליון — כל רוחב הטקסט נשאר לשם התוכנית והרב */
  .brz-pl .brz-pl__station {
    position: absolute;
    z-index: 2;
    inset-inline-start: 0;
    bottom: 2px;
    width: 92px;
    justify-content: center;
  }
  .brz-pl .brz-pl__station b { display: none; }
  .brz-pl .brz-pl__onair {
    padding: 0 6px;
    background: #e8394d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 10.5px;
  }
  .brz-pl .brz-pl__onair i { width: 6px; height: 6px; background: #fff; }
  .brz-pl .brz-pl__info { gap: 0; }
  .brz-pl .brz-pl__title { flex-direction: column; align-items: flex-start; gap: 0; }
  .brz-pl .brz-pl__name { max-width: 100%; font-size: 15.5px; line-height: 1.3; }
  .brz-pl .brz-pl__rav { max-width: 100%; font-size: 12.5px; line-height: 1.3; }
  .brz-pl .brz-pl__topic { font-size: 11.5px; line-height: 1.35; }
  .brz-pl .brz-pl__play { width: 48px; height: 48px; }
  .brz-pl .brz-pl__play .brz-pl__ic { width: 20px; height: 20px; }
  .brz-pl .brz-pl__page { display: none; }
  /* בטלפון: הטיימר בגובה מלא, ומזעור/סגירה זה מעל זה — יותר מקום לשם התוכנית */
  .brz-pl .brz-pl__side {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 3px 4px;
    align-items: center;
  }
  .brz-pl .brz-pl__sleepwrap { grid-column: 1; grid-row: 1 / span 2; }
  .brz-pl .brz-pl__min { grid-column: 2; grid-row: 1; }
  .brz-pl .brz-pl__close { grid-column: 2; grid-row: 2; }
  .brz-pl .brz-pl__icon { width: 32px; height: 32px; }
  .brz-pl .brz-pl__icon svg { width: 18px; height: 18px; }
  .brz-pl .brz-pl__min,
  .brz-pl .brz-pl__close { width: 27px; height: 27px; }
  .brz-pl .brz-pl__min svg,
  .brz-pl .brz-pl__close svg { width: 15px; height: 15px; }
  .brz-pl .brz-pl__topic-pre { display: none; }
  .brz-pl .brz-pl__menu { left: auto; right: -60px; translate: none; }
  .brz-pl .brz-pl__mini { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 14px; }
}
@media (max-width: 380px) {
  .brz-pl .brz-pl__art,
  .brz-pl .brz-pl__station { width: 82px; }
  .brz-pl .brz-pl__art { margin-top: -33px; }
  .brz-pl .brz-pl__sleepwrap { display: none; }
  .brz-pl .brz-pl__side { grid-template-columns: auto; }
  .brz-pl .brz-pl__min,
  .brz-pl .brz-pl__close { grid-column: 1; }
}

@media print {
  .brz-pl,
  #brz-pl-spacer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .brz-pl *,
  .brz-pl *::before,
  .brz-pl *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .brz-pl.is-playing .brz-pl__eq i { transform: scaleY(.6); }
}
