/* ╔══════════════════════════════════════════════════════════════════╗
   ║  بطاقات الحلقات بالصور + شريط «وين وصلت» المسحوب (أكتوبر ٢٠٢٦)   ║
   ║  يتحمّل بعد v3.css. كل @media في آخر الملف عمداً.                 ║
   ╚══════════════════════════════════════════════════════════════════╝ */
:root { --us-seen: #2fd38a; --us-skip: #6f9bff; --us-later: #ffa94d; }

/* ═══════════ «وصلت إلى الحلقة»: الشريط ═══════════ */
.where--v4 { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px 16px; }
.wh-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wh-stats { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.wh-st { display: flex; flex-direction: column; justify-content: center; min-width: 78px; padding: 7px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); line-height: 1.2; text-align: center; }
.wh-st b { font: 400 24px/1.1 var(--fd); color: #fff; }
.wh-st small { font-size: 12px; font-weight: 700; color: var(--mut); }
.wh-st--pct { background: color-mix(in srgb, var(--acc) 18%, transparent); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.wh-st--pct b { color: var(--gold2); }
.wh-st--time { flex-direction: row; align-items: center; gap: 10px; text-align: start; }
.wh-st--time > svg { width: 24px; height: 24px; color: var(--hi); flex: 0 0 auto; }
.wh-st--time span { display: flex; flex-direction: column; }
.wh-st--time b { font: 800 17px/1.2 var(--fb, inherit); }

.wh-slide { display: flex; align-items: center; gap: 12px; }
.wh-step { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); }
.wh-step:hover:not(:disabled) { background: color-mix(in srgb, var(--acc) 28%, transparent); border-color: var(--acc); }
.wh-step:disabled { opacity: .35; }
.wh-track { position: relative; flex: 1; min-width: 0; height: 64px; cursor: grab; touch-action: none; outline: 0; -webkit-user-select: none; user-select: none; }
.wh-track.drag { cursor: grabbing; }
.wh-rail { position: absolute; inset-inline: 0; top: 22px; height: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); overflow: hidden; }
/* الموسم الحالي أوضح شوي، وأسماء المواسم تحت الشريط */
.wh-seg { position: absolute; top: 0; bottom: 0; }
.wh-seg.cur { background: rgba(255, 255, 255, .07); }
.wh-seg em { position: absolute; top: 22px; inset-inline: 0; text-align: center; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.wh-rail { overflow: visible; }
.wh-rail::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); pointer-events: none; }
.wh-seg.cur em { color: var(--gold2); }
.wh-seg.done em { color: var(--ink2); }
.wh-fill { position: absolute; top: 0; bottom: 0; right: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 18px -2px color-mix(in srgb, var(--acc) 70%, transparent); }
.wh-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-right: -1px; background: rgba(255, 255, 255, .45); border-radius: 2px; }
.wh-thumb { position: absolute; top: 12px; width: 36px; height: 36px; transform: translateX(50%); display: grid; place-items: center; border-radius: 50%; background: #fff; color: #120d24; box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 45%, transparent), 0 8px 20px -6px #000; transition: transform .15s, box-shadow .15s; }
.wh-thumb b { font-size: 12.5px; font-weight: 800; }
.wh-track:hover .wh-thumb, .wh-track:focus-visible .wh-thumb, .wh-track.drag .wh-thumb { transform: translateX(50%) scale(1.15); box-shadow: 0 0 0 8px color-mix(in srgb, var(--acc) 40%, transparent), 0 10px 24px -6px #000; }
.wh-track:not(.drag) .wh-thumb, .wh-track:not(.drag) .wh-fill { transition: right .25s, width .25s, transform .15s; }
/* نقاط علاماتك فوق الشريط */
.wh-dots { position: absolute; inset-inline: 0; top: 4px; height: 12px; }
.wh-dot { position: absolute; top: 0; width: 10px; height: 10px; margin-right: -5px; border-radius: 50%; border: 2px solid #0b0a1a; }
.wh-dot--s { background: var(--us-skip); box-shadow: 0 0 8px var(--us-skip); }
.wh-dot--l { background: var(--us-later); box-shadow: 0 0 8px var(--us-later); }
.wh-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.wh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wh-legend .wh-dot { position: static; margin: 0; }
/* المعاينة اللي تطلع وأنت تسحب: صورة الحلقة ورقمها */
.wh-tip { position: absolute; bottom: calc(100% + 6px); width: 184px; z-index: 5; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--solid); border: 1.5px solid var(--acc); box-shadow: 0 18px 40px -12px #000; pointer-events: none; }
.wh-tip[hidden] { display: none; }
.wh-tip-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad); }
.wh-tip-img img { position: absolute; left: -5%; top: -6%; width: 140%; max-width: none; height: auto; }
.wh-tip-img > span { display: grid; place-items: center; height: 100%; font: 400 38px/1 var(--fd); color: var(--grad-ink); }
.wh-tip--noimg .wh-tip-img { aspect-ratio: auto; height: 64px; }
.wh-tip-t { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 8px 10px; }
.wh-tip-t small { font-size: 11.5px; font-weight: 700; color: var(--mut); }
.wh-tip-t b { grid-row: span 2; order: -1; font: 400 28px/1 var(--fd); color: var(--gold2); }
.wh-tip-t em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-acts { display: flex; gap: 10px; }
.wh-acts .btn { flex: 1; height: 56px; border-radius: 17px; font-size: 16px; gap: 10px; justify-content: center; }
.wh-resume svg { color: var(--hi); }
.where--v4 .wh-done { flex: 1; }

/* ═══════════ بطاقات الحلقات بالصور ═══════════ */
.eps-grid--pic { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ept--pic { flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 20px; border-width: 2px; }
.ept--pic::before { display: none; }
.ept--pic:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 22px 40px -22px #000; }
.ept-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--plate3), var(--plate)); }
/* صورة TRT فيها «62.BÖLÜM» تحت ووجه أرطغرل يمين — نكبّرها ونمسكها من فوق يسار فيختفون */
.ept-pic img { position: absolute; left: -5%; top: -6%; width: 140%; max-width: none; height: auto; transition: transform .35s; }
.ept--pic:hover .ept-pic img { transform: scale(1.06); }
.ept-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 45%); pointer-events: none; }
/* رقم الحلقة على اليسار */
.ept-num { position: absolute; z-index: 1; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 8px 4px; border-radius: 14px; background: var(--grad); color: var(--grad-ink); line-height: 1; box-shadow: 0 8px 18px -8px #000; }
.ept-num small { font-size: 10.5px; font-weight: 700; opacity: .85; }
.ept-num b { font: 400 26px/1.05 var(--fd); }
.ept-us { position: absolute; z-index: 1; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 10px; font-size: 13px; font-weight: 800; color: #0b0a14; box-shadow: 0 6px 16px -6px #000; }
.ept-us svg { width: 16px; height: 16px; }
.ept-us--seen { background: var(--us-seen); }
.ept-us--uskip { background: var(--us-skip); }
.ept-us--later { background: var(--us-later); }
.ept-us--next { background: #fff; }
.ept-r { position: absolute; z-index: 1; right: 10px; bottom: 9px; background: rgba(0, 0, 0, .65); }
.ept--pic .ept-b { gap: 8px; padding: 12px 14px 14px; }
.ept--pic .ept-t { font-size: 15.5px; font-weight: 800; -webkit-line-clamp: 2; min-height: 2.9em; }
.ept-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ept-tl { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.ept-tl--hi { color: #4fe39b; } .ept-tl--mid { color: #ffb547; } .ept-tl--lo { color: #ff6b6b; }
/* حالتك تصرخ: لون الحدّ + تعبئة خفيفة + الشارة المكتوبة فوق */
.ept--pic.us-seen { border-color: color-mix(in srgb, var(--us-seen) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--us-seen) 14%, transparent), transparent 70%), var(--plate2); opacity: 1; }
.ept--pic.us-uskip { border-color: color-mix(in srgb, var(--us-skip) 70%, transparent); border-style: dashed; background: linear-gradient(180deg, color-mix(in srgb, var(--us-skip) 14%, transparent), transparent 70%), var(--plate2); }
.ept--pic.us-later { border-color: color-mix(in srgb, var(--us-later) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--us-later) 14%, transparent), transparent 70%), var(--plate2); }
.ept--pic.ept--must:not([class*='us-']) { border-color: rgba(255, 211, 90, .6); }
.ept--pic.next { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 35%, transparent); }
.tag--later { background: color-mix(in srgb, var(--us-later) 20%, transparent); color: var(--us-later); }
.tag--uskip { background: color-mix(in srgb, var(--us-skip) 20%, transparent); color: var(--us-skip); }
.ept.flash { animation: eptFlash 1.6s ease-out; }
@keyframes eptFlash { 0%, 30% { box-shadow: 0 0 0 6px var(--hi); } 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 35%, transparent); } }

