@charset "utf-8";

:root {
  color-scheme: light;
  --brand: #5b4bff;
  --brand-soft: rgba(91, 75, 255, 0.12);
  --brand-deep: #3a2ee0;
  --accent: #00b8d9;
  --gold: #f5a623;
  --danger: #f0506e;
  --bg: #f4f5fa;
  --bg-glow: radial-gradient(circle at 12% 0%, rgba(91, 75, 255, 0.14), transparent 46%), radial-gradient(circle at 88% 4%, rgba(0, 184, 217, 0.12), transparent 42%);
  --surface: #ffffff;
  --surface-2: #eceef7;
  --surface-3: #e2e6f2;
  --text: #15182b;
  --text-2: #5a6076;
  --text-3: #8d93a8;
  --line: #dfe3ef;
  --shadow-sm: 0 2px 8px rgba(21, 24, 43, 0.06);
  --shadow: 0 12px 32px rgba(21, 24, 43, 0.1);
  --shadow-lg: 0 24px 60px rgba(21, 24, 43, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #7b6bff;
  --brand-soft: rgba(123, 107, 255, 0.18);
  --brand-deep: #a79dff;
  --accent: #22d3ee;
  --gold: #ffc14d;
  --danger: #ff7a94;
  --bg: #06080f;
  --bg-glow: radial-gradient(circle at 10% -6%, rgba(123, 107, 255, 0.22), transparent 44%), radial-gradient(circle at 92% 2%, rgba(34, 211, 238, 0.16), transparent 40%), radial-gradient(circle at 60% 90%, rgba(255, 193, 77, 0.08), transparent 46%);
  --surface: #0f1322;
  --surface-2: #171c2f;
  --surface-3: #1f2539;
  --text: #eef1fb;
  --text-2: #a8afc6;
  --text-3: #767e96;
  --line: #232a40;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.62);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --brand: #7b6bff;
    --brand-soft: rgba(123, 107, 255, 0.18);
    --brand-deep: #a79dff;
    --accent: #22d3ee;
    --gold: #ffc14d;
    --danger: #ff7a94;
    --bg: #06080f;
    --bg-glow: radial-gradient(circle at 10% -6%, rgba(123, 107, 255, 0.22), transparent 44%), radial-gradient(circle at 92% 2%, rgba(34, 211, 238, 0.16), transparent 40%), radial-gradient(circle at 60% 90%, rgba(255, 193, 77, 0.08), transparent 46%);
    --surface: #0f1322;
    --surface-2: #171c2f;
    --surface-3: #1f2539;
    --text: #eef1fb;
    --text-2: #a8afc6;
    --text-3: #767e96;
    --line: #232a40;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.62);
  }
}

*,
*::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;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-glow);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  box-shadow: 0 6px 18px rgba(91, 75, 255, 0.36);
}

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

.brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-2);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-1px);
  color: var(--brand-deep);
  border-color: var(--brand);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn .theme-icon-sun,
:root[data-theme="dark"] .icon-btn .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-btn .theme-icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .icon-btn .theme-icon-moon {
    display: none;
  }

  :root[data-theme="auto"] .icon-btn .theme-icon-sun {
    display: block;
  }
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  padding: 34px 0 8px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 52px 8px 52px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.hero-title {
  font-size: clamp(30px, 3.6vw, 50px);
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, var(--text) 32%, var(--brand-deep) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 38em;
  font-size: 16px;
  color: var(--text-2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 26px rgba(91, 75, 255, 0.34);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(91, 75, 255, 0.44);
}

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

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.hero-stats div {
  min-width: 92px;
}

.hero-stats b {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-deep);
  line-height: 1.2;
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-3);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--surface-2);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 8s linear;
}

.hero-card:hover .hero-media img {
  transform: scale(1.06);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(0, 0, 0, 0) 38%), linear-gradient(0deg, rgba(0, 0, 0, 0.34) 0%, transparent 42%);
  pointer-events: none;
}

.hero-media .hero-tag {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(9, 12, 22, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-media .hero-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34e0a1;
  box-shadow: 0 0 8px #34e0a1;
}

.section {
  padding: 46px 0 6px;
}

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

.section-title {
  position: relative;
  padding-left: 16px;
  font-size: clamp(21px, 2.2vw, 27px);
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

.section-title em {
  font-style: normal;
  color: var(--brand-deep);
}

.section-desc {
  margin-top: 8px;
  padding-left: 16px;
  max-width: 62em;
  font-size: 14px;
  color: var(--text-2);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
  transition: gap 0.2s var(--ease), background-color 0.2s var(--ease);
}

.section-more:hover {
  gap: 12px;
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.18s var(--ease);
}

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

.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(91, 75, 255, 0.3);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 22px;
}

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

.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 52%, var(--line));
  box-shadow: var(--shadow);
}

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

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.07);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0) 46%, rgba(6, 8, 15, 0.78) 100%);
  opacity: 0.94;
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(9, 12, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  backdrop-filter: blur(6px);
}

.card-badge.is-new {
  background: linear-gradient(135deg, #ff5f6d, #ff8a3d);
  border-color: transparent;
}

.card-score {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #1a1204;
  background: linear-gradient(135deg, #ffdd7a, var(--gold));
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.36);
}

.card-ep {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(9, 12, 22, 0.72);
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}

.card-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--text-3);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 6px;
  white-space: nowrap;
}

.card-summary {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.card-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-deep);
}

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.18s var(--ease);
}

