/* The players' highlights: their own pages, the gallery and the owner's page (rendered by the
   server, packages/server/src/highlights.ts). The game's colours and type. */
:root {
  --panel: rgba(17, 21, 18, 0.88);
  --panel-edge: rgba(214, 222, 196, 0.14);
  --text: #e6e8dc;
  --muted: #9aa190;
  --accent: #e2b950;
  --font: 'Barlow Condensed', system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #2c3427 0%, #141812 60%) fixed, #141812;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
}

a {
  color: var(--accent);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.hl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px;
}

.hl-logo {
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  white-space: nowrap;
}

.hl-play {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #1b1a12;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(226, 185, 80, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hl-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(226, 185, 80, 0.35);
}

.hl-play.small {
  padding: 8px 16px;
  font-size: 17px;
  box-shadow: none;
}

.hl-kicker {
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h2 {
  margin: 34px 0 12px;
  font-size: 26px;
}

.hl-film {
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  background: #0b0d0a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.hl-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.hl-line {
  max-width: 720px;
  margin: 18px 0;
  color: var(--text);
  font-size: 20px;
}

.hl-actions {
  margin: 24px 0 18px;
}

.hl-pass {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.hl-button {
  padding: 8px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.hl-button:hover {
  border-color: rgba(226, 185, 80, 0.6);
}

.hl-button.go {
  background: var(--accent);
  color: #1b1a12;
}

.hl-button.danger {
  color: #f26b6b;
}

.hidden {
  display: none;
}

.hl-more {
  font-size: 18px;
}

.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hl-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.hl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 185, 80, 0.55);
}

.hl-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hl-card-title {
  display: block;
  padding: 10px 14px 0;
  font-size: 20px;
  font-weight: 700;
}

.hl-card-date {
  display: block;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 15px;
}

.hl-none {
  color: var(--muted);
}

.hl-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.hl-admin-item {
  padding: 12px;
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  background: var(--panel);
}

.hl-admin-item video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hl-admin-item form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hl-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 16px 40px;
  border-top: 1px solid var(--panel-edge);
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 599px) {
  .hl-logo {
    font-size: 24px;
  }

  .hl-play {
    display: block;
    text-align: center;
  }

  .hl-play.small {
    display: inline-block;
  }
}

/* The owner's bar over the moderation page and the statistics (packages/server/src/owner.ts, OWNER_NAV_STYLE: the same there). */
.owner-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.owner-nav a, .owner-nav span { padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; text-decoration: none; color: inherit; opacity: 0.75; }
.owner-nav a:hover { opacity: 1; }
.owner-nav span { opacity: 1; font-weight: 700; }
