/* =========================================================
   视频栏目 — 在 style.css 的设计语言上延续
   依赖 style.css 中的 :root 变量
   ========================================================= */

/* ---------- 页内导航当前项 ---------- */
.nav__link.is-current { color: var(--ink); }
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left center; }
.nav__link.is-current span { opacity: 1; transform: translateY(0); }

/* ---------- 栏目头 ---------- */
.vhero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 11vw, 132px));
  padding-bottom: clamp(48px, 7vw, 84px);
  overflow: hidden;
}

.vhero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 8%, rgba(201, 169, 122, 0.28), transparent 46%),
    radial-gradient(circle at 12% 92%, rgba(154, 123, 79, 0.1), transparent 42%);
}

.vhero__inner { position: relative; }

.vhero__title {
  margin-top: clamp(24px, 4vw, 40px);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.vhero__title em {
  font-style: normal;
  color: var(--ink-soft);
}

.vhero__lead {
  max-width: 36em;
  margin-top: clamp(20px, 3vw, 30px);
  color: var(--muted);
  font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 2.05;
}

.vhero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 64px);
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  max-width: 820px;
}

.vhero__stats li { display: flex; flex-direction: column; gap: 4px; }

.vhero__stats strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
}

.vhero__stats span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 筛选条 ---------- */
.vgallery {
  padding-bottom: clamp(64px, 9vw, 120px);
  /* 固定页眉会盖住锚点定位后的内容 */
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.vgallery__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
    background-color 0.35s var(--ease-soft);
}

.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color, var(--accent));
}

.chip span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.chip:hover { color: var(--ink); border-color: var(--ink); }

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.chip.is-active span { color: var(--accent-soft); }

.vgallery__hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 网格 ---------- */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
  margin-top: clamp(28px, 4vw, 40px);
}

.vcard {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.vcard.is-in { opacity: 1; transform: none; }

.vcard[hidden] { display: none; }

.vcard__btn {
  display: block;
  width: 100%;
  text-align: left;
}

.vcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
}

.vcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.vcard__btn:hover .vcard__media img,
.vcard__btn:focus-visible .vcard__media img {
  transform: scale(1.035);
}

.vcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 22, 19, 0.18);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.vcard__play i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.94);
  box-shadow: 0 8px 26px rgba(23, 22, 19, 0.24);
  transform: scale(0.9);
  transition: transform 0.45s var(--ease);
}

.vcard__play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  fill: var(--ink);
}

.vcard__btn:hover .vcard__play,
.vcard__btn:focus-visible .vcard__play { opacity: 1; }

.vcard__btn:hover .vcard__play i { transform: scale(1); }

.vcard__dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(23, 22, 19, 0.78);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.vcard__brand {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.92);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.vcard__brand::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

.vcard__body {
  display: block;
  padding-top: 14px;
}

.vcard__ep {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.vcard__ep b {
  font-weight: 500;
  color: var(--c, var(--accent));
}

.vcard__title {
  display: block;
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  /* 预留两行，避免同一行卡片标题高低不齐 */
  min-height: 3em;
  transition: color 0.4s var(--ease-soft);
}

.vcard__btn:hover .vcard__title { color: var(--accent); }

/* ---------- 系列说明 ---------- */
.vseries {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--bg-tint);
  border-block: 1px solid var(--line-soft);
}

.vseries__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.vseries__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: 0.05em;
}

.vseries__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  margin-top: clamp(26px, 4vw, 38px);
}

.vseries__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 2px solid var(--c, var(--accent));
}

.vseries__brand {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.vseries__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.vseries__blurb {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

.vseries__link {
  margin-top: auto;
  padding-top: 8px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft);
}

.vseries__link:hover { border-bottom-color: var(--accent); }

/* ---------- 播放器 ---------- */
body.player-open { overflow: hidden; }

.player {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

.player[hidden] { display: none; }

.player__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}

.player.is-open .player__scrim { opacity: 1; }

.player__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.player.is-open .player__panel { opacity: 1; transform: none; }

.player__head {
  position: relative;
  padding-right: 56px;
  color: var(--paper);
}

.player__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.62);
}

.player__meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

.player__title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.player__close {
  position: absolute;
  top: -6px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(250, 248, 244, 0.34);
  border-radius: 50%;
  color: var(--paper);
  transition: background-color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
    transform 0.35s var(--ease);
}

.player__close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.player__close:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  transform: rotate(90deg);
}

.player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #0b0b0a;
  border: 1px solid rgba(250, 248, 244, 0.14);
  overflow: hidden;
}

.player__stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0b0b0a;
}

.player__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 244, 0.62);
  background: rgba(11, 11, 10, 0.72);
  transition: opacity 0.4s var(--ease-soft);
  /* 缓冲提示不能挡住原生控制条 */
  pointer-events: none;
}

.player__status[hidden] { display: none; }

.player__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(250, 248, 244, 0.72);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.player__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(250, 248, 244, 0.24);
  border-radius: 999px;
  color: var(--paper);
  transition: background-color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
    opacity 0.35s var(--ease-soft);
}

.player__nav svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player__nav:hover:not(:disabled) {
  background: rgba(250, 248, 244, 0.12);
  border-color: rgba(250, 248, 244, 0.5);
}

.player__nav:disabled { opacity: 0.3; cursor: not-allowed; }

.player__count { flex: 1; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .vseries__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vseries__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgallery__hint { display: none; }
}

@media (max-width: 640px) {
  .vhero { padding-top: calc(var(--header-h) + 48px); }
  .vhero__stats { gap: 22px 32px; }
  .vgrid { grid-template-columns: 1fr; gap: 26px; }
  .vseries__list { grid-template-columns: 1fr; }
  .chip { height: 33px; padding-inline: 13px; font-size: 12px; }

  .player { padding: 0; place-items: start center; }
  .player__panel {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 14vh 0 18px;
  }
  .player__head { padding-inline: 18px; padding-right: 60px; }
  .player__stage { border-inline: 0; }
  .player__foot { padding-inline: 18px; }
  .player__nav span { display: none; }
  .player__nav { padding: 9px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .vcard { opacity: 1; transform: none; }
  .vcard__media img,
  .vcard__play,
  .vcard__play i { transition: none; }
  .player__scrim,
  .player__panel { opacity: 1; transform: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .vhero__bg, .chips, .player { display: none; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .vcard { opacity: 1; transform: none; }
}
