/**
 * منشورات جنوب — أرشيف ستوري مصغّر + فلاير مفرد · فاتح/داكن.
 */

.jf-mub-list {
  --jf-mub-ink: #1a1c1e;
  --jf-mub-soft: #f4f1ef;
  --jf-mub-line: #e6dfdb;
  padding-block: 0.65rem 1.35rem;
  padding-inline: var(--jf-pad-x, 0.85rem);
  max-width: var(--jf-max, 720px);
  margin-inline: auto;
}

.jf-mub-list__hero {
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.95rem 0.75rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(227, 0, 15, 0.12), transparent 55%),
    linear-gradient(165deg, #fff 0%, var(--jf-mub-soft) 100%);
  border: 1px solid var(--jf-mub-line);
}

.jf-mub-list__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--jf-primary, #e3000f);
}

.jf-mub-list__title {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 900;
  color: var(--jf-mub-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.jf-mub-list__sub {
  margin: 0.3rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jf-muted, #667085);
  line-height: 1.4;
  max-width: 40ch;
}

.jf-mub-list__count {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--jf-muted, #667085);
}

.jf-mub-list__hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.jf-mub-list__add {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 36px;
  padding-inline: 0.85rem;
  font-size: 0.78rem;
}

.jf-mub-story--add {
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  font-family: var(--jf-font, Cairo, sans-serif);
  text-align: start;
}

.jf-mub-story__wash--add {
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(160deg, #2a060a 0%, #5a0a12 45%, #1a1a1a 100%);
}

.jf-mub-story__add-mark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  padding-bottom: 1.5rem;
}

.jf-mub-story--add .jf-mub-story__title {
  color: #fff;
  font-weight: 900;
}

/* ——— شبكة ستوري مصغّرة ——— */
.jf-mub-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 520px) {
  .jf-mub-stories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.jf-mub-story {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1a1a1a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jf-mub-story:hover,
.jf-mub-story:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  outline: none;
}

.jf-mub-story__frame {
  position: absolute;
  inset: 0;
}

.jf-mub-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jf-mub-story__wash {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(160deg, #5a0a12 0%, #e3000f 48%, #7a1a28 100%);
}

.jf-mub-story__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 28%, transparent 48%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.jf-mub-story__top {
  position: absolute;
  inset-inline: 0.4rem;
  top: 0.4rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.jf-mub-story__live {
  display: inline-flex;
  align-items: center;
  min-height: 1.15rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: var(--jf-primary, #e3000f);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.jf-mub-story__time {
  font-size: 0.52rem;
  font-weight: 700;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
}

.jf-mub-story__foot {
  position: absolute;
  inset-inline: 0.4rem;
  bottom: 0.45rem;
  z-index: 1;
}

.jf-mub-story__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.jf-mub-list__empty {
  padding: 1.35rem 1rem;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--jf-mub-line);
  background: var(--jf-card, #fff);
}

.jf-mub-list__empty p {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--jf-muted, #667085);
}

.jf-mub-list__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ——— فلاير مفرد ——— */
.jf-mub-single {
  padding-block: 0.45rem 1.5rem;
  padding-inline: var(--jf-pad-x, 0.85rem);
  max-width: 420px;
  margin-inline: auto;
}

.jf-mub-single__back {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.jf-mub-single__back a {
  color: var(--jf-muted, #667085);
  text-decoration: none;
}

.jf-mub-single__back a:hover,
.jf-mub-single__back a:focus-visible {
  color: var(--jf-primary, #e3000f);
}

.jf-mub-flyer {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.jf-mub-flyer__stage {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: min(78vh, 720px);
  overflow: hidden;
  background: #1a1a1a;
}

.jf-mub-flyer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jf-mub-flyer__bg--wash {
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(165deg, #2a060a 0%, #e3000f 42%, #4a0c14 100%);
}

.jf-mub-flyer__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 32%, transparent 42%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.jf-mub-flyer__head {
  position: absolute;
  inset-inline: 0.9rem;
  top: 0.85rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jf-mub-flyer__brand {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.jf-mub-flyer__badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(227, 0, 15, 0.92);
  font-size: 0.65rem;
  font-weight: 800;
}

.jf-mub-flyer__copy {
  position: absolute;
  inset-inline: 0.95rem;
  bottom: 1rem;
  z-index: 1;
}

.jf-mub-flyer__date {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.9;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: end;
}

.jf-mub-flyer__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.jf-mub-flyer__deck {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0.95;
  max-width: 34ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.jf-mub-flyer__body {
  padding: 1rem 1.05rem 0.35rem;
  background: #faf7f2;
  color: #1a1714;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.75;
}

.jf-mub-flyer__body p {
  margin: 0 0 0.8rem;
}

.jf-mub-flyer__body p:last-child {
  margin-bottom: 0;
}

.jf-mub-flyer__quiet {
  color: #6b6560;
  font-style: italic;
}

.jf-mub-flyer--text .jf-mub-flyer__stage {
  aspect-ratio: 3 / 4;
  max-height: min(62vh, 560px);
}

.jf-mub-flyer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1.05rem 0.95rem;
  background: #faf7f2;
  border-top: 1px solid #e8e0d8;
  color: #1a1714;
}

.jf-mub-flyer__tagline {
  font-size: 0.68rem;
  font-weight: 800;
  color: #5c5650;
}

.jf-mub-flyer__share {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--jf-primary, #e3000f);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

html.dark .jf-mub-list,
body.dark-mode .jf-mub-list {
  --jf-mub-ink: var(--jf-ink, #f0f0f0);
  --jf-mub-soft: #161a1f;
  --jf-mub-line: var(--jf-border, #2a2a2a);
}

html.dark .jf-mub-list__hero,
body.dark-mode .jf-mub-list__hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(227, 0, 15, 0.2), transparent 55%),
    linear-gradient(165deg, #1a1f26 0%, var(--jf-mub-soft) 100%);
  border-color: var(--jf-mub-line);
}

html.dark .jf-mub-flyer__body,
html.dark .jf-mub-flyer__foot,
body.dark-mode .jf-mub-flyer__body,
body.dark-mode .jf-mub-flyer__foot {
  background: #171512;
  color: #f3eee6;
  border-color: #2e2a25;
}

html.dark .jf-mub-flyer__tagline,
body.dark-mode .jf-mub-flyer__tagline {
  color: #a89f94;
}
