/* ════════════════ Torrent Films ════════════════ */
:root {
  --bg: #f2f3f7;
  --card: #ffffff;
  --soft: #eceef4;
  --soft-2: #e3e6ef;
  --line: #e1e4ec;
  --text: #121521;
  --text-2: #3b4152;
  --muted: #6a7185;
  --acc: #3346f0;
  --acc-h: #2233d6;
  --acc-soft: #e8eaff;
  --hot: #ff5a2c;
  --hot-h: #ec4617;
  --good: #129a4a;
  --mid: #d98e00;
  --low: #8c93a5;
  --r: 14px;
  --r-s: 9px;
  --sh: 0 1px 2px rgba(18, 21, 33, .05), 0 6px 18px rgba(18, 21, 33, .06);
  --sh-h: 0 2px 4px rgba(18, 21, 33, .06), 0 14px 32px rgba(18, 21, 33, .12);
  --hdr: 60px;
  --gap: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-h); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ico { flex: none; display: block; }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--acc); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; color: #fff; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 14px; padding-bottom: 40px; min-height: 60vh; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; border-radius: var(--r-s); font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: background .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--acc); color: #fff; }
.btn--primary:hover { background: var(--acc-h); color: #fff; }
.btn--hot { background: var(--hot); color: #fff; box-shadow: 0 6px 16px rgba(255, 90, 44, .28); }
.btn--hot:hover { background: var(--hot-h); color: #fff; }
.btn--ghost { background: var(--soft); color: var(--text-2); }
.btn--ghost:hover { background: var(--soft-2); color: var(--text); }

/* ════════ Шапка ════════ */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.6) blur(10px); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 14px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo__text { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.logo__text b { color: var(--acc); font-weight: 800; margin-left: 1px; }
.hdr__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: var(--soft); color: var(--text-2); font-weight: 600; font-size: 14px; }
.hdr__btn:hover { background: var(--acc-soft); color: var(--acc); }
.hdr__burger { display: none; padding: 0; }
.hdr__burger .ico + .ico { display: none; }
.nav-open .hdr__burger .ico { display: none; }
.nav-open .hdr__burger .ico + .ico { display: block; }

.hsearch { position: relative; flex: 1 1 260px; max-width: 380px; margin-left: auto; }
.hsearch input { width: 100%; height: 40px; padding: 0 44px 0 14px; border: 1px solid transparent; border-radius: var(--r-s); background: var(--soft); outline: 0; transition: border-color .15s, background .15s; }
.hsearch input:focus { background: #fff; border-color: var(--acc); }
.hsearch button { position: absolute; right: 3px; top: 3px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.hsearch button:hover { color: var(--acc); }

/* Меню */
.nav .menu, .nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav .menu { display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a { display: flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--acc); background: var(--acc-soft); }
.sub-toggle { display: none; }

@media (min-width: 1024px) {
  .nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); margin-left: 5px; opacity: .6; }
  .nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-h); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 10; }
  .nav .sub-menu .sub-menu { left: 100%; top: -7px; margin-left: 4px; }
  .nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }
  .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .nav .sub-menu a { padding: 8px 10px; font-weight: 500; }
  .nav .menu > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}

