:root {
  --bg: #071624;
  --surface: #0c2235;
  --surface-alt: #102b43;
  --border: #1d4363;
  --text: #eef6ff;
  --muted: #9eb7ce;
  --teal: #0b7a75;
  --teal-hover: #0e948e;
  --gold: #f0b44d;
  --danger: #e14b5a;
  --success: #22c55e;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: #5cd6d0; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.topbar {
  background: #05111c;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; }
.brand-badge { background: linear-gradient(135deg, var(--teal), #0f4e79); padding: 4px 10px; border-radius: 8px; font-size: 0.9rem; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; }
.nav-links a { color: #d6e7f7; font-weight: 600; }
.nav-links a:hover { color: #fff; text-decoration: none; }

.main-content { padding: 26px 0 60px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
  background: var(--teal); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--teal-hover); text-decoration: none; }
.btn-secondary { background: var(--surface-alt); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: #163a59; }
.btn-gold { background: var(--gold); color: #162421; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; background: #173852; color: #b7dcfb;
}
.badge-sample { background: #4a3512; color: #fcd34d; border: 1px solid #855c17; }
.badge-ready { background: #103c26; color: #6ee7b7; border: 1px solid #166534; }
.badge-warn { background: #47320d; color: #fbbf24; border: 1px solid #92400e; }
.badge-danger { background: #4c1721; color: #fda4af; border: 1px solid #9f1239; }

input, select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--border); background: #071929; color: var(--text);
  font-size: 0.92rem; margin-top: 4px; margin-bottom: 12px;
}
label { font-size: 0.85rem; font-weight: 600; color: var(--muted); display: block; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 0.9rem; }
.flash-success { background: #103c26; border: 1px solid #166534; color: #a7f3d0; }
.flash-danger { background: #4c1721; border: 1px solid #9f1239; color: #fecdd3; }
.flash-warning { background: #47320d; border: 1px solid #92400e; color: #fde68a; }
.flash-info { background: #0e324d; border: 1px solid #1d4e78; color: #bae6fd; }

.hall-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.hall-tab {
  display: block; padding: 12px 14px; border-radius: 12px;
  background: #081c2e; border: 1px solid var(--border); color: var(--text);
}
.hall-tab.active {
  background: linear-gradient(135deg, #0b6b66, #0f4e79);
  border-color: rgba(255,255,255,0.28);
}
.player-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
}
.player-box iframe, .player-box video { width: 100%; height: 100%; border: 0; display: block; }
.muted { color: var(--muted); }
.footer { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); font-size: 0.85rem; text-align: center; }
