/* rb-opt-div.css – الفواصل بين الأقسام (كل خانة تختار نوعها: html[data-div1|2|3])
   بدون إضاءة ولا توهج، حركة هادية، كل الشرايط تملأ العرض كامل. */
.divx { position: relative; z-index: 1; width: 100%; overflow: hidden; overflow: clip; color: var(--ink); }
.divx[data-type="8"], .divx:empty { display: none; }

/* ---- الشريط المتحرك المشترك: المسار LTR من اليسار، نسختين، 0 ← -50% ---- */
.dv-band { position: relative; direction: ltr; overflow: hidden; }
.dv-track { display: flex; width: max-content; will-change: transform; animation: dvMove var(--dur, 60s) linear infinite; animation-play-state: paused; }
.dv-band.rev .dv-track { animation-direction: reverse; }
.divx.run .dv-track { animation-play-state: running; }
.dv-set { display: flex; flex: none; align-items: center; }
@keyframes dvMove { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ١ · شريطين متقاطعين */
.divx[data-type="1"] { height: clamp(128px, 14vw, 176px); display: grid; align-items: center; }
.divx[data-type="1"] .dv-band { grid-area: 1 / 1; width: calc(100% + 200px); margin-inline-start: -100px; }
.cx-lime { background: var(--lime); color: #0B0B0F; transform: rotate(-3deg); z-index: 2; }
.cx-pur { background: var(--pur); color: #0B0B0F; transform: rotate(2.4deg); z-index: 1; }
.cx-lime .dv-it, .cx-pur .dv-it { white-space: nowrap; font: 800 clamp(18px, 2.2vw, 28px)/1 var(--f-num); letter-spacing: .5px; text-transform: uppercase; padding: clamp(14px, 1.6vw, 20px) 0; }
.cx-pur .dv-it { font-weight: 700; font-size: clamp(15px, 1.7vw, 21px); padding-block: clamp(11px, 1.3vw, 16px); }
.cx-lime .cx-st { width: clamp(16px, 1.8vw, 22px); height: auto; margin: 0 clamp(18px, 2vw, 28px); fill: #0B0B0F; flex: none; }
.cx-pur .cx-dot { width: 8px; height: 8px; border-radius: 50%; background: #0B0B0F; margin: 0 clamp(18px, 2vw, 26px); flex: none; }

/* ٢ · شريط التصاميم */
.divx[data-type="2"] { padding-block: clamp(12px, 2vw, 24px); }
.reel { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.reel .dv-it { flex: none; padding: 0 clamp(14px, 2vw, 28px); }
.reel img { height: clamp(96px, 11vw, 150px); width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }

/* ٣ · أحداث لايف */
.divx[data-type="3"] { background: var(--panel); border-block: 1px solid var(--line); }
.tick { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tick .dv-set { padding-block: 16px; }
.tick .tk-ev { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-inline-end: 14px; padding: 0 16px 0 6px; padding-inline: 6px 16px; border-radius: 999px;
    background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; font-size: 14px; color: #a9a8b5; }
.tick .tk-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--f-num); font-style: normal; color: #0B0B0F; background: var(--c); flex: none; }
.tick .tk-av.sym { font-size: 15px; }
.tick .tk-ev b { font: 600 14px var(--f-num); color: #fff; }
.tick .tk-ev em { font-style: normal; }
.tick .tk-ev s { text-decoration: none; font: 700 14px var(--f-num); color: var(--c); }
.tk-tag { position: absolute; z-index: 2; top: 50%; right: var(--gut); translate: 0 -50%; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
    border-radius: 999px; background: var(--lime); color: #0B0B0F; font: 800 12px var(--f-num); letter-spacing: 2px; box-shadow: 0 0 0 6px var(--panel); }
.tk-tag i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B5C; }

/* ٤ · المنصات والبرامج (ثابت) */
.divx[data-type="4"] { border-block: 1px solid var(--line); background: linear-gradient(var(--panel), var(--panel)) padding-box; }
.pl-in { max-width: var(--wrap); margin: 0 auto; padding: clamp(18px, 2.4vw, 28px) var(--gut); display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.pl-g { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); flex-wrap: wrap; justify-content: center; }
.pl-x { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(15px, 1.5vw, 18px) var(--f-num); color: #fff; direction: ltr; }
.pl-x svg { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: #0B0B0F; border: 1px solid var(--line-2); border-top: 2px solid var(--c); }
.pl-sep { width: 1px; height: 30px; background: var(--line-2); }
.pl-ap { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); font: 600 13.5px var(--f-num); color: #d9d8e2; direction: ltr; white-space: nowrap; }

/* ٥ · مسطرة المخطط (ثابت) – نفس شبكة الهيرو 64px */
.divx[data-type="5"] { height: clamp(110px, 11vw, 140px); }
.bp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px; background-position: center 6px; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.bp-line { position: absolute; inset-inline: 0; top: 50%; border-top: 1px dashed rgba(203, 242, 116, .4); }
.bp-ticks { position: absolute; inset-inline: 0; top: calc(50% - 6px); height: 12px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 16px); background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.bp-mk { position: absolute; top: 50%; width: 10px; height: 10px; margin-right: -5px; translate: 0 -50%; background: var(--lime); }
.bp-lb { position: absolute; top: calc(50% + 10px); font: 600 11px var(--f-num); color: rgba(203, 242, 116, .6); direction: ltr; letter-spacing: 1px; white-space: nowrap; }
.bp-lb.b { top: auto; bottom: calc(50% + 10px); }
.bp-cell { position: absolute; top: calc(50% - 64px); width: 64px; height: 64px; background: rgba(163, 118, 251, .08); border: 1px solid rgba(163, 118, 251, .22); }
.bp-cell.l { top: 50%; background: rgba(203, 242, 116, .06); border-color: rgba(203, 242, 116, .2); }
.bp-st { position: absolute; top: 50%; right: 20%; width: clamp(92px, 9vw, 120px); height: auto; translate: 0 -50%; rotate: -6deg; }

/* ٦ · رقم كبير */
.divx[data-type="6"] { padding: clamp(26px, 4vw, 48px) var(--gut); }
.bn-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.bn-rule { flex: 1; height: 1px; background: var(--line-2); min-width: 20px; }
.bn-t { display: flex; align-items: baseline; gap: clamp(10px, 1.6vw, 20px); white-space: nowrap; }
.bn-n { font: 800 clamp(40px, 6.4vw, 88px)/1 var(--f-num); color: var(--lime); letter-spacing: -1px; font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: center; }
.bn-t span { font: 500 clamp(16px, 2vw, 26px)/1.2 var(--f-title); color: #fff; }
.bn-sub { display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px); margin-top: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.bn-sub b { font: 700 14px var(--f-num); color: #fff; }

/* ٧ · نبض البث – منحنى لايكات ينرسم من اليمين لليسار مرة وحدة */
.divx[data-type="7"] { padding: clamp(18px, 3vw, 34px) 0 clamp(26px, 3vw, 34px); }
.pu-in { position: relative; height: clamp(96px, 10vw, 130px); }
.pu-draw { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); transition: clip-path 2.6s var(--ease); }
.divx.drawn .pu-draw { clip-path: inset(0 0 0 0); }
.pu-svg { width: 100%; height: 100%; display: block; overflow: visible; transform: scaleX(-1); }
.pu-area { fill: rgba(163, 118, 251, .1); }
.pu-line { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linejoin: round; }
.pu-pin { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity var(--t-3) var(--ease); }
.divx.drawn .pu-pin { opacity: 1; }
.divx.drawn .pu-pin.p1 { transition-delay: .7s; } .divx.drawn .pu-pin.p2 { transition-delay: 1.3s; } .divx.drawn .pu-pin.p3 { transition-delay: 2s; }
.pu-pin i { position: absolute; width: 10px; height: 10px; left: -5px; top: -5px; background: var(--c); border: 2px solid var(--bg); }
.pu-pin em { position: absolute; bottom: 12px; left: 0; translate: var(--tx, -50%) 0; font-style: normal; white-space: nowrap; height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
    border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); border-top: 2px solid var(--c); font-size: 12.5px; color: #e4e3ec; }
.pu-pin em b { font: 600 12.5px var(--f-num); color: #fff; }
.pu-ax { position: absolute; bottom: -22px; font: 600 11px var(--f-num); color: var(--dim); letter-spacing: 1px; }
.pu-ax.s { right: var(--gut); } .pu-ax.e { left: var(--gut); }

/* ---- الجوال ---- */
@media (max-width: 640px) {
    .divx[data-type="1"] .dv-band { width: calc(100% + 120px); margin-inline-start: -60px; }
    .divx[data-type="1"] { height: 150px; }
    .cx-lime { transform: translateY(-20px) rotate(-4deg); } .cx-pur { transform: translateY(22px) rotate(3.4deg); }
    .tk-tag { display: none; }
    .tick .tk-ev { height: 40px; font-size: 13px; }
    .pl-sep { display: none; }
    .pl-x svg { width: 30px; height: 30px; }
    .pl-ap { height: 32px; padding: 0 12px; font-size: 12.5px; }
    .bp-cell, .bp-lb.b { display: none; }
    .bp-st { width: 84px; }
    .bn-in { flex-direction: column; gap: 10px; }
    .bn-rule { width: 64px; flex: none; }
    .bn-t { flex-direction: column; align-items: center; gap: 8px; }
    .pu-pin.p2 em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dv-track { animation: none; }
    .pu-draw, .pu-pin { transition: none; }
}
