:root {
  --vp-bg: #f2f7fd;
  --vp-card: #ffffff;
  --vp-line: #e2ebf7;
  --vp-text: #1e2c44;
  --vp-sub: #7e90a8;
  --vp-blue: #3b74e8;
  --vp-cyan: #2fc7e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.vp-body {
  min-height: 100vh;
  color: var(--vp-text);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(79, 140, 255, .10), transparent 62%),
    radial-gradient(760px 460px at 96% 2%, rgba(47, 211, 232, .08), transparent 62%),
    var(--vp-bg);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.vp-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(218, 231, 247, .9);
  backdrop-filter: blur(18px);
}
.vp-head-inner {
  width: min(1400px, calc(100% - 40px)); height: 64px; margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
}
.vp-logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.vp-logo img { width: 34px; height: 34px; border-radius: 9px; }
.vp-logo b { display: block; font-size: 16px; letter-spacing: .2px; }
.vp-logo em { display: block; font-style: normal; font-size: 8px; letter-spacing: 2px; color: #9aabc1; margin-top: 2px; }
.vp-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.vp-nav a { padding: 8px 13px; border-radius: 8px; color: #5d718c; font-size: 12.5px; transition: .16s; }
.vp-nav a:hover { color: var(--vp-blue); background: #f2f7ff; }
.vp-nav a.active { color: #2f6fe4; background: #eaf2ff; font-weight: 600; }
.vp-user { padding: 8px 15px; border-radius: 9px; border: 1px solid #d9e7f8; background: #fff; color: #4b6382; font-size: 12px; }
.vp-user:hover { border-color: #b9d2f4; color: #2f6fe4; }
.vp-main { width: min(1400px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 52px; }
.vp-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 30px 34px;
  border: 1px solid rgba(216, 230, 247, .95);
  border-radius: 20px;
  background:
    radial-gradient(600px 260px at 88% 0%, rgba(47, 211, 232, .16), transparent 65%),
    linear-gradient(120deg, #f7fbff 0%, #eef5ff 58%, #e6f4ff 100%);
  box-shadow: 0 16px 40px rgba(53, 95, 150, .08);
}
.vp-hero::after {
  content: ""; position: absolute; right: -60px; top: -90px; width: 340px; height: 340px;
  border-radius: 50%; border: 1px solid rgba(79, 140, 255, .13);
}
.vp-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #2f80ed; font-size: 10.5px; letter-spacing: 1px; }
.vp-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #2fc7e8; box-shadow: 0 0 8px #2fc7e8; }
.vp-hero h1 { margin: 10px 0 6px; font-size: 34px; letter-spacing: 1px; color: #12233d; }
.vp-hero p { margin: 0; color: #7c90aa; font-size: 12.5px; }
.vp-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 330px; }
.vp-search { width: 330px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 10px; border: 1px solid #d8e6f7; background: rgba(255, 255, 255, .9); color: #8ba0b9; }
.vp-search input { width: 100%; border: 0; outline: 0; background: none; color: #243550; font-size: 12.5px; }
.vp-search input::placeholder { color: #a9b9cc; }
.vp-stats { display: flex; align-items: center; gap: 16px; color: #7f93ad; font-size: 11px; }
.vp-stats b { color: #2f6fe4; font-size: 15px; margin-right: 3px; }
.vp-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.vp-side {
  position: sticky; top: 84px;
  border: 1px solid var(--vp-line); border-radius: 16px; background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(53, 95, 150, .06); overflow: hidden;
}
.vp-side-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 11px; border-bottom: 1px solid #edf3fb; color: #314660; font-size: 12.5px; font-weight: 600; }
.vp-side-head button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: #f2f7ff; color: #7b91ab; cursor: pointer; }
.vp-side-head button:hover { color: #2f6fe4; background: #e8f1ff; }
.vp-tree { padding: 8px 8px 12px; max-height: calc(100vh - 180px); overflow: auto; }
.vp-cat {
  width: 100%; height: 38px; display: flex; align-items: center; gap: 6px;
  border: 0; border-radius: 9px; background: none; color: #566c87; font-size: 12px; cursor: pointer; text-align: left;
}
.vp-cat:hover { background: #f4f8fe; color: #2f6fe4; }
.vp-cat.active { background: linear-gradient(135deg, #e8f1ff, #e5f8ff); color: #2f6fe4; font-weight: 600; box-shadow: inset 0 0 0 1px #d8e9ff; }
.vp-cat.all { margin-bottom: 2px; padding-left: 10px; }
.vp-cat-arrow { width: 14px; flex: 0 0 14px; color: #9db0c7; font-size: 10px; text-align: center; }
.vp-cat-arrow.empty { color: #c8d4e2; }
.vp-cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-cat em { font-style: normal; color: #9eb0c6; font-size: 10px; padding-right: 6px; }
.vp-cat.active em { color: #5b98f0; }
.vp-children.closed { display: none; }
.vp-content { min-width: 0; }
.vp-content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 2px 2px 14px; }
.vp-content-head h2 { margin: 0; font-size: 20px; letter-spacing: .3px; }
.vp-content-head p { margin: 5px 0 0; color: #8ca0b8; font-size: 11.5px; }
.vp-content-tools select { height: 34px; padding: 0 12px; border: 1px solid #dce8f7; border-radius: 8px; background: #fff; color: #5b7290; font-size: 11.5px; outline: 0; }
.vp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.vp-card {
  overflow: hidden; border: 1px solid #e3ecf8; border-radius: 13px; background: #fff;
  box-shadow: 0 6px 18px rgba(53, 95, 150, .055); cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.vp-card:hover { transform: translateY(-3px); border-color: #c8dcf6; box-shadow: 0 16px 34px rgba(53, 95, 150, .13); }
.vp-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #cffafe); display: grid; place-items: center; }
.vp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.vp-cover-letter { position: absolute; z-index: 1; font-size: 34px; font-weight: 700; color: rgba(47, 111, 228, .38); }
.vp-cover.fallback .vp-cover-letter { z-index: 1; }
.vp-cover-shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(9, 22, 42, 0) 45%, rgba(9, 22, 42, .34)); opacity: 0; transition: .18s; }
.vp-card:hover .vp-cover-shade { opacity: 1; }
.vp-badge { position: absolute; left: 8px; top: 8px; z-index: 4; padding: 2px 7px; border-radius: 5px; background: rgba(11, 24, 44, .7); color: #fff; font-size: 8.5px; letter-spacing: .5px; }
.vp-play {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: #2f6fe4; font-size: 13px; opacity: 0; transition: .18s;
  box-shadow: 0 8px 20px rgba(9, 30, 60, .25);
}
.vp-card:hover .vp-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vp-card-body { padding: 10px 11px 11px; }
.vp-card-body h3 { margin: 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #22334d; }
.vp-card-body p { margin: 4px 0 7px; color: #8a9db5; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 15px; }
.vp-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9aabc0; font-size: 9.5px; }
.vp-card-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; border: 1px dashed #dbe8f7; border-radius: 14px; background: rgba(255, 255, 255, .6); color: #93a6bc; font-size: 12px; }
.vp-empty.small { min-height: 80px; border: 0; background: none; }
.vp-lock { overflow: hidden; }
.vp-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.vp-modal[hidden] { display: none; }
.vp-modal-mask { position: absolute; inset: 0; background: rgba(8, 18, 34, .66); backdrop-filter: blur(6px); }
.vp-modal-box { position: relative; z-index: 2; width: min(1020px, 96vw); border-radius: 16px; overflow: hidden; background: #0a1220; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.vp-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; background: #101b2d; color: #e8f1fb; }
.vp-modal-head b { display: block; font-size: 14px; }
.vp-modal-head span { display: block; margin-top: 3px; color: #8fa5be; font-size: 10.5px; }
.vp-modal-head button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #cddcec; font-size: 18px; cursor: pointer; }
.vp-player { position: relative; background: #000; aspect-ratio: 16 / 9; }
.vp-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-player-tip { position: absolute; inset: 0; display: grid; place-items: center; color: #b9c9dc; font-size: 12px; background: rgba(4, 10, 20, .55); pointer-events: none; }
.vp-player-tip[hidden] { display: none; }
@media (max-width: 1250px) { .vp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .vp-layout { grid-template-columns: 1fr; }
  .vp-side { position: static; }
  .vp-tree { max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .vp-tree-group { width: calc(50% - 4px); }
  .vp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vp-hero { flex-direction: column; align-items: stretch; }
  .vp-hero-side { min-width: 0; align-items: stretch; }
  .vp-search { width: 100%; }
}
@media (max-width: 720px) {
  .vp-head-inner { width: calc(100% - 24px); height: 58px; gap: 10px; }
  .vp-nav { display: none; }
  .vp-main { width: calc(100% - 24px); padding-top: 16px; }
  .vp-hero { padding: 20px; border-radius: 16px; }
  .vp-hero h1 { font-size: 26px; }
  .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vp-tree-group { width: 100%; }
  .vp-stats { flex-wrap: wrap; gap: 10px; }
  .vp-modal { padding: 10px; }
}

/* 线路 / 剧集选择 */
.vp-episodes { padding: 0 20px 20px; border-top: 1px solid var(--vp-line, #e8eef7); }
.vp-lines { display:flex; flex-wrap:wrap; gap:8px; padding:14px 0 10px; }
.vp-line-tab { height:30px; padding:0 13px; border:1px solid #dbe5f1; border-radius:8px; background:#f7faff; color:#51637c; font-size:12px; cursor:pointer; }
.vp-line-tab.on { border-color:#4f8cff; background:#4f8cff; color:#fff; font-weight:600; }
.vp-eps { display:grid; grid-template-columns:repeat(auto-fill,minmax(94px,1fr)); gap:8px; max-height:190px; overflow:auto; padding:2px 2px 4px; }
.vp-ep { height:32px; padding:0 8px; border:1px solid #e2eaf5; border-radius:7px; background:#fff; color:#5a6b82; font-size:12px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vp-ep:hover { border-color:#b9d2ff; color:#2f6fe4; }
.vp-ep.on { border-color:#4f8cff; color:#2f6fe4; background:#eef4ff; font-weight:600; }
