:root {
  --bg: #0d0f14;
  --bg-soft: #12151c;
  --surface: #171b24;
  --surface-2: #1d222d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #edeff4;
  --text-dim: #a3adbd;
  --text-mute: #76808f;
  --gold: #f5a524;
  --gold-deep: #d98810;
  --gold-soft: rgba(245, 165, 36, 0.14);
  --coral: #ff6b4a;
  --green: #35c17f;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  --sidebar-w: 238px;
  --maxw: 1420px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: radial-gradient(1200px 620px at 78% -8%, rgba(245, 165, 36, 0.13), transparent 62%),
    radial-gradient(900px 520px at 6% 4%, rgba(255, 107, 74, 0.09), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 0;
}

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

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

input {
  font-family: inherit;
  font-size: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 999;
  padding: 10px 18px;
  background: var(--gold);
  color: #171206;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top 0.24s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #171206;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(150deg, #ffca54, var(--gold-deep));
  color: #201503;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(245, 165, 36, 0.28);
}

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

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

.search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 460px;
  height: 38px;
  padding: 0 4px 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.search:focus-within {
  border-color: rgba(245, 165, 36, 0.55);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.12);
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
  font-size: 13.5px;
}

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

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.search button:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.search button svg {
  width: 16px;
  height: 16px;
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}

.ghost-btn svg {
  width: 15px;
  height: 15px;
}

.ghost-btn:hover {
  color: var(--gold);
  border-color: rgba(245, 165, 36, 0.45);
  background: var(--gold-soft);
}

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--coral), #d4402a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.22);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--gold);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 26px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 60px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(29, 34, 45, 0.9), rgba(23, 27, 36, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.sidebar-head {
  padding: 0 6px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  transition: all 0.2s var(--ease);
}

.side-nav a i {
  font-style: normal;
  font-size: 11px;
  color: rgba(245, 165, 36, 0.55);
  transition: transform 0.2s var(--ease);
}

.side-nav a:hover,
.side-nav a.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(245, 165, 36, 0.18), rgba(245, 165, 36, 0.02));
}

.side-nav a:hover i,
.side-nav a.is-active i {
  color: var(--gold);
  transform: translateX(2px);
}

.side-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 0 3px 3px 0;
  background: var(--gold);
}

.sidebar-tip {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(245, 165, 36, 0.07);
  border: 1px dashed rgba(245, 165, 36, 0.28);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

.sidebar-tip .tip-title {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.main {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
}

.intro {
  position: relative;
  padding: 20px 22px 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(118deg, rgba(245, 165, 36, 0.11), rgba(255, 107, 74, 0.045) 46%, rgba(23, 27, 36, 0.62));
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
}

.intro-title {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  color: #fff;
}

.intro-text {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.95;
  text-align: justify;
}

.intro-text a {
  color: var(--gold);
  border-bottom: 1px solid rgba(245, 165, 36, 0.36);
}

.intro-text a:hover {
  color: #ffd88a;
  border-bottom-color: rgba(255, 216, 138, 0.7);
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.intro-tags a {
  padding: 4px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 12.5px;
  transition: all 0.2s var(--ease);
}

.intro-tags a:hover {
  color: #1d1304;
  background: linear-gradient(140deg, #ffc75a, var(--gold-deep));
  border-color: transparent;
}

.hero {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(29, 34, 45, 0.96), rgba(18, 21, 28, 0.9));
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.hero-track {
  position: relative;
  min-height: 340px;
}

.hero-slide {
  display: none;
  gap: 26px;
  align-items: center;
  padding: 30px 30px 22px;
}

.hero-slide.is-active {
  display: flex;
  animation: fadeUp 0.5s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 165, 36, 0.35);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: 0.01em;
  background: linear-gradient(92deg, #fff 20%, #ffd88a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-mute);
}

.hero-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.2);
}

.hero-meta .score {
  padding: 1px 8px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
  color: #1d1304;
  font-weight: 800;
  font-size: 12.5px;
}

.hero-meta .score::before {
  content: none;
}

.hero-desc {
  max-width: 640px;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.85;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease),
    color 0.22s var(--ease);
}

.btn-primary {
  background: linear-gradient(140deg, #ffc75a, var(--gold-deep));
  color: #1d1304;
  box-shadow: 0 10px 24px rgba(245, 165, 36, 0.3);
}

.btn-primary:hover {
  color: #1d1304;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 165, 36, 0.42);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: rgba(245, 165, 36, 0.5);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.hero-media {
  flex: 0 0 auto;
}

.hero-media img {
  display: block;
  width: 220px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 18px;
}

.dot {
  width: 24px;
  height: 4px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.24s var(--ease);
}

.dot.is-active {
  width: 40px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.66);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: all 0.22s var(--ease);
}

.hero-arrow:hover {
  color: var(--gold);
  border-color: rgba(245, 165, 36, 0.5);
  background: rgba(245, 165, 36, 0.16);
}

.hero-arrow.prev {
  left: 12px;
}

.hero-arrow.next {
  right: 12px;
}

.section {
  min-width: 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
}

.section-title .en {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-sub {
  max-width: 900px;
  margin-top: 8px;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.8;
}

.more-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12.5px;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}

.more-link:hover {
  color: var(--gold);
  border-color: rgba(245, 165, 36, 0.45);
  background: var(--gold-soft);
}

.scroll-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1;
  transition: all 0.22s var(--ease);
}

