:root {
  --poster-bg: linear-gradient(180deg, #eef7f4 0%, #dbe9e4 46%, #f6f2e9 100%);
  --poster-ink: #10211b;
  --poster-muted: #61756e;
  --poster-accent: #0db36d;
  --poster-accent-strong: #078952;
  --poster-card: rgba(246, 255, 252, 0.06);
  --poster-border: rgba(210, 255, 240, 0.42);
  --page-bg: linear-gradient(180deg, #ecf7f3 0%, #f6f7f4 100%);
  --page-shadow: 0 24px 70px rgba(15, 37, 29, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --hero-avatar-url: none;
  --hero-cover-url: none;
}

body.theme-dark {
  --poster-bg: linear-gradient(180deg, #15181d 0%, #171b20 46%, #13161a 100%);
  --poster-ink: rgba(255, 255, 255, 0.96);
  --poster-muted: rgba(255, 255, 255, 0.6);
  --poster-accent: #e2c29d;
  --poster-accent-strong: #f0d4b3;
  --poster-card: rgba(31, 35, 41, 0.7);
  --poster-border: rgba(255, 255, 255, 0.08);
  --page-bg: radial-gradient(
    circle at top,
    #1b2026 0%,
    #14181d 52%,
    #111418 100%
  );
  --page-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--page-bg);
  color: var(--poster-ink);
}

body.theme-dark::before {
  background:
    radial-gradient(
      circle at top left,
      rgba(226, 194, 157, 0.08),
      transparent 26%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.04),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom center,
      rgba(226, 194, 157, 0.05),
      transparent 32%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(13, 179, 109, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 197, 72, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at bottom center,
      rgba(7, 137, 82, 0.12),
      transparent 35%
    );
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
}

.template-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 18px 14px 72px;
}

.poster-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 720px;
  padding: 22px 18px 18px;
  border-radius: 38px;
  background: var(--poster-bg);
  overflow: hidden;
  box-shadow: var(--page-shadow);
}

.poster-stage-cover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    var(--hero-cover-url) center top / var(--hero-cover-size, cover) no-repeat,
    var(--poster-bg);
  transform: scale(1.02);
  transform-origin: center top;
  pointer-events: none;
  z-index: 0;
}

.poster-stage--custom-ratio .poster-stage-cover {
  background-position: center top;
  transform: none;
}

.poster-stage--custom-ratio {
  aspect-ratio: var(--hero-cover-ratio);
  min-height: 0;
  justify-content: flex-end;
  margin-bottom: var(--poster-card-offset, 0px);
  overflow: visible;
}

.poster-stage--custom-ratio .poster-card {
  margin-top: auto;
  margin-bottom: clamp(14px, 4.2%, 34px);
  transform: translateY(var(--poster-card-offset, 0px));
}

.poster-stage-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 62%,
    rgba(247, 244, 236, 0.12) 88%,
    rgba(247, 244, 236, 0.18) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.poster-stage::after {
  content: "";
  position: absolute;
  inset: auto 4% 0 4%;
  height: 180px;
  background: radial-gradient(
    ellipse at center,
    rgba(246, 241, 229, 0.2) 0%,
    rgba(246, 241, 229, 0.08) 42%,
    transparent 72%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 1;
}

.poster-view-count,
.poster-share-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 24, 21, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 14px 28px rgba(8, 20, 16, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
}

.poster-view-count {
  top: 22px;
  left: 18px;
}

.poster-view-count__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.92;
}

.poster-view-count__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.poster-view-count__value {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.poster-share-pill {
  top: 22px;
  right: 18px;
  max-width: min(62%, 420px);
  gap: 10px;
  padding-right: 16px;
}

.poster-share-pill__label {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.poster-share-pill__text {
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
  gap: 18px;
  margin-top: 460px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--poster-card);
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  border: 1px solid var(--poster-border);
  box-shadow:
    0 16px 34px rgba(8, 33, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -1px 0 rgba(134, 255, 212, 0.06);
  z-index: 2;
  overflow: hidden;
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      130deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.015) 38%,
      rgba(115, 255, 203, 0.035) 100%
    ),
    radial-gradient(
      circle at 14% 16%,
      rgba(255, 255, 255, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 20%,
      rgba(18, 255, 157, 0.05),
      transparent 28%
    );
  pointer-events: none;
  z-index: 0;
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.06),
      transparent 28%,
      transparent 72%,
      rgba(120, 255, 220, 0.08)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.poster-card > * {
  position: relative;
  z-index: 1;
}

.poster-card--interactive {
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.poster-card--interactive:hover,
.poster-card--interactive:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(213, 255, 241, 0.72);
  box-shadow:
    0 22px 42px rgba(8, 33, 28, 0.12),
    0 0 0 1px rgba(210, 255, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(134, 255, 212, 0.08);
}

.poster-card--interactive:focus-visible {
  outline: none;
}

.poster-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding-top: 6px;
}

.poster-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
}

.poster-avatar-slot {
  flex-shrink: 0;
}

.poster-avatar-slot .teacher-avatar-container {
  position: static;
  margin: 0;
}

.poster-avatar-slot .teacher-avatar-main {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(16, 33, 27, 0.12);
  background: #fff;
}

