/* FANAT.KG: компоненты, общие для превью главной и дизайн-системы.
   Требует paper-tokens.css, paper-motion.css, club-tokens.css. */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ───────── стеклянная панель (только липкие панели поверх видео и контента) ───────── */
.glass {
  background: rgb(20 20 20 / .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* ───────── кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-sheet);
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: -.005em; line-height: 1;
  color: var(--hub-ink); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-spring), background-color .15s, color .15s;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-sm { height: 30px; gap: 6px; padding: 0 12px; font-size: 12.5px; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action-hover); }
.btn-soft { border-radius: var(--r-pill); background: rgb(var(--tint) / .06); }
.btn-soft:hover { background: rgb(var(--tint) / .1); }
.btn-ghost { background: transparent; color: var(--hub-muted); }
.btn-ghost:hover { background: rgb(var(--tint) / .06); color: var(--hub-ink); }
.btn-glass {
  border-radius: var(--r-pill); background: rgb(20 20 20 / .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { background: rgb(44 44 46 / .72); }

/* ───────── скользящая подложка: навигация (hover) и фильтры (выбор) ───────── */
.slider-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--w, 0);
  border-radius: var(--r-pill); background: rgb(var(--tint) / .12);
  transform: translateX(var(--x, 0)); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-pill), width .35s var(--ease-pill), opacity .2s;
}
.slider-thumb[data-on] { opacity: 1; }

.nav-pill { position: relative; display: inline-flex; max-width: 100%; padding: 3px; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-pill); }
.nav-pill::-webkit-scrollbar { display: none; }
.nav-pill a {
  position: relative; z-index: 1; display: flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: var(--r-pill); font-size: 13px; color: var(--hub-muted); text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.nav-pill a:hover, .nav-pill a[aria-current="page"] { color: var(--hub-ink); }

.filters { position: relative; display: inline-flex; max-width: 100%; padding: 3px; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-pill); background: var(--pill); }
.filters::-webkit-scrollbar { display: none; }
.filters .slider-thumb { background: var(--surface); box-shadow: var(--shadow-thumb); }
.filters button {
  position: relative; z-index: 1; height: 28px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: transparent; font: inherit; font-size: 13px; color: var(--hub-muted); white-space: nowrap;
  transition: color .15s, transform .2s var(--ease-spring);
}
.filters button:active { transform: scale(.96); }
.filters button[aria-selected="true"] { color: var(--hub-ink); }

/* ───────── лист с загнутым уголком ───────── */
.paper { display: block; color: inherit; text-decoration: none; filter: var(--sheet-shadow); transition: transform .35s var(--ease-out), filter .35s; }
.paper:hover { filter: var(--sheet-shadow-hover); transform: translateY(-2px); }
.paper:active { transform: scale(.98); }
.sheet {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: var(--r-sheet);
  background: var(--surface); color: var(--hub-ink);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.sheet::after {
  content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 20px;
  background: linear-gradient(to top right, var(--surface-3), var(--surface-2));
  clip-path: polygon(0 0, 100% 100%, 0 100%); border-bottom-left-radius: 4px;
}
.sheet-meta { display: flex; justify-content: space-between; gap: 8px; padding-right: 14px; font-size: 12px; color: var(--hub-muted); font-variant-numeric: tabular-nums; }
.sheet-title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; overflow-wrap: anywhere; }
.sheet-text { margin: 0; font-size: 13px; line-height: 1.4; color: var(--hub-muted); font-variant-numeric: tabular-nums; }

/* ссылка со стрелкой: стрелка уезжает на 3px пружиной */
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--link); }
.link-arrow i { font-style: normal; transition: transform .25s var(--ease-spring); }
.paper:hover .link-arrow i, a:hover > .link-arrow i, .link-arrow:hover i { transform: translateX(3px); }

/* ───────── мелочи ───────── */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: rgb(var(--tint) / .06); font-size: 12.5px; color: var(--hub-muted); font-variant-numeric: tabular-nums; }
.caption { margin: 0; font-size: 12px; color: var(--hub-faint); }
.num { font-variant-numeric: lining-nums tabular-nums; }

@media (width <= 820px) {
  body { font-size: 14px; }
  .btn { height: 44px; }
  .btn-lg { height: 48px; }
  .nav-pill a { height: 40px; }
  .filters button { height: 34px; }
  .sheet-title { font-size: 16px; }
  .sheet-text { font-size: 14px; }
}
