:root {
  --font-ui: "Bahnschrift", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --max-width: 1180px;
  --radius-xxl: 30px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-panel: 0 24px 70px rgba(17, 31, 49, 0.12);
  --shadow-card: 0 18px 44px rgba(17, 31, 49, 0.1);
  --shadow-hover: 0 24px 52px rgba(17, 31, 49, 0.16);
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --page-bg:
    radial-gradient(circle at 10% 8%, rgba(245, 169, 92, 0.16), transparent 25%),
    radial-gradient(circle at 90% 4%, rgba(67, 128, 173, 0.15), transparent 20%),
    linear-gradient(180deg, #f8f3ea 0%, #f2ece3 48%, #ece5da 100%);
  --surface: #f7f2ea;
  --surface-strong: rgba(255, 255, 255, 0.78);
  --surface-panel: rgba(255, 255, 255, 0.92);
  --surface-solid: #fffdfa;
  --surface-muted: #efe7dc;
  --surface-chip: rgba(255, 255, 255, 0.54);
  --text-primary: #172434;
  --text-secondary: rgba(23, 36, 52, 0.75);
  --text-muted: rgba(23, 36, 52, 0.52);
  --border-soft: rgba(23, 36, 52, 0.1);
  --border-strong: rgba(23, 36, 52, 0.16);
  --accent: #f08b45;
  --accent-strong: #da6a25;
  --accent-alt: #2c748e;
  --success: #0e9a75;
  --accent-soft: rgba(240, 139, 69, 0.12);
  --accent-alt-soft: rgba(44, 116, 142, 0.12);
  --panel-glow:
    radial-gradient(circle at 0 0, rgba(255, 193, 126, 0.25), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(63, 128, 168, 0.18), transparent 24%);
  --theme-sweep-light: linear-gradient(135deg, #fbf6ee 0%, #eef1f4 42%, #f2e2cf 100%);
  --theme-sweep-dark: linear-gradient(135deg, #121a24 0%, #101720 42%, #0a1017 100%);
}

body[data-theme="dark"] {
  --page-bg:
    radial-gradient(circle at 8% 10%, rgba(240, 139, 69, 0.12), transparent 22%),
    radial-gradient(circle at 90% 4%, rgba(69, 149, 177, 0.12), transparent 18%),
    linear-gradient(180deg, #111821 0%, #0d131b 48%, #091018 100%);
  --surface: #0f151d;
  --surface-strong: rgba(20, 27, 36, 0.8);
  --surface-panel: rgba(19, 26, 35, 0.94);
  --surface-solid: #141c25;
  --surface-muted: #1a2531;
  --surface-chip: rgba(255, 255, 255, 0.06);
  --text-primary: #f2f5f9;
  --text-secondary: rgba(242, 245, 249, 0.76);
  --text-muted: rgba(242, 245, 249, 0.54);
  --border-soft: rgba(242, 245, 249, 0.1);
  --border-strong: rgba(242, 245, 249, 0.17);
  --accent: #f2a35d;
  --accent-strong: #ff7f3f;
  --accent-alt: #62bfd3;
  --success: #35c6a0;
  --accent-soft: rgba(242, 163, 93, 0.14);
  --accent-alt-soft: rgba(98, 191, 211, 0.14);
  --shadow-panel: 0 26px 76px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.22);
  --shadow-hover: 0 28px 58px rgba(0, 0, 0, 0.3);
  --panel-glow:
    radial-gradient(circle at 0 0, rgba(242, 163, 93, 0.12), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(98, 191, 211, 0.12), transparent 24%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--page-bg);
  transition: background 0.45s ease, color 0.3s ease;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

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

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

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

[hidden] {
  display: none !important;
}

.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;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.ambient,
.grid-noise,
.theme-sweep {
  position: fixed;
  pointer-events: none;
}

.ambient {
  z-index: 0;
  border-radius: 999px;
  filter: blur(16px);
}

.ambient--warm {
  top: 80px;
  right: -110px;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(240, 139, 69, 0.18), rgba(240, 139, 69, 0));
}

.ambient--cool {
  left: -120px;
  bottom: 120px;
  width: 360px;
  height: 360px;
  background: linear-gradient(135deg, rgba(44, 116, 142, 0.18), rgba(44, 116, 142, 0));
}

.grid-noise {
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.75), transparent 78%);
}

.theme-sweep {
  inset: 0;
  z-index: 70;
  opacity: 0;
  background: var(--theme-sweep-dark);
  clip-path: circle(0 at 0% 100%);
}

.theme-sweep.is-active {
  animation: themeSweep 760ms var(--ease-standard) forwards;
}

@keyframes themeSweep {
  0% {
    opacity: 1;
    clip-path: circle(0 at 0% 100%);
  }
  40% {
    opacity: 1;
    clip-path: circle(60% at 20% 80%);
  }
  100% {
    opacity: 0;
    clip-path: circle(155% at 100% 0%);
  }
}

.site-header,
.hero-section,
.content-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 18px 0 10px;
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(18, 30, 44, 0.72), rgba(10, 17, 25, 0.78));
  backdrop-filter: blur(24px);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.header-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(240, 139, 69, 0.12), transparent 24%),
    radial-gradient(circle at 100% 0, rgba(44, 116, 142, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 52%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(44, 116, 142, 0.38), rgba(240, 139, 69, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-copy strong {
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(53, 198, 160, 0.12);
}

.main-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.nav-link {
  min-width: 92px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    background 0.24s ease,
    color 0.24s ease,
    transform 0.24s var(--ease-standard),
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.nav-link:hover {
  color: #f5f8fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: #f5f8fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.header-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.action-btn,
.theme-toggle,
.search-form button,
.tab-btn,
.ranking-card,
.actor-card {
  transition:
    transform 0.26s var(--ease-standard),
    box-shadow 0.26s var(--ease-standard),
    border-color 0.26s ease,
    background 0.26s ease,
    color 0.26s ease;
}

.action-btn:hover,
.theme-toggle:hover,
.search-form button:hover {
  transform: translateY(-2px);
}

.action-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.action-btn--ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.action-btn--primary,
.search-form button {
  color: #fff9f2;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(218, 106, 37, 0.25);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-toggle__track {
  position: relative;
  width: 20px;
  height: 20px;
}

.theme-icon {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.theme-icon--sun {
  left: 0;
}

.theme-icon--moon {
  right: 0;
}

body[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 36, 52, 0.08);
}

body[data-theme="light"] .theme-icon--sun {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

body[data-theme="light"] .theme-icon--moon {
  opacity: 0.34;
  transform: translateY(-50%) scale(0.86);
}

body[data-theme="dark"] .theme-icon--sun {
  opacity: 0.34;
  transform: translateY(-50%) scale(0.86);
}

body[data-theme="dark"] .theme-icon--moon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.hero-section {
  padding: 28px 0 18px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.search-panel,
.ranking-card,
.actor-card,
.footer-shell {
  border: 1px solid var(--border-soft);
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-panel);
}

.hero-copy,
.search-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xxl);
}

.hero-copy::before,
.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--panel-glow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.eyebrow,
.panel-badge,
.section-kicker,
.drawer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  background: var(--accent-alt-soft);
  color: var(--accent-alt);
}

.panel-badge,
.drawer-badge {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero-copy h1 {
  position: relative;
  margin: 0;
  max-width: none;
  font-family: var(--font-ui);
  font-size: clamp(2.1rem, 3.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-description {
  position: relative;
  margin: 0;
  max-width: 54ch;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.72;
}

.hero-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.hero-metric {
  padding: 14px 14px 15px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.16);
}

.hero-metric span {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-metric strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.4;
}

.hero-metric p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.58;
}

.search-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.panel-heading {
  position: relative;
}

.panel-heading h3 {
  margin: 12px 0 0;
  font-family: var(--font-ui);
  font-size: 1.18rem;
  line-height: 1.2;
}

.panel-heading p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-form__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface-muted);
}

.search-form__icon svg {
  width: 18px;
  height: 18px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 0.94rem;
}

.search-form input::placeholder {
  color: var(--text-muted);
}

.search-form button {
  min-width: 112px;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

.hot-keywords {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.hot-keywords > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.86rem;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-chip {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.keyword-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.03);
}

.keyword-chip:hover {
  border-color: rgba(240, 139, 69, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #f5f8fb;
  transform: translateY(-1px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.stat-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--surface-solid);
}

.stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 1.1rem;
}

.content-section {
  padding: 28px 0;
}

.subpage-hero {
  padding: 26px 0 10px;
}

.subpage-hero__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(15, 24, 38, 0.94), rgba(10, 18, 30, 0.92));
  box-shadow: var(--shadow-soft);
}

.subpage-hero__inner h1 {
  margin: 6px 0 0;
  font-family: var(--font-ui);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.subpage-hero__desc {
  margin: 12px 0 0;
  max-width: 44rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.subpage-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.subpage-pill {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.subpage-pill span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.subpage-pill strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 1.12rem;
}

.section-head--filter,
.section-head--latest-page {
  align-items: center;
}

.filter-head__title,
.latest-head__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-head__title h2,
.latest-head__title h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.filter-head__count,
.latest-head__count {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.section-note--filter {
  max-width: 48rem;
  text-align: right;
}

.filter-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.filter-panel,
.filter-results-shell {
  border-radius: 26px;
  border: 1px solid var(--border-soft);
  background: var(--surface-panel);
  box-shadow: var(--shadow-soft);
}

.filter-panel {
  padding: 18px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.filter-scene-tabs,
.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}

.filter-search input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.filter-search button {
  min-width: 82px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #20c6ae, #18a798);
  color: #f5fbff;
  font-weight: 800;
}

.filter-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.filter-group-card {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
}

.filter-group-card__head h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
}

.filter-chip strong {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.filter-chip.is-active {
  color: #f5fbff;
  background: linear-gradient(135deg, rgba(32, 198, 174, 0.28), rgba(24, 167, 152, 0.22));
  border-color: rgba(32, 198, 174, 0.38);
}

.filter-actions {
  margin-top: 16px;
}

.filter-actions .action-btn {
  width: 100%;
}

.filter-results-shell {
  padding: 18px;
}

.filter-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-results-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}

.section-note--filter-inline {
  margin: 10px 0 0;
  text-align: left;
  max-width: 40rem;
}

.filter-results-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-ui);
  font-size: 1.4rem;
}

.filter-results-head span,
.latest-meta p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.ranking-grid--filter,
.ranking-grid--latest {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head--ranking {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 16px;
}

.section-head--actors {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 16px;
}

.actor-head__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.actor-head__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.actor-head__title h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.06;
}

.actor-head__count {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.actor-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.actor-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.actor-view-toggle__btn.is-active {
  color: #f5f8fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.actor-head__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.actor-head__subline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 34rem;
}

.ranking-head__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ranking-head__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ranking-head__title h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.06;
}

.ranking-head__count {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-note {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-head__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.ranking-head__subline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 34rem;
}

.section-note--ranking {
  max-width: 46rem;
  margin: 0;
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-note--actor {
  max-width: 46rem;
  margin: 0;
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-strip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
  min-width: 0;
  justify-content: flex-end;
  overflow-x: auto;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.tab-strip::-webkit-scrollbar,
.footer-nav::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar,
.search-drawer__body::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.tab-strip::-webkit-scrollbar-thumb,
.footer-nav::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb,
.search-drawer__body::-webkit-scrollbar-thumb {
  background: rgba(240, 139, 69, 0.28);
  border-radius: 999px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 82px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tab-btn.is-active {
  color: #f5f8fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.ranking-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.ranking-pagination__controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 245, 249, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.ranking-pagination__btn.is-active {
  color: #f5fbff;
  background: linear-gradient(135deg, #20c6ae, #18a798);
  box-shadow: 0 10px 22px rgba(24, 167, 152, 0.24);
}

.ranking-pagination__btn--next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline: 14px 12px;
}

.ranking-pagination__btn--next svg {
  width: 14px;
  height: 14px;
}

.ranking-pagination__ellipsis {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 245, 249, 0.72);
  font-size: 1rem;
  font-weight: 700;
}

.ranking-pagination__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.ranking-card,
.actor-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  text-align: left;
}

.ranking-card:hover,
.actor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 139, 69, 0.22);
  box-shadow: var(--shadow-hover);
}

.ranking-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  align-self: start;
}

