:root {
  --purple: #6e4dfc;
  --purple-dark: #5635df;
  --ink: #1e2026;
  --muted: #666570;
  --line: #e8e7ed;
  --paper: #fff;
  --wash: #f7f6fa;
  --lilac: #f1edff;
  --max: 1240px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
button {
  color: inherit;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
p {
  color: var(--muted);
}
.wrap {
  width: min(var(--max), calc(100% - 96px));
  margin: auto;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--ink);
  color: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.brand img {
  width: 106px;
  height: auto;
}
.brand span {
  border-left: 1px solid #d9d7e1;
  padding-left: 20px;
  font-size: 14px;
  color: #53515e;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover,
.text-link:hover {
  color: var(--purple);
}
.nav .github {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hero {
  padding: 40px 0 36px;
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 650;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--purple);
  border-radius: 50%;
}
h1 {
  font-weight: 550;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.hero h1 span {
  color: var(--purple);
}
.hero-copy > p {
  font-size: 17px;
  line-height: 1.75;
  max-width: 430px;
  margin-top: 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid transparent;
  background: var(--purple);
  color: white;
  padding: 12px 21px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 550;
  transition: background 0.15s;
}
.button:hover {
  background: var(--purple-dark);
}
.button.light {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.button.light:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.text-link {
  font-size: 14px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-note {
  font-size: 12px !important;
  margin-top: 25px !important;
  color: #777480;
}
.hero-art {
  min-width: 0;
}
.hero-picture {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #18241f;
}
.hero-picture > a {
  display: block;
}
.hero-picture img {
  height: auto;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s;
}
.hero-picture:hover img {
  transform: scale(1.025);
}
.corner-label {
  position: absolute;
  left: 20px;
  top: 20px;
  color: white;
  background: #181b22b8;
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border: 1px solid #ffffff38;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.play {
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 3px 18px #0002;
}
.play:hover {
  background: var(--lilac);
}
.play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}
.hero-caption strong {
  font-weight: 550;
  font-size: 14px;
}
.hero-caption p {
  font-size: 12px;
  margin-top: 2px;
}
.hero-caption > a {
  font-size: 22px;
}
.index-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.index-strip span:first-child {
  color: var(--ink);
}
.collection {
  padding: 64px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-bottom: 9px;
}
h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 550;
}
.section-heading p {
  font-size: 14px;
  margin-top: 10px;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  width: 260px;
  background: white;
}
.search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #767381;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}
.search:focus-within {
  border-color: var(--purple);
}
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.filter-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 5px;
  color: var(--muted);
}
.filter:hover {
  background: var(--wash);
}
.filter[aria-pressed="true"] {
  background: var(--lilac);
  color: var(--purple-dark);
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 25px;
}
.card {
  min-width: 0;
}
.card[hidden] {
  display: none;
}
.card-media {
  position: relative;
  background: var(--wash);
  border-radius: 7px;
  overflow: hidden;
}
.card-media > a {
  display: block;
}
.card-media img {
  height: auto;
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.card-media:hover img {
  transform: scale(1.035);
}
.card-media .play {
  width: 34px;
  height: 34px;
  right: 12px;
  bottom: 12px;
  opacity: 1;
  transition: opacity 0.15s;
}
.card-media:hover .play,
.card-media:focus-within .play {
  opacity: 1;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 7px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-top .tool {
  color: var(--purple-dark);
}
.card h3 {
  font-size: 19px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.card h3 a:hover {
  color: var(--purple);
}
.card p {
  font-size: 13px;
  line-height: 1.65;
  margin: 9px 0 10px;
}
.card-bottom {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card-bottom a:hover {
  color: var(--purple);
}
.no-results {
  border: 1px solid var(--line);
  padding: 32px;
  text-align: center;
}
.collection-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  gap: 24px;
  font-size: 12px;
}
.topics {
  background: var(--wash);
  padding: 64px 0;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.topic {
  border-top: 1px solid #dcd9e6;
  padding-top: 20px;
}
.topic-number {
  font-size: 12px;
  color: var(--purple);
  margin-bottom: 16px;
}
.topic h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
  font-weight: 550;
  margin-bottom: 10px;
}
.topic p {
  font-size: 14px;
  margin-bottom: 22px;
  max-width: 330px;
}
.how {
  padding: 74px 0;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
}
.how-intro p {
  margin-top: 18px;
  font-size: 14px;
  max-width: 300px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-number {
  color: var(--purple);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.steps h3 {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 9px;
}
.steps p {
  font-size: 13px;
}
.closing {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.closing h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.closing p {
  font-size: 13px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 27px 0 32px;
  font-size: 12px;
  color: var(--muted);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.footer a:hover {
  color: var(--purple);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-note {
  font-size: 11px;
  margin-top: 20px;
  max-width: 850px;
  line-height: 1.7;
  color: #797580;
}
.page-head {
  padding: 52px 0 36px;
  max-width: 870px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.breadcrumb a:hover {
  color: var(--purple);
}
.page-head h1 {
  font-size: clamp(36px, 4.5vw, 55px);
}
.page-head > p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.8;
  max-width: 760px;
}
.page-head .eyebrow {
  margin-bottom: 18px;
}
.category-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 35px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.category-intro h2 {
  font-size: 21px;
  margin-bottom: 13px;
}
.category-intro p {
  font-size: 14px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 50px;
  padding-bottom: 65px;
}
.detail-main {
  min-width: 0;
}
.detail-video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #131319;
  border-radius: 8px;
  display: block;
}
.media-caption {
  font-size: 11px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.media-caption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prompt-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 32px;
  overflow: hidden;
}
.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.prompt-header h2 {
  font-size: 17px;
}
.copy {
  background: #fff;
  border: 1px solid #d7d3e4;
  border-radius: 5px;
  padding: 7px 12px;
  color: var(--purple-dark);
  font-size: 12px;
}
.prompt-block pre {
  padding: 22px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 520px;
  overflow: auto;
  font:
    13px/1.9 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #35313f;
}
.prompt-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.side-section {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.side-section:first-child {
  padding-top: 0;
  border: 0;
}
.side-section h2 {
  font-size: 19px;
  margin-bottom: 14px;
}
.side-section p,
.side-section li {
  font-size: 13px;
  line-height: 1.8;
}
.side-section ol {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}
.side-section li + li {
  margin-top: 15px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
.meta-row span:last-child {
  color: var(--ink);
  text-align: right;
}
.note {
  background: var(--lilac);
  padding: 19px;
  border-radius: 6px;
  margin-top: 22px;
}
.note p {
  color: #5a5075;
  font-size: 12px;
}
.note strong {
  font-size: 12px;
  color: #443861;
}
.related {
  border-top: 1px solid var(--line);
  padding-top: 45px;
  padding-bottom: 60px;
}
.related .grid {
  margin-top: 25px;
}
.dialog {
  border: 0;
  padding: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  width: min(940px, calc(100% - 32px));
  max-height: 90vh;
  box-shadow: 0 20px 90px #0005;
}
.dialog::backdrop {
  background: #14121fbd;
  backdrop-filter: blur(4px);
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  gap: 20px;
}
.dialog-bar h2 {
  font-size: 17px;
}
.dialog-close {
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
}
.dialog video {
  display: block;
  width: 100%;
  max-height: 65vh;
  background: #111;
}
.dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 35px;
    padding-top: 50px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-picture img {
    aspect-ratio: 1.1;
  }
  .nav {
    gap: 20px;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .how-intro p {
    max-width: 600px;
  }
  .detail {
    gap: 30px;
  }
  .card-media .play {
    opacity: 1;
  }
  .hero-caption strong {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    height: 74px;
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    width: 88px;
  }
  .brand span {
    font-size: 12px;
    padding-left: 12px;
  }
  .nav {
    gap: 10px;
  }
  .nav .nav-secondary {
    display: none;
  }
  .nav .github {
    font-size: 12px;
    padding: 7px 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0 35px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 49px;
    max-width: 500px;
  }
  .hero-copy > p {
    max-width: 490px;
    font-size: 15px;
    margin-top: 18px;
  }
  .hero-note {
    margin-top: 18px !important;
  }
  .hero-picture img {
    aspect-ratio: 1.6;
  }
  .hero-caption strong {
    font-size: 14px;
  }
  .hero-caption p {
    font-size: 11px;
  }
  .eyebrow {
    margin-bottom: 17px;
  }
  .index-strip {
    font-size: 10px;
    gap: 10px;
  }
  .index-strip span:last-child {
    display: none;
  }
  .collection {
    padding: 40px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .search {
    width: 100%;
  }
  .filters {
    align-items: start;
  }
  .filter {
    padding: 7px 10px;
    font-size: 12px;
  }
  .result-count {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }
  .card h3 {
    font-size: 17px;
  }
  .card-top {
    font-size: 9px;
    flex-wrap: wrap;
    gap: 3px;
  }
  .card p {
    font-size: 12px;
  }
  .card-bottom {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .collection-bottom {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .topic p {
    max-width: 100%;
  }
  .topics {
    padding: 40px 0;
  }
  .how {
    padding: 45px 0;
  }
  .steps {
    gap: 20px;
  }
  .steps h3 {
    font-size: 14px;
  }
  .steps p {
    font-size: 12px;
  }
  .closing {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .footer-top {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .page-head {
    padding-top: 32px;
  }
  .page-head > p {
    font-size: 15px;
  }
  .category-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .detail-sidebar {
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .page-head h1 {
    font-size: 40px;
  }
  .dialog-foot {
    align-items: start;
    flex-direction: column;
  }
  .dialog-bar h2 {
    font-size: 14px;
  }
  .dialog-close {
    flex-shrink: 0;
  }
}
@media (max-width: 450px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .card h3 {
    font-size: 20px;
  }
  .card-top {
    font-size: 10px;
  }
  .card p {
    font-size: 14px;
  }
  .card-bottom {
    font-size: 12px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .actions {
    gap: 20px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step-number {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .steps h3 {
    font-size: 16px;
  }
  .steps p {
    font-size: 14px;
  }
  .filter-options {
    gap: 0;
  }
  .filter {
    padding-inline: 9px;
  }
  .hero-caption strong {
    font-size: 12px;
  }
  .footer-links {
    gap: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .hero-picture:hover img,
  .card-media:hover img {
    transform: none;
  }
}

.language-select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 7px;
  background: white;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.language-select:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
html[lang="zh-CN"] body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}
html[lang="zh-CN"] .hero h1 {
  font-size: clamp(36px, 3.4vw, 49px);
}
@media (max-width: 760px) {
  .header .wrap {
    gap: 12px;
  }
  .language-select {
    font-size: 12px;
    padding: 7px 3px;
    max-width: 80px;
  }
  .nav {
    gap: 8px;
  }
}
@media (max-width: 450px) {
  .brand {
    gap: 8px;
  }
  .brand span {
    padding-left: 8px;
    font-size: 11px;
  }
  .nav .github {
    padding-inline: 7px;
  }
  html[lang="zh-CN"] .hero h1 {
    font-size: 36px;
  }
}
@media (max-width: 359px) {
  .brand span {
    display: none;
  }
}

/* Visible, separate preview and prompt actions. */
.play, .card-media .play {
  width: auto;
  height: 38px;
  min-width: 44px;
  border-radius: 6px;
  display: flex;
  gap: 7px;
  padding: 0 11px;
  font-size: 12px;
  opacity: 1;
  z-index: 2;
}
.play svg { flex-shrink: 0; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
}
.hero-video.is-playing { opacity: 1; }
.hero-pause {
  position: absolute;
  left: 16px;
  bottom: 20px;
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid #ffffff80;
  border-radius: 6px;
  background: #181b22d9;
  color: white;
  font-size: 12px;
}
.collection-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 26px; font-size: 14px; }
.collection-nav a { padding-bottom: 8px; }
.collection-nav [aria-current] { color: var(--purple-dark); border-bottom: 2px solid currentColor; }
.collection-nav a:hover { color: var(--purple-dark); }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.preview-prompt { margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.customize { margin-top: 24px; padding: 22px; background: var(--wash); border-radius: 8px; }
.customize h2 { font-size: 20px; margin-bottom: 10px; }
.customize p, .customize li { font-size: 13px; }
.customize ul { margin-bottom: 0; padding-left: 20px; color: var(--muted); }
.customize li + li { margin-top: 8px; }
@media (max-width: 760px) {
  .hero { padding-top: 28px; gap: 22px; }
  .hero h1 { font-size: 42px; }
}

/* Editorial hierarchy: a lead film, two featured works, then the collection. */
.hero {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.75fr);
  gap: 42px;
  padding: 46px 0 40px;
}
.hero h1 { font-size: clamp(38px, 4vw, 58px); }
.hero-copy > p { max-width: 310px; font-size: 18px; }
.hero .actions { gap: 15px; }
.hero .hero-note { margin-top: 20px !important; }
.hero-picture { border-radius: 14px; box-shadow: 0 16px 45px #20144318; }
.hero-picture img { aspect-ratio: 16/10; }
.hero-caption > a { font-size: 13px; white-space: nowrap; }
.hero-caption strong { font-size: 16px; }
.showcase-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.showcase-grid .card { grid-column: span 4; }
.showcase-grid .card-media img { aspect-ratio: 16/10; }
.showcase-grid .card-featured { grid-column: span 6; }
.showcase-grid .card-featured .card-media img { aspect-ratio: 16/9; }
.showcase-grid .card-featured h3 { font-size: 26px; }
.showcase-grid .card-spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center;
  background: #f1edff;
  border-radius: 14px;
  overflow: hidden;
}
.showcase-grid .card-spotlight .card-media { border-radius: 0; height: 100%; }
.showcase-grid .card-spotlight .card-media > a { height: 100%; }
.showcase-grid .card-spotlight .card-media img { height: 100%; min-height: 350px; aspect-ratio: 16/10; }
.showcase-grid .card-spotlight .card-info { padding: 32px; }
.showcase-grid .card-spotlight h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.showcase-grid .card-spotlight p { font-size: 15px; margin: 18px 0 24px; }
.editor-pick { color: var(--purple-dark); font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.card-featured .editor-pick { margin-top: 20px; }
.card-featured .card-top { margin-top: 8px; }
.card-spotlight .card-top { margin-top: 16px; }
.showcase-grid .card-bottom { align-items: center; margin-top: 16px; }
.showcase-grid .card-bottom a:last-child { color: var(--purple-dark); font-size: 13px; font-weight: 600; padding: 8px 0; }
.showcase-grid .play { min-height: 40px; padding: 0 14px; }
.showcase-grid .card-spotlight .play, .showcase-grid .card-featured .play { bottom: 18px; right: 18px; min-height: 44px; font-size: 14px; }
.collection .section-heading h2 { max-width: 640px; }
@media (max-width: 1050px) {
  .hero { gap: 28px; }
  .hero h1 { font-size: 40px; }
  .showcase-grid .card-spotlight .card-info { padding: 24px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 24px; }
  .hero-copy > p { max-width: none; margin-top: 14px; }
  .hero .hero-note { display: none; }
  .hero h1 br { display: none; }
  .hero h1 span::before { content: ' '; }
  .hero h1 { font-size: 40px; }
  .hero .actions { margin-top: 20px; }
  .hero-picture img { aspect-ratio: 16/10; }
  .hero-caption strong { font-size: 14px; }
  .showcase-grid { gap: 28px 18px; }
  .showcase-grid .card { grid-column: span 6; }
  .showcase-grid .card-spotlight { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .showcase-grid .card-spotlight .card-media img { min-height: 0; height: auto; }
  .showcase-grid .card-featured h3 { font-size: 22px; }
  .showcase-grid .card-spotlight h3 { font-size: 30px; }
  .showcase-grid .card-featured .play { font-size: 12px; right: 10px; bottom: 10px; padding: 0 10px; }
}
@media (max-width: 450px) {
  .showcase-grid .card-featured { grid-column: 1 / -1; }
  .showcase-grid .card:not(.card-featured):not(.card-spotlight) h3 { font-size: 17px; }
  .showcase-grid .card:not(.card-featured):not(.card-spotlight) p { display: none; }
  .showcase-grid .card:not(.card-featured):not(.card-spotlight) .play { font-size: 11px; padding: 0 8px; right: 8px; bottom: 8px; }
  .showcase-grid .card-top { font-size: 9px; }
  .showcase-grid .card-bottom { font-size: 10px; gap: 2px; }
  .hero-caption { gap: 8px; }
  .hero-caption > a { font-size: 12px; }
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #131319;
  pointer-events: none;
  opacity: 0;
}
.card-video.is-playing { opacity: 1; }

.star-hint { padding: 12px 20px; background: var(--lilac); font-size: 13px; line-height: 1.6; }
.star-hint span { color: var(--muted); }
.star-hint a { color: var(--purple-dark); font-weight: 550; }
.star-hint a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Library browsing extends the existing cards and color system. */
.collection-nav { flex-wrap: wrap; }
.collection-nav .filter { font: inherit; cursor: pointer; }
.filter small { opacity: .65; margin-left: 4px; }
.catalog-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.new-badge { color: var(--purple-dark); background: var(--lilac); border-radius: 4px; padding: 2px 7px; }
.catalog-grid .catalog-card { grid-column: span 4; min-width: 0; }
.catalog-card h3 { font-size: 18px; overflow-wrap: anywhere; }
.catalog-card .card-media img { aspect-ratio: 16/9; object-fit: cover; }
.catalog-placeholder { aspect-ratio: 16/9; display: grid; place-items: center; background: var(--lilac); color: var(--purple-dark); }
.catalog-card .card-info { padding-top: 16px; }
.catalog-card .card-top { flex-wrap: wrap; }
.load-more { margin: 28px auto 0; cursor: pointer; }
.template-video { width: 100%; aspect-ratio: 16/9; display: block; background: #131319; border-radius: 12px; }
.templates { border-top: 1px solid var(--line); padding-top: 42px; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .catalog-grid .catalog-card { grid-column: span 6; } }
@media (max-width: 450px) {
  .catalog-grid .catalog-card { grid-column: 1 / -1; }
  .showcase-grid .catalog-card p { display: block !important; }
  .catalog-card .card-bottom { font-size: 12px !important; }
}
