/* Custom Modern CSS for KhatibSmash (开球网乒乓球积分赛) */

:root {
  --primary-color: #0d9488;
  --primary-hover: #0f766e;
  --accent-color: #f97316;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Cross-matrix table styling (小组对阵交叉表) */
.matrix-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.matrix-table th, .matrix-table td {
  border: 1px solid #334155;
  text-align: center;
  padding: 8px 12px;
}
.matrix-table th {
  background: #1e293b;
  color: #94a3b8;
  font-weight: 600;
}
.matrix-table .diagonal {
  background: #1e293b;
  position: relative;
}
.matrix-table .diagonal::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #475569;
  transform: rotate(-35deg);
}
.matrix-table tr:hover td {
  background: rgba(51, 65, 85, 0.3);
}

/* Knockout Bracket Lines */
.bracket-line {
  border-right: 2px solid #475569;
}
