* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  color: #0f172a;
  min-height: 100vh;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}

.hero-subtitle {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.toolbar input,
.toolbar select,
.toolbar button {
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
}

.toolbar input,
.toolbar select {
  border: 1px solid #cbd5e1;
  padding: 0 14px;
  background: #fff;
}

.toolbar button {
  border: 0;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.table-card {
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.detail-stage,
.detail-sidebar {
  padding: 20px;
}

.detail-stage-header,
.detail-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vod-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-panel {
  background: #09111f;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.video-panel-label {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.video-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.meta-list {
  display: grid;
  gap: 10px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.meta-list dt {
  color: #64748b;
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-btn {
  height: 44px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.detail-btn-primary {
  background: linear-gradient(135deg, #d97706, #b91c1c);
  color: #fff;
}

.detail-btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
}

.table-title {
  margin: 0;
  font-size: 20px;
}

.table-wrap {
  overflow-x: auto;
  padding: 16px 20px 20px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 20px 20px;
}

.page-status {
  margin: 0;
  color: #334155;
  font-size: 14px;
  flex: 1 1 280px;
}

.pagination-select {
  height: 40px;
  min-width: 128px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.pagination-btn {
  height: 40px;
  min-width: 92px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-info {
  color: #475569;
  font-size: 14px;
  min-width: 180px;
  text-align: center;
}

.vod-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.vod-table th,
.vod-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 14px;
}

.vod-table th {
  color: #475569;
  font-weight: 700;
}

.table-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
}

.empty-cell {
  text-align: center !important;
  color: #64748b;
  padding: 36px 12px !important;
}

@media (max-width: 900px) {
  .toolbar {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .vod-video-grid {
    grid-template-columns: 1fr;
  }

  .pagination-bar {
    align-items: stretch;
  }

  .page-status,
  .pagination-select,
  .pagination-btn,
  .pagination-info {
    width: 100%;
    min-width: 0;
    text-align: center;
  }
}
