/* مكتبة الفيديو — cinematic dark section inside the site layout */
.vv{background:#07101C;color:#fff;margin-bottom:-1px;padding-bottom:48px}
.vv a{color:inherit}
.vv-mk{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:#E50914;color:#fff;font:800 13px Cairo,sans-serif;margin-inline-end:8px}
.vv-hero{position:relative;min-height:560px;display:flex;align-items:flex-end;background:#07101C var(--bg,none) center/cover no-repeat}
.vv-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(7,16,28,.94) 0,rgba(7,16,28,.6) 38%,rgba(7,16,28,.05) 70%),linear-gradient(0deg,#07101C 0,transparent 35%)}
.vv-hero-sm{min-height:440px}
.vv-hero-in{position:relative;padding-bottom:64px;max-width:1240px;width:100%}
.vv-hero h1{font-family:Cairo,sans-serif;font-size:clamp(36px,5.4vw,70px);line-height:1.08;margin:10px 0 12px;max-width:640px;text-shadow:0 6px 30px rgba(0,0,0,.5)}
.vv-hero p{max-width:560px;font-size:17px;line-height:1.85;color:#E3E7EC;margin:12px 0 22px}
.vv-kicker{display:flex;align-items:center;font-size:13px;font-weight:800;letter-spacing:.04em;color:#FF4D55}
.vv-meta{display:flex;gap:12px;align-items:center;color:#C9CFD8;font-size:15px}
.vv-new{color:#46D369}
.vv-btns{display:flex;gap:12px;flex-wrap:wrap}
.vv-play,.vv-more,.vv-sub{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:17px;padding:12px 26px;border-radius:6px;text-decoration:none}
.vv-play{background:#fff;color:#000!important}.vv-play:hover{background:#e6e6e6}
.vv-more{background:rgba(109,109,110,.7);color:#fff!important}
.vv-sub{background:#FF0000;color:#fff!important;font-size:15px;padding:11px 20px}
.vv-sub::before{content:"";width:22px;height:16px;border-radius:4px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'%3E%3Cpath d='M11 5.5l7.5 4.5-7.5 4.5z' fill='%23f00'/%3E%3C/svg%3E") center/100% no-repeat}
.vv-rows{display:flex;flex-direction:column;gap:34px;margin-top:-80px;position:relative}
.vv-row h2,.vv-h2{font-family:Cairo,sans-serif;font-size:22px;margin:0 0 12px;display:flex;align-items:baseline;gap:12px}
.vv-row h2 a{font-size:14px;color:#8F98A6!important;text-decoration:none}
.vv-h2 span{font-size:14px;color:#8F98A6}
.vv-scroll{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:#2E3A4D transparent}
.vv-poster{position:relative;flex:none;width:200px;height:296px;border-radius:8px;overflow:hidden;background:#152238;scroll-snap-align:start;text-decoration:none;transition:transform .2s}
.vv-poster:hover,.vv-card:hover .vv-th,.vv-top:hover .vv-tt{transform:scale(1.04)}
.vv-poster img{width:100%;height:100%;object-fit:cover}
.vv-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(7,16,28,.95))}
.vv-poster b{position:absolute;right:10px;left:10px;bottom:28px;z-index:1;font:700 16px/1.3 Cairo,sans-serif}
.vv-poster small{position:absolute;right:10px;bottom:9px;z-index:1;color:#C9CFD8;font-size:12px}
.vv-badge{position:absolute;top:8px;right:8px;z-index:1;background:#E50914;color:#fff;font-size:11px;font-weight:800;padding:2px 8px;border-radius:3px}
.vv-top{display:flex;align-items:flex-end;flex:none;width:200px;height:200px;position:relative;text-decoration:none}
.vv-n{position:absolute;right:-6px;bottom:-22px;font:900 180px/1 Cairo,sans-serif;color:#07101C;-webkit-text-stroke:3px #5A6578;letter-spacing:-8px}
.vv-tt{width:132px;height:190px;margin-right:auto;border-radius:8px;overflow:hidden;z-index:1;transition:transform .2s;background:#152238}
.vv-tt img{width:100%;height:100%;object-fit:cover}
.vv-card{flex:none;width:300px;text-decoration:none}
.vv-th{position:relative;display:block;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:#152238;transition:transform .2s}
.vv-th img{width:100%;height:100%;object-fit:cover}
.vv-th i{position:absolute;left:6px;bottom:6px;font-style:normal;background:rgba(0,0,0,.8);font-size:12px;font-weight:700;padding:1px 6px;border-radius:4px;direction:ltr}
.vv-card b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.55;margin-top:8px}
.vv-card small,.vv-ept small{color:#8F98A6;font-size:12.5px}
.vv-ad{margin:4px 0}
.vv-ad .ad{background:#111A27;border-color:#2E3A4D}
.vv-player{background:#000;padding:20px 0 26px}
.vv-frame{position:relative;aspect-ratio:16/9;max-height:72vh;margin:0 auto;border-radius:10px;overflow:hidden;background:#000}
.vv-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vv-now{max-width:1100px;margin:16px auto 0}
.vv-now h1{font-family:Cairo,sans-serif;font-size:26px;margin:6px 0 4px}
.vv-now>small{color:#8F98A6}
.vv-chan{display:flex;align-items:center;gap:12px;margin-top:14px;background:#111A27;border-radius:12px;padding:12px 14px;max-width:560px}
.vv-chan>span:nth-child(2){flex:1;display:flex;flex-direction:column}
.vv-chan small{color:#8F98A6}
.vv-chan .vv-mk{width:40px;height:40px;border-radius:10px;font-size:20px;margin:0}
.vv-eps-wrap{max-width:1100px;padding-top:26px}
.vv-eps{display:flex;flex-direction:column;margin-bottom:34px}
.vv-ep{display:flex;align-items:center;gap:20px;padding:18px 20px;border-bottom:1px solid #1F2A3A;text-decoration:none;border-radius:8px}
.vv-ep:hover,.vv-ep.on{background:#1A2332}
.vv-epn{font:700 26px Cairo,sans-serif;color:#8F98A6;width:40px;text-align:center;flex:none}
.vv-ep .vv-th{width:200px;flex:none}
.vv-ept{flex:1;min-width:0}
.vv-ept b{font-size:16.5px}
.vv-ept p{margin:6px 0;color:#A9B1BD;font-size:14px;line-height:1.7}
.vv-empty{padding:40px;text-align:center;color:#8F98A6}
@media (max-width:700px){
  .vv-hero{min-height:460px}.vv-hero p{font-size:15px}.vv-play,.vv-more{font-size:15px;padding:10px 18px}
  .vv-poster{width:130px;height:192px}.vv-poster b{font-size:13.5px}.vv-card{width:220px}
  .vv-top{width:150px;height:160px}.vv-n{font-size:130px}.vv-tt{width:100px;height:146px}
  .vv-ep{gap:12px;padding:12px 6px}.vv-ep .vv-th{width:130px}.vv-epn{display:none}.vv-ept p{display:none}
}

/* programmes grid (lists only) */
.vv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.vv-grid .vv-poster{width:auto;height:auto;aspect-ratio:2/3}
.vv-cnt{font-size:14px;color:#8F98A6;font-weight:600}
/* framed hero when no wide image was chosen in the dashboard: blurred backdrop + sharp 16:9 picture */
.vv-hero-framed{background:#07101C;overflow:hidden}
.vv-hero-framed::after{content:"";position:absolute;inset:-40px;background:var(--bg) center/cover no-repeat;filter:blur(38px) saturate(1.2);opacity:.45;z-index:0}
.vv-hero-framed::before{z-index:1;background:linear-gradient(270deg,rgba(7,16,28,.96) 0,rgba(7,16,28,.75) 45%,rgba(7,16,28,.35) 100%),linear-gradient(0deg,#07101C 0,transparent 40%)}
.vv-hero-framed .vv-hero-in{z-index:2}
.vv-frame-img{position:absolute;z-index:2;left:max(32px,calc((100% - 1240px)/2 + 24px));top:50%;transform:translateY(-50%);width:min(46%,620px);aspect-ratio:16/9;border-radius:14px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08)}
.vv-frame-img img{width:100%;height:100%;object-fit:cover;display:block}
.vv-hero-framed .vv-hero-in h1,.vv-hero-framed .vv-hero-in p{max-width:min(520px,48%)}
@media (max-width:900px){.vv-frame-img{position:relative;left:auto;top:auto;transform:none;width:auto;margin:24px 16px 0}.vv-hero-framed{flex-direction:column;align-items:stretch}.vv-hero-framed .vv-hero-in{padding-top:18px}.vv-hero-framed .vv-hero-in h1,.vv-hero-framed .vv-hero-in p{max-width:none}}
@media (max-width:700px){.vv-grid{grid-template-columns:repeat(2,1fr);gap:10px}}

/* ريلز — vertical shorts */
.vv-reels{gap:12px}
.vv-reel{position:relative;flex:none;width:190px;aspect-ratio:9/16;border:0;padding:0;border-radius:14px;overflow:hidden;background:#152238;cursor:pointer;scroll-snap-align:start;color:#fff;text-align:right;transition:transform .2s}
.vv-reel:hover{transform:scale(1.03)}
.vv-reel img{width:100%;height:100%;object-fit:cover;display:block}
.vv-reel::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.85))}
.vv-reel::before{content:"";position:absolute;top:10px;right:10px;z-index:1;width:22px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/contain no-repeat;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}
.vv-reel-t{position:absolute;right:10px;left:10px;bottom:28px;z-index:1;font-weight:700;font-size:13.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.vv-reel-v{position:absolute;right:10px;bottom:9px;z-index:1;font-size:11.5px;color:#C9CFD8}
.vv-modal{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center}
.vv-modal[hidden]{display:none}
.vv-reel-frame{height:min(88vh,820px);aspect-ratio:9/16;border-radius:16px;overflow:hidden;background:#000}
.vv-reel-frame iframe{width:100%;height:100%;border:0}
.vv-x{position:absolute;top:16px;left:20px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:28px;line-height:1;cursor:pointer}
@media (max-width:700px){.vv-reel{width:140px}.vv-reel-frame{height:auto;width:100vw;border-radius:0}}

/* billboard hero (as in the approved design) */
.vv-bill{position:relative;min-height:600px;background:#07101C;overflow:hidden}
.vv-bill::before{display:none}
.vv-bill-img{position:absolute;top:0;left:0;height:100%;width:auto;max-width:none;object-fit:cover}
.vv-bill.is-wide .vv-bill-img{width:100%}
.vv-bill.is-thumb .vv-bill-img{aspect-ratio:16/9}
.vv-bill-fade{position:absolute;inset:0;background:linear-gradient(270deg,#07101C 0,#07101C 30%,rgba(7,16,28,.82) 44%,rgba(7,16,28,.25) 62%,rgba(7,16,28,0) 78%),linear-gradient(0deg,#07101C 0,rgba(7,16,28,0) 32%),linear-gradient(180deg,rgba(7,16,28,.55) 0,rgba(7,16,28,0) 18%)}
.vv-bill .vv-hero-in{position:relative;z-index:2;padding-bottom:150px}
.vv-bill .vv-hero-in h1,.vv-bill .vv-hero-in p{max-width:540px}
.vv-bill + .vv-rows{margin-top:-110px}
.vv-prog{width:320px}
.vv-th .vv-badge{top:8px;right:8px}
.vv-pb{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.25)}
.vv-pb::after{content:"";position:absolute;inset:0 40% 0 0;background:#E50914}
@media (max-width:900px){
  .vv-bill{min-height:0;display:block}
  .vv-bill-img,.vv-bill.is-thumb .vv-bill-img,.vv-bill.is-wide .vv-bill-img{position:relative;width:100%;height:auto;aspect-ratio:16/9}
  .vv-bill-fade{background:linear-gradient(0deg,#07101C 0,rgba(7,16,28,0) 40%);height:calc(100vw * 9 / 16)}
  .vv-bill .vv-hero-in{padding-top:6px;padding-bottom:40px}
  .vv-bill + .vv-rows{margin-top:0}
  .vv-prog{width:240px}
}
