:root {
  --bg: #0f1115;
  --panel: #171a20;
  --panel-2: #1d2129;
  --text: #f3f5f7;
  --muted: #9ea6b2;
  --line: #2c323d;
  --primary: #2f80ff;
  --primary-2: #4f9cff;
  --accent: #0fd3b4;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(47, 128, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #0d1015 0%, #12151b 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 16, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap {
  height: 76px;
  display: grid;
  grid-template-columns: 220px 1fr 360px;
  gap: 20px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-text {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7b5cff);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  box-shadow: 0 10px 24px rgba(47, 128, 255, 0.22);
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: #c7cfdb;
  padding: 10px 0;
  position: relative;
}
.main-nav a.active,
.main-nav a:hover { color: #fff; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  width: 260px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 11px 16px;
}
.search-box button,
.history-btn,
.section-actions button {
  border: 0;
  cursor: pointer;
}
.search-box button {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 11px 16px;
}
.history-btn,
.section-actions button {
  color: #dbe6ff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 10px 14px;
}
.search-box {
  position: relative;
}
.search-suggest-panel {
  position: fixed;
  z-index: 10020;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(19, 22, 29, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}
.search-suggest-panel[hidden] {
  display: none;
}
.search-suggest-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: #f3f5f7;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-suggest-item:last-child {
  border-bottom: 0;
}
.search-suggest-item:hover,
.search-suggest-item.active {
  background: rgba(255,255,255,0.06);
}
.search-suggest-cover {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.search-suggest-copy strong,
.search-suggest-copy span {
  display: block;
}
.search-suggest-copy strong {
  margin-bottom: 4px;
  font-size: 14px;
}
.search-suggest-copy span {
  color: #9ea6b2;
  font-size: 12px;
}
.search-suggest-score {
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47,128,255,0.16);
  color: #cfe1ff;
  text-align: center;
  font-size: 12px;
}
.search-suggest-empty {
  padding: 14px 16px;
  color: #9ea6b2;
  font-size: 13px;
}

