:root {
  color-scheme: light;
  --canvas: #f9f6e9;
  --forest-950: #315a31;
  --forest-900: #579052;
  --forest-800: #477b44;
  --forest-700: #3d6d3b;
  --forest-600: #6ba366;
  --leaf: #579052;
  --lemon: #ffffff;
  --lemon-strong: #f1eedf;
  --paper: #f9f6e9;
  --paper-muted: #eee9d7;
  --ink: #0e0e0e;
  --white: #ffffff;
  --muted: rgba(14, 14, 14, 0.7);
  --line: rgba(87, 144, 82, 0.24);
  --line-strong: rgba(87, 144, 82, 0.54);
  --shadow: 0 24px 54px rgba(50, 82, 46, 0.16);
  --radius-card: 16px;
  --radius-media: 16px;
  --header-height: 90px;
  --max-width: 1320px;
  --font-display: "Luckiest Guy", "Arial Black", sans-serif;
  --font-control: "Goblin One", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Passion One", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-hand: "Schoolbell", "Comic Sans MS", cursive;
  --paper-texture: url("./assets/texture/paper-fiber.jpg");
  --paper-texture-size: 620px 620px;
}

html {
  background: var(--paper);
}

body {
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
}

.goblin-one-text {
  font-family: var(--font-control);
}

::selection {
  background: var(--forest-900);
  color: var(--white);
}

* {
  scrollbar-color: var(--forest-900) var(--paper-muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
video:focus-visible {
  outline: 3px solid #f5d057;
  outline-offset: 4px;
}

.skip-link {
  background: var(--white);
  color: var(--forest-900);
  font-family: var(--font-control);
}

.site-header {
  height: var(--header-height);
  border-bottom: 0;
  background-color: var(--forest-900);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
  color: var(--white);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 48px));
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-control);
  font-size: 20px;
  font-weight: 400;
}

.brand img {
  width: 45px;
  height: 45px;
  border: 0;
  background: var(--white);
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  white-space: nowrap;
  font-family: var(--font-control);
  font-size: 14px;
}

.primary-nav button {
  position: relative;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: inherit;
}

.primary-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--white);
  transition: transform 200ms ease;
}

.primary-nav button:hover::after,
.primary-nav button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  flex: 0 0 auto;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 200px;
  font-family: var(--font-control);
  font-size: 15px;
  font-weight: 400;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button-primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--forest-900);
  box-shadow: none;
}

.button-primary:hover {
  background: var(--paper);
}

.button-ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  min-height: 650px;
  overflow: hidden;
  border-bottom: 0;
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
}

.hero-inner {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 650px;
  padding: 48px 0;
  grid-template-columns: minmax(0, 600px) minmax(540px, 1fr);
  gap: 60px;
}

.hero-copy {
  width: 600px;
  max-width: 100%;
  transform: translateX(27px);
}

.hero-kicker {
  width: 469px;
  max-width: 100%;
  min-height: 26px;
  margin: 18px 0 0;
  color: var(--forest-900);
  font-family: var(--font-control);
  font-size: 22px;
  font-weight: 400;
  line-height: 26px;
  white-space: nowrap;
}

.hero h1 {
  width: 600px;
  max-width: 100%;
  min-height: 60px;
  font-family: var(--font-body);
  font-size: 60px;
  font-weight: 700;
  line-height: 60px;
  white-space: nowrap;
}

.hero h1 span {
  color: var(--forest-900);
}

.hero-lead {
  width: 446px;
  max-width: 100%;
  min-height: 60px;
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 34px;
  font-weight: 400;
  line-height: 60px;
}

.hero-actions {
  margin-top: 85px;
  gap: 23px;
}

.hero-actions .button {
  min-height: 50px;
  padding: 0;
  font-size: 20px;
  line-height: 26px;
}

.hero-actions .button-primary {
  width: 164px;
}

.hero-actions .button-ghost {
  width: 149px;
}

.hero-copy .button-primary {
  border-color: var(--forest-900);
  background: var(--forest-900);
  color: var(--white);
}

.hero-copy .button-primary:hover {
  background: var(--forest-800);
}

