@charset "UTF-8";

:root {
  --wood-dark: #1a1209;
  --wood: #241a0f;
  --wood-light: #2f2314;
  --brass: #d4a853;
  --brass-light: #e8c87a;
  --felt: #0d5c3b;
  --cream: #f5e6c8;
  --text-secondary: #a89b7c;
  --text-muted: #6b5f4f;
  --line: rgba(212, 168, 83, 0.18);
  --ok: #5dcaa5;
  --warn: #ef9f27;
  --danger: #f09595;
  --info: #85b7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wood-dark);
  color: var(--cream);
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Songti SC', 'STSong', Georgia, serif;
  font-weight: 500;
  margin: 0;
}

/* ---------- 登录 ---------- */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--wood);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
}

.login-card h1 {
  font-size: 22px;
  color: var(--brass-light);
  letter-spacing: 2px;
}

.login-card .sub {
  color: var(--text-muted);
  font-size: 13px;
  margin: 8px 0 26px;
}

/* ---------- 布局 ---------- */

.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand h1 {
  font-size: 20px;
  color: var(--brass-light);
  letter-spacing: 2px;
}

.brand .sub {
  font-size: 12px;
  color: var(--text-muted);
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.tab.active {
  background: rgba(212, 168, 83, 0.14);
  border-color: var(--brass);
  color: var(--brass-light);
}

/* ---------- 控件 ---------- */

input, select, button {
  font-family: inherit;
  font-size: 14px;
}

input[type='password'],
input[type='text'],
input[type='date'],
select {
  background: var(--wood);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 9px 12px;
  border-radius: 8px;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--brass);
}

button {
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--brass);
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: #241a0f;
  padding: 9px 20px;
  font-weight: 500;
}

button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-secondary);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.filters .grow {
  flex: 1;
  min-width: 160px;
}

/* 筛选区右侧的口径提示（如「正在统计 2026-10-08」） */
.filters .hint {
  font-size: 13px;
}

/* ---------- 统计卡 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat {
  background: var(--wood);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.stat .label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat .value {
  font-size: 26px;
  color: var(--brass-light);
  font-family: 'Songti SC', Georgia, serif;
  line-height: 1.3;
}

.stat .value.small {
  font-size: 20px;
}

/* ---------- 表格 ---------- */

