:root { --green: #1a9e57; --orange: #ff7a29; --ink: #223; --muted: #667; --line: #e4e7ee; --bg: #f6f7fb; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 12px 16px; }
h1 { font-size: 22px; margin: 0 0 4px; }
.note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#search { flex: 1 1 280px; padding: 9px 12px; font-size: 15px; border: 1px solid #c9d0dd; border-radius: 8px; }
#filter { padding: 9px 10px; font-size: 14px; border: 1px solid #c9d0dd; border-radius: 8px; background: #fff; }
.chk { font-size: 14px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.btn { display: inline-block; padding: 9px 14px; border-radius: 8px; font-size: 14px; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn.ghost { border-color: #c9d0dd; color: var(--ink); background: #fff; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:disabled { background: #9db8a8; cursor: default; }
.stats { margin-top: 10px; font-size: 14px; font-weight: 600; }
.stats .sub { font-weight: 400; color: var(--muted); }
.warn { margin-top: 8px; background: #fff3cd; border: 1px solid #f0c36d; color: #7a5b00; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
main { max-width: 1240px; margin: 0 auto; padding: 12px 16px 60px; }
.loading { text-align: center; color: var(--muted); padding: 40px; }
.row { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.row.done { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.row-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.code { background: #1f3864; color: #fff; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.row-head h2 { font-size: 17px; margin: 0; }
.meta { color: var(--muted); font-size: 13px; }
.badge { font-size: 12px; padding: 2px 7px; border-radius: 20px; background: #eef2ff; color: #335; white-space: nowrap; }
.badge.old { background: #fff1e6; color: #8a4b00; }
.badge.none { background: #f1f1f1; color: #777; }
.row-head .spacer { flex: 1; }
.progress { font-size: 13px; color: var(--muted); white-space: nowrap; }
.progress b { color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 12px; }
@media (max-width: 900px) { .slots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .slots { grid-template-columns: repeat(2, 1fr); } }
.cell { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.cell.approved { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.cell.empty { background: #fafbfc; }
.cell-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: 12.5px; font-weight: 600; background: #f4f6fa; }
.cell-head .slotname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-head .appr { color: var(--green); font-weight: 700; }
.poster { position: relative; aspect-ratio: 1 / 1; background: #111; cursor: pointer; }
.poster.playing { cursor: default; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.18); }
.poster .play span { background: rgba(0,0,0,.65); color: #fff; font-size: 26px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.poster video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; display: block; }
.vidwrap { position: absolute; inset: 0; }
.vid-close { position: absolute; top: 6px; right: 6px; z-index: 3; background: rgba(0,0,0,.65); color: #fff; border: 0; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.vid-sound { position: absolute; top: 6px; left: 6px; z-index: 3; background: rgba(0,0,0,.65); color: #fff; border: 0; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.vid-error { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(255,243,205,.97); color: #7a5b00; font-size: 12px; line-height: 1.4; padding: 8px; text-align: center; }
.btn.mini { padding: 4px 8px; font-size: 12px; margin-top: 4px; }
.poster .nofile { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #888; font-size: 13px; padding: 10px; text-align: center; background: #f0f1f4; }
.cell-body { padding: 7px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cell-body select { width: 100%; font-size: 12.5px; padding: 5px 4px; border: 1px solid #c9d0dd; border-radius: 6px; background: #fff; }
.ver-note { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.approve-line { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; cursor: pointer; margin-top: auto; }
.approve-line input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.drive-link { font-size: 12px; color: #3355cc; text-decoration: none; }
.drive-link:hover { text-decoration: underline; }
.row-empty-note { padding: 14px; color: var(--muted); font-size: 14px; }
.pager { max-width: 1240px; margin: 0 auto 60px; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.btn.pg { padding: 7px 12px; font-size: 13.5px; }
.btn.pg.active { background: #1f3864; color: #fff; border-color: #1f3864; }
.btn.pg:disabled { opacity: .45; cursor: default; }
.pg-dots { color: var(--muted); padding: 0 2px; }
.pg-info { font-size: 13.5px; color: var(--muted); margin-left: 8px; }
