:root {
  --bg: #1a1a1a;
  --bg-2: #222;
  --bg-3: #2b2b2b;
  --border: #383838;
  --text: #e6e6e6;
  --muted: #8a8a8a;
  --accent: #f0a500;
  --accent-dim: #c98a00;
  --danger: #d9534f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--bg-2);
  border-bottom: 2px solid var(--accent);
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand span { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.badge {
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* Layout */
.layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 20px 0;
}
.sidebar h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 20px 12px;
}
.map-list { list-style: none; margin: 0; padding: 0; }
.map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-left: 3px solid transparent;
  font-weight: 600;
}
.map-link:hover { background: var(--bg-3); }
.map-link.active {
  background: var(--bg-3);
  border-left-color: var(--accent);
  color: var(--accent);
}
.count {
  background: var(--bg);
  color: var(--muted);
  border-radius: 10px;
  font-size: 12px;
  padding: 1px 8px;
}

.content { flex: 1; padding: 28px 36px; max-width: 1100px; }
.content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.content-head h1 { margin: 0; font-size: 26px; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.back { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 6px; }
.back:hover { color: var(--accent); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: var(--accent-dim); }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-3); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.inline { display: inline; margin: 0; }

/* Flash */
.flashes { padding: 12px 36px 0; }
.flash {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
}
.flash-error { border-left-color: var(--danger); }

/* Lineup list */
.lineup-list { list-style: none; margin: 0; padding: 0; }
.lineup-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  margin-bottom: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.lineup-row:hover { border-color: var(--accent); }
.lineup-name { font-weight: 600; }

.type-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--bg-3);
  color: var(--text);
  min-width: 64px;
  text-align: center;
}
.type-smoke   { background: #4a4a4a; color: #fff; }
.type-flash   { background: #e8d44d; color: #1a1a1a; }
.type-molotov { background: #c0392b; color: #fff; }
.type-he      { background: #2e7d32; color: #fff; }

/* Detail: image pair */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.image-pair figure { margin: 0; }
.image-pair figcaption {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.image-pair img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #000;
  display: block;
}

.description {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  padding: 16px 18px;
  white-space: pre-wrap;
  line-height: 1.55;
  margin-bottom: 24px;
}

.video {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: 1px solid var(--border);
}

/* Forms */
.form { max-width: 760px; }
.form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
}
.form input[type="text"],
.form input[type="url"],
.form input[type="password"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form input[type="file"] { margin-top: 6px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.req { color: var(--accent); }
.preview {
  display: block;
  margin-top: 8px;
  max-width: 220px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

.login-box {
  max-width: 380px;
  margin: 40px auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 28px;
}
.login-box h1 { margin-top: 0; }
