:root {
  color-scheme: light;
  --page: #f9f8f7;
  --panel: #fff;
  --raised: #f6f4f3;
  --line: #e9e3e1;
  --ink: #242021;
  --muted: #686164;
  --accent: #b72238;
  --accent-ink: #fff;
  --accent-wash: #fcf0f0;
  --accent-line: #e8b7bd;
  --subtle-accent: #65707d;
  --subtle-wash: #eef1f5;
  --hero-surface: #f5eded;
  --hero-edge: #ebe2e3;
  --hero-fade: #f5ededaa;
  --shadow: #31232413;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #161314;
  --panel: #201b1d;
  --raised: #2b2427;
  --line: #3e3337;
  --ink: #faf4f5;
  --muted: #c0b3b7;
  --accent: #f08e9c;
  --accent-ink: #29171c;
  --accent-wash: #3b232b;
  --accent-line: #844955;
  --subtle-accent: #bcc6d6;
  --subtle-wash: #2d3440;
  --hero-surface: #30272b;
  --hero-edge: #44353b;
  --hero-fade: #30272baa;
  --shadow: #0007;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 3; padding: 12px; border-radius: 12px; background: var(--raised); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .065em; }
.brand-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; background: #a92035; }
.brand-icon img { width: 21px; height: 23px; object-fit: contain; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .15em; }
.masthead-actions { display: flex; align-items: center; gap: 8px; }
.site-link { white-space: nowrap; padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px; background: var(--panel); color: var(--muted); font-size: 12px; }
.site-link span { color: var(--accent); margin-left: 6px; }
.site-link:hover { color: var(--ink); border-color: var(--muted); }

.intro {
  isolation: isolate; position: relative; display: flex; align-items: center;
  min-height: 219px; overflow: hidden; margin: 6px 0 19px;
  border: 1px solid var(--hero-edge); border-radius: 28px;
  background: var(--hero-surface);
}
.intro-text { position: relative; z-index: 2; padding: 35px clamp(26px, 4vw, 61px); pointer-events: none; }
h1 { margin: 0; font-size: clamp(43px, 5.55vw, 80px); font-weight: 720; letter-spacing: -.065em; line-height: 1.08; }
h1 span { color: var(--accent); }
.feature { position: absolute; inset: 0 0 0 42%; overflow: hidden; border: 0; background: transparent; text-align: left; }
.feature img, .feature-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.25,1); }
.feature-video { opacity: 0; pointer-events: none; }
.feature.is-playing .feature-video { opacity: 1; }
.feature.is-playing img { opacity: 0; }
.feature:hover :is(img, .feature-video) { transform: scale(1.025); }
.feature-toggle { position: absolute; z-index: 3; bottom: 17px; left: clamp(26px,4vw,61px); display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.feature-toggle::after { content: ""; width: 4px; height: 10px; border-inline: 2px solid currentColor; }
.feature-toggle.is-paused::after { width: 0; height: 0; margin-left: 2px; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-surface) 0%, var(--hero-fade) 22%, transparent 62%), linear-gradient(0deg,#161216bd,transparent 57%); }
.feature:focus-visible { outline-offset: -5px; z-index: 3; border-radius: 28px; }
.feature-caption { position: absolute; z-index: 1; right: 86px; bottom: 24px; color: #fff; text-align: right; }
.feature-label { display: block; font-size: 11px; letter-spacing: .1em; color: #e4e4ed; }
.feature-caption strong { display: block; font-size: 23px; letter-spacing: -.03em; line-height: 1.3; }
.feature-play, .play { display: grid; place-items: center; border-radius: 50%; }
.feature-play { position: absolute; right: 26px; bottom: 23px; z-index: 1; width: 46px; aspect-ratio: 1; background: var(--accent); color: var(--accent-ink); }
.feature-play::before, .play::before { content: ""; margin-left: 2px; border: 5px solid transparent; border-right: 0; border-left: 8px solid currentColor; }

.library { scroll-margin-top: 14px; }
.filter-panel { padding: 14px 19px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 4px 24px var(--shadow); }
.filter-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 9px; align-items: start; }
.filter-label { padding-top: 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.production-list, .category-list, .topic-list { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
.type-row, .use-row, .industry-row { margin-top: 7px; }
.option-group { display: contents; }
.filter-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 100px; background: transparent;
  color: var(--muted); font-size: 12px; white-space: nowrap;
}
.filter-more::after { content: ""; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-1px) rotate(45deg); }
.filter-more[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.filter-more:hover { color: var(--accent); border-color: var(--accent-line); }
.production-option, .category, .topic {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 11px; min-height: 34px; border: 1px solid transparent; border-radius: 100px;
  white-space: nowrap; font-size: 13px; font-weight: 650; transition: background .17s ease, color .17s ease;
}
.production-option { border-color: var(--line); background: var(--panel); }
.production-option:hover, .category:hover, .topic:hover { border-color: var(--accent-line); color: var(--accent); }
.production-option[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.category { background: var(--raised); }
.category[aria-pressed="true"], .topic[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }
.filter-count { font-variant-numeric: tabular-nums; font-size: 10px; color: var(--muted); }
.production-option[aria-pressed="true"] .filter-count { color: var(--accent-ink); }
.category[aria-pressed="true"] .filter-count, .topic[aria-pressed="true"] .filter-count { color: var(--accent); }
[data-empty="true"][aria-pressed="false"] { color: var(--muted); }
.topic { min-height: 32px; background: transparent; font-size: 12px; color: var(--muted); }
.filter-toolbar { display: flex; gap: 12px; justify-content: space-between; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--line); }
.facets { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.select-wrap, .date-filter { position: relative; }
.select-wrap::after, .date-filter summary::after {
  position: absolute; top: 15px; right: 11px; width: 6px; height: 6px;
  content: ""; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); pointer-events: none; opacity: .7;
}
.select-wrap select, .date-filter summary {
  appearance: none; min-height: 38px; padding: 7px 25px 7px 12px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--page);
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.select-wrap[data-active="true"] select, .date-filter[data-active="true"] summary { color: var(--accent); border-color: var(--accent-line); background: var(--accent-wash); }
.theme-control select { min-height: 34px; padding: 6px 25px 6px 27px; background: var(--panel); }
.theme-control::after { top: 13px; }
.theme-icon { position: absolute; left: 10px; top: 11px; width: 11px; height: 11px; border: 1px solid var(--accent); border-radius: 50%; background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); pointer-events: none; }
.date-filter summary { display: flex; align-items: center; list-style: none; }
.date-filter summary::-webkit-details-marker { display: none; }
.date-popover {
  width: 250px; position: absolute; z-index: 3; top: calc(100% + 8px); right: 0;
  padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 12px 32px var(--shadow);
}
.date-popover p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.date-popover label { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 12px; }
.date-popover input { min-width: 0; flex: 1; padding: 6px 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--page); }
.date-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 13px; }
.primary-button { padding: 7px 14px; border: 0; border-radius: 100px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; }
.search { display: flex; align-items: center; gap: 11px; width: min(310px, 100%); min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--page); }
.search:focus-within { border-color: var(--accent); }
.search-icon { position: relative; width: 12px; height: 12px; flex: 0 0 12px; margin-right: 2px; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -2px; width: 6px; height: 1.5px; background: var(--muted); transform: rotate(45deg); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: 12px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { appearance: none; }
.search-clear { width: 25px; height: 25px; flex: 0 0 25px; border: 0; border-radius: 50%; background: var(--raised); font-size: 18px; line-height: 1; }

.collection-heading, .collection-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.collection-heading { justify-content: space-between; margin: 25px 0 16px; min-height: 32px; }
.collection-title { flex-wrap: wrap; }
.collection-heading h2 { margin: 0; font-size: clamp(18px, 2vw, 25px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.text-button { flex-shrink: 0; padding: 5px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
.collection-heading { scroll-margin-top: 20px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; }
.page-button {
  display: inline-grid; place-items: center; padding: 0 8px; min-width: 36px; min-height: 36px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--panel);
  color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums;
}
.page-button:first-child, .page-button:last-child { font-size: 21px; line-height: 1; }
.page-button:hover:enabled { border-color: var(--accent-line); color: var(--accent); }
.page-button[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.page-button[aria-current="page"]:hover { color: var(--accent-ink); }
.page-button:disabled { opacity: .4; cursor: default; }
.page-gap { min-width: 14px; text-align: center; color: var(--muted); }

.card { min-width: 0; }
.card-button { width: 100%; display: block; border: 0; border-radius: 21px; background: transparent; text-align: left; padding: 0; }
.cover { display: block; position: relative; overflow: hidden; isolation: isolate; border-radius: 21px; aspect-ratio: 16 / 9; background: var(--raised); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .25s ease; }
.cover::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,#09090e91); pointer-events: none; }
.card-button:hover img { transform: scale(1.04); filter: brightness(1.09); }
.play, .duration { position: absolute; z-index: 1; bottom: 11px; color: white; background: #111117b9; }
.play { left: 12px; width: 35px; aspect-ratio: 1; border: 1px solid #ffffff4d; backdrop-filter: blur(6px); }
.card-button:hover .play, .card-button:focus-visible .play { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.duration { right: 12px; padding: 3px 8px; border-radius: 100px; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 11px; }
.card-info { display: block; padding: 11px 3px 0; }
.card-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.production-tag { padding: 2px 7px; border-radius: 100px; color: var(--subtle-accent); background: var(--subtle-wash); font-size: 10px; font-weight: 650; white-space: nowrap; }
.production-tag[data-production="aigc"] { background: var(--accent-wash); color: var(--accent); }
.card-category { color: var(--muted); font-size: 11px; line-height: 1.5; }
.card-title { display: block; margin-top: 4px; font-size: clamp(16px, 1.7vw, 23px); line-height: 1.3; font-weight: 680; letter-spacing: -.03em; overflow-wrap: anywhere; }
.card-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty { padding: 37px 14px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; }
.empty h3 { margin: 0; font-size: 17px; }
.empty p { margin: 8px 0; color: var(--muted); font-size: 13px; }
.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 45px; padding-block: 22px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer a:hover { color: var(--accent); }

#player {
  --player-ratio: 1.7778;
  width: 75vw;
  width: min(75vw, max(460px, calc(75dvh * var(--player-ratio))));
  max-width: calc(100% - 24px); max-height: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 90px #0008; }
dialog::backdrop { background: #050508bb; backdrop-filter: blur(7px); }
body:has(dialog[open]) { overflow: hidden; }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; }
.player-header h2 { min-width: 0; margin: 0; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-actions { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.round-button { flex: 0 0 40px; display: grid; place-items: center; width: 40px; min-height: 40px; line-height: 1; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); font-size: 19px; }
.round-button:hover:enabled { background: var(--accent); color: var(--accent-ink); }
.round-button:disabled { opacity: .42; }
.close-player { font-size: 25px; }
#video {
  display: block; width: 100%; max-height: 75vh;
  max-height: min(75dvh, calc(100dvh - 86px));
  aspect-ratio: var(--player-ratio); object-fit: contain; background: #09090d;
}
.video-error { padding: 0 21px; color: var(--accent); font-size: 14px; }
.player-navigation { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; color: var(--muted); }

@keyframes arrive {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes player-arrive {
  from { opacity: .2; transform: translateY(9px) scale(.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.intro-text { animation: arrive .55s cubic-bezier(.2,.7,.25,1) both; }
.filter-panel { animation: arrive .42s .08s cubic-bezier(.2,.7,.25,1) both; }
.case-arrive { animation: arrive .38s cubic-bezier(.2,.7,.25,1) both; }
dialog[open] { animation: player-arrive .23s cubic-bezier(.2,.7,.25,1) both; }

@media (max-width: 1060px) {
  .wrap { width: calc(100% - 56px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .masthead { min-height: 62px; }
  .intro { min-height: 185px; margin-top: 4px; }
  .intro-text { padding-inline: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .filter-toolbar { flex-wrap: wrap; }
  .search { width: 100%; }
  #player { width: 94vw; width: min(94vw, max(300px, calc(75dvh * var(--player-ratio)))); }
}
@media (max-width: 540px) {
  .intro { display: block; min-height: 0; border-radius: 23px; margin-bottom: 12px; }
  .intro-text { padding: 18px 15px 15px; }
  h1 { font-size: clamp(38px, 10vw, 54px); }
  .feature { position: relative; display: block; inset: auto; width: calc(100% - 16px); min-height: 82px; margin: 0 8px 8px; border-radius: 16px; }
  .feature img { object-position: 50% 49%; }
  .feature::after { background: linear-gradient(90deg,#10101dd6,transparent 88%); }
  .feature-caption { text-align: left; right: auto; left: 13px; bottom: 11px; }
  .feature-label { font-size: 10px; }
  .feature-caption strong { font-size: 17px; }
  .feature-play { width: 33px; right: 12px; bottom: 12px; }
  .feature-toggle { bottom: 21px; right: 60px; left: auto; width: 27px; height: 27px; }
  .brand { font-size: 12px; letter-spacing: .025em; }
  .filter-panel { border-radius: 20px; padding: 10px; }
  .filter-row { grid-template-columns: 47px minmax(0, 1fr); gap: 4px; }
  .filter-label { font-size: 11px; }
  .production-list, .category-list, .topic-list { gap: 4px; }
  .production-option, .category, .topic { min-height: 32px; font-size: 11px; padding: 5px 7px; gap: 4px; }
  .filter-count { font-size: 9px; }
  .filter-more { padding-inline: 7px; font-size: 11px; }
  .filter-toolbar { gap: 8px; margin-top: 8px; padding-top: 8px; }
  .facets { position: relative; width: 100%; gap: 5px; }
  .select-wrap select, .date-filter summary { min-height: 34px; padding-inline: 10px 21px; font-size: 11px; }
  .theme-control select { padding-inline: 25px 21px; }
  .select-wrap select { max-width: 133px; }
  .select-wrap::after, .date-filter summary::after { top: 12px; right: 9px; }
  .date-filter { position: static; }
  .date-filter summary { position: relative; white-space: normal; }
  .date-popover { top: calc(100% + 7px); right: auto; left: 0; width: min(270px, 100%); }
  .collection-heading { margin: 17px 0 11px; }
  .pagination { gap: 4px; margin-top: 22px; }
  .page-button { min-width: 30px; min-height: 34px; padding-inline: 6px; }
  .page-gap { min-width: 12px; }
  .cover { border-radius: 15px; }
  .card-title { font-size: 15px; }
  .card-detail { font-size: 10px; }
  .card-category { font-size: 10px; }
  .play { left: 7px; bottom: 7px; width: 26px; }
  .duration { right: 7px; bottom: 7px; font-size: 10px; }
  .player-header { padding: 10px 12px; gap: 8px; }
  .player-header h2 { font-size: 16px; }
  .player-actions, .player-navigation { gap: 6px; }
  .round-button { flex-basis: 32px; width: 32px; min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
