/* Live broadcast: the bar under the navbar (every page), the LIVE tab on the side and the
   section under the home page slider. Plain CSS (no Tailwind build needed).
   Logical properties, so Arabic (RTL) and English (LTR) both work. */

:root {
  --lv-maroon: #4a0f20;
  --lv-maroon-mid: #330a16;
  --lv-maroon-deep: #220610;
  --lv-gold: #c9a24b;
  --lv-gold-light: #e8cb7d;
  --lv-gold-deep: #9a7627;
  --lv-paper: #faf7f2;
  --lv-red: #e0242c;
  --lv-gold-gradient: linear-gradient(135deg, #e8cb7d, #c9a24b 55%, #9a7627);
  --lv-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
}

/* ------------------------------------------------------------------------------------
   Room for the bar. The navbar is fixed on top and every page's first section already
   leaves room for it, so the bar takes the navbar's place in the page (padding-top) and
   <main> moves up by the same amount: the page content ends up just under the bar.
   ------------------------------------------------------------------------------------ */
.lv-has-bar {
  --lv-nav-h: 72px;          /* navbar at the top of the page */
  --lv-nav-h-scrolled: 64px; /* navbar once you scroll */
  --lv-bar-h: 64px;
}
@media (min-width: 640px) {
  .lv-has-bar { --lv-nav-h: 88px; --lv-nav-h-scrolled: 72px; }
}
@media (min-width: 768px) {
  .lv-has-bar { --lv-bar-h: 96px; }
}

/* Sticky: once you scroll, the bar stays right under the (slimmer) navbar */
.lv-bar-wrap {
  position: sticky;
  top: calc(var(--lv-nav-h-scrolled) - var(--lv-nav-h));
  z-index: 45; /* under the navbar (50), over the page */
  padding-top: var(--lv-nav-h);
  pointer-events: none; /* only the bar itself is clickable */
}
.lv-bar-wrap .lv-bar { pointer-events: auto; }
/* Pages with a dark header: dark behind the transparent navbar too (not once stuck) */
body[data-hero="dark"] .lv-bar-wrap:not(.lv-bar-wrap--stuck) { background: var(--lv-maroon-deep); }

.lv-has-bar #main { margin-top: calc(-1 * var(--lv-nav-h)); }

/* The home slider fills the screen under the navbar and the bar */
.lv-has-bar .home-slider {
  height: calc(100svh - var(--lv-bar-h));
}

/* ------------------------------------------------------------------------------------
   The bar
   ------------------------------------------------------------------------------------ */
.lv-bar {
  display: block;
  height: var(--lv-bar-h);
  color: var(--lv-paper);
  text-decoration: none;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(224, 36, 44, 0.12), transparent 55%),
    linear-gradient(90deg, var(--lv-maroon-deep), var(--lv-maroon) 50%, var(--lv-maroon-deep));
  border-block: 1px solid rgba(201, 162, 75, 0.18);
  box-shadow: 0 10px 30px rgba(34, 6, 16, 0.25);
}
.lv-bar:focus-visible { outline: 2px solid var(--lv-gold); outline-offset: -4px; }
.lv-bar,
.lv-bar__title,
.lv-pill,
.lv-btn { transition: height 0.3s ease, margin 0.3s ease, font-size 0.3s ease, padding 0.3s ease, filter 0.2s ease, transform 0.2s ease; }

/* Stuck under the navbar: slimmer. The space it gives up stays as margin, so the page
   under it does not jump while you scroll. */
@media (min-width: 768px) {
  .lv-bar-wrap--stuck .lv-bar { height: 64px; margin-bottom: calc(var(--lv-bar-h) - 64px); }
  .lv-bar-wrap--stuck .lv-pill { padding: 7px 14px; font-size: 14px; }
  .lv-bar-wrap--stuck .lv-btn { padding: 10px 22px; font-size: 15px; }
}
@media (min-width: 1024px) {
  .lv-bar-wrap--stuck .lv-bar__title { font-size: 22px; }
}