.hero-copy .button-ghost {
  border-color: var(--forest-900);
  color: var(--forest-900);
}

.hero-copy .button-ghost:hover {
  background: rgba(87, 144, 82, 0.1);
}

.hero-visual {
  min-height: 540px;
  isolation: isolate;
}

.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: none;
  transform-origin: center;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  z-index: 2;
  width: 341.02px;
  height: 453.98px;
  transform: translate(calc(-50% - 50px), calc(-50% - 9px)) rotate(-5deg);
  background: var(--forest-900);
}

.hero-card-left {
  z-index: 3;
  width: 250.86px;
  height: 333.96px;
  transform: translate(calc(-50% - 223px), calc(-50% + 65px)) rotate(-25deg);
  background: #d5f5d2;
}

.hero-card-right {
  z-index: 1;
  width: 258.96px;
  height: 344.74px;
  transform: translate(calc(-50% + 146px), calc(-50% + 25px)) rotate(20deg);
  background: #296324;
}

.story-library-section {
  min-height: 1858px;
  background-color: var(--forest-900);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
  color: var(--white);
}

.story-library-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 100px;
}

.section-head {
  max-width: none;
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-head h2,
.all-videos-head h1,
.watch-copy h1 {
  color: inherit;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
}

.section-head p,
.all-videos-head p,
.watch-copy p {
  margin-top: 12px;
  color: inherit;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  opacity: 0.86;
}

.section-actions {
  flex: 0 0 auto;
  margin: 0;
}

.library-more {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-control);
  font-size: 16px;
}

.library-more::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 180ms ease;
}

.library-more:hover::after,
.library-more:focus-visible::after {
  transform: scaleX(1);
}

.category-bar {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 42px;
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.category-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: transparent;
  color: var(--white);
  font-family: var(--font-control);
  font-size: 14px;
  font-weight: 400;
}

.category-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.category-button[aria-selected="true"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--forest-900);
}

.video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 34px;
}

.all-videos-page .video-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 42px 24px;
}

.home-library-footer {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.library-bottom-more {
  min-width: 126px;
  cursor: pointer;
}

.video-card-button {
  color: var(--white);
}

.video-cover {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 32px rgba(29, 54, 27, 0.2);
}

.video-cover img {
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease;
}

.play-mark {
  background: rgba(17, 39, 17, 0.04);
}

.play-mark::before {
  content: "";
  width: 0;
  height: 0;
  padding: 0;
  border: 10px solid transparent;
  border-right-width: 0;
  border-left: 16px solid var(--white);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.34));
}

.video-card-button:hover .play-mark {
  background: rgba(17, 39, 17, 0.14);
}

.video-card-button:hover .play-mark::before {
  transform: scale(1.18);
  border-left-color: var(--white);
  background: transparent;
}

.duration {
  right: 12px;
  bottom: 12px;
  border-radius: 200px;
  background: rgba(49, 90, 49, 0.88);
  color: var(--white);
  font-family: var(--font-control);
  font-size: 10px;
}

.video-meta {
  padding: 16px 2px 0;
}

.video-title-line {
  display: block;
}

.video-meta h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 400;
  line-height: 26px;
}

.video-meta p {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 18px;
}

.skeleton-cover,
.skeleton-line {
  background: rgba(255, 255, 255, 0.18);
}

.parent-letter-section {
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
}

.parent-letter-inner {
  width: min(1100px, calc(100% - 48px));
  min-height: 740px;
  height: auto;
  margin: 0 auto;
  padding: 63px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 570px) minmax(300px, 360px);
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 5vw, 80px);
}

.parent-letter {
  position: relative;
  width: 100%;
  min-height: 613px;
  height: auto;
  padding: 54px 52px 42px;
  border: 0;
  border-radius: 2px;
  background-color: var(--white);
  background-image: var(--paper-texture);
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
  box-shadow: 0 24px 54px rgba(84, 92, 64, 0.1);
}

.parent-letter h2 {
  width: 179px;
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  line-height: 26px;
}

.parent-letter p {
  width: 100%;
  margin: 0;
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 26px;
}