.poster-meta-copy {
  min-width: 0;
  padding: 2px 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px 10px 14px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.52),
    rgba(255, 255, 255, 0.18)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 18px rgba(7, 28, 22, 0.05);
}

.poster-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.poster-role {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #00a86b;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.18);
  letter-spacing: 0.015em;
  opacity: 1;
}

.poster-date {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #2f413c;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.poster-chat-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #e88a1d;
  box-shadow: none;
  transform-origin: center right;
  animation: poster-chat-badge-wiggle 4s ease-in-out infinite;
}

.poster-chat-badge__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.poster-chat-badge__text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes poster-chat-badge-wiggle {
  0%,
  84%,
  100% {
    transform: scale(1) rotate(0deg) translateY(0);
  }
  86% {
    transform: scale(1.08) rotate(-7deg) translateY(-1px);
  }
  89% {
    transform: scale(1.12) rotate(6deg) translateY(0);
  }
  92% {
    transform: scale(1.06) rotate(-5deg) translateY(-1px);
  }
  96% {
    transform: scale(1.02) rotate(3deg) translateY(0);
  }
}

.poster-card-hint {
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(9, 36, 30, 0.24),
    rgba(7, 22, 18, 0.12)
  );
  border: 1px solid rgba(214, 255, 243, 0.18);
  color: rgba(239, 255, 249, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(5, 22, 17, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.poster-card-hint__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2cffb7;
  box-shadow: 0 0 10px rgba(44, 255, 183, 0.72);
  flex-shrink: 0;
}

.poster-card-hint__text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.poster-card-hint__arrow {
  font-size: 0.9rem;
  line-height: 1;
  transform: translateY(-1px);
}

.poster-card--interactive:hover .poster-card-hint,
.poster-card--interactive:focus-visible .poster-card-hint {
  border-color: rgba(214, 255, 243, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 26px rgba(5, 22, 17, 0.14),
    0 0 18px rgba(44, 255, 183, 0.08);
}

.poster-card--interactive:hover .poster-card-hint__arrow,
.poster-card--interactive:focus-visible .poster-card-hint__arrow {
  transform: translate(2px, -1px);
}

.poster-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 8px;
}

.poster-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(246, 249, 248, 0.92)
  );
  border: 1px solid rgba(16, 33, 27, 0.08);
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a6f68;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 14px rgba(15, 37, 29, 0.05);
}

.poster-title {
  margin: 0;
  max-width: 12.5em;
  font-size: clamp(1.4rem, 2.5vw, 2.02rem);
  line-height: 1.14;
  font-weight: 860;
  letter-spacing: -0.03em;
  color: #20312c;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
  -webkit-text-stroke: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(17, 33, 28, 0.08);
}

.poster-description {
  margin: 0;
  max-width: 34em;
  font-size: 1.04rem;
  line-height: 1.72;
  color: #385148;
}

.content-hero {
  padding: 4px 10px 12px;
  border-bottom: 1px solid rgba(16, 33, 27, 0.08);
  margin-bottom: 8px;
}

.product-slot {
  position: relative;
  z-index: 2;
}

.chat-entry-stage {
  position: relative;
  margin-top: 12px;
  padding: 0 8px;
}

.article-chat-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(244, 251, 247, 0.92)
  );
  border: 1px solid rgba(16, 33, 27, 0.08);
  box-shadow: 0 18px 44px rgba(15, 37, 29, 0.08);
}

.article-chat-card__media {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #dff8ea, #b9eacc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.article-chat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-chat-card__media--placeholder span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0d7f51;
}

.article-chat-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.article-chat-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0ea765;
}

.article-chat-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #20312c;
}

.article-chat-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #51655e;
}

.article-chat-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 179, 109, 0.12);
  color: #078952;
  font-size: 0.8rem;
  font-weight: 800;
}

.article-product-entry--multi {
  display: grid;
  gap: 12px;
}

.product-slot .article-product-card,
.product-slot .article-product-card--template4 {
  min-height: 156px !important;
  align-items: start !important;
}

.product-slot .article-product-card__media {
  height: 118px !important;
  min-height: 118px !important;
}

.product-slot .article-product-card__body {
  justify-content: flex-start !important;
  align-self: stretch !important;
  min-height: 136px !important;
}

.product-slot .article-product-card__desc,
.product-slot .article-product-card__desc--template4 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  overflow: hidden !important;
  line-height: 1.6 !important;
  flex: 0 0 auto !important;
  min-height: calc(1.6em * 2) !important;
  max-height: calc(1.6em * 4) !important;
}

.product-slot .article-product-card__footer {
  margin-top: auto !important;
}

.article-product-card-wrap {
  position: relative;
}

.article-product-card-wrap > .article-product-card__promo-badge {
  position: absolute !important;
  top: 8px;
  right: 10px;
  z-index: 8;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  max-width: 48%;
  padding: 0 7px;
  border-radius: 6px;
  background: #e02020;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 6px 16px rgba(224, 32, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  pointer-events: none;
  transform-origin: right top;
  animation: product-promo-badge-bounce 4s ease-in-out infinite;
}

