* { box-sizing: border-box; }
body { margin: 0; color: #1f2328; background: #f3f5f8; font: 14px/1.5 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: #1d6fd4; }
.top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px; background: #243044; color: #fff; }
.top a { color: #fff; text-decoration: none; }
.shell { display: flex; min-height: calc(100vh - 56px); }
.side { width: 180px; background: #314056; }
.side a { display: block; padding: 12px 16px; color: #e6ebf2; text-decoration: none; }
.side a.is-on, .side-parent.is-on { background: #243044; color: #fff; font-weight: 700; }
.side-parent { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 0; background: transparent; color: #e6ebf2; font: inherit; text-align: left; cursor: pointer; }
.side-parent::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #c5ceda; border-bottom: 1.5px solid #c5ceda; transform: rotate(45deg) translateY(-2px); }
.side-group.is-open .side-parent::after { transform: rotate(-135deg) translateY(-2px); }
.side-sub { display: none; background: #28364c; }
.side-group.is-open .side-sub { display: block; }
.side-sub a { padding: 10px 16px 10px 28px; font-size: 13px; }
.main { flex: 1; padding: 16px; }
.panel { max-width: 1080px; padding: 16px 18px 24px; background: #fff; border: 1px solid #e6e8ee; border-radius: 8px; }
h1 { margin: 0 0 14px; font-size: 20px; }
.flash { padding: 8px 10px; background: #e8f8ee; border-radius: 4px; }
.form { display: grid; gap: 12px; max-width: 640px; }
.blocks { display: grid; gap: 14px; }
.block { padding: 16px; background: #f7f8fa; border: 1px solid #e6e8ee; border-radius: 8px; }
.block h2 { margin: 0 0 4px; font-size: 16px; }
.block h3 { margin: 0 0 10px; font-size: 14px; }
.lead, .block .lead { margin: 0 0 14px; color: #667085; }
.block .form { max-width: none; }
.form > .btn { justify-self: start; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sub { display: grid; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e6e8ee; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks .check { white-space: nowrap; }
.cat-row { gap: 8px; }
.cat-row .daily { width: 72px; height: 32px; }
.form.wide { max-width: none; }
.tg-list th, .tg-list td { white-space: nowrap; }
.tg-list th:nth-child(4), .tg-list td:nth-child(4) { white-space: normal; }
.tg-list th:last-child, .tg-list td:last-child { width: 88px; text-align: right; }
label { display: grid; gap: 6px; }
input, select { height: 36px; padding: 0 10px; border: 1px solid #d8dde6; border-radius: 4px; }
input[type="checkbox"] { width: 16px; height: 16px; padding: 0; }
.btn { display: inline-block; height: 34px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 4px; background: #fff; cursor: pointer; text-decoration: none; color: inherit; line-height: 32px; white-space: nowrap; }
.btn-primary { background: #2f86eb; border-color: #2f86eb; color: #fff; }
.hint { color: #667085; font-size: 12px; }
.collect-note { word-break: break-word; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.stat { min-width: 120px; padding: 12px; background: #f7f8fa; border-radius: 6px; }
.stat b { display: block; font-size: 22px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 6px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: top; }
.video-filter { display: flex; align-items: center; margin: 0 0 12px; }
.video-filter label { display: flex; align-items: center; gap: 8px; }
.video-filter select { min-width: 180px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.check { display: flex; align-items: center; gap: 8px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #d8dde6; border-radius: 4px; color: inherit; text-decoration: none; }
.pager .is-on { background: #243044; border-color: #243044; color: #fff; }
.pager .off { color: #98a2b3; background: #f7f8fa; }
.pager .gap { min-width: 16px; padding: 0; border: 0; }
.pager form { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.pager .jump { display: inline-flex; align-items: center; gap: 6px; color: #667085; }
.pager input[type="number"] { width: 76px; height: 32px; }
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card { display: grid; gap: 12px; width: 320px; padding: 20px; background: #fff; border-radius: 8px; }
.bad { color: #b42318; }
.video-table { table-layout: fixed; }
.video-table .col-check { width: 36px; }
.video-table .col-time { width: 108px; }
.video-table .col-cat { width: 88px; }
.video-table .col-tags { width: 120px; }
.video-table .col-len { width: 84px; }
.video-table .col-status { width: 72px; }
.video-table .col-actions { width: 168px; }
.video-table .clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-btns form { margin: 0; }
.preview-mask { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 18, 24, .72); }
.preview-mask[hidden] { display: none; }
.preview-box { width: min(960px, 100%); background: #111; border-radius: 8px; overflow: hidden; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: #fff; }
.preview-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-box video { display: block; width: 100%; max-height: 72vh; background: #000; }
.preview-note { margin: 0; padding: 8px 12px 12px; color: #f7d0cb; }
