﻿/* v17 暖沙香槟 — 浅色纸感底、深字、香槟金强调（非黑主题） */

:root {
  --bg-color-1: #f0ebe4;
  --bg-color-2: #ffffff;
  --text-color-1: #252322;
  --text-color-2: #5c534c;
  --text-color-3: #908880;
  --theme-color: #9a7344;
  --theme-color-2: #c9a86a;
  --theme-color-3: #6d5c48;
  --theme-color-4: #7a7d8a;
  --theme-shadow: 0 16px 44px rgba(62, 54, 44, 0.09);
  --line-soft: rgba(44, 38, 32, 0.09);
  --card-shadow: 0 8px 28px rgba(62, 54, 44, 0.07);
  --card-shadow-hover: 0 22px 52px rgba(62, 54, 44, 0.11);
  --v17-max: 1200px;
  /* 内容页桌面主列：比全站 1200 窄，避免「整页一张大白板」 */
  --v17-show-max: 920px;
  /* 搜索页主列略窄，与详情页阅读节奏接近 */
  --v17-search-max: 960px;
  --v17-head-h: 58px;
  --v17-poster-ar: 10 / 13;
  --v17-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --v17-deco-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='5' cy='7' r='1' fill='%23c9a86a' opacity='0.14'/%3E%3Ccircle cx='21' cy='19' r='0.75' fill='%237a7d8a' opacity='0.1'/%3E%3C/svg%3E");
  --v17-deco-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23f0ebe4' d='M0,12 Q400,24 800,12 T1200,10 L1200,24 L0,24 Z'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.v17 {
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

body.v17.v17--home,
body.v17.v17--cathub,
body.v17.v17--list,
body.v17.v17--search,
body.v17.v17--show,
body.v17.v17--play {
  margin: 0;
  /* 与固定顶栏高度一致，并留出刘海屏安全区（iPhone 等） */
  padding-top: calc(var(--v17-head-h) + env(safe-area-inset-top, 0px));
  font-family: var(--v17-font);
  color: var(--text-color-1);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color-1);
  background-image:
    radial-gradient(ellipse 88% 52% at 10% -6%, rgba(201, 168, 106, 0.16), transparent 46%),
    radial-gradient(ellipse 72% 48% at 96% 4%, rgba(255, 255, 255, 0.85), transparent 52%),
    radial-gradient(ellipse 52% 42% at 48% 96%, rgba(201, 168, 106, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, transparent 42%),
    var(--v17-deco-dots);
  background-size: auto, auto, auto, auto, 32px 32px;
  /* fixed 底纹在滚动时易错位、与其它页不一致；统一为 scroll */
  background-attachment: scroll, scroll, scroll, scroll, scroll;
}

body.v17.v17--home a,
body.v17.v17--cathub a,
body.v17.v17--list a,
body.v17.v17--search a,
body.v17.v17--show a,
body.v17.v17--play a {
  color: var(--text-color-1);
  text-decoration: none;
}

body.v17.v17--home a:hover,
body.v17.v17--cathub a:hover,
body.v17.v17--list a:hover,
body.v17.v17--search a:hover,
body.v17.v17--show a:hover,
body.v17.v17--play a:hover {
  color: var(--theme-color);
}

body.v17.v17--home img,
body.v17.v17--cathub img,
body.v17.v17--list img,
body.v17.v17--search img,
body.v17.v17--show img,
body.v17.v17--play img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 竖版海报区必须铺满容器；勿让全局 height:auto 盖掉 cover（横图否则会只占上半截、底下露灰底） */
body.v17.v17--home .v17-tile__img,
body.v17.v17--list .v17-tile__img,
body.v17.v17--search .v17-tile__img,
body.v17.v17--show .v17-tile__img,
body.v17.v17--play .v17-tile__img,
body.v17.v17--home .v17-slide__img,
body.v17.v17--home .v17-rank__thumb img {
  height: 100%;
  max-height: none;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(62, 54, 44, 0.2);
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(62, 54, 44, 0.06);
}

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

/* —— 顶栏：浅色磨砂 + 金线（非黑顶栏） —— */
.v17-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 601;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--v17-head-h) + env(safe-area-inset-top, 0px));
  background: rgba(255, 253, 250, 0.94);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 4px 28px rgba(62, 54, 44, 0.07);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.v17-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--theme-color) 38%, var(--theme-color-2) 62%, transparent 100%);
  opacity: 0.9;
}

.v17-head__inner {
  max-width: var(--v17-max);
  margin: 0 auto;
  padding: 0 clamp(12px, 2.4vw, 22px);
  height: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  /* minmax(0,1fr) 避免中间导航把整行撑出横向滚动条 */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}

@media (max-width: 879px) {
  .v17-head__inner {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
  }

  .v17-head__tools {
    grid-column: 2;
    justify-self: end;
    min-width: 0;
  }
}

.v17-head__brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-color-1);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.v17-head__brand::before {
  content: "";
  width: 3px;
  height: 26px;
  margin-right: 1px;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: center;
  background: linear-gradient(180deg, var(--theme-color-2) 0%, var(--theme-color) 55%, var(--theme-color-4) 100%);
  box-shadow: 0 0 14px rgba(201, 168, 106, 0.35);
}

.v17-head__brand:hover {
  opacity: 1;
}

.v17-head__brand:hover .v17-head__logo {
  transform: scale(1.04);
  box-shadow:
    0 4px 20px rgba(201, 168, 106, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.v17-head__brand:hover .v17-head__name {
  color: var(--text-color-1);
}

.v17-head__brand:focus-visible {
  outline: 2px solid rgba(201, 168, 106, 0.45);
  outline-offset: 4px;
  border-radius: 10px;
}

.v17-head__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dfc59a 0%, #947241 48%, #4a3a24 100%);
  color: #141110;
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
  box-shadow:
    0 2px 16px rgba(176, 142, 88, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.v17-head__logo-svg {
  width: 17px;
  height: 17px;
  display: block;
  transform: translateX(1px);
}

.v17-head__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  max-width: 11em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-color-2);
  transition: color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .v17-head__brand:hover .v17-head__logo {
    transform: none;
  }

  .v17-head__logo {
    transition-duration: 0.01ms;
  }

  .v17-head__name {
    transition-duration: 0.01ms;
  }
}

.v17-head__nav {
  grid-column: 2;
  display: none;
  justify-self: center;
  margin-left: 0;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 241, 235, 0.98) 100%);
  border: 1px solid var(--line-soft);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 22px rgba(62, 54, 44, 0.06);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

@media (min-width: 880px) {
  .v17-head__nav {
    display: flex;
  }
}

.v17-head__nav a {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--text-color-2);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.04em;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

body.v17 .v17-head__nav a:hover {
  color: var(--theme-color);
  background: rgba(201, 168, 106, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transform: translateY(-0.5px);
}

body.v17 .v17-head__nav a.is-on {
  color: #141110;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, var(--theme-color) 0%, #dfc59a 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 18px rgba(176, 142, 88, 0.35),
    0 0 0 1px rgba(201, 168, 106, 0.35);
}

.v17-head__nav a.is-on::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .v17-head__nav a {
    transition-duration: 0.01ms;
  }

  body.v17 .v17-head__nav a:hover {
    transform: none;
  }
}

