/* mother-diversity · site-6 · bamboo-night 竹影夜绿（site-craft 再打磨） */
:root {
  --vod-primary: #65a30d;
  --vod-secondary: #eab308;
  --vod-accent: #84cc16;
  --vod-bg: #07140a;
  --vod-surface: #0d1f12;
  --vod-text: #ecfccb;
  --vod-muted: #86a888;
  --vod-dark: #166534;
  --vod-line: rgba(132, 204, 22, 0.28);
  --vod-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ── Base ── */
body.vod-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(720px 320px at 0% 0%, rgba(250, 204, 21, 0.14), transparent 60%),
    radial-gradient(600px 280px at 100% 8%, rgba(239, 68, 68, 0.1), transparent 55%),
    var(--vod-bg);
  color: var(--vod-text);
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

body.vod-body a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
body.vod-body a:hover { color: var(--vod-accent); }
body.vod-body img { display: block; max-width: 100%; height: auto; }
body.vod-body img.image-off { opacity: 0; }

/* ── Header: 彩色顶栏 + 下方搜索条 ── */
.vod-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.vod-topbar__strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  min-height: 56px;
  background: transparent;
}

.vod-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  flex-shrink: 0;
}

.vod-topbar__logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--vod-accent);
  color: #1c1917;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.45);
}

.vod-topbar__name {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.vod-topbar__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.vod-topbar__nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}

.vod-topbar__nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.vod-topbar__nav a:hover,
.vod-topbar__nav a[aria-current="page"] {
  color: #1c1917 !important;
  background: var(--vod-accent);
  border-color: rgba(250, 204, 21, 0.6);
}

.vod-topbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
}

.vod-topbar__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
}

.vod-topbar__tools {
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

.vod-topbar__search {
  display: flex;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  background: var(--vod-bg);
  border: 2px solid var(--vod-primary);
  border-radius: 12px;
  overflow: hidden;
}

.vod-topbar__search-icon {
  width: 18px;
  height: 18px;
  margin-left: 14px;
  flex-shrink: 0;
  color: var(--vod-muted);
}

.vod-topbar__search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 11px 12px;
  font-size: 15px;
  background: transparent;
  color: var(--vod-text);
  min-width: 0;
}

.vod-topbar__search .vod-btn--cta {
  border-radius: 0;
  padding: 11px 22px;
  font-size: 14px;
}

.vod-topbar__nav.open {
  display: flex;
}

/* ── Buttons ── */
.vod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vod-btn--cta {
  background: linear-gradient(135deg, var(--vod-secondary), #ca8a04);
  color: #1a1400 !important;
  box-shadow: 0 8px 22px rgba(234, 179, 8, 0.32);
}

.vod-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234, 179, 8, 0.42);
  color: #1a1400 !important;
}

.vod-btn--ghost {
  background: transparent;
  color: var(--vod-accent) !important;
  border: 2px solid var(--vod-line);
}

.vod-btn--ghost:hover {
  background: rgba(132, 204, 22, 0.1);
}

.vod-btn--block {
  width: 100%;
  margin-top: 10px;
}

/* ── Main ── */
.vod-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

/* ── Hero: 左右分栏 spotlight ── */
.vod-spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 36px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
  border: 2px solid var(--vod-line);
  box-shadow: var(--vod-shadow);
  overflow: hidden;
}

.vod-spotlight__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--vod-accent);
  color: #713f12;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.vod-spotlight h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 950;
  line-height: 1.15;
  color: var(--vod-dark);
  letter-spacing: -0.03em;
}

.vod-spotlight__lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--vod-muted);
  max-width: 520px;
}

.vod-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vod-spotlight__deco {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
}

.vod-spotlight__ring {
  position: absolute;
  width: min(220px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid var(--vod-primary);
  opacity: 0.25;
}

.vod-spotlight__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vod-primary), var(--vod-secondary));
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

/* ── Channel pills ── */
.vod-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--vod-primary) transparent;
}

.vod-pills__item {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--vod-surface);
  border: 2px solid var(--vod-line);
  font-size: 14px;
  font-weight: 800;
  color: var(--vod-primary) !important;
  transition: all 0.2s ease;
}

.vod-pills__item span { pointer-events: none; }

.vod-pills__item:hover {
  background: var(--vod-primary);
  color: #fff !important;
  border-color: var(--vod-primary);
  transform: translateY(-2px);
}

/* ── Hot horizontal scroll band ── */
.vod-scroll-band {
  margin-bottom: 40px;
}

.vod-scroll-band__head,
.vod-stack-band__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--vod-accent);
}

.vod-scroll-band__head h2,
.vod-stack-band__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--vod-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vod-scroll-band__icon { font-size: 20px; }

.vod-scroll-band__more,
.vod-stack-band__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--vod-secondary) !important;
}

.vod-scroll-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--vod-primary) rgba(239, 68, 68, 0.1);
}

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

.vod-scroll-rail .vod-card__poster {
  aspect-ratio: 2 / 3;
}

/* ── Stack band grid ── */
.vod-stack-band {
  margin-bottom: 40px;
}

.vod-stack-band__mark {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--vod-primary);
}

.vod-grid {
  display: grid;
  gap: 20px;
}

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

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

/* ── Cards: 竖版海报 + 底部标题 ── */
.vod-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--vod-surface);
  border: 1px solid var(--vod-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vod-shadow);
  border-color: var(--vod-primary);
}

.vod-card__link {
  display: block;
  color: inherit !important;
}

.vod-card__poster {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #fecaca, #fde68a);
}