.ranking-card__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 11, 16, 0.22)),
    linear-gradient(145deg, var(--poster-start), var(--poster-end));
}

.ranking-card__poster-image,
.drawer-hero__poster-image,
.drawer-hero__avatar-image,
.actor-card__avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-card__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}

.ranking-card__poster-score {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  min-width: 0;
  padding: 8px 12px 9px 14px;
  border-radius: 0 24px 0 18px;
  background:
    linear-gradient(135deg, rgba(17, 30, 48, 0.96), rgba(47, 82, 102, 0.9));
  color: #fffaf4;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.ranking-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 13px 13px 14px;
}

.ranking-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ranking-card__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.32;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-card__title-episode {
  flex: none;
  padding: 0;
  color: #f0c291;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.drawer-chip-list,
.drawer-work-meta,
.drawer-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-work-meta span,
.drawer-related span {
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--surface-chip);
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.ranking-card__info-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.ranking-card__genre {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.ranking-card__genre .ranking-card__meta-icon {
  color: var(--accent-alt);
}

.ranking-card__genre span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card__heatline {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.ranking-card__meta-icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.ranking-card__heatline .ranking-card__meta-icon {
  color: var(--accent);
}

.ranking-card__actors .ranking-card__meta-icon {
  color: var(--accent-alt);
}

.ranking-card__desc,
.actor-card__bio,
.drawer-section p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.68;
}

.ranking-card__desc,
.actor-card__bio {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.ranking-card__actors {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.6;
  overflow: hidden;
}

.ranking-card__actors-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card__actors-score {
  flex: none;
  color: var(--text-muted);
  white-space: nowrap;
}

.actor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.actor-card {
  display: block;
  min-height: 0;
  padding: 10px;
  background: var(--surface-strong);
}

.actor-card__frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 258px;
  padding: 16px;
  border-radius: 22px;
  border: 2px dashed var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
}

.actor-card__avatar {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--avatar-start), var(--avatar-end));
  color: rgba(255, 248, 242, 0.92);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.16),
    0 0 0 4px rgba(255, 255, 255, 0.05),
    0 0 28px rgba(95, 178, 255, 0.18);
}