.v17-head__tools {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.v17-head__searchwrap {
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 顶栏搜索：胶囊 + 内嵌图标钮（与纸感底统一，避免大金饼渐变） */
.v17-head__search {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f7f3ed 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 6px 18px rgba(62, 54, 44, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v17-head__search:focus-within {
  border-color: rgba(154, 115, 68, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 22px rgba(62, 54, 44, 0.07),
    0 0 0 3px rgba(201, 168, 106, 0.18);
}

.v17-head__search input {
  border: 0;
  background: #faf8f5;
  border-radius: 999px;
  padding: 9px 10px 9px 14px;
  min-height: 36px;
  min-width: 52px;
  width: 120px;
  max-width: 26vw;
  font: inherit;
  font-size: 13px;
  outline: none;
  color: var(--text-color-1);
  flex: 1 1 auto;
  box-shadow: 0 1px 2px rgba(62, 54, 44, 0.06) inset;
}

.v17-head__search input::placeholder {
  color: var(--text-color-3);
  letter-spacing: 0.02em;
}

.v17-head__search button {
  border: 1px solid rgba(62, 54, 44, 0.08);
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-color-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f3f0eb 0%, #e9e4dc 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.v17-head__search button:hover {
  color: var(--theme-color);
  border-color: rgba(154, 115, 68, 0.22);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.2) 0%, rgba(201, 168, 106, 0.1) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 10px rgba(154, 115, 68, 0.12);
}

.v17-head__search button:active {
  transform: scale(0.97);
}

.v17-head__search button:focus-visible {
  outline: 2px solid rgba(201, 168, 106, 0.55);
  outline-offset: 2px;
}

.v17-head__search-ico {
  display: block;
  width: 18px;
  height: 18px;
  line-height: 0;
  overflow: hidden;
  text-indent: -99px;
  white-space: nowrap;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .v17-head__search button {
    transition-duration: 0.01ms;
  }

  .v17-head__search button:active {
    transform: none;
  }
}

.v17-head__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(62, 54, 44, 0.07);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.v17-head__burger:hover {
  border-color: rgba(154, 115, 68, 0.28);
  background: #fffefb;
}

@media (min-width: 880px) {
  .v17-head__burger {
    display: none;
  }
}

.v17-head__burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-color-1);
  border-radius: 1px;
}

/* 抽屉：圆角面板 + 顶栏 + 卡片式导航（与顶栏 v17 风格统一） */
/* 关闭态用 display:none，避免全屏 fixed 层在部分浏览器仍参与命中测试，顶栏按钮点不动 */
.v17-drawer {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
}

.v17-drawer.is-open {
  display: block;
  z-index: 650;
}

.v17-drawer__bg {
  position: absolute;
  inset: 0;
  background: rgba(44, 38, 32, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.v17-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(165deg, #fffefb 0%, #faf6f0 45%, #f3ebe2 100%);
  border: 1px solid var(--line-soft);
  border-right: 0;
  box-shadow: -16px 0 48px rgba(62, 54, 44, 0.12);
}

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

.v17-drawer__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.14) 0%, rgba(255, 253, 250, 0.95) 100%);
}

.v17-drawer__brand {
  min-width: 0;
  flex: 1;
}

.v17-drawer__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-color-3);
  margin-bottom: 4px;
}

.v17-drawer__sitename {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color-1);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v17-drawer__close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(62, 54, 44, 0.07);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text-color-2);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.v17-drawer__close:hover {
  background: #fffefb;
  border-color: rgba(154, 115, 68, 0.28);
  color: var(--text-color-1);
}

.v17-drawer__close:active {
  transform: scale(0.96);
}

.v17-drawer__close-ico {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.v17-drawer__close-ico::before,
.v17-drawer__close-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.v17-drawer__close-ico::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.v17-drawer__close-ico::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.v17-drawer__nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(28px + env(safe-area-inset-bottom, 0px)) 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v17-drawer__a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 4px 14px rgba(62, 54, 44, 0.05);
  color: var(--text-color-1);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.v17-drawer__a::after {
  content: "›";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-color-3);
  line-height: 1;
  transform: translateY(-1px);
}

.v17-drawer__a:hover {
  border-color: rgba(154, 115, 68, 0.22);
  background: #fffefb;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 6px 18px rgba(62, 54, 44, 0.07);
}

.v17-drawer__a:hover::after {
  color: rgba(201, 168, 106, 0.65);
}

body.v17 .v17-drawer .v17-drawer__a:hover {
  color: var(--text-color-1);
}

body.v17 .v17-drawer__a.is-on {
  color: #141110;
  font-weight: 600;
  border-color: rgba(154, 115, 68, 0.35);
  background: linear-gradient(105deg, rgba(201, 168, 106, 0.28) 0%, rgba(232, 217, 192, 0.5) 55%);
  box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.2), 0 6px 18px rgba(62, 54, 44, 0.08);
}

body.v17 .v17-drawer__a.is-on::after {
  color: rgba(20, 17, 16, 0.55);
}

body.v17 .v17-drawer .v17-drawer__a.is-on:hover {
  color: var(--theme-color);
}

.v17-drawer__a--search {
  margin-top: 4px;
  border-style: dashed;
  border-color: rgba(154, 115, 68, 0.22);
  background: rgba(255, 253, 250, 0.95);
  justify-content: center;
  min-height: 48px;
}

.v17-drawer__a--search::after {
  content: "⌕";
  font-size: 18px;
  font-weight: 600;
  transform: none;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .v17-drawer__panel {
    transition-duration: 0.01ms;
  }

  .v17-drawer__close:active {
    transform: none;
  }
}

/* —— 主区 —— */
.v17-main {
  position: relative;
  z-index: 0;
  max-width: var(--v17-max);
  margin: 0 auto;
  padding: 18px clamp(12px, 2.5vw, 20px) 44px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.v17-main.v17-showhub,
.v17-main.v17-listhub {
  width: 100%;
  min-width: 0;
}

.v17-main::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 96vw);
  height: 220px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse closest-side, rgba(201, 168, 106, 0.12), transparent 72%);
}

/* 推荐横滑：白卡片容器 + 左侧渐变装饰条 */
.v17-slides {
  position: relative;
  margin-bottom: 20px;
  padding: 14px 14px 10px 20px;
  background: var(--bg-color-2);
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.v17-slides::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  pointer-events: none;
  background: linear-gradient(180deg, var(--theme-color), var(--theme-color-2) 45%, var(--theme-color-4));
  opacity: 0.9;
}

.v17-slides::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 56px;
  height: 56px;
  pointer-events: none;
  opacity: 0.12;
  background: radial-gradient(circle at 30% 30%, var(--theme-color-2), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--theme-color-4), transparent 50%);
  border-radius: 50%;
  filter: blur(0.5px);
}

.v17-slides__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.v17-slide {
  flex: 0 0 clamp(110px, 22vw, 150px);
  scroll-snap-align: start;
}

.v17-slide__link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #e5dfd6;
  aspect-ratio: var(--v17-poster-ar);
  box-shadow: 0 6px 18px rgba(62, 54, 44, 0.09);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.v17-slide__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 28px 28px;
  border-color: transparent transparent rgba(201, 168, 106, 0.4) transparent;
  z-index: 2;
  pointer-events: none;
}

.v17-slide__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.v17-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.v17-slide__tit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px 8px 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 两栏 */
.v17-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.v17-grid2--hall {
  margin-bottom: 22px;
  align-items: stretch;
}

.v17-section__main {
  min-width: 0;
}

@media (min-width: 980px) {
  .v17-grid2 {
    grid-template-columns: 1fr minmax(280px, 300px);
  }
}

/* 白卡片 + hover 浮起 */
.v17-panel {
  margin-bottom: 18px;
}

