/* ==========================================================================
   TOP-ANDROIDS · тема "Play Dark"
   Подключается ПОСЛЕ style.css и engines.css (см. main.tpl).
   Все цвета — в блоке :root ниже. Светлая версия: <html class="light">.
   ========================================================================== */

:root {
  --bg: #0d1117;
  --surface: #161c25;
  --surface-2: #1d2530;
  --surface-3: #283241;
  --border: #252e3b;
  --text: #e8edf3;
  --text-2: #c3ccd8;
  --muted: #8b97a8;

  --accent: #3ddc84;
  --accent-2: #1fb8a5;
  --accent-ink: #06210f;
  --accent-soft: rgba(61, 220, 132, .12);
  --accent-line: rgba(61, 220, 132, .45);

  --star: #ffc531;
  --danger: #ff5d5d;
  --zebra: rgba(255, 255, 255, .025);

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .38);
  --glow: 0 0 0 1px var(--accent-line), 0 12px 32px rgba(61, 220, 132, .14);
  --header-bg: rgba(13, 17, 23, .82);

  --font: 'Inter', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}

:root.light {
  --bg: #f2f5f8;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #e7ebf0;
  --border: #e0e5ec;
  --text: #121a24;
  --text-2: #2d3947;
  --muted: #637184;

  --accent: #0f9d58;
  --accent-2: #0b8a8f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 157, 88, .10);
  --accent-line: rgba(15, 157, 88, .45);

  --zebra: rgba(18, 26, 36, .025);
  --shadow: 0 8px 24px rgba(18, 26, 36, .09);
  --glow: 0 0 0 1px var(--accent-line), 0 12px 28px rgba(15, 157, 88, .14);
  --header-bg: rgba(255, 255, 255, .88);
  color-scheme: light;
}
:root.light .logo img { filter: brightness(0); }


/* ---------- БАЗА ---------- */
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg) !important;
  background-image: none !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }
a { color: var(--text); }
a:hover, a:focus { color: var(--accent); }
h1, h2, h3, h4, h5 { font-weight: 700; }
button, textarea, input[type="text"], input[type="password"] { font-family: var(--font) !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

.nes { overflow: visible; }
.nes-center { max-width: 1280px; padding: 0 20px; }

/* кнопки */
.button, .btn, .pagi-load a, .up-second li a, .usp-edit a, .qq-upload-button,
button:not(.rukor-btn):not([class*=fr]),
html input[type="button"], input[type="reset"], input[type="submit"],
.meta-fav a, .usp-btn a {
  height: 42px; line-height: 42px; border-radius: 12px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover, .btn:hover, .up-second li a:hover, .usp-edit a:hover, .qq-upload-button:hover,
.pagi-load a:hover, .usp-btn a:hover,
button:not(.rukor-btn):hover, html input[type="button"]:hover, input[type="reset"]:hover,
input[type="submit"]:hover, .meta-fav a:hover {
  background: var(--accent); color: var(--accent-ink);
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(61, 220, 132, .25);
}

/* поля форм */
input[type="text"], input[type="password"], select, textarea {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: none;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }

/* общие "карточки" */
.pages, .plitka-in, .comm-right, .lcomm-text, .add-comm-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: none;
}
.pages { padding: 28px; color: var(--text-2); }


/* ---------- ШАПКА ---------- */
.nes .upnapr {
  position: sticky; top: 0; z-index: 999;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border); box-shadow: none;
}
.upnapr-in { min-height: 68px; padding-top: 4px; padding-bottom: 4px; }
.logo { height: 48px; width: 180px; display: flex; align-items: center; }
.logo img { height: auto; max-height: 48px; width: auto; }
.search-nes { margin-left: 28px; }
.search-box { width: 100%; max-width: 560px; }
.nes .search-box input, .nes .search-box input:focus {
  height: 44px; padding: 0 18px 0 46px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none;
}
.nes .search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box input:not(:focus)::placeholder { color: var(--muted); opacity: 1; font-size: 14px; }
.nes .search-box button {
  left: 0; top: 0; width: 46px; height: 44px; line-height: 44px;
  color: var(--muted) !important; box-shadow: none; transform: none;
}
.btn-menu, .btn-search { color: var(--text) !important; }
.btn-menu { margin-right: 14px; }
@media (min-width: 951px) { .upnapr-in { flex-wrap: nowrap; gap: 8px; } }