.page-main { padding: 26px 0 60px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}
.hero-stage,
.hero-thumbs,
.card,
.wide-item,
.rank-item,
.topic-card {
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
}
.hero-stage {
  position: relative;
  height: 390px;
  border-radius: 24px;
  overflow: hidden;
  background: #10131a;
}
.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  transition: opacity .35s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,11,15,0.92) 0%, rgba(9,11,15,0.58) 44%, rgba(9,11,15,0.15) 100%);
}
.hero-copy {
  position: absolute;
  inset: auto auto 0 0;
  width: 60%;
  padding: 34px;
  z-index: 2;
}
.hero-copy .badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47,128,255,0.18);
  color: #cfe1ff;
}
.hero-copy h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.2; }
.hero-copy p { margin: 0 0 18px; color: #ccd3dc; }
.hero-meta { display: flex; gap: 12px; color: #9fb8ff; flex-wrap: wrap; }

.hero-thumbs {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(19, 22, 29, 0.92);
}
.thumb-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  background: transparent;
  transition: background .2s ease, transform .2s ease;
}
.thumb-item:hover,
.thumb-item.active {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.thumb-poster {
  height: 70px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}
.thumb-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.thumb-item span { color: var(--muted); font-size: 12px; }

.content-section { margin-top: 28px; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-title h2 {
  margin: 0;
  font-size: 24px;
}
.section-title a,
.section-actions a {
  color: #b7c5dc;
}
.section-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.card {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,10,14,0.8) 100%);
}
.card-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 12, 20, 0.78);
  color: #fff;
  font-size: 12px;
}
.card-body { padding: 14px; }
.card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.card-meta,
.card-desc,
.wide-meta { color: var(--muted); }
.card-desc {
  min-height: 42px;
  margin-top: 8px;
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 18px;
}
.wide-list,
.rank-list {
  display: grid;
  gap: 12px;
}
.wide-item,
.rank-item {
  border-radius: 20px;
  background: rgba(22,26,33,0.95);
}
.wide-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px;
}
.wide-cover {
  border-radius: 14px;
  min-height: 88px;
  background-size: cover;
  background-position: center;
}
.wide-item h3,
.rank-item h3 { margin: 0 0 6px; }
.wide-desc { margin-top: 8px; color: #c7d0db; font-size: 13px; }

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2d3442, #1e2430);
  font-weight: 800;
  color: #8fb3ff;
}
.rank-score {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 211, 180, 0.12);
  color: #79f4dc;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.topic-card {
  padding: 22px;
  border-radius: 24px;
  min-height: 180px;
}
.topic-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.74);
}
.topic-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.topic-card p {
  margin: 0;
  color: rgba(255,255,255,0.82);
}
.topic-blue { background: linear-gradient(135deg, #1955d8, #0a84ff); }
.topic-purple { background: linear-gradient(135deg, #5530d7, #8f4bff); }
.topic-gold { background: linear-gradient(135deg, #d97816, #ffb020); }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(8,10,14,0.7);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 36px;
}
.footer-wrap p { margin: 6px 0 0; color: var(--muted); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #b8c0cc;
}

/* Home Page: rebuild layout by the 1200 / 60 / 730 / 470 / 7-col ratio */
.home-page {
  min-width: 1200px;
  color: #333;
  background: #f5f5f5;
}
.home-page .container {
  width: 1200px;
  max-width: none;
  margin: 0 auto;
}
.home-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 9999;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  backdrop-filter: none;
}
.home-page .nav-wrap {
  height: 60px;
  display: grid;
  grid-template-columns: 140px 1fr 360px;
  gap: 18px;
  align-items: center;
}
.home-page .brand {
  gap: 10px;
  color: #111;
}
.home-page .brand-logo-text {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #05a7e1;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}
.home-page .main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  height: 60px;
}
.home-page .main-nav a {
  position: relative;
  padding: 0;
  color: #333;
  line-height: 60px;
}
.home-page .main-nav a.active,
.home-page .main-nav a:hover {
  color: #05a7e1;
}
.home-page .main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 0;
  background: #05a7e1;
}
.home-page .header-tools {
  gap: 12px;
}
.home-page .search-box {
  width: 313px;
  height: 33px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
}
.home-page .search-box input {
  width: 280px;
  padding: 8px;
  color: #333;
}
.home-page .search-box button {
  width: 33px;
  padding: 0;
  background: #05a7e1;
  color: #fff;
}
.home-page .search-suggest-panel {
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}
.home-page .search-suggest-item {
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.home-page .search-suggest-item:hover,
.home-page .search-suggest-item.active {
  background: #f7fbff;
}
.home-page .search-suggest-copy span,
.home-page .search-suggest-empty {
  color: #888;
}
.home-page .search-suggest-score {
  background: #f2fbff;
  color: #05a7e1;
}
.home-page .history-btn,
.home-page .section-actions button {
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  padding: 7px 12px;
  background: #fff;
  color: #666;
}
.home-page .page-main {
  padding: 70px 0 45px;
}
.home-page .hero {
  display: grid;
  grid-template-columns: 730px 470px;
  gap: 0;
  padding-top: 10px;
  border-top: 1px solid #e8e8e8;
}
.home-page .hero-stage,
.home-page .hero-thumbs,
.home-page .card,
.home-page .wide-item,
.home-page .rank-item,
.home-page .topic-card {
  border: 0;
  box-shadow: none;
}
.home-page .hero-stage {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}
.home-page .hero-slide {
  transition: opacity .25s ease;
}
.home-page .hero-mask {
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
}
.home-page .hero-copy {
  left: 0;
  bottom: 0;
  width: 730px;
  padding: 18px 22px;
}
.home-page .hero-copy .badge {
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(5, 167, 225, .88);
  color: #fff;
  font-size: 12px;
}
.home-page .hero-copy h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
}
.home-page .hero-copy h1 a {
  color: #fff;
}
.home-page .hero-copy p {
  margin: 0 0 8px;
  max-width: 620px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-page .hero-meta {
  gap: 14px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.home-page .hero-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 225px);
  grid-auto-rows: 100px;
  gap: 10px;
  justify-content: end;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.home-page .thumb-item {
  position: relative;
  display: block;
  width: 225px;
  height: 100px;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
  background: #111;
  transform: none;
}
.home-page .thumb-item:hover,
.home-page .thumb-item.active {
  background: #111;
  transform: none;
}
.home-page .thumb-item.active::after,
.home-page .thumb-item:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #70a20f;
  pointer-events: none;
}
.home-page .thumb-poster {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
}
.home-page .thumb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 10px;
  height: 28px;
  line-height: 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
}
.home-page .thumb-caption strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
}
.home-page .thumb-caption span {
  display: none;
}
.home-page .content-section {
  margin-top: 18px;
}
.home-page .section-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ececec;
}
.home-page .section-title h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #333;
  font-size: 20px;
}
.home-page .section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  background: #05a7e1;
}
.home-page .section-title a,
.home-page .section-actions a {
  color: #666;
}
.home-page .card-grid {
  display: grid;
  grid-template-columns: repeat(7, 162.8px);
  gap: 10px;
  justify-content: start;
}
.home-page .card {
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.home-page .card-cover {
  height: 235px;
  aspect-ratio: auto;
}
.home-page .card-label {
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(0,0,0,.55);
  font-size: 11px;
}
.home-page .card-body {
  height: 43px;
  padding: 0;
}
.home-page .card-title {
  margin: 0;
  padding: 5px 8px 0;
  color: #333;
  font-size: 13px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-page .card-meta {
  padding: 2px 8px 0;
  color: #999;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-page .card-desc {
  display: none;
}
.home-page .two-col {
  display: grid;
  grid-template-columns: 850px 335px;
  gap: 15px;
  align-items: start;
}
.home-page .wide-list,
.home-page .rank-list {
  gap: 10px;
}
.home-page .wide-item,
.home-page .rank-item {
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.home-page .wide-item {
  grid-template-columns: 148px 1fr;
  gap: 14px;
  padding: 10px;
}
.home-page .wide-cover {
  min-height: 92px;
  border-radius: 0;
}
.home-page .wide-item h3,
.home-page .rank-item h3 {
  color: #333;
  font-size: 15px;
}
.home-page .wide-meta,
.home-page .wide-desc {
  color: #777;
}
.home-page .rank-item {
  grid-template-columns: 42px 1fr 56px;
  padding: 12px 14px;
}
.home-page .rank-no {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: #f3f7fa;
  color: #05a7e1;
}
.home-page .rank-score {
  justify-self: end;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 3px;
  background: #f2fbff;
  color: #05a7e1;
  text-align: center;
}
.home-page .topic-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.home-page .topic-card {
  min-height: 160px;
  border-radius: 0;
}
.home-page .home-footer {
  margin-top: 30px;
  border-top: 1px solid #eaeaea;
  background: #fff;
}
.home-page .home-footer .footer-wrap {
  padding: 22px 0 30px;
}
.home-page .home-footer .footer-links {
  color: #666;
}

@media (max-width: 1180px) {
  .nav-wrap { grid-template-columns: 1fr; height: auto; padding: 14px 0; }
  .main-nav, .header-tools { flex-wrap: wrap; justify-content: flex-start; }
  .hero, .two-col, .topic-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { width: 100%; padding: 22px; }
  .hero-copy h1 { font-size: 26px; }
  .wide-item { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; }
}


/* Library Page */
.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    radial-gradient(circle at top left, rgba(47,128,255,0.16), transparent 30%);
  box-shadow: var(--shadow);
}
.library-kicker {
  margin: 0 0 8px;
  color: #8fb3ff;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}
.library-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
}
.library-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 14px;
}
.filter-panel,
.library-toolbar,
.library-card {
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
}
.library-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 360px;
}
.library-hero-stats div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
.library-hero-stats span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 12px;
}
.library-hero-stats strong {
  font-size: 20px;
}
.filter-panel {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(19, 22, 29, 0.92);
}
.filter-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.filter-row:last-child {
  border-bottom: 0;
}
.filter-label {
  color: #dce6f7;
  font-weight: 700;
  padding-top: 7px;
  font-size: 13px;
}
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip,
.page-btn {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #dbe6ff;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 13px;
  line-height: 1.2;
}
.filter-chip:hover,
.page-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(79,156,255,0.48);
}
.filter-chip.active,
.page-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
}
.page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.library-toolbar {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(19, 22, 29, 0.92);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.library-toolbar-left {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.library-toolbar-left span {
  color: var(--muted);
  font-size: 13px;
}
.library-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.library-card {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-width: 0;
}
.library-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79,156,255,0.24);
}
.library-cover {
  position: relative;
  height: 248px;
  background-size: cover;
  background-position: center;
}
.library-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8,10,14,0.82) 100%);
}
.library-quality {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 12, 20, 0.78);
  color: #fff;
  font-size: 12px;
}
.library-body {
  padding: 12px;
}
.library-headline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.library-headline h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-headline span {
  color: #8fead7;
  white-space: nowrap;
  font-size: 13px;
}
.library-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
}
.library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.library-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47,128,255,0.12);
  color: #cfe1ff;
  font-size: 11px;
}
.library-body p {
  margin: 8px 0 0;
  color: #cdd4de;
  font-size: 12px;
  line-height: 1.6;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-empty {
  margin-top: 20px;
  padding: 30px 24px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
@media (max-width: 1180px) {
  .library-hero { grid-template-columns: 1fr; }
  .library-hero-stats { min-width: 0; }
  .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .library-cover { height: 230px; }
}
@media (max-width: 720px) {
  .filter-row { grid-template-columns: 1fr; }
  .library-toolbar { flex-direction: column; align-items: flex-start; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-hero h1 { font-size: 28px; }
  .library-hero-stats { grid-template-columns: 1fr; }
  .library-hero { padding: 18px; }
  .library-cover { height: 210px; }
}

/* Library Page: rebuild by QW-style filter + 7-column resource grid */
.library-page {
  min-width: 1200px;
  color: #333;
  background: #f5f5f5;
}
.library-page .container {
  width: 1200px;
  max-width: none;
  margin: 0 auto;
}
.library-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 9999;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  backdrop-filter: none;
}
.library-page .nav-wrap {
  height: 60px;
  display: grid;
  grid-template-columns: 140px 1fr 360px;
  gap: 18px;
  align-items: center;
}
.library-page .brand {
  color: #111;
}
.library-page .brand-logo-text {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #05a7e1;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}
.library-page .main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  height: 60px;
}
.library-page .main-nav a {
  position: relative;
  padding: 0;
  color: #333;
  line-height: 60px;
}
.library-page .main-nav a.active,
.library-page .main-nav a:hover {
  color: #05a7e1;
}
.library-page .main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #05a7e1;
}
.library-page .header-tools {
  justify-content: flex-end;
}
.library-page .search-box {
  width: 313px;
  height: 33px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
}
.library-page .search-box input {
  width: 280px;
  padding: 8px;
  color: #333;
}
.library-page .search-box button {
  width: 33px;
  padding: 0;
  background: #05a7e1;
  color: #fff;
}
.library-page .search-suggest-panel {
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}
.library-page .search-suggest-item {
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.library-page .search-suggest-item:hover,
.library-page .search-suggest-item.active {
  background: #f7fbff;
}
.library-page .search-suggest-copy span,
.library-page .search-suggest-empty {
  color: #888;
}
.library-page .search-suggest-score {
  background: #f2fbff;
  color: #05a7e1;
}
.library-page-main {
  padding: 70px 0 36px;
}
.library-page .list-box {
  left: 0;
  width: 1200px;
  clear: both;
  position: relative;
  margin-bottom: 10px;
  background: #fff;
  padding: 0 12px;
}
.library-page .list-box dl,
.library-page .list-box .sort {
  overflow: hidden;
  padding: 2px 0;
  border-bottom: 1px solid #ececec;
}
.library-page .list-box .sort {
  display: flow-root;
}
.library-page .list-box dl:last-of-type,
.library-page .list-box .sort:last-child {
  border-bottom: 0;
}
.library-page .list-box dt {
  float: left;
  width: 40px;
  height: 23px;
  line-height: 23px;
  color: #666;
}
.library-page .list-links {
  overflow: hidden;
}
.library-page .filter-chip {
  float: left;
  height: 20px;
  line-height: 20px;
  margin: 1px 0 0 5px;
  padding: 0 7px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #337ab7;
  font-size: 13px;
  cursor: pointer;
}
.library-page .filter-chip:hover {
  transform: none;
}
.library-page .c1 .filter-chip.active,
.library-page .c1 .filter-chip:hover {
  background: #ff8f00;
  color: #fff;
}
.library-page .c2 .filter-chip.active,
.library-page .c2 .filter-chip:hover {
  background: #05a7e1;
  color: #fff;
}
.library-page .c3 .filter-chip.active,
.library-page .c3 .filter-chip:hover {
  background: #ff4949;
  color: #fff;
}
.library-page .c4 .filter-chip.active,
.library-page .c4 .filter-chip:hover {
  background: #29a681;
  color: #fff;
}
.library-page .c5 .filter-chip.active,
.library-page .c5 .filter-chip:hover {
  background: #7B68EE;
  color: #fff;
}
.library-page .c6 .filter-chip.active,
.library-page .c6 .filter-chip:hover {
  background: #EE82EE;
  color: #fff;
}
.library-page .library-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 12px 0 8px;
  color: #666;
}
.library-page .library-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.library-page .library-summary-left strong {
  color: #333;
  font-size: 18px;
}
.library-page .library-summary-right .history-btn {
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  padding: 7px 12px;
  background: #fff;
  color: #666;
}
.library-page .library-content-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, 162.8px);
  gap: 10px;
  justify-content: start;
}
.library-page .content-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.library-page .content-list li {
  width: 162.8px;
  display: block;
  position: relative;
  margin: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.library-page .content-list .li-img {
  width: 162.8px;
  height: 235px;
  overflow: hidden;
  position: relative;
}
.library-page .content-list .li-img a.library-cover-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}
.library-page .library-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.library-page .content-list .li-img .bottom {
  font-size: 12px;
  position: absolute;
  right: 0;
  bottom: 0;
  background: #00000080;
  z-index: 2;
}
.library-page .content-list .li-img .bottom1,
.library-page .content-list .li-img .bottom2 {
  display: inline-block;
  padding: 0 3px;
  color: #fff;
  height: 20px;
  line-height: 20px;
}
.library-page .li-bottom {
  height: 43px;
  background: #fff;
}
.library-page .li-bottom h3 {
  margin: 0;
  padding: 5px 8px 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 15px;
}
.library-page .li-bottom h3 a {
  width: 124px;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #333;
}
.library-page .li-bottom h3 span {
  float: right;
  color: #ff722c;
  font-size: 10px;
  width: 20px;
  text-align: right;
}
.library-page .li-bottom .tag {
  line-height: 18px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #999;
  font-size: 11px;
}
.library-page .library-empty {
  margin-top: 20px;
  padding: 30px 24px;
  border: 1px dashed #d9d9d9;
  background: #fff;
  color: #999;
  text-align: center;
}
.library-page .pages {
  text-align: center;
  width: 100%;
  margin: 10px auto;
  height: 36px;
  overflow: hidden;
  clear: both;
}
.library-page .page-btn {
  border: 1px solid #e6e6e6;
  display: inline-block;
  font-size: 14px;
  height: 34px;
  line-height: 34px;
  padding: 0 13px;
  background: #fff;
  color: #333;
  margin-left: -1px;
  border-radius: 0;
}
.library-page .page-btn.active,
.library-page .page-btn:hover {
  background: #2aa581;
  color: #fff;
}
.library-page .page-btn:disabled {
  cursor: not-allowed;
  color: #aaa;
  background: #fafafa;
}
.library-page .library-footer {
  margin-top: 26px;
  border-top: 1px solid #eaeaea;
  background: #fff;
}
.library-page .library-footer .footer-wrap {
  padding: 22px 0 30px;
}
.library-page .library-footer .footer-wrap p,
.library-page .library-footer .footer-links {
  color: #666;
}