.v17-ly,
.v17-panel.v17-block,
.v17-rankbox {
  background-color: var(--bg-color-2);
  background-image: radial-gradient(ellipse 120% 80% at 100% 0%, rgba(201, 168, 106, 0.04), transparent 55%);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 16px 18px 18px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.v17-ly:hover,
.v17-panel.v17-block:hover,
.v17-rankbox:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.v17-block {
  position: relative;
  overflow: visible;
}

/* 参考图：分区白卡片无顶彩条，保持干净顶边 */
.v17-block::before {
  display: none;
}

.v17-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* 电影/电视剧等分区头：Grid 固定左标题列 / 右子类列，避免 flex 换行错位 */
.v17-panel__head--hall {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #dcd6cc;
}

.v17-panel__head--hall .v17-panel__h--hall {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

/* 右侧：参考门户 — 浅灰文字 + / 分隔 +「更多」同行右对齐 */
.v17-panel__head-aside {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.v17-panel__head-aside--nomenu {
  justify-content: flex-end;
}

/* 子类与「更多」并排：桌面与侧栏标题区对齐；手机端见下方 media */
.v17-panel__head-aside-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.v17-panel__h--hall {
  overflow: visible;
  min-height: auto;
  border-radius: 0;
  align-items: center;
}

.v17-panel__h--hall::after {
  display: none;
}

.v17-panel__h--hall:hover .v17-panel__h-txt {
  color: var(--text-color-1);
}

.v17-panel__h-ico--film {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--theme-color);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(201, 168, 106, 0.35);
}

.v17-block--movie .v17-panel__h-ico--film {
  background: linear-gradient(145deg, #b89458, #6a5230);
  box-shadow: 0 2px 12px rgba(176, 142, 88, 0.4);
}

.v17-block--tv .v17-panel__h-ico--film {
  background: linear-gradient(145deg, #6b5a6e, #3d343f);
  box-shadow: 0 2px 12px rgba(120, 108, 128, 0.38);
}

.v17-block--variety .v17-panel__h-ico--film {
  background: linear-gradient(145deg, #c9a080, #7a4f38);
  box-shadow: 0 2px 12px rgba(180, 130, 96, 0.38);
}

.v17-block--cartoon .v17-panel__h-ico--film {
  background: linear-gradient(145deg, #7d8a9a, #4a5562);
  box-shadow: 0 2px 12px rgba(110, 125, 140, 0.38);
}

.v17-panel__h-ico--film .v17-icon-film,
.v17-panel__h-ico--film .v17-icon-tv,
.v17-panel__h-ico--film .v17-icon-star,
.v17-panel__h-ico--film .v17-icon-toon {
  display: block;
  width: 22px;
  height: 22px;
}

.v17-panel__h--hall .v17-panel__h-txt {
  padding: 0 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color-1);
}

.v17-panel__head-aside .v17-subcats--hall {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  row-gap: 4px;
  margin: 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-color-3);
}

.v17-panel__head-aside .v17-subcat--bar {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  color: #999999;
  text-decoration: none;
  white-space: nowrap;
}

.v17-panel__head-aside .v17-subcat--bar:hover {
  color: var(--theme-color);
}

.v17-panel__head-aside .v17-subcat-sep {
  flex: 0 0 auto;
  color: #cccccc;
  font-size: inherit;
  line-height: inherit;
  user-select: none;
  padding: 0 5px;
}

.v17-panel__head-aside-inner .v17-panel__more--hall {
  flex: 0 0 auto;
  margin: 0 0 0 10px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 1px solid #e3e5e8;
  border-radius: 0;
  background: none;
  min-height: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  color: #999999;
  text-decoration: none;
  white-space: nowrap;
}

.v17-panel__head-aside-inner .v17-panel__more--hall:hover {
  color: var(--theme-color);
  background: none;
}

.v17-panel__head-aside--nomenu .v17-panel__more--hall {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 13px;
  color: #999999;
}

.v17-panel__head-aside--nomenu .v17-panel__more--hall:hover {
  color: var(--theme-color);
}

/* 手机：分区头两行 — 标题独占一行；子类单行横向滑动，「更多」固定右侧不挤进换行 */
@media (max-width: 719px) {
  .v17-panel__head--hall {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 10px;
  }

  .v17-panel__head--hall .v17-panel__h--hall {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .v17-panel__head--hall .v17-panel__head-aside {
    grid-column: 1;
    grid-row: 2;
    justify-content: stretch;
  }

  .v17-panel__head-aside-inner {
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100%;
  }

  .v17-panel__head-aside-inner .v17-subcats--hall {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3px;
    margin: 0;
    font-size: 12px;
    scrollbar-width: thin;
  }

  .v17-panel__head-aside-inner .v17-subcats--hall::-webkit-scrollbar {
    height: 3px;
  }

  .v17-panel__head-aside-inner .v17-subcats--hall::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
  }

  .v17-panel__head-aside-inner .v17-panel__more--hall {
    flex: 0 0 auto;
    margin: 0 0 0 6px;
    padding: 0 0 0 10px;
    font-size: 12px;
  }

  .v17-panel__h--hall .v17-panel__h-txt {
    font-size: 16px;
  }

  .v17-panel__h--hall .v17-panel__h-ico--film {
    width: 36px;
    height: 36px;
  }

  .v17-panel__h-ico--film .v17-icon-film,
  .v17-panel__h-ico--film .v17-icon-tv,
  .v17-panel__h-ico--film .v17-icon-star,
  .v17-panel__h-ico--film .v17-icon-toon {
    width: 20px;
    height: 20px;
  }
}

/* 区块标题：左侧红条 + hover 铺满 + 字变白 */
.v17-panel__h {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  position: relative;
  min-height: 40px;
  border-radius: 5px;
  overflow: hidden;
}

.v17-panel__h::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: var(--theme-color);
  border-radius: 5px;
  z-index: 0;
  transition: width 0.28s ease;
}

.v17-panel__h:hover::after {
  width: 100%;
  box-shadow: var(--theme-shadow);
}

.v17-panel__h-ico {
  position: relative;
  z-index: 1;
  width: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
}

.v17-panel__h-txt {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 0 14px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color-1);
  transition: color 0.22s ease;
  letter-spacing: 0.02em;
}

.v17-panel__h:hover .v17-panel__h-txt {
  color: #fff;
}

.v17-panel__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-color-2);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250, 159, 66, 0.12);
  transition: background 0.2s, color 0.2s;
}

.v17-panel__more:hover {
  color: var(--theme-color);
  background: rgba(201, 168, 106, 0.1);
}

.v17-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 14px;
}

.v17-subcats a {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--bg-color-1);
  color: var(--text-color-2);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.v17-subcats a:hover {
  border-color: rgba(201, 168, 106, 0.45);
  color: var(--theme-color);
  background: var(--bg-color-2);
}

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

