/* ============================================================
   星冶视觉空间设计 · 在线观看站 — 全局样式（黑金主题）
   ============================================================ */
:root {
  --bg:        #070707;
  --bg-soft:   #0d0d0e;
  --panel:     #121213;
  --panel-2:   #1a1a1c;
  --border:    rgba(255, 255, 255, .075);
  --border-2:  rgba(255, 255, 255, .14);
  --text:      #f3f1ec;
  --text-dim:  #a5a099;
  --text-mute: #6f6b64;
  --accent:    #d9a441;
  --accent-2:  #f0c674;
  --accent-soft: rgba(217, 164, 65, .13);
  --gold-line: rgba(217, 164, 65, .42);
  --ok:        #4ea86b;
  --warn:      #d9a441;
  --danger:    #d9534f;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 18px 44px rgba(0, 0, 0, .6);
  --grad:      linear-gradient(135deg, #c8912f 0%, #f2d089 100%);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(760px 400px at 10% -10%, rgba(217, 164, 65, .09), transparent 62%),
    radial-gradient(680px 360px at 94% 2%, rgba(217, 164, 65, .05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--accent); color: #14100a; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b2b2d; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3d3d40; }

/* ---------- 布局 ---------- */
.wrap { width: min(1320px, 100% - 48px); margin: 0 auto; position: relative; z-index: 1; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 7, .82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: .2px; white-space: nowrap; }
.logo-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  flex: 0 0 auto;
}
.logo-mark img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 8px rgba(208, 212, 220, .28));
}
.logo-mark svg { width: 18px; height: 18px; color: #14100a; }
.header-spacer { flex: 1; }

.search-box {
  position: relative; flex: 1; max-width: 340px;
}
.search-box input {
  width: 100%; height: 40px; padding: 0 14px 0 40px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); outline: none;
  transition: border-color .18s, background .18s;
}
.search-box input:focus { border-color: var(--gold-line); background: var(--panel-2); }
.search-box input::placeholder { color: var(--text-mute); }
.search-box svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-mute); pointer-events: none;
}

/* 顶部状态胶囊（受邀分享 · 限时访问） */
.header-status {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px;
  border-radius: 999px; background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim); font-size: 12.6px; white-space: nowrap;
}
.header-status svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }
.header-status b { color: var(--text); font-weight: 600; }
.header-status .dot-sep { color: var(--text-mute); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--panel);
  color: var(--text); cursor: pointer; font-size: 14px; font-weight: 500;
  transition: all .18s; white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--panel-2); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #14100a; font-weight: 600; box-shadow: 0 8px 22px rgba(217, 164, 65, .22); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border); }
/* 管理中心按钮：金边描边 */
.btn-gold {
  background: transparent; border-color: var(--gold-line); color: var(--accent-2); font-weight: 600;
}
.btn-gold:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-danger { background: rgba(217, 83, 79, .12); border-color: rgba(217, 83, 79, .35); color: #e8a09e; }
.btn-danger:hover { background: rgba(217, 83, 79, .22); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 40px; padding: 0; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero（项目案例目录） ---------- */
.hero { padding: 52px 0 26px; }
.hero-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.5px;
  color: #fff; line-height: 1.15;
}
.hero p { color: var(--text-dim); margin-top: 12px; font-size: 14.6px; max-width: 660px; }
.hero-count {
  font-size: 13.2px; color: var(--text-mute); white-space: nowrap;
  padding-bottom: 6px; font-family: var(--mono);
}
.hero-count b { color: var(--text-dim); font-weight: 600; }
.hero-stats { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--accent-2); font-family: var(--mono); }
.hero-stat span { color: var(--text-mute); font-size: 12.5px; }

/* ---------- 工具栏（搜索 + 分类） ---------- */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 0 18px; }
.toolbar .search-box { max-width: 300px; min-width: 200px; }