@keyframes product-promo-badge-bounce {
  0%,
  76%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  82% {
    transform: translate3d(0, -1px, 0) scale(1.08) rotate(-7deg);
  }
  88% {
    transform: translate3d(0, 0, 0) scale(1.03) rotate(5deg);
  }
  93% {
    transform: translate3d(0, 0, 0) scale(1.06) rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-product-card-wrap > .article-product-card__promo-badge {
    animation: none;
  }
}

.product-slot--top {
  margin: 4px 0 18px;
}

.product-slot--bottom {
  margin: 24px 0 10px;
}

.product-slot .article-product-entry,
.product-slot .navigation-links {
  margin-left: 10px;
  margin-right: 10px;
}

.content-hero .poster-title {
  margin-bottom: 4px;
  padding-right: 14px;
}

.content-hero .poster-description {
  max-width: 100%;
}

body.theme-dark .poster-title {
  color: #f3f1ea;
  -webkit-text-stroke: 0;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.32);
}

body.theme-dark .poster-chat-badge {
  background: transparent;
  border-color: transparent;
  color: #ffb24a;
}

body.theme-dark .article-chat-card {
  background: linear-gradient(
    135deg,
    rgba(26, 31, 37, 0.96),
    rgba(21, 25, 30, 0.94)
  );
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

body.theme-dark .article-chat-card__media {
  background: linear-gradient(
    135deg,
    rgba(27, 76, 58, 0.92),
    rgba(18, 45, 34, 0.96)
  );
}

body.theme-dark .article-chat-card__media--placeholder span,
body.theme-dark .article-chat-card__eyebrow {
  color: #8ef1c1;
}

body.theme-dark .article-chat-card__title {
  color: rgba(255, 255, 255, 0.96);
}

body.theme-dark .article-chat-card__desc {
  color: rgba(255, 255, 255, 0.66);
}

body.theme-dark .article-chat-card__cta {
  background: rgba(142, 241, 193, 0.12);
  color: #a7f4cf;
}

.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.poster-primary,
.poster-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.poster-primary {
  background: linear-gradient(
    135deg,
    var(--poster-accent),
    var(--poster-accent-strong)
  );
  color: #fff;
  box-shadow: 0 14px 30px rgba(13, 179, 109, 0.24);
}

.poster-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--poster-ink);
  border: 1px solid rgba(16, 33, 27, 0.1);
}

.poster-primary:active,
.poster-secondary:active {
  transform: scale(0.98);
}

.content-stage {
  position: relative;
  margin-top: 6px;
  padding: 0 2px;
}

.content-card {
  position: relative;
  padding: 20px 14px 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff 40%);
  box-shadow: 0 22px 60px rgba(15, 37, 29, 0.1);
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(16, 33, 27, 0.05);
  pointer-events: none;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 18px;
  border-bottom: 1px solid rgba(16, 33, 27, 0.08);
}

.content-header-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--poster-ink);
}

.content-header-desc {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--poster-muted);
}