.lv-bar__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lv-bar__start {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.lv-bar__radio {
  display: none;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--lv-gold);
}
.lv-bar--on .lv-bar__radio { animation: lv-glow 2s ease-in-out infinite; }

.lv-bar__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--lv-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.lv-bar__divider {
  display: none;
  width: 1px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(250, 247, 242, 0.22);
}
.lv-bar__sub {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: rgba(250, 247, 242, 0.78);
}
.lv-bar__clock {
  margin-inline-start: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--lv-gold-light);
}

/* Small phones: just the "live" label and the button */
@media (max-width: 479px) {
  .lv-bar__title { display: none; }
}
@media (min-width: 768px) {
  .lv-bar__radio { display: block; }
  .lv-bar__title { font-size: 22px; }
}
@media (min-width: 1024px) {
  .lv-bar__start { gap: 20px; }
  .lv-bar__title { font-size: 30px; }
  .lv-bar__divider,
  .lv-bar__sub { display: block; }
}

/* "● مباشر الآن LIVE" */
.lv-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--lv-red);
  color: #fff;
  font-family: var(--lv-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(224, 36, 44, 0.35);
}
.lv-pill__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  animation: lv-blink 1.2s ease-in-out infinite;
}
.lv-pill__en {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0.85;
}
.lv-pill--soon {
  background: transparent;
  border: 1px solid rgba(201, 162, 75, 0.6);
  color: var(--lv-gold-light);
  box-shadow: none;
}
.lv-pill--soon .lv-pill__dot { background: var(--lv-gold); animation: none; }
@media (min-width: 768px) {
  .lv-pill { padding: 10px 18px; font-size: 16px; }
}

