:root {
  --bg: #eef2f8;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --text: #122033;
  --muted: #687387;
  --line: #dde5f0;
  --line-strong: #cdd8e7;
  --accent: #ff5a1f;
  --accent-2: #ff8a00;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --navy: #141d2d;
  --navy-soft: #1d2940;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 50px rgba(18, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(255, 138, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3f8 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.container { width: min(1320px, calc(100% - 36px)); margin: 0 auto; }
.site-main { padding: 28px 0 72px; }
.home .site-main,
.archive .site-main,
.category .site-main,
.search .site-main,
.single .site-main,
.page .site-main,
.blog .site-main { padding-top: 28px; }

.topbar {
  background: linear-gradient(90deg, #121b2a 0%, #1a2437 100%);
  color: #d9e1ee;
  font-size: 14px;
}
.topbar-inner {
  min-height: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.topbar-meta,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar-links { justify-content: flex-end; }
.topbar-social-link {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}
.topbar-slogan {
  text-align: center;
  color: #ffb25d;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #44c56d;
  box-shadow: 0 0 0 6px rgba(68, 197, 109, 0.12);
}
.topbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
}

/* Sticky Header - Homepage and Category pages only */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* 管理员有32px工具栏，需要偏移 */
body.logged-in.admin-bar .sticky-header {
  top: 32px;
}
.home .sticky-header,
.archive .sticky-header,
.search .sticky-header {
  background: #fff;
  border-bottom: 1px solid rgba(221, 229, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* Single post and other pages - no sticky */
.single .sticky-header,
.page .sticky-header,
.error404 .sticky-header {
  position: relative;
}

/* Body offset for sticky header */
body {
  padding-top: 0;
}
.navbar-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}
.navbar-inner > * {
  align-self: center;
}
.main-nav {
  min-width: 0;
  overflow: visible;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(255, 90, 31, 0.16);
}
.brand-mark--logo {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-text small {
  color: #99a3b2;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1;
}
.main-nav li {
  display: flex;
  align-items: center;
  min-width: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  color: #334155;
  transition: all 0.2s ease;
}
.main-nav a:hover {
  background: rgba(255, 90, 31, 0.08);
  color: var(--accent);
}
.main-nav .menu-item.current-menu-item > a {
  background: rgba(255, 90, 31, 0.12);
  color: var(--accent);
}
.main-nav .menu-item.current-menu-item > a,
.main-nav a:hover {
  background: rgba(255, 90, 31, 0.08);
  color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.button-primary,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(255, 90, 31, 0.18);
}
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}
.nav-search {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f5f7fb;
  border: 1px solid #edf1f5;
  color: #475569;
  font-weight: 700;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.hero-panel,
.article-content,
.sidebar,
.ranking-panel {
  overflow: hidden;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-heading--hero { align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-title,
.entry-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.section-title--lg { font-size: clamp(30px, 3.4vw, 40px); }
.section-title--sm,
.sidebar-title {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.3;
}
.more-link,
.muted-text {
  color: var(--muted);
  font-size: 14px;
}
.more-link {
  font-weight: 700;
}
.more-link:hover { color: var(--accent); }

.hero-grid,
.content-grid,
.category-block {
  display: grid;
  gap: 24px;
}
.quick-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 24px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(221, 229, 240, 0.86);
  box-shadow: 0 10px 30px rgba(18, 32, 51, 0.05);
}
.quick-strip-label {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quick-strip-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-strip-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f8fc;
  color: #334155;
  font-weight: 700;
}
.pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.pulse-card {
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 253, 0.92));
  border: 1px solid rgba(221, 229, 240, 0.86);
  box-shadow: 0 14px 34px rgba(18, 32, 51, 0.05);
}
.pulse-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}
.pulse-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.pulse-card__label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-grid { grid-template-columns: minmax(0, 2fr) minmax(320px, 0.92fr); }
.content-grid { grid-template-columns: minmax(0, 1.78fr) minmax(300px, 0.72fr); align-items: start; }
.category-block { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr); }
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}
.hero-main-media,
.card > a,
.featured-image {
  position: relative;
  display: block;
}
.hero-main img,
.featured-image img,
.card img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.hero-main img,
.featured-image img { aspect-ratio: 16 / 9; }
.hero-main-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-main-copy h3 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.16;
}
.hero-main-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}
.hero-main-copy .meta-line {
  margin-bottom: 14px;
}
.hero-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.stack { display: grid; gap: 18px; }

