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

:root {
  --bg:        #0e0e14;
  --surface:   #181822;
  --surface-2: #22223a;
  --text:      #eae8f2;
  --dim:       #807e96;
  --accent:    #7c6bf5;
  --accent-l:  #a99ffe;
  --border:    #2c2c42;
  --r:         8px;
  --w:         1200px;
}

html { font-size: 15px; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── 顶栏 ── */
.hd { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 1.2rem; position: sticky; top: 0; z-index: 99; }
.hd-in { max-width: var(--w); margin: 0 auto; display: flex; align-items: center; height: 52px; gap: 1.5rem; }
.logo { font-size: 1.2rem; font-weight: 700; color: var(--accent-l); letter-spacing: .5px; white-space: nowrap; }
.nav { display: flex; gap: .2rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: .35rem .7rem; border-radius: var(--r); font-size: .88rem; color: var(--dim); transition: .15s; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--surface-2); }

.sb { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.sb input { background: 0; border: 0; color: var(--text); padding: .4rem .7rem; font-size: .88rem; width: 160px; outline: 0; }
.sb input::placeholder { color: var(--dim); }
.sb button { background: var(--accent); border: 0; color: #fff; padding: .4rem .7rem; cursor: pointer; font-size: .82rem; }

/* ── 内容 ── */
.wrap { max-width: var(--w); margin: 0 auto; padding: 1.5rem 1.2rem; }
.stitle { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; padding-left: .5rem; border-left: 3px solid var(--accent); }

/* ── 视频卡片网格 ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card .th { position: relative; padding-top: 140%; background: var(--surface-2); }
.card .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .th .ph { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 2.2rem; opacity: .25; }
.card .th .tg { position: absolute; top: 6px; right: 6px; background: var(--accent); color: #fff; font-size: .68rem; padding: 1px 6px; border-radius: 4px; }
.card .nf { padding: .5rem .6rem; }
.card .nf h3 { font-size: .85rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .nf .mt { font-size: .72rem; color: var(--dim); margin-top: .2rem; }

/* ── 播放页 ── */
.pw { background: #000; border-radius: var(--r); overflow: hidden; margin-bottom: 1.2rem; }
.pw video, .pw iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.vd h1 { font-size: 1.3rem; font-weight: 600; margin-bottom: .4rem; }
.vd .mr { display: flex; gap: .8rem; flex-wrap: wrap; color: var(--dim); font-size: .82rem; }
.vd .ds { margin-top: .8rem; color: var(--dim); font-size: .88rem; line-height: 1.8; }
.vd .bk { display: inline-block; margin-top: 1rem; color: var(--accent-l); font-size: .85rem; }

/* ── 后台 ── */
.adm { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; }
.fc { background: var(--surface); border-radius: var(--r); padding: 1.2rem; position: sticky; top: 64px; align-self: start; }
.fc h2 { font-size: .95rem; margin-bottom: .8rem; }
.fg { margin-bottom: .6rem; }
.fg label { display: block; font-size: .78rem; color: var(--dim); margin-bottom: .2rem; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); padding: .4rem .6rem; font-size: .82rem; outline: 0;
}
.fg input:focus, .fg select:focus { border-color: var(--accent); }
.fg textarea { resize: vertical; min-height: 50px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; padding: .4rem 1rem; border-radius: 6px; cursor: pointer; font-size: .82rem; }
.btn:hover { background: var(--accent-l); }
.btn-d { background: #d44; }
.btn-d:hover { background: #b33; }
.btn-s { padding: .25rem .5rem; font-size: .72rem; }

.tw { overflow-x: auto; background: var(--surface); border-radius: var(--r); padding: .8rem; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
th { color: var(--dim); font-weight: 500; }
.acts { display: flex; gap: .3rem; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--dim); }
.empty .ic { font-size: 2.5rem; margin-bottom: .6rem; opacity: .3; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

@media (max-width: 768px) {
  .hd-in { gap: .6rem; }
  .sb input { width: 100px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .adm { grid-template-columns: 1fr; }
  .fc { position: static; }
  .nav { display: none; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
