:root {
  --cv2-green: #59b90b;
  --cv2-green-dark: #3f9300;
  --cv2-blue: #1689ef;
  --cv2-text: #273038;
  --cv2-muted: #7e8992;
  --cv2-line: #e4eaee;
  --cv2-soft: #f5f8fa;
}

.category-v2-page {
  margin: 0;
  background: #f4f7f9;
  color: var(--cv2-text);
}

.category-v2-shell,
.category-v2-nav__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.category-v2-nav {
  border-top: 1px solid #edf1f3;
  border-bottom: 1px solid #dfe6ea;
  background: #fff;
}

.category-v2-nav__inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.category-v2-nav__title span,
.category-v2-nav__title small {
  display: block;
}

.category-v2-nav__title span {
  color: #202a31;
  font-size: 20px;
  font-weight: 800;
}

.category-v2-nav__title small {
  color: #a0a9af;
  font-size: 10px;
  letter-spacing: 1.8px;
}

.category-v2-nav__links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-v2-nav__links::-webkit-scrollbar { display: none; }

.category-v2-nav__links a,
.category-v2-switch a {
  flex: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: #5b6670;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.category-v2-nav__links a:hover,
.category-v2-nav__links a.is-active {
  background: #edf8e6;
  color: var(--cv2-green-dark);
}

.category-v2-switch a {
  border: 1px solid #dce4e8;
  background: #f8fafb;
}

.category-v2-shell { padding: 22px 0 42px; }

.category-v2-crumb {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7f8991;
  font-size: 12px;
}

.category-v2-crumb a { color: #56636c; text-decoration: none; }

.category-v2-top-ads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.category-v2-top-ads > div {
  min-height: 76px;
  overflow: hidden;
  border: 1px solid var(--cv2-line);
  background: #fff;
}

.category-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.category-v2-main,
.category-v2-side {
  min-width: 0;
}

.category-v2-main,
.category-v2-side-card,
.category-v2-side-ad {
  border: 1px solid var(--cv2-line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 45, 56, .035);
}

.category-v2-hero {
  padding: 28px 30px;
  border-bottom: 1px solid var(--cv2-line);
  background: linear-gradient(135deg, #fbfef9, #f1f8fc);
}

.category-v2-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cv2-green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.category-v2-hero h1 {
  margin: 10px 0 8px;
  color: #202a31;
  font-size: 30px;
  line-height: 1.25;
}

.category-v2-hero p {
  max-width: 760px;
  margin: 0;
  color: #707c85;
  font-size: 14px;
  line-height: 1.8;
}

.category-v2-hero__stats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-v2-hero__stats span {
  padding: 5px 10px;
  border-radius: 14px;
  background: #fff;
  color: #637079;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(36, 54, 65, .06);
}

.category-v2-section { padding: 24px 28px 28px; }

.category-v2-section + .category-v2-section { border-top: 1px solid var(--cv2-line); }

.category-v2-section-title {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.category-v2-section-title h2 { margin: 0; font-size: 21px; }
.category-v2-section-title span { color: #9aa3aa; font-size: 11px; letter-spacing: 1px; }

.category-v2-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-v2-category {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--cv2-line);
  border-radius: 10px;
  background: #f8fafb;
  text-decoration: none;
  transition: .18s ease;
}

.category-v2-category strong,
.category-v2-category span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-v2-category strong { color: #344049; font-size: 14px; }
.category-v2-category span { margin-top: 3px; color: #919ba2; font-size: 11px; }
.category-v2-category:hover,
.category-v2-category.is-active { border-color: #a9d58b; background: #f2faed; transform: translateY(-1px); }

.category-v2-list { display: grid; gap: 0; }

.category-v2-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed #dfe5e8;
}

.category-v2-item:last-child { border-bottom: 0; }

.category-v2-item__icon {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 17px;
  background: #eef3f5;
}

.category-v2-item__icon img { width: 100%; height: 100%; object-fit: cover; }

.category-v2-item__icon span {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--cv2-green-dark); font-size: 26px; font-weight: 800;
}

.category-v2-item__copy { min-width: 0; }
.category-v2-item__meta { display: flex; flex-wrap: wrap; gap: 7px; color: #8b969e; font-size: 11px; }
.category-v2-item__meta span { padding: 2px 7px; border-radius: 10px; background: #f0f4f6; }
.category-v2-item h2 { margin: 7px 0 5px; font-size: 17px; line-height: 1.4; }
.category-v2-item h2 a { color: #2a343b; text-decoration: none; }
.category-v2-item p { margin: 0; color: #748089; font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.category-v2-item__action { min-width: 82px; padding: 9px 12px; border-radius: 18px; background: #eff4f6; color: #66737c; font-size: 12px; text-align: center; text-decoration: none; }
.category-v2-item:hover .category-v2-item__action { background: var(--cv2-green); color: #fff; }

.category-v2-pagination { margin-top: 20px; text-align: center; }
.category-v2-pagination a,
.category-v2-pagination b { display: inline-block; margin: 3px; padding: 7px 11px; border: 1px solid var(--cv2-line); border-radius: 7px; background: #fff; color: #59656e; text-decoration: none; }
.category-v2-pagination b { border-color: var(--cv2-green); background: var(--cv2-green); color: #fff; }

.category-v2-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-v2-latest-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--cv2-line);
  border-radius: 11px;
  background: #fff;
  text-decoration: none;
}

.category-v2-latest-card img { width: 58px; height: 58px; border-radius: 13px; object-fit: cover; background: #eef2f4; }
.category-v2-latest-card b,
.category-v2-latest-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-v2-latest-card b { margin-top: 9px; color: #303a41; font-size: 14px; }
.category-v2-latest-card em { margin-top: 3px; color: #8a959d; font-size: 11px; font-style: normal; }

.category-v2-side { display: grid; gap: 16px; }
.category-v2-side-ad { min-height: 180px; overflow: hidden; }
.category-v2-side-card { padding: 18px; }
.category-v2-side-title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--cv2-green); font-size: 17px; font-weight: 800; }
.category-v2-rank { margin: 0; padding: 0; list-style: none; counter-reset: cv2-rank; }
.category-v2-rank li { min-width: 0; min-height: 38px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; border-bottom: 1px dashed #e1e6e8; counter-increment: cv2-rank; }
.category-v2-rank li::before { content: counter(cv2-rank); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #edf1f3; color: #748089; font-size: 11px; }
.category-v2-rank li:nth-child(-n+3)::before { background: #e8f6dc; color: var(--cv2-green-dark); }
.category-v2-rank a { overflow: hidden; color: #56626b; font-size: 13px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.category-v2-inline-ad { margin-top: 18px; min-height: 90px; overflow: hidden; border: 1px solid var(--cv2-line); background: #fff; }

@media (max-width: 980px) {
  .category-v2-nav__inner { grid-template-columns: 140px minmax(0, 1fr); }
  .category-v2-switch { display: none; }
  .category-v2-grid { grid-template-columns: 1fr; }
  .category-v2-main,
  .category-v2-side { width: 100%; }
  .category-v2-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-v2-side-ad { display: none; }
}

@media (max-width: 680px) {
  .category-v2-shell,
  .category-v2-nav__inner { width: min(100% - 20px, 1280px); }
  .category-v2-nav__inner { grid-template-columns: 1fr; gap: 8px; padding: 10px 0; }
  .category-v2-nav__title { display: none; }
  .category-v2-top-ads { grid-template-columns: 1fr; }
  .category-v2-top-ads > div:nth-child(2) { display: none; }
  .category-v2-hero { padding: 22px 18px; }
  .category-v2-hero h1 { font-size: 25px; }
  .category-v2-section { padding: 20px 16px; }
  .category-v2-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-v2-item { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; }
  .category-v2-item__icon { width: 62px; height: 62px; border-radius: 14px; }
  .category-v2-item__action { display: none; }
  .category-v2-item h2 { font-size: 16px; }
  .category-v2-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-v2-side { grid-template-columns: 1fr; }
}