.card {
  display: grid;
  gap: 14px;
}
.card > div { min-width: 0; }
.card--compact {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
}
.card--compact img {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}
.card-title {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.45;
}
.card-title--compact {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
}
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.video-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 32, 51, 0.76);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.meta-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.meta-line .meta-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  line-height: 1;
}
.meta-line .meta-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.entry-kicker { margin-bottom: 14px; }
.post-tags,
.share-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}
.tag-badge,
.share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #eef3ff;
  color: #274690;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(39, 70, 144, 0.04);
}
.share-badge:nth-child(1) a,
.share-list li:nth-child(1) .share-badge { background: #ff5d5d; color: #fff; }
.share-list li:nth-child(2) .share-badge { background: #2f6cf6; color: #fff; }
.share-list li:nth-child(3) .share-badge { background: #111827; color: #fff; }
.share-list li:nth-child(4) .share-badge { background: #315efb; color: #fff; }
.share-badge--copy {
  border: 0;
  cursor: pointer;
  background: #f4f7fb;
  color: #334155;
}

.post-adjacent-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
  padding: 30px 0 28px;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.post-adjacent-nav__item--next {
  text-align: right;
}

.post-adjacent-nav__link {
  display: grid;
  gap: 10px;
  min-height: 118px;
  align-content: start;
  color: var(--text);
}

.post-adjacent-nav__link:hover {
  color: var(--accent);
}

.post-adjacent-nav__link--disabled {
  color: #a8b1c0;
}

.post-adjacent-nav__label {
  display: block;
  color: #a69461;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.1;
}

.post-adjacent-nav__title {
  display: -webkit-box;
  color: currentColor;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-carousel {
  margin-top: 32px;
}

.related-carousel__head {
  border-bottom: 3px solid #a69461;
}

.related-carousel__tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.related-carousel__tab {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #e5e7eb;
  border-bottom: 0;
  background: #f8fafc;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
}

.related-carousel__tab--active {
  border-color: #111827;
  background: #111827;
  color: #f8fafc;
}

.related-carousel__viewport {
  margin-top: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.related-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.related-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 40px) / 3));
  gap: 20px;
}

.related-carousel__card {
  min-width: 0;
  scroll-snap-align: start;
}

.related-carousel__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: #eef2f7;
}

.related-carousel__media img,
.related-carousel__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: 168px;
  object-fit: cover;
}

.related-carousel__placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 900;
  background: linear-gradient(135deg, #fff4ed, #eef3ff);
}

.related-carousel__title {
  margin: 14px 0 0;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 900;
  line-height: 1.48;
}

.related-carousel__title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-carousel__controls {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.related-carousel__button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e0d3;
  background: #a69461;
  color: #fff;
  cursor: pointer;
}

.related-carousel__button:disabled {
  background: #dfd6c2;
  color: rgba(255, 255, 255, 0.86);
  cursor: default;
}
.ui-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 300;
}
.ui-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ad-banner { margin-bottom: 24px; }
.ad-placeholder,
.ad-slot .panel {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  color: #95a1b2;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 14px, #f1f5f9 14px, #f1f5f9 28px);
}
.ad-slot img {
  width: 100%;
  display: block;
  border-radius: 20px;
}
.ad-slot__frame {
  display: grid;
}
.ad-slot__item {
  grid-area: 1 / 1;
  min-width: 0;
}
.ad-slot__link,
.ad-slot__media {
  display: block;
  width: 100%;
  line-height: 0;
}
.ad-slot--carousel .ad-slot__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ad-slot--carousel .ad-slot__frame {
  position: relative;
  overflow: hidden;
}
.ad-slot--carousel .ad-slot__item.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.ad-slot-placeholder {
  text-align: center;
  gap: 10px;
}
.ad-slot-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ad-slot-placeholder strong {
  font-size: 22px;
  line-height: 1.3;
  color: #64748b;
}
.ad-slot-placeholder p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}
.ad-slot-size {
  margin-top: 4px !important;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 600;
}
.side-ad--stack .ad-slot .panel,
.side-ad--stack .ad-slot img {
  min-height: 280px;
}
.article-ad-top { margin-bottom: 24px; }

.ranking-panel {
  background: linear-gradient(180deg, #182235 0%, #111927 100%);
  color: #f8fbff;
}
.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.94));
}
.channel-panel,
.video-panel {
  position: relative;
}
.channel-panel::before,
.video-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.video-panel::before {
  display: none;
}
.ranking-panel .eyebrow,
.ranking-panel .more-link,
.ranking-panel .section-title,
.ranking-panel .sidebar-title { color: #fff; }
.ranking-panel .muted-text { color: rgba(255, 255, 255, 0.72); }
.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.ranking-list--compact { gap: 12px; }
.ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ranking-index {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffbf73;
  font-size: 18px;
  font-weight: 800;
}
.ranking-item a {
  color: inherit;
  font-size: 16px;
  line-height: 1.55;
}
.ranking-panel .ad-slot { margin-top: 24px; }
.ranking-panel .ad-slot .panel {
  min-height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
}

.article-content {
  padding: 34px 40px;
}
.article-content--video { padding: 34px 34px 40px; }
.entry-header { margin-bottom: 22px; }
.featured-image { margin: 26px 0 28px; }
.entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: #223247;
}
.entry-content p { margin: 0 0 16px; }
.entry-content h2,
.entry-content h3 {
  margin: 28px 0 14px;
  font-size: 24px;
}
.entry-content iframe,
.entry-content video,
.entry-content .wp-video,
.entry-content .wp-video-shortcode,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper,
.entry-content .wp-block-video video,
.entry-content .wp-block-cover video {
  width: 100% !important;
  max-width: 100% !important;
}
.entry-content iframe,
.entry-content .wp-block-embed iframe {
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
}
.entry-content .wp-video,
.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content .wp-block-cover {
  max-width: 100%;
}
.entry-content .wp-video-shortcode,
.entry-content .wp-block-video video,
.entry-content .wp-block-cover video {
  height: auto !important;
  display: block;
}
.entry-content .wp-video,
.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content .wp-block-cover,
.entry-content iframe,
.entry-content video {
  margin: 24px auto;
  border-radius: 18px;
  overflow: hidden;
}
.entry-content .wp-video,
.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content .wp-block-cover {
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafd);
  border: 1px solid #e8eef5;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