.parent-letter .letter-signature {
  width: 120px;
  margin-top: 14px;
}

.letter-signature strong {
  font-size: 18px;
  font-weight: 400;
}

.parent-keepsake {
  width: 100%;
  transform: none;
}

.keepsake-avatar {
  width: 116px;
  height: 116px;
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(84, 92, 64, 0.16);
}

.keepsake-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keepsake-contact-title {
  margin: 18px 0 14px;
  color: var(--ink);
  font-family: var(--font-control);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.keepsake-qr-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.keepsake-qr {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.keepsake-qr-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.keepsake-qr-image img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.keepsake-qr-douyin .keepsake-qr-image img {
  position: absolute;
  top: -32%;
  left: -25%;
  width: 150%;
  max-width: none;
  height: auto;
  padding: 0;
}

.keepsake-qr figcaption {
  margin-top: 7px;
  color: var(--forest-900);
  font-family: var(--font-control);
  font-size: 11px;
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 30px max(24px, calc((100% - var(--max-width)) / 2));
  border-top: 0;
  background-color: var(--forest-900);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
  color: var(--white);
  font-family: var(--font-control);
  font-size: 11px;
}

.site-footer strong {
  font-size: 15px;
  font-weight: 400;
}

/* Library, watch, account and modal surfaces */
.all-videos-page {
  width: 100%;
  margin: 0;
  padding: 72px max(24px, calc((100% - var(--max-width)) / 2)) 110px;
  background-color: var(--forest-900);
  background-image: var(--paper-texture);
  background-repeat: repeat;
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
  color: var(--white);
}

.all-videos-head {
  margin-bottom: 38px;
}

.all-videos-page .sticky-tabs {
  top: calc(var(--header-height) + 12px);
  padding: 10px 0;
  background-color: var(--forest-900);
  background-image: var(--paper-texture);
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
}

.load-more-wrap .button-ghost {
  border-color: var(--white);
  color: var(--white);
}

.watch-page {
  width: min(var(--max-width), calc(100% - 48px));
  padding: 58px 0 90px;
}

.back-link {
  color: var(--forest-900);
  font-family: var(--font-control);
  font-size: 13px;
}

.watch-layout {
  margin-top: 30px;
  grid-template-columns: minmax(360px, 0.76fr) minmax(0, 1.24fr);
  gap: 72px;
}

.player-shell {
  border: 12px solid var(--white);
  border-radius: 16px;
  background: var(--forest-950);
  box-shadow: var(--shadow);
}

.watch-copy h1 {
  color: var(--ink);
}

.watch-subtitle {
  color: var(--forest-900);
  font-family: "Allan", var(--font-hand);
  font-size: 28px;
}

.watch-copy p {
  color: var(--muted);
}

.watch-facts span {
  border-color: var(--line-strong);
  color: var(--forest-900);
  font-family: var(--font-control);
  font-size: 11px;
}

.watch-actions .button-primary,
.modal .button-primary {
  border-color: var(--forest-900);
  background: var(--forest-900);
  color: var(--white);
}

.watch-actions .button-ghost {
  border-color: var(--forest-900);
  color: var(--forest-900);
}

.related-section {
  border-color: var(--line);
}

.related-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

.watch-page .video-card-button {
  color: var(--ink);
}

.watch-page .video-meta h3 {
  color: var(--ink);
}

.watch-page .video-meta p {
  color: var(--muted);
}

.sequence-link {
  border-color: var(--line);
  background: var(--white);
}

.sequence-link span {
  color: var(--forest-900);
  font-family: var(--font-control);
}

.modal-backdrop {
  background: rgba(33, 58, 31, 0.66);
}

.modal {
  border: 0;
  border-radius: 16px;
  background-color: var(--paper);
  background-image: var(--paper-texture);
  background-size: var(--paper-texture-size);
  background-blend-mode: multiply;
  box-shadow: 0 34px 90px rgba(25, 48, 24, 0.32);
}

.modal h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

.modal-close {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--forest-900);
}

.form-field label,
.member-benefits,
.plan-box strong {
  font-family: var(--font-control);
}

.form-field input {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: var(--white);
}

.plan-box {
  border: 0;
  border-radius: 16px;
  background: var(--white);
}

.user-menu {
  border: 0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-family: var(--font-control);
}

.toast {
  border: 0;
  border-radius: 200px;
  background: var(--forest-900);
  color: var(--white);
  font-family: var(--font-control);
}

.empty-state,
.error-state {
  border-color: currentColor;
  color: inherit;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .modal,
  .user-menu,
  .toast {
    backdrop-filter: none;
  }
}

@media (max-width: 1180px) {
  .primary-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1.1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .all-videos-page .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-library-section {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    min-height: auto;
    padding: 62px 0 72px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
    transform: none;
  }

  .hero h1 {
    width: 100%;
    max-width: 720px;
  }

  .hero-visual {
    min-height: 550px;
  }

  .parent-letter-inner {
    grid-template-columns: 1fr 280px;
    gap: 42px;
  }

  .parent-letter {
    padding: 44px;
  }

  .all-videos-page .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    width: calc(100% - 28px);
    gap: 12px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding: 48px 0 54px;
    gap: 30px;
  }

  .hero-kicker {
    max-width: 300px;
    margin-bottom: 16px;
    font-size: 15px;
    white-space: normal;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
    line-height: 1.08;
    white-space: normal;
  }

  .hero h1.hero-message {
    width: 100%;
    font-size: 30px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero-lead {
    min-height: 0;
    font-size: 26px;
    line-height: 1.4;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 48px;
  }

  .hero-visual {
    min-height: 470px;
    transform: scale(0.88);
  }

  .story-library-inner {
    width: calc(100% - 28px);
    padding: 58px 0 70px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .section-head h2,
  .all-videos-head h1,
  .watch-copy h1 {
    font-size: 38px;
  }

  .section-head p,
  .all-videos-head p,
  .watch-copy p {
    font-size: 18px;
  }

  .library-more {
    padding: 8px 0;
    font-size: 14px;
  }

  .category-bar {
    width: calc(100vw - 14px);
    margin-right: -14px;
    padding-right: 14px;
  }

  .category-button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 14px;
  }

  .all-videos-page .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-library-footer {
    margin-top: 42px;
  }

  .video-meta h3 {
    font-size: 17px;
  }

  .video-meta p {
    font-size: 15px;
  }

  .parent-letter-inner {
    width: calc(100% - 28px);
    height: auto;
    min-height: auto;
    padding: 56px 0 64px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .parent-letter {
    width: 100%;
    height: auto;
    padding: 42px 28px 34px;
  }

  .parent-letter h2 {
    width: auto;
    font-size: 26px;
  }

  .parent-letter p {
    width: 100%;
    font-size: 17px;
  }

  .parent-keepsake {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .keepsake-links {
    justify-content: center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 14px 36px;
  }

  .all-videos-page {
    padding: 52px 14px 80px;
  }

  .watch-page {
    width: calc(100% - 28px);
  }

  .watch-layout {
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .player-shell {
    margin: 0 auto;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 400px;
    margin: -26px -34px 0;
    transform: scale(0.72);
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 12px;
  }

  .video-meta {
    padding-top: 12px;
  }

  .video-title-line {
    display: block;
  }

  .video-meta h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .video-meta p {
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .header-actions .button-ghost {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .all-videos-page .video-grid {
    grid-template-columns: 1fr;
  }
}

.play-mark {
  background: transparent;
}

.play-mark::before {
  content: "";
  grid-area: 1 / 1;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: none;
  backdrop-filter: none;
  filter: none;
  transform: scale(1);
}

.play-mark::after {
  content: "";
  grid-area: 1 / 1;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

.video-card-button:hover .play-mark {
  background: transparent;
}

.video-card-button:hover .play-mark::before {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.08);
}

.video-card-button:hover .play-mark::after {
  border-left-color: #fff;
}

.play-mark img {
  grid-area: 1 / 1;
  width: 56px;
  height: 56px;
  object-fit: contain;
  mix-blend-mode: normal;
  clip-path: circle(46% at center);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.play-mark::before {
  content: none;
  display: none;
}

.play-mark::after {
  content: none;
  display: none;
}

.video-card-button:hover .play-mark img {
  transform: scale(1.08);
}

.membership-modal h2 {
  max-width: none;
  padding-right: 42px;
  font-size: 26px;
  line-height: 1.25;
  white-space: nowrap;
}

.form-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.form-field-head label {
  margin-bottom: 0;
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(112px, 1fr);
  gap: 10px;
}

.verification-row input {
  min-width: 0;
}

.send-code-button {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--forest-700);
  border-radius: 12px;
  background: var(--forest-700);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.send-code-button:disabled {
  border-color: var(--forest-700);
  background: var(--forest-700);
  color: var(--white);
  opacity: 0.72;
  cursor: wait;
}

#login-form input {
  color: #111;
}

#login-form .button-primary:disabled {
  border-color: #a5aaa4;
  background: #a5aaa4;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

#login-form .button-primary:not(:disabled) {
  border-color: var(--forest-700);
  background: var(--forest-700);
  color: var(--white);
}

#login-form .button-primary:not(:disabled):hover {
  border-color: var(--forest-900);
  background: var(--forest-900);
}

.send-code-button:focus-visible,
.payment-channel:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 3px;
}

.checkout-page {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 68vh;
  margin: 0 auto;
  padding: 48px 0 96px;
}

.checkout-heading {
  margin: 38px 0 32px;
}

.checkout-eyebrow {
  margin: 0;
  color: var(--forest-700);
  font-family: var(--font-control);
  font-size: 12px;
}

.checkout-heading h1 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
}

.checkout-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.checkout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.8fr);
  gap: clamp(32px, 7vw, 104px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 16px;
  background: var(--white);
}

.checkout-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.checkout-order-info {
  width: min(100%, 380px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.checkout-order-info > span {
  font-family: var(--font-control);
  font-size: 18px;
}

.checkout-order-info > strong {
  color: var(--forest-900);
  font-family: var(--font-control);
  font-size: 30px;
  white-space: nowrap;
}

.checkout-order-info > strong small {
  font-size: 15px;
  font-weight: 400;
}

.checkout-payment {
  width: 100%;
}

.payment-method-heading {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-control);
  font-size: 17px;
}

.payment-channels {
  display: grid;
  gap: 14px;
}

.payment-channel {
  width: 100%;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--forest-900);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.payment-channel.is-selected {
  border-color: var(--forest-700);
  background: rgba(87, 144, 82, 0.08);
  color: var(--forest-900);
  box-shadow: inset 0 0 0 1px var(--forest-700);
}

.payment-channel-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.payment-channel.is-selected .payment-channel-check {
  border: 5px solid var(--forest-700);
}

.payment-qr-placeholder {
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.qr-placeholder-mark {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

.qr-placeholder-mark span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid var(--forest-700);
}

.qr-placeholder-mark span:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.qr-placeholder-mark span:nth-child(2) {
  top: 0;
  right: 0;
  border-bottom: 0;
  border-left: 0;
}

.qr-placeholder-mark span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-top: 0;
  border-right: 0;
}

.payment-qr-placeholder strong {
  font-family: var(--font-control);
  font-size: 14px;
}

.payment-qr-placeholder small {
  max-width: 210px;
  padding: 0 12px;
  color: var(--muted);
  line-height: 1.4;
}

.payment-hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .membership-modal h2 {
    padding-right: 36px;
    font-size: 17px;
  }

  .checkout-page {
    width: calc(100% - 28px);
    padding: 36px 0 64px;
  }

  .checkout-heading {
    margin: 30px 0 24px;
  }

  .checkout-heading h1 {
    font-size: 36px;
  }

  .checkout-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 22px;
  }

  .checkout-order-info > span {
    font-size: 16px;
  }

  .checkout-order-info > strong {
    font-size: 26px;
  }

  .parent-letter-inner {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 56px 0 64px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .parent-letter {
    min-height: 0;
    padding: 38px 28px 34px;
  }

  .parent-letter h2 {
    width: auto;
  }

  .parent-letter p {
    font-size: 16px;
    line-height: 25px;
  }

  .parent-keepsake {
    width: min(380px, 100%);
    margin: 0 auto;
  }

  .keepsake-qr-list {
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .hero h1.hero-message {
    font-size: 27px;
  }

  .membership-modal h2 {
    padding-right: 0;
    font-size: 15px;
  }

  .membership-modal .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .checkout-order-info {
    justify-content: center;
    gap: 10px;
  }

  .checkout-order-info > span {
    font-size: 14px;
  }

  .checkout-order-info > strong {
    font-size: 22px;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 32px;
  }

  .hero-copy {
    width: auto;
  }

  .hero h1.hero-message {
    width: auto;
    font-size: 48px;
    line-height: 1.2;
  }

  .parent-letter-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .parent-letter {
    padding: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav button::after,
  .hero-card,
  .video-cover img,
  .button {
    transition: none;
  }
}

.watch-facts {
  align-items: center;
  gap: 24px;
}

.watch-facts > span {
  border: 0;
  padding: 0;
  color: var(--forest-900);
  font-size: 14px;
}

.watch-facts .pdf-link {
  font-size: 14px;
}

.sequence-nav {
  gap: 18px;
}

.sequence-link,
.sequence-link:last-child {
  min-width: 0;
  min-height: 100px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sequence-link .sequence-direction {
  flex: 0 0 auto;
  color: inherit;
  font-family: var(--font-control);
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
}

.sequence-link strong {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sequence-title-en {
  font-weight: 500;
}

.sequence-previous {
  border-color: var(--forest-900);
  background: var(--forest-900);
  color: var(--white);
}

.sequence-previous:hover {
  background: var(--forest-800);
}

.sequence-next {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.sequence-next:hover {
  background: rgba(255, 255, 255, 0.78);
}

.player-shell[data-player-shell] {
  width: min(100%, 520px);
  max-height: none;
  aspect-ratio: 3 / 4;
}

.video-free-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  color: #296324;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.player-shell[data-player-shell] video {
  object-fit: cover;
}

.player-shell[data-player-shell]:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  background: #2f5631;
}

.player-shell[data-player-shell]:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #2f5631;
}

.player-play {
  position: relative;
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  padding: 0;
  color: transparent;
  font-size: 0;
}

.player-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(38% 27%, 38% 73%, 73% 50%);
}

.player-play[aria-label="暂停"] {
  color: #fff;
  font-size: 17px;
}

.player-play[aria-label="暂停"]::before {
  content: none;
}

.sequence-nav .sequence-previous strong .sequence-title-en {
  color: #fff;
}

.related-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

.related-viewport {
  min-width: 0;
  overflow: hidden;
}

.related-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

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

.related-track > .video-card {
  min-width: 0;
  flex: 0 0 calc((100% - 66px) / 4);
  scroll-snap-align: start;
}

.related-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest-900);
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.related-arrow:hover {
  transform: scale(1.06);
  background: #fff;
}

@media (max-width: 1023px) {
  .related-track > .video-card {
    flex-basis: calc((100% - 44px) / 3);
  }
}

@media (max-width: 767px) {
  .related-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .related-arrow {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .related-track {
    gap: 12px;
  }

  .related-track > .video-card {
    flex-basis: calc((100% - 12px) / 2);
  }
}

@media (max-width: 430px) {
  .related-track > .video-card {
    flex-basis: 82%;
  }
}

.player-controls button:focus-visible,
.player-seek:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .sequence-nav {
    grid-template-columns: 1fr;
  }

  .sequence-link,
  .sequence-link:last-child {
    min-height: 76px;
    padding: 14px;
    gap: 12px;
  }

  .sequence-link .sequence-direction {
    font-size: 22px;
  }

  .sequence-link strong {
    font-size: 14px;
  }

  .player-controls {
    padding: 34px 10px 8px;
  }

  .player-control-row {
    gap: 6px;
  }

  .player-transport,
  .player-utilities {
    gap: 2px;
  }

  .player-icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .player-time {
    font-size: 11px;
  }

  .player-volume {
    width: 48px;
  }
}
