/* ==========================================================================
   VelveFlix v2 — CARDS + RAILS + TOP10 — scoped html.vf-2026
   Источник: VelveFlix.dc.html (RAILS, КАРТОЧКА, Top10 outline-цифра).
   Переопределяет прод .vf-card / .vf-row / .vf-rank / browse-grid / list-grid.
   ========================================================================== */

/* ---------- КАРТОЧКА ---------- */
html.vf-2026 .vf-card { position: relative; }

html.vf-2026 .vf-card__poster {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: #15151a;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: box-shadow .3s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
html.vf-2026 .vf-card__poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* hover: подъём + scale + accent-ring + glow */
@media (hover: hover) {
  html.vf-2026 .vf-card:hover { z-index: 4; }
  html.vf-2026 .vf-card:hover .vf-card__poster {
    transform: scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 2px var(--vf-accent);
  }
}
html.vf-2026 .vf-card:focus-within .vf-card__poster {
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 2px var(--vf-accent);
}

/* бейдж типа (top-left) — стекло */
html.vf-2026 .vf-card__badge--type {
  top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(8,8,10,.66);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  color: rgba(255,255,255,.9);
}
/* рейтинг-бейдж (top-right) — звезда #ffd34d */
html.vf-2026 .vf-card__badge--rating {
  top: 8px; right: 8px;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(8,8,10,.66);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 800; color: #ffd34d;
}

/* провайдер-лого → аккуратный угловой чип (УМЕНЬШИТЬ — фикс приёмки) */
html.vf-2026 .vf-card__prov {
  position: absolute;
  left: 8px; bottom: 8px;
  width: 26px; height: 26px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,8,10,.5);
  z-index: 3;
}
html.vf-2026 .vf-card__prov .vf-prov-logo { width: 100%; height: 100%; object-fit: cover; }

/* play-overlay (центр→угол снизу) */
html.vf-2026 .vf-card__play {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: #fff; color: #0a0a0c;
  opacity: 0; transition: opacity .3s ease, transform .2s;
  right: 12px; bottom: 12px; left: auto; top: auto;
}
@media (hover: hover) {
  html.vf-2026 .vf-card:hover .vf-card__play { opacity: 1; }
  html.vf-2026 .vf-card__play:hover { transform: scale(1.1); }
}

/* подпись */
html.vf-2026 .vf-card__title {
  font-family: var(--vf-font-sans);
  font-weight: 700; font-size: 13.5px;
  padding-top: 9px; margin-top: 0;
}
html.vf-2026 .vf-card__meta {
  font-size: 11.5px; color: rgba(245,245,247,.5); margin-top: 1px;
}

/* кнопка watchlist на карточке — стекло-круг */
html.vf-2026 .vf-card__wl {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(8,8,10,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html.vf-2026 .vf-card__wl:hover { background: rgba(255,255,255,.2); }

/* ---------- РЕЙЛЫ ---------- */
html.vf-2026 .vf-row { margin-bottom: 42px; position: relative; }
html.vf-2026 .vf-row__head {
  font-family: var(--vf-font-display);
  font-weight: 700; font-size: 23px; letter-spacing: -.01em; margin: 0;
}
html.vf-2026 .vf-row__track {
  scroll-snap-type: x proximity;
  gap: 16px;
  padding: 6px 0 14px;
}
html.vf-2026 .vf-row__track > * { scroll-snap-align: start; }

/* шапка рейла: заголовок слева, nav/see-all справа */
html.vf-2026 .vf-row__head-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
html.vf-2026 .vf-row__nav { display: flex; gap: 8px; }
html.vf-2026 .vf-row__see-all {
  font-family: var(--vf-font-sans); font-size: 13px; font-weight: 700;
  color: var(--vf-accent-text); opacity: .9;
  transition: opacity .2s;
}
html.vf-2026 .vf-row__see-all:hover { opacity: 1; }

/* стрелки рейла — стекло-пилюли 36px, появление на hover секции */
html.vf-2026 .vf-row__arrow {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  transition: background .2s, opacity .25s;
}
html.vf-2026 .vf-row__arrow:hover { background: rgba(255,255,255,.18); }
@media (hover: hover) {
  html.vf-2026 .vf-row .vf-row__arrow { opacity: 0; }
  html.vf-2026 .vf-row:hover .vf-row__arrow { opacity: 1; }
}

/* ---------- TOP 10 — outline-цифра ---------- */
html.vf-2026 .vf-rank { display: flex; align-items: flex-end; }
html.vf-2026 .vf-rank__num {
  font-family: var(--vf-font-display);
  font-weight: 800;
  font-size: 158px;
  line-height: .7;
  color: transparent;
  -webkit-text-stroke: 3px rgba(255,255,255,.20);
  margin-right: -30px;
  margin-bottom: -4px;
  user-select: none;
  flex: 0 0 auto;
  letter-spacing: -.02em;
}
@media (max-width: 780px) {
  html.vf-2026 .vf-rank__num { font-size: 104px; margin-right: -20px; -webkit-text-stroke-width: 2px; }
}

/* ---------- GRID-страницы (browse/list/search) ---------- */
html.vf-2026 .vf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

/* появление рядов/карточек (класс ставит vf-v2.js через IO) */
html.vf-2026 .vf-v2-reveal { opacity: 0; transform: translateY(24px); }
html.vf-2026 .vf-v2-reveal.vf-v2-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  html.vf-2026 .vf-v2-reveal { opacity: 1 !important; transform: none !important; }
}