.entry-content iframe,
.entry-content video,
.entry-content .wp-video-shortcode,
.entry-content .wp-block-video video,
.entry-content .wp-block-cover video {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  background: #0f172a;
}
.entry-content .wp-block-embed__wrapper {
  overflow: hidden;
  border-radius: inherit;
}
.entry-content .wp-block-embed figcaption,
.entry-content .wp-block-video figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.entry-content ul,
.entry-content ol { padding-left: 24px; }
.share-box,
.related-posts { margin-top: 30px; }
.video-frame iframe {
  width: 100%;
  min-height: 580px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(18, 32, 51, 0.12);
}

.sidebar {
  position: sticky;
  top: 118px;
}
.sidebar-cta {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff3eb 0%, #fff9f5 100%);
  border: 1px solid #ffe1cf;
}
.sidebar-cta p {
  margin: 0 0 16px;
  color: #6f7b8f;
  line-height: 1.75;
}
.sidebar-ad-wrap + .sidebar-ad-wrap { margin-top: 18px; }
.sidebar .ad-slot .panel,
.sidebar .ad-slot img {
  min-height: 250px;
}

.static-page .entry-content {
  max-width: 880px;
}
.error-panel {
  text-align: center;
  padding: 64px 28px;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.comments-area {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.comments-title,
.comment-reply-title {
  margin: 0 0 18px;
  font-size: 28px;
}
.comment-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.comment-list ol {
  list-style: none;
  padding-left: 26px;
  margin-top: 14px;
}
.comment-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
}
.comment-author.vcard {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
  font-weight: 700;
}
.comment-author .avatar {
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(255, 90, 31, 0.16);
}
.comment-metadata {
  margin: 8px 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.comment-form {
  display: grid;
  gap: 18px;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 16px 18px;
  font: inherit;
}
.comment-form textarea { min-height: 160px; }
.comment-form-cookies-consent {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.form-submit { display: flex; justify-content: flex-end; }
.reply a { color: var(--accent); font-size: 14px; }

.site-footer {
  background: #11131d;
  color: #cbd5e1;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: 28px;
}
.footer-brand p {
  max-width: 420px;
  color: #93a0b3;
  font-size: 14px;
  line-height: 1.8;
}
.footer-text {
  white-space: pre-line;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.site-footer h4,
.site-footer h3 {
  margin: 0 0 18px;
  color: #fff;
}
.menu,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.site-footer .menu a,
.footer-contact li,
.footer-bottom-links a {
  color: #93a0b3;
}
.button-ghost--footer {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #d8e0ec;
}
.footer-cta-group {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #657388;
  font-size: 13px;
}
.footer-bottom-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.archive-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 0, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.92));
}
.archive-hero--video {
  background:
    radial-gradient(circle at top right, rgba(49, 94, 251, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 255, 0.94));
}
.archive-hero,
.article-content,
.homepage-main .panel,
.homepage-main .ranking-panel--home {
  border-radius: 20px;
}
.archive-hero,
.article-content--news,
.article-content--video,
.homepage-main .panel,
.homepage-main .ranking-panel--home {
  padding: 24px;
}
.archive-intro {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.search-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: start;
  padding-top: 108px;
  background: rgba(10, 15, 25, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.search-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.search-drawer-inner {
  width: min(880px, calc(100% - 24px));
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  padding: 24px;
}
.search-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.search-drawer-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  cursor: pointer;
}
.search-form {
  display: flex;
  gap: 14px;
  align-items: center;
}
.search-field {
  flex: 1;
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 0 18px;
  background: #fff;
  font: inherit;
}
.search-submit {
  flex-shrink: 0;
}

.navigation.pagination {
  margin-top: 28px;
}
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.page-numbers.current {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f2f, #ff7b1a);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 18px 30px rgba(244, 63, 47, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1120px) {
  .topbar-inner,
  .navbar-inner,
  .hero-main,
  .hero-grid,
  .content-grid,
  .category-block,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .topbar-slogan,
  .topbar-links,
  .main-nav ul,
  .nav-actions,
  .footer-bottom { justify-content: flex-start; }

  .topbar-inner,
  .navbar-inner { padding: 12px 0; }

  .sidebar {
    position: static;
    top: auto;
  }
  .pulse-strip {
    grid-template-columns: 1fr;
  }
  .quick-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .container { width: min(100% - 24px, 1280px); }
  .panel,
  .article-content { padding: 22px; }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-main-copy h3 {
    font-size: 28px;
  }
  .hero-main-copy p,
  .archive-intro,
  .entry-content {
    font-size: 16px;
  }
  .hero-sub-grid { grid-template-columns: 1fr; }
  .card--compact { grid-template-columns: 104px minmax(0, 1fr); }
  .quick-strip-links,
  .nav-actions {
    width: 100%;
  }
  .quick-strip-links a,
  .nav-actions .button-primary,
  .nav-actions .button-ghost {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }
  .section-title,
  .entry-title { font-size: clamp(28px, 8vw, 38px); }
  .video-frame iframe { min-height: 300px; }
  .button-primary,
  .button-ghost,
  .nav-search { min-height: 46px; height: 46px; }
  .ranking-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }
  .ranking-index {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 15px;
  }
  .sidebar-cta,
  .sidebar .ad-slot .panel,
  .sidebar .ad-slot img {
    min-height: auto;
  }
  .search-form { flex-direction: column; align-items: stretch; }
  .search-submit { width: 100%; }
  .search-drawer { padding-top: 84px; }
  .back-to-top {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .navbar-inner {
    gap: 10px 8px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 20px;
  }
  .brand-text strong {
    font-size: 14px;
  }
  .brand-text small {
    display: none;
  }
  .main-nav a {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 13px;
  }
  .pulse-card {
    padding: 16px 18px;
  }
  .hero-main {
    gap: 18px;
  }
  .card-title {
    font-size: 20px;
  }
  .card-title--compact {
    font-size: 16px;
  }
  .featured-image {
    margin: 20px 0 22px;
  }
  .article-content {
    padding: 20px 18px;
  }
}

body {
  background:
    linear-gradient(180deg, #f5f6fa 0%, #f3f4f8 100%);
}

.homepage-main {
  padding-top: 38px;
}

.homepage-main .quick-strip {
  display: none;
}

.homepage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 30px;
}

.homepage-hero__main,
.homepage-hero__aside {
  min-width: 0;
}

.hero-showcase {
  position: relative;
}

.hero-showcase__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
}

.hero-showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.hero-showcase__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
}

