/* KOSMOS news home v3 — magazine, воздух, кликабельные карточки */

body.kosmos-home-hub .site-content-inner,
body.kosmos-home-hub #primary.content-area--kosmos-hub,
body.kosmos-home-hub .site-content.fixed,
body.kosmos-home-hub .site-content {
  max-width: none !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.kosmos-home-hub .kosmos-header-spacer {
  background: #070707;
}

html[data-theme="light"] body.kosmos-home-hub .kosmos-header-spacer {
  /* Hero glow стартует с тёмного, как на лендинге — spacer под fixed-header тоже тёмный */
  background: #070707;
}

.kn {
  --kn-fg: #0a0a0a;
  --kn-muted: #5c5c5c;
  --kn-line: rgba(10, 10, 10, 0.08);
  --kn-bg: #ffffff;
  --kn-card: #ffffff;
  --kn-accent: #2f5f8a;
  --kn-lime: #d0f8a0;
  --kn-max: 1112px;
  --kn-radius: 20px;
  --kn-on-dark: #f4f4f4;
  --kn-on-dark-muted: rgba(244, 244, 244, 0.72);
  font-family: var(--kosmos-font, "Manrope", system-ui, sans-serif);
  color: var(--kn-fg);
  background: var(--kn-bg);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .kn {
  --kn-fg: #f4f4f4;
  --kn-muted: #9b9b9b;
  --kn-line: rgba(255, 255, 255, 0.1);
  --kn-bg: #070707;
  --kn-card: #141414;
  --kn-accent: #d0f8a0;
}

.kn-shell {
  max-width: var(--kn-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .kn-shell {
    padding: 0 24px;
  }
}

.kn-shell--hero {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .kn-shell--hero {
    padding-bottom: 64px;
  }
}

.kn-wrap {
  max-width: var(--kn-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .kn-wrap {
    padding: 0 24px;
  }
}

@media (min-width: 1100px) {
  .kn-wrap {
    padding: 0 24px;
  }
}

/* Masthead */
.kn-mast {
  margin: 0 0 20px;
  padding: 28px 0 8px;
}

@media (min-width: 768px) {
  .kn-mast {
    padding: 36px 0 12px;
  }
}

.kn-mast__h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.kn-mast__dek {
  margin: 14px 0 0;
  max-width: 40rem;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* —— Atmosphere: full-bleed glow, контент в kn-shell —— */
.kn-atmosphere {
  position: relative;
  overflow: hidden;
}

.kn-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.kn-hero-glow__mobile-base {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 780px;
  background: #00172a;
  z-index: -10;
}

.kn-hero-glow__mobile-blobs {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 640px;
  overflow: hidden;
  z-index: -10;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.45) 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.45) 68%, transparent 100%);
  padding-top: 8rem;
}

.kn-hero-glow__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.kn-hero-glow__blob--m-lime {
  right: -55%;
  top: -10%;
  width: 520px;
  height: 420px;
  background: #9fd45c;
  filter: blur(40px) saturate(1.5);
}

.kn-hero-glow__blob--m-soft {
  right: -35%;
  top: 5%;
  width: 320px;
  height: 280px;
  background: #defcc4;
  opacity: 0.7;
  filter: blur(32px);
}

.kn-hero-glow__blob--m-teal {
  left: -70%;
  top: -5%;
  width: 560px;
  height: 480px;
  background: #64aac5;
  filter: blur(44px) brightness(1.25) saturate(1.5);
}

.kn-hero-glow__blob--m-cyan {
  left: -50%;
  top: 8%;
  width: 440px;
  height: 380px;
  background: #a1dff0;
  opacity: 0.9;
  filter: blur(40px) brightness(1.1) saturate(1.25);
}

.kn-hero-glow__mobile-top {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 200px;
  z-index: -8;
  background: linear-gradient(
    180deg,
    #070707 0%,
    #070707 28%,
    rgba(7, 7, 7, 0.82) 48%,
    rgba(7, 7, 7, 0.52) 68%,
    rgba(7, 7, 7, 0.22) 86%,
    transparent 100%
  );
}

.kn-hero-glow__mobile-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 320px;
  height: 460px;
  z-index: -9;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 28%,
    rgba(255, 255, 255, 0.85) 62%,
    #ffffff 100%
  );
}

html[data-theme="dark"] .kn-hero-glow__mobile-fade {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(7, 7, 7, 0.35) 28%,
    rgba(7, 7, 7, 0.85) 62%,
    #070707 100%
  );
}

.kn-hero-glow__desktop,
.kn-hero-glow__desktop-blend {
  display: none;
}