@media (min-width: 520px) {
  .v17-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .v17-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .v17-tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .v17-tiles--dense {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* 分区主列表 / 栏目列表：与参考图一致约 4 列（宽屏不再加第 5 列） */
.v17-tiles--hall,
.v17-tiles--list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

@media (min-width: 520px) {
  .v17-tiles--hall,
  .v17-tiles--list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .v17-tiles--hall,
  .v17-tiles--list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 首页分区：无侧栏热榜时全宽，多列平铺（列表页 body 为 v17--list 不受影响） */
body.v17.v17--home .v17-tiles--hall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 480px) {
  body.v17.v17--home .v17-tiles--hall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  body.v17.v17--home .v17-tiles--hall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  body.v17.v17--home .v17-tiles--hall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  body.v17.v17--home .v17-tiles--hall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  body.v17.v17--home .v17-tiles--hall {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* 影片卡 */
.v17-tile {
  min-width: 0;
}

.v17-tile__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.v17-tile__pic {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: var(--v17-poster-ar);
  background: #dcd6cc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.v17-tile__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 58%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.v17-tile__link:hover .v17-tile__pic::after {
  transform: translateX(120%);
}

.v17-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.32s ease;
}

.v17-tile__link:hover .v17-tile__img {
  transform: scale(1.06);
}

.v17-tile__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  max-width: calc(100% - 8px);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7d6b52, #4d5c50);
  border-radius: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v17-tile__score {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #d4bc87 0%, #9a7344 100%);
  border-radius: 4px;
  line-height: 1.35;
  box-shadow: 0 1px 5px rgba(201, 168, 106, 0.45);
}

.v17-tile__fmt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  border-radius: 0;
  pointer-events: none;
  line-height: 1.25;
}

.v17-tile__tit {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color-1);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v17-tile__link:hover .v17-tile__tit {
  color: var(--theme-color);
}

.v17-tile__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-color-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v17-tile__cast {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--text-color-3);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分类/列表封面卡：右上红标 + 居中播放 + 左下地区年份（叠在海报上） */
.v17-tile--cover .v17-tile__img {
  position: relative;
  z-index: 0;
}

.v17-tile--cover .v17-tile__pic::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);
}

.v17-tile--cover .v17-tile__pic::after {
  display: none;
}

.v17-tile--cover .v17-tile__link:hover .v17-tile__pic::after {
  display: none;
}

.v17-tile--cover .v17-tile__badge {
  top: 8px;
  right: 8px;
  left: auto;
  bottom: auto;
  z-index: 5;
  max-width: calc(100% - 16px);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #8b4a42, #5c2e2a);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* 封面卡：播放钮默认隐藏，悬停 / 键盘聚焦时再出现 */
.v17-tile--cover .v17-tile__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.v17-tile--cover .v17-tile__link:hover .v17-tile__play,
.v17-tile--cover .v17-tile__link:focus-visible .v17-tile__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .v17-tile--cover .v17-tile__play {
    transition: none;
  }
}

.v17-tile--cover .v17-tile__play-svg {
  width: 52px;
  height: 52px;
  display: block;
}

.v17-tile--cover .v17-tile__meta {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 5;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v17-tile--cover .v17-tile__cast {
  -webkit-line-clamp: 1;
}

/* 侧栏热榜 */
.v17-side {
  position: sticky;
  top: calc(var(--v17-head-h) + 12px);
}

.v17-rankbox {
  position: relative;
  padding-top: 16px;
  overflow: hidden;
  border-radius: 8px;
}

.v17-rankbox::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(
    90deg,
    var(--theme-color) 0%,
    var(--theme-color-2) 33%,
    var(--theme-color-3) 66%,
    var(--theme-color-4) 100%
  );
}

.v17-rankbox::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -10px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background: radial-gradient(circle at 50% 50%, rgba(201, 168, 106, 0.1) 0%, transparent 65%),
    radial-gradient(circle at 30% 70%, rgba(158, 160, 168, 0.07) 0%, transparent 55%);
}

/* 侧栏热榜：参考门户 — 无顶彩条、浅红标题区、白折角、角标压海报左下 */
.v17-rankbox--side {
  border-radius: 10px;
  padding-top: 0;
}

.v17-rankbox--side::before {
  display: none;
}

.v17-rankbox--side::after {
  display: none;
}

.v17-rankbox__head {
  position: relative;
  z-index: 2;
  margin: 0 -18px 0 -18px;
  padding: 14px 44px 12px 18px;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.14) 0%, rgba(255, 253, 250, 0.98) 55%, var(--bg-color-2) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.v17-rankbox--side .v17-rankbox__head {
  border-radius: 10px 10px 0 0;
}

.v17-rankbox--side .v17-rank__h--plain {
  margin: 0;
}

/* 侧栏右上角折角（白三角叠在卡片上） */
.v17-rankbox__fold {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 8;
  width: 0;
  height: 0;
  border-top: 34px solid #242d42;
  border-left: 34px solid transparent;
  filter: drop-shadow(-1px 2px 2px rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.v17-rankbox--side .v17-rankbox__fold {
  border-top-color: #f0ebe4;
  filter: drop-shadow(-1px 1px 2px rgba(0, 0, 0, 0.35));
}

.v17-rank__h--plain {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  position: relative;
  z-index: 3;
  min-height: 0;
  border-radius: 0;
  overflow: visible;
}

.v17-rank__h--plain::after {
  display: none;
}

.v17-rank__h-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.v17-rank__h--plain .v17-rank__h-txt {
  position: static;
  padding: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-color-1);
}

.v17-rank {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0 2px;
}

.v17-rank__li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.v17-rank__li:last-child {
  border-bottom: 0;
}

.v17-rank__li--top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.v17-rank__li--compact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v17-rank__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #e5dfd6;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: var(--text-color-2);
}

/* 前三名：角标叠在海报左下角 */
.v17-rank__num--onposter {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  z-index: 2;
  pointer-events: none;
}

.v17-rank__li:nth-child(1) .v17-rank__num--onposter {
  background: #e74c3c;
  color: #fff;
}

.v17-rank__li:nth-child(2) .v17-rank__num--onposter {
  background: #f39c12;
  color: #fff;
}

.v17-rank__li:nth-child(3) .v17-rank__num--onposter {
  background: #45b884;
  color: #fff;
}

.v17-rank__thumb {
  position: relative;
  display: block;
  width: 56px;
  height: 76px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #dcd6cc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.v17-rank__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.v17-rank__body {
  min-width: 0;
}

.v17-rank__a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color-1);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v17-rank__a:hover {
  color: var(--theme-color);
}

/* 前三名标题：更大更粗（写在通用 .v17-rank__a 之后以免被覆盖） */
.v17-rank__li--top .v17-rank__a {
  font-size: 14px;
  font-weight: 700;
  color: #1f2329;
  line-height: 1.35;
}

/* 参考图：第 2 名标题偏橙红强调 */
.v17-rank__li:nth-child(2) .v17-rank__a {
  color: #e85b38;
}

.v17-rank__li:nth-child(2) .v17-rank__a:hover {
  color: var(--theme-color);
}

.v17-rank__a--single {
  display: block;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  font-weight: 500;
  font-size: 13px;
}

.v17-rank__genre {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-color-3);
  line-height: 1.3;
}

.v17-rank__cast {
  margin: 5px 0 0;
  font-size: 12px;
  color: #8b9099;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v17-rank__heat {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8b9099;
}

.v17-rank__li--compact .v17-rank__num {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: #e8eaef;
  color: #5c6370;
  font-weight: 700;
  font-size: 11px;
}

.v17-rank__meta {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--text-color-3);
}

.v17-empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-color-2);
  font-size: 14px;
}

.v17-panel.v17-empty {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 28px 20px;
}

/* 页脚 */
.v17-foot {
  position: relative;
  max-width: var(--v17-max);
  margin: 0 auto;
  padding: 34px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-color-2);
  text-align: center;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.06), rgba(62, 54, 44, 0.03));
}

.v17-foot::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  transform: translateY(-99%);
  pointer-events: none;
  background-image: var(--v17-deco-wave);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
  opacity: 0.95;
}