/* ---------- 分类过滤 ---------- */
.cat-bar {
  display: flex; gap: 9px; overflow-x: auto; padding: 6px 0 18px;
  scrollbar-width: none; -ms-overflow-style: none; flex: 1; min-width: 220px;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto; height: 34px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; font-size: 13.5px;
  transition: all .16s; white-space: nowrap;
}
.cat-pill:hover { color: var(--text); border-color: var(--border-2); }
.cat-pill.active { background: var(--accent-soft); border-color: var(--gold-line); color: var(--accent-2); font-weight: 600; }
.cat-pill .cnt { color: var(--text-mute); font-size: 12px; }

/* ---------- 内容网格 ---------- */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0 16px; gap: 12px;
}
.section-title h2 { font-size: 16px; font-weight: 650; letter-spacing: .2px; color: var(--text-dim); }
.section-title .hint { color: var(--text-mute); font-size: 13px; font-family: var(--mono); }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  padding-bottom: 64px;
}

/* ---------- 作品卡片（对齐参考稿：封面 → 序号 → 底部信息 + 箭头） ---------- */
.card {
  background: linear-gradient(180deg, #131314 0%, #0e0e0f 100%);
  border: 1px solid var(--border);
  border-radius: 13px; overflow: hidden; cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), border-color .22s, box-shadow .22s;
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: 0 22px 52px rgba(0,0,0,.62); }

.card-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #1f1d18 0%, #0b0b0c 72%);
  border-bottom: 1px solid var(--border);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.3,1); opacity: .92; }
.card:hover .card-cover img { transform: scale(1.045); }
.card-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.5) 100%);
}