/* ═══════════ نافذة الحلقة: الصورة فوق وأزرار حالتك ═══════════ */
.epm-pic { position: relative; aspect-ratio: 21 / 9; margin: -6px 0 2px; border-radius: 18px; overflow: hidden; background: var(--plate3); }
.epm-pic img { position: absolute; left: -4%; top: -12%; width: 128%; max-width: none; height: auto; }
.epm-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--solid), transparent 55%); }
.epm--pic .epm-h { margin-top: -54px; position: relative; z-index: 1; }
.epm-us { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.us-b { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 2px solid var(--line2); text-align: start; transition: .15s; --uc: var(--us-seen); }
.us-b--skip { --uc: var(--us-skip); }
.us-b--later { --uc: var(--us-later); }
.us-b > svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--uc); }
.us-b span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.us-b b { font-size: 15px; font-weight: 800; }
.us-b small { font-size: 11.5px; font-weight: 600; color: var(--mut); }
.us-b:hover { border-color: var(--uc); background: color-mix(in srgb, var(--uc) 12%, transparent); }
.us-b.on { background: var(--uc); border-color: var(--uc); color: #0b0a14; }
.us-b.on > svg, .us-b.on small { color: #0b0a14; }

/* ═══════════ الشاشات الصغيرة (آخر الملف عمداً) ═══════════ */
@media (max-width: 900px) {
  .eps-grid--pic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wh-top { flex-direction: column; align-items: stretch; }
  .wh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wh-st--time { grid-column: auto; }
}
@media (max-width: 600px) {
  .where--v4 { padding: 14px; gap: 12px; }
  .wh-stats { grid-template-columns: 1fr 1fr; }
  .wh-st--time { grid-column: 1 / -1; justify-content: center; }
  .wh-slide { gap: 6px; }
  .wh-step { width: 40px; height: 40px; border-radius: 12px; }
  .wh-seg em { font-size: 11px; }
  .wh-seg em span { display: none; }
  .wh-acts { flex-direction: column; }
  .wh-acts .btn { height: 52px; }
  .ept--pic { border-radius: 16px; }
  .ept-num { left: 6px; top: 6px; min-width: 42px; padding: 4px 6px 3px; border-radius: 11px; }
  .ept-num b { font-size: 20px; }
  .ept-num small { font-size: 9px; }
  .ept-us { right: 6px; top: 6px; height: 24px; padding: 0 7px; font-size: 11px; border-radius: 8px; }
  .ept-us svg { width: 13px; height: 13px; }
  .ept-r { right: 6px; bottom: 6px; font-size: 11px; }
  .ept--pic .ept-b { padding: 9px 10px 11px; gap: 6px; }
  .ept--pic .ept-t { font-size: 13.5px; }
  .ept-meta .tag, .ept-tl { font-size: 11px; }
  .epm-us { grid-template-columns: 1fr; }
  .epm-pic { aspect-ratio: 16 / 8; }
}