/* Detail Page */
.detail-breadcrumb { display:flex; gap:10px; align-items:center; color:var(--muted); margin-bottom:18px; font-size:13px; }
.detail-breadcrumb strong { color:var(--text); }
.detail-hero { display:grid; grid-template-columns: 280px minmax(0, 1fr); gap:20px; }
.detail-poster-wrap, .detail-section, .detail-side-card { border:1px solid rgba(255,255,255,0.07); box-shadow:var(--shadow); border-radius:24px; background:rgba(19,22,29,.92); }
.detail-poster-wrap { padding:16px; }
.detail-poster { height:390px; border-radius:18px; background:#10131a center/cover no-repeat; }
.detail-main { border:1px solid rgba(255,255,255,0.07); box-shadow:var(--shadow); border-radius:24px; background:rgba(19,22,29,.92); padding:22px 24px; }
.detail-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.detail-head h1 { margin:0 0 8px; font-size:34px; line-height:1.2; }
.detail-original-title { margin:0; color:var(--muted); }
.detail-score-box { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.score-chip { min-width:92px; padding:12px 14px; border-radius:18px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); text-align:center; }
.score-chip span { display:block; color:var(--muted); font-size:12px; margin-bottom:6px; }
.score-chip strong { font-size:18px; }
.detail-quality-row { display:flex; gap:12px; align-items:center; margin-top:16px; flex-wrap:wrap; }
.detail-quality { padding:7px 14px; border-radius:999px; background:linear-gradient(90deg, var(--primary), var(--primary-2)); color:#fff; font-weight:700; }
.detail-quality-note { color:var(--muted); }
.detail-meta-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; margin-top:18px; }
.detail-meta-item { padding:12px 14px; border-radius:18px; background:rgba(255,255,255,.04); }
.detail-meta-item strong { display:block; margin-bottom:6px; font-size:13px; color:#dce6f7; }
.detail-meta-item span { color:var(--muted); font-size:13px; line-height:1.6; }
.detail-actions { display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.detail-action { display:inline-flex; align-items:center; justify-content:center; min-width:128px; padding:10px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.04); color:#dbe6ff; }
.detail-action.primary { background:linear-gradient(90deg, var(--primary), var(--primary-2)); color:#fff; border-color:transparent; }
.detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; margin-top:20px; }
.detail-left, .detail-right { display:grid; gap:18px; }
.detail-section, .detail-side-card { padding:18px 20px; }
.detail-section-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:14px; }
.detail-section-title h2 { margin:0; font-size:22px; }
.detail-section-subtitle { color:var(--muted); font-size:12px; }
.detail-summary { color:#d3dae3; line-height:1.8; white-space:pre-wrap; }
.detail-summary.clamp { display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.detail-resource-groups { display:grid; gap:12px; }
.resource-card { padding:14px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); }
.resource-card-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:8px; }
.resource-card-count { color:#8fead7; margin-bottom:10px; font-size:13px; }
.resource-card-tags, .detail-gallery, .detail-related { display:grid; gap:10px; }
.resource-card-tags { display:flex; flex-wrap:wrap; }
.resource-card-tags span { padding:5px 9px; border-radius:999px; background:rgba(47,128,255,.12); color:#cfe1ff; font-size:12px; }
.detail-gallery { grid-template-columns:repeat(4,minmax(0,1fr)); }
.detail-gallery-item { height:120px; border-radius:16px; background:#10131a center/cover no-repeat; }
.detail-facts { display:grid; gap:10px; }
.detail-fact { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.detail-fact:last-child { border-bottom:0; }
.detail-fact span { color:var(--muted); }
.detail-related-item { display:grid; grid-template-columns:84px 1fr; gap:12px; align-items:center; padding:10px; border-radius:16px; background:rgba(255,255,255,.04); }
.detail-related-cover { height:78px; border-radius:14px; background:#10131a center/cover no-repeat; }
.detail-related-item strong { display:block; margin-bottom:6px; }
.detail-related-item span { color:var(--muted); font-size:12px; line-height:1.5; }
.detail-empty-block { padding:18px; border-radius:16px; border:1px dashed rgba(255,255,255,.12); color:var(--muted); text-align:center; }
@media (max-width: 1180px) { .detail-hero, .detail-layout { grid-template-columns:1fr; } .detail-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 720px) { .detail-head, .detail-meta-grid { grid-template-columns:1fr; display:grid; } .detail-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } .detail-poster { height:320px; } }

/* Detail Page: rebuild by QW-style release page */
.detail-page {
  min-width: 1200px;
  color: #333;
  background: #f5f5f5;
}
.detail-page .container {
  width: 1280px;
  max-width: none;
  margin: 0 auto;
}
.detail-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 9999;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  backdrop-filter: none;
}
.detail-page .nav-wrap {
  height: 60px;
  display: grid;
  grid-template-columns: 140px 1fr 360px;
  gap: 18px;
  align-items: center;
}
.detail-page .brand-logo-text {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #05a7e1;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}
.detail-page .main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  height: 60px;
}
.detail-page .main-nav a {
  position: relative;
  padding: 0;
  color: #333;
  line-height: 60px;
}
.detail-page .main-nav a.active,
.detail-page .main-nav a:hover {
  color: #05a7e1;
}
.detail-page .main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #05a7e1;
}
.detail-page .header-tools {
  justify-content: flex-end;
}
.detail-page .search-box {
  width: 313px;
  height: 33px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
}
.detail-page .search-box input {
  width: 280px;
  padding: 8px;
  color: #333;
}
.detail-page .search-box button {
  width: 33px;
  padding: 0;
  background: #05a7e1;
  color: #fff;
}
.detail-page .search-suggest-panel {
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}
.detail-page .search-suggest-item {
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.detail-page .search-suggest-item:hover,
.detail-page .search-suggest-item.active {
  background: #f7fbff;
}
.detail-page .search-suggest-copy span,
.detail-page .search-suggest-empty {
  color: #888;
}
.detail-page .search-suggest-score {
  background: #f2fbff;
  color: #05a7e1;
}
.detail-page-main {
  padding: 70px 0 36px;
}
.detail-page .detail-breadcrumb {
  color: #777;
  margin-bottom: 14px;
}
.detail-page .detail-breadcrumb strong {
  color: #333;
}
.detail-page .detail-shell {
  display: block;
}
.detail-page .main-left {
  width: 100%;
  max-width: 1280px;
  float: none;
  min-width: 0;
  margin: 0 auto;
}
.detail-page .main-left-1 {
  padding: 0 20px 20px;
  margin-top: 0;
  border: 1px solid #e6e6e6;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.detail-page .wrap.row {
  margin-bottom: 15px;
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
}
.detail-page .wrap.row::after {
  content: "";
  display: block;
  clear: both;
}
.detail-page .wrap.row:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.detail-page .wrap.row h2,
.detail-page .main-right h2 {
  margin: 0;
  padding: 14px 16px 10px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.detail-page .detail-top-block {
  padding: 20px 0 15px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.detail-page .img {
  width: 260px;
  max-width: 32%;
  flex: 0 0 260px;
}
.detail-page .detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 360px;
  background: #f1f1f1 center/cover no-repeat;
}
.detail-page .main-ui-meta {
  flex: 1;
  width: auto;
  min-width: 0;
  padding-left: 0;
  font-size: 13px;
  line-height: 1.9;
}
.detail-page .main-ui-meta h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #333;
}
.detail-page .main-ui-meta .year {
  margin-left: 8px;
  color: #888;
  font-size: 16px;
}
.detail-page .otherbox {
  margin-bottom: 10px;
  color: #666;
}
.detail-page .otherbox em {
  color: #05a7e1;
  font-style: normal;
}
.detail-page .main-ui-meta div {
  color: #555;
}
.detail-page .main-ui-meta span:first-child {
  color: #666;
}
.detail-page .text-overflow {
  overflow: hidden;
}
.detail-page .detail-score-item {
  color: #05a7e1;
}
.detail-page .detail-score-sep {
  color: #999;
}
.detail-page .detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.detail-page .detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  color: #666;
}
.detail-page .detail-action.primary {
  background: #05a7e1;
  border-color: #05a7e1;
  color: #fff;
}
.detail-page .movie-introduce {
  padding: 0 0 14px;
  color: #555;
  line-height: 1.9;
  clear: both;
}
.detail-page .detail-summary {
  margin: 0;
}
.detail-page .detail-summary.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-page .summary-toggle {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #05a7e1;
  cursor: pointer;
  padding: 0;
}
.detail-page .detail-tab-block {
  padding-bottom: 14px;
  clear: both;
}
.detail-page .detail-tab-list {
  box-sizing: border-box;
  width: 100%;
  white-space: nowrap;
  background: #f6f6f6;
  border-top: 1px solid #ececec;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}
.detail-page .detail-tab-list li {
  display: inline-block;
  position: relative;
  padding: 10px 12px;
  border-left: 1px solid #f6f6f6;
  border-right: 1px solid #f6f6f6;
  cursor: pointer;
  color: #555;
}
.detail-page .detail-tab-list li:first-child {
  border-left: 1px solid #ececec;
}
.detail-page .detail-tab-list li.on {
  background: #fff;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
}
.detail-page .detail-tab-list li.on::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
}
.detail-page .detail-tab-list .badge {
  display: inline-block;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: #05a7e1;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}
.detail-page .down-list {
  width: 100%;
}
.detail-page .down-list .content {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
}
.detail-page .down-list2 {
  padding: 4px 10px;
  border-bottom: 1px solid #ececec;
}
.detail-page .down-list2:hover {
  background: #f7f7f7;
}
.detail-page .down-list3 {
  display: inline-block;
  font-size: 12px;
  line-height: 1.2;
}
.detail-page .down-list3 > a {
  display: inline-block;
  max-width: none;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  word-break: break-all;
  vertical-align: middle;
  color: #337ab7;
  padding-left: 20px;
  background-repeat: no-repeat;
  line-height: 1.2;
}
.detail-page .down-list3 > a.resource-title-complete {
  color: #d93025;
  font-weight: 600;
}
.detail-page .down-list3 .magnet {
  background-image: none;
}
.detail-page .down-list3 .folder {
  background-image: none;
}
.detail-page .detail-item-extra {
  margin-left: 6px;
  color: #999;
}
.detail-page .down-list2 span a {
  float: right;
  color: #999;
  padding: 0 5px;
  background: #f0f0f0;
  border-radius: 2px;
  line-height: 1.2;
}
.detail-page .down-list2 span a:hover {
  background: #05a7e1;
  color: #fff;
}
.detail-page .detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 14px;
  clear: both;
}
.detail-page .detail-gallery-item {
  height: 120px;
  background: #f1f1f1 center/cover no-repeat;
}
.detail-page .detail-facts {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.detail-page .detail-fact {
  padding: 10px 12px;
  border-bottom: 1px solid #ececec;
  background: #fff;
}
.detail-page .detail-fact span {
  display: block;
  color: #888;
  margin-bottom: 4px;
  font-size: 12px;
}
.detail-page .detail-fact strong {
  color: #333;
  font-size: 13px;
  line-height: 1.6;
}
.detail-page .detail-bottom-related {
  padding-bottom: 14px;
}
.detail-page .detail-related {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 10px;
}
.detail-page .detail-related-item {
  display: block;
  padding: 0;
  border-bottom: 0;
}
.detail-page .detail-related-cover {
  width: 100%;
  height: 188px;
  background: #f1f1f1 center/cover no-repeat;
}
.detail-page .detail-related-copy {
  padding-top: 8px;
}
.detail-page .detail-related-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  height: 38px;
  overflow: hidden;
}
.detail-page .detail-related-copy span {
  display: block;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
}
.detail-page .detail-empty-block {
  padding: 16px;
  border: 1px dashed #d9d9d9;
  color: #999;
  text-align: center;
  background: #fff;
}
.detail-page .detail-footer {
  margin-top: 26px;
  border-top: 1px solid #eaeaea;
  background: #fff;
}
.detail-page .detail-footer .footer-wrap {
  padding: 22px 0 30px;
}
.detail-page .detail-footer .footer-wrap p,
.detail-page .detail-footer .footer-links {
  color: #666;
}
.card, .library-card, .wide-item, .rank-item, .thumb-item { display:block; }
.thumb-item { text-decoration:none; }

/* Shared header */
.home-page .site-header,
.library-page .site-header,
.detail-page .site-header,
.search-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 9999;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  backdrop-filter: none;
}
.home-page .site-header .nav-wrap,
.library-page .site-header .nav-wrap,
.detail-page .site-header .nav-wrap,
.search-page .site-header .nav-wrap {
  width: 1200px;
  height: 60px;
  display: grid;
  grid-template-columns: 140px 1fr 360px;
  gap: 18px;
  align-items: center;
}
.home-page .site-header .brand,
.library-page .site-header .brand,
.detail-page .site-header .brand,
.search-page .site-header .brand {
  gap: 10px;
  color: #111;
}
.home-page .site-header .brand-logo-text,
.library-page .site-header .brand-logo-text,
.detail-page .site-header .brand-logo-text,
.search-page .site-header .brand-logo-text {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #05a7e1;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}
.home-page .site-header .main-nav,
.library-page .site-header .main-nav,
.detail-page .site-header .main-nav,
.search-page .site-header .main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  height: 60px;
}
.home-page .site-header .main-nav a,
.library-page .site-header .main-nav a,
.detail-page .site-header .main-nav a,
.search-page .site-header .main-nav a {
  position: relative;
  padding: 0;
  color: #333;
  line-height: 60px;
}
.home-page .site-header .main-nav a.active,
.home-page .site-header .main-nav a:hover,
.library-page .site-header .main-nav a.active,
.library-page .site-header .main-nav a:hover,
.detail-page .site-header .main-nav a.active,
.detail-page .site-header .main-nav a:hover,
.search-page .site-header .main-nav a.active,
.search-page .site-header .main-nav a:hover {
  color: #05a7e1;
}
.home-page .site-header .main-nav a.active::after,
.library-page .site-header .main-nav a.active::after,
.detail-page .site-header .main-nav a.active::after,
.search-page .site-header .main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #05a7e1;
}
.home-page .site-header .header-tools,
.library-page .site-header .header-tools,
.detail-page .site-header .header-tools,
.search-page .site-header .header-tools {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.home-page .site-header .search-box,
.library-page .site-header .search-box,
.detail-page .site-header .search-box,
.search-page .site-header .search-box {
  display: flex;
  align-items: center;
  width: 313px;
  height: 33px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
}
.home-page .site-header .search-box input,
.library-page .site-header .search-box input,
.detail-page .site-header .search-box input,
.search-page .site-header .search-box input {
  flex: 1;
  width: auto;
  padding: 8px;
  color: #333;
}
.home-page .site-header .search-box button,
.library-page .site-header .search-box button,
.detail-page .site-header .search-box button,
.search-page .site-header .search-box button {
  width: 52px;
  height: 31px;
  padding: 0;
  border: 0;
  background: #05a7e1;
  color: #fff;
  font-size: 12px;
}

/* Search Page */
.search-page {
  min-width: 1200px;
  color: #333;
  background: #f5f5f5;
}
.search-page .container {
  width: 1200px;
  max-width: none;
  margin: 0 auto;
}
.search-page-main {
  padding: 76px 0 36px;
}
.search-page .search-shell {
  padding: 20px;
  border: 1px solid #e6e6e6;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.search-page .search-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid #efefef;
}
.search-page .search-head h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #222;
}
.search-page .search-head p {
  margin: 0;
  color: #888;
  font-size: 13px;
}
.search-page .search-stat {
  color: #05a7e1;
  font-size: 14px;
  white-space: nowrap;
}
.search-page .search-result-list {
  margin-top: 14px;
}
.search-page .search-result-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #efefef;
}
.search-page .search-result-item:last-child {
  border-bottom: 0;
}
.search-page .search-result-poster {
  display: block;
  width: 140px;
  height: 196px;
  background: #f1f1f1 center/cover no-repeat;
}
.search-page .search-result-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.search-page .search-result-top h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}
.search-page .search-result-top h3 a {
  color: #222;
}
.search-page .search-result-aliases {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
}
.search-page .search-result-type {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef8fc;
  color: #05a7e1;
  font-size: 12px;
  white-space: nowrap;
}
.search-page .search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}
.search-page .search-result-summary {
  margin: 12px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  max-height: calc(1.8em * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.search-page .search-highlight {
  color: #e02020;
  font-style: normal;
  font-weight: 700;
}
.search-page .search-result-actions {
  margin-top: 12px;
}
.search-page .search-result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 32px;
  padding: 0 14px;
  border-radius: 3px;
  background: #05a7e1;
  color: #fff;
}
.search-page .search-empty {
  margin-top: 16px;
  padding: 30px 24px;
  border: 1px dashed #d9d9d9;
  color: #999;
  text-align: center;
}
.search-page .search-pagination {
  margin-top: 18px;
}
.search-page .search-pagination .page-btn.disabled {
  pointer-events: none;
  color: #aaa;
  background: #fafafa;
}