.vod-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vod-card:hover .vod-card__poster img {
  transform: scale(1.05);
}

.vod-card__hot {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--vod-accent);
  color: #713f12;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.5);
}

.vod-card__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.82), transparent);
}

.vod-card__meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-style: normal;
}

.vod-card__meta em {
  font-style: normal;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.vod-card__title {
  margin: 10px 12px 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--vod-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vod-card__type {
  margin: 0 12px 12px;
  font-size: 12px;
  color: var(--vod-muted);
  font-weight: 600;
}

.vod-card--scroll .vod-card__title {
  font-size: 13px;
  margin-top: 8px;
}

.vod-card--scroll .vod-card__type {
  margin-bottom: 8px;
}

/* ── Category: 侧栏筛选 + 三列网格 ── */
.vod-cat-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.vod-cat-sidebar {
  position: sticky;
  top: 130px;
  padding: 22px;
  border-radius: 14px;
  background: var(--vod-surface);
  border: 2px solid var(--vod-line);
  box-shadow: var(--vod-shadow);
}

.vod-cat-sidebar h1 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 950;
  color: var(--vod-dark);
}

.vod-cat-sidebar p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--vod-muted);
}

.vod-cat-sidebar__label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--vod-secondary);
  letter-spacing: 0.04em;
}

.vod-cat-sidebar__filters input,
.vod-cat-sidebar__filters select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--vod-line);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--vod-text);
  background: var(--vod-bg);
  box-sizing: border-box;
}

.vod-cat-sidebar__filters input:focus,
.vod-cat-sidebar__filters select:focus {
  border-color: var(--vod-primary);
}

.vod-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--vod-muted);
}

.vod-crumb a {
  color: var(--vod-primary) !important;
}

.vod-empty {
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  background: var(--vod-surface);
  color: var(--vod-muted);
  font-weight: 700;
}

/* ── Play page: 全宽播放器 + 下方双栏 ── */
.vod-player {
  margin-bottom: 40px;
}

.vod-player__screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1917;
  border: 3px solid var(--vod-primary);
  box-shadow: var(--vod-shadow);
  margin-bottom: 20px;
}

.vod-player__screen video,
.vod-player__screen #movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.vod-player__error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 25, 23, 0.88);
  color: #fff;
  font-weight: 800;
}

.vod-player__error[hidden] {
  display: none !important;
}

.vod-player__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.vod-player__head h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 950;
  line-height: 1.2;
  color: var(--vod-text);
}

.vod-player__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.vod-player__chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.1);
  color: var(--vod-primary);
}

.vod-player__chip--hot {
  background: rgba(250, 204, 21, 0.25);
  color: #854d0e;
}

.vod-player__body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--vod-line);
}

.vod-player__synopsis {
  padding: 22px;
  border-radius: 14px;
  background: var(--vod-surface);
  border: 1px solid var(--vod-line);
}

.vod-player__synopsis h2 {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
  color: var(--vod-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--vod-accent);
}

.vod-player__synopsis p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--vod-muted);
}

.vod-player__aside {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Footer: 夜绿底 + 多色顶条 ── */
.vod-foot {
  margin-top: 20px;
  background: linear-gradient(180deg, #0a160e, #040a06);
  color: rgba(236, 252, 203, 0.85);
}

.vod-foot__accent {
  height: 5px;
  background: linear-gradient(90deg, var(--vod-accent), #fde047, var(--vod-accent));
}

.vod-foot__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.vod-foot__logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 950;
  color: #fff !important;
  margin-bottom: 10px;
}

.vod-foot__tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.vod-foot__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vod-foot__col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--vod-accent);
  letter-spacing: 0.04em;
}

.vod-foot__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vod-foot__col li { margin-bottom: 7px; }

.vod-foot__col a {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 14px;
  font-weight: 600;
}

.vod-foot__col a:hover { color: #fff !important; }

.vod-foot__col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.vod-foot__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Motion ── */
@media (prefers-reduced-motion: no-preference) {
  .vod-spotlight__play {
    animation: vod-pulse 2.4s ease-in-out infinite;
  }
  @keyframes vod-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .vod-card,
  .vod-btn,
  body.vod-body a,
  .vod-card__poster img,
  .vod-spotlight__play {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .vod-grid--3,
  .vod-grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vod-cat-page {
    grid-template-columns: 220px 1fr;
  }
  .vod-foot__inner {
    grid-template-columns: 1fr;
  }
  .vod-foot__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vod-topbar__strip {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .vod-topbar__nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    padding: 8px 0 4px;
  }
  .vod-topbar__nav.open {
    display: flex;
  }
  .vod-topbar__nav a {
    text-align: center;
    padding: 11px;
    background: rgba(255, 255, 255, 0.1);
  }
  .vod-topbar__toggle {
    display: flex;
    margin-left: auto;
  }
  .vod-topbar__tools {
    padding: 10px 16px;
  }
  .vod-spotlight {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .vod-spotlight__deco {
    min-height: 120px;
  }
  .vod-grid--3,
  .vod-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .vod-cat-page {
    grid-template-columns: 1fr;
  }
  .vod-cat-sidebar {
    position: static;
  }
  .vod-player__body {
    grid-template-columns: 1fr;
  }
  .vod-foot__links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .vod-main {
    padding: 20px 14px 40px;
  }
  .vod-grid--3,
  .vod-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vod-scroll-rail .vod-card {
    flex: 0 0 140px;
  }
  .vod-topbar__badge {
    display: none;
  }
}