.panel {
  background: var(--wood);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.panel h2 {
  font-size: 15px;
  color: var(--brass-light);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 721px) {
  .table-wrap table {
    min-width: 900px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* 可调节列宽表格 (Resizable Table) */
table.resizable-table {
  table-layout: fixed;
  border-collapse: collapse;
}

table.resizable-table th {
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

table.resizable-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

table.resizable-table td.items-cell {
  overflow: visible;
}

table.resizable-table td.items-cell .item-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table.resizable-table .buyer-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 列调整条手柄 */
.col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  z-index: 10;
  touch-action: none;
}

/* 垂直指示条：平时带轻微指示，hover 或拖拽时高亮为黄铜金并带光晕 */
.col-resizer::after {
  content: '';
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 3px;
  width: 2px;
  background: rgba(212, 168, 83, 0.4);
  border-radius: 1px;
  transition: all 0.15s ease;
}

.col-resizer:hover::after,
.col-resizer.resizing::after {
  top: 0;
  bottom: 0;
  width: 3px;
  left: 3px;
  background: var(--brass-light);
  box-shadow: 0 0 8px rgba(232, 200, 122, 0.85);
}

/* 拖拽中全局锁定 cursor 并禁止选中文本 */
body.is-col-resizing,
body.is-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

th {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover {
  color: var(--brass-light);
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr.clickable {
  cursor: pointer;
}

tbody tr.clickable:hover {
  background: rgba(212, 168, 83, 0.06);
}

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.time-cell,
.nowrap {
  white-space: nowrap !important;
}

.loc-cell {
  white-space: nowrap !important;
}

@media (min-width: 721px) {
  td.time-cell,
  th.time-cell {
    min-width: 145px;
    white-space: nowrap !important;
  }
  td.loc-cell,
  th.loc-cell {
    min-width: 120px;
    white-space: nowrap !important;
  }
}

/* 关键数据列防止折行碎裂（时间折成3行、位置折成5行等） */
td[data-label='时间'],
td[data-label='开通时间'],
td[data-label='到期时间'],
td[data-label='最近发放'],
td[data-label='位置'],
td[data-label='杯数'],
td[data-label='金额'],
td[data-label='状态'],
td[data-label='会员'],
td[data-label='产品'],
td[data-label='券码数'],
td[data-label='未使用'],
td[data-label='已使用'],
td[data-label='已过期'],
td[data-label='剩余'],
.badge {
  white-space: nowrap;
}

.buyer-cell {
  line-height: 1.35;
  white-space: nowrap;
}

.buyer-phone {
  margin-top: 3px;
  font-size: 12px;
}

.items-cell {
  color: var(--text-secondary);
  font-size: 13px;
  min-width: 180px;
  line-height: 1.5;
}

/* 订单表里的商品明细：每件商品一行，右侧跟杯数 */
.items-cell .item-line {
  display: block;
  white-space: nowrap;
}

.items-cell .item-qty {
  color: var(--brass);
  margin-left: 6px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
}

/* 单价：跟在杯数后面，比杯数亮一档，方便一眼扫到价格 */
.items-cell .item-price {
  color: var(--brass-light);
  margin-left: 8px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
}

.muted {
  color: var(--text-muted);
}

.buyer-cell {
  line-height: 1.35;
}

.buyer-phone {
  margin-top: 3px;
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.danger { color: var(--danger); }
.badge.info { color: var(--info); }
.badge.muted { color: var(--text-muted); }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

.error {
  background: rgba(240, 149, 149, 0.1);
  border: 1px solid rgba(240, 149, 149, 0.35);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

/* ---------- 详情抽屉 ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 7, 3, 0.72);
  display: flex;
  justify-content: flex-end;
}

.drawer-inner {
  width: min(520px, 100%);
  background: var(--wood-dark);
  border-left: 1px solid var(--line);
  padding: 22px;
  overflow-y: auto;
}

.drawer-inner h2 {
  font-size: 17px;
  color: var(--brass-light);
  margin-bottom: 4px;
}

.drawer-section {
  margin-top: 20px;
}

.drawer-section h3 {
  font-size: 14px;
  color: var(--brass);
  margin-bottom: 8px;
}

.drawer-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
  gap: 12px;
}

.drawer-row span:first-child {
  color: var(--text-muted);
  white-space: nowrap;
}

/* 券码明细条目（用户下钻抽屉里用） */
.coupon-item {
  padding: 9px 0;
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
}

.coupon-item:last-child {
  border-bottom: none;
}

.coupon-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coupon-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .app { padding: 14px 12px 50px; }
  .table-wrap { overflow-x: visible; }
  .table-wrap table { min-width: 0; }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  td {
    border: none;
    padding: 3px 14px;
    /* 用 grid 而不是 flex：flex 行内文本是匿名 flex item，min-width:auto 会让长订单号顶出容器，
       grid 的 minmax(0,1fr) 才允许右侧内容折行 */
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 3px 12px;
    align-items: baseline;
  }
  td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
  }
  /* 商品明细在窄屏改成「标签在上、多条明细在下」，避免多件商品被挤成一行 */
  td.items-cell {
    display: block;
  }
  td.items-cell::before {
    display: block;
    margin-bottom: 2px;
  }
  td.items-cell .item-line {
    white-space: normal;
  }
  /* 订单号/编号/手机号这类长串在窄屏要能折行，否则会顶出容器被裁掉 */
  td.mono {
    word-break: break-all;
    white-space: normal;
  }
}

/* ---------------- 荣誉墙专属样式 ---------------- */
.champion-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.champion-upload-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.champion-upload-panel h2 {
  font-size: 16px;
  color: var(--brass-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.champion-form-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .champion-form-grid {
    grid-template-columns: 1fr;
  }
}

.upload-dropzone {
  border: 2px dashed rgba(212, 168, 83, 0.4);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover {
  border-color: var(--brass);
  background: rgba(212, 168, 83, 0.05);
}

.upload-dropzone-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.upload-dropzone-text {
  color: var(--cream);
  font-size: 13px;
  margin-bottom: 4px;
}

.upload-dropzone-hint {
  color: var(--text-muted);
  font-size: 11px;
}

.preview-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-img {
  max-width: 100%;
  max-height: 190px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.preview-remove-btn {
  margin-top: 8px;
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 68, 68, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 4px;
  cursor: pointer;
}

.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  color: var(--brass);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-field label .form-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-field select {
  cursor: pointer;
}

.form-field select option {
  background: #1a1209;
  color: var(--cream);
}

.form-field textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

.form-checkbox-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px dashed rgba(212, 168, 83, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brass-light);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brass);
  cursor: pointer;
}

.checkbox-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 24px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.champions-list-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
}

.phone-lookup-status {
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.phone-lookup-status.success {
  color: #2ecc71;
}

.phone-lookup-status.loading {
  color: var(--brass);
}

.phone-lookup-status.muted {
  color: var(--text-muted);
}

.champion-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.champion-filter-input {
  max-width: 280px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.champion-filter-input:focus {
  outline: none;
  border-color: var(--brass);
}

.champions-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.champions-list-header h2 {
  font-size: 16px;
  color: var(--brass-light);
  margin: 0;
}

.champions-count {
  font-size: 12px;
  color: var(--text-muted);
}

.champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.champion-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.champion-card:hover {
  transform: translateY(-2px);
  border-color: var(--brass);
}

.champion-card-image-wrap {
  width: 100%;
  height: 180px;
  background: #090604;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.champion-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.champion-card-image-wrap:hover .champion-card-img {
  transform: scale(1.03);
}

.champion-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.champ-badge-winner {
  background: rgba(26, 18, 9, 0.85);
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.champ-badge-date {
  background: rgba(0, 0, 0, 0.7);
  color: var(--cream);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.champion-card-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.champion-card-caption {
  font-size: 13px;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  word-break: break-word;
}

.champion-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.champion-card-time {
  font-size: 11px;
  color: var(--text-muted);
}

.champion-card-del-btn {
  background: transparent;
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.champion-card-del-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
}

.champ-order-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(26, 18, 9, 0.85);
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.champion-card-order-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.champion-order-label {
  font-size: 12px;
  color: var(--brass-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.champion-order-btn-group {
  display: flex;
  gap: 4px;
}

.champ-order-btn {
  background: rgba(212, 168, 83, 0.12);
  color: var(--brass-light);
  border: 1px solid rgba(212, 168, 83, 0.35);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.champ-order-btn:hover:not(:disabled) {
  background: var(--brass);
  color: #1a1209;
  border-color: var(--brass);
}

.champ-order-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  background: transparent;
}

.champion-reorder-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(212, 168, 83, 0.06);
  border-left: 3px solid var(--brass);
  border-radius: 0 4px 4px 0;
}

.champion-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------------- 精彩视频管理样式 ---------------- */
.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.video-admin-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.video-admin-card:hover {
  border-color: rgba(212, 168, 83, 0.5);
  transform: translateY(-2px);
}

.video-thumb-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 100%);
}

.video-play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--brass);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.video-thumb-container:hover .video-play-btn-circle {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--brass);
  color: #1a1209;
}

.video-badge-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 18, 9, 0.85);
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 2;
}

.video-badge-duration {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}

.video-admin-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-admin-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 6px;
}

.video-admin-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-admin-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.video-admin-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 视频卡片底部多行排版系统 */
.video-admin-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-meta-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 行 1：时间行 */
.video-meta-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.2;
}

.video-meta-time-icon {
  font-size: 11px;
  opacity: 0.85;
}

.video-meta-time-text {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

/* 行 2：观看与点赞互动数据行（点击整行可调数据） */
.video-meta-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.18);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-meta-stats-row:hover {
  background: rgba(212, 168, 83, 0.14);
  border-color: var(--brass);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.video-stats-pill-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.video-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--cream-dim);
  white-space: nowrap;
}

.video-stat-pill .pill-icon {
  font-size: 12px;
}

.video-stat-pill .pill-label {
  color: var(--text-muted);
  font-size: 11px;
}

.video-stat-pill .pill-val {
  color: var(--brass-light);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.video-stat-pill .pill-unit {
  font-size: 10px;
  color: var(--text-muted);
}

.video-stat-edit-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--brass);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(212, 168, 83, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.video-meta-stats-row:hover .video-stat-edit-trigger {
  background: var(--brass);
  color: #1a1209;
  font-weight: 700;
}

/* 行 3：操作按钮行 */
.video-card-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.video-card-actions-row .champ-order-btn {
  font-size: 11px;
  padding: 4px 9px;
  height: 26px;
  line-height: 1;
}

.video-card-actions-row .btn-action-stats {
  color: var(--brass-light);
  border-color: rgba(212, 168, 83, 0.45);
  background: rgba(212, 168, 83, 0.12);
  font-weight: 600;
}

.video-card-actions-row .btn-action-stats:hover {
  border-color: var(--brass);
  background: rgba(212, 168, 83, 0.25);
  color: #fff;
}

.video-card-actions-row .champion-card-del-btn {
  font-size: 11px;
  padding: 4px 8px;
  height: 26px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.category-pill-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--cream-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill-btn:hover {
  border-color: var(--brass);
  color: var(--brass-light);
}

.category-pill-btn.active {
  background: var(--brass);
  color: #1a1209;
  border-color: var(--brass);
  font-weight: 700;
}

/* 视频播放弹窗 */
.video-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.video-modal-dialog {
  background: #1a1209;
  border: 1px solid var(--brass);
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  position: relative;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(212, 168, 83, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.video-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brass-light);
}

.video-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  line-height: 1;
}

.video-modal-close:hover {
  color: #ff6b6b;
}

.video-modal-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-player {
  width: 100%;
  height: 100%;
  display: block;
}

/* 视频互动数据调节弹窗与交互徽章 */
.video-stats-modal-dialog {
  max-width: 480px;
  background: #18120a;
  border: 1px solid var(--brass);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95);
  border-radius: 12px;
}

.video-stats-modal-body {
  padding: 18px 22px;
}

.video-stats-target-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 8px;
  margin-bottom: 18px;
}

.video-stats-target-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(212, 168, 83, 0.3);
  flex-shrink: 0;
}

.video-stats-target-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-stats-target-cat {
  font-size: 11px;
  color: var(--brass-light);
  margin-top: 2px;
}

.stats-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-dim);
}

.stats-current-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
}

.stats-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stats-num-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brass-light);
  font-family: var(--font-mono, monospace);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stats-num-input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.2);
}

.stats-quick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.quick-tag-label {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-stats-quick {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--cream-dim);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-stats-quick:hover {
  background: rgba(212, 168, 83, 0.2);
  border-color: var(--brass);
  color: var(--brass-light);
}

.btn-stats-quick.reset {
  color: #ff8585;
  border-color: rgba(255, 107, 107, 0.3);
}

.btn-stats-quick.reset:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
}

.stats-tip-banner {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--brass);
  padding: 8px 10px;
  border-radius: 4px;
  margin-top: 18px;
}

.stats-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-stats-badge {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.22);
  transition: all 0.2s;
  color: var(--cream-dim);
}

.video-stats-badge:hover {
  background: rgba(212, 168, 83, 0.2);
  border-color: var(--brass);
  color: var(--brass-light);
  transform: translateY(-1px);
}