/* Gold button */
.lv-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--lv-gold-gradient);
  color: var(--lv-maroon-deep);
  font-family: var(--lv-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(201, 162, 75, 0.28);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.lv-btn__icon { width: 20px; height: 20px; flex-shrink: 0; }
.lv-btn__long { display: none; }
.lv-bar:hover .lv-btn,
.lv-bar:focus-visible .lv-btn,
.lv-btn:hover,
.lv-btn:focus-visible { filter: brightness(1.07); }
.lv-bar:hover .lv-btn { transform: translateY(-1px); }

@media (min-width: 768px) {
  .lv-btn { padding: 16px 30px; font-size: 17px; }
  .lv-btn__long { display: inline; }
  .lv-btn__short { display: none; }
}
.lv-btn--lg { margin-top: 36px; padding: 18px 34px; font-size: 17px; }

/* ------------------------------------------------------------------------------------
   Floating play button (templates/partials/live_tab.html): same side as the WhatsApp button
   (left in Arabic, right in English), in the middle of the screen, fixed while scrolling
   ------------------------------------------------------------------------------------ */
.lv-fab {
  position: fixed;
  top: 50%;
  inset-inline-end: 28px;
  z-index: 40;
  display: flex;
  width: 380px;
  flex-direction: column;
  align-items: center;
  /* the whole badge a little smaller than its design size, shrunk around its middle */
  transform: translateY(-50%) scale(var(--lv-fab-scale, 0.8));
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.lv-fab:focus-visible { outline: none; }
.lv-fab:focus-visible .lv-fab__pill { outline: 3px solid #fff; outline-offset: 4px; }

/* The pill and the circles centred on it */
.lv-fab__badge {
  position: relative;
  display: flex;
  height: 240px;
  align-items: center;
  justify-content: center;
}
.lv-fab__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(245, 214, 135, 0.95);
  box-shadow: 0 0 12px rgba(240, 205, 120, 0.5), inset 0 0 12px rgba(240, 205, 120, 0.2);
  pointer-events: none;
}
.lv-fab__circle--outer { width: 254px; height: 254px; margin: -127px 0 0 -127px; opacity: 0.85; }
.lv-fab__circle--inner {
  width: 206px;
  height: 206px;
  margin: -103px 0 0 -103px;
  animation: lv-fab-breathe 2.4s ease-in-out infinite;
}
/* keeps growing out of the circles and fading */
.lv-fab__ring {
  width: 254px;
  height: 254px;
  margin: -127px 0 0 -127px;
  box-shadow: none;
  animation: lv-fab-ring 2.4s ease-out infinite;
}

.lv-fab__pill {
  position: relative;
  display: flex;
  width: 340px;
  height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 46px;
  border: 4px solid transparent;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 45%, #b3142f 0%, #82091f 45%, #4a0512 80%, #33030c 100%) padding-box,
    linear-gradient(180deg, #fbe6a2 0%, #d2a548 30%, #8f6720 55%, #e6c06a 80%, #fff3c6 100%) border-box;
  box-shadow:
    0 0 16px rgba(240, 205, 120, 0.45),
    0 12px 30px rgba(0, 0, 0, 0.5),
    inset 0 10px 16px rgba(255, 255, 255, 0.07),
    inset 0 -12px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
.lv-fab:hover .lv-fab__pill { transform: scale(1.04); }
.lv-fab__dot {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffd0d0 0%, #ff4a4a 35%, #d4111f 75%);
  box-shadow: 0 0 10px 3px rgba(255, 40, 40, 0.75);
  animation: lv-blink 1.4s ease-in-out infinite;
}
.lv-fab__label {
  font-family: var(--lv-display);
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.lv-fab__sep { width: 2px; height: 46px; flex-shrink: 0; background: rgba(240, 210, 130, 0.8); }
.lv-fab__waves { width: 62px; height: 36px; flex-shrink: 0; color: #fff; }

.lv-fab__title {
  font-family: var(--lv-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
}
.lv-fab__sub {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lv-gold-light);
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
}

/* Smaller screens: just the pill and its circles, smaller, by the screen edge */
@media (max-width: 1023px) {
  .lv-fab { --lv-fab-scale: 0.85; width: auto; inset-inline-end: 12px; }
  .lv-fab__title, .lv-fab__sub { display: none; }
  .lv-fab__badge { height: 160px; }
  .lv-fab__pill { width: 206px; height: 54px; gap: 10px; padding: 0 26px; border-width: 3px; }
  .lv-fab__label { font-size: 18px; }
  .lv-fab__dot { width: 12px; height: 12px; }
  .lv-fab__sep { height: 28px; }
  .lv-fab__waves { width: 38px; height: 23px; }
  .lv-fab__circle--outer, .lv-fab__ring { width: 156px; height: 156px; margin: -78px 0 0 -78px; }
  .lv-fab__circle--inner { width: 126px; height: 126px; margin: -63px 0 0 -63px; }
}
/* Wider screens: centred under the live bar's "Watch the live stream" button, which sits at the
   edge of .site-container (max 1440px, 64px padding). The badge's box is 380px wide; the button is
   about 222px wide, so the badge's middle lines up with the button's middle. */
@media (min-width: 1024px) {
  .lv-fab {
    inset-inline-end: calc(max(64px, (100vw - 1440px) / 2 + 64px) + 111px - 190px);
  }
}
@keyframes lv-fab-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes lv-fab-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes lv-fab-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
/* Animations turned off on the device: no growing ring, only a slow gentle glow */
@media (prefers-reduced-motion: reduce) {
  .lv-fab__ring { animation: none; opacity: 0; }
  .lv-fab__circle--inner { animation: lv-fab-glow 3s ease-in-out infinite; }
  .lv-fab__dot { animation: none; }
}
@media print {
  .lv-fab { display: none; }
}

/* ------------------------------------------------------------------------------------
   Home page section under the slider
   ------------------------------------------------------------------------------------ */
.lv-home {
  position: relative;
  overflow: hidden;
  padding-block: 72px;
  color: var(--lv-paper);
  background:
    radial-gradient(ellipse at 85% 20%, rgba(74, 15, 32, 0.9), transparent 60%),
    linear-gradient(180deg, var(--lv-maroon-mid), var(--lv-maroon-deep));
  border-block: 1px solid rgba(201, 162, 75, 0.12);
}
@media (min-width: 1024px) {
  .lv-home { padding-block: 112px; }
}
.lv-home__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .lv-home__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
}

.lv-home__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #ff6b70;
}
.lv-home__dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lv-gold);
}
.lv-home__dot--on {
  background: var(--lv-red);
  box-shadow: 0 0 0 4px rgba(224, 36, 44, 0.2);
  animation: lv-blink 1.2s ease-in-out infinite;
}
.lv-home__rule { width: 48px; height: 1px; background: currentColor; opacity: 0.6; }

.lv-home__title {
  margin: 22px 0 0;
  font-family: var(--lv-display);
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.lv-home__title a { color: inherit; text-decoration: none; }
.lv-home__title a:hover { color: var(--lv-gold-light); }

.lv-home__lede {
  margin: 22px 0 0;
  max-width: 40em;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(250, 247, 242, 0.82);
}
.lv-home__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  font-size: 15px;
  color: rgba(250, 247, 242, 0.72);
}
.lv-home__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.lv-home__meta-icon { width: 18px; height: 18px; color: var(--lv-gold); }

.lv-home__timer { display: flex; gap: 10px; margin-top: 28px; direction: ltr; }
/* Read like a clock (days : hours : minutes : seconds), so in Arabic the seconds come first
   on the right; keep the boxes on the right side of the column */
[dir="rtl"] .lv-home__timer { justify-content: flex-end; }
.lv-home__unit {
  display: flex;
  min-width: 70px;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  background: rgba(250, 247, 242, 0.04);
}
.lv-home__unit b {
  font-family: var(--lv-display);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lv-gold-light);
}
.lv-home__unit small { margin-top: 2px; font-size: 12px; color: rgba(250, 247, 242, 0.65); }

/* Video card */
.lv-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lv-maroon-deep);
  border: 1px solid rgba(201, 162, 75, 0.35);
  box-shadow: 0 30px 70px rgba(10, 2, 5, 0.55);
  color: #fff;
  text-decoration: none;
}
.lv-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.lv-card:hover .lv-card__img { transform: scale(1.04); }
.lv-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 6, 16, 0.35) 0%, transparent 30%, transparent 55%, rgba(34, 6, 16, 0.9) 100%);
}
.lv-card__badge {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--lv-red);
  font-family: var(--lv-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.lv-card__badge--soon {
  background: rgba(34, 6, 16, 0.75);
  border: 1px solid rgba(201, 162, 75, 0.6);
  color: var(--lv-gold-light);
}
.lv-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lv-gold-gradient);
  color: var(--lv-maroon-deep);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(201, 162, 75, 0.18), 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lv-card:hover .lv-card__play,
