/* HLL Replay Viewer -- functional-first prototype styles. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #14181d;
  color: #d8dde3;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  background: #1c2128;
  border-bottom: 1px solid #2a313a;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-left h1 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  color: #f0f3f6;
}

#match-meta {
  font-size: 11px;
  color: #8b95a0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.score .sep { color: #5a6470; font-weight: 400; }
.score-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.score-label.allies { color: #3c7ec4; }
.score-label.axis { color: #c43c3c; }

.players-live { font-variant-numeric: tabular-nums; }

.remaining {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: #f0f3f6;
}

main {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#map-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-width: 0;
}

#map-wrapper {
  position: relative;
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  width: min(100%, calc(100vh - 160px));
}

#map-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #0a0c10;
  border: 1px solid #2a313a;
  border-radius: 2px;
  cursor: grab;
}
#map-canvas.dragging {
  cursor: grabbing;
}

#zoom-reset-btn {
  padding: 4px 10px;
  background: #2a313a;
  color: #d8dde3;
  border: 1px solid #3a4250;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}
#zoom-reset-btn:hover { background: #353d48; }

#zoom-display {
  min-width: 50px;
  display: inline-block;
  text-align: right;
  font-size: 12px;
  color: #8a93a0;
}

#tooltip {
  position: absolute;
  background: rgba(20, 24, 29, 0.94);
  border: 1px solid #3a4250;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
  border-radius: 4px;
  z-index: 10;
  max-width: 240px;
  font-variant-numeric: tabular-nums;
}
#tooltip .name { font-weight: 600; }
#tooltip.hidden { display: none; }

#killfeed {
  width: 280px;
  flex-shrink: 0;
  background: #1c2128;
  border-left: 1px solid #2a313a;
  overflow-y: auto;
  padding: 8px 10px;
}
#killfeed h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b95a0;
  margin: 0 0 6px 0;
  font-weight: 600;
}
#killfeed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#killfeed-list li {
  padding: 4px 0;
  border-bottom: 1px solid #232932;
  display: flex;
  gap: 4px;
  align-items: baseline;
  flex-wrap: wrap;
}
#killfeed-list li .t {
  color: #5a6470;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
#killfeed-list li .arrow {
  color: #6e7a87;
  margin: 0 2px;
}
#killfeed-list li .weapon {
  color: #a5b2c0;
  font-size: 11px;
  width: 100%;
  padding-left: 36px;
}
.killfeed-name.allies { color: #6aa6e0; }
.killfeed-name.axis { color: #e07a7a; }
.killfeed-name.other { color: #d8a55a; }

#controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #1c2128;
  border-top: 1px solid #2a313a;
}

#controls button {
  background: #2a313a;
  color: #d8dde3;
  border: 1px solid #3a4250;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  min-width: 64px;
}
#controls button:hover { background: #353d48; }

#scrubber {
  flex: 1;
  height: 18px;
  accent-color: #3c7ec4;
}

#time-display {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: #d8dde3;
  min-width: 110px;
}

.speed {
  font-size: 11px;
  color: #8b95a0;
}
.speed select {
  background: #2a313a;
  color: #d8dde3;
  border: 1px solid #3a4250;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.legend {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: #8b95a0;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}
.dot.axis { background: #c43c3c; }
.dot.allies { background: #3c7ec4; }
.dot.lobby { background: #888; }
.dot.other { background: #d8a55a; }

.mono { font-family: ui-monospace, monospace; }