.v17-foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.v17-foot__links a {
  color: var(--text-color-2);
  text-decoration: none;
}

.v17-foot__links a:hover {
  color: var(--theme-color);
}

/* —— 分类总览页 v17--cathub —— */
.v17-cathub {
  max-width: var(--v17-max);
  margin: 0 auto;
}

.v17-cathub__crumbs {
  margin: 0 0 12px;
  font-size: 13px;
}

.v17-cathub__intro {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-color-2);
  line-height: 1.55;
}

.v17-catgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .v17-catgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .v17-catgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.v17-catcard {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.v17-catcard:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.v17-catcard__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
}

.v17-catcard__glyph {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #dfc59a 0%, #947241 48%, #4a3a24 100%);
  color: #141110;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  box-shadow:
    0 2px 12px rgba(176, 142, 88, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.v17-catcard__body {
  min-width: 0;
  flex: 1;
}

.v17-catcard__name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color-1);
}

.v17-catcard__intro {
  margin: 0;
  font-size: 13px;
  color: var(--text-color-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v17-catcard__go {
  flex-shrink: 0;
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-color);
  white-space: nowrap;
}

.v17-catcard__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px 16px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.55);
}

.v17-catcard__sub {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color-2);
  text-decoration: none;
  background: var(--bg-color-2);
  border: 1px solid #dcd6cc;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.v17-catcard__sub:hover {
  border-color: rgba(201, 168, 106, 0.35);
  color: var(--theme-color);
}

.v17-catgrid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  color: var(--text-color-2);
  font-size: 14px;
}

/* ===== 内容详情页 v17--show（与列表同宽、同卡片语言，仅多一条面包屑） ===== */
body.v17.v17--show .v17-main {
  max-width: min(var(--v17-show-max), 100%);
}

body.v17.v17--search .v17-main {
  max-width: min(var(--v17-search-max), 100%);
}

.v17-showhub {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.v17-show__masthead {
  max-width: 100%;
  margin: 0;
  padding: 0 0 2px;
  width: 100%;
}

.v17-show__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color-2);
}

.v17-show__path a {
  color: var(--text-color-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.v17-show__path a:hover {
  color: var(--theme-color);
  border-bottom-color: rgba(201, 168, 106, 0.45);
}

.v17-show__path-sep {
  color: var(--text-color-3);
  user-select: none;
}

.v17-show__path-here {
  color: var(--text-color-1);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.v17-showhub .v17-show {
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
}

.v17-show__shell {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: var(--card-shadow);
}

/* 主信息卡：与列表白卡一致，避免「另一套皮肤」 */
.v17-show__shell--hero {
  border-radius: 16px;
}

/* 播放列表 / 正文：与主卡同宽，版面一条线对齐 */
.v17-showhub .v17-show__shell--pad {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
}

.v17-show__shell--pad {
  padding: 20px;
}

.v17-show__hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.v17-show__col-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  align-items: center;
  width: 100%;
  max-width: min(300px, 92vw);
  margin: 0 auto;
}

.v17-show__posterbox {
  border-radius: 12px;
  overflow: hidden;
  background: #dcd6cc;
  aspect-ratio: var(--v17-poster-ar);
  width: 100%;
  max-width: min(300px, 100%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
}

.v17-show__posterbox a {
  display: block;
  height: 100%;
}

.v17-show__posterbox img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.v17-show__main {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.v17-show__title {
  margin: 0;
  font-size: clamp(20px, 4.2vw, 28px);
  font-weight: 800;
  color: var(--text-color-1);
  letter-spacing: 0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v17-show__tip {
  margin: 0;
  color: var(--text-color-3);
  font-size: 12px;
  line-height: 1.55;
}

.v17-drows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 12px;
}

.v17-drow {
  font-size: 13px;
  color: var(--text-color-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}

.v17-dk {
  color: var(--text-color-3);
  margin-right: 6px;
}

.v17-douban-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  color: var(--theme-color);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.v17-douban-chip:hover {
  border-color: var(--theme-color);
  box-shadow: 0 2px 10px rgba(201, 168, 106, 0.15);
}

.v17-douban-empty {
  color: var(--text-color-3);
}

.v17-douban-chip-ico {
  margin-left: 2px;
  flex-shrink: 0;
}

.v17-show__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.v17-showbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color-2);
  background: var(--bg-color-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.v17-showbtn:hover {
  border-color: rgba(201, 168, 106, 0.45);
  color: var(--theme-color);
  box-shadow: 0 2px 12px rgba(201, 168, 106, 0.1);
}

.v17-showbtn--play {
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #141110;
  background: linear-gradient(135deg, #d4bc87 0%, #b89458 52%, #6a5230 100%);
  box-shadow: var(--theme-shadow);
}

.v17-showbtn--play:hover {
  color: #141110;
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(201, 168, 106, 0.35);
}

.v17-showbtn--play .v17-showbtn__ico {
  flex-shrink: 0;
}

.v17-showbtn--ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(62, 54, 44, 0.12);
  color: var(--text-color-2);
}

body.v17.v17--show .v17-showbtn--play:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 3px;
}

.v17-show__h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-color-1);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v17-show__h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--theme-color-2) 0%, var(--theme-color) 45%, var(--theme-color-4) 100%);
  box-shadow: 0 2px 10px rgba(201, 168, 106, 0.3);
}

.v17-show__h2--reco {
  margin-bottom: 14px;
}

.v17-show__subh {
  margin: 0 0 12px;
  color: var(--text-color-3);
  font-size: 12px;
}

.v17-show__playstack {
  display: grid;
  gap: 12px;
}

.v17-show__line {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 253, 250, 0.92);
}

.v17-show__linehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.1) 0%, rgba(255, 253, 250, 0.96) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.v17-show__h3 {
  margin: 0;
  font-size: 14px;
  color: var(--theme-color);
  font-weight: 800;
  min-width: 0;
  flex: 1 1 auto;
  word-break: break-word;
}

.v17-show__line-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}

.v17-show__pill {
  font-size: 11px;
  color: var(--text-color-3);
  font-weight: 600;
}

.v17-show__hint {
  font-size: 11px;
  color: var(--text-color-3);
  line-height: 1.35;
  max-width: 220px;
}

.v17-show__epdeck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--bg-color-2);
}

.v17-show__ep {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  color: var(--text-color-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.v17-show__ep:hover {
  border-color: rgba(201, 168, 106, 0.55);
  color: var(--theme-color);
  box-shadow: 0 2px 14px rgba(201, 168, 106, 0.15);
}

.v17-show__text {
  color: var(--text-color-2);
  line-height: 1.85;
  font-size: 14px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
  .v17-show__text {
    max-width: min(40rem, 100%);
  }
}

.v17-show__text p {
  margin: 0 0 0.7em;
}

.v17-show__text img,
.v17-show__text video,
.v17-show__text iframe,
.v17-show__text embed,
.v17-show__text object {
  max-width: 100% !important;
  height: auto !important;
}

.v17-show__text table {
  display: table;
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 1.1em;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-color-2);
  box-shadow: var(--card-shadow);
}

.v17-show__text td,
.v17-show__text th {
  word-break: break-word;
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  vertical-align: middle;
}

.v17-show__text th {
  background: rgba(201, 168, 106, 0.1);
  color: var(--text-color-1);
  font-weight: 700;
}

.v17-show__text a[href*="/play/"],
.v17-show__text a[href*="/Play/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  margin: 4px 8px 4px 0;
  border-radius: 8px;
  border: 1px solid rgba(154, 115, 68, 0.28);
  background: linear-gradient(180deg, #faf6f0 0%, #ebe3d8 100%);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color-1);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(62, 54, 44, 0.08);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.v17-show__text a[href*="/play/"]:hover,
.v17-show__text a[href*="/Play/"]:hover {
  border-color: rgba(201, 168, 106, 0.55);
  color: var(--theme-color);
  box-shadow: 0 4px 14px rgba(201, 168, 106, 0.15);
}

.v17-show__text > div:first-of-type:has(a[href*="/play/"]),
.v17-show__text > div:first-of-type:has(a[href*="/Play/"]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 1.15em;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg-color-2);
  box-shadow: var(--card-shadow);
}

.v17-show__text > div:first-of-type:has(a[href*="/play/"]) > strong,
.v17-show__text > div:first-of-type:has(a[href*="/Play/"]) > strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-color-1);
  margin: 0;
}

