/* ============================================================
   video-gallery.css — 宣传视频中心（videos.html 专用样式家族）
   设计：浅色页面 + 深色影院式播放区；桌面双栏，移动端单栏横向片单。
   所有类以 v- 前缀，避免与 site.css / landing.css / scene.css 家族冲突。
   ============================================================ */

.v-hero {
  padding: 164px 0 46px;
  position: relative;
}
.v-hero h1 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.16;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.v-lede {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-mid);
}
.v-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-low-strong);
}
.v-hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-blue); opacity: 0.6; }

.v-section { padding-top: 12px; }
.v-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 26px;
  align-items: start;
}

/* ---------- 播放区 ---------- */
.v-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #050912;
  box-shadow: 0 30px 80px rgba(9, 18, 38, 0.20), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
  outline: none;
  isolation: isolate;
}
.v-frame:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-blue) 55%, transparent), 0 30px 80px rgba(9, 18, 38, 0.2); }
.v-frame-glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(125deg, var(--ink-cyan), var(--ink-blue) 32%, var(--ink-violet) 66%, var(--ink-amber));
  opacity: 0.42;
  filter: blur(13px);
}
.v-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050912;
}
.v-frame video::cue {
  background: rgba(5, 10, 22, 0.78);
  color: #f4f8ff;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  border-radius: 6px;
  padding: 2px 8px;
}

.v-topbar {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}
.v-badge, .v-live {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #eaf1ff;
  background: rgba(5, 10, 22, 0.62);
  border: 1px solid rgba(180, 205, 245, 0.22);
  border-radius: 999px;
  padding: 7px 13px;
  backdrop-filter: blur(10px);
}
.v-live { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.1em; }
.v-live i { width: 6px; height: 6px; border-radius: 50%; background: #34e0c4; box-shadow: 0 0 10px #34e0c4; }

.v-bigplay[hidden] { display: none; }
.v-bigplay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at 50% 50%, rgba(5, 10, 22, 0.10), rgba(5, 10, 22, 0.48));
  color: #fff;
  cursor: pointer;
  transition: background 0.35s ease, opacity 0.35s ease;
}
.v-bigplay:hover { background: radial-gradient(circle at 50% 50%, rgba(5, 10, 22, 0.05), rgba(5, 10, 22, 0.58)); }
.v-frame.is-playing .v-bigplay { opacity: 0; pointer-events: none; }
.v-bigplay-ring {
  position: absolute;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.07), 0 0 50px rgba(86, 155, 255, 0.55);
  animation: vPulse 3.2s ease-in-out infinite;
}
.v-bigplay svg {
  position: relative;
  width: 42px; height: 42px;
  fill: #fff;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transform: translateX(3px);
}
.v-bigplay-text {
  position: absolute;
  bottom: 27%;
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(5, 10, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
@keyframes vPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 0.5; }
}

.v-cue-tip {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -8px);
  z-index: 3;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #e8f1ff;
  background: rgba(5, 10, 22, 0.68);
  border: 1px solid rgba(180, 205, 245, 0.2);
  border-radius: 999px;
  padding: 7px 16px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.v-cue-tip.show { opacity: 1; transform: translate(-50%, 0); }