.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge {
  height: 24px; padding: 0 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  background: rgba(10,10,10,.66); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.13); color: #e4e0d8;
}
.badge-video { background: rgba(217,164,65,.9); border-color: transparent; color: #17120a; }
.badge-audio { background: rgba(14,165,233,.85); border-color: transparent; color: #fff; }
.badge-pdf   { background: rgba(217,83,79,.85);  border-color: transparent; color: #fff; }
.badge-image { background: rgba(78,168,107,.85); border-color: transparent; color: #fff; }
.badge-file  { background: rgba(120,120,124,.85);border-color: transparent; color: #fff; }
.badge-soft  { background: rgba(10,10,10,.66); color: #cfcac2; }

/* 右上角序号 01 / 02 */
.card-idx {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: rgba(255,255,255,.62);
}
.card-duration {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  height: 22px; padding: 0 8px; border-radius: 6px;
  background: rgba(10,10,10,.8); backdrop-filter: blur(6px);
  font-size: 11.5px; display: inline-flex; align-items: center; color: #f0ece4;
  font-variant-numeric: tabular-nums; font-family: var(--mono);
}

/* 中央播放键：金色描边方形 */
.card-play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  opacity: .9; transition: opacity .22s;
}
.card-play span {
  width: 52px; height: 52px; border-radius: 13px;
  border: 1px solid var(--gold-line); background: rgba(12,12,12,.5);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; color: var(--accent-2);
  transform: scale(.94); transition: transform .22s cubic-bezier(.2,.7,.3,1), background .22s;
}
.card:hover .card-play { opacity: 1; }
.card:hover .card-play span { transform: scale(1.04); background: rgba(217,164,65,.16); }
.card-play svg { width: 20px; height: 20px; margin-left: 2px; }

.card-body {
  padding: 15px 17px 16px; flex: 1; display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px; text-align: left;
}
.card-title {
  font-size: 16.5px; font-weight: 700; line-height: 1.45; letter-spacing: .1px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  width: 100%;
}
.card-desc {
  color: var(--text-mute); font-size: 12.8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 0; width: 100%;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 11px; width: 100%;
  color: var(--text-mute); font-size: 12.2px;
}
.card-meta-line { font-family: var(--mono); letter-spacing: .01em; }
.card-cat { display: inline-flex; align-items: center; gap: 5px; }
.card-cat::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.card-arrow {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-mute); transition: all .2s; flex: 0 0 auto;
}
.card:hover .card-arrow { border-color: var(--gold-line); color: var(--accent-2); background: var(--accent-soft); }
.card-arrow svg { width: 13px; height: 13px; }

/* ---------- 空状态 / 骨架 ---------- */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 76px 24px;
  border: 1px dashed var(--border-2); border-radius: var(--radius);
  background: rgba(18, 18, 19, .5);
}
.empty-ico {
  width: 66px; height: 66px; border-radius: 20px; background: var(--accent-soft);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.empty-ico svg { width: 30px; height: 30px; color: var(--accent-2); }
.empty h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.empty p { color: var(--text-dim); font-size: 14px; max-width: 460px; margin: 0 auto 20px; }

.skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius);
  height: 288px;
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 分享横幅 ---------- */
.share-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 26px 0 8px; padding: 18px 22px;
  background: linear-gradient(120deg, rgba(217,164,65,.12), rgba(240,198,116,.04));
  border: 1px solid var(--gold-line); border-radius: var(--radius);
}
.share-banner .sb-ico {
  width: 46px; height: 46px; border-radius: 13px; background: var(--grad);
  display: grid; place-items: center; flex: 0 0 auto;
}
.share-banner .sb-ico svg { width: 22px; height: 22px; color: #14100a; }
.share-banner .sb-main { flex: 1; min-width: 220px; }
.share-banner h2 { font-size: 17px; font-weight: 700; }
.share-banner .sb-sub { color: var(--text-dim); font-size: 13.2px; margin-top: 3px; }
.share-banner .sb-timer {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 9px; background: rgba(7,7,7,.55); border: 1px solid var(--gold-line);
  font-size: 13px; font-variant-numeric: tabular-nums; color: var(--accent-2);
}
.share-banner .sb-timer svg { width: 14px; height: 14px; }

/* ---------- 密码门 ---------- */
.gate {
  min-height: 78vh; display: grid; place-items: center; padding: 40px 0;
}
.gate-card {
  width: min(430px, 100%); padding: 36px 32px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); text-align: center;
}
.gate-ico {
  width: 62px; height: 62px; border-radius: 18px; background: var(--accent-soft);
  display: grid; place-items: center; margin: 0 auto 20px;
}
.gate-ico svg { width: 27px; height: 27px; color: var(--accent-2); }
/* 登录页品牌标识 */
.gate-logo {
  display: grid; place-items: center; margin: 0 auto 18px;
  width: 176px; max-width: 62%;
}
.gate-logo img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 6px 22px rgba(208, 212, 220, .18));
}
.gate-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.gate-card p { color: var(--text-dim); font-size: 13.8px; margin-bottom: 24px; }
.field { text-align: left; margin-bottom: 16px; }
.field-hint { margin-top: 7px; font-size: 12.4px; line-height: 1.6; color: var(--text-mute); }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 14px;
  background: var(--bg-soft); border: 1px solid var(--border-2);
  border-radius: 10px; color: var(--text); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
textarea.input { height: auto; padding: 11px 14px; resize: vertical; min-height: 84px; line-height: 1.6; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,164,65,.14); }
.input::placeholder { color: var(--text-mute); }
.cover-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cover-picker .btn { flex: 0 0 auto; }
.cover-picker .cover-name { font-size: 13px; color: var(--text-dim); word-break: break-all; }
.err-text { color: #e8a09e; font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---------- 提示 ---------- */
.toast-wrap {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 11px;
  background: rgba(18, 18, 19, .96); border: 1px solid var(--border-2);
  box-shadow: 0 14px 36px rgba(0,0,0,.6); font-size: 14px;
  backdrop-filter: blur(12px); animation: tin .26s cubic-bezier(.2,.7,.3,1);
  max-width: 90vw;
}
.toast.ok    { border-color: rgba(78,168,107,.5); }
.toast.err   { border-color: rgba(217,83,79,.5); }
.toast.warn  { border-color: rgba(217,164,65,.5); }
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; }
.toast.ok svg   { color: var(--ok); }
.toast.err svg  { color: var(--danger); }
.toast.warn svg { color: var(--warn); }
@keyframes tin { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 页脚 / 版权 ---------- */
.site-footer {
  border-top: 1px solid var(--border); padding: 30px 0 44px;
  color: var(--text-mute); font-size: 12.8px; position: relative; z-index: 1;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-top { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); font-weight: 600; font-size: 13.4px; }
.footer-brand .fb-mark {
  width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto;
}
.footer-brand .fb-mark img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 8px rgba(208, 212, 220, .28));
}
.footer-links { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-links a { transition: color .16s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-copy {
  line-height: 1.8; color: var(--text-mute); max-width: 920px; width: 100%;
  margin: 2px auto 0; text-align: center;
  border-top: 1px dashed rgba(255,255,255,.07); padding-top: 14px;
}
.footer-copy .fc-strong { color: var(--text-dim); }

/* ---------- 版权声明页 ---------- */
.legal-page { padding: 44px 0 72px; }
.legal-head { border-bottom: 1px solid var(--border); padding-bottom: 22px; margin-bottom: 26px; }
.legal-head h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: #fff; letter-spacing: -.4px; }
.legal-head .legal-sub { color: var(--text-mute); font-size: 13px; margin-top: 10px; font-family: var(--mono); }
.legal-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; color: #c7c3ba; font-size: 14.4px; line-height: 1.95; white-space: pre-wrap;
}
.legal-list { margin: 0; padding: 0; list-style: none; }
.legal-note {
  margin-top: 22px; padding: 15px 18px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--gold-line); color: var(--accent-2); font-size: 13.4px; line-height: 1.8;
}