.hero-showcase__overlay {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 2;
  color: #fff;
}

.hero-showcase__overlay h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.35;
}

.hero-showcase__overlay h2 a,
.mini-feature__overlay h3 a {
  color: inherit;
}

.hero-showcase__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.meta-line--light,
.meta-line--light span {
  color: rgba(255, 255, 255, 0.88);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mini-feature__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.mini-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 25%, rgba(15, 23, 42, 0.78) 100%);
}

.mini-feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.mini-feature__overlay {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  color: #fff;
}

.mini-feature__overlay h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.ranking-panel--home {
  background: #fff;
  color: var(--text);
}

.ranking-panel--home .section-title,
.ranking-panel--home .more-link,
.ranking-panel--home .sidebar-title {
  color: var(--text);
}

.ranking-panel--home .muted-text {
  color: #9ca3af;
}

.ranking-list--home .ranking-item {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f6;
}

.ranking-list--home .ranking-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ranking-list--home .ranking-index {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #ffefe7;
  color: var(--accent);
  font-size: 15px;
}

.ranking-meta {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 13px;
}

.ranking-meta span {
  display: inline-flex;
  align-items: center;
}

.ranking-meta__views {
  gap: 6px;
  white-space: nowrap;
}

.ranking-meta__views .meta-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  line-height: 1;
}

.ranking-meta__views .meta-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.homepage-section {
  margin-bottom: 28px;
}

.section-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-left: 4px solid var(--marker-accent);
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.section-title--inline {
  display: inline-block;
  vertical-align: middle;
}

.lead-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
}

.card--feature a img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-title--feature {
  font-size: 22px;
}

.two-column-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.stack--compact {
  gap: 14px;
}

.homepage-section--card .card--feature-sm {
  margin-bottom: 16px;
}

.homepage-section--card .card--feature-sm .card-title {
  font-size: 16px;
  line-height: 1.45;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.news-list__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.news-list__copy h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
}

.video-panel--homepage .video-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.video-card a {
  position: relative;
  display: block;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.video-card h3 {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.homepage-section--mosaic .mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mosaic-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 18px;
}

.mosaic-card h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.5;
}

.article-content {
  background: #fff;
}

.content-grid {
  grid-template-columns: minmax(0, 1.52fr) minmax(250px, 0.48fr);
  gap: 26px;
}

.article-content .entry-title {
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.45;
}

.entry-header {
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f6;
}

.featured-image img {
  border-radius: 18px;
}

.entry-content {
  font-size: 17px;
  line-height: 2;
}

.share-box {
  padding-top: 18px;
  border-top: 1px solid #edf1f6;
}

.share-box .section-heading {
  margin-bottom: 14px;
}

.comments-area .section-title {
  font-size: 24px;
}

.comment-form textarea {
  min-height: 140px;
}

.article-content--video {
  max-width: 980px;
  margin: 0 auto 24px;
}

.article-content--video .entry-title {
  font-size: 24px;
}

.article-content--video .video-frame {
  margin-top: 18px;
}

.article-content--video .video-frame iframe {
  min-height: 640px;
  border-radius: 14px;
}

@media (max-width: 1120px) {
  .homepage-hero,
  .lead-section-grid,
  .two-column-sections,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .homepage-hero__aside {
    display: grid;
    gap: 18px;
  }

  .video-panel--homepage .video-strip,
  .homepage-section--mosaic .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-mini-grid,
  .video-panel--homepage .video-strip,
  .homepage-section--mosaic .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .news-list__item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .hero-showcase__overlay h2 {
    font-size: 22px;
  }

  .article-content--video .video-frame iframe {
    min-height: 320px;
  }
}

