/* =====================================================================
   Assets/css/pages/videos.css — قسم الفيديوهات (الواجهة)
   يعتمد على متغيرات الموقع في style3/css/style.css (--amz-*, --color-*, --radius-*)
   ===================================================================== */
.vd-wrap { max-width: 1640px; margin: 0 auto; padding: 18px 16px 40px; }
.vd-surface { background: var(--color-surface); }

/* ---------- الشريط العلوي ---------- */
.vd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.vd-top__title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; margin: 0; color: var(--color-text); }
.vd-top__title .vd-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--amz-navy); color: var(--amz-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.vd-search { flex: 1 1 320px; max-width: 560px; display: flex; margin-inline: auto; }
.vd-search input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--color-border); border-inline-end: 0; border-radius: var(--radius-pill) 0 0 var(--radius-pill); padding: 0 16px; font-size: .92rem; background: #fff; }
[dir="rtl"] .vd-search input { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.vd-search input:focus { outline: none; border-color: var(--amz-orange); box-shadow: 0 0 0 3px rgba(255, 164, 28, .2); }
.vd-search button { width: 56px; height: 40px; border: 1px solid var(--color-border); background: var(--amz-yellow); border-radius: 0 var(--radius-pill) var(--radius-pill) 0; color: var(--color-text); }
[dir="rtl"] .vd-search button { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.vd-search button:hover { background: var(--amz-yellow-hov); }
.vd-top__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- الأزرار ---------- */
.vd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid transparent; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.vd-btn--primary { background: var(--amz-yellow); border-color: #fcd200; color: var(--color-text); }
.vd-btn--primary:hover { background: var(--amz-yellow-hov); color: var(--color-text); }
.vd-btn--accent { background: var(--amz-orange); color: var(--color-text); }
.vd-btn--accent:hover { background: var(--amz-orange-hov); color: var(--color-text); }
.vd-btn--ghost { background: #f0f2f2; color: var(--color-text); }
.vd-btn--ghost:hover { background: #e3e6e6; color: var(--color-text); }
.vd-btn--dark { background: var(--amz-navy); color: #fff; }
.vd-btn--dark:hover { background: #232f3e; color: #fff; }
.vd-btn--danger { background: #fff; border-color: #f1c3b6; color: var(--amz-red); }
.vd-btn--danger:hover { background: #fdf0ec; color: var(--amz-red); }
.vd-btn.is-on { background: var(--amz-navy); color: #fff; }
.vd-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- الشرائح (chips) ---------- */
.vd-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.vd-chips::-webkit-scrollbar { display: none; }
.vd-chip { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 9px; background: #e3e6e6; color: var(--color-text); font-size: .86rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: background var(--t-fast); }
.vd-chip:hover { background: #d5d9d9; color: var(--color-text); }
.vd-chip.is-active { background: var(--amz-navy); color: #fff; }

/* ---------- البطل (فيديو مميّز) ---------- */
.vd-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; background: linear-gradient(135deg, var(--amz-navy) 0%, #232f3e 100%); color: #fff; border-radius: var(--radius-lg); padding: 18px; margin-bottom: 26px; overflow: hidden; }
.vd-hero .vd-thumb { border-radius: var(--radius-md); }
.vd-hero__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.vd-hero__badge { align-self: flex-start; background: var(--amz-orange); color: var(--color-text); font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-pill); }
.vd-hero__title { font-size: 1.5rem; font-weight: 800; line-height: 1.35; margin: 0; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vd-hero__title a { color: inherit; text-decoration: none; }
.vd-hero__desc { color: #c9d1d9; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.vd-hero__meta { color: #aab4be; font-size: .85rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-hero .vd-btn--primary { align-self: flex-start; height: 42px; padding: 0 22px; }

/* ---------- الشبكة والبطاقة ---------- */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px 16px; }
.vd-card { min-width: 0; }
.vd-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0f1111; border-radius: var(--radius-lg); overflow: hidden; }
.vd-thumb img, .vd-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.vd-card:hover .vd-thumb img { transform: scale(1.03); }
.vd-thumb .vd-preview { opacity: 0; z-index: 1; }
.vd-thumb.is-previewing .vd-preview { opacity: 1; }
.vd-dur { position: absolute; bottom: 6px; inset-inline-end: 6px; z-index: 2; background: rgba(15, 17, 17, .85); color: #fff; font-size: .74rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; direction: ltr; }
.vd-flag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; background: var(--amz-orange); color: var(--color-text); font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-pill); }
.vd-play { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--t-fast); background: rgba(0, 0, 0, .18); }
.vd-play i { width: 56px; height: 56px; border-radius: 50%; background: rgba(15, 17, 17, .72); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; padding-inline-start: 4px; }
.vd-thumb:hover .vd-play { opacity: 1; }
.vd-thumb.is-previewing .vd-play { opacity: 0; }
.vd-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #565959; font-size: 34px; }

.vd-meta { display: flex; gap: 11px; margin-top: 11px; }
.vd-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; color: #fff; font-weight: 800; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.vd-avatar:hover { color: #fff; filter: brightness(1.08); }
.vd-avatar--lg { width: 44px; height: 44px; font-size: 1.1rem; }
.vd-avatar--xl { width: 96px; height: 96px; font-size: 2.4rem; }
.vd-avatar--store { background: var(--amz-navy) !important; color: var(--amz-orange) !important; }
.vd-info { min-width: 0; flex: 1; }
.vd-title { font-size: .98rem; font-weight: 700; line-height: 1.4; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-title a { color: var(--color-text); text-decoration: none; }
.vd-title a:hover { color: var(--color-link-hover); }
.vd-sub { font-size: .82rem; color: var(--color-text-soft); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-sub a { color: inherit; text-decoration: none; }
.vd-sub a:hover { color: var(--color-text); }
.vd-dot::before { content: "•"; margin: 0 5px; }

.vd-empty { text-align: center; padding: 70px 16px; color: var(--color-text-soft); }
.vd-empty i { font-size: 54px; color: #c3c7c7; margin-bottom: 12px; }
.vd-empty h3 { font-size: 1.15rem; font-weight: 700; color: var(--color-text); }
.vd-loader { display: flex; justify-content: center; padding: 26px 0; }
.vd-loader.is-hidden { display: none; }

/* ---------- صفحة المشاهدة ---------- */
.vd-watch { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.vd-player { position: relative; background: #000; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.vd-player video { width: 100%; height: 100%; display: block; background: #000; }
.vd-next-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); color: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; z-index: 3; }
.vd-next-overlay.show { display: flex; }
.vd-next-overlay img { width: 220px; max-width: 70%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-md); }
.vd-next-overlay b { max-width: 420px; }
.vd-ring { font-size: 2rem; font-weight: 800; color: var(--amz-orange); }
.vd-h1 { font-size: 1.3rem; font-weight: 800; line-height: 1.4; margin: 14px 0 10px; color: var(--color-text); word-break: break-word; }
.vd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.vd-owner { display: flex; align-items: center; gap: 11px; min-width: 0; }
.vd-owner__name { font-weight: 700; color: var(--color-text); text-decoration: none; display: block; }
.vd-owner__name:hover { color: var(--color-link-hover); }
.vd-owner small { color: var(--color-text-soft); font-size: .78rem; }
.vd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-like.is-liked { background: #fdecea; color: var(--amz-red); }
.vd-like.is-liked i { animation: vd-pop .35s ease; }
@keyframes vd-pop { 50% { transform: scale(1.35); } }
.vd-desc { background: #f0f2f2; border-radius: var(--radius-lg); padding: 12px 14px; margin-top: 14px; font-size: .9rem; cursor: pointer; }
.vd-desc__meta { font-weight: 700; margin-bottom: 4px; }
.vd-desc__text { white-space: pre-wrap; word-break: break-word; max-height: 4.5em; overflow: hidden; }
.vd-desc.is-open { cursor: default; }
.vd-desc.is-open .vd-desc__text { max-height: none; }
.vd-desc__more { font-weight: 700; margin-top: 4px; display: inline-block; }
.vd-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.vd-socials a { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; color: var(--color-text); text-decoration: none; }
.vd-socials a:hover { background: var(--amz-navy); color: #fff; }

.vd-notice { border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 12px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.vd-notice--warn { background: #fff8e6; border: 1px solid #f3dca0; }
.vd-notice--danger { background: #fdf0ec; border: 1px solid #f1c3b6; }
.vd-notice--info { background: #e8f4f6; border: 1px solid #b6dbe1; }

/* «التالي» */
.vd-side__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.vd-side__head h2 { font-size: 1rem; font-weight: 800; margin: 0; }
.vd-auto { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--color-text-soft); cursor: pointer; margin: 0; }
.vd-auto .form-check-input { margin: 0; cursor: pointer; }
.vd-mini { display: flex; gap: 9px; margin-bottom: 10px; text-decoration: none; color: inherit; border-radius: var(--radius-md); padding: 4px; transition: background var(--t-fast); }
.vd-mini:hover { background: #f0f2f2; color: inherit; }
.vd-mini .vd-thumb { width: 168px; flex-shrink: 0; border-radius: var(--radius-md); }
.vd-mini .vd-title { font-size: .87rem; -webkit-line-clamp: 2; }
.vd-mini .vd-sub { font-size: .76rem; }
.vd-mini .vd-play i { width: 38px; height: 38px; font-size: 14px; }

/* ---------- التعليقات ---------- */
.vd-comments { margin-top: 24px; }
.vd-comments__head { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.vd-cform { display: flex; gap: 11px; margin-bottom: 22px; }
.vd-cform__box { flex: 1; min-width: 0; }
.vd-cform textarea { width: 100%; border: 0; border-bottom: 1px solid var(--color-border); resize: none; padding: 6px 2px; font-size: .92rem; background: transparent; min-height: 34px; }
.vd-cform textarea:focus { outline: none; border-bottom: 2px solid var(--amz-navy); }
.vd-cform__btns { display: none; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.vd-cform.is-focus .vd-cform__btns { display: flex; }
.vd-cform__login { flex: 1; padding: 10px 14px; background: #f0f2f2; border-radius: var(--radius-md); font-size: .9rem; }
.vd-cform__login a { font-weight: 700; }
.vd-c { display: flex; gap: 11px; margin-bottom: 16px; }
.vd-c__body { flex: 1; min-width: 0; }
.vd-c__head { font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vd-c__head b { color: var(--color-text); font-size: .84rem; }
.vd-c__head span { color: var(--color-text-mute); }
.vd-c__tag { font-size: .7rem; font-weight: 800; border-radius: var(--radius-pill); padding: 1px 8px; }
.vd-c__tag--store { background: var(--amz-navy); color: var(--amz-orange); }
.vd-c__tag--owner { background: #e3e6e6; color: var(--color-text); }
.vd-c__tag--pending { background: #fff3cd; color: #7a5b00; }
.vd-c__text { font-size: .9rem; white-space: pre-wrap; word-break: break-word; margin: 3px 0 4px; }
.vd-c__acts { display: flex; gap: 4px; }
.vd-c__acts button { background: none; border: 0; font-size: .8rem; font-weight: 700; color: var(--color-text-soft); padding: 4px 8px; border-radius: var(--radius-pill); }
.vd-c__acts button:hover { background: #f0f2f2; color: var(--color-text); }
.vd-c--store > .vd-c__body > .vd-c__text { background: #f7f4ea; border-inline-start: 3px solid var(--amz-orange); padding: 6px 10px; border-radius: var(--radius-sm); }
.vd-replies { margin-top: 8px; }
.vd-replies .vd-c { margin-bottom: 12px; }
.vd-replies .vd-avatar { width: 28px; height: 28px; font-size: .78rem; }
.vd-replies-toggle { background: none; border: 0; color: var(--amz-blue); font-weight: 700; font-size: .85rem; padding: 4px 8px; border-radius: var(--radius-pill); }
.vd-replies-toggle:hover { background: #e8f4f6; }
.vd-reply-form { margin-top: 8px; }
.vd-reply-form .vd-cform { margin-bottom: 10px; }

/* ---------- القناة ---------- */
.vd-channel { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--amz-navy), #37475a); color: #fff; margin-bottom: 22px; flex-wrap: wrap; }
.vd-channel h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.vd-channel__stats { color: #c9d1d9; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- الاستوديو (فيديوهاتي) ---------- */
.vd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.vd-stat { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.vd-stat i { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff3d6; color: #b36b00; font-size: 17px; flex-shrink: 0; }
.vd-stat b { display: block; font-size: 1.3rem; line-height: 1.1; }
.vd-stat small { color: var(--color-text-soft); }
.vd-studio { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.vd-row { display: flex; gap: 14px; padding: 14px; border-bottom: 1px solid #eef0f0; align-items: flex-start; }
.vd-row:last-child { border-bottom: 0; }
.vd-row .vd-thumb { width: 200px; flex-shrink: 0; border-radius: var(--radius-md); }
.vd-row__body { flex: 1; min-width: 0; }
.vd-row__title { font-weight: 700; font-size: .98rem; margin: 0 0 4px; word-break: break-word; }
.vd-row__title a { color: var(--color-text); text-decoration: none; }
.vd-row__desc { font-size: .82rem; color: var(--color-text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.vd-row__nums { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--color-text-soft); margin-top: 6px; }
.vd-row__acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.vd-row__acts .vd-btn { height: 32px; padding: 0 12px; font-size: .8rem; }
.vd-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: var(--radius-pill); }
.vd-badge--1 { background: #e3f4ee; color: var(--amz-green); }
.vd-badge--0 { background: #fff3cd; color: #7a5b00; }
.vd-badge--2 { background: #fdecea; color: var(--amz-red); }
.vd-badge--3 { background: #e9ecef; color: #495057; }
.vd-badge--off { background: #e9ecef; color: #495057; }
.vd-reason { font-size: .82rem; color: var(--amz-red); margin-top: 4px; }

/* ---------- الرفع ---------- */
.vd-up { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.vd-panel { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px; }
.vd-panel h2 { font-size: 1.02rem; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.vd-drop { border: 2px dashed #b8bfbf; border-radius: var(--radius-lg); padding: 40px 18px; text-align: center; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); background: #fafbfb; }
.vd-drop:hover, .vd-drop.is-over { border-color: var(--amz-orange); background: #fff8ec; }
.vd-drop i { font-size: 44px; color: var(--amz-orange); margin-bottom: 10px; }
.vd-drop b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.vd-drop small { color: var(--color-text-soft); }
.vd-cover { margin-top: 14px; }
.vd-cover__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vd-cover img { width: 168px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: #0f1111; }
.vd-cover input[type=range] { flex: 1; min-width: 160px; accent-color: var(--amz-orange); }
.vd-progress { height: 10px; border-radius: var(--radius-pill); background: #e3e6e6; overflow: hidden; margin-top: 12px; display: none; }
.vd-progress.show { display: block; }
.vd-progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--amz-orange), var(--amz-yellow)); transition: width .2s; }
.vd-progress-text { font-size: .82rem; color: var(--color-text-soft); margin-top: 6px; }
.vd-count { font-size: .75rem; color: var(--color-text-mute); float: inline-end; }
.vd-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f0; margin: 0; cursor: pointer; }
.vd-switch:last-of-type { border-bottom: 0; }
.vd-switch span small { display: block; color: var(--color-text-soft); font-size: .78rem; }
.vd-switch .form-check-input { width: 2.5em; height: 1.3em; margin: 0; float: none; cursor: pointer; flex-shrink: 0; }

/* ---------- اشترِ المنتجات في هذا الفيديو ---------- */
.vd-shopbadge { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; background: rgba(255, 255, 255, .95); color: var(--color-text); font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.vd-shopbadge i { color: var(--amz-orange-hov); }
.vd-shop { margin-top: 16px; border: 1px solid #f3dca0; background: linear-gradient(180deg, #fff8e6 0%, #fff 70%); border-radius: var(--radius-lg); padding: 12px 12px 6px; }
.vd-shop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.vd-shop__head h2 { font-size: 1rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--color-text); }
.vd-shop__head h2 > i { color: var(--amz-orange-hov); }
.vd-shop__n { background: var(--amz-navy); color: #fff; font-size: .72rem; border-radius: var(--radius-pill); padding: 1px 8px; }
.vd-shop__nav { display: flex; gap: 6px; }
.vd-shop__arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border); background: #fff; color: var(--color-text); display: inline-flex; align-items: center; justify-content: center; }
.vd-shop__arrow:hover { background: var(--amz-navy); color: #fff; }
.vd-shop__row { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.vd-shop__row > * { scroll-snap-align: start; min-width: 0; }

/* ---------- فيديوهات عن هذا المنتج (صفحة المنتج) ---------- */
/* margin-block فقط: margin الكامل كان يلغي توسيط .container (الهوامش الجانبية auto) فيبدأ القسم من طرف الصفحة */
.vd-product-videos { margin-block: 28px 10px; }
.vd-product-videos__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.vd-product-videos__head h2 { font-size: 1.25rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.vd-product-videos__head .vd-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--amz-navy); color: var(--amz-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.vd-product-videos__head a { font-weight: 700; font-size: .9rem; }
.vd-product-videos__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.vd-product-videos__row > .vd-card { scroll-snap-align: start; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1200px) { .vd-watch { grid-template-columns: minmax(0, 1fr) 340px; } .vd-mini .vd-thumb { width: 140px; } }
@media (max-width: 992px) {
    .vd-watch, .vd-hero, .vd-up { grid-template-columns: 1fr; }
    .vd-mini .vd-thumb { width: 168px; }
    .vd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .vd-wrap { padding: 12px 0 30px; }
    .vd-wrap > .vd-top, .vd-wrap > .vd-chips, .vd-wrap .vd-pad { padding-inline: 12px; }
    .vd-grid { grid-template-columns: 1fr; gap: 22px; }
    .vd-grid .vd-thumb { border-radius: 0; }
    .vd-grid .vd-meta { padding-inline: 12px; }
    .vd-hero { border-radius: 0; margin-inline: 0; }
    .vd-player { border-radius: 0; }
    .vd-watch__main > *:not(.vd-player) { padding-inline: 12px; }
    .vd-side { padding-inline: 12px; }
    .vd-row { flex-direction: column; }
    .vd-row .vd-thumb { width: 100%; }
    .vd-search { order: 3; flex-basis: 100%; max-width: none; }
    .vd-channel { border-radius: 0; }
    .vd-studio, .vd-stats, .vd-panel { margin-inline: 12px; }
}
@media (max-width: 576px) {
    .vd-shop { border-radius: 0; border-inline: 0; }
    .vd-shop__row { grid-auto-columns: 46%; }
    .vd-product-videos__row { grid-auto-columns: 82%; }
}

/* ---------- حسابات التواصل في نموذج الفيديو (من بيانات العميل) ---------- */
.vd-socbox { background: #fafbfb; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px; }
.vd-socbox__summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vd-socchip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 3px 10px; font-size: .82rem; }
.vd-socbox__hint { display: block; color: var(--color-text-soft); font-size: .76rem; margin-top: 8px; }

/* ---------- شروط الرفع ---------- */
.vd-terms { border: 1px solid #f3dca0; background: #fff8e6; border-radius: var(--radius-md); padding: 12px; font-size: .84rem; }
.vd-terms ul { margin: 6px 0 8px; padding-inline-start: 18px; }
.vd-terms li { margin-bottom: 3px; }
.vd-terms label { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; cursor: pointer; margin: 0; }
.vd-terms label .form-check-input { margin-top: 3px; flex-shrink: 0; float: none; }
.vd-terms.is-missing { border-color: var(--amz-red); box-shadow: 0 0 0 3px rgba(177,39,4,.15); }

/* صورة العميل داخل الرمز الدائري (Core\Services\Avatar) */
.vd-avatar { overflow: hidden; }
.vd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
