.battle-app {
  width: min(100%, 980px);
}

.battle-hero,
.battle-browser,
.battle-player-card {
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.98),
      rgba(20, 16, 13, 0.98)
    );
  box-shadow: var(--shadow);
}

.battle-hero h1,
.battle-player-card h2 {
  margin: 0;
}

.battle-hero p,
.battle-copy,
.battle-empty,
.battle-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.battle-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
  gap: 12px;
}

.battle-list {
  display: grid;
  gap: 7px;
  max-height: 620px;
  overflow: auto;
  padding-right: 3px;
}

.battle-list-button {
  width: 100%;
  min-height: 52px;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.battle-list-button strong {
  font-size: 11px;
}

.battle-list-button span {
  color: var(--muted);
  font-size: 9px;
}

.battle-list-button:hover,
.battle-list-button.is-active {
  border-color: var(--orange);
  background: rgba(255, 138, 31, 0.11);
}

.battle-video {
  width: 100%;
  max-height: 70svh;
  display: block;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #000;
}

.battle-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.battle-count {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--orange-2);
  font-size: 9px;
  font-weight: 950;
}

.battle-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.battle-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: #2a2019;
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
}

.battle-action:hover {
  border-color: var(--orange);
}

@media (max-width: 760px) {
  .battle-layout {
    grid-template-columns: 1fr;
  }

  .battle-list {
    max-height: 250px;
  }

  .battle-video {
    max-height: 56svh;
  }
}