.content-grid {
  align-items: start;
  grid-template-columns: minmax(0, 980px) 300px;
  justify-content: center;
}

.article-main-column {
  min-width: 0;
}

.article-content--news {
  padding: 24px 24px 30px;
}

.article-content--news .entry-title {
  font-size: 24px;
  line-height: 1.55;
}

.article-content--news .entry-header {
  margin-bottom: 16px;
}

.article-content--news .featured-image {
  margin: 18px 0 22px;
}

.article-content--news .featured-image img {
  aspect-ratio: auto;
}

.article-content--news .entry-content {
  font-size: 16px;
  line-height: 1.95;
}

.article-content--news .share-box,
.article-content--news .post-adjacent-nav,
.article-content--news .related-posts,
.article-content--news .comments-area {
  margin-top: 26px;
}

.sidebar--news {
  position: sticky;
  top: 58px;
  display: grid;
  gap: 18px;
}

.sidebar--news .panel {
  margin-bottom: 0;
}

.sidebar--news .sidebar-title {
  font-size: 18px;
}

.sidebar--news .ranking-list--compact {
  gap: 14px;
}

.sidebar--news .ranking-item {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.sidebar--news .ranking-index {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  background: #ffefe7;
  color: var(--accent);
}

.sidebar--news .ad-slot .panel,
.sidebar--news .ad-slot img {
  height: 240px;
  min-height: 240px;
}

.comments-area__title {
  font-size: 22px;
}

.comments-lazy {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.comments-lazy__button {
  margin-top: 16px;
  min-width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  justify-content: flex-start;
}

.comments-lazy__button:hover,
.comments-lazy__button:focus-visible {
  background: transparent;
  box-shadow: none;
  color: #e24d17;
}

.comments-lazy__button[hidden] {
  display: none;
}

.comments-skeleton {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.comments-skeleton__card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #edf1f6;
  border-radius: 18px;
  background: #fff;
}

.comments-skeleton__card--subtle {
  opacity: 0.82;
}

.comments-skeleton__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: comments-skeleton-shimmer 1.2s linear infinite;
}

.comments-skeleton__body {
  display: grid;
  gap: 10px;
}

.comments-skeleton__line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f7f9fc 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: comments-skeleton-shimmer 1.2s linear infinite;
}

.comments-skeleton__line--name {
  width: 120px;
}

.comments-skeleton__line--meta {
  width: 84px;
  height: 10px;
}

.comments-skeleton__line--lg {
  width: 100%;
}

.comments-skeleton__line--md {
  width: 82%;
}

.comments-skeleton__line--sm {
  width: 64%;
}

.comments-lazy__status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.comments-lazy__status.is-error {
  color: #b42318;
}

.comments-lazy__content {
  margin-top: 20px;
}

@keyframes comments-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.comments-area .comment-form {
  gap: 14px;
}

.comments-area .comment-form textarea,
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"] {
  border-radius: 14px;
  min-height: auto;
}

.comments-area .form-submit {
  justify-content: flex-end;
}

.comments-area .submit {
  min-width: 160px;
}

.video-detail-page {
  max-width: 1180px;
}

.video-stage {
  max-width: 980px;
  margin: 0 auto 22px;
}

.video-stage .video-frame iframe {
  min-height: 620px;
  border-radius: 10px;
  box-shadow: none;
}

.article-content--video {
  max-width: 980px;
  padding: 24px 24px 30px;
  border-radius: 20px;
}

.article-content--video .entry-title {
  font-size: 24px;
  line-height: 1.45;
}

.meta-line--video {
  margin-top: 10px;
  margin-bottom: 18px;
  color: #94a3b8;
}

.article-content--video .entry-content {
  font-size: 16px;
  line-height: 1.9;
}

.article-content--video .comments-area {
  margin-top: 24px;
}

@media (max-width: 1120px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar--news {
    position: static;
  }

  .video-stage .video-frame iframe {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .article-content--news,
  .article-content--video {
    padding: 20px 18px 24px;
  }

  .article-content--news .entry-title {
    font-size: 20px;
  }

  .article-content--news .entry-content,
  .article-content--video .entry-content {
    font-size: 14px;
  }

  .post-adjacent-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 0;
  }

  .post-adjacent-nav__item--next {
    text-align: right;
  }

  .post-adjacent-nav__link {
    min-height: auto;
  }

  .post-adjacent-nav__label {
    font-size: 18px;
  }

  .post-adjacent-nav__title {
    font-size: 14px;
    line-height: 1.45;
  }

  .related-carousel__tab {
    min-height: 44px;
    padding: 0 16px;
    font-size: 16px;
  }

  .related-carousel__track {
    grid-auto-columns: minmax(78vw, 1fr);
    gap: 16px;
  }

  .related-carousel__viewport {
    margin-top: 22px;
  }

  .entry-content .wp-video,
  .entry-content .wp-block-embed,
  .entry-content .wp-block-video,
  .entry-content .wp-block-cover,
  .entry-content iframe,
  .entry-content video {
    margin: 18px auto;
    border-radius: 14px;
  }
  .entry-content .wp-video,
  .entry-content .wp-block-embed,
  .entry-content .wp-block-video,
  .entry-content .wp-block-cover {
    padding: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  }
  .entry-content iframe,
  .entry-content video,
  .entry-content .wp-video-shortcode,
  .entry-content .wp-block-video video,
  .entry-content .wp-block-cover video {
    border-radius: 10px;
  }

  .video-stage .video-frame iframe {
    min-height: 260px;
  }
}