.lv-card:focus-visible .lv-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 16px rgba(201, 162, 75, 0.2), 0 16px 40px rgba(0, 0, 0, 0.4);
}
/* the triangle points right in both languages; nudge it right so it looks centred */
.lv-card__play-icon { width: 34px; height: 34px; fill: currentColor; margin-left: 5px; }
.lv-card:focus-visible { outline: 2px solid var(--lv-gold); outline-offset: 4px; }

.lv-card__foot {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0 24px 18px;
}
.lv-card__progress {
  display: block;
  height: 3px;
  margin-bottom: 14px;
  background: rgba(250, 247, 242, 0.25);
}
.lv-card__progress > span { display: block; height: 100%; background: var(--lv-red); }
.lv-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.lv-card__brand { font-family: var(--lv-display); font-weight: 600; color: var(--lv-gold-light); }
.lv-card__since { display: inline-flex; align-items: center; gap: 8px; color: rgba(250, 247, 242, 0.85); }
.lv-card__since .lv-pill__dot { background: var(--lv-red); }
@media (max-width: 639px) {
  .lv-card__play { width: 64px; height: 64px; }
  .lv-card__play-icon { width: 26px; height: 26px; }
  .lv-card__foot { padding: 0 14px 12px; }
  .lv-card__row { font-size: 12px; }
}

@keyframes lv-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes lv-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-pill__dot, .lv-home__dot--on, .lv-bar--on .lv-bar__radio { animation: none; }
  .lv-card__img, .lv-card__play { transition: none; }
}