@media (min-width: 768px) {
  .kn-hero-glow__mobile-base,
  .kn-hero-glow__mobile-blobs,
  .kn-hero-glow__mobile-top,
  .kn-hero-glow__mobile-fade {
    display: none;
  }

  .kn-hero-glow__desktop {
    display: block;
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 980px;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
  }

  .kn-hero-glow__desktop-inner {
    position: absolute;
    width: 100%;
    background: #000;
    padding-top: 25rem;
  }

  .kn-hero-glow__blob--lime {
    right: -10%;
    width: 1710px;
    height: 1367px;
    border-radius: 1710px;
    background: #9fd45c;
    filter: blur(100px) saturate(1.5);
  }

  .kn-hero-glow__blob--soft {
    right: -5%;
    width: 900px;
    height: 800px;
    background: #defcc4;
    opacity: 0.7;
    filter: blur(80px);
  }

  .kn-hero-glow__blob--teal {
    left: -25%;
    margin-top: 0;
    width: 1809px;
    height: 1444px;
    border-radius: 1809px;
    background: #64aac5;
    filter: blur(120px) brightness(1.25) saturate(1.5);
  }

  .kn-hero-glow__blob--cyan {
    left: -20%;
    margin-top: 5%;
    width: 1600px;
    height: 1200px;
    background: #a1dff0;
    opacity: 0.9;
    filter: blur(140px) brightness(1.1) saturate(1.25);
  }

  .kn-hero-glow__blob--fade {
    margin-left: -50%;
    margin-top: 4%;
    width: 2774px;
    height: 1444px;
    border-radius: 2774px;
    background: #fff;
    opacity: 0.9;
    filter: blur(142px);
  }

  html[data-theme="dark"] .kn-hero-glow__blob--fade {
    background: #070707;
  }

  .kn-hero-glow__desktop-blend {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    z-index: -9;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 45%,
      #ffffff 100%
    );
  }

  html[data-theme="dark"] .kn-hero-glow__desktop-blend {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(7, 7, 7, 0.5) 45%,
      #070707 100%
    );
  }
}

@media (min-width: 1024px) {
  .kn-hero-glow__blob--fade {
    margin-left: -32%;
  }
}

/* —— Premium news slider (строго в 1112) —— */
.kn-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
}

.kn-slider__stage {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: #0b253e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

@media (min-width: 900px) {
  .kn-slider__stage {
    height: 420px;
  }
}

.kn-slider__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
}

.kn-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .kn-slider__slide {
    grid-template-columns: 1.25fr 1fr;
  }
}

.kn-slider__media {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0b253e, #3b648c);
}

.kn-slider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 6.5s ease-out;
}

.kn-slider__slide.is-active .kn-slider__media img {
  transform: scale(1);
}

.kn-slider__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 7, 0) 0%,
    rgba(7, 7, 7, 0.12) 45%,
    rgba(7, 7, 7, 0.42) 100%
  );
  pointer-events: none;
}

@media (min-width: 900px) {
  .kn-slider__shade {
    background: linear-gradient(
      90deg,
      rgba(7, 7, 7, 0) 0%,
      rgba(7, 7, 7, 0.08) 40%,
      rgba(7, 7, 7, 0.28) 100%
    );
  }
}

.kn-slider__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px 22px;
  color: #fff;
  z-index: 2;
}

@media (min-width: 900px) {
  .kn-slider__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px;
    background: rgba(7, 7, 7, 0.58);
    backdrop-filter: blur(10px);
  }
}

.kn-kicker--on-dark {
  color: var(--kn-lime);
}

.kn-slider__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.kn-slider__title a {
  color: #fff !important;
  text-decoration: none !important;
}

.kn-slider__title a:hover {
  color: var(--kn-lime) !important;
}

.kn-slider__deck {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

.kn-meta--on-dark {
  color: rgba(255, 255, 255, 0.65);
}

.kn-slider__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.kn-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.kn-slider__arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.kn-slider__arrow:hover {
  background: rgba(208, 248, 160, 0.2);
  border-color: var(--kn-lime);
  transform: translateY(-1px);
}

.kn-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kn-slider__dot {
  position: relative;
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  cursor: pointer;
}

.kn-slider__dot.is-active {
  background: rgba(255, 255, 255, 0.35);
}

.kn-slider__dot-progress {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--kn-lime);
  border-radius: inherit;
}

/* Stats: views + comments */
.kn-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kn-muted);
}

.kn-slider .kn-stats {
  color: rgba(255, 255, 255, 0.78);
}

.kn-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kn-stats__ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  opacity: 0.85;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.kn-stats__item--views .kn-stats__ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}

.kn-stats__item--comments .kn-stats__ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 6h16v10H8l-4 4V6z' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 6h16v10H8l-4 4V6z' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.kn-story__body .kn-stats,
.kn-lead__body .kn-stats {
  margin-top: 4px;
}