/* Homepage refinement v2 */
body.home {
  background: #f5f6f8;
}

.home .site-main {
  padding-top: 20px;
}

.home .header-masthead-ad {
  padding: 8px 0 10px;
  background: #fff;
}

.home .header-masthead-ad .container {
  display: flex;
  justify-content: center;
}

.header-masthead-ad {
  background: #f8fafc;
  padding: 0;
  position: static;
}
.header-masthead-ad .ad-slot {
  max-width: 1920px;
  margin: 0 auto;
}
.header-masthead-ad .ad-slot .panel,
.header-masthead-ad .ad-slot img {
  min-height: 110px;
  border-radius: 0;
}

.home .header-masthead-ad .ad-slot .panel,
.home .header-masthead-ad .ad-slot img {
  min-height: 110px;
  border-radius: 18px;
}

.home .topbar {
  background: #111827;
  box-shadow: none;
}

.home .topbar-inner {
  min-height: 52px;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
}

.home .topbar-slogan {
  font-size: 14px;
  color: #ff8b3d;
}

.home .topbar-links {
  gap: 16px;
}

.home .topbar-links a {
  color: #cbd5e1;
  font-size: 13px;
}

.home .navbar {
  position: relative;
  top: auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}


.home .button-primary,
.home .button-ghost,
.home .nav-search {
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  box-shadow: none;
}

.home .nav-search {
  width: 44px;
  padding: 0;
}

.homepage-main {
  padding-top: 22px;
}

.homepage-main .panel,
.homepage-main .ranking-panel--home {
  border: 1px solid #eceff4;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.homepage-main .ad-banner {
  margin-bottom: 28px;
}

