/* dr-v2-reels.css — صفحة الفيديوهات v2 (/reels، Stitch _21). تحت .drv2 فقط ولا تُحمَّل إلا في v2/reels.blade.php.
   الفيديو سطح داكن بطبعه؛ فوقه تعتيم ثابت للقراءة (ليس زينة)، والأزرار دوائر 48px. بقية العناصر حسب DESIGN.md. ?v=1 */

.drv2 .rv-page { max-width: 560px; margin: 0 auto; padding: 12px var(--gutter) calc(84px + env(safe-area-inset-bottom, 0px)); }
.drv2 .rv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.drv2 .rv-head h1 { margin: 0; font-size: var(--fs-headline-md); line-height: var(--lh-headline-md); font-weight: 600; }
.drv2 .rv-head__count { min-width: 32px; padding: 2px 10px; border-radius: 9999px; background: var(--chip); color: var(--ink-2); font-size: var(--fs-label-sm); font-weight: 600; text-align: center; }
.drv2 .rv-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 16px; text-align: center; color: var(--ink-2); }
.drv2 .rv-empty p { margin: 0; }
.drv2 .rv-hint { margin: 12px 0 0; font-size: var(--fs-label-sm); color: var(--muted); text-align: center; }

/* التغذية: بطاقة واحدة في كل شاشة تقريباً، انطباق عمودي */
.drv2 .rv-feed { display: grid; gap: 12px; }
.drv2 .rl-card { position: relative; height: min(calc(100vh - 210px), 760px); min-height: 440px; border-radius: var(--r-card); overflow: hidden; background: var(--ink); color: #fff; scroll-margin-top: 72px; }
.drv2 .rl-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); cursor: pointer; }
.drv2 .rv-shade { position: absolute; inset: auto 0 0 0; height: 62%; background: rgba(28, 43, 91, .58); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); pointer-events: none; }

.drv2 .rv-round { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(28, 43, 91, .55); color: #fff; cursor: pointer; font: inherit; }
.drv2 .rv-round:focus-visible, .drv2 .rl-card a:focus-visible, .drv2 .rv-more:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.drv2 .rl-mute { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; }
.drv2 .rv-ic { display: inline-flex; }
.drv2 .rl-mute .rv-ic--on, .drv2 .rl-mute[aria-pressed="true"] .rv-ic--off { display: none; }
.drv2 .rl-mute[aria-pressed="true"] .rv-ic--on { display: inline-flex; }
.drv2 .rl-play-ind { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(28, 43, 91, .55); color: #fff; pointer-events: none; }
.drv2 .rl-card.paused .rl-play-ind { display: flex; }

/* عمود الإجراءات (يسار البطاقة في RTL) */
.drv2 .rl-actions { position: absolute; inset-inline-end: 12px; bottom: 150px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drv2 .rv-avatar { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 8px; border: 2px solid #fff; border-radius: 50%; overflow: hidden; background: var(--chip); color: var(--ink); font-weight: 700; }
.drv2 .rv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.drv2 .rl-act-count { margin-bottom: 8px; font-size: var(--fs-label-sm); font-weight: 600; color: #fff; }
.drv2 .rl-like-btn.liked { color: var(--coral); }
.drv2 .rl-like-btn.liked svg { fill: currentColor; }
.drv2 .rl-heart-pop { position: absolute; z-index: 4; font-size: 64px; line-height: 1; color: var(--coral); transform: translate(-50%, -50%); pointer-events: none; animation: rv-pop .8s ease-out forwards; }
@keyframes rv-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .drv2 .rl-heart-pop { animation: none; opacity: 0; } }

/* معلومات الطبيب والنص وزر الحجز */
.drv2 .rl-meta { position: absolute; inset: auto 12px 14px 12px; z-index: 2; display: grid; gap: 6px; }
.drv2 .rv-doc, .drv2 .rv-line, .drv2 .rv-text, .drv2 .rv-more { margin-inline-end: 64px; }
.drv2 .rv-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.drv2 .rv-doc strong { font-size: var(--fs-headline-sm); line-height: var(--lh-headline-sm); font-weight: 600; color: #fff; }
.drv2 .rv-line { display: flex; align-items: center; gap: 4px; margin-top: 0; margin-bottom: 0; font-size: var(--fs-label-md); line-height: var(--lh-label-md); color: #E9ECF6; }
.drv2 .rv-text { margin-top: 0; margin-bottom: 0; font-size: var(--fs-body-md); line-height: var(--lh-body-md); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.drv2 .rv-text.is-open { -webkit-line-clamp: unset; display: block; max-height: 9.6em; overflow-y: auto; }
.drv2 .rv-more { justify-self: start; min-height: 32px; padding: 0; border: 0; background: transparent; color: #E9ECF6; font: inherit; font-size: var(--fs-label-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.drv2 .rv-cta { margin-top: 6px; justify-content: space-between; gap: 8px; padding: 6px 16px; min-height: 52px; text-align: start; }
.drv2 .rv-cta span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.drv2 .rv-cta small { flex: none; padding: 2px 8px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .45); font-size: var(--fs-label-sm); font-weight: 600; }
.drv2 .rv-progress { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(255, 255, 255, .25); direction: ltr; }
.drv2 .rv-progress i { display: block; width: 0; height: 100%; background: var(--coral); }

/* ورقة التعليقات: سطح أبيض بحد، خلفية حبر 32% بلا ضباب */
.drv2 .rl-comments-overlay { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-end; justify-content: center; background: rgba(28, 43, 91, .32); }
.drv2 .rl-comments-overlay.open { display: flex; }
.drv2 .rl-comments-sheet { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 76vh; background: var(--card); border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 16px 16px 0 0; }
.drv2 .rl-comments-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.drv2 .rl-comments-head h2 { margin: 0; font-size: var(--fs-headline-sm); font-weight: 600; }
.drv2 .rl-comments-list { flex: 1; overflow-y: auto; padding: 12px 16px; display: grid; gap: 12px; align-content: start; min-height: 120px; }
.drv2 .rl-comments-empty { padding: 24px 0; text-align: center; color: var(--muted); font-size: var(--fs-label-md); }
.drv2 .rl-comment-body { padding: 10px 12px; border-radius: var(--r-12); background: var(--chip); }
.drv2 .rl-comment-name { margin: 0; font-size: var(--fs-label-md); font-weight: 600; }
.drv2 .rl-comment-time { font-size: var(--fs-caption); font-weight: 400; color: var(--muted); }
.drv2 .rl-comment-text { margin: 2px 0 0; font-size: var(--fs-body-md); line-height: var(--lh-body-md); overflow-wrap: anywhere; }
.drv2 .rl-comments-form { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); }
.drv2 .rl-comments-form .v2-input { flex: 1; min-width: 0; }
.drv2 .rl-comments-login { padding: 16px; border-top: 1px solid var(--border); text-align: center; font-size: var(--fs-label-md); }
.drv2 .rl-comments-login a { font-weight: 600; text-decoration: underline; }

@media (min-width: 768px) { .drv2 .rv-page { padding-bottom: 32px; } .drv2 .rl-card { height: min(calc(100vh - 150px), 820px); } }