@media (max-width: 1023.98px) {
  .hdr__burger { display: inline-flex; }
  .nav { position: fixed; left: 0; right: 0; top: var(--hdr-h, var(--hdr)); bottom: 0; background: #fff; overflow-y: auto; padding: 10px 16px 40px; transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; border-top: 1px solid var(--line); }
  .nav.open { transform: none; visibility: visible; }
  .nav .menu { display: block; }
  .nav a { padding: 12px 10px; font-size: 16px; white-space: normal; border-radius: 10px; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav .sub-menu li { border: 0; }
  .nav .menu-item-has-children > a { padding-right: 52px; }
  .sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 4px; width: 44px; height: 40px; border: 0; border-radius: 10px; background: var(--soft); color: var(--text-2); }
  .sub-toggle .ico { transition: transform .15s; }
  .open > .sub-toggle .ico { transform: rotate(180deg); }
  .nav .sub-menu { display: none; padding: 0 0 8px 14px; }
  .nav .open > .sub-menu { display: block; }
  .nav .sub-menu a { font-size: 15px; padding: 9px 10px; font-weight: 500; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 719.98px) {
  .hdr__in { flex-wrap: wrap; height: auto; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .logo { margin-right: auto; }
  .logo__text { font-size: 18px; }
  .hsearch { order: 5; flex: 1 1 100%; max-width: none; margin: 0; }
  .hdr__filter span { display: none; }
  html { scroll-padding-top: 120px; }
}

/* ════════ Заголовки секций ════════ */
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.015em; margin: 4px 0 14px; }
.page-title--home { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sec { margin: 0 0 26px; }
.sec__head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; min-height: 36px; }
.sec__title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.sec__title::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(var(--acc), #8a3ffc); flex: none; }
.sec__title a { display: inline-flex; align-items: center; gap: 2px; color: var(--text); }
.sec__title a .ico { color: var(--muted); transition: transform .15s, color .15s; }
.sec__title a:hover { color: var(--acc); }
.sec__title a:hover .ico { color: var(--acc); transform: translateX(3px); }
.sec__title small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.sec__head--page .sec__title { font-size: 22px; }
.sec__count { padding: 2px 9px; border-radius: 999px; background: var(--soft-2); color: var(--text-2); font-size: 13px; font-weight: 700; }
.sec__nav { margin-left: auto; display: flex; gap: 6px; }
.cbtn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); box-shadow: var(--sh); transition: background .15s, color .15s, opacity .15s; }
.cbtn:hover:not(:disabled) { background: var(--acc); border-color: var(--acc); color: #fff; }
.cbtn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.term-desc { color: var(--text-2); margin: -2px 0 14px; max-width: 900px; font-size: 14.5px; }
.term-desc p { margin: 0 0 8px; }
.empty { padding: 24px; background: var(--card); border-radius: var(--r); color: var(--text-2); text-align: center; }
.empty p { margin: 0; }
.panel { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); }
.panel--flush { padding: 0; overflow: hidden; }

/* ════════ Карточки ════════ */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px var(--gap); }
.car { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3.25); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; margin: -2px -2px 0; }
.car::-webkit-scrollbar { display: none; }
.car > .card { scroll-snap-align: start; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .car { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); } }
@media (min-width: 900px) { :root { --gap: 14px; } .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px var(--gap); } .car { grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .car { grid-auto-columns: calc((100% - 6 * var(--gap)) / 7); } }