.actor-card__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 64%);
}

.actor-card__avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(103, 197, 255, 0.18), transparent 68%);
  z-index: 0;
}

.actor-card__avatar svg {
  position: relative;
  width: 64px;
  height: 64px;
}

.actor-card__avatar span {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 800;
}

.actor-card__avatar-image {
  z-index: 1;
  border-radius: 999px;
}

.actor-card__top {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.actor-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.actor-card__heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding-top: 4px;
}

.actor-card__rank {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.actor-card__bio {
  -webkit-line-clamp: 3;
  font-size: 0.72rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
}

.actor-card__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actor-statline {
  margin: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.actor-statline--primary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.actor-statline--secondary {
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

.actor-statline--secondary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-footer {
  padding: 24px 0 34px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
}

.footer-shell p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--text-secondary);
}

.footer-nav span {
  display: none;
}

.footer-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-chip);
  font-size: 0.84rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 13, 18, 0.44);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.search-drawer,
.detail-drawer {
  position: fixed;
  top: 12px;
  bottom: 12px;
  z-index: 90;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  background: var(--surface-panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
  transition: transform 0.42s var(--ease-standard);
}

.search-drawer {
  left: 12px;
  width: min(590px, calc((100vw - 36px) / 2));
  transform: translateX(calc(-100% - 24px));
}

.search-drawer.is-open {
  transform: translateX(0);
}

.detail-drawer {
  right: 12px;
  width: min(590px, calc((100vw - 36px) / 2));
  transform: translateX(calc(100% + 24px));
}

.detail-drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--surface-solid);
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.search-drawer__body,
.drawer-body {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.search-drawer__layout,
.drawer-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  color: #fffaf4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 10, 14, 0.2)),
    linear-gradient(145deg, var(--hero-start), var(--hero-end));
}

