/* ==========================================================================
   البوصلة TV — Premium editorial · cinematic · institutional
   Navy + White = الأساس · Gold = لمسة فقط
   ========================================================================== */

.btv{
  --btv-ink:#051334;      /* Dark Navy */
  --btv-navy:#071B40;     /* Navy */
  --btv-navy-2:#0c2552;
  --btv-gold:#B4904F;
  --btv-gold-2:#D4B46A;
  --btv-white:#fff;
  --btv-paper:#f6f5f1;
  --btv-text:#14213d;
  --btv-soft:#5d6677;
  --btv-line:#e4e1d8;
  --btv-dline:rgba(255,255,255,.12);
  --btv-r:4px;
  --btv-ease:cubic-bezier(.4,0,.2,1);
  color:var(--btv-text);
  line-height:1.7;
  /* عرض كامل داخل حاوية القالب */
  width:100vw;
  margin-inline:calc(50% - 50vw);
  overflow:hidden;
}
.btv *,.btv *::before,.btv *::after{box-sizing:border-box}
.btv a{color:inherit;text-decoration:none}
.btv img{display:block;width:100%;height:100%;object-fit:cover;margin:0!important;border-radius:0}
.btv h1,.btv h2,.btv h3,.btv p{margin:0}
.btv button{font:inherit;cursor:pointer}
.btv :focus-visible{outline:2px solid var(--btv-gold-2);outline-offset:3px}
.btv-wrap{max-width:1240px;margin:0 auto;padding:0 24px}

/* إخفاء عنوان الصفحة ومسار التنقل في صفحة TV */
.albs-tv-page .newsmatic-breadcrumb-wrap,
.albs-tv-page .entry-header,
.albs-tv-page .page-title{display:none!important}
.albs-tv-page .site-main article.page,
.albs-tv-page .post-inner,
.albs-tv-page .entry-content{padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;border:0!important;max-width:none!important}
.albs-tv-page #primary .row,.albs-tv-page .main-content-wrap{overflow:visible!important}
.albs-tv-page .site-main article.page{overflow:visible!important}
.albs-tv-page .post-inner-wrapper{padding:0!important;background:none!important;box-shadow:none!important;border:0!important}

/* ---------------------------------------------------------------- stage */
.btv-stage{
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(180,144,79,.10), transparent 60%),
    linear-gradient(180deg,var(--btv-ink) 0%,var(--btv-navy) 100%);
  color:var(--btv-white);
  padding-bottom:44px;
}
.btv-stage--short{padding-bottom:30px}