.v-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 38px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 9, 20, 0.88) 62%);
  color: #edf3ff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) {
  .v-frame.is-playing .v-controls { opacity: 0; transform: translateY(8px); }
  .v-frame.is-playing:hover .v-controls,
  .v-frame.is-playing:focus-within .v-controls { opacity: 1; transform: none; }
}
.v-ctl {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.v-ctl:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.35); }
.v-ctl svg { width: 18px; height: 18px; fill: currentColor; }
.v-ctl-text { width: auto; padding: 0 12px; border-radius: 999px; font-size: 12px; letter-spacing: 0.08em; }
.v-ctl-text[aria-pressed="true"] { background: var(--ink-blue); border-color: transparent; color: #fff; }
.v-ctl-play .ico-pause, .v-frame.is-playing .v-ctl-play .ico-play { display: none; }
.v-frame.is-playing .v-ctl-play .ico-pause { display: block; }
.v-frame.is-muted .ico-vol, .v-frame:not(.is-muted) .ico-muted { display: none; }

.v-seek {
  position: relative;
  flex: 1 1 auto;
  min-width: 80px;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
}
.v-seek:focus-visible .v-seek-track { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-blue) 60%, transparent); }
.v-seek-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: height 0.2s ease;
}
.v-seek:hover .v-seek-track { height: 6px; }
.v-seek-buffer, .v-seek-played {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: inherit;
}
.v-seek-buffer { background: rgba(255, 255, 255, 0.28); width: 0; }
.v-seek-played { background: linear-gradient(90deg, var(--ink-cyan), var(--ink-blue), var(--ink-violet)); width: 0; }
.v-seek-played::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(120, 180, 255, 0.9);
}
.v-seek-chapters { position: absolute; inset: 0; pointer-events: none; }
.v-seek-chapters i {
  position: absolute;
  top: 50%;
  width: 2px; height: 9px;
  background: rgba(255, 255, 255, 0.75);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.v-time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(238, 245, 255, 0.9);
  min-width: 104px;
  text-align: center;
}
.v-volume {
  flex: 0 0 auto;
  width: 76px;
  accent-color: var(--ink-blue);
  cursor: pointer;
}
.v-error[hidden] { display: none; }
.v-error {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: rgba(5, 10, 22, 0.9);
  color: #e9f0ff;
  font-size: 14px;
}
.v-error a { color: #7cc4ff; text-decoration: underline; }

/* ---------- 影片信息 / 章节 ---------- */
.v-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 10px;
}
.v-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-blue);
  font-weight: 700;
}
.v-info h2 { margin: 8px 0 8px; font-size: 24px; line-height: 1.35; font-weight: 800; }
.v-info p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--text-mid); max-width: 680px; }
.v-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex: 0 0 auto; }
.v-tags span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-mid);
  background: color-mix(in srgb, var(--ink-blue) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--ink-blue) 16%, transparent);
}
.v-chapter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 2px 2px;
}
.v-chapter-list button {
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.v-chapter-list button:hover, .v-chapter-list button.on {
  border-color: color-mix(in srgb, var(--ink-blue) 55%, transparent);
  color: var(--ink-blue);
  background: color-mix(in srgb, var(--ink-blue) 6%, #fff);
}
.v-chapter-list button b { font-family: var(--font-mono); font-weight: 600; margin-right: 8px; opacity: 0.65; }

/* ---------- 播放列表 ---------- */
.v-side {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-base) 72%, #fff);
  box-shadow: 0 18px 48px rgba(18, 32, 60, 0.07);
  padding: 18px;
}
.v-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.v-side-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.v-side-head span { font-size: 11.5px; color: var(--text-low-strong); }
.v-list { display: grid; gap: 10px; }
.v-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.v-item:hover { background: #fff; border-color: var(--line); transform: translateY(-1px); }
.v-item.on {
  background: #fff;
  border-color: color-mix(in srgb, var(--ink-blue) 45%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink-blue) 12%, transparent);
}
.v-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: #0a1020;
}
.v-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-thumb em {
  position: absolute;
  right: 5px; bottom: 5px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(5, 10, 22, 0.75);
  color: #fff;
}
.v-item-body { min-width: 0; }
.v-item-kicker { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-blue); }
.v-item-title { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--text-hi); line-height: 1.45; }
.v-item-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-low-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-policy {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink-violet) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--ink-violet) 14%, transparent);
}
.v-policy b { font-size: 12.5px; }
.v-policy p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-mid); }

/* ---------- 说明区 / CTA ---------- */
.v-notes { padding-top: 78px; }
.v-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.v-note {
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(18, 32, 60, 0.05);
}
.v-note-no { font-family: var(--font-mono); font-size: 13px; color: var(--ink-blue); letter-spacing: 0.1em; }
.v-note h3 { margin: 14px 0 10px; font-size: 19px; }
.v-note p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text-mid); }
.v-cta { padding-bottom: 96px; }
.v-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 42px;
  border-radius: 24px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ink-cyan) 12%, #fff), color-mix(in srgb, var(--ink-violet) 12%, #fff));
  border: 1px solid color-mix(in srgb, var(--ink-blue) 18%, transparent);
}
.v-cta h2 { margin: 12px 0 8px; font-size: 28px; }
.v-cta p { margin: 0; color: var(--text-mid); font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .v-layout { grid-template-columns: minmax(0, 1fr); }
  .v-side { padding: 16px; }
  .v-list { grid-template-columns: repeat(3, minmax(210px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .v-item { grid-template-columns: 92px minmax(0, 1fr); }
  .v-policy { display: none; }
}
@media (max-width: 760px) {
  .v-hero { padding: 138px 0 30px; }
  .v-hero h1 { font-size: 32px; }
  .v-lede { font-size: 15px; line-height: 1.8; }
  .v-frame { border-radius: 16px; }
  .v-topbar { top: 10px; left: 11px; right: 11px; }
  .v-badge, .v-live { font-size: 9px; padding: 5px 9px; }
  .v-bigplay-ring { width: 62px; height: 62px; }
  .v-bigplay svg { width: 30px; height: 30px; }
  .v-bigplay-text { bottom: 22%; font-size: 10px; padding: 6px 12px; }
  .v-controls { gap: 7px; padding: 30px 10px 9px; opacity: 1 !important; transform: none !important; }
  .v-ctl { width: 34px; height: 34px; }
  .v-ctl-text { padding: 0 8px; font-size: 11px; }
  .v-volume { display: none; }
  .v-time { min-width: 86px; font-size: 10px; }
  .v-info { flex-direction: column; gap: 12px; }
  .v-tags { justify-content: flex-start; }
  .v-info h2 { font-size: 20px; }
  .v-list { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .v-notes-grid { grid-template-columns: minmax(0, 1fr); }
  .v-cta-inner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .v-cta h2 { font-size: 23px; }
}
@media (max-width: 420px) {
  .v-list { grid-template-columns: minmax(220px, 1fr); }
  .v-chapter-list button { font-size: 11.5px; padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .v-bigplay-ring { animation: none; }
  .v-bigplay, .v-controls, .v-cue-tip, .v-item { transition: none !important; }
}
