:root {
  --bg: #11120f;
  --surface: #191a16;
  --surface-raised: #20211c;
  --text: #f1eee4;
  --muted: #a8a59a;
  --faint: #716f66;
  --accent: #ff7247;
  --accent-soft: rgba(255, 114, 71, 0.15);
  --line: rgba(241, 238, 228, 0.14);
  --line-strong: rgba(241, 238, 228, 0.26);
  --sans: "MiSans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line);
  background: rgba(17, 18, 15, 0.9); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; height: 42px; padding-inline: 8px; place-items: center; white-space: nowrap; border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 15px; }
.topbar-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.spotlight { position: relative; min-height: min(620px, 72vh); overflow: hidden; border-bottom: 1px solid var(--line); }
.spotlight-media, .spotlight-image, .spotlight-shade { position: absolute; inset: 0; }
.spotlight-image { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; opacity: 0; transition: opacity 600ms ease; }
.spotlight-image[data-featured-work="08"] { object-position: center 20%; }
.spotlight-image.is-active { opacity: 1; }
.spotlight-shade {
  background:
    linear-gradient(90deg, rgba(10,11,9,.95) 0%, rgba(10,11,9,.82) 28%, rgba(10,11,9,.18) 68%, rgba(10,11,9,.55) 100%),
    linear-gradient(0deg, rgba(17,18,15,.86) 0%, transparent 42%);
}
.spotlight-content {
  position: relative; z-index: 2; display: flex; min-height: min(620px, 72vh); max-width: 720px;
  padding: clamp(48px, 7vw, 92px) clamp(22px, 7vw, 112px); flex-direction: column; justify-content: center;
}
.eyebrow, .section-kicker { margin: 0; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow span + span { color: var(--muted); }
.spotlight h1 { max-width: 620px; margin: 22px 0 12px; font-family: var(--serif); font-size: clamp(46px, 7vw, 94px); font-weight: 500; line-height: .98; text-wrap: balance; }
.spotlight-note { margin: 0; color: #d4d0c3; font-size: clamp(14px, 1.25vw, 18px); }
.spotlight-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.meta-pill { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: #ddd9ce; background: rgba(17,18,15,.42); font-size: 11px; }
.spotlight-actions { margin-top: 32px; }
.primary-action { border: 0; cursor: pointer; }
.primary-action { display: inline-flex; min-height: 48px; padding: 0 21px; align-items: center; gap: 12px; border-radius: 4px; color: #14130f; background: var(--accent); font-size: 13px; font-weight: 700; }
.primary-action:hover { background: #ff875f; }
.play-triangle { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.spotlight-controls { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 10px; margin-top: 22px; }
.carousel-button, .carousel-dot { display: grid; height: 44px; place-items: center; border: 1px solid transparent; color: var(--text); background: transparent; cursor: pointer; }
.carousel-button { width: 44px; border-color: var(--line-strong); border-radius: 4px; background: rgba(17,18,15,.52); font-size: 18px; }
.carousel-button:hover { border-color: var(--accent); }
.carousel-button:focus-visible, .carousel-dot:focus-visible, .primary-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.carousel-dots { display: flex; align-items: center; }
.carousel-dot { width: 24px; padding: 0; }
.carousel-dot::before { width: 7px; height: 7px; border-radius: 999px; background: rgba(241,238,228,.62); content: ""; transition: width 250ms ease, background-color 250ms ease; }
.carousel-dot[aria-current="true"]::before { width: 18px; background: var(--accent); }
.carousel-dot:hover::before { background: var(--text); }
.carousel-toggle span { width: 10px; height: 12px; border-inline: 2px solid currentColor; }
.carousel-toggle.is-paused span { width: 0; height: 0; border: 6px solid transparent; border-right: 0; border-left: 9px solid currentColor; }

.catalog-shell { padding: 52px clamp(20px, 4vw, 64px) 82px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.catalog-heading h2 { margin: 7px 0 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1; }
.catalog-summary { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.summary-rule { width: 34px; height: 1px; background: var(--line-strong); }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 30px 0 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-group, .control-right { display: flex; align-items: center; gap: 8px; }
.filter-chip { padding: 8px 13px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.filter-chip:hover { color: var(--text); }
.filter-chip.is-active { border-color: var(--line-strong); color: var(--text); background: var(--surface-raised); }
.search-field { position: relative; display: flex; width: 190px; height: 36px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); background: var(--surface); }
.search-mark { position: relative; width: 12px; height: 12px; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-mark::after { position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.5px; background: var(--muted); content: ""; transform: rotate(45deg); transform-origin: left center; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-field input::placeholder { color: var(--faint); }
.sort-field select { height: 36px; padding: 0 28px 0 11px; border: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--muted); background: var(--surface); font-size: 12px; }

.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
.work-card { min-width: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.work-cover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--surface-raised); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.work-cover::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,6,.7), transparent 38%); content: ""; }
.work-card:hover .work-cover img, .work-card:focus-visible .work-cover img { transform: scale(1.035); filter: saturate(1.08); }
.work-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cover-top, .cover-bottom { position: absolute; z-index: 2; display: flex; align-items: center; }
.cover-top { top: 12px; right: 12px; left: 12px; justify-content: space-between; }
.cover-bottom { right: 13px; bottom: 13px; left: 13px; justify-content: space-between; }
.cover-badge { padding: 5px 7px; border-radius: 3px; color: #f7f2e8; background: rgba(10,11,8,.7); backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.cover-index { color: rgba(255,255,255,.74); font-family: var(--serif); font-size: 16px; }
.cover-play { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(10,11,8,.34); backdrop-filter: blur(8px); }
.cover-play .play-triangle { margin-left: 2px; border-top-width: 5px; border-bottom-width: 5px; border-left-width: 8px; }
.cover-duration { color: rgba(255,255,255,.86); font-size: 10px; }
.card-copy { display: block; padding: 13px 2px 0; }
.card-title { display: -webkit-box; overflow: hidden; margin: 0; color: var(--text); font-family: var(--serif); font-size: clamp(17px, 1.55vw, 22px); font-weight: 500; line-height: 1.28; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.card-price { color: #ddd8cb; white-space: nowrap; }

.empty-state { padding: 80px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--text); font-family: var(--serif); font-size: 26px; font-weight: 500; }
.empty-state button { margin-top: 18px; padding: 9px 13px; border: 1px solid var(--line-strong); color: var(--text); background: transparent; cursor: pointer; }
.footer { display: flex; min-height: 78px; padding: 22px clamp(20px, 4vw, 64px); align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }

.work-dialog { width: min(1180px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); }
.work-dialog::backdrop { background: rgba(4,5,3,.86); backdrop-filter: blur(12px); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 4; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: rgba(17,18,15,.62); cursor: pointer; font-size: 22px; }
.dialog-layout { display: grid; height: min(680px, calc(100dvh - 48px)); min-height: 0; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); }
.video-placeholder { position: relative; display: grid; height: 100%; min-height: 0; overflow: hidden; place-items: center; background: #0d0e0c; }
.video-player { width: 100%; height: 100%; min-height: 0; max-height: 100%; background: #080907; object-fit: contain; }
.video-quality-badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--text); background: rgba(8,9,7,.72); backdrop-filter: blur(10px); pointer-events: none; }
.video-quality-badge span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.video-quality-badge small { color: var(--muted); font-size: 9px; }
.video-status { position: absolute; inset: 0; z-index: 3; display: flex; padding: 32px; flex-direction: column; align-items: center; justify-content: center; color: var(--text); background: rgba(8,9,7,.88); text-align: center; }
.video-status[hidden] { display: none; }
.video-status span { color: var(--accent); font-size: 10px; font-weight: 700; }
.video-status strong { margin-top: 12px; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); font-weight: 500; }
.video-status a { margin-top: 22px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); text-decoration: none; font-size: 12px; }
.video-status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.video-status-actions a, .video-status-actions button { margin: 0; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: transparent; cursor: pointer; text-decoration: none; font: inherit; font-size: 12px; }
.video-status-actions a:hover, .video-status-actions button:hover { border-color: var(--accent); color: var(--accent); }
.video-status small { min-height: 16px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.video-status a:hover { border-color: var(--accent); color: var(--accent); }
.work-dialog.is-portrait .dialog-layout {
  height: min(620px, calc(100dvh - 48px), 78dvh);
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1fr);
}
.work-dialog.is-portrait .video-placeholder { height: 100%; min-height: 0; padding: 16px; }
.work-dialog.is-portrait .video-player { width: auto; max-width: 100%; height: 100%; max-height: 100%; min-height: 0; margin: auto; object-fit: contain; }
.dialog-panel { display: flex; padding: 66px 34px 30px; flex-direction: column; overflow-y: auto; }
.dialog-eyebrow { margin-bottom: 2px; }
.dialog-panel h2 { margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.08; }
.dialog-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.detail-list { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.detail-list dt, .detail-list dd { padding: 13px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { color: var(--text); text-align: right; }
.dialog-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 34px; }
.dialog-nav button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); color: var(--text); background: transparent; cursor: pointer; font-size: 18px; }
.dialog-nav button:hover { border-color: var(--accent); color: var(--accent); }
.dialog-nav span { color: var(--muted); font-size: 10px; }

@media (max-width: 1080px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dialog-layout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr); }
}
@media (max-height: 760px) {
  .dialog-layout { height: calc(100dvh - 32px); }
  .work-dialog.is-portrait .dialog-layout { height: min(calc(100dvh - 32px), 76dvh); }
}
@media (max-width: 820px) {
  .spotlight, .spotlight-content { min-height: 600px; }
  .spotlight-image { object-position: 62% center; }
  .spotlight-shade { background: linear-gradient(90deg, rgba(10,11,9,.68), rgba(10,11,9,.18)), linear-gradient(0deg, rgba(17,18,15,.98) 8%, rgba(17,18,15,.82) 33%, transparent 78%); }
  .spotlight-content { max-width: 590px; justify-content: end; padding-bottom: 44px; }
  .catalog-heading, .controls { align-items: start; flex-direction: column; }
  .control-right { width: 100%; }
  .search-field { width: min(100%, 280px); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-dialog { max-height: calc(100dvh - 16px); overflow-y: auto; }
  .dialog-layout { display: block; height: auto; min-height: auto; }
  .work-dialog.is-portrait .dialog-layout { height: auto; }
  .work-dialog.is-portrait .video-placeholder { height: min(54dvh, 520px); min-height: 0; padding: 12px; }
  .work-dialog.is-portrait .video-player { width: auto; max-width: 100%; height: 100%; }
  .video-placeholder { min-height: 48vh; }
  .dialog-panel { min-height: 380px; padding: 32px 24px 24px; }
}
@media (max-width: 560px) {
  .topbar { height: 68px; padding: 0 18px; }
  .topbar-meta { display: none; }
  .brand-mark { height: 38px; }
  .spotlight, .spotlight-content { min-height: 540px; }
  .spotlight-content { padding: 36px 20px 28px; }
  .spotlight h1 { margin-top: 18px; font-size: clamp(43px, 15vw, 68px); }
  .spotlight-note { max-width: 270px; line-height: 1.55; }
  .spotlight-actions { margin-top: 24px; }
  .spotlight-controls { margin-top: 16px; }
  .catalog-shell { padding: 38px 16px 60px; }
  .catalog-summary { flex-wrap: wrap; }
  .summary-rule { display: none; }
  .filter-group { max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .filter-chip { flex: 0 0 auto; }
  .control-right { align-items: stretch; flex-direction: column; }
  .search-field, .sort-field select { width: 100%; }
  .work-grid { gap: 22px 10px; }
  .cover-top, .cover-bottom { right: 9px; left: 9px; }
  .cover-top { top: 9px; }
  .cover-bottom { bottom: 9px; }
  .cover-play { width: 31px; height: 31px; }
  .card-title { font-size: 16px; }
  .card-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .work-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .video-placeholder { min-height: 42vh; }
  .video-player { min-height: 42vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