.round-btn:hover {
  color: var(--gold);
  border-color: rgba(245, 165, 36, 0.45);
  background: var(--gold-soft);
}

.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 165, 36, 0.4) transparent;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: rgba(245, 165, 36, 0.35);
  border-radius: 999px;
}

.rail > .card {
  flex: 0 0 168px;
  width: 168px;
  scroll-snap-align: start;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(29, 34, 45, 0.92), rgba(21, 25, 33, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 165, 36, 0.35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}

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

.card:hover .poster img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, 0.85));
  pointer-events: none;
}

.corner-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 12, 16, 0.78);
  border: 1px solid rgba(245, 165, 36, 0.42);
  color: #ffd88a;
  font-size: 11px;
  line-height: 1.6;
  backdrop-filter: blur(4px);
}

.heat-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(140deg, rgba(255, 107, 74, 0.92), rgba(212, 64, 42, 0.92));
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
}

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

.card-title {
  font-size: 14px;
  line-height: 1.45;
}

.card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.card-sub {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-btn {
  margin-top: 9px;
  width: 100%;
  height: 27px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12px;
  transition: all 0.2s var(--ease);
}

.fav-btn:hover {
  color: var(--gold);
  border-color: rgba(245, 165, 36, 0.45);
  background: var(--gold-soft);
}

.fav-btn[aria-pressed="true"] {
  color: #1d1304;
  background: linear-gradient(140deg, #ffc75a, var(--gold-deep));
  border-color: transparent;
  font-weight: 700;
}

.search-empty {
  padding: 26px 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--text-dim);
  text-align: center;
  font-size: 13.5px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(29, 34, 45, 0.86), rgba(20, 24, 31, 0.86));
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.rank-item:hover {
  transform: translateX(3px);
  border-color: rgba(245, 165, 36, 0.32);
  background: linear-gradient(120deg, rgba(36, 42, 55, 0.94), rgba(23, 27, 36, 0.94));
}

.rank-no {
  flex: 0 0 auto;
  width: 26px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  color: var(--text-mute);
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
}

.rank-no.top {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(245, 165, 36, 0.5);
}

.rank-thumb {
  flex: 0 0 auto;
  display: block;
  width: 96px;
  height: 128px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.rank-thumb img {
  display: block;
  width: 96px;
  height: 128px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s var(--ease);
}

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

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

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

.rank-desc {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.rank-tags span {
  padding: 1px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 11px;
  line-height: 1.7;
}

.rank-tags .hot {
  color: var(--coral);
  border-color: rgba(255, 107, 74, 0.32);
  background: rgba(255, 107, 74, 0.1);
}

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

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

.manju-card .poster {
  aspect-ratio: 1 / 1;
}

.manju-card .poster::after {
  height: 40%;
}

.manju-card .poster img {
  object-position: center;
}

.manju-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(38, 30, 52, 0.9), rgba(21, 22, 32, 0.94));
}

.manju-card:hover {
  border-color: rgba(163, 124, 255, 0.45);
  box-shadow: 0 16px 34px rgba(60, 30, 110, 0.4);
}

.manju-card .corner-tag {
  border-color: rgba(163, 124, 255, 0.5);
  color: #d9c7ff;
}

.guide .section-title,
.faq .section-title {
  margin-bottom: 16px;
}

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

.guide-block {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(29, 34, 45, 0.7), rgba(18, 21, 28, 0.7));
}