/* ---------- 通用工具类 ---------- */
.hide { display: none !important; }
.muted { color: var(--text-mute); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ============================================================
   播放页
   ============================================================ */
.watch-page { padding: 24px 0 70px; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-dim); font-size: 14px; margin-bottom: 16px;
  transition: color .16s;
}
.back-link:hover { color: var(--accent-2); }
.back-link svg { width: 16px; height: 16px; }

.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
@media (max-width: 1080px) { .watch-layout { grid-template-columns: 1fr; } }

.player-shell {
  position: relative; background: #000; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(0,0,0,.7);
  aspect-ratio: 16 / 9;
}
.player-shell.no-aspect { aspect-ratio: auto; }

#stage { width: 100%; height: 100%; display: block; background: #000; }

/* 水印层 */
.wm-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.watermark {
  position: absolute; color: rgba(255,255,255,.16); font-size: 13px;
  white-space: nowrap; font-weight: 500; letter-spacing: .4px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none;
  transition: top 1.4s ease, left 1.4s ease;
  user-select: none;
}
/* 平铺隐形水印（防裁剪） */
.wm-tile {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .05; background-repeat: repeat;
}

/* 遮罩 */
.veil {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(5, 5, 5, .96); backdrop-filter: blur(22px);
  text-align: center; padding: 24px; transition: opacity .25s;
}
.veil-ico {
  width: 62px; height: 62px; border-radius: 18px; background: rgba(217,83,79,.14);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.veil-ico svg { width: 27px; height: 27px; color: #e8a09e; }
.veil h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.veil p { color: var(--text-dim); font-size: 13.6px; max-width: 400px; margin: 0 auto; }

/* 反录屏定时遮挡：播放中每隔数十秒做一次短暂全遮挡，
   把"录下来的成片"切成若干断点。视觉上是品牌 + 文案 + 进度条。 */
.flash-cover {
  position: absolute; inset: 0; z-index: 18;
  background: linear-gradient(180deg, #070707 0%, #131316 100%);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .18s ease;
  pointer-events: none;
}
.flash-cover.show { opacity: 1; pointer-events: auto; }
.flash-cover.hide { opacity: 0; pointer-events: none; }
.fc-inner { text-align: center; color: var(--text-dim); max-width: 380px; padding: 0 24px; }
.fc-logo { width: 48px; height: 48px; opacity: .9; margin-bottom: 14px; filter: drop-shadow(0 0 10px rgba(208,212,220,.18)); }
.fc-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; letter-spacing: .04em; }
.fc-sub   { font-size: 12.8px; color: var(--text-mute); margin-bottom: 18px; }
.fc-bar   { width: 220px; height: 2px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.fc-bar-fill { height: 100%; background: linear-gradient(90deg, #d9a441 0%, #ecd088 100%); width: 0%; }

/* 中央大播放键 */
.bigplay {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center;
  cursor: pointer; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45));
}
.bigplay span {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; box-shadow: 0 12px 36px rgba(0,0,0,.55);
  transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.bigplay:hover span { transform: scale(1.08); }
.bigplay svg { width: 27px; height: 27px; color: #0b0b0b; margin-left: 4px; }

/* 控制条 */
.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  padding: 44px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s, transform .22s;
  pointer-events: none;
}
.player-shell.ctrl-on .controls,
.player-shell:hover .controls { opacity: 1; transform: translateY(0); pointer-events: auto; }
.player-shell.ctrl-lock .controls { opacity: 0 !important; transform: translateY(8px); pointer-events: none !important; }

.progress-wrap { padding: 0 2px 10px; cursor: pointer; position: relative; }
.progress-wrap::before {
  content: ""; position: absolute; left: 2px; right: 2px; top: 50%; transform: translateY(-50%);
  height: 16px; margin-top: -5px;
}
.progress {
  position: relative; height: 4px; border-radius: 3px; background: rgba(255,255,255,.22);
  transition: height .16s;
}
.progress-wrap:hover .progress { height: 6px; }
.progress-buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.3); border-radius: 3px; }
.progress-cur { position: absolute; inset: 0 auto 0 0; background: var(--grad); border-radius: 3px; }
.progress-dot {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.5); transition: transform .16s;
}
.progress-wrap:hover .progress-dot { transform: translate(-50%, -50%) scale(1); }
.progress-tip {
  position: absolute; bottom: 22px; transform: translateX(-50%);
  background: rgba(7,7,7,.94); border: 1px solid var(--border-2);
  padding: 4px 9px; border-radius: 7px; font-size: 12px;
  font-variant-numeric: tabular-nums; pointer-events: none;
  opacity: 0; transition: opacity .14s; white-space: nowrap;
}
.progress-wrap:hover .progress-tip { opacity: 1; }

.ctrl-row { display: flex; align-items: center; gap: 6px; }
.ctrl-btn {
  width: 36px; height: 36px; border-radius: 9px; border: none; background: transparent;
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .16s; flex: 0 0 auto;
}
.ctrl-btn:hover { background: rgba(255,255,255,.15); }
.ctrl-btn svg { width: 19px; height: 19px; }
.ctrl-time { color: #fff; font-size: 12.8px; font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
.ctrl-time .dim { color: rgba(255,255,255,.55); }

.vol-wrap { display: flex; align-items: center; }
.vol-slider {
  width: 0; overflow: hidden; transition: width .22s, margin .22s;
  display: flex; align-items: center;
}
.vol-wrap:hover .vol-slider { width: 78px; margin-left: 2px; }
.vol-slider input { width: 78px; accent-color: #fff; cursor: pointer; }

.rate-menu {
  position: absolute; bottom: 56px; right: 16px; z-index: 14;
  background: rgba(13,13,14,.97); border: 1px solid var(--border-2);
  border-radius: 11px; padding: 6px; min-width: 104px;
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  display: none;
}
.rate-menu.show { display: block; animation: tin .18s; }
.rate-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 11px; border-radius: 7px; cursor: pointer; font-size: 13.4px; color: var(--text);
}
.rate-item:hover { background: rgba(255,255,255,.08); }
.rate-item.on { color: var(--accent-2); font-weight: 600; }

/* 播放页信息 */
.watch-info { margin-top: 20px; }
.watch-title { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.3px; }
.watch-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--text-mute); font-size: 13px; margin-top: 11px;
}
.watch-meta .sep { color: #3a3a3c; }
.chip {
  height: 26px; padding: 0 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  background: var(--panel); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim);
}
.chip-accent { background: var(--accent-soft); border-color: var(--gold-line); color: var(--accent-2); }
.watch-desc {
  margin-top: 18px; padding: 17px 19px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: #c7c3ba; font-size: 14px; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
}
/* 版权说明放在视频卡片下方（.footer-copy）与底部页脚共用一套样式，watch 页用同一个选择器 */
/* 侧栏推荐 */
.side-title { font-size: 15px; font-weight: 650; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.side-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-item {
  display: flex; gap: 11px; padding: 8px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; transition: all .16s;
}
.side-item:hover { background: var(--panel); border-color: var(--border); }
.side-item .si-cover {
  width: 108px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: var(--panel-2);
}
.side-item .si-cover img { width: 100%; height: 100%; object-fit: cover; }
.side-item .si-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.side-item .si-title {
  font-size: 13.4px; font-weight: 600; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-item .si-meta { color: var(--text-mute); font-size: 11.8px; margin-top: auto; font-family: var(--mono); }

/* 非视频预览 */
.doc-preview {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--bg-soft); text-align: center; padding: 30px;
}
#docFrame { width: 100%; height: 100%; border: 0; background: #fff; }
.media-img { position: absolute; inset: 0; display: grid; place-items: center; background: #050505; }
.media-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============================================================
   管理中心
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; padding: 26px 0 70px; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-nav {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; position: sticky; top: 90px; height: fit-content;
}
@media (max-width: 900px) { .admin-nav { position: static; } }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px;
  color: var(--text-dim); cursor: pointer; font-size: 14px; transition: all .16s; margin-bottom: 3px;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; }

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.panel-head h3 { font-size: 16.5px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.panel-head h3 svg { width: 18px; height: 18px; color: var(--accent-2); }
.panel-head .sub { color: var(--text-mute); font-size: 13px; margin-top: 3px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 18px; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; right: -22px; top: -22px; width: 76px; height: 76px;
  border-radius: 50%; background: var(--accent-soft);
}
.stat-card .sv { font-size: 25px; font-weight: 750; letter-spacing: -.6px; position: relative; color: var(--accent-2); font-family: var(--mono); }
.stat-card .sl { color: var(--text-mute); font-size: 12.6px; margin-top: 4px; position: relative; }

/* 拖拽上传 */
.dropzone {
  border: 2px dashed var(--border-2); border-radius: var(--radius);
  padding: 42px 24px; text-align: center; cursor: pointer;
  transition: all .2s; background: rgba(13, 13, 14, .5);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.over { transform: scale(1.008); }
.dz-ico {
  width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.dz-ico svg { width: 27px; height: 27px; color: var(--accent-2); }
.dropzone h4 { font-size: 16px; font-weight: 650; margin-bottom: 7px; }
.dropzone p { color: var(--text-dim); font-size: 13.4px; }
.dz-formats { margin-top: 12px; font-size: 12.2px; color: var(--text-mute); line-height: 1.7; }

.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px;
}
.file-row .fr-ico {
  width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2);
  display: grid; place-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--accent-2);
}
.file-row .fr-main { flex: 1; min-width: 0; }
.file-row .fr-name { font-size: 13.6px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .fr-sub { color: var(--text-mute); font-size: 12px; margin-top: 2px; }
.file-row .fr-bar { height: 3px; border-radius: 2px; background: var(--panel-2); margin-top: 7px; overflow: hidden; }
.file-row .fr-bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13.6px; min-width: 660px; }
thead th {
  text-align: left; padding: 12px 15px; background: var(--bg-soft);
  color: var(--text-dim); font-weight: 600; font-size: 12.6px;
  letter-spacing: .3px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.022); }
