:root {
  --bg-base: #0d0f14;
  --bg-surface: #15181f;
  --bg-elevated: #1d212b;
  --bg-soft: #11141b;
  --accent: #ffb020;
  --accent-hover: #ffc451;
  --accent-soft: rgba(255, 176, 32, 0.14);
  --secondary: #ff4d6d;
  --secondary-soft: rgba(255, 77, 109, 0.14);
  --info: #38d6c0;
  --text-primary: #f3f4f8;
  --text-secondary: #a6adbd;
  --text-muted: #6a7183;
  --border: #262b38;
  --border-subtle: #1c202b;
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-pop: 0 24px 60px -28px rgba(0, 0, 0, 0.95);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.25s;
  --header-h: 64px;
  --container: 1320px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(255, 176, 32, 0.1), transparent 62%),
    radial-gradient(900px 460px at 88% 0%, rgba(255, 77, 109, 0.09), transparent 58%),
    var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #0d0f14;
  font-weight: 700;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 15, 20, 0.86);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--secondary));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -14px rgba(255, 176, 32, 0.9);
}

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

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

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.main-nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.main-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a[aria-current="page"] {
  color: #0d0f14;
  background: var(--accent);
  font-weight: 700;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  transition: border-color var(--dur) var(--ease);
}

.header-search:focus-within {
  border-color: var(--accent);
}

.header-search input {
  width: 168px;
  border: 0;
  background: none;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

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

.header-search button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.header-search svg {
  width: 15px;
  height: 15px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  place-items: center;
  background: var(--bg-surface);
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  padding: 10px 0 16px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 24px;
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 14px;
  color: var(--text-secondary);
}

.mobile-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(255, 176, 32, 0.4);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 4px 24px 12px;
}

.mobile-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}

.mobile-search input:focus {
  border-color: var(--accent);
}

.mobile-search button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #0d0f14;
  font-size: 13.5px;
  font-weight: 700;
}

.hero {
  position: relative;
  padding-top: 26px;
  padding-bottom: 8px;
}

.hero-swiper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-pop);
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block;
  aspect-ratio: 1280 / 560;
  min-height: 320px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(108%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.94) 4%, rgba(9, 11, 15, 0.74) 42%, rgba(9, 11, 15, 0.24) 76%, rgba(9, 11, 15, 0.55) 100%),
    linear-gradient(0deg, rgba(9, 11, 15, 0.9), transparent 58%);
  pointer-events: none;
}

.hero-body {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: min(660px, 92%);
  padding: 30px 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(6px);
}

.chip-accent {
  background: var(--accent);
  border-color: transparent;
  color: #0d0f14;
  font-weight: 700;
}

.chip-live {
  background: var(--secondary);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.hero-title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #0d0f14;
  box-shadow: 0 14px 30px -16px rgba(255, 176, 32, 0.95);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(9, 11, 15, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background var(--dur) var(--ease);
}

.hero-nav:hover {
  background: rgba(255, 176, 32, 0.9);
  color: #0d0f14;
}

.hero-nav svg {
  width: 18px;
  height: 18px;
}

.hero-prev {
  left: 14px;
}

.hero-next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 20px;
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}

.hero-dots button[aria-current="true"] {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 4px;
}

.stat-card {
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-soft));
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.section {
  padding-top: 42px;
  padding-bottom: 6px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(var(--accent), var(--secondary));
}

.section-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.section-more:hover {
  color: var(--accent);
}

.section-more svg {
  width: 14px;
  height: 14px;
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

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

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  background: rgba(9, 11, 15, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(4px);
}

.card-badge.is-new {
  background: var(--secondary);
  border-color: transparent;
}

.card-badge.is-done {
  background: rgba(56, 214, 192, 0.92);
  border-color: transparent;
  color: #06231f;
}

.card-ep {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 9px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(7, 8, 12, 0.94), rgba(7, 8, 12, 0));
}

.card-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(9, 11, 15, 0.42);
  transition: opacity var(--dur) var(--ease);
}

.card-play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #0d0f14;
  transform: scale(0.86);
  transition: transform var(--dur) var(--ease);
}

.card-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  transition: color var(--dur) var(--ease);
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: 0 0 auto;
}

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

  .card:hover .card-play {
    opacity: 1;
  }

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