.card { min-width: 0; }
.card__link { display: block; color: var(--text); }
.card__link:hover { color: var(--acc); }
.card__poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 11px; overflow: hidden; background: var(--soft-2); box-shadow: var(--sh); transition: box-shadow .2s, transform .2s; }
.card__poster img { width: 100%; height: 100%; object-fit: cover; }
.card__link:hover .card__poster { box-shadow: var(--sh-h); transform: translateY(-3px); }
.card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--low); }
.card__rate { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; font-size: 12px; font-weight: 800; line-height: 1.4; color: #fff; background: var(--low); }
.card__rate.is-good { background: var(--good); }
.card__rate.is-mid { background: var(--mid); }
.card__tag { position: absolute; right: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.45; color: #fff; background: rgba(18, 21, 33, .72); }
.card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.card__meta { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .card__title { font-size: 14px; } .card__meta { font-size: 12.5px; } }

/* ════════ Пагинация ════════ */
.pager { margin: 22px 0 0; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: #fff; color: var(--text-2); font-weight: 700; box-shadow: var(--sh); }
.pager a:hover { color: var(--acc); background: var(--acc-soft); }
.pager .current { background: var(--acc); color: #fff; }
.pager .dots { background: transparent; box-shadow: none; min-width: 20px; }

/* ════════ Страница фильма ════════ */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--acc); }
.crumbs [aria-current] { color: var(--text-2); }

.film { display: grid; grid-template-columns: 118px minmax(0, 1fr); grid-template-areas: "poster head" "facts facts" "desc desc"; gap: 14px; background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); margin-bottom: 26px; }
.film__poster { grid-area: poster; position: relative; aspect-ratio: 2 / 3; border-radius: 11px; overflow: hidden; background: var(--soft-2); align-self: start; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; }
.film__head { grid-area: head; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.film__type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); }
.film__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.film__orig { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.film__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--soft); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.badge b { font-weight: 800; font-size: 13.5px; }
.badge--kp.is-good { background: #e3f6ea; color: var(--good); }
.badge--kp.is-mid { background: #fff3d9; color: #a86d00; }
.badge--imdb { background: #fff4c4; color: #7a5b00; }
.film__cta { margin-top: 4px; }
.film__facts { grid-area: facts; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 14px; }
.film__facts dt { color: var(--muted); }
.film__facts dd { margin: 0; color: var(--text); }
.film__slogan { font-style: italic; color: var(--text-2) !important; }
.film__desc { grid-area: desc; font-size: 15px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 419.98px) { .film__cta { width: 100%; } }
@media (min-width: 720px) {
  .film { grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "poster head" "poster facts" "poster desc"; grid-template-rows: auto auto 1fr; gap: 16px 26px; padding: 22px; }
  .film__title { font-size: 28px; }
  .film__desc { border: 0; padding: 0; }
}
@media (min-width: 1100px) { .film { grid-template-columns: 270px minmax(0, 1fr); } }

.prose { line-height: 1.65; }
.prose p { margin: 0 0 12px; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 22px 0 10px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose img { border-radius: 10px; }
.page { max-width: 880px; margin: 0 auto 26px; padding: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.chips a:hover { background: var(--acc-soft); border-color: var(--acc-soft); color: var(--acc); }

/* ════════ Раздачи (torrents.php / torrents-ajax.php) ════════ */
.torrents-loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px; color: var(--muted); font-weight: 600; }
.torrents-loader svg { color: var(--acc); animation: tflm-spin .9s linear infinite; }
@keyframes tflm-spin { to { transform: rotate(360deg); } }
.torrents-msg { margin: 0; padding: 22px 18px; text-align: center; color: var(--text-2); }
.torrents-wrapper { overflow-x: auto; }
.torrents-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.torrents-table th { position: relative; padding: 12px 14px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8f9fc; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.torrents-table th[tabindex] { cursor: pointer; }
.torrents-table th[tabindex]:hover { color: var(--acc); }
.torrents-table th[data-sort-direction]::after { display: inline-block; margin-left: 5px; color: var(--acc); }
.torrents-table th[data-sort-direction="desc"]::after { content: "↓"; }
.torrents-table th[data-sort-direction="asc"]::after { content: "↑"; }
.torrents-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.torrents-table tbody tr:last-child td { border-bottom: 0; }
.torrents-table tbody tr:hover td { background: #fafbff; }
.season-cell { font-weight: 700; white-space: nowrap; }
.quality-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--text-2); font-weight: 800; font-size: 12.5px; line-height: 1.35; }
.quality-badge.q-4k { background: #f1e7ff; color: #7424e0; }
.quality-badge.q-fhd { background: var(--acc-soft); color: var(--acc); }
.quality-badge.q-hd { background: #e3f6ea; color: var(--good); }
.quality-badge.q-web { background: #fff3d9; color: #a86d00; }
.extra-info { display: flex; flex-direction: column; gap: 1px; margin-top: 5px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.extra-info b { color: var(--text-2); font-weight: 600; }
.size-cell { white-space: nowrap; font-weight: 600; }
.translation-cell { color: var(--text-2); }
.translation-name { font-weight: 600; color: var(--text); }
.seeds-peers { white-space: nowrap; color: var(--muted); }
.seeds { color: var(--good); font-weight: 800; }
.peers { color: var(--muted); }
.dl-cell { text-align: right; width: 1%; }
.dl-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 9px; background: var(--hot); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s; }
.dl-btn:hover { background: var(--hot-h); color: #fff; }
.dl-magnet { background: var(--text); }
.dl-magnet:hover { background: #000; }
.dl-none { color: var(--low); }

@media (max-width: 759.98px) {
  .torrents-wrapper { overflow: visible; padding: 10px; }
  .torrents-table, .torrents-table tbody { display: block; }
  .torrents-table thead { display: none; }
  .torrents-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .torrents-table tr:last-child { margin-bottom: 0; }
  .torrents-table tbody tr:hover td { background: transparent; }
  .torrents-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .torrents-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .torrents-table .season-cell, .torrents-table td[data-label="Качество"], .torrents-table .translation-cell, .torrents-table .dl-cell { grid-column: 1 / -1; }
  .torrents-table .season-cell { font-size: 15px; }
  .torrents-table td[data-label="Качество"] { order: 1; }
  .torrents-table .translation-cell { order: 2; }
  .torrents-table .size-cell { order: 3; }
  .torrents-table .seeds-peers { order: 4; }
  .torrents-table .dl-cell { order: 5; }
  .torrents-table tr { gap: 8px 12px; }
  .torrents-table .season-cell::before { display: none !important; }
  .dl-cell { text-align: left; width: auto; }
  .dl-btn { width: 100%; justify-content: center; height: 42px; }
}

/* ════════ Подбор (фильтр) ════════ */
.flt { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); margin: 0 0 24px; display: grid; gap: 12px; }
.flt input[type="search"], .flt select { width: 100%; height: 42px; border: 1px solid transparent; border-radius: var(--r-s); background: var(--soft); padding: 0 12px; outline: 0; transition: border-color .15s, background-color .15s; }
.flt input[type="search"]:focus, .flt select:focus { border-color: var(--acc); background-color: #fff; }
.flt select { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7185' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; text-overflow: ellipsis; }
.flt__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.flt__q { position: relative; display: block; }
.flt__q .ico { position: absolute; left: 13px; top: 12px; color: var(--muted); pointer-events: none; }
.flt__q input[type="search"] { padding-left: 40px; }
.flt__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fld { display: block; min-width: 0; }
.fld__l { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.flt__grid > .fld:nth-child(3), .flt__grid > .fld--range { grid-column: 1 / -1; }
.rng { display: flex; align-items: center; gap: 10px; }
.rng__v { flex: none; min-width: 56px; height: 36px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rng__track { --a: 0%; --b: 100%; position: relative; flex: 1; height: 36px; min-width: 120px; }
.rng__track::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: linear-gradient(to right, var(--soft-2) var(--a), var(--acc) var(--a), var(--acc) var(--b), var(--soft-2) var(--b)); }
.rng input[type="range"] { position: absolute; left: 0; top: 0; width: 100%; height: 36px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.rng input[type="range"]:focus { outline: 0; }
.rng input[type="range"]::-webkit-slider-runnable-track { background: none; height: 36px; }
.rng input[type="range"]::-moz-range-track { background: none; }
.rng input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 7px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); box-shadow: 0 1px 4px rgba(18, 21, 33, .2); cursor: grab; }
.rng input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); box-shadow: 0 1px 4px rgba(18, 21, 33, .2); cursor: grab; }
.rng input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--acc-soft); }
.flt__btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (min-width: 720px) {
  .flt { padding: 16px; }
  .flt__top { grid-template-columns: minmax(0, 1fr) 220px; }
  .flt__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .flt__grid > .fld, .flt__grid > .fld:nth-child(3) { grid-column: span 2; }
  .flt__grid > .fld--range { grid-column: span 3; }
}
@media (min-width: 1100px) {
  .flt__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.1fr) minmax(0, 2.1fr); }
  .flt__grid > .fld, .flt__grid > .fld:nth-child(3), .flt__grid > .fld--range { grid-column: auto; }
  .flt__btns { grid-template-columns: 1fr 160px; }
}

/* ════════ Комментарии ════════ */
.comment-respond { margin-bottom: 8px; }
.comment-reply-title { font-size: 16px; font-weight: 800; margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; }
.comment-reply-title small a { font-size: 13px; font-weight: 600; }
.comment-form { display: grid; gap: 10px; }
.comment-form p { margin: 0; }
.comment-form textarea, .comment-form input[type="text"] { width: 100%; border: 1px solid transparent; border-radius: var(--r-s); background: var(--soft); padding: 11px 12px; outline: 0; transition: border-color .15s, background .15s; }
.comment-form textarea { min-height: 92px; resize: vertical; }
.comment-form textarea:focus, .comment-form input[type="text"]:focus { border-color: var(--acc); background: #fff; }
.comment-form .form-submit { display: flex; }
@media (min-width: 720px) {
  .comment-form { grid-template-columns: 240px 1fr; align-items: start; }
  .comment-form .cf-text, .comment-form .logged-in-as { grid-column: 1 / -1; }
  .comment-form .cf-author { grid-column: 1; }
  .comment-form .form-submit { grid-column: 2; }
}
.cmts, .cmts .children { list-style: none; margin: 0; padding: 0; }
.cmts { margin-top: 16px; border-top: 1px solid var(--line); }
.cmts .children { padding-left: 18px; border-left: 2px solid var(--line); margin-left: 14px; }
.cmt__box { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cmts .children .cmt__box { padding-left: 4px; }
.cmt__head { display: flex; align-items: center; gap: 9px; }
.cmt__ava { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--acc-soft); color: var(--acc); font-weight: 800; font-size: 14px; }
.cmt__name { font-size: 14.5px; }
.cmt__date { font-size: 12.5px; color: var(--muted); }
.cmt__text { margin: 6px 0 0 39px; font-size: 14.5px; color: var(--text-2); overflow-wrap: anywhere; }
.cmt__text p { margin: 0 0 6px; }
.cmt__mod { margin: 6px 0 0 39px; font-size: 13px; color: var(--mid); }
.cmt__reply { margin: 4px 0 0 39px; font-size: 13px; font-weight: 600; }
.cmts__empty { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.comment-navigation { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 600; }

/* ════════ 404, формы ════════ */
.notfound { text-align: center; padding: 36px 18px; max-width: 640px; margin: 20px auto; }
.notfound__code { margin: 0; font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -.04em; background: linear-gradient(120deg, var(--acc), #8a3ffc 60%, var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__form, .sform { display: flex; gap: 8px; margin: 18px 0; }
.notfound__form input, .sform input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r-s); background: var(--soft); outline: 0; }
.notfound__form input:focus, .sform input:focus { border-color: var(--acc); background: #fff; }

/* ════════ Подвал ════════ */
.ftr { background: #fff; border-top: 1px solid var(--line); padding: 26px 0 30px; font-size: 13.5px; color: var(--muted); }
.ftr__in { display: grid; gap: 16px; }
.ftr__brand p { margin: 8px 0 0; max-width: 520px; }
.ftr__nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.ftr__nav a { color: var(--text-2); font-weight: 600; }
.ftr__nav a:hover { color: var(--acc); }
.ftr__copy { margin: 0; }
@media (min-width: 900px) { .ftr__in { grid-template-columns: 1fr auto; align-items: start; } .ftr__copy { grid-column: 1 / -1; } }

/* ════════ Наверх ════════ */
.totop { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--acc); color: #fff; box-shadow: 0 8px 22px rgba(51, 70, 240, .35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s, background .15s; }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--acc-h); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