.homepage-main .ad-placeholder,
.homepage-main .ad-slot .panel {
  min-height: 106px;
  border-radius: 24px;
  border: 1px dashed #e6eaf1;
  color: #b4bcc8;
  background: repeating-linear-gradient(135deg, #fcfcfd, #fcfcfd 12px, #f7f8fa 12px, #f7f8fa 24px);
}

.homepage-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(280px, 0.82fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 36px;
}

.homepage-hero__aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-showcase__media {
  border-radius: 26px;
}

.hero-showcase__media img {
  height: 628px;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.hero-showcase__overlay {
  right: 24px;
  bottom: 22px;
  left: 24px;
}

.hero-showcase__overlay h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.hero-showcase__tag {
  top: 14px;
  left: 14px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
}

.hero-mini-grid {
  gap: 16px;
  margin-top: 40px;
}

.mini-feature__media {
  border-radius: 18px;
}

.mini-feature__media img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mini-feature__overlay {
  right: 14px;
  bottom: 12px;
  left: 14px;
}

.mini-feature__overlay h3 {
  font-size: 13px;
  line-height: 1.55;
}

.ranking-panel--home {
  padding: 20px;
}

.ranking-panel--home .section-heading {
  margin-bottom: 16px;
}

.ranking-list--home {
  gap: 0;
}

.ranking-list--home .ranking-item {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.ranking-list--home .ranking-item:first-child {
  padding-top: 0;
}

.ranking-list--home .ranking-index {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 14px;
}

.ranking-list--home .ranking-item a {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 超出几行省略 */
  overflow: hidden;
  height: 3.234em;
}

.ranking-meta {
  font-size: 12px;
}

.homepage-hero__aside .ad-slot .panel,
.homepage-hero__aside .ad-slot img {
  min-height: 240px;
  border-radius: 24px;
}

.homepage-section {
  margin-bottom: 32px;
}

.homepage-main .section-heading {
  align-items: center;
  margin-bottom: 16px;
}

.homepage-main .section-heading > div {
  display: inline-flex;
  align-items: center;
}

.homepage-main .section-marker {
  position: relative;
  width: auto;
  height: auto;
  margin-right: 12px;
  padding-right: 12px;
  border-left: 0;
  font-size: 22px;
  line-height: 1;
}

.homepage-main .section-marker::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  bottom: 1px;
  width: 3px;
  border-radius: 999px;
  background: var(--marker-accent);
}

.homepage-main .section-title--sm.section-title--inline {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.homepage-main .more-link {
  color: var(--accent);
}

.lead-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.98fr);
  gap: 22px;
  align-items: stretch;
}

.homepage-section--lead .hero-showcase {
  height: 100%;
}

.homepage-section--lead .hero-showcase__media {
  height: 100%;
}

.homepage-section--lead .hero-showcase__media img {
  height: 100%;
  aspect-ratio: auto;
}

.news-list {
  gap: 16px;
}

.news-list__item {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
}

.news-list__thumb img {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.news-list__copy h3 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.55;
  color: #1f2937;
}

.two-column-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.homepage-section--card .card--feature-sm {
  gap: 12px;
  margin-bottom: 18px;
}

.homepage-section--card .card--feature-sm a img {
  aspect-ratio: 16 / 10.8;
  border-radius: 18px;
}

.homepage-section--card .card--feature-sm .card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.video-panel--homepage .video-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.video-card img {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.video-card h3 {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.homepage-section--list .news-list__item {
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f6;
}

.homepage-section--list .news-list__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.homepage-section--mosaic .mosaic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mosaic-card img {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}

.mosaic-card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.55;
}

.mosaic-card .meta-line {
  font-size: 13px;
}

.home .site-footer {
  margin-top: 24px;
}

@media (max-width: 1200px) {
  .topbar-inner,
  .navbar-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topbar-links,
  .main-nav ul,
  .nav-actions {
    justify-content: flex-start;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }

  .homepage-hero,
  .lead-section-grid,
  .two-column-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, 1320px);
  }

  .navbar {
    overflow: hidden;
  }

  .navbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 10px;
    padding: 12px 0 10px;
    align-items: center;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
    gap: 2px;
  }

  .brand-text strong {
    font-size: 15px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text small {
    font-size: 10px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-self: end;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .nav-search {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .main-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    padding-right: 8px;
  }

  .main-nav li {
    flex: 0 0 auto;
  }

  .main-nav a {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .homepage-hero__main > .hero-showcase .hero-showcase__media img {
    height: clamp(260px, 56vw, 320px);
  }

  .homepage-hero__main > .hero-showcase .hero-showcase__overlay {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .home .header-masthead-ad {
    padding-top: 6px;
  }

  .home .header-masthead-ad .ad-slot .panel,
  .home .header-masthead-ad .ad-slot img {
    min-height: 74px;
  }

  .hero-mini-grid,
  .video-panel--homepage .video-strip,
  .homepage-section--mosaic .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .homepage-main .panel,
  .homepage-main .ranking-panel--home {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-showcase__media,
  .hero-showcase__media img,
  .homepage-main .ad-placeholder,
  .homepage-main .ad-slot .panel {
    border-radius: 18px;
  }

  .news-list__item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .homepage-main .section-title--sm.section-title--inline {
    font-size: 17px;
  }
}

/* Search Drawer */
.search-drawer {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body:not(.logged-in.admin-bar) .search-drawer {
  top: 0;
}

.search-drawer-inner {
  max-width: 720px;
}

.search-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 12px;
}

.search-drawer-close:hover {
  color: var(--text);
}

/* Final UI polish */
img {
  transition: transform 0.28s ease, filter 0.28s ease;
}

.card,
.news-list__item,
.video-card,
.mosaic-card,
.mini-feature,
.hero-showcase {
  min-width: 0;
}

.card > a,
.news-list__thumb,
.video-card a,
.mosaic-card > a,
.mini-feature__media,
.hero-showcase__media {
  overflow: hidden;
}

.card:hover img,
.news-list__item:hover img,
.video-card:hover img,
.mosaic-card:hover img,
.mini-feature:hover img,
.hero-showcase:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.card-title,
.card-title--compact,
.hero-showcase__overlay h2,
.mini-feature__overlay h3,
.news-list__copy h3,
.video-card h3,
.mosaic-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title,
.card-title--compact,
.hero-showcase__overlay h2,
.news-list__copy h3,
.video-card h3,
.mosaic-card h3 {
  -webkit-line-clamp: 2;
}

.mini-feature__overlay h3 {
  -webkit-line-clamp: 2;
}

.news-list__item {
  align-items: start;
}

/* Mobile top navigation drawer */
.mobile-nav-head,
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 820px) {
  body.has-mobile-menu-open {
    overflow: hidden;
  }

  .header-masthead-ad {
    display: none;
  }

  .topbar {
    display: none;
  }

  .sticky-header,
  .single .sticky-header,
  .page .sticky-header,
  .error404 .sticky-header {
    position: sticky;
    top: 0;
    z-index: 10000;
  }

  body.logged-in.admin-bar .sticky-header {
    top: 46px;
  }

  .navbar {
    overflow: visible;
    background: oklch(98.5% 0.006 82);
    border-bottom: 1px solid oklch(90% 0.02 250);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  }

  .navbar-inner {
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 8px 0;
  }

  .mobile-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
  }

  .brand,
  .mobile-nav-brand {
    min-width: 0;
    gap: 12px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 25px;
    box-shadow: 0 12px 26px rgba(255, 90, 31, 0.22);
  }

  .brand-mark--logo {
    padding: 2px;
    background: oklch(99% 0.004 82);
    border: 1px solid oklch(91% 0.018 72);
    box-shadow: 0 12px 26px rgba(18, 32, 51, 0.12);
  }

  .brand-text {
    min-width: 0;
    gap: 3px;
  }

  .brand-text strong {
    max-width: min(48vw, 260px);
    color: oklch(20% 0.04 255);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text small {
    display: block;
    max-width: min(48vw, 260px);
    color: oklch(48% 0.03 250);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    justify-self: end;
    gap: 8px;
  }

  .nav-search,
  .mobile-menu-toggle,
  .mobile-menu-close {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border: 1px solid oklch(89% 0.018 250);
    border-radius: 14px;
    background: oklch(96.5% 0.01 250);
    color: oklch(24% 0.04 255);
    box-shadow: none;
    cursor: pointer;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    display: none !important;
  }

  .mobile-menu-backdrop.is-open {
    display: none !important;
  }

  .main-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 10020 !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 18px 22px 30px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: oklch(98.8% 0.006 82);
    box-shadow: none;
    transform: translateX(-104%) !important;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none !important;
  }

  body.logged-in.admin-bar .main-nav {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
    height: calc(100dvh - 46px) !important;
  }

  .main-nav.is-open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid oklch(91% 0.018 250);
  }

  .mobile-nav-brand {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: inherit;
    justify-content: flex-start;
  }

  .mobile-nav-brand .brand-mark {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px;
    font-size: 27px;
  }

  .mobile-nav-brand .brand-text {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
  }

  .mobile-nav-brand .brand-text strong {
    max-width: calc(100vw - 172px);
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 6px 0 22px;
    align-items: stretch;
  }

  .main-nav li {
    display: block;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .main-nav a {
    display: flex;
    min-height: 54px;
    width: 100%;
    justify-content: flex-start;
    padding: 0 18px;
    border-radius: 14px;
    color: oklch(27% 0.035 255);
    background: transparent;
    font-size: 15px;
    font-weight: 800;
  }

  .main-nav ul.menu,
  .main-nav ul.menu > li,
  .main-nav ul.menu > li > a {
    width: 100% !important;
    max-width: none !important;
  }

  .main-nav ul.menu {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .main-nav ul.menu > li {
    justify-self: stretch !important;
  }

  .main-nav ul.menu > li > a {
    box-sizing: border-box !important;
  }

  .main-nav ul.menu > li > a > span {
    display: block;
    width: 100%;
  }

  .main-nav a:hover,
  .main-nav .current-menu-item > a {
    background: rgba(255, 90, 31, 0.1);
    color: var(--accent);
  }

  .search-drawer {
    z-index: 10030;
  }

  .related-carousel__tabs .related-carousel__tab.related-carousel__tab--active,
  .related-carousel__tabs .related-carousel__tab.related-carousel__tab--active:hover,
  .related-carousel__tabs .related-carousel__tab.related-carousel__tab--active:focus,
  .related-carousel__tabs .related-carousel__tab.related-carousel__tab--active:focus-visible {
    color: rgb(255, 255, 255) !important;
    -webkit-text-fill-color: rgb(255, 255, 255) !important;
  }
}

/* Article bottom recommendations */
.related-carousel {
  padding-top: 4px;
}

.related-carousel__head {
  border-bottom: 1px solid #e7edf5;
}

.related-carousel__tabs {
  gap: 6px;
}

.related-carousel__tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: #5f6b7d;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.related-carousel__tab:hover {
  color: var(--accent);
}

.related-carousel__tab--active {
  background: #fff4ec;
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.related-carousel__panel {
  margin-top: 20px;
}

.related-carousel__viewport {
  margin-top: 0;
  padding-bottom: 2px;
}

.related-carousel__track {
  grid-auto-columns: minmax(250px, calc((100% - 40px) / 3));
  gap: 20px;
}

.related-carousel__card {
  padding: 0 0 2px;
}

.related-carousel__media {
  border-radius: 16px;
  border: 1px solid #e7edf5;
  background: #f4f7fb;
}

.related-carousel__media img,
.related-carousel__placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.related-carousel__body {
  min-width: 0;
}

.related-carousel__title {
  margin: 12px 0 0;
  color: #182334;
  font-size: 17px;
  line-height: 1.55;
}

.related-carousel__meta {
  margin-top: 8px;
  color: #8a96a8;
  font-size: 12px;
  font-weight: 700;
}

.related-carousel__controls {
  margin-top: 18px;
}

.related-carousel__button {
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f6f8fb;
  color: #415066;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.related-carousel__button:hover:not(:disabled) {
  border-color: rgba(255, 90, 31, 0.36);
  background: rgba(255, 90, 31, 0.1);
  color: var(--accent);
}

.related-carousel__button:disabled {
  background: #f1f4f8;
  color: #b7c0cd;
}

@media (max-width: 820px) {
  .related-carousel__head {
    border-bottom: 1px solid #dfe7f1;
  }

  .related-carousel__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .related-carousel__tab {
    min-height: 42px;
    justify-content: center;
    border-radius: 12px;
    background: #f5f7fb;
    font-size: 14px;
  }

  .related-carousel__tab--active {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
  }

  .related-carousel__tabs .related-carousel__tab.related-carousel__tab--active,
  .related-carousel__tabs .related-carousel__tab.related-carousel__tab--active:hover,
  .related-carousel__tabs .related-carousel__tab.related-carousel__tab--active:focus-visible {
    color: #fff;
  }

  .related-carousel__panel {
    margin-top: 16px;
  }

  .related-carousel__viewport {
    overflow: visible;
  }

  .related-carousel__track {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-carousel__card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f6;
    scroll-snap-align: none;
  }

  .related-carousel__card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .related-carousel__media,
  .related-carousel__media img,
  .related-carousel__placeholder {
    border-radius: 12px;
  }

  .related-carousel__media img,
  .related-carousel__placeholder {
    aspect-ratio: 4 / 3;
    height: 84px;
  }

  .related-carousel__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .related-carousel__title a {
    -webkit-line-clamp: 3;
  }

  .related-carousel__meta {
    margin-top: 6px;
  }

  .related-carousel__controls {
    display: none;
  }
}

body img {
  border-radius: 0 !important;
}