.v17-show__text > div:first-of-type:has(a[href*="/play/"]) > span,
.v17-show__text > div:first-of-type:has(a[href*="/Play/"]) > span {
  float: none !important;
  font-size: 12px;
  color: var(--text-color-3);
  line-height: 1.4;
  max-width: min(100%, 260px);
  text-align: right;
  justify-self: end;
}

.v17-show__text > div:first-of-type:has(a[href*="/play/"]) > a[href*="/play/"],
.v17-show__text > div:first-of-type:has(a[href*="/Play/"]) > a[href*="/Play/"] {
  grid-column: 1 / -1;
  justify-self: start;
}

.v17-show__text pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.v17-show__reco {
  min-width: 0;
  max-width: 100%;
}

.v17-show__reco-panel {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 18px 16px 22px;
  box-shadow: var(--card-shadow);
}

.v17-show__reco-panel .v17-tiles--list {
  padding: 0;
}

.v17-show__emptyblk {
  grid-column: 1 / -1;
  color: var(--text-color-3);
  font-size: 13px;
  padding: 12px 0;
  margin: 0;
}

/* 电脑端：整体收窄 + 海报列固定上限 + 右侧信息区不随屏宽无限拉长 */
@media (min-width: 880px) {
  .v17-show__shell,
  .v17-show__shell--pad {
    padding: 18px 20px;
  }

  .v17-show__hero {
    display: grid;
    grid-template-columns: min(216px, 30%) minmax(0, 1fr);
    align-items: start;
    column-gap: 22px;
    row-gap: 18px;
    justify-content: start;
  }

  .v17-show__col-media {
    margin: 0;
    max-width: 216px;
    width: 100%;
    align-items: center;
    align-self: start;
  }

  .v17-show__posterbox {
    max-width: 100%;
  }

  .v17-showbtn.v17-showbtn--play {
    width: auto;
    min-width: 168px;
    max-width: 100%;
    margin: 0;
    align-self: center;
    box-sizing: border-box;
    padding-left: 22px;
    padding-right: 22px;
  }

  .v17-show__main {
    max-width: min(38rem, 100%);
    margin: 0;
    min-width: 0;
    justify-self: start;
    width: 100%;
  }

  .v17-show__title {
    font-size: clamp(21px, 1.9vw, 26px);
  }

  .v17-drows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    max-width: 100%;
    row-gap: 0;
  }

  .v17-show__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .v17-show__actions .v17-showbtn--ghost {
    flex: 0 1 auto;
  }

  .v17-show__epdeck {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px 10px;
  }

  .v17-show__linehead {
    flex-wrap: nowrap;
  }

  .v17-show__line-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .v17-show__hint {
    text-align: right;
    max-width: 280px;
  }
}

@media (min-width: 1200px) {
  .v17-show__hero {
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 26px;
  }

  .v17-show__col-media {
    max-width: 220px;
  }

  .v17-show__shell,
  .v17-show__shell--pad {
    padding: 20px 22px;
  }
}

/* ===== 播放页 v17--play ===== */
.v17-main.v17-playhub {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.v17-playhub {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.v17-playhub .v17-play__inner {
  display: grid;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
}

.v17-playhub .v17-play__stage-wrap,
.v17-playhub .v17-play__playlist,
.v17-playhub .v17-play__headline,
.v17-playhub .v17-play__card,
.v17-playhub .v17-play__rec {
  min-width: 0;
}

.v17-play__stage,
.v17-play__stage .video-frame--v17-play {
  width: 100%;
  max-width: 100%;
}

.v17-play__syn-body {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.v17-play__syn-body img,
.v17-play__syn-body table {
  max-width: 100% !important;
  height: auto !important;
}

.v17-play__syn-body iframe {
  max-width: 100%;
}

.v17-play__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  min-width: 0;
}

.v17-play__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-color-3);
  min-width: 0;
}

.v17-play__crumbs a {
  color: var(--text-color-2);
  text-decoration: none;
  max-width: 14em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v17-play__crumbs a:hover {
  color: var(--theme-color);
}

.v17-play__crumbs-sep {
  color: #c5cad3;
  user-select: none;
  padding: 0 2px;
  font-weight: 300;
}

.v17-play__crumbs-here {
  color: var(--text-color-1);
  font-weight: 700;
  white-space: nowrap;
}

.v17-play__backdetail {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-color);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(201, 168, 106, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.v17-play__backdetail:hover {
  border-color: var(--theme-color);
  box-shadow: 0 4px 16px rgba(201, 168, 106, 0.15);
}

.v17-play__playlist {
  background: var(--bg-color-2);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  min-width: 0;
}

.v17-play__playlist-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 240, 236, 0.45) 0%, rgba(255, 255, 255, 0) 92%);
}

.v17-play__playlist-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-color-1);
  letter-spacing: 0.02em;
}

.v17-play__playlist-lead {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-color-3);
  line-height: 1.55;
}

.v17-play__playlist-lead strong {
  color: var(--theme-color);
  font-weight: 700;
}

.v17-play__playlist-empty {
  margin: 0;
  padding: 22px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-color-3);
}

.v17-play__playlist-body .v17-play__src--playlist {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: none;
}

.v17-play__playlist-body .v17-play__src--playlist:last-child {
  border-bottom: 0;
}

.v17-play__stage-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.v17-play__stage {
  border-radius: 12px;
  overflow: hidden;
  background: #1a1d24;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
  max-width: 100%;
}

.v17-play__stage .video-frame--v17-play {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.v17-play__media-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.v17-play__media-shell video,
.v17-play__media-shell iframe,
.v17-play-iframe-wrap,
.v17-play-iframe-wrap iframe,
.v17-play__media-shell #playera1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a1d24;
}

.v17-play__big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #d4bc87 0%, #b89458 50%, #6a5230 100%);
  color: #141110;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 32px rgba(201, 168, 106, 0.35);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}

.v17-play__big-play:hover {
  filter: brightness(1.05);
}

.v17-play__big-play-ico {
  width: 28px;
  height: 28px;
}

.v17-play__media-shell.is-playing .v17-play__big-play {
  opacity: 0;
  pointer-events: none;
}

.v17-play__placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #9aa3b2;
  font-size: 14px;
  padding: 16px;
  text-align: center;
}

.v17-play__headline {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--card-shadow);
}