/* ---------------------------------------------------------------- 01 header */
.btv-head{border-bottom:1px solid var(--btv-dline)}
.btv-head__top{display:flex;align-items:center;gap:18px;padding-top:22px;padding-bottom:18px}
.btv-brand{display:inline-flex;align-items:center;gap:10px;color:#fff!important}
.btv-brand__mark{width:30px;height:30px;color:var(--btv-gold)}
.btv-brand__mark svg{width:100%;height:100%;display:block}
.btv-brand__name{font-size:26px;font-weight:700;letter-spacing:-.2px;line-height:1}
.btv-brand__tv{
  font-size:15px;font-weight:700;letter-spacing:1.5px;line-height:1;
  color:var(--btv-ink);background:var(--btv-gold);padding:6px 8px 5px;border-radius:2px;direction:ltr;
}
.btv-head__tag{
  color:rgba(255,255,255,.62);font-size:14px;padding-inline-start:18px;margin-inline-start:2px;
  border-inline-start:1px solid var(--btv-dline);
}
.btv-head__count{margin-inline-start:auto;font-size:13px;color:rgba(255,255,255,.62);white-space:nowrap}

.btv-nav{position:relative}
.btv-nav__list{display:flex;gap:4px;list-style:none!important;margin:0!important;padding:0!important;overflow-x:auto;scrollbar-width:none}
.btv-nav__list::-webkit-scrollbar{display:none}
.btv-nav__list li{list-style:none!important;margin:0!important;padding:0!important;flex:0 0 auto}
.btv-nav__list a{
  display:block;padding:13px 14px 12px;font-size:15px;font-weight:600;color:rgba(255,255,255,.78)!important;
  border-bottom:2px solid transparent;transition:color .2s var(--btv-ease),border-color .2s var(--btv-ease);white-space:nowrap;
}
.btv-nav__list a:hover{color:#fff!important}
.btv-nav__list a[aria-current="page"]{color:#fff!important;border-bottom-color:var(--btv-gold)}

/* ---------------------------------------------------------------- 02 hero */
.btv-hero{padding-top:34px}
.btv-hero__grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:36px;align-items:center}
.btv-hero__player{position:relative;aspect-ratio:16/9;background:#000;box-shadow:0 30px 60px -20px rgba(0,0,0,.6)}
.btv-hero__poster{position:absolute;inset:0;display:block;overflow:hidden}
.btv-hero__poster img{transition:transform .8s var(--btv-ease),opacity .3s}
.btv-hero__poster::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(5,19,52,.55))}
.btv-hero__poster:hover img{transform:scale(1.02)}
.btv-hero__player iframe,.btv-hero__player video{position:absolute;inset:0;width:100%;height:100%;border:0}

.btv-kicker{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--btv-gold-2);letter-spacing:.2px;margin-bottom:14px}
.btv-kicker__dot{width:7px;height:7px;border-radius:50%;background:var(--btv-gold)}
.btv-kicker__sep{color:rgba(255,255,255,.35)}
.btv-hero__title{font-size:clamp(24px,2.6vw,34px)!important;line-height:1.45!important;font-weight:700!important;color:#fff!important;margin-bottom:14px!important}
.btv-hero__title a{color:#fff!important}
.btv-hero__title a:hover{color:var(--btv-gold-2)!important}
.btv-hero__excerpt{font-size:16.5px;line-height:1.9;color:rgba(255,255,255,.74);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:14px}
.btv-hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}

/* ---------------------------------------------------------------- shared */
.btv-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--btv-soft)}
.btv-stage .btv-meta{color:rgba(255,255,255,.6)}
.btv-meta span::before{content:"·";margin-inline-end:14px;opacity:.6}
.btv-meta .btv-meta__views::before{content:none}