/* ---------- КАРКАС ---------- */
.ruks {
  background: transparent; box-shadow: none; border-radius: 0; overflow: visible;
  margin: 26px 0 44px; padding: 0; gap: 26px;
}
.content { padding: 0; min-width: 0; }
.ruk-left { background: transparent; box-shadow: none; padding: 0; }
@media (min-width: 1221px) { .ruk-left { width: 264px; flex: 0 0 264px; } }
@media (max-width: 1220px) { .ruk-left { width: 100%; } }

.speedbar { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.speedbar a { color: var(--muted); }
.speedbar a:hover { color: var(--accent); }
.speedbar .fa { color: var(--accent); margin-right: 8px; }


/* ---------- САЙДБАР ---------- */
.subnapr-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px; overflow: hidden;
}
.subnapr-box + .subnapr-box { margin-top: 18px; }
.subnapr-bt, .subnapr-nav .subnapr-bt {
  margin: 0; padding: 12px 12px 8px; background: none;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.subnapr-bt .fa { color: var(--accent); }
.smenu a {
  display: block; margin: 0; padding: 9px 12px; border: 0; border-radius: 10px;
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.smenu a:hover { background: var(--surface-2); color: var(--accent); }

.side-bc { counter-reset: top; }
.super-item {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px;
  border-radius: 12px; counter-increment: top; transition: background .15s;
}
.super-item:hover { background: var(--surface-2); }
.super-item::before {
  content: counter(top); width: 18px; flex: 0 0 18px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.super-item:nth-child(-n+3)::before { color: var(--accent); }
.super-img { width: 42px; height: 42px; margin: 0; border-radius: 22%; flex: 0 0 42px; background: var(--surface-3) !important; }
.super-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.super-desc { min-width: 0; }


/* ---------- СЕКЦИИ ---------- */
.korob + .korob, .korob + #dle-content { margin-top: 38px; }
.korob-header { margin-bottom: 16px; }
.korob-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.korob-title::before {
  content: ""; width: 5px; height: 22px; border-radius: 3px; flex: 0 0 5px;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.korob-header:empty, .korob-header:not(:has(*)):not(:has(.korob-title)) { margin-bottom: 0; }


/* ---------- КАРТОЧКИ ПРИЛОЖЕНИЙ ---------- */
.plitka-items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 14px; margin: 0;
}
.plitka-items::after { display: none; }
.plitka-item { float: none; width: auto; padding: 0; margin: 0; min-width: 0; }

.plitka-in {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  height: 100%; padding: 20px 14px 16px; position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.plitka-item:hover .plitka-in {
  transform: translateY(-4px); background: var(--surface-2);
  border-color: var(--accent-line); box-shadow: var(--glow);
}
.plitka-link { display: flex; flex-direction: column; align-items: center; width: 100%; }
.plitka-img-holder { padding: 0; margin: 0 0 14px; overflow: visible; }
.plitka-img-holder::before, .plitka-img-holder::after { display: none; }
.plitka-img {
  width: 92px; height: 92px; border-radius: 22%;
  background: var(--surface-3) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.plitka-title { width: 100%; height: auto; margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.plitka-link:hover .plitka-title { color: var(--accent); }

.plitka-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 22px; }
.plitka-meta span {
  padding: 3px 9px; border-radius: 999px; background: var(--surface-3);
  color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.3;
}
.plitka-meta .pm-ver { background: var(--accent-soft); color: var(--accent); }

.plitka-desc {
  height: auto; opacity: 1; color: var(--muted); font-size: 12.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.korob-rels .plitka-in { padding-bottom: 16px; }
.korob-rels .plitka-img-holder { margin-bottom: 12px; }
.korob-rels .plitka-img-holder > div { margin-left: auto; margin-right: auto; }


/* ---------- СТРАНИЦА ПРИЛОЖЕНИЯ ---------- */
.korob-ffirst {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.korob-ffirst .plitka-img-holder {
  position: relative; overflow: hidden; margin: 0; padding: 30px; gap: 24px;
  display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface-2) !important; color: var(--text);
}
.korob-ffirst .plitka-img-holder::before {
  content: ""; display: block; position: absolute; top: -40px; right: -40px; bottom: -40px; left: -40px;
  width: auto; height: auto; transform: none; border: 0; z-index: 0;
  background: var(--icon) center / cover no-repeat;
  filter: blur(40px) saturate(1.5); opacity: .38;
}
.korob-ffirst .plitka-img-holder::after {
  content: ""; display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: auto; height: auto; transform: none; border: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 20%, var(--surface) 100%);
}
.korob-ffirst .plitka-img {
  width: 124px; height: 124px; margin: 0; flex: 0 0 124px; z-index: 5;
  border-radius: 24%; box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
.frate, .fheader { position: relative; z-index: 5; }
.fheader h1 { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
.frate { width: auto; padding-left: 24px; border-left: 1px solid var(--border); flex: 0 0 auto; }
.frate .mrating-count { color: var(--muted); font-size: 13px; text-align: left; opacity: 1; }
.frate .mrating { transform: none; position: static; margin: 0 0 6px; }

.rate3-short { display: flex; gap: 10px; white-space: nowrap; }
.sr-plus1, .sr-minus1 {
  width: 46px; height: 46px; margin: 0; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--text); transition: transform .15s, background .15s;
}
.sr-plus1 div, .sr-minus1 div { display: flex; }
.rate3-short .fa { width: auto; height: auto; margin: 0; background: none !important; font-size: 18px; line-height: 1; }
.sr-plus1 .fa { color: var(--accent); }
.sr-minus1 .fa { color: var(--danger); }
.sr-plus1:hover { background: var(--accent); transform: translateY(-2px); }
.sr-minus1:hover { background: var(--danger); transform: translateY(-2px); }
.sr-plus1:hover .fa, .sr-minus1:hover .fa { color: #fff; background: none; }

.fbody { padding: 0 30px 30px; position: relative; z-index: 2; }

/* плитки с характеристиками */
.finfo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px;
  padding: 0; margin: 0 0 22px; background: none; box-shadow: none;
}
.finfo li, .finfo li:nth-child(2n) {
  position: static; max-width: none; width: auto; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  font-size: 14.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere;
}
.finfo li div {
  position: static; opacity: 1; color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
}
.finfo a { color: var(--accent); text-decoration: none; }
.finfo a:hover { text-decoration: underline; }

/* кнопка "Скачать" */
.download-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 480px; margin: 0 0 26px; padding: 16px 26px; box-sizing: border-box;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink) !important; font-size: 18px; font-weight: 800; line-height: 1.2; text-align: center;
  text-decoration: none !important; border-radius: 16px;
  box-shadow: 0 12px 28px rgba(61, 220, 132, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.download-btn::before { content: "\f019"; font-family: FontAwesome; margin-right: 12px; font-size: 20px; font-weight: 400; }
.download-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 34px rgba(61, 220, 132, .38); color: var(--accent-ink) !important; }
.download-btn:active { transform: translateY(0); }

.fsec-title { font-size: 19px; font-weight: 700; margin: 6px 0 12px; }
.fdesc { padding: 0; }
.fdl-box { display: none; }

/* скриншоты */
.app-screenshots {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 16px; margin-bottom: 18px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
.app-screenshots::-webkit-scrollbar { height: 8px; }
.app-screenshots::-webkit-scrollbar-track { background: transparent; }
.app-screenshots::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.app-screenshots > a, .app-screenshots > img { flex: 0 0 auto; scroll-snap-align: start; display: block; max-width: 85vw; }
.app-screenshots img {
  height: 300px; width: auto; max-width: 85vw; margin: 0 !important; object-fit: contain;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2);
  transition: transform .2s ease, border-color .2s ease;
}
.app-screenshots img:hover { transform: translateY(-3px); border-color: var(--accent-line); }

/* видео */
.youtube-container { margin-bottom: 8px; }
.youtube {
  background-position: center; background-repeat: no-repeat; background-size: cover;
  position: relative; display: block; overflow: hidden; border-radius: 16px;
  box-shadow: var(--shadow); cursor: pointer; width: 100%; aspect-ratio: 16 / 9;
}
.youtube .play {
  background: url('../images/youtube-play-b.png') no-repeat; background-position: 0 -50px; background-size: 100% auto;
  position: absolute; width: 69px; height: 50px; top: 50%; left: 50%; margin: -25px 0 0 -34px; transition: background-position .2s;
}
.youtube:hover .play { background-position: 0 0; }
.youtube-iframe { display: block; width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; min-height: 250px; border: 0; border-radius: 16px; }
@supports not (aspect-ratio: 16 / 9) { .youtube { height: 425px; } .youtube-iframe { height: 425px !important; } }

/* содержание */
.article-toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 22px; margin: 0 0 24px; }
.article-toc-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.article-toc ul.toc-list { list-style: none !important; padding: 0 !important; margin: 0 !important; counter-reset: h2c; }
.full-text .article-toc li { list-style: none; margin: 0; padding: 0; background: none; }
.full-text .article-toc li::before { display: none !important; }
.article-toc .toc-h2 { counter-increment: h2c; counter-reset: h3c; margin-top: 7px !important; }
.article-toc .toc-h2 > a::before { content: counter(h2c) ". "; font-weight: 700; color: var(--accent); }
.article-toc .toc-h3 { counter-increment: h3c; margin: 3px 0 3px 20px !important; font-size: .93em; }
.article-toc .toc-h3 > a::before { content: counter(h2c) "." counter(h3c) " "; color: var(--muted); }
.full-text .article-toc a { color: var(--text-2); text-decoration: none; font-size: 15px; line-height: 1.45; transition: color .15s; }
.full-text .article-toc a:hover { color: var(--accent); }

/* текст статьи */
.full-text { font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.full-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.full-text a:hover { text-decoration: none; }
.full-text h2, .full-text h3, .full-text h4, .full-text h5 { color: var(--text); font-weight: 700; margin: 28px 0 12px; letter-spacing: -.01em; }
.full-text h2 { font-size: 24px; }
.full-text h3 { font-size: 19px; margin-top: 22px; }
.full-text p { margin-bottom: 14px; }
.full-text img:not(.emoji) { border-radius: 14px; }
.full-text h2[id], .full-text h3[id] { scroll-margin-top: 90px; }
.full-text ol li { list-style: decimal; margin-left: 40px; margin-bottom: 8px; }

.full-text ul:not(.toc-list) { list-style: none !important; padding-left: 0 !important; margin: 18px 0; }
.full-text ul:not(.toc-list) li {
  list-style: none !important; background-image: none !important;
  position: relative; margin: 0 0 12px; padding-left: 30px; line-height: 1.65;
}
.full-text ul:not(.toc-list) li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; display: block;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.full-text b, .full-text strong { color: var(--text); }

/* таблицы в статье */
.full-text table {
  width: 100%; margin: 22px 0; border-collapse: collapse; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.full-text table th {
  padding: 12px 16px; text-align: left; font-weight: 700;
  background: var(--surface-3); color: var(--text); border: 0;
}
.full-text table td { padding: 12px 16px; color: var(--text-2); border: 0; border-bottom: 1px solid var(--border); }
.full-text table tbody tr:nth-of-type(even) { background: var(--zebra); }
.full-text table tbody tr:hover { background: var(--accent-soft); }
.full-text table tr:last-child td { border-bottom: 0; }


/* ---------- SEO-БЛОК, ПАГИНАЦИЯ ---------- */
.site-desc {
  margin-top: 38px; padding: 26px 28px; color: var(--text-2); line-height: 1.75;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.site-desc h1, .site-desc h2 { color: var(--text); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.site-desc a { color: var(--accent); }
.slice-masked:before { background: linear-gradient(to bottom, transparent 0%, var(--surface) 100%); }
.slice-btn span { color: var(--accent); }

.bottom-nav { padding: 28px 0 10px; }
.navigation a, .navigation span, .pnext a, .pprev a, .pprev > span, .pnext > span {
  min-width: 42px; padding: 0 14px; margin: 5px 3px 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 15px; font-weight: 600; box-shadow: none; transition: background .15s, border-color .15s, color .15s;
}
.navigation span, .pagi-nav a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.navigation span.nav_ext { background: transparent; border-color: transparent; color: var(--muted); }


/* ---------- ПОДВАЛ ---------- */
.downnapr {
  margin: 0; padding: 34px 20px; text-align: center; color: var(--muted);
  background: var(--surface); background-image: none; border-top: 1px solid var(--border);
}
.downnapr::before, .downnapr::after { display: none; }
.downnapr a { color: var(--accent); }


/* ---------- СОВМЕСТИМОСТЬ: комментарии, вход, попапы, поиск ---------- */
.comm-right:before { border-right-color: var(--surface); }
.comm-right:after { border-right-color: var(--border); }
.comm-one > span.comm-author, .comm-one > span.comm-author a { color: var(--accent); }
.lcomm-text { background: var(--surface-2); }
.lcomm-text:before { border-top-color: var(--surface-2); }
.mass_comments_action { background: var(--surface-2); }
.login-box { background: var(--surface); color: var(--text); border-top-color: var(--accent); border-radius: var(--radius); }
.login-title:first-letter, .login-btm a { color: var(--accent); }
.login-menu, .login-menu li { border-color: var(--border); }
.login-avatar { background: var(--surface-2); }
.berrors { background: rgba(255, 197, 49, .12); color: #ffd36b; border-radius: 12px; }
.berrors a { color: #ffd36b; }
.ui-dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.ui-dialog-titlebar, .ui-dialog .ui-dialog-buttonpane { background: var(--surface-2); }
#searchsuggestions { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
#searchsuggestions a { color: var(--text); }
#searchsuggestions a:hover { background: var(--surface-2); color: var(--accent); }
#searchsuggestions span.seperator a { background: var(--surface-2); color: var(--text); }
.sres-wrap { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.sres-wrap:nth-child(2n) { background: var(--surface-2); }
.vote-title, .pm-menu a, .usp-name { background: var(--surface-2); border-color: var(--border); }
.usp-meta li:nth-child(2n+1), .pm tr:nth-child(2n+2), .userstop tr:nth-child(2n+2) { background: var(--surface-2); }
.hide, .scriptcode, .title_spoiler, .text_spoiler { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.subnapr-panel { background: var(--surface); }
.subnapr-panel .subnapr-box { background: transparent; border: 0; padding: 0; }


/* ---------- АДАПТИВ ---------- */
@media (max-width: 1220px) {
  .ruks { margin-top: 20px; }
  .korob-ffirst .plitka-img-holder { padding: 24px; }
  .fbody { padding: 0 24px 24px; }
}

@media (max-width: 950px) {
  .nes-center { padding: 0 14px; }
  .logo { flex: 1 1 auto; width: auto; margin-right: 12px; }
  .upnapr-in { min-height: 60px; }
  .search-nes { margin: 0; padding: 0 0 10px; }
  .btn-search { width: 32px; text-align: right; }
  .plitka-items { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .korob-title { font-size: 20px; }
}

@media (max-width: 760px) {
  .korob-ffirst .plitka-img-holder { flex-wrap: wrap; padding: 22px 18px; gap: 16px 18px; }
  .korob-ffirst .plitka-img { width: 96px; height: 96px; flex-basis: 96px; }
  .fheader { flex: 1 1 calc(100% - 120px); min-width: 0; }
  .fheader h1 { font-size: 22px; }
  .frate { flex: 1 1 100%; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .rate3-short { justify-content: flex-start; }
  .fbody { padding: 0 16px 20px; }
  .finfo { grid-template-columns: repeat(2, 1fr); }
  .download-btn {
    max-width: none; position: sticky; bottom: 12px; z-index: 60; margin-bottom: 22px;
    font-size: 17px; padding: 15px 20px;
  }
  .app-screenshots img { height: 240px; }
  .full-text { font-size: 15px; }
  .full-text h2 { font-size: 21px; }
  .full-text table { font-size: 14px; word-break: break-word; }
  .full-text table th, .full-text table td { padding: 10px 12px; }
  .site-desc { padding: 20px 18px; }
  .pages { padding: 18px; }
}

@media (max-width: 470px) {
  .plitka-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plitka-in { padding: 16px 10px 14px; }
  .plitka-img { width: 76px; height: 76px; }
  .plitka-title { font-size: 14px; }
  .youtube-iframe { min-height: 0; height: 220px !important; }
}

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