.content-header-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(13, 179, 109, 0.12),
    rgba(255, 197, 72, 0.28)
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--poster-accent-strong);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.content-container {
  position: relative;
  margin-top: -40px;
  padding: 14px 0 6px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.content-container .markdown-content {
  padding-bottom: 4px;
}

.content-container > p:first-child {
  margin-top: 0;
}

.content-container img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.content-container .teacher-dialogue-card .teacher-dialogue-avatar {
  display: block !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.content-container .teacher-list-grid {
  align-items: start !important;
}

.content-container .teacher-list-item {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.content-container .teacher-list-avatar-wrap {
  display: block !important;
  width: clamp(52px, 6vw, 68px) !important;
  min-width: clamp(52px, 6vw, 68px) !important;
  max-width: clamp(52px, 6vw, 68px) !important;
  height: clamp(52px, 6vw, 68px) !important;
  min-height: clamp(52px, 6vw, 68px) !important;
  max-height: clamp(52px, 6vw, 68px) !important;
  flex: 0 0 clamp(52px, 6vw, 68px) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.content-container .teacher-list-avatar-wrap .teacher-list-avatar {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.content-container .teacher-list-name {
  display: block !important;
  max-width: 6em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.content-container .article-product-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.poster-share-text {
  margin: 10px 0 0;
  max-width: 36em;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #4d635c;
}

.content-container .table-component,
.content-container .instruction-container,
.content-container .prompt-container,
.content-container .teacher-comment-container,
.content-container .video-card,
.content-container .w-player-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

.video-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 37, 29, 0.12);
  background: #fff;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #eef3f0;
}

.video-thumbnail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

.video-thumbnail--title-cover {
  background: #eef3f0;
}

.video-thumbnail--title-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(
    180deg,
    rgba(5, 18, 14, 0) 0%,
    rgba(5, 18, 14, 0.5) 58%,
    rgba(5, 18, 14, 0.76) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.video-thumbnail-title-card {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: block;
  padding: 0 18px 16px;
  background: transparent;
}

.video-thumbnail-title-card__eyebrow {
  display: none;
}

.video-thumbnail-summary {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 82%;
  padding: 10px 12px;
  border-left: 3px solid rgba(7, 193, 96, 0.46);
  border-radius: 0 14px 14px 0;
  background: transparent;
  color: rgba(72, 84, 79, 0.82);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-thumbnail-title-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0;
  white-space: normal;
  overflow: hidden;
  text-align: left;
  text-align-last: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

body.theme-dark .video-thumbnail-summary {
  background: transparent;
  color: rgba(220, 226, 224, 0.76);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #17d878, #07c160);
  box-shadow: 0 10px 22px rgba(7, 193, 96, 0.28);
  cursor: pointer;
  z-index: 3;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 12px 26px rgba(7, 193, 96, 0.34);
}

.video-play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7.5px 0 7.5px 12px;
  border-color: transparent transparent transparent #fff;
}

/* Mentor CTA Card: final premium glass override */
.poster-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 18px 16px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(244, 255, 251, 0.09),
    rgba(244, 255, 251, 0.03)
  );
  border: 1px solid rgba(220, 255, 245, 0.32);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    0 16px 40px rgba(8, 31, 26, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(118, 255, 212, 0.04);
  isolation: isolate;
}

.poster-card::before {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.016) 38%,
      rgba(80, 255, 196, 0.03) 100%
    ),
    radial-gradient(
      circle at 12% 12%,
      rgba(255, 255, 255, 0.16),
      transparent 34%
    );
  z-index: -2;
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.22) 49%,
    transparent 57%,
    transparent 100%
  );
  transform: translateX(-165%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.poster-card--interactive {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.poster-card--interactive:hover,
.poster-card--interactive:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(224, 255, 246, 0.58);
  box-shadow:
    0 22px 48px rgba(8, 31, 26, 0.12),
    0 0 0 1px rgba(220, 255, 245, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(118, 255, 212, 0.06);
}

.poster-card--interactive.is-attention::after {
  animation: poster-card-sheen 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.poster-main {
  gap: 10px;
  padding-top: 0;
}

.poster-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.poster-avatar-slot .teacher-avatar-main {
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 10px 24px rgba(12, 36, 30, 0.14),
    0 0 0 1px rgba(163, 255, 222, 0.08);
}

.poster-meta-copy {
  gap: 6px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(24, 44, 38, 0.18),
    rgba(13, 24, 21, 0.08)
  );
  border: 1px solid rgba(226, 255, 246, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(7, 24, 20, 0.05);
}

.poster-role {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1ed48a;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.poster-date {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(245, 252, 249, 0.9);
  text-shadow: none;
}

.poster-card-cta {
  display: flex;
  justify-content: flex-start;
}

.poster-card-button {
  appearance: none;
  border: 1px solid rgba(224, 255, 246, 0.18);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  color: rgba(248, 255, 252, 0.96);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 18px rgba(6, 22, 18, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.poster-card-button__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68ffd0;
  box-shadow: 0 0 10px rgba(104, 255, 208, 0.55);
  flex-shrink: 0;
}

.poster-card-button__text {
  white-space: nowrap;
}

.poster-card-button__arrow {
  font-size: 0.88rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.poster-card-hint {
  align-self: start;
  justify-self: end;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(8, 28, 23, 0.14);
  border: 1px solid rgba(220, 255, 245, 0.12);
  color: rgba(241, 252, 248, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.poster-card-hint__line {
  width: 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(104, 255, 208, 0.8),
    rgba(104, 255, 208, 0)
  );
}

.poster-card--interactive:hover .poster-card-button,
.poster-card--interactive:focus-visible .poster-card-button {
  transform: translateY(-1px);
  border-color: rgba(224, 255, 246, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 20px rgba(6, 22, 18, 0.12),
    0 0 16px rgba(86, 255, 206, 0.06);
}

.poster-card--interactive:hover .poster-card-button__arrow,
.poster-card--interactive:focus-visible .poster-card-button__arrow {
  transform: translate(2px, -1px);
}

@keyframes poster-card-sheen {
  0% {
    transform: translateX(-165%);
    opacity: 0;
  }

  18% {
    opacity: 0.2;
  }

  48% {
    opacity: 0.38;
  }

  100% {
    transform: translateX(165%);
    opacity: 0;
  }
}

.page-footer {
  margin-top: 24px;
  text-align: center;
  color: #71867e;
  font-size: 0.85rem;
}

.page-footer a {
  color: var(--poster-accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 14, 0.82);
  z-index: 9999;
  padding: 20px;
}

.video-modal.video-modal-immersive {
  padding: 0;
  background: #000;
}

#videoContainer {
  width: min(100%, 860px);
  margin: 12vh auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

#videoContainer.video-container-immersive {
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

#videoContainer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 28, 23, 0.72);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.video-modal.video-modal-immersive .video-modal-close {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 720px) {
  .template-shell {
    padding: 14px 10px 56px;
  }

  .poster-view-count,
  .poster-share-pill {
    top: 16px;
  }

  .poster-view-count {
    left: 14px;
    min-height: 38px;
    padding: 8px 12px;
  }

  .poster-share-pill {
    left: 14px;
    right: 14px;
    top: 64px;
    max-width: none;
    min-height: 40px;
    padding: 8px 12px;
  }

  .poster-share-pill__label {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .poster-share-pill__text {
    font-size: 0.78rem;
  }

  .product-slot--top {
    margin: 2px 0 14px;
  }

  .product-slot--bottom {
    margin: 18px 0 8px;
  }

  .product-slot .article-product-entry,
  .product-slot .navigation-links {
    margin-left: 4px;
    margin-right: 4px;
  }

  .video-modal {
    padding: 0;
  }

  #videoContainer {
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .poster-stage {
    min-height: 580px;
    padding: 12px;
    border-radius: 30px;
  }

  .poster-stage--custom-ratio {
    min-height: 0 !important;
  }

  .poster-stage--custom-ratio .poster-card {
    margin-top: auto !important;
    margin-bottom: 16px !important;
  }

  .poster-card {
    grid-template-columns: 1fr;
    margin-top: 320px;
    padding: 18px;
    gap: 14px;
  }

  .poster-title {
    max-width: 100%;
    font-size: clamp(1.18rem, 4.7vw, 1.54rem);
    line-height: 1.16;
    letter-spacing: -0.028em;
  }

  .poster-description {
    font-size: 0.98rem;
  }

  .content-card {
    border-radius: 24px;
    padding: 16px 10px 0;
  }

  .content-header {
    padding: 10px 10px 16px;
  }
}
@media (max-width: 720px) {
  .poster-main {
    padding-top: 2px;
  }

  .poster-avatar-slot .teacher-avatar-main {
    width: 58px;
    height: 58px;
  }

  .poster-role {
    font-size: 0.92rem;
  }

  .poster-date {
    font-size: 0.74rem !important;
  }

  .poster-badge {
    min-height: 28px;
    padding: 0 11px;
    font-size: 0.78rem;
  }
}

@media (max-width: 720px) {
  .poster-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-top: 320px;
    padding: 14px 14px 12px;
    gap: 10px;
    border-radius: 24px;
  }

  .poster-meta {
    gap: 10px;
  }

  .poster-avatar-slot .teacher-avatar-main {
    width: 56px;
    height: 56px;
  }

  .poster-meta-copy {
    padding: 9px 12px;
    border-radius: 16px;
  }

  .poster-role {
    font-size: 0.9rem;
  }

  .poster-date {
    font-size: 0.72rem !important;
  }

  .poster-card-cta {
    justify-content: flex-start;
  }

  .poster-card-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.7rem;
  }

  .poster-card-hint {
    justify-self: start;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
}

/* Final override: minimal white chocolate mentor card */
.poster-card {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  align-items: center !important;
  padding: 16px 18px !important;
  border-radius: 28px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(248, 245, 238, 0.92)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(108%) !important;
  box-shadow:
    0 14px 28px rgba(54, 48, 34, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(233, 223, 201, 0.6) !important;
}

.poster-card::before {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.18) 42%,
      rgba(248, 243, 231, 0.28) 100%
    ),
    radial-gradient(
      circle at 12% 12%,
      rgba(255, 255, 255, 0.42),
      transparent 34%
    ) !important;
}

.poster-card::after {
  content: none !important;
}

.poster-card--interactive:hover,
.poster-card--interactive:focus-visible {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 1) !important;
  box-shadow:
    0 18px 34px rgba(54, 48, 34, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(233, 223, 201, 0.72) !important;
}

.poster-main {
  gap: 0 !important;
  padding-top: 0 !important;
}

.poster-meta {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
}

.poster-avatar-slot .teacher-avatar-main {
  width: 58px !important;
  height: 58px !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 8px 18px rgba(62, 54, 39, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

.poster-meta-copy {
  gap: 4px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.poster-role {
  margin: 0 !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #00a06a !important;
  letter-spacing: 0.005em !important;
  text-shadow: none !important;
}

.poster-date {
  margin: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
  color: #7b7f79 !important;
  text-shadow: none !important;
}

.poster-card-cta,
.poster-card-button,
.poster-card-hint {
  display: none !important;
}

@media (max-width: 720px) {
  .poster-card {
    margin-top: 320px !important;
    padding: 14px 15px !important;
    border-radius: 24px !important;
  }

  .poster-avatar-slot .teacher-avatar-main {
    width: 54px !important;
    height: 54px !important;
  }

  .poster-role {
    font-size: 0.9rem !important;
  }

  .poster-date {
    font-size: 0.71rem !important;
  }
}

/* Teacher card v2: achievement + ticker + right arrow */
.poster-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 12px !important;
}

.poster-main {
  min-width: 0 !important;
}

.poster-meta {
  align-items: flex-start !important;
}

.poster-meta-copy {
  min-width: 0 !important;
  width: 100% !important;
  text-align: left !important;
  align-items: flex-start !important;
}

.poster-role,
.poster-date {
  text-align: left !important;
}

.poster-date {
  max-width: 100% !important;
}

.poster-news {
  width: 100%;
  margin-top: 2px;
  overflow: hidden;
}

.poster-news__viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.poster-news__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: max-content;
  animation: poster-news-marquee 16s linear infinite;
  will-change: transform;
}

.poster-news__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  color: #7b7f79;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.3;
}

.poster-news__emoji {
  flex-shrink: 0;
  font-size: 0.78rem;
}

.poster-news__text {
  white-space: nowrap;
}

.poster-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 12px rgba(62, 54, 39, 0.08);
  flex-shrink: 0;
  align-self: center;
}

.poster-card-arrow__icon {
  width: 16px;
  height: 16px;
  stroke: #99917f;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes poster-news-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 14px));
  }
}

@media (max-width: 720px) {
  .poster-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
  }

  .poster-news__item {
    font-size: 0.68rem;
  }

  .poster-card-arrow {
    width: 26px;
    height: 26px;
  }
}

/* Teacher card v3: vertical news ticker */
.poster-news {
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
}

.poster-news__viewport {
  position: relative;
  height: 1.25rem;
  overflow: hidden;
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 20%,
    #000 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 20%,
    #000 80%,
    transparent 100%
  );
}

.poster-news__track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  animation: poster-news-vertical var(--poster-news-duration, 6s)
    steps(var(--poster-news-count, 1)) infinite;
  will-change: transform;
}

.poster-news__track--static {
  animation: none;
}

.poster-news__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 1.25rem;
  color: #7b7f79;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.25rem;
}

.poster-news__emoji {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.poster-news__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes poster-news-vertical {
  0% {
    transform: translateY(100%);
    opacity: 0.45;
  }

  12% {
    transform: translateY(0);
    opacity: 1;
  }

  88% {
    transform: translateY(calc(-1.25rem * (var(--poster-news-count, 1) - 1)));
    opacity: 1;
  }

  100% {
    transform: translateY(calc(-1.25rem * var(--poster-news-count, 1)));
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-news__track {
    animation: none;
  }
}

/* Teacher card v4: aligned vertical ticker with CTA arrow */
.poster-news {
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
}

.poster-news__viewport {
  --poster-news-row-height: 1.9rem;
  position: relative;
  height: var(--poster-news-row-height);
  overflow: hidden;
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

.poster-news__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  animation: poster-news-step-up var(--poster-news-duration, 6s)
    steps(var(--poster-news-count, 1)) infinite;
  will-change: transform;
}

.poster-news__track--static {
  animation: none;
}

.poster-news__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: var(--poster-news-row-height, 1.9rem);
  color: #646e63;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1;
}

.poster-news__content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.poster-news__emoji {
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.poster-news__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-news__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  color: #07c160;
}

.poster-news__cta-icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  stroke-width: 2.35;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes poster-news-step-up {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(
      calc(
        -1 * var(--poster-news-count, 1) * var(--poster-news-row-height, 1.9rem)
      )
    );
  }
}

@media (max-width: 720px) {
  .poster-news__viewport {
    --poster-news-row-height: 1.78rem;
  }

  .poster-news__item {
    font-size: 0.8rem;
  }

  .poster-news__cta {
    width: 1.12rem;
    height: 1.12rem;
  }
}

/* Teacher card v5: full-row ticker + custom color + typing */
.poster-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0 !important;
}