.btv-btn{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:11px 22px;border-radius:var(--btv-r);font-size:15px;font-weight:700;border:1px solid transparent;transition:background .2s var(--btv-ease),color .2s var(--btv-ease),border-color .2s var(--btv-ease)}
.btv-btn svg{width:18px;height:18px;fill:currentColor}
.btv-btn--gold{background:var(--btv-gold);color:var(--btv-ink)!important}
.btv-btn--gold:hover{background:var(--btv-gold-2)}
.btv-btn--ghost{border-color:rgba(255,255,255,.35);color:#fff!important}
.btv-btn--ghost:hover{border-color:#fff}
.btv-btn--outline{border-color:var(--btv-navy);color:var(--btv-navy)!important;background:#fff}
.btv-btn--outline:hover{background:var(--btv-navy);color:#fff!important}
.btv-btn[disabled]{opacity:.6;cursor:wait}

.btv-play{
  position:absolute;inset:0;margin:auto;width:52px;height:52px;border-radius:50%;
  background:rgba(5,19,52,.72);border:1px solid rgba(255,255,255,.55);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  transition:background .2s var(--btv-ease),transform .2s var(--btv-ease);z-index:1;
}
.btv-play::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-38%,-50%);border-style:solid;border-width:9px 0 9px 14px;border-color:transparent transparent transparent #fff}
.btv-play--lg{width:84px;height:84px;border-width:1.5px}
.btv-play--lg::after{border-width:14px 0 14px 22px}
a:hover > .btv-play{background:var(--btv-gold);border-color:var(--btv-gold)}
a:hover > .btv-play::after{border-left-color:var(--btv-ink)}

.btv-dur{
  position:absolute;bottom:8px;left:8px;z-index:1;direction:ltr;
  background:rgba(5,19,52,.85);color:#fff;font-size:12px;font-weight:700;line-height:1;padding:5px 7px;border-radius:2px;
  font-variant-numeric:tabular-nums;
}
.btv-noimg{display:block;width:100%;height:100%;background:linear-gradient(135deg,#0c2552,#051334)}

/* ---------------------------------------------------------------- section heads */
.btv-sec__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.btv-sec__title{font-size:22px!important;font-weight:700!important;line-height:1.4!important;display:flex;align-items:center;gap:12px;color:inherit!important}
.btv-sec__title::before{content:"";width:3px;height:22px;background:var(--btv-gold)}
.btv-sec__tools{display:flex;align-items:center;gap:8px}
.btv-sec__more{font-size:14px;font-weight:700;color:var(--btv-navy)!important;padding:6px 2px;border-bottom:1px solid transparent}
.btv-sec__more:hover{border-bottom-color:var(--btv-gold)}
.btv-stage .btv-sec__more{color:var(--btv-gold-2)!important}
.btv-arrow{width:40px;height:40px;border-radius:50%;border:1px solid var(--btv-dline);background:transparent;color:#fff;display:inline-flex;align-items:center;justify-content:center;transition:border-color .2s,background .2s}
.btv-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.btv-arrow:hover{border-color:var(--btv-gold);background:rgba(180,144,79,.12)}
.btv-arrow[disabled]{opacity:.3;cursor:default}

/* ---------------------------------------------------------------- 03 rail */
.btv-rail{padding-top:46px}
.btv-rail__track{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,calc((100% - 3*20px)/4));gap:20px;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding-bottom:4px;
  overscroll-behavior-x:contain;
}
.btv-rail__track::-webkit-scrollbar{display:none}
.btv-rail__track > *{scroll-snap-align:start}

/* ---------------------------------------------------------------- cards */
.btv-card{position:relative;display:flex;flex-direction:column;min-width:0}
.btv-card__media{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#0c2552}
.btv-card__media img{transition:transform .6s var(--btv-ease)}
.btv-card:hover .btv-card__media img{transform:scale(1.04)}
.btv-card__body{padding-top:12px}
.btv-card__cat{display:block;font-size:12.5px;font-weight:700;color:var(--btv-gold);margin-bottom:4px}
.btv-card__title{font-size:16px!important;line-height:1.6!important;font-weight:700!important;margin-bottom:6px!important;color:inherit!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.btv-card__title a:hover{color:var(--btv-gold)}
.btv-stage .btv-card__title{color:#fff!important}
.btv-stage .btv-card__title a:hover{color:var(--btv-gold-2)}
.btv-stage .btv-card__cat{color:var(--btv-gold-2)}

/* ---------------------------------------------------------------- body sections */
.btv-body{background:var(--btv-white);padding:8px 0 56px}
.btv-sec{padding-top:48px}
.btv-sec + .btv-sec{border-top:1px solid var(--btv-line);margin-top:48px}
.btv-grid{display:grid;gap:28px 20px}
.btv-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}

/* 04 popular */
.btv-pop__list{list-style:none!important;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;counter-reset:none}
.btv-pop__list li{list-style:none!important;margin:0!important;padding:0!important}
.btv-card--rank .btv-rank{
  position:absolute;top:-6px;inset-inline-start:-4px;z-index:2;font-size:44px;font-weight:700;line-height:1;
  color:#fff;-webkit-text-stroke:1.5px var(--btv-gold);text-shadow:0 2px 10px rgba(5,19,52,.35);font-variant-numeric:tabular-nums;
}
.btv-card--rank .btv-card__title{font-size:15px!important}

/* 06 load more */
.btv-more{display:flex;justify-content:center;margin-top:36px}

/* section page */
.btv-sechero{padding-top:30px;display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.btv-sechero__title{font-size:clamp(26px,3vw,36px)!important;font-weight:700!important;color:#fff!important;line-height:1.3!important}
.btv-sechero__count{color:rgba(255,255,255,.6);font-size:15px}

/* empty states */
.btv-empty{border:1px solid var(--btv-line);padding:40px 24px;text-align:center;color:var(--btv-soft);background:var(--btv-paper)}
.btv-empty__title{font-size:19px;font-weight:700;color:var(--btv-navy);margin-bottom:6px!important}
.btv-empty a{color:var(--btv-navy);font-weight:700;border-bottom:1px solid var(--btv-gold)}
.btv-empty--dark{margin-top:40px;background:rgba(255,255,255,.04);border-color:var(--btv-dline);color:rgba(255,255,255,.7)}
.btv-empty--dark .btv-empty__title{color:#fff}

/* ---------------------------------------------------------------- lightbox */
.btv-lb{--btv-ink:#051334;--btv-gold:#B4904F;--btv-gold-2:#D4B46A;--btv-ease:cubic-bezier(.4,0,.2,1)}
.btv-lb *{box-sizing:border-box}
.btv-lb p{margin:0}
.btv-lb button{font:inherit;cursor:pointer}
.btv-lb a{text-decoration:none}
.btv-lb{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100%;height:100%;margin:0;color:#fff}
.btv-lb::backdrop{background:rgba(3,10,28,.92);backdrop-filter:blur(3px)}
.btv-lb[open]{display:flex;align-items:center;justify-content:center}
.btv-lb__box{width:min(1100px,calc(100vw - 32px),calc((100vh - 150px) * 16 / 9));animation:btvIn .25s var(--btv-ease)}
@keyframes btvIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.btv-lb__bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.btv-lb__title{font-size:17px;font-weight:700;line-height:1.5;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.btv-lb__close{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;display:inline-flex;align-items:center;justify-content:center}
.btv-lb__close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.btv-lb__close:hover{border-color:var(--btv-gold);color:var(--btv-gold-2)}
.btv-lb__frame{position:relative;aspect-ratio:16/9;background:#000;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.btv-lb__frame iframe,.btv-lb__frame video{position:absolute;inset:0;width:100%;height:100%;border:0}
.btv-lb__foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:14px}
.btv-lb__brand{color:rgba(255,255,255,.55)}
.btv-lb__brand b{color:var(--btv-gold);letter-spacing:1px}
.btv-lb__link{color:var(--btv-gold-2)!important;font-weight:700}
html.btv-lock{overflow:hidden}


/* ---------------------------------------------------------------- programs */
.btv-sec__titles{display:flex;flex-direction:column;gap:2px;min-width:0}
.btv-sec__desc{font-size:14px;color:var(--btv-soft);padding-inline-start:15px}
.btv-progs__list{list-style:none!important;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--btv-line);border-inline-start:1px solid var(--btv-line)}
.btv-progs__list li{list-style:none!important;margin:0!important;padding:0!important}
.btv-prog{
  position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:16px;row-gap:2px;
  padding:22px 22px 20px;height:100%;border-inline-end:1px solid var(--btv-line);border-bottom:1px solid var(--btv-line);
  transition:background .25s var(--btv-ease);
}
.btv-prog::after{content:"";position:absolute;inset-inline-start:0;bottom:-1px;height:2px;width:0;background:var(--btv-gold);transition:width .35s var(--btv-ease)}
.btv-prog:hover{background:var(--btv-paper)}
.btv-prog:hover::after{width:100%}
.btv-prog__num{grid-row:1/span 3;font-size:30px;font-weight:700;line-height:1;color:var(--btv-gold);font-variant-numeric:tabular-nums;padding-top:2px;direction:ltr}
.btv-prog__name{font-size:18px;font-weight:700;color:var(--btv-navy);line-height:1.4}
.btv-prog__desc{font-size:14.5px;color:var(--btv-soft);line-height:1.6}
.btv-prog__count{font-size:12.5px;font-weight:700;color:var(--btv-gold);margin-top:6px;letter-spacing:.2px}
.btv-sechero__desc{flex-basis:100%;order:3;color:rgba(255,255,255,.72);font-size:17px;margin-top:-4px}
.btv-sechero .btv-kicker{flex-basis:100%;margin-bottom:0}

/* ---------------------------------------------------------------- shorts (9:16) */
.btv-card--short .btv-card__media{aspect-ratio:9/16}
.btv-card--short .btv-card__title{font-size:15px!important;-webkit-line-clamp:3}
.btv-card--short .btv-meta{display:none}
.btv-rail--shorts{padding-top:48px}
.btv-rail--shorts .btv-sec__title,.btv-rail--shorts .btv-card__title{color:var(--btv-text)!important}
.btv-rail--shorts .btv-arrow{border-color:var(--btv-line);color:var(--btv-navy)}
.btv-rail--shorts .btv-rail__track{grid-auto-columns:minmax(170px,calc((100% - 5*16px)/6));gap:16px}
.btv-grid--shorts{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 16px}
.btv-lb--v .btv-lb__box{width:min(420px,calc(100vw - 32px),calc((100vh - 150px) * 9 / 16))}
.btv-lb--v .btv-lb__frame{aspect-ratio:9/16}

/* ---------------------------------------------------------------- responsive */
@media (max-width:1100px){
  .btv-pop__list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .btv-pop__list li:nth-child(n+4){display:none}
  .btv-grid--4{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .btv-progs__list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .btv-grid--shorts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .btv-rail--shorts .btv-rail__track{grid-auto-columns:minmax(160px,30%)}
  .btv-hero__grid{grid-template-columns:1fr;gap:20px}
  .btv-hero__player{margin-inline:-24px}
  .btv-head__tag{display:none}
  .btv-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .btv-rail__track{grid-auto-columns:minmax(240px,44%)}
}
@media (max-width:600px){
  .btv-wrap{padding:0 16px}
  .btv-hero__player{margin-inline:-16px}
  .btv-hero{padding-top:0}
  .btv-head__top{padding-top:16px;padding-bottom:12px}
  .btv-brand__name{font-size:22px}
  .btv-nav__list{margin-inline:-16px!important;padding-inline:16px!important}
  .btv-nav__list a{padding:12px 11px 11px;font-size:14.5px}
  .btv-hero__info{padding-top:4px}
  .btv-hero__actions .btv-btn{flex:1;justify-content:center}
  .btv-rail__track{grid-auto-columns:78%;gap:14px}
  .btv-arrow{display:none}
  .btv-sec{padding-top:36px}
  .btv-sec + .btv-sec{margin-top:36px}
  .btv-sec__title{font-size:20px!important}
  /* شبكة الهاتف: صفوف مدمجة صورة + عنوان */
  .btv-grid--4{grid-template-columns:1fr;gap:16px}
  .btv-grid .btv-card{flex-direction:row;gap:12px;align-items:flex-start}
  .btv-grid .btv-card__media{flex:0 0 42%}
  .btv-grid .btv-card__body{padding-top:0}
  .btv-grid .btv-card__title{font-size:15px!important;-webkit-line-clamp:3}
  .btv-grid .btv-play{width:36px;height:36px}
  .btv-grid .btv-meta span{display:none}
  .btv-grid .btv-play::after{border-width:6px 0 6px 10px}
  .btv-pop__list{grid-template-columns:1fr;gap:14px}
  .btv-pop__list li:nth-child(n+4){display:block}
  .btv-card--rank{flex-direction:row;gap:12px;align-items:center;padding-inline-start:30px}
  .btv-card--rank .btv-rank{top:50%;transform:translateY(-50%);inset-inline-start:0;font-size:34px}
  .btv-card--rank .btv-card__media{flex:0 0 38%}
  .btv-card--rank .btv-card__body{padding-top:0}
  .btv-card--rank .btv-play{width:34px;height:34px}
  .btv-card--rank .btv-play::after{border-width:6px 0 6px 10px}
  .btv-card--rank .btv-dur{display:none}
  .btv-lb__box{width:100vw}
  .btv-lb--v .btv-lb__box{width:min(100vw,calc((100vh - 120px) * 9 / 16))}
  .btv-progs__list{grid-template-columns:1fr}
  .btv-prog{padding:16px 14px}
  .btv-prog__num{font-size:24px}
  .btv-rail--shorts .btv-rail__track{grid-auto-columns:42%;gap:12px}
  .btv-grid--shorts{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .btv-grid--shorts .btv-card{flex-direction:column}
  .btv-grid--shorts .btv-card__media{flex:none}
  .btv-grid--shorts .btv-card__body{padding-top:8px}
  .btv-lb__bar,.btv-lb__foot{padding:0 16px}
}
@media (hover:none){.btv-arrow{display:none}}
@media (prefers-reduced-motion:reduce){
  .btv *{transition:none!important;animation:none!important}
  .btv-rail__track{scroll-behavior:auto}
}