.guide-block h3 {
  margin-bottom: 9px;
  font-size: 15px;
  color: #fff;
}

.guide-block h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--gold);
}

.guide-block p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.95;
  text-align: justify;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(29, 34, 45, 0.74), rgba(18, 21, 28, 0.74));
  overflow: hidden;
  transition: border-color 0.22s var(--ease);
}

.faq-item[open] {
  border-color: rgba(245, 165, 36, 0.32);
}

.faq-item summary {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #fff;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.24s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.6), rgba(11, 13, 17, 0.96));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 26px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 640px;
  color: var(--text-mute);
  font-size: 12.5px;
  line-height: 1.95;
  text-align: justify;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-nav h4 {
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #fff;
}

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

.footer-nav a {
  color: var(--text-mute);
  font-size: 12.5px;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 34px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.9;
}

.footer-bottom .copyright {
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-bottom .disclaimer {
  margin-top: 6px;
  color: rgba(118, 128, 143, 0.82);
  text-align: justify;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 50;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 165, 36, 0.4);
  background: rgba(23, 27, 36, 0.9);
  color: var(--gold);
  font-size: 17px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  backdrop-filter: blur(8px);
  transition: all 0.26s var(--ease);
}

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

.back-top:hover {
  background: var(--gold);
  color: #16110a;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 90;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(23, 27, 36, 0.96);
  border: 1px solid rgba(245, 165, 36, 0.4);
  color: #ffd88a;
  font-size: 13px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: all 0.26s var(--ease);
}

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

.panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 8, 11, 0.72);
  backdrop-filter: blur(4px);
}

.panel[hidden] {
  display: none;
}

.panel-inner {
  width: min(520px, 100%);
  max-height: 74vh;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #1b202a, #12151c);
  box-shadow: var(--shadow-2);
}

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

.panel-head h3 {
  font-size: 16px;
  color: #fff;
}

.panel-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1;
  transition: all 0.2s var(--ease);
}

.panel-close:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.panel-list {
  overflow-y: auto;
  margin-top: 12px;
}

.panel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--text-dim);
}

.panel-list li:last-child {
  border-bottom: 0;
}

.panel-list .pick {
  flex: 0 0 auto;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 165, 36, 0.4);
  color: var(--gold);
  font-size: 12px;
  transition: all 0.2s var(--ease);
}

.panel-list .pick:hover {
  background: var(--gold);
  color: #1d1304;
}

.panel-empty {
  margin-top: 16px;
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-w: 210px;
  }

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

  .hero-track {
    min-height: 320px;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 70;
    width: 250px;
    border-radius: 0;
    border-left: 0;
    border-bottom: 0;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease);
    box-shadow: var(--shadow-2);
  }

  .sidebar.is-open {
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

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

  .hero-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    gap: 10px;
    padding: 0 12px;
  }

  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 15.5px;
  }

  .ghost-btn span:not(.badge) {
    display: none;
  }

  .ghost-btn {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .badge {
    position: absolute;
    margin: -18px 0 0 18px;
  }

  .ghost-btn {
    position: relative;
  }

  .breadcrumb,
  .layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .main {
    gap: 26px;
  }

  .intro {
    padding: 16px 15px 16px 17px;
  }

  .intro-title {
    font-size: 16px;
    line-height: 1.6;
  }

  .intro-text {
    font-size: 13px;
    line-height: 1.85;
  }

  .intro-tags a {
    font-size: 12px;
    padding: 3px 10px;
  }

  .hero-track {
    min-height: 0;
  }

  .hero-slide {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 16px 14px;
  }

  .hero-media img {
    width: 132px;
    height: 180px;
    border-radius: 12px;
  }

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

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

  .btn {
    height: 38px;
    padding: 0 20px;
    font-size: 13.5px;
  }

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

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

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

  .rail > .card {
    flex: 0 0 138px;
    width: 138px;
  }

  .rank-item {
    gap: 10px;
    padding: 10px;
  }

  .rank-thumb,
  .rank-thumb img {
    width: 82px;
    height: 110px;
  }

  .rank-desc {
    -webkit-line-clamp: 1;
  }

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

  .back-top {
    right: 14px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .search {
    height: 34px;
    padding-left: 10px;
  }

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

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

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

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