.v17-play__headline h1 {
  margin: 0;
  font-size: clamp(16px, 4vw, 21px);
  color: var(--text-color-1);
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v17-play__headline h1 a {
  color: inherit;
}

.v17-play__headline h1 a:hover {
  color: var(--theme-color);
}

.v17-play__headline-ep {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4bc87, #947241);
  color: #141110;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(201, 168, 106, 0.25);
}

.v17-play__card {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.v17-play__card-h {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text-color-1);
  font-weight: 800;
}

.v17-play__dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 14px;
}

.v17-play__dl > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.v17-play__dt {
  color: var(--text-color-3);
}

.v17-play__dd {
  color: var(--text-color-2);
  min-width: 0;
  word-break: break-word;
}

.v17-play__dd a {
  color: var(--theme-color);
  font-weight: 600;
}

.v17-play__syn {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 12px;
}

.v17-play__syn-h {
  font-size: 12px;
  color: var(--text-color-3);
  margin: 0 0 8px;
  font-weight: 600;
}

.v17-play__syn-body {
  font-size: 13px;
  color: var(--text-color-2);
  line-height: 1.85;
}

.v17-play__src {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.v17-play__src-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.1) 0%, rgba(255, 253, 250, 0.97) 100%);
  gap: 10px;
  flex-wrap: wrap;
}

.v17-play__src-h strong {
  color: var(--theme-color);
  font-size: 13px;
  font-weight: 800;
}

.v17-play__src-h span {
  font-size: 12px;
  color: var(--text-color-3);
}

.v17-play__pl {
  margin: 0;
  padding: 12px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  background: var(--bg-color-2);
}

.v17-play__pl li a {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.v17-play__pl li a:hover {
  border-color: rgba(201, 168, 106, 0.45);
  color: var(--theme-color);
  box-shadow: 0 2px 14px rgba(201, 168, 106, 0.12);
}

.v17-play__pl li a.active {
  background: linear-gradient(135deg, #d4bc87, #947241);
  color: #141110;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(176, 142, 88, 0.35);
}

.v17-play__rec {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 16px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  min-width: 0;
}

.v17-play__rec-h {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-color-1);
  font-weight: 800;
}

.v17-play__rec-lead {
  margin: 0 0 14px;
  color: var(--text-color-3);
  font-size: 12px;
  line-height: 1.55;
}

.v17-play__rec .v17-tiles--list {
  padding: 0;
}

/* 电脑宽屏：左侧播放器 + 右侧选集（sticky），信息卡仍在主列；避免整页一条窄条 */
@media (min-width: 961px) {
  .v17-playhub .v17-play__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    column-gap: 22px;
    row-gap: 18px;
    align-items: start;
  }

  .v17-play__topbar {
    grid-column: 1 / -1;
  }

  .v17-play__stage-wrap {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
  }

  .v17-play__playlist {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: start;
    max-height: calc(100vh - var(--v17-head-h) - 32px);
    max-height: calc(100dvh - var(--v17-head-h) - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: calc(var(--v17-head-h) + 10px);
    box-sizing: border-box;
  }

  .v17-play__headline {
    grid-column: 1;
    grid-row: 3;
  }

  .v17-play__card {
    grid-column: 1;
    grid-row: 4;
    max-width: 100%;
  }

  .v17-play__rec {
    grid-column: 1 / -1;
    width: 100%;
  }

  .v17-play__playlist .v17-play__pl {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 6px;
  }

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

@media (min-width: 1200px) {
  .v17-play__dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .v17-playhub .v17-play__inner {
    grid-template-columns: 1fr;
  }

  .v17-play__stage-wrap,
  .v17-play__playlist,
  .v17-play__headline,
  .v17-play__card {
    grid-column: auto;
    grid-row: auto;
  }

  .v17-play__playlist {
    position: static;
    max-height: none;
    overflow-x: visible;
    overflow-y: visible;
  }

  .v17-play__dl {
    grid-template-columns: 1fr;
  }

  .v17-play__dl > div {
    grid-template-columns: 58px 1fr;
  }

  .v17-play__headline {
    padding: 10px 14px;
  }

  .v17-play__card,
  .v17-play__src,
  .v17-play__rec {
    padding: 14px;
  }

  .v17-play__stage {
    border-radius: 10px;
  }

  .v17-play__pl {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }

  .v17-play__playlist-head {
    padding: 12px 14px;
  }

  .v17-play__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .v17-play__backdetail {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .v17-show__hero {
    gap: 16px;
  }

  .v17-show__posterbox {
    max-width: min(92vw, 280px);
  }

  .v17-showbtn.v17-showbtn--play {
    width: 100%;
    max-width: min(92vw, 280px);
    margin: 0 auto;
    justify-content: center;
  }

  .v17-show__main {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .v17-show__actions {
    justify-content: center;
  }

  .v17-show__actions .v17-showbtn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

/* 列表页 v17--list */
.v17-listhub {
  max-width: var(--v17-max);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.v17-listpanel {
  background: var(--bg-color-2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 0;
  margin-bottom: 22px;
  overflow: hidden;
}

.v17-listpanel .v17-tiles--list {
  padding: 4px 16px 20px;
}

.v17-listhead {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.v17-listhead__top {
  padding: 22px 20px 20px;
  background: linear-gradient(155deg, rgba(255, 248, 240, 0.65) 0%, rgba(255, 255, 255, 0.98) 48%, #f5f1eb 100%);
  border-bottom: 1px solid var(--line-soft);
}

.v17-listhead__titles {
  min-width: 0;
}

.v17-listhead__h {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-color-1);
  line-height: 1.2;
}

.v17-listhead__h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--theme-color-2) 0%, var(--theme-color) 45%, var(--theme-color-4) 100%);
  box-shadow: 0 2px 14px rgba(201, 168, 106, 0.35);
}

.v17-listhead__intro {
  margin: 0;
  max-width: 48em;
  font-size: 13px;
  color: var(--text-color-3);
  line-height: 1.65;
}

.v17-listsub {
  margin: 0;
  padding: 16px 16px 14px;
  border-top: 0;
  background: linear-gradient(180deg, #f5f1eb 0%, #faf8f5 32%, var(--bg-color-2) 100%);
}

.v17-listsub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.v17-listsub__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color-1);
  letter-spacing: 0.06em;
}

.v17-listsub__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-color), var(--theme-color-2));
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.15);
}

.v17-listsub__hint {
  font-size: 11px;
  font-weight: 500;
  color: #a8b0ba;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .v17-listsub__hint {
    display: none;
  }
}

.v17-listsub__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -6px;
  padding: 2px 6px 8px;
  scrollbar-width: thin;
}

.v17-listsub__scroll::-webkit-scrollbar {
  height: 4px;
}

.v17-listsub__scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.v17-listsub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.v17-listsub__list a {
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color-2);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 253, 250, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.v17-listsub__list a:hover {
  border-color: rgba(201, 168, 106, 0.4);
  color: var(--theme-color);
  box-shadow: 0 8px 22px rgba(201, 168, 106, 0.12);
  transform: translateY(-1px);
}