.drawer-hero--actor {
  padding: 16px 22px 18px;
}

.drawer-hero::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -56px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.drawer-hero__top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.drawer-hero__poster,
.drawer-hero__avatar {
  position: relative;
  flex: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.drawer-hero__poster {
  width: 128px;
  aspect-ratio: 0.72;
  border-radius: 20px;
}

.drawer-hero__poster--show {
  width: 132px;
  border-radius: 22px;
  box-shadow: 0 20px 38px rgba(14, 22, 34, 0.28);
}

.drawer-hero__avatar {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  font-family: var(--font-ui);
  font-size: 1.64rem;
}

.drawer-hero__top--actor {
  align-items: flex-start;
}

.drawer-hero__avatar--round {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(8, 14, 24, 0.22);
}

.drawer-hero__poster::before,
.drawer-hero__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 64%);
}

.drawer-hero__poster > span:not(.drawer-hero__poster-score),
.drawer-hero__avatar span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 1.25rem;
}

.drawer-hero__avatar--round::before,
.drawer-hero__avatar--round span {
  display: none;
}

.drawer-work--button {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.drawer-work--button:disabled {
  cursor: default;
  opacity: 0.7;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: var(--surface-solid);
  color: var(--text-secondary);
  text-align: center;
}

.search-drawer__hero {
  padding: 24px;
}

.search-drawer__hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.search-drawer__hero-copy h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.12;
}