.poster-news {
  width: 100%;
  margin-top: 0;
  margin-right: -42px;
  padding-right: 42px;
}

.poster-news__viewport {
  --poster-news-row-height: 2rem;
  height: var(--poster-news-row-height);
  mask-image: none;
  -webkit-mask-image: none;
}

.poster-news__track {
  transition: transform 0.52s cubic-bezier(0.22, 0.61, 0.36, 1);
  animation: none;
}

.poster-news__item {
  position: relative;
  height: var(--poster-news-row-height);
  font-size: 0.92rem;
  color: var(--poster-news-color, #646e63);
  padding-right: 0;
}

.poster-news__content {
  min-width: 0;
  width: 100%;
}

.poster-news__emoji {
  font-size: 0.9rem;
}

.poster-news__text {
  color: var(--poster-news-color, #646e63);
}

.poster-news__cta {
  width: 1.3rem;
  height: 1.3rem;
  margin-left: 8px;
  color: #07c160;
}

.poster-news__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.22rem;
  height: 1.22rem;
  padding: 0 0.36rem;
  border-radius: 999px;
  background: rgba(129, 129, 129, 0.16);
  color: #7b7b7b;
  font-size: 0.68rem;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.poster-news__cta-icon {
  width: 1rem;
  height: 1rem;
}

.poster-news__item.is-active .poster-news__cta {
  animation: poster-news-cta-blink 0.92s ease-in-out infinite alternate;
}

.poster-news__item.is-active .poster-news__badge {
  animation: poster-news-badge-pop 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes poster-news-cta-blink {
  from {
    opacity: 0.46;
    transform: translateX(0);
  }

  to {
    opacity: 1;
    transform: translateX(2px);
  }
}

@keyframes poster-news-badge-pop {
  0% {
    transform: scale(0.82) rotate(-8deg);
  }

  50% {
    transform: scale(1.08) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@media (max-width: 720px) {
  .poster-news__viewport {
    --poster-news-row-height: 1.86rem;
  }

  .poster-news__item {
    font-size: 0.86rem;
  }

  .poster-news {
    margin-right: 0px;
    padding-right: 0px;
  }
}

/* Final alignment override: keep poster-news on the same left/right rhythm as mentor card */
.poster-card {
  --poster-card-arrow-slot: 28px;
  --poster-card-inline-gap: 12px;
  column-gap: var(--poster-card-inline-gap) !important;
}

.poster-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.poster-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.poster-meta-copy {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  position: static !important;
  padding-right: 0 !important;
}

.poster-news {
  width: calc(
    100% + var(--poster-card-inline-gap) + var(--poster-card-arrow-slot)
  ) !important;
  margin-top: 4px !important;
  margin-right: calc(
    -1 * (var(--poster-card-inline-gap) + var(--poster-card-arrow-slot))
  ) !important;
  padding-right: 0 !important;
  overflow: hidden !important;
}

.poster-news__viewport {
  width: 100% !important;
}

.poster-news__track {
  width: 100% !important;
}

.poster-news__item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto var(--poster-card-arrow-slot) !important;
  align-items: center !important;
  column-gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.poster-news__content {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
}

.poster-news__text {
  min-width: 0 !important;
}

.poster-news__badge {
  justify-self: end !important;
}

.poster-news__cta {
  justify-self: center !important;
  margin-left: 0 !important;
  width: var(--poster-card-arrow-slot) !important;
  height: var(--poster-card-arrow-slot) !important;
}

.poster-card-arrow {
  width: var(--poster-card-arrow-slot) !important;
  height: var(--poster-card-arrow-slot) !important;
}

@media (max-width: 720px) {
  .poster-card {
    --poster-card-arrow-slot: 26px;
    --poster-card-inline-gap: 10px;
  }

  .poster-news {
    width: calc(
      100% + var(--poster-card-inline-gap) + var(--poster-card-arrow-slot)
    ) !important;
    margin-right: calc(
      -1 * (var(--poster-card-inline-gap) + var(--poster-card-arrow-slot))
    ) !important;
  }
}

/* Align the "了解更多" hint to the same right edge as the news arrow slot. */
.poster-role-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 10px !important;
  width: calc(
    100% + var(--poster-card-inline-gap) + var(--poster-card-arrow-slot)
  ) !important;
  margin-right: calc(
    -1 * (var(--poster-card-inline-gap) + var(--poster-card-arrow-slot))
  ) !important;
  min-height: 24px !important;
  padding-right: 0 !important;
}

.poster-role {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.poster-chat-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  justify-self: end !important;
  justify-content: flex-end !important;
  text-align: right !important;
  cursor: pointer !important;
}

.poster-role[role="link"],
.poster-date[role="link"] {
  cursor: pointer !important;
}

.poster-role[role="link"]:focus-visible,
.poster-date[role="link"]:focus-visible,
.poster-chat-badge:focus-visible {
  outline: 2px solid rgba(7, 193, 96, 0.48);
  outline-offset: 3px;
  border-radius: 6px;
}

.poster-avatar-slot {
  cursor: pointer !important;
}

@media (max-width: 720px) {
  .poster-role-row {
    column-gap: 8px !important;
  }
}

body.theme-dark .poster-secondary,
body.theme-dark .content-card,
body.theme-dark .video-card,
body.theme-dark .content-container .prompt-container,
body.theme-dark .content-container .instruction-table,
body.theme-dark .content-container .table-component,
body.theme-dark .content-container .teacher-comment,
body.theme-dark .content-container .w-player-container {
  background: linear-gradient(
    180deg,
    rgba(42, 49, 57, 0.78),
    rgba(24, 29, 35, 0.9)
  ) !important;
  color: var(--poster-ink) !important;
  border-color: rgba(214, 176, 122, 0.18) !important;
  box-shadow: 0 22px 54px rgba(13, 16, 19, 0.2);
}

body.theme-dark .content-card {
  background: linear-gradient(
    180deg,
    rgba(58, 64, 73, 0.82),
    rgba(30, 34, 40, 0.94) 42%,
    rgba(23, 26, 31, 0.98) 100%
  );
}

body.theme-dark .content-card::before,
body.theme-dark .content-header,
body.theme-dark .page-footer,
body.theme-dark .content-container .instruction-table,
body.theme-dark .content-container .instruction-title-row td {
  border-color: rgba(214, 176, 122, 0.14) !important;
}

body.theme-dark .poster-badge,
body.theme-dark .content-header-mark {
  background: linear-gradient(
    180deg,
    rgba(243, 219, 182, 0.14),
    rgba(210, 164, 110, 0.08)
  );
  color: #f8dcc0;
  border: 1px solid rgba(243, 211, 170, 0.16);
}

body.theme-dark .poster-description,
body.theme-dark .content-header-desc,
body.theme-dark .page-footer,
body.theme-dark .poster-news__text,
body.theme-dark .content-container .prompt-content,
body.theme-dark .content-container .prompt-ai-tool,
body.theme-dark .content-container .prompt-url {
  color: #dbc3a6 !important;
}

body.theme-dark .page-footer a,
body.theme-dark .content-container a {
  color: #f1c894;
}

body.theme-dark .video-thumbnail {
  background: #2a3238;
}

body.theme-dark .poster-card {
  background: linear-gradient(
    135deg,
    rgba(49, 56, 64, 0.88),
    rgba(31, 35, 41, 0.92) 42%,
    rgba(31, 35, 41, 0.88) 100%
  );
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

body.theme-dark .poster-card::before {
  background:
    linear-gradient(
      130deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.01) 42%,
      rgba(226, 194, 157, 0.04) 100%
    ),
    radial-gradient(
      circle at 12% 16%,
      rgba(255, 255, 255, 0.05),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 20%,
      rgba(226, 194, 157, 0.05),
      transparent 30%
    );
}

body.theme-dark .poster-card--interactive:hover,
body.theme-dark .poster-card--interactive:focus-visible {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 26px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .poster-role {
  color: #e2c29d;
  text-shadow: none;
}

body.theme-dark .poster-date {
  color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .poster-news__item {
  background: linear-gradient(
    135deg,
    rgba(44, 50, 58, 0.96),
    rgba(35, 40, 46, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

body.theme-dark .poster-news__badge,
body.theme-dark .poster-card-arrow {
  background: linear-gradient(
    180deg,
    rgba(58, 65, 74, 0.92),
    rgba(44, 50, 58, 0.92)
  );
  color: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* Final dark lock: keep teacher hero + welcome area in WeChat-like dark panels */
body.theme-dark .poster-card,
body.theme-dark .poster-card::before,
body.theme-dark .poster-card::after {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .poster-card {
  background: linear-gradient(
    180deg,
    rgba(31, 35, 41, 0.96),
    rgba(36, 41, 48, 0.94)
  ) !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .poster-card::before {
  background:
    radial-gradient(
      circle at top right,
      rgba(226, 194, 157, 0.06),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.01) 44%,
      transparent 100%
    ) !important;
}

body.theme-dark .poster-card::after {
  background: none !important;
}

body.theme-dark .poster-meta-copy {
  background: transparent !important;
  box-shadow: none !important;
}

body.theme-dark .poster-role {
  color: #e2c29d !important;
}

body.theme-dark .poster-date,
body.theme-dark .poster-news__text {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.theme-dark .poster-avatar-slot .teacher-avatar-main,
body.theme-dark .poster-meta .teacher-avatar-main {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #2c313a !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

body.theme-dark .poster-news__item {
  background: linear-gradient(
    180deg,
    rgba(44, 50, 58, 0.96),
    rgba(36, 41, 48, 0.96)
  ) !important;
  color: rgba(255, 255, 255, 0.74) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

body.theme-dark .poster-news__badge,
body.theme-dark .poster-news__cta,
body.theme-dark .poster-card-arrow {
  background: #343a44 !important;
  color: rgba(255, 255, 255, 0.66) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-dark .content-card .dropdown-container,
body.theme-dark .content-card .topic-container,
body.theme-dark .content-card .two-line-container,
body.theme-dark .content-card .prompt-table,
body.theme-dark .content-card .table-component {
  background: #1f2329 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.theme-dark .content-card .dropdown-trigger,
body.theme-dark .content-card .label-line,
body.theme-dark .content-card .topic-item,
body.theme-dark .content-card .table-header,
body.theme-dark .content-card .prompt-title-row,
body.theme-dark .content-card .table-component th {
  background: #2c313a !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .content-card .text-line,
body.theme-dark .content-card .topic-content,
body.theme-dark .content-card .table-component td,
body.theme-dark .content-card .prompt-table td {
  background: #1f2329 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body.theme-dark .content-card .dropdown-container {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
}

body.theme-dark .content-card .label-line {
  display: block !important;
  background: #2c313a !important;
}

body.theme-dark .content-card .text-line .content-text:empty {
  display: none !important;
  padding: 0 !important;
}

body.theme-dark .content-card .text-line:has(.content-text:empty) {
  display: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Template 4 H1: elegant WeChat-green heading with leading vertical bar */
.content-container h1 {
  position: relative;
  margin: 22px 0 14px;
  padding-left: 14px;
  font-size: 1.56rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #07c160;
  text-wrap: pretty;
}

.content-container h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.16em;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #16d178 0%, #07c160 58%, #09a85a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 8px 14px rgba(7, 193, 96, 0.22);
}

@media (max-width: 720px) {
  .content-container h1 {
    font-size: 1.34rem;
    padding-left: 12px;
  }

  .content-container h1::before {
    width: 3px;
  }
}

body.theme-dark .content-container h1 {
  color: #31d67c;
}

body.theme-dark .content-container h1::before {
  background: linear-gradient(180deg, #45e091 0%, #31d67c 58%, #1fb165 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 16px rgba(20, 178, 101, 0.34);
}

/* Custom poster specs such as "img/x.png | 9:16 | 200px". */
.poster-stage--custom-ratio {
  justify-content: flex-end !important;
  margin-bottom: var(--poster-card-offset, 0px) !important;
  overflow: visible !important;
}

.poster-stage--custom-ratio .poster-stage-cover {
  background-position: center top !important;
}

.poster-stage--custom-ratio .poster-card {
  margin-top: auto !important;
  margin-bottom: clamp(14px, 4.2%, 34px) !important;
  transform: translateY(var(--poster-card-offset, 0px)) !important;
}

@media (max-width: 720px) {
  .poster-stage--custom-ratio .poster-card {
    margin-top: auto !important;
    margin-bottom: 16px !important;
    transform: translateY(var(--poster-card-offset, 0px)) !important;
  }
}
