/* Marketing videos table (v12) — only video-page rules; base tokens & helpers copied from cc.css */
.vh, .vq, .vt-wrap { --dk1: #0a2013; --dk2: #14361f; --lime: #b8e26a; --ink: #0c1810; --mut: #87958b; }
.vt { position: relative; flex: none; display: block; width: 64px; aspect-ratio: 9 / 13; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #2a4a30, #0b2414); }
.vt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .vt i { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.vt:not(.miss) i { display: none; } .vt.sm { width: 46px; } .vt.miss::after { content: 'بدون صورة'; position: absolute; bottom: 4px; inset-inline: 0; text-align: center; font-size: 8.5px; color: rgba(255,255,255,.5); }
.av2 { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #5a9a1f, #1d4a26); color: #fff; font-weight: 800; font-size: 14px; }
.av2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .av2.lg { width: 52px; height: 52px; font-size: 20px; }
.cc-bars { display: flex; gap: 4px; align-items: flex-end; height: 150px; padding-top: 18px; } .cc-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.cc-bars i { position: relative; width: 100%; height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #8cc63f, #5a9a1f); } .cc-bars.alt i { background: linear-gradient(180deg, #6aa8ff, #2f6fd1); }
.cc-bars i em { position: absolute; top: -15px; inset-inline: -6px; text-align: center; font-style: normal; font-size: 9.5px; font-weight: 800; } .cc-bars small { font-size: 9px; color: var(--mut); }
.cc-topics { display: flex; gap: 5px; flex-wrap: wrap; } .cc-topics button { padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(12,24,16,.08); background: #fff; font: inherit; font-size: 12px; cursor: pointer; } .cc-topics em { font-style: normal; color: #5a9a1f; font-weight: 800; margin-inline-start: 4px; }
.vx-save { width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(12,24,16,.08); background: #fff; color: var(--mut); cursor: pointer; display: grid; place-items: center; } .vx-save.on { background: var(--lime); color: #0a2013; border-color: var(--lime); }
.vx-rel.direct { background: #d4f28a; } .vx-rel.ingredient { background: #dbe9ff; } .vx-rel.competitor { background: #ffe1cc; } .vx-rel.subtopic { background: #ece2ff; }
.vx-open { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #0a2013; color: var(--lime); }
.vx-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #4a5a4f; } .vx-pager select { height: 34px; border-radius: 10px; border: 1px solid #e4eadf; font: inherit; }
.vx-pager > div { display: flex; gap: 10px; align-items: center; } .vx-pager .hx-ib { background: #0a2013; }
/* Marketing v11 — Videos / Problems / Strategy. Uses tokens from cc.css (--dk1 --dk2 --lime --ink --mut). */

/* ---------- shared ---------- */
.g-btn.sm { padding: 6px 12px; font-size: 12px; min-height: 0; }
.vt { position: relative; flex: none; display: block; width: 60px; height: 84px; aspect-ratio: auto; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #1c3a26, #0a2013); }
.vt.sm { width: 44px; height: 60px; border-radius: 10px; }
.vt.miss::after { content: 'بدون صورة'; position: absolute; inset: auto 0 6px; text-align: center; font-size: 9px; color: rgba(255,255,255,.75); }
.vt.miss i { display: grid; }

/* ---------- Videos: HERO ---------- */
.vh { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; border-radius: 30px; color: #f1f6ec;
  background: radial-gradient(600px 260px at 100% 0%, rgba(184,226,106,.22), transparent 60%), linear-gradient(150deg, var(--dk2), var(--dk1)); box-shadow: 0 24px 60px rgba(10,32,19,.25); }
.vh > :not(.hx-glow) { position: relative; z-index: 1; }
.vh-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vh-top h2 { margin: 8px 0 4px; font-size: 28px; line-height: 1.3; } .vh-top small { font-size: 12px; opacity: .65; }
.vh-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.vh-seg button { border: 0; background: none; color: rgba(255,255,255,.75); font: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.vh-seg button.on { background: var(--lime); color: var(--dk1); }
.vh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vh-k { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: inherit; font: inherit; cursor: pointer; text-align: start; transition: background .2s; }
.vh-k:hover { background: rgba(255,255,255,.12); } .vh-k.on { border-color: rgba(184,226,106,.6); }
.vh-k b { font-size: 26px; font-weight: 800; line-height: 1; } .vh-k small { font-size: 12px; opacity: .7; }
.vh-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vh-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border-radius: 14px; background: #fff; color: var(--mut); }
.vh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.vh-tools select { height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #f1f6ec; font: inherit; font-size: 13px; }
.vh-tools select option { color: var(--ink); }
.vh-chip { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(184,226,106,.5); background: rgba(184,226,106,.12); color: var(--lime); font: inherit; font-size: 12px; cursor: pointer; }

/* ---------- Videos: quick look (compact dashboard) ---------- */
.vq { margin-top: 14px; padding: 14px 18px; border-radius: 24px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(25,45,25,.06); }
.vq > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vq h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; } .vq h3 small { font-weight: 500; color: var(--mut); font-size: 12px; }
.vq-t { border: 0; background: rgba(12,24,16,.06); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.vq-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.vq-g article { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .vq-g h4 { margin: 0; font-size: 12px; color: var(--mut); font-weight: 700; } .vq-g h4.mt { margin-top: 6px; }
.vq-v { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 4px; border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; text-align: start; min-width: 0; }
.vq-v:hover { background: #f1f6ea; } .vq-v > span { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.vq-v b { font-size: 12.5px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vq-v small { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vq .cc-bars { height: 92px; }

/* ---------- Videos: table (exactly 8 columns, never squeezed) ---------- */
.vt-wrap { margin-top: 14px; border-radius: 26px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 20px 50px rgba(25,45,25,.1); overflow: hidden; }
.vt-cap { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 6px; } .vt-cap b { font-size: 16px; } .vt-cap small { color: var(--mut); font-size: 12px; }
.vt-scroll { overflow-x: auto; }
.vt-grid { min-width: 860px; }
.vt-row { display: grid; grid-template-columns: minmax(240px, 3fr) minmax(140px, 1.4fr) minmax(96px, .9fr) minmax(74px, .7fr) minmax(74px, .7fr) minmax(74px, .7fr) minmax(92px, .8fr) 72px; align-items: center; column-gap: 0; min-height: 116px; border-top: 1px solid rgba(12,24,16,.06); cursor: pointer; transition: background .15s; }
.vt-row > * { padding: 12px 10px; min-width: 0; }
.vt-row:not(.vt-head):hover { background: #f4f9ee; }
.vt-head { min-height: 0; background: var(--dk1); color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; cursor: default; border: 0; }
.vt-head > * { padding: 12px 10px; }
.vh-s { display: inline-flex; gap: 4px; align-items: center; justify-content: center; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; width: 100%; }
.vh-s svg { opacity: .35; } .vh-s.on { color: var(--lime); } .vh-s.on svg { opacity: 1; }
.c-vid { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.c-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-txt b { font-size: 13.5px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-txt small { font-size: 11px; color: #5a9a1f; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-meta { display: flex; gap: 4px; flex-wrap: wrap; } .c-meta i { font-style: normal; font-size: 10px; padding: 1px 7px; border-radius: 99px; background: #eef3ea; color: #4a5a4f; }
.c-act { display: flex; flex-direction: column; gap: 6px; }
.c-cr button { display: flex; gap: 8px; align-items: center; min-width: 0; width: 100%; border: 0; background: none; padding: 0; font: inherit; text-align: start; cursor: pointer; color: var(--ink); }
.c-cr button > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.c-cr b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c-cr small { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: end; }
.c-n, .c-d, .c-rel { text-align: center; } .c-n { font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.c-n.big { display: flex; flex-direction: column; align-items: stretch; gap: 6px; } .c-n.big b { font-size: 15px; }
.c-n.big i { height: 4px; border-radius: 4px; background: linear-gradient(270deg, #5a9a1f var(--w), #edf1ea var(--w)); }
.c-d { font-size: 12px; color: #4a5a4f; font-variant-numeric: tabular-nums; }
.c-rel .vx-rel { display: inline-flex; min-width: 58px; }
.vt-wrap .vx-pager { padding: 12px 20px; border-top: 1px solid rgba(12,24,16,.06); margin: 0; }

/* phone: rows become cards; same 8 fields, labelled */
@media (max-width: 900px) {
  .vt-grid { min-width: 0; } .vt-head { display: none; }
  .vt-row { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "vid vid vid vid" "cr cr cr rel" "v l c s" "d d d d"; min-height: 0; padding: 12px 6px; row-gap: 4px; }
  .vt-row > * { padding: 4px 8px; }
  .c-vid { grid-area: vid; } .c-cr { grid-area: cr; } .c-rel { grid-area: rel; } .c-n.big { grid-area: v; } .c-n:nth-of-type(4) { grid-area: l; } .c-n:nth-of-type(5) { grid-area: c; } .c-n:nth-of-type(6) { grid-area: s; } .c-d { grid-area: d; text-align: start; }
  .c-n, .c-d { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; } .c-n::before, .c-d::before { content: attr(data-l); font-size: 10px; font-weight: 600; color: var(--mut); }
  .c-d { flex-direction: row; gap: 6px; } .c-n.big i { display: none; }
  .c-act { flex-direction: row; }
}
.vq .cc-bars em { opacity: 0; transition: opacity .15s; } .vq .cc-bars span:hover em { opacity: 1; }
@media (max-width: 900px) { .vh { padding: 20px 18px; border-radius: 24px; } .vh-top h2 { font-size: 22px; } .vh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vq-g { grid-template-columns: 1fr; } }
.vx-rel { display: inline-flex; flex-direction: column; align-items: center; padding: 4px 6px; border-radius: 12px; background: #edf1ea; line-height: 1.25; } .vx-rel b { font-size: 15px; } .vx-rel small { font-size: 9.5px; color: #4a5a4f; white-space: nowrap; }
