:root {
  color-scheme: light;
  --bg: #fffaf7;
  --bg-soft: #fdf3ee;
  --surface: #ffffff;
  --surface-2: #fff7f3;
  --surface-3: #fdeee8;
  --text: #221a1e;
  --text-2: #574a50;
  --muted: #8a7981;
  --line: #f0e1da;
  --line-2: #e6d1c9;
  --brand: #d7436a;
  --brand-2: #f2748f;
  --brand-3: #a22b4f;
  --gold: #c1822a;
  --ok: #2f9e6f;
  --grad-brand: linear-gradient(135deg, #f2748f 0%, #d7436a 52%, #a22b4f 100%);
  --grad-ink: linear-gradient(180deg, rgba(24, 12, 18, 0) 0%, rgba(24, 12, 18, 0.34) 52%, rgba(16, 8, 13, 0.9) 100%);
  --glow-1: rgba(242, 116, 143, 0.12);
  --glow-2: rgba(193, 130, 42, 0.1);
  --shadow-sm: 0 1px 2px rgba(70, 30, 44, 0.06), 0 2px 10px rgba(70, 30, 44, 0.05);
  --shadow-md: 0 8px 24px rgba(70, 30, 44, 0.1);
  --shadow-lg: 0 20px 48px -14px rgba(70, 30, 44, 0.3);
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --header-h: 68px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STZhongsong", "STSong", "SimSun", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0a10;
  --bg-soft: #130d15;
  --surface: #171016;
  --surface-2: #1d1521;
  --surface-3: #241a29;
  --text: #f6eef2;
  --text-2: #ccbac3;
  --muted: #9c8993;
  --line: #2a2030;
  --line-2: #3a2b41;
  --brand: #ff6f96;
  --brand-2: #ff9db7;
  --brand-3: #c93d66;
  --gold: #f0bf72;
  --ok: #4fc397;
  --grad-brand: linear-gradient(135deg, #ff9db7 0%, #f2507c 52%, #b5305a 100%);
  --grad-ink: linear-gradient(180deg, rgba(6, 4, 7, 0) 0%, rgba(6, 4, 7, 0.42) 52%, rgba(5, 3, 6, 0.92) 100%);
  --glow-1: rgba(242, 80, 124, 0.16);
  --glow-2: rgba(240, 191, 114, 0.09);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.46);
  --shadow-lg: 0 24px 54px -16px rgba(0, 0, 0, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0e0a10;
    --bg-soft: #130d15;
    --surface: #171016;
    --surface-2: #1d1521;
    --surface-3: #241a29;
    --text: #f6eef2;
    --text-2: #ccbac3;
    --muted: #9c8993;
    --line: #2a2030;
    --line-2: #3a2b41;
    --brand: #ff6f96;
    --brand-2: #ff9db7;
    --brand-3: #c93d66;
    --gold: #f0bf72;
    --ok: #4fc397;
    --grad-brand: linear-gradient(135deg, #ff9db7 0%, #f2507c 52%, #b5305a 100%);
    --grad-ink: linear-gradient(180deg, rgba(6, 4, 7, 0) 0%, rgba(6, 4, 7, 0.42) 52%, rgba(5, 3, 6, 0.92) 100%);
    --glow-1: rgba(242, 80, 124, 0.16);
    --glow-2: rgba(240, 191, 114, 0.09);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.46);
    --shadow-lg: 0 24px 54px -16px rgba(0, 0, 0, 0.78);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(1100px 520px at 8% -12%, var(--glow-1), transparent 62%),
    radial-gradient(880px 460px at 102% -6%, var(--glow-2), transparent 58%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  border-style: none;
  background-color: var(--surface-3);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
table {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-2);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 14px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 34px);
}

.section {
  padding-block: clamp(38px, 5.5vw, 74px);
}

.section--tight {
  padding-block: clamp(26px, 3.4vw, 44px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.section-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.9vw, 36px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.01em;
}

.section-desc {
  margin-top: 10px;
  max-width: 56ch;
  color: var(--text-2);
  font-size: 15px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.section-link:hover {
  color: var(--brand);
  border-color: var(--brand-2);
  transform: translateX(2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(215, 67, 106, 0.85);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(215, 67, 106, 0.9);
}

.btn-ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand-2);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-brand);
  box-shadow: 0 8px 18px -8px rgba(215, 67, 106, 0.8);
  color: #fff;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  place-items: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-list a:hover {
  color: var(--brand);
  background: var(--surface-2);
}

.nav-list a.is-current {
  color: var(--brand);
  background: var(--surface-3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--brand);
  background: var(--surface-2);
  border-color: var(--line);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn .count-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.hero {
  position: relative;
  padding-block: clamp(30px, 4.6vw, 62px) clamp(26px, 3.6vw, 46px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}

.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}

.hero-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(14.5px, 1.2vw, 16.5px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  position: relative;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.01);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-ink);
  opacity: 0.72;
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.hero-caption .cap-tag {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-caption .cap-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-caption .cap-meta {
  margin-left: auto;
  font-size: 12.5px;
  opacity: 0.86;
}

.hero-float {
  position: absolute;
  left: -14px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero-float strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.hero-float span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-float .float-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--brand);
}

.hero-float svg {
  width: 20px;
  height: 20px;
}

.stats-strip {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 66%, transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 20px clamp(10px, 2vw, 26px);
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  margin-top: 6px;
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.22s var(--ease);
}

.tab:hover {
  color: var(--brand);
  border-color: var(--brand-2);
}

.tab[aria-pressed="true"] {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(215, 67, 106, 0.9);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-3);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-cover img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  inset: 8px 8px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.badge {
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(14, 8, 11, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge-score {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 6px 14px -8px rgba(215, 67, 106, 0.9);
}

.badge-4k {
  background: rgba(193, 130, 42, 0.88);
  border-color: transparent;
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 7, 10, 0.34);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover .card-play,
.card:focus-within .card-play {
  opacity: 1;
}

.card-play span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transform: scale(0.86);
  transition: transform 0.3s var(--ease);
}

.card:hover .card-play span {
  transform: scale(1);
}

.card-play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.fav-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4b3a41;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.fav-toggle:hover {
  transform: scale(1.08);
}

.fav-toggle svg {
  width: 17px;
  height: 17px;
}

.fav-toggle[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px 13px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title a {
  position: relative;
}

.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-title a:hover {
  color: var(--brand);
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
}

.card-foot .score {
  color: var(--gold);
  font-weight: 700;
}

.card-tag {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 11.5px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.editor-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.editor-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}

.editor-thumb {
  flex: none;
  width: 118px;
  height: 177px;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--surface-3);
}

.editor-thumb img {
  width: 118px;
  height: 177px;
  object-fit: cover;
  object-position: center top;
}

.editor-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.editor-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.editor-title {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.editor-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.editor-title a:hover {
  color: var(--brand);
}

.editor-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.editor-desc {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editor-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--text-2);
  font-size: 12.5px;
}

.editor-foot .score {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.feature-card {
  padding: 22px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--brand);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
}

.feature-card p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px clamp(14px, 2vw, 26px);
}

.rank-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.rank-num {
  flex: none;
  width: 26px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: var(--brand);
}

.rank-thumb {
  flex: none;
  width: 46px;
  height: 69px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
}

.rank-thumb img {
  width: 46px;
  height: 69px;
  object-fit: cover;
  object-position: center top;
}

.rank-info {
  min-width: 0;
  flex: 1;
}

.rank-title {
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rank-meta {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  flex: none;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item[open] {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--brand);
}

.faq-item p {
  padding: 0 18px 18px 38px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #2a1220 0%, #4a1830 46%, #6d1f3c 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.5;
}

.cta-band::before {
  width: 260px;
  height: 260px;
  right: -60px;
  top: -110px;
  background: radial-gradient(circle, rgba(255, 160, 185, 0.6), transparent 68%);
}

.cta-band::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(240, 191, 114, 0.4), transparent 68%);
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.32;
}

.cta-inner p {
  margin-top: 8px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.cta-inner .btn-primary {
  background: #fff;
  color: #8c2144;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6);
}

.site-footer {
  margin-top: clamp(30px, 4vw, 60px);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(30px, 4vw, 48px);
}

.footer-brand p {
  margin-top: 12px;
  max-width: 42ch;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.75;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer-col a {
  color: var(--text-2);
  font-size: 13.5px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 16px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a:hover {
  color: var(--brand);
}

.footer-kw {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  padding-bottom: 18px;
}

.footer-kw a {
  color: inherit;
}

.footer-kw a:hover {
  color: var(--brand);
}

.breadcrumb {
  padding-block: 18px 4px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.page-hero {
  padding-block: clamp(22px, 3vw, 38px) clamp(14px, 2vw, 24px);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.24;
}

.page-hero p {
  margin-top: 12px;
  max-width: 70ch;
  color: var(--text-2);
  font-size: 15px;
}

.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
}

.field select {
  border: 0;
  background: transparent;
  font-size: 13.5px;
  padding-right: 4px;
  color: var(--text);
}

.field select:focus-visible {
  outline: none;
}

.field input[type="search"] {
  width: 190px;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
}

.field input[type="search"]::placeholder {
  color: var(--muted);
}

.field input[type="search"]:focus-visible {
  outline: none;
}

.result-count {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.result-count strong {
  color: var(--brand);
  font-weight: 700;
}

.empty-state {
  padding: 48px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: center;
  color: var(--text-2);
}

.empty-state strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.empty-state p {
  margin-top: 6px;
  font-size: 13.5px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: 10px clamp(18px, 3vw, 30px);
}

.detail-poster {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
  background: var(--surface-3);
  aspect-ratio: 2 / 3;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.detail-poster .poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.detail-kicker {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.detail-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.2;
}

.detail-sub {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15.5px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-chips li {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
}

.meta-chips li.is-score {
  border-color: transparent;
  background: var(--surface-3);
  color: var(--brand);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-stats div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
}

.detail-stats div span {
  color: var(--muted);
  font-size: 12.5px;
}

.prose {
  max-width: 76ch;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.3;
}

.prose h2 + p {
  margin-top: 12px;
}

.prose p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.9;
}

.prose p + p {
  margin-top: 14px;
}

.prose blockquote {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14.5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery-item {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
  aspect-ratio: 16 / 9;
}

.gallery-item.is-portrait {
  aspect-ratio: 9 / 16;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cast-item {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.cast-item strong {
  display: block;
  font-size: 14px;
}

.cast-item span {
  color: var(--muted);
  font-size: 12.5px;
}

.episode-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.episode-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 12.5px;
  padding-bottom: 10px;
}

.episode-table th,
.episode-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.episode-table th {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.episode-table th:nth-child(1) {
  width: 84px;
}

.episode-table th:nth-child(3) {
  width: 118px;
}

.episode-table th:nth-child(4) {
  width: 92px;
}

.episode-table td.num {
  width: 68px;
  color: var(--brand);
  font-weight: 700;
}

.episode-table td.time {
  width: 96px;
  color: var(--muted);
  font-size: 12.5px;
}

.episode-table tbody tr:hover {
  background: var(--surface-2);
}

.notice {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.notice svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: 16px;
}

dialog {
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  width: min(560px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
}

dialog::backdrop {
  background: rgba(18, 10, 14, 0.52);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  font-size: 16px;
  font-weight: 600;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.dialog-close:hover {
  color: var(--brand);
  border-color: var(--brand-2);
}

.dialog-close svg {
  width: 16px;
  height: 16px;
}

.dialog-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  max-height: min(64vh, 600px);
}

.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}

.search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 14.5px;
  padding: 0;
}

.search-field input:focus-visible {
  outline: none;
}

.search-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.fav-list {
  display: grid;
  gap: 8px;
}

.fav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.fav-row img {
  flex: none;
  width: 42px;
  height: 63px;
  border-radius: 8px;
  object-fit: cover;
}

.fav-row .fav-info {
  min-width: 0;
  flex: 1;
}

.fav-row .fav-info strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-row .fav-info span {
  color: var(--muted);
  font-size: 12px;
}

.fav-row button {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.fav-row button:hover {
  color: var(--brand);
  border-color: var(--brand-2);
}

.fav-row svg {
  width: 15px;
  height: 15px;
  margin-inline: auto;
}

.dialog-empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.result-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}

.result-row:hover,
.result-row:focus-visible {
  background: var(--surface-2);
  border-color: var(--line);
}

.result-row img {
  flex: none;
  width: 38px;
  height: 57px;
  border-radius: 7px;
  object-fit: cover;
}

.result-row strong {
  display: block;
  font-size: 14px;
}

.result-row span {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: rgba(24, 14, 19, 0.92);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  color: var(--brand);
}

.to-top svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 1080px) {
  .editor-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-hero {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    order: 3;
  }

  .nav-list {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) - 4px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-2);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 11px 14px;
    border-radius: 10px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .hero-float {
    left: auto;
    right: 10px;
    bottom: -16px;
  }

  .hero-caption .cap-name {
    font-size: 16px;
  }

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

  .stat {
    padding-block: 16px;
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .rank-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-poster {
    width: min(240px, 64vw);
  }

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

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  }

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

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

  .editor-card {
    gap: 14px;
  }

  .editor-thumb,
  .editor-thumb img {
    width: 96px;
    height: 144px;
  }

  .library-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-right {
    width: 100%;
  }

  .field {
    flex: 1;
  }

  .field input[type="search"] {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .editor-grid,
  .feature-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .card-body {
    padding: 9px 10px 11px;
  }

  .card-title {
    font-size: 13.5px;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .hero-float {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .episode-table {
    font-size: 13px;
  }

  .episode-table th:nth-child(4),
  .episode-table td:nth-child(4) {
    display: none;
  }

  .header-actions .icon-btn:nth-child(3) {
    display: none;
  }

  .to-top {
    right: 12px;
    bottom: 14px;
  }
}

@media (max-width: 400px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
