/* ============================================================
   Ishonch — раскладка «как на сайте»: контент + липкий правый рейл.
   Грузится после styles.css. Переиспользует токены/компоненты.
   ============================================================ */

/* full-bleed блокам нужен контроль горизонтального переполнения.
   overflow-x:clip (в отличие от hidden) не ломает position:sticky рейла */
body{overflow-x:clip;}

/* ---- Современная фирменная нейтраль (холодный off-white с подтоном
   navy из логотипа #041769) вместо тёплого бежа. Только светлая тема. ---- */
:root{
  --paper:#f6f7f9;        /* фон страницы — основной BG (#f6f7f9) */
  --surface-2:#eceff5;    /* мягкие подложки */
  --line:#e2e6ee;         /* волосяные линии — холодные */
  --line-strong:#cfd5e0;
  --ph-a:#e6eaf1;         /* плейсхолдеры в тон */
  --ph-b:#eef1f6;
  --ph-ink:#98a0ad;
  --accent-tint:color-mix(in srgb, var(--accent) 8%, #ffffff);
}

/* двухколоночное тело */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 344px;gap:46px;align-items:start;
  padding-top:var(--sec-gap);}
.lay-main{display:flex;flex-direction:column;gap:var(--sec-gap);min-width:0;}
.lay-rail{position:sticky;top:96px;display:flex;flex-direction:column;gap:26px;}

/* ---------- Сўнгги янгиликлар: чистый нумерованный список ---------- */
.news-list{display:grid;grid-template-columns:1fr 1fr;gap:0 38px;}
.nl-item{display:flex;gap:14px;padding:16px 0;border-top:1px solid var(--line);align-items:flex-start;}
.news-list .nl-item:nth-child(1),.news-list .nl-item:nth-child(2){border-top:0;}
.nl-item .nl-num{font-family:var(--f-mono);font-size:12px;font-weight:600;color:var(--accent);
  line-height:1.4;flex-shrink:0;width:22px;}
.nl-item .nl-b{min-width:0;}
.nl-item h4{font-family:var(--f-head);font-weight:600;font-size:16px;line-height:1.25;margin:0;
  letter-spacing:-.01em;}
.nl-item:hover h4{color:var(--accent);}
.nl-item .meta{margin-top:7px;font-size:12px;}

/* ---------- Рейл: карточка-обёртка ---------- */
.rail-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--card-radius);
  padding:18px 18px 20px;}
:root[data-card="boxed"] .rail-card{border-radius:14px;}
.rail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-bottom:13px;margin-bottom:14px;border-bottom:2px solid var(--ink);}
.rail-head h3{font-family:var(--f-head);font-size:16px;font-weight:700;display:flex;align-items:center;gap:9px;
  letter-spacing:-.01em;}
.rail-head h3 .accent-mark{width:5px;height:17px;background:var(--accent);display:inline-block;border-radius:1px;}
.rail-head .all{font-family:var(--f-ui);font-size:12px;font-weight:600;color:var(--accent);
  display:inline-flex;align-items:center;gap:4px;}
.rail-head .all svg{width:13px;height:13px;}

/* реклама в рейле */
.rail-ad{width:100%;aspect-ratio:300/250;}
.rail-ad.tall{aspect-ratio:300/420;}

/* ---------- Таб-виджет: Газета / Кутубхона / Кўнгилочар ---------- */
.rail-tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--line);}
.rail-tabs button{flex:1;font-family:var(--f-ui);font-size:12.5px;font-weight:600;color:var(--ink-muted);
  background:transparent;border:0;border-bottom:2px solid transparent;padding:9px 4px;cursor:pointer;
  transition:.14s;margin-bottom:-1px;white-space:nowrap;}