.sub-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.sub-btn:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
}

.sub-btn.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
}

.sub-btn.is-on svg {
  fill: currentColor;
}

.rank-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 10px 26px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-no {
  flex-shrink: 0;
  width: 26px;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  text-align: center;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.rank-item:nth-child(1) .rank-no {
  color: #ff5f6d;
}

.rank-item:nth-child(2) .rank-no {
  color: #ff9a3d;
}

.rank-item:nth-child(3) .rank-no {
  color: #ffc14d;
}

.rank-thumb {
  display: block;
  flex-shrink: 0;
  width: 56px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
}

.rank-thumb img {
  width: 56px;
  height: 75px;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.rank-item:hover .rank-thumb img {
  transform: scale(1.08);
}

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

.rank-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item:hover .rank-name {
  color: var(--brand-deep);
}

.rank-sub {
  font-size: 12.5px;
  color: var(--text-3);
}

.rank-heat {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.update-item:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}

.update-thumb {
  display: block;
  flex-shrink: 0;
  width: 74px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-2);
}

.update-thumb img {
  width: 74px;
  height: 99px;
  object-fit: cover;
}

.update-body {
  min-width: 0;
  flex: 1;
}

.update-name {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-desc {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-ep {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.wide-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.wide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.wide-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.wide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.wide-card:hover .wide-media img {
  transform: scale(1.06);
}

.wide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0) 34%, rgba(6, 8, 15, 0.82) 100%);
  pointer-events: none;
}

.wide-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #10131f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: scale(0.86);
  opacity: 0;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.wide-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

.wide-card:hover .wide-play,
.wide-card:focus-visible .wide-play {
  opacity: 1;
  transform: scale(1);
}

.wide-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px;
  color: #fff;
}

.wide-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.wide-desc {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.chip {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.18s var(--ease);
}

.chip:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

.chip.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 20px rgba(91, 75, 255, 0.28);
}

.chip b {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.article-box {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.article-box h2 {
  margin-top: 34px;
  font-size: 22px;
}

.article-box h2:first-child {
  margin-top: 0;
}

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

.article-box code {
  padding: 2px 6px;
  font-size: 13.5px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--brand-deep);
  background: var(--surface-2);
  border-radius: 5px;
}

.article-box a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-box h3 {
  margin-top: 26px;
  font-size: 19px;
}

.article-box h3:first-child {
  margin-top: 0;
}

.article-box p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.92;
  color: var(--text-2);
  text-align: justify;
}

.article-box strong {
  color: var(--text);
  font-weight: 800;
}

.article-box ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.article-box ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

.article-box ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 4px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
}

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

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

.faq summary::after {
  content: "+";
  margin-left: auto;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-deep);
  transition: transform 0.24s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

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

.still-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.still {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.still img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.still:hover img {
  transform: scale(1.06);
}

.still figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 15, 0.8));
}

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}

.notice svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--brand-deep);
  stroke-width: 2;
  stroke-linecap: round;
}

.notice p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.notice b {
  color: var(--text);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-field {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  stroke-linecap: round;
}

.search-field input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.search-field input::placeholder {
  color: var(--text-3);
}

.search-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}

.result-count {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.empty-tip {
  padding: 56px 20px;
  text-align: center;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 13.5px;
  color: var(--text-3);
}

.breadcrumb a {
  color: var(--text-2);
}

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

.breadcrumb span {
  color: var(--text-3);
}

.page-hero {
  padding: 26px 0 8px;
}

.page-title {
  font-size: clamp(25px, 3vw, 36px);
}

.page-desc {
  margin-top: 10px;
  max-width: 66em;
  font-size: 15.5px;
  color: var(--text-2);
}

.site-footer {
  margin-top: 68px;
  padding: 52px 0 26px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

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

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}

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

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

.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--text-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.26s var(--ease);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(6, 8, 15, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-inner {
  padding: 26px;
}

.dialog-title {
  font-size: 19px;
  font-weight: 800;
}

.dialog-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.dialog-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-height: 46vh;
  overflow-y: auto;
}

.dialog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  font-size: 14px;
  background: var(--surface-2);
  border-radius: 10px;
}

.dialog-row b {
  font-weight: 800;
}

.dialog-row small {
  color: var(--text-3);
}

[hidden] {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 38px 30px 34px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero-media::after {
    background: linear-gradient(0deg, var(--surface) 0%, rgba(0, 0, 0, 0) 46%), linear-gradient(180deg, rgba(6, 8, 15, 0.5), transparent 40%);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav-wrap {
    gap: 14px;
    position: relative;
  }

  .nav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s var(--ease), padding 0.28s var(--ease), border-width 0.28s var(--ease);
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    z-index: 120;
  }

  .nav-list.is-open {
    max-height: 420px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-width: 1px;
    overflow-y: auto;
  }

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

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

  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px 12px 14px;
  }

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

  .rank-wrap {
    padding: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .article-box {
    padding: 22px 20px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-text {
    padding: 28px 20px 26px;
    gap: 16px;
  }

  .hero-title {
    font-size: 27px;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stats b {
    font-size: 20px;
  }

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

  .section {
    padding-top: 34px;
  }

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

  .update-list {
    grid-template-columns: 1fr;
  }

  .wide-grid {
    grid-template-columns: 1fr;
  }

  .rank-thumb {
    width: 48px;
  }

  .rank-thumb img {
    width: 48px;
    height: 64px;
  }

  .to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

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