.kn-popular__item {
  grid-template-columns: 40px 64px minmax(0, 1fr) !important;
  grid-template-rows: auto auto;
}

.kn-popular__item .kn-popular__n {
  grid-row: 1 / span 2;
}

.kn-popular__item .kn-popular__thumb {
  grid-row: 1 / span 2;
}

.kn-popular__item .kn-stats {
  grid-column: 3;
  margin-top: 2px;
}

/* Topics */
.kn-topics {
  margin: 0 0 28px;
  padding: 8px 0 0;
}

@media (min-width: 768px) {
  .kn-topics {
    margin-bottom: 36px;
    padding-top: 12px;
  }
}

.kn-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kn-topics__list a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--kn-card);
  border: 1px solid var(--kn-line);
  color: var(--kn-fg) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kn-topics__list a:hover {
  border-color: var(--kn-accent);
  transform: translateY(-1px);
}

/* Kickers / meta */
.kn-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kn-accent);
}

.kn-kicker--sm {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
}

.kn-meta {
  margin: 0;
  font-size: 13px;
  color: var(--kn-muted);
}

/* Legacy feature-card (top.php) — не путать с kn-atmosphere */
.kn-feature {
  margin-bottom: 56px;
}

.kn-feature-card {
  display: grid;
  gap: 0;
  background: var(--kn-card);
  border-radius: calc(var(--kn-radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--kn-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

/* Secondary cards under hero */
.kn-secondary {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 700px) {
  .kn-secondary {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
}

.kn-card {
  background: var(--kn-card);
  border-radius: var(--kn-radius);
  overflow: hidden;
  border: 1px solid var(--kn-line);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.kn-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0b253e, #3b648c);
  overflow: hidden;
}

.kn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.kn-card:hover .kn-card__media img {
  transform: scale(1.04);
}

.kn-card__body {
  padding: 16px 16px 18px;
}

.kn-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.kn-card__title a {
  color: var(--kn-fg) !important;
  text-decoration: none !important;
}

.kn-card__title a:hover {
  color: var(--kn-accent) !important;
}

/* Sections */
.kn-section {
  margin-top: 56px;
}

.kn-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.kn-section__title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.kn-section__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--kn-accent) !important;
  text-decoration: none !important;
}

.kn-section__more:hover {
  text-decoration: underline !important;
}

/* Schema-обёртка не должна ломать grid/карточки */
.kn-lead > div,
.kn-card > div,
.kn-story > div {
  display: contents;
}

/* Lead in latest feed */
.kn-lead {
  background: var(--kn-card);
  border-radius: calc(var(--kn-radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--kn-line);
  margin-bottom: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kn-lead:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.09);
}

@media (min-width: 860px) {
  .kn-lead {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 280px;
  }
}

.kn-lead__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0b253e, #1c688b);
  overflow: hidden;
}

@media (min-width: 860px) {
  .kn-lead__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.kn-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.kn-lead:hover .kn-lead__media img {
  transform: scale(1.03);
}

.kn-lead__body {
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 860px) {
  .kn-lead__body {
    padding: 36px 32px;
  }
}

.kn-lead__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.kn-lead__title a {
  color: var(--kn-fg) !important;
  text-decoration: none !important;
}

.kn-lead__title a:hover {
  color: var(--kn-accent) !important;
}

.kn-lead__deck {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--kn-muted);
}

/* Latest grid */
.kn-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .kn-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.kn-story {
  background: var(--kn-card);
  border-radius: var(--kn-radius);
  overflow: hidden;
  border: 1px solid var(--kn-line);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kn-story:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.kn-story__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b253e, #1c688b);
  overflow: hidden;
}

.kn-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.kn-story:hover .kn-story__media img {
  transform: scale(1.04);
}

.kn-story__body {
  padding: 20px 20px 22px;
}

.kn-story__title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.kn-story__title a {
  color: var(--kn-fg) !important;
  text-decoration: none !important;
}

.kn-story__title a:hover {
  color: var(--kn-accent) !important;
}

.kn-story__deck {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--kn-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Popular */
.kn-popular {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .kn-popular {
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
  }
}

.kn-popular__item {
  display: grid;
  grid-template-columns: 40px 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--kn-card);
  border: 1px solid var(--kn-line);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.kn-popular__item:hover {
  border-color: var(--kn-accent);
  transform: translateY(-1px);
}

.kn-popular__n {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--kn-muted);
}

.kn-popular__thumb {
  display: block;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b253e;
}

.kn-popular__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kn-popular__link {
  color: var(--kn-fg) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.kn-popular__link:hover {
  color: var(--kn-accent) !important;
}

/* Fallback if thumb missing in popular */
.kn-popular__item:not(:has(.kn-popular__thumb)) {
  grid-template-columns: 40px 1fr;
}