.rail-tabs button:hover{color:var(--accent);}
.rail-tabs button.on{color:var(--accent);border-bottom-color:var(--accent);}
.rail-pane{display:none;}
.rail-pane.on{display:block;}
.rail-pane .pane-cover{display:flex;gap:14px;align-items:flex-start;}
.rail-pane .pane-cover .gz-cover{flex:0 0 92px;padding:7px;box-shadow:0 6px 18px -10px rgba(20,20,25,.4);}
.rail-pane .pane-cover .gz-cover .gz-side,.rail-pane .pane-cover .gz-cover .gz-sub,
.rail-pane .pane-cover .gz-cover .gz-foot,.rail-pane .pane-cover .gz-cover .gz-hl2{display:none;}
.rail-pane .pane-cover .gz-cover .gz-mast svg{height:11px;}
.rail-pane .pane-cover .gz-cover .gz-num{font-size:8px;}
.rail-pane .pane-cover .gz-cover .gz-num small{display:none;}
.rail-pane .pane-cover .gz-cover .gz-hl{font-size:7.5px;margin-bottom:5px;}
.rail-pane .pane-cover .gz-cover .gz-photo{aspect-ratio:16/10;margin-bottom:5px;}
.rail-pane .pane-cover .gz-cover .gz-cols span{height:11px;}
.rail-pane .pane-ct h4{font-family:var(--f-head);font-size:15.5px;margin:0 0 5px;letter-spacing:-.01em;}
.rail-pane .pane-ct p{font-family:var(--f-ui);font-size:12.5px;color:var(--ink-muted);margin:0 0 11px;line-height:1.4;}
.rail-pane .pane-btn{display:inline-flex;align-items:center;gap:7px;font-family:var(--f-ui);font-weight:600;
  font-size:12.5px;color:#fff;background:#229ED9;border-radius:7px;padding:8px 13px;transition:.14s;}
.rail-pane .pane-btn:hover{background:#1b8cc0;}
.rail-pane .pane-btn svg{width:14px;height:14px;}
/* список для библиотеки/развлечений */
.pane-links{display:flex;flex-direction:column;}
.pane-links a{font-family:var(--f-body);font-size:14.5px;color:var(--ink);padding:11px 0;
  border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;transition:.13s;}
.pane-links a:last-child{border-bottom:0;}
.pane-links a::before{content:"";width:6px;height:6px;background:var(--accent);transform:rotate(45deg);
  flex-shrink:0;border-radius:1px;}
.pane-links a:hover{color:var(--accent);padding-left:4px;}

/* ---------- Рейл-список: Муҳаррир танлови (тумба + заголовок) ---------- */
.rail-list{display:flex;flex-direction:column;}
.rl-item{display:flex;gap:13px;padding:13px 0;border-bottom:1px solid var(--line);align-items:flex-start;}
.rl-item:first-child{padding-top:0;}
.rl-item:last-child{border-bottom:0;padding-bottom:0;}
.rl-item .rl-th{flex:0 0 70px;aspect-ratio:1/1;border-radius:var(--card-radius);overflow:hidden;}
:root[data-card="boxed"] .rl-item .rl-th{border-radius:8px;}
.rl-item .rl-th .ph{width:100%;height:100%;}
.rl-item .rl-b{min-width:0;}
.rl-item .badge{font-size:10px;margin-bottom:5px;}
.rl-item h4{font-family:var(--f-head);font-weight:600;font-size:14.5px;line-height:1.25;margin:0;letter-spacing:-.005em;}
.rl-item:hover h4{color:var(--accent);}
.rl-item .meta{margin-top:6px;font-size:11.5px;}

/* ---------- Рейл-аудио (компактный плеер) ---------- */
.rail-audio .ra-now{display:flex;gap:12px;align-items:center;margin-bottom:14px;}
.rail-audio .ra-now .pp{width:46px;height:46px;border-radius:50%;background:var(--accent);color:var(--accent-on);
  border:0;cursor:pointer;display:grid;place-items:center;flex-shrink:0;transition:.15s;}
.rail-audio .ra-now .pp:hover{transform:scale(1.05);}
.rail-audio .ra-now .pp svg{width:20px;height:20px;}
.rail-audio .ra-now .pp .ico-pause{display:none;}
.rail-audio.playing .ra-now .pp .ico-play{display:none;}
.rail-audio.playing .ra-now .pp .ico-pause{display:block;}
.rail-audio .ra-now .ra-tx{min-width:0;}
.rail-audio .ra-now .ra-tx h4{font-family:var(--f-body);font-weight:600;font-size:13.5px;line-height:1.3;margin:0;}
.rail-audio .ra-now .ra-tx .meta{margin-top:4px;font-size:11px;}
.rail-audio .bar{height:5px;border-radius:3px;background:var(--surface-2);position:relative;cursor:pointer;
  border:1px solid var(--line);}
.rail-audio .bar .fill{position:absolute;left:0;top:0;bottom:0;width:34%;background:var(--accent);border-radius:3px;}
.rail-audio .times{display:flex;justify-content:space-between;font-family:var(--f-mono);font-size:10.5px;
  margin-top:6px;color:var(--ink-faint);}

/* ---------- Долзарб в рейле (нумерованный) ---------- */
.lay-rail .trend{padding:18px;}

/* ---------- адаптив ---------- */
@media (max-width:1080px){
  .layout{grid-template-columns:1fr;gap:var(--sec-gap);}
  .lay-rail{position:static;display:grid;grid-template-columns:1fr 1fr;gap:24px;}
  .lay-rail .rail-ad.tall{display:none;}
}
@media (max-width:680px){
  .news-list{grid-template-columns:1fr;}
  .news-list .nl-item:nth-child(2){border-top:1px solid var(--line);}
  .lay-rail{grid-template-columns:1fr;}
}

/* ============================================================
   ВИДЕОЛАР — тёмный featured-блок (крупное видео + список)
   ============================================================ */
/* ============================================================
   ВИДЕОЛАР — full-bleed тёмный блок на всю ширину экрана
   ============================================================ */
.vfeat-band{position:relative;left:50%;width:100vw;margin-left:-50vw;margin-top:var(--sec-gap);
  background:#0e1422;padding:50px 0;}
:root[data-theme="dark"] .vfeat-band{background:#10141d;border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);}
.vfeat-inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);}
.vfeat{color:#fff;}
.vfeat .ph{--ph-a:#1b2334;--ph-b:#161d2c;--ph-ink:#5d6680;}
.vfeat-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  margin-bottom:24px;padding-bottom:15px;border-bottom:1px solid rgba(255,255,255,.14);}
.vfeat-head h2{color:#fff;font-size:24px;display:flex;align-items:center;gap:12px;}
.vfeat-head h2 .accent-mark{width:5px;height:23px;background:var(--accent);border-radius:1px;display:inline-block;}
.vfeat-head .sub{font-family:var(--f-ui);font-size:12.5px;color:rgba(255,255,255,.5);margin-top:6px;}
.vfeat-head .all{font-family:var(--f-ui);font-size:13px;font-weight:600;color:#fff;display:inline-flex;align-items:center;gap:6px;transition:.14s;}
.vfeat-head .all:hover{color:#a9c4ff;}
.vfeat-head .all svg{width:15px;height:15px;transition:transform .14s;}
.vfeat-head .all:hover svg{transform:translateX(3px);}
.vfeat-body{display:grid;grid-template-columns:1.55fr 1fr;gap:32px;align-items:start;}
.vfeat-main{display:block;}
.vfeat-main .thumb{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;margin-bottom:15px;}
.vfeat-main .thumb .ph{width:100%;height:100%;}
.vplay{position:absolute;inset:0;display:grid;place-items:center;}
.vplay > span{width:62px;height:62px;border-radius:50%;background:rgba(10,14,22,.5);backdrop-filter:blur(3px);
  display:grid;place-items:center;transition:.18s;}
.vfeat-main:hover .vplay > span{background:var(--accent);transform:scale(1.06);}
.vplay svg{width:24px;height:24px;color:#fff;margin-left:3px;}
.vfeat-main .dur{position:absolute;right:10px;bottom:10px;background:rgba(8,10,14,.82);color:#fff;
  font-family:var(--f-mono);font-size:11px;padding:3px 7px;border-radius:4px;}
.vfeat-cap .badge{color:#7da6ff;margin-bottom:9px;}
.vfeat-cap .badge::before{background:#7da6ff;}
.vfeat-cap h3{color:#fff;font-size:23px;line-height:1.16;letter-spacing:-.01em;margin:0 0 10px;}
.vfeat-main:hover .vfeat-cap h3{color:#a9c4ff;}
.vfeat-cap .meta{color:rgba(255,255,255,.55);}
.vfeat-list{display:flex;flex-direction:column;}
.vfeat-item{display:flex;gap:14px;padding:14px 0;border-top:1px solid rgba(255,255,255,.1);align-items:center;}
.vfeat-item:first-child{border-top:0;padding-top:0;}
.vi-th{position:relative;flex:0 0 120px;aspect-ratio:16/10;border-radius:7px;overflow:hidden;}
.vi-th .ph{width:100%;height:100%;}
.vi-th .vp{position:absolute;inset:0;display:grid;place-items:center;}
.vi-th .vp > span{width:32px;height:32px;border-radius:50%;background:rgba(10,14,22,.6);display:grid;place-items:center;transition:.16s;}
.vfeat-item:hover .vi-th .vp > span{background:var(--accent);}
.vi-th .vp svg{width:13px;height:13px;color:#fff;margin-left:2px;}
.vfeat-item .vi-b{min-width:0;}
.vfeat-item h4{color:#fff;font-family:var(--f-head);font-weight:600;font-size:15px;line-height:1.25;margin:0;letter-spacing:-.005em;}
.vfeat-item:hover h4{color:#a9c4ff;}
.vi-m{font-family:var(--f-mono);font-size:11px;color:rgba(255,255,255,.5);margin-top:6px;}
@media (max-width:860px){.vfeat-body{grid-template-columns:1fr;gap:24px;}.vfeat{padding:24px;}}

/* ============================================================
   МУАЛЛИФЛАР / КОЛУМНИСТЛАР — круглые аватары авторов
   ============================================================ */
.writers{display:grid;grid-template-columns:repeat(6,1fr);gap:10px 18px;}
.writer{display:flex;flex-direction:column;align-items:center;text-align:center;padding:6px;}
.writer .w-ava{width:108px;height:108px;border-radius:50%;overflow:hidden;margin-bottom:14px;
  box-shadow:0 8px 24px -14px rgba(20,30,60,.55);}
.writer .w-ava .ph{width:100%;height:100%;border-radius:50%;}
.writer .w-nm{font-family:var(--f-head);font-weight:700;font-size:16px;letter-spacing:-.01em;color:var(--ink);}
.writer:hover .w-nm{color:var(--accent);}
.writer .w-role{font-family:var(--f-ui);font-size:12px;color:var(--ink-faint);margin-top:3px;}
.writer .w-soc{display:flex;gap:8px;margin-top:11px;}
.writer .w-soc > span{width:30px;height:30px;border-radius:50%;border:1px solid var(--line-strong);
  display:grid;place-items:center;color:var(--ink-muted);transition:.14s;}
.writer .w-soc > span:hover{background:var(--accent);border-color:var(--accent);color:#fff;}
.writer .w-soc svg{width:14px;height:14px;}
@media (max-width:1080px){.writers{grid-template-columns:repeat(4,1fr);}}
@media (max-width:680px){.writers{grid-template-columns:repeat(3,1fr);}.writer .w-ava{width:88px;height:88px;}}
@media (max-width:440px){.writers{grid-template-columns:repeat(2,1fr);}}
