:root {
  --bg: #eef3f7;
  --panel: rgba(255, 255, 255, 0.88);
  --ink: #1d2a33;
  --muted: #5e7483;
  --line: rgba(42, 66, 82, 0.12);
  --accent: #0f6b5d;
  --accent-soft: #d7efe9;
  --warn: #b7791f;
  --danger: #b83232;
  --shadow: 0 18px 40px rgba(22, 38, 48, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 107, 93, 0.14), transparent 28%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 100%);
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.brand-logo {
  display: block;
  width: min(320px, 65vw);
  height: auto;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.subcopy,
.table-head p,
.player-head p,
.status-hint,
#tableSummary {
  color: var(--muted);
}

.panel,
.status-card {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.status-card,
.panel {
  padding: 20px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.status-row:last-of-type {
  border-bottom: 0;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.filters-compact {
  grid-template-columns: repeat(3, minmax(160px, 220px)) auto;
  justify-content: start;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

input,
select,
button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 14px;
}

input,
select {
  background: white;
}

button {
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #0f6b5d 0%, #0b7d8d 100%);
  border: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 107, 93, 0.2);
}

button.ghost {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  box-shadow: none;
}

.actions {
  display: flex;
  gap: 10px;
}

.table-head,
.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

tbody tr:hover {
  background: rgba(15, 107, 93, 0.04);
}

.file-name {
  max-width: 320px;
  word-break: break-all;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions button,
.pager button {
  width: auto;
  min-width: 80px;
  padding: 8px 12px;
  font-size: 13px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.badge.success {
  background: #dff6e8;
  color: #16663b;
}

.badge.pending {
  background: #f8ebce;
  color: var(--warn);
}

.badge.danger {
  background: #f9d8d8;
  color: var(--danger);
}

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

  .filters {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .filters-compact {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    padding-inline: 14px;
  }

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

  .filters-compact {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }
}