.search-drawer__hero-copy p {
  margin: 0;
  color: rgba(255, 248, 239, 0.82);
}

.search-drawer__chip-list {
  margin-top: 0;
}

.search-results-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-results-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-results-panel__head h4 {
  margin: 0;
}

.search-results-panel__head span {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: right;
}

.search-results-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.search-results-tab {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--surface-muted);
  text-align: left;
  transition: transform 0.24s var(--ease-standard), border-color 0.24s ease, box-shadow 0.24s ease;
}

.search-results-tab span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.search-results-tab strong {
  font-family: var(--font-ui);
  font-size: 1.08rem;
}

.search-results-tab.is-active {
  border-color: rgba(223, 165, 87, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface-solid);
  box-shadow: 0 18px 36px rgba(10, 18, 30, 0.12);
}

.search-results-list {
  display: grid;
  gap: 12px;
}

.search-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface-muted);
  text-align: left;
  transition: transform 0.24s var(--ease-standard), border-color 0.24s ease, box-shadow 0.24s ease;
}

.search-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 161, 93, 0.36);
  box-shadow: 0 18px 36px rgba(10, 18, 30, 0.14);
}

.search-result-card:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.search-result-card__media {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.search-result-card__thumb {
  position: relative;
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--result-start), var(--result-end));
  box-shadow: 0 16px 34px rgba(8, 14, 24, 0.18);
}

.search-result-card--actor .search-result-card__thumb {
  aspect-ratio: 1;
  border-radius: 22px;
}

.search-result-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.28), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 64%);
}

.search-result-card__thumb span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  color: #fffaf4;
  font-family: var(--font-ui);
  font-size: 1rem;
}