.board {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--bg-surface), var(--bg-soft));
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.board-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.board-tabs::-webkit-scrollbar {
  display: none;
}

.board-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.board-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: transparent;
  color: #0d0f14;
}

.board-panel {
  display: none;
  min-height: 372px;
}

.board-panel.is-active {
  display: block;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur) var(--ease);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.board-row.is-pending {
  opacity: 0.55;
}

.board-thumb {
  flex: 0 0 auto;
  width: 54px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.board-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.board-ep {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
}

.board-row.is-pending .board-ep {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 26px;
  align-items: start;
}

.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.side-card + .side-card {
  margin-top: 20px;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.side-title {
  font-size: 16px;
  font-weight: 800;
}

.rank-list li + li {
  border-top: 1px solid var(--border-subtle);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.rank-no {
  flex: 0 0 auto;
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  color: var(--text-muted);
}

.rank-list li:nth-child(1) .rank-no {
  color: var(--accent);
}

.rank-list li:nth-child(2) .rank-no {
  color: #d7dce6;
}

.rank-list li:nth-child(3) .rank-no {
  color: #d59a5c;
}

.rank-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.rank-hot {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--info);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.tag:hover {
  color: var(--accent);
  border-color: rgba(255, 176, 32, 0.5);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.genre-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(155deg, var(--bg-surface), var(--bg-soft));
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.genre-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: var(--accent-soft);
}

.genre-name {
  font-size: 14.5px;
  font-weight: 700;
}

.genre-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

@media (hover: hover) {
  .genre-card:hover {
    border-color: rgba(255, 176, 32, 0.55);
    transform: translateY(-2px);
  }
}

.prose-block {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 26px 28px;
}

.prose-block h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.prose-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--accent);
}

.prose-block p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}

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

.prose-block strong {
  color: var(--text-primary);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.link-list a {
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.link-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.faq details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 0 18px;
  transition: border-color var(--dur) var(--ease);
}

.faq details[open] {
  border-color: rgba(255, 176, 32, 0.42);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
}

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

.faq .faq-body {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.breadcrumb {
  padding: 16px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--border);
}

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

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

.page-title-wrap {
  padding: 22px 0 4px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
}

.page-lead {
  margin-top: 8px;
  max-width: 900px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 22px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-right: 2px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.filter-chip.is-active {
  background: var(--accent);
  border-color: transparent;
  color: #0d0f14;
  font-weight: 700;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rank-table thead th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.rank-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.rank-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.rank-table .cell-no {
  width: 54px;
  font-weight: 800;
  font-style: italic;
  color: var(--text-muted);
}

.rank-table tbody tr:nth-child(-n + 3) .cell-no {
  color: var(--accent);
}

.cell-book {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.cell-book > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cell-book img {
  width: 42px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}

.cell-book .name {
  font-weight: 600;
  font-size: 14px;
}

.cell-book .sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  padding: 38px 0 26px;
}

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

.footer-brand p {
  margin-top: 12px;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

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

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

.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #0d0f14;
  box-shadow: 0 16px 34px -18px rgba(255, 176, 32, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

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

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

.empty-state {
  padding: 46px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
}

.wrap-narrow {
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 1199px) {
  .grid-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

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

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

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

  .header-search {
    display: none;
  }

  .hero-slide {
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }

  .hero-body {
    padding: 22px 20px 24px;
    width: 100%;
  }

  .hero-desc {
    -webkit-line-clamp: 2;
  }

  .hero-dots {
    top: 14px;
    bottom: auto;
    right: 14px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 14.5px;
  }

  .container {
    padding: 0 16px;
  }

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

  .card-title {
    font-size: 13px;
    min-height: 38px;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 4px;
  }

  .section-title {
    font-size: 18px;
  }

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

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

  .hero-desc {
    font-size: 13px;
  }

  .hero-actions .btn {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero-nav {
    display: none;
  }

  .board {
    padding: 14px;
  }

  .board-thumb {
    width: 46px;
    height: 62px;
  }

  .prose-block {
    padding: 20px 18px;
  }

  .prose-block h2 {
    font-size: 17px;
  }

  .page-title {
    font-size: 22px;
  }

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

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

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

  .brand-sub {
    display: none;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}