.v17-listsub__list li.is-on a {
  color: #141110;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(135deg, #d4bc87 0%, #b89458 48%, #6a5230 100%);
  box-shadow: 0 8px 22px rgba(176, 142, 88, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .v17-listsub__list a {
    transition-duration: 0.01ms;
  }

  .v17-listsub__list a:hover {
    transform: none;
  }
}

.v17-listsort {
  margin: 0;
  padding: 14px 16px 18px;
  background: var(--bg-color-2);
  border-top: 1px solid var(--line-soft);
}

.v17-listsort__track {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.v17-listsort__ul {
  list-style: none;
  margin: 0;
  padding: 5px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 241, 235, 0.98) 100%);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.v17-listsort__ul li a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color-2);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.v17-listsort__ul li.is-active a {
  color: #141110;
  font-weight: 700;
  background: linear-gradient(180deg, var(--theme-color) 0%, #dfc59a 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 18px rgba(176, 142, 88, 0.35),
    0 0 0 1px rgba(201, 168, 106, 0.35);
}

.v17-listsort__ul li:not(.is-active) a:hover {
  color: var(--text-color-1);
  background: rgba(201, 168, 106, 0.14);
}

/* 搜索页 v17--search */
.v17-search-page .v17-search-topbar {
  margin-bottom: 14px;
}

.v17-search-meta {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color-2);
  letter-spacing: 0.02em;
}

.v17-search-meta strong {
  color: var(--text-color-1);
  font-weight: 800;
}

.v17-search-again {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f7f3ed 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 6px 18px rgba(62, 54, 44, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v17-search-again:focus-within {
  border-color: rgba(154, 115, 68, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 22px rgba(62, 54, 44, 0.07),
    0 0 0 3px rgba(201, 168, 106, 0.18);
}

.v17-search-again input[type="search"] {
  flex: 1 1 160px;
  min-width: 0;
  border: 0;
  background: #faf8f5;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 38px;
  font: inherit;
  font-size: 14px;
  outline: none;
  color: var(--text-color-1);
  box-shadow: 0 1px 2px rgba(62, 54, 44, 0.06) inset;
}

.v17-search-again input[type="search"]::placeholder {
  color: var(--text-color-3);
}

.v17-search-again button[type="submit"] {
  border: 1px solid rgba(62, 54, 44, 0.08);
  border-radius: 999px;
  padding: 0 18px;
  min-height: 38px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: var(--text-color-2);
  flex-shrink: 0;
  background: linear-gradient(180deg, #f3f0eb 0%, #e9e4dc 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.v17-search-again button[type="submit"]:hover {
  color: var(--theme-color);
  border-color: rgba(154, 115, 68, 0.22);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.2) 0%, rgba(201, 168, 106, 0.1) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 10px rgba(154, 115, 68, 0.12);
}

.v17-search-again button[type="submit"]:active {
  transform: scale(0.97);
}

.v17-search-again button[type="submit"]:focus-visible {
  outline: 2px solid rgba(201, 168, 106, 0.55);
  outline-offset: 2px;
}

.v17-pager--search {
  margin-top: 8px;
  max-width: min(var(--v17-search-max), 100%);
}

.v17-pager__meta strong {
  color: var(--text-color-1);
  font-weight: 700;
}

/* 分页：帝国 [!--show.listpage--] 多为 ul>li>a 或 table；必须关 list-style，避免错位圆点 */
.v17-pager {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto 36px;
  max-width: var(--v17-max);
  padding: 0 16px;
}

.v17-pager__meta {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 8px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color-2);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(62, 54, 44, 0.06);
}

/* 必须横向排布；宽度随内容收缩，避免出现「一整条大白条里只有左侧几个钮」 */
.v17-pager__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #ebe6df 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 6px 20px rgba(62, 54, 44, 0.06);
}

/* 用后代选择器：部分版本会在 div 内再输出 ul */
.v17-pager__inner ul,
.v17-pager__inner ol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.v17-pager__inner li,
.v17-pager__inner > li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v17-pager__inner li::marker,
.v17-pager__inner > li::marker {
  content: none;
  font-size: 0;
}

.v17-pager__inner > a,
.v17-pager__inner > span,
.v17-pager__inner > b,
.v17-pager__inner > strong,
.v17-pager__inner li > a,
.v17-pager__inner li > span,
.v17-pager__inner li > b,
.v17-pager__inner li > strong,
.v17-pager__inner > li > a,
.v17-pager__inner > li > span,
.v17-pager__inner > li > b,
.v17-pager__inner > li > strong,
.v17-pager__inner table td > a,
.v17-pager__inner table td > span,
.v17-pager__inner table td > b,
.v17-pager__inner table td > strong {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--text-color-2);
  border: 1px solid rgba(62, 54, 44, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f4f0ea 100%);
  box-shadow: 0 1px 2px rgba(62, 54, 44, 0.05);
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.v17-pager__inner > a:hover,
.v17-pager__inner li > a:hover,
.v17-pager__inner > li > a:hover,
.v17-pager__inner table td > a:hover {
  border-color: rgba(154, 115, 68, 0.35);
  color: var(--theme-color);
  background: linear-gradient(180deg, #fffefb 0%, rgba(201, 168, 106, 0.14) 100%);
  box-shadow: 0 3px 12px rgba(154, 115, 68, 0.12);
  transform: translateY(-1px);
}

/* 当前页：帝国常用 b / strong（浅底上用手风琴金描边 + 淡填充，避免大块深金饼） */
.v17-pager__inner > b,
.v17-pager__inner > strong,
.v17-pager__inner li > b,
.v17-pager__inner li > strong,
.v17-pager__inner > li > b,
.v17-pager__inner > li > strong,
.v17-pager__inner table td > b,
.v17-pager__inner table td > strong {
  color: var(--text-color-1);
  font-weight: 700;
  border: 1px solid rgba(154, 115, 68, 0.42);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.28) 0%, rgba(201, 168, 106, 0.1) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 2px 10px rgba(154, 115, 68, 0.12);
  cursor: default;
}

.v17-pager__inner > b:hover,
.v17-pager__inner > strong:hover,
.v17-pager__inner li > b:hover,
.v17-pager__inner li > strong:hover,
.v17-pager__inner > li > b:hover,
.v17-pager__inner > li > strong:hover,
.v17-pager__inner table td > b:hover,
.v17-pager__inner table td > strong:hover {
  color: var(--text-color-1);
  filter: none;
}

.v17-pager__inner table {
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 6px 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.v17-pager__inner table td {
  padding: 0;
  border: 0;
  vertical-align: middle;
  text-align: center;
}

.v17-pager__inner font {
  color: inherit !important;
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .v17-pager__inner > a:hover,
  .v17-pager__inner li > a:hover,
  .v17-pager__inner > li > a:hover,
  .v17-pager__inner table td > a:hover {
    transform: none;
  }
}

.v17-tile__badge:empty,
.v17-tile__score:empty,
.v17-tile__meta:empty {
  display: none;
}

/* ------------------------------------------------------------------
   首页：关闭封面炫动与卡片上浮，减轻合成层与滚动重绘（仅 v17--home）
   ------------------------------------------------------------------ */
body.v17.v17--home {
  background-attachment: scroll, scroll, scroll, scroll, scroll !important;
}

body.v17.v17--home .v17-tile__pic::after {
  display: none !important;
}

body.v17.v17--home .v17-tile__img {
  transition: none !important;
}

body.v17.v17--home .v17-tile__link:hover .v17-tile__img {
  transform: none !important;
}

body.v17.v17--home .v17-slides::before,
body.v17.v17--home .v17-slides::after {
  display: none !important;
}

body.v17.v17--home .v17-slide__link {
  transition: none !important;
}

body.v17.v17--home .v17-slide__link::before {
  display: none !important;
}

body.v17.v17--home .v17-slide__link:hover {
  transform: none !important;
}

body.v17.v17--home .v17-ly,
body.v17.v17--home .v17-panel.v17-block {
  transition: box-shadow 0.2s ease !important;
}

body.v17.v17--home .v17-ly:hover,
body.v17.v17--home .v17-panel.v17-block:hover {
  transform: none !important;
}