.search-result-card__thumb-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.search-result-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-card__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-result-card__type,
.search-result-card__badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.search-result-card__type {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.search-result-card__badge {
  background: rgba(223, 165, 87, 0.16);
  color: var(--accent);
}

.search-result-card__title {
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-card__meta,
.search-result-card__desc {
  margin: 0;
  color: var(--text-secondary);
}

.search-result-card__meta {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-card__desc {
  display: -webkit-box;
  line-height: 1.66;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-result-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
}

.search-result-card__cta {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-results-stream {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(223, 165, 87, 0.32);
  background: rgba(223, 165, 87, 0.08);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.search-results-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-results-empty strong {
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.search-results-empty p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.search-drawer__keywords {
  margin-top: 2px;
}

.drawer-hero__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.drawer-hero__copy--show {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding-top: 6px;
}

.drawer-hero__copy h3 {
  margin: 14px 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-hero__copy--show h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
  line-height: 1.12;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.drawer-hero__copy p {
  margin: 12px 0 0;
  color: rgba(255, 250, 244, 0.84);
  line-height: 1.68;
}

.drawer-show-meta {
  margin: 0;
  color: rgba(255, 244, 232, 0.66);
  font-size: 0.98rem;
  line-height: 1.5;
}

.drawer-hero__copy--actor {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drawer-actor-kicker {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 250, 244, 0.84);
}

.drawer-actor-summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.drawer-actor-summary__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-actor-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-actor-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.drawer-actor-namebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-actor-namebar h3 {
  margin: 0;
  min-width: 0;
}

.drawer-actor-rankpill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 250, 244, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.drawer-chip-list--actor {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0;
}

.drawer-actor-intro {
  margin: 0;
  color: rgba(255, 250, 244, 0.88);
  font-size: 0.9rem;
  line-height: 1.52;
}

.drawer-chip-list {
  margin-top: 16px;
}

.drawer-chip-list--show {
  margin-top: 0;
  gap: 12px;
}

.drawer-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 800;
}

.drawer-chip--show {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 250, 244, 0.94);
  font-size: 0.92rem;
  font-weight: 700;
}

.drawer-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 240, 220, 0.92);
  line-height: 1;
}

.drawer-chip__icon-svg {
  width: 16px;
  height: 16px;
  display: block;
}

.drawer-hero__poster .drawer-hero__poster-score {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  margin: 0;
  border-radius: 0 22px 0 14px;
  background: linear-gradient(180deg, rgba(15, 21, 32, 0.92), rgba(27, 37, 53, 0.88));
  border: 0;
  box-shadow: none;
  color: #fffaf4;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.drawer-section {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: var(--surface-solid);
}

.drawer-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.drawer-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.drawer-metric {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  min-width: 0;
}

.drawer-metric span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.drawer-metric strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-list,
.drawer-work-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.drawer-list__item,
.drawer-work {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
  min-width: 0;
  overflow: hidden;
}

.drawer-list__item strong,
.drawer-work strong {
  font-size: 0.92rem;
  flex: none;
  max-width: 92px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-list__item span,
.drawer-work p {
  color: var(--text-secondary);
  text-align: right;
}

.drawer-list__item span {
  min-width: 0;
  flex: 1;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-work {
  flex-direction: column;
  gap: 10px;
}

.drawer-work p {
  margin: 0;
  text-align: left;
  line-height: 1.64;
}

.drawer-work--series {
  padding: 14px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface-muted);
  transition: transform 0.24s var(--ease-standard), border-color 0.24s ease, box-shadow 0.24s ease;
}

.drawer-work--series:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(214, 161, 93, 0.36);
  box-shadow: 0 18px 36px rgba(10, 18, 30, 0.14);
}

.drawer-work__media {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.drawer-work__thumb {
  position: relative;
  aspect-ratio: 0.72;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(64, 82, 104, 0.9), rgba(34, 50, 74, 0.95));
}

.drawer-work__thumb-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.drawer-work__copy {
  min-width: 0;
}

.drawer-work__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.drawer-work .drawer-work__title {
  flex: 1;
  max-width: none;
  display: -webkit-box;
  font-size: 0.98rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-work__footer {
  display: block;
}

.drawer-work__desc {
  color: var(--text-secondary);
  display: block;
  line-height: 1.72;
}

.drawer-work__desc-line {
  display: block;
}

.drawer-work__desc-line--split {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.drawer-work__desc-line-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-work__expand {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  background: none;
  color: #a9c9ff;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.drawer-work--series.is-expanded .drawer-work__expand {
  display: inline-flex;
  margin-top: 8px;
  margin-left: auto;
}

@media (max-width: 720px) {
  .drawer-actor-summary {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
  }

  .drawer-actor-namebar {
    align-items: flex-start;
    gap: 10px;
  }

  .drawer-work__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-results-tab {
    padding: 12px 14px;
  }

  .search-result-card__media {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .search-result-card__eyebrow,
  .search-results-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(9, 13, 18, 0.88);
  color: #fffaf4;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, 120%);
  opacity: 0;
  transition: transform 0.28s var(--ease-standard), opacity 0.28s ease;
  pointer-events: none;
  text-align: center;
}

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

.is-highlighted {
  outline: 2px solid rgba(240, 139, 69, 0.56);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .search-drawer {
    width: min(590px, calc((100vw - 36px) / 2));
  }

  .detail-drawer {
    width: min(590px, calc((100vw - 36px) / 2));
  }
}

@media (max-width: 980px) {
  .search-drawer,
  .detail-drawer {
    top: 0;
    bottom: 0;
    width: min(100vw, 100%);
  }

  .search-drawer {
    left: 0;
    border-radius: 0 28px 28px 0;
  }

  .detail-drawer {
    right: 0;
    border-radius: 28px 0 0 28px;
  }

  .header-shell {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    border-radius: 28px;
  }

  .brand {
    grid-area: brand;
  }

  .main-nav {
    grid-area: nav;
    justify-self: start;
    margin-top: 4px;
  }

  .header-actions {
    grid-area: actions;
    justify-self: end;
    padding-left: 0;
    border-left: 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

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

  .section-note {
    text-align: left;
    white-space: normal;
    overflow: visible;
  }

  .section-head--ranking {
    gap: 14px;
  }

  .section-head--actors,
  .section-head--ranking {
    gap: 12px;
  }

  .ranking-head__topline,
  .actor-head__topline {
    width: 100%;
    flex-direction: column;
    align-items: center;
    align-items: flex-start;
  }

  .ranking-head__meta,
  .actor-head__meta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-note--actor {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .tab-strip {
    justify-content: flex-start;
  }

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

  .ranking-pagination {
    justify-content: flex-start;
  }

  .ranking-pagination__controls {
    justify-content: flex-start;
  }

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

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 14px;
  }

  .header-shell {
    padding: 14px;
  }

  .brand-subtitle {
    white-space: normal;
  }

  .brand {
    padding: 0;
    background: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .header-cta-group {
    flex-wrap: wrap;
  }

  .hero-copy,
  .search-panel {
    padding: 24px;
  }

  .ranking-head__title,
  .actor-head__title {
    flex-wrap: wrap;
    gap: 10px;
  }

  .section-note--ranking,
  .actor-view-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .section-note--actor {
    text-align: left;
    white-space: normal;
    overflow: visible;
  }

  .tab-strip {
    width: 100%;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .hero-metrics,
  .stats-grid,
  .drawer-metrics {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .subpage-hero__inner,
  .filter-shell {
    grid-template-columns: 1fr;
  }

  .subpage-hero__inner {
    display: grid;
  }

  .subpage-hero__meta {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel {
    position: static;
  }

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

  .search-form__icon {
    display: none;
  }

  .search-form button {
    width: 100%;
  }

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

  .ranking-pagination {
    margin-top: 18px;
  }

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

  .search-results-tabs {
    grid-template-columns: 1fr;
  }

  .search-drawer {
    top: 0;
    left: 0;
    bottom: 0;
    width: min(100vw, 100%);
    border-radius: 0 28px 28px 0;
  }

  .detail-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100vw, 100%);
    border-radius: 28px 0 0 28px;
  }

  .drawer-hero__top {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, var(--max-width));
  }

  .header-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-cta-group {
    flex: 1;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .action-btn {
    height: 40px;
    padding-inline: 14px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .ranking-grid,
  .actor-grid {
    grid-template-columns: 1fr;
  }

  .subpage-hero__meta,
  .ranking-grid--filter,
  .ranking-grid--latest {
    grid-template-columns: 1fr;
  }

  .filter-search {
    grid-template-columns: 1fr;
  }

  .ranking-pagination__controls {
    gap: 6px;
  }

  .ranking-pagination__btn {
    min-width: 34px;
    height: 36px;
    padding-inline: 10px;
    font-size: 0.76rem;
  }

  .ranking-pagination__ellipsis {
    width: 34px;
    height: 36px;
  }

  .ranking-card {
    min-height: 0;
  }

  .search-drawer {
    border-radius: 0 24px 24px 0;
  }

  .detail-drawer {
    border-radius: 24px 0 0 24px;
  }

  .search-drawer__body,
  .drawer-body {
    padding: 18px;
  }

  .footer-shell {
    padding: 16px;
  }
}