.t-title { font-weight: 600; max-width: 300px; }
.t-title .t-sub { color: var(--text-mute); font-size: 12px; font-weight: 400; margin-top: 2px; }
.thumb {
  width: 66px; aspect-ratio: 16/10; border-radius: 7px; object-fit: cover;
  background: var(--panel-2); flex: 0 0 auto;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-public  { background: rgba(78,168,107,.13);  color: #7ec894; }
.pill-unlisted{ background: rgba(217,164,65,.13);  color: #e5be76; }
.pill-private { background: rgba(217,83,79,.13);   color: #e8a09e; }
.pill-valid   { background: rgba(78,168,107,.13);  color: #7ec894; }
.pill-expired { background: rgba(120,120,124,.16); color: #a3a19c; }
.pill-disabled{ background: rgba(217,83,79,.13);   color: #e8a09e; }
.pill-exhausted{ background: rgba(217,164,65,.13); color: #e5be76; }
.pill-notfound{ background: rgba(120,120,124,.16); color: #a3a19c; }

/* 表单栅格 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* 开关 */
.switch-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.switch-row:last-child { border-bottom: none; }
.switch-row .sr-main { flex: 1; }
.switch-row .sr-title { font-size: 14.2px; font-weight: 600; }
.switch-row .sr-desc { color: var(--text-mute); font-size: 12.6px; margin-top: 3px; line-height: 1.6; }
.switch {
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border-2);
  cursor: pointer; flex: 0 0 auto; transition: background .2s, border-color .2s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #8b8880; transition: transform .2s, background .2s;
}
.switch.on { background: var(--accent); border-color: transparent; }
.switch.on::after { transform: translateX(20px); background: #fff; }

/* 复选卡片（选择可看内容） */
.pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px; max-height: 330px; overflow-y: auto; padding: 3px;
}
.pick-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  background: var(--bg-soft); transition: all .15s;
}
.pick-item:hover { border-color: var(--border-2); }
.pick-item.on { border-color: var(--gold-line); background: var(--accent-soft); }
.pick-item input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; flex: 0 0 auto; }
.pick-item .pi-body { min-width: 0; flex: 1; }
.pick-item .pi-title { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-item .pi-sub { color: var(--text-mute); font-size: 11.6px; margin-top: 2px; }
.pick-item img { width: 40px; aspect-ratio: 16/10; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,4,4,.78);
  backdrop-filter: blur(7px); display: grid; place-items: center; padding: 24px;
  overflow-y: auto; animation: fin .18s;
}
@keyframes fin { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(660px, 100%); background: var(--panel); border: 1px solid var(--border-2);
  border-radius: 17px; box-shadow: var(--shadow); max-height: 90vh;
  display: flex; flex-direction: column; animation: mup .24s cubic-bezier(.2,.7,.3,1);
}
@keyframes mup { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 19px 22px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 16.5px; font-weight: 650; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-body .legal-card { background: var(--bg-soft); padding: 20px 20px; font-size: 13.6px; line-height: 1.85; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 22px; border-top: 1px solid var(--border);
}
.close-x {
  width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-dim); cursor: pointer; display: grid; place-items: center;
}
.close-x:hover { background: var(--panel-2); color: var(--text); }
.close-x svg { width: 17px; height: 17px; }

/* 分享链接结果 */
.link-result {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px;
  background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 11px;
  word-break: break-all; font-size: 13px;
}
.link-result .lr-text { flex: 1; min-width: 0; font-family: var(--mono); }

.kv { display: flex; gap: 10px; font-size: 13.4px; padding: 7px 0; }
.kv .k { color: var(--text-mute); min-width: 78px; flex: 0 0 auto; }
.kv .v { flex: 1; word-break: break-word; }

.alert {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px;
  border-radius: 11px; font-size: 13.4px; line-height: 1.65;
}
.alert svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; }
.alert-info { background: rgba(217,164,65,.08); border: 1px solid rgba(217,164,65,.28); color: var(--accent-2); }
.alert-warn { background: rgba(217,164,65,.07); border: 1px solid rgba(217,164,65,.26); color: #e5be76; }
.alert-ok   { background: rgba(78,168,107,.08);  border: 1px solid rgba(78,168,107,.26);  color: #7ec894; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { height: 60px; gap: 12px; }
  .search-box { max-width: none; }
  .header-status { display: none; }
  .hero { padding: 30px 0 18px; }
  .grid { grid-template-columns: 1fr; gap: 15px; }
  .card-body { padding: 12px 14px 13px; }
  .card-title { font-size: 15px; }
  .watch-title { font-size: 18px; }
  .panel { padding: 16px; }
  .modal-body { padding: 17px; }
  .side-item .si-cover { width: 92px; }
  .legal-card { padding: 20px 18px; }
}
