* {
  box-sizing: border-box;
}

:root {
  --bg: #060d17;
  --panel: rgba(10, 20, 34, 0.88);
  --panel-soft: rgba(21, 36, 58, 0.78);
  --line: rgba(124, 174, 255, 0.18);
  --text: #eef5ff;
  --muted: #93a8c5;
  --accent: #f4b942;
  --accent-2: #53d0ff;
  --live: #ff4a4a;
  --max: 1240px;
  --page-top: 26px;
  --section-gap: 22px;
  --page-bottom: 56px;
  --panel-radius: 20px;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(79, 170, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #07111d 0%, #04080f 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.page-shell {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid rgba(244, 185, 66, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 211, 105, 0.2), rgba(244, 185, 66, 0.1)),
    rgba(15, 29, 46, 0.94);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(2, 8, 15, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  border-color: rgba(244, 185, 66, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 211, 105, 0.28), rgba(244, 185, 66, 0.14)),
    rgba(20, 38, 61, 0.98);
  box-shadow: 0 14px 34px rgba(2, 8, 15, 0.34), 0 0 0 3px rgba(244, 185, 66, 0.08);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid rgba(83, 208, 255, 0.9);
  outline-offset: 3px;
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button--ghost {
  border-color: rgba(123, 161, 219, 0.22);
  background: rgba(9, 20, 34, 0.82);
  color: #dbe8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.button--ghost:hover {
  border-color: rgba(83, 208, 255, 0.44);
  background: rgba(16, 34, 53, 0.96);
  box-shadow: 0 10px 26px rgba(2, 8, 15, 0.24), 0 0 0 3px rgba(83, 208, 255, 0.07);
}

.button--danger {
  border-color: rgba(255, 108, 108, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 108, 108, 0.16), rgba(255, 108, 108, 0.08)),
    rgba(34, 12, 18, 0.92);
  color: #ffe7e7;
}

.button--danger:hover {
  border-color: rgba(255, 108, 108, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 108, 108, 0.22), rgba(255, 108, 108, 0.12)),
    rgba(45, 15, 22, 0.96);
  box-shadow: 0 12px 30px rgba(2, 8, 15, 0.3), 0 0 0 3px rgba(255, 108, 108, 0.08);
}

.site-shell,
.page-shell,
.site-footer__inner,
.topline__inner,
.hero__content,
.live-ribbon,
.content-grid,
.page-header,
.detail-hero,
.map-detail-hero,
.detail-grid,
.admin-section-grid,
.homepage-top-grid,
.homepage-main-section,
.stream-directory,
.identity-manage-layout,
.player-directory,
.player-directory-stats,
.news-detail__body {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.topline {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(2, 8, 15, 0.78);
  border-bottom: 1px solid var(--line);
}

.topline__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand img {
  width: min(220px, 42vw);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.main-nav,
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a,
.nav-identity-link {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.main-nav a:hover,
.nav-identity-link:hover {
  color: white;
}

.nav-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-notification-badge {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  place-items: center;
  border-radius: 999px;
  background: #e74848;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(6, 14, 24, 0.92);
}

.language-switcher {
  margin-left: auto;
  position: relative;
}

.language-switcher summary {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.86);
  color: var(--text);
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 12, 22, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.language-switcher__option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 24px 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.language-switcher__option:hover,
.language-switcher__option[aria-current="true"] {
  background: rgba(83, 208, 255, 0.14);
}

.language-switcher__option small {
  color: var(--muted);
  font-size: 0.75rem;
}

.flag-icon {
  width: 22px;
  height: 15px;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero--with-stream {
  min-height: 620px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 14, 0.15), rgba(3, 7, 14, 0.92)),
    url("/images/scbw/hero.jpg") center/cover no-repeat;
  transform: scale(1.03);
}

.hero__content {
  position: relative;
  padding: 22px 0 30px;
  min-height: 260px;
}

.hero--with-stream .hero__content {
  padding-bottom: 64px;
  min-height: 620px;
}

.hero__eyebrow {
  color: var(--accent);
  letter-spacing: 0.26rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.95;
  max-width: none;
  white-space: nowrap;
  text-transform: uppercase;
  margin: 0;
}

.hero__lede {
  margin-top: 18px;
  max-width: 720px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #d9e7fb;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.hero__meta span,
.hero__meta a,
.tag,
.map-chip,
.match-card__meta span {
  border: 1px solid var(--line);
  background: rgba(5, 15, 26, 0.72);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.hero__meta a:hover {
  border-color: rgba(244, 185, 66, 0.48);
  color: var(--accent);
}

.hero-stream-embed {
  width: min(100%, 860px);
  margin: 26px auto 0;
  border: 1px solid rgba(244, 185, 66, 0.3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(3, 10, 18, 0.92), rgba(12, 27, 44, 0.82));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.hero-stream-embed__header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
}

.hero-stream-embed__header > span:not(.stream-status-dot) {
  color: #ffb7aa;
  letter-spacing: 0.08em;
}

.hero-stream-embed__header small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-stream-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border: 0;
  background: #050b13;
}

.hero-socials {
  position: absolute;
  top: 18px;
  right: 0;
  display: grid;
  gap: 8px;
  width: 132px;
  margin-top: 0;
  z-index: 2;
}

.hero-social {
  --social-color: #d9e7fb;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--social-color), transparent 68%);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--social-color), transparent 88%), rgba(4, 12, 22, 0.72));
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-height: 42px;
  padding: 8px 11px;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.hero-social:hover {
  border-color: color-mix(in srgb, var(--social-color), transparent 42%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--social-color), transparent 78%), rgba(9, 20, 34, 0.88));
  transform: translateY(-1px);
}

.hero-social svg {
  width: 18px;
  height: 18px;
  fill: var(--social-color);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--social-color), transparent 58%));
}

.hero-social--twitch {
  --social-color: #9146ff;
}

.hero-social--youtube {
  --social-color: #ff0033;
}

.hero-social--discord {
  --social-color: #5865f2;
}

.live-ribbon {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: -26px;
  position: relative;
  z-index: 1;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 24, 0.94);
}

.live-pill.is-live {
  border-color: rgba(255, 74, 74, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 74, 74, 0.1), 0 14px 36px rgba(255, 50, 50, 0.18);
}

.live-pill img {
  width: 18px;
  height: 18px;
}

.live-pill__state {
  color: var(--live);
  font-weight: 900;
}

.live-pill__title {
  color: var(--muted);
  font-size: 0.92rem;
}

.live-pill:not(.is-live) .live-pill__state {
  color: var(--muted);
}

.live-pill--more {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.content-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--section-gap);
  padding: var(--section-gap) 0 var(--page-bottom);
}

.match-report-panel {
  grid-column: 1 / -1;
  order: -1;
}

.match-detail-grid {
  padding-top: var(--section-gap);
}

.match-detail-header {
  padding-top: var(--page-top);
}

.match-report-panel .panel__header {
  margin-bottom: 8px;
}

.match-report-form {
  gap: 14px;
}

.match-report-form__top {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(220px, 280px);
  gap: 12px;
  align-items: end;
}

.match-report-form__top label {
  min-width: 0;
}

.replay-upload-dropzone {
  position: relative;
  display: grid !important;
  min-height: 126px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed rgba(244, 185, 66, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 185, 66, 0.12), transparent 54%),
    rgba(5, 15, 26, 0.72);
  color: var(--text) !important;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.replay-upload-dropzone:hover,
.replay-upload-dropzone.is-dragover {
  border-color: rgba(244, 185, 66, 0.78);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 185, 66, 0.2), transparent 56%),
    rgba(8, 18, 31, 0.88);
  transform: translateY(-1px);
}

.replay-upload-dropzone.is-uploading {
  opacity: 0.78;
  pointer-events: none;
}

.replay-upload-dropzone span {
  font-weight: 900;
}

.replay-upload-dropzone small {
  color: var(--muted);
}

.replay-upload-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.match-report-summary {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(123, 161, 219, 0.2);
  border-radius: 18px;
  background: rgba(4, 11, 20, 0.68);
  padding: 18px;
}

.match-report-summary--warning {
  border-color: rgba(255, 119, 119, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 119, 119, 0.1), 0 0 28px rgba(255, 84, 84, 0.08);
}

.match-report-summary h3 {
  margin: 0;
}

.match-report-summary__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-report-summary__facts span {
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.44);
  padding: 8px 12px;
  color: var(--muted);
}

.match-report-game-summary {
  display: grid;
  gap: 10px;
}

.match-report-game-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 14px;
  background: rgba(2, 8, 15, 0.34);
  padding: 10px;
}

.match-report-game-card h4,
.match-report-game-card p {
  margin: 0;
}

.match-report-game-card__meta,
.match-report-game-card__result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px !important;
  color: var(--muted);
}

.match-report-game-card__result {
  color: var(--text);
  align-items: center;
}

.replay-result-map-preview--compact img {
  width: 72px;
  height: 72px;
}

.match-winner-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.match-winner-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.replay-upload-dropzone--below {
  margin-top: 4px;
}

.match-report-warning {
  border: 1px solid rgba(255, 119, 119, 0.42);
  border-radius: 14px;
  background: rgba(86, 21, 26, 0.38);
  padding: 12px 14px;
}

.match-report-warning strong {
  color: #ffd0d0;
}

.match-report-warning p {
  margin: 6px 0 0;
}

.match-report-summary__note {
  margin: 0;
}

.match-report-details {
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.42);
  padding: 14px;
}

.match-report-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.match-report-details .stack-list {
  margin-top: 14px;
}

.privileged-section,
.admin-detail-grid > .panel,
.admin-section-card {
  position: relative;
  outline: 1px solid var(--privileged-outline, rgba(244, 185, 66, 0.34));
  box-shadow:
    inset 0 0 0 1px var(--privileged-inner, rgba(244, 185, 66, 0.08)),
    0 18px 48px rgba(2, 8, 15, 0.28);
}

.privileged-section:not(.admin-link-button)::before,
.admin-detail-grid > .panel::before,
.admin-section-card::before {
  content: var(--privileged-label, "admin");
  position: absolute;
  top: 10px;
  right: 14px;
  border: 1px solid rgba(244, 185, 66, 0.32);
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.11);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  text-transform: uppercase;
  pointer-events: none;
}

.admin-actions.privileged-section {
  border: 1px dashed var(--privileged-outline, rgba(244, 185, 66, 0.34));
  border-radius: 16px;
  outline: 0;
  padding: 10px;
}

.admin-actions.privileged-section::before {
  content: none;
}

.replay-timeline {
  margin-top: 12px;
  position: relative;
  --replay-timeline-stage-height: 320px;
}

.replay-timeline summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.replay-timeline__tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 10px;
}

.replay-timeline__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  min-height: 26px;
  max-height: 26px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
}

.replay-timeline__players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 10px;
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
}

.replay-timeline__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 10px;
  min-height: 24px;
  max-height: 24px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
}

.replay-timeline__players[hidden],
.replay-timeline__legend[hidden],
.replay-timeline__metrics[hidden] {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.replay-timeline .replay-timeline__players label,
.replay-timeline .replay-timeline__metrics label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.replay-timeline__metric-group {
  display: inline-flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  margin-right: 4px;
  padding-right: 12px;
  border-right: 1px solid rgba(123, 161, 219, 0.18);
}

.replay-timeline .replay-timeline__players input,
.replay-timeline .replay-timeline__metrics input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
}

.replay-timeline__player-color {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.replay-timeline__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.replay-timeline__legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}

.replay-timeline__tabs button {
  border: 1px solid rgba(124, 174, 255, 0.24);
  border-radius: 999px;
  background: rgba(9, 20, 34, 0.7);
  color: var(--text);
  padding: 6px 10px;
}

.replay-timeline__tabs button.is-active {
  background: rgba(244, 185, 66, 0.18);
  border-color: rgba(244, 185, 66, 0.5);
}

.replay-timeline__stage {
  width: 100%;
  max-width: 1120px;
  height: var(--replay-timeline-stage-height);
  min-height: 260px;
  max-height: min(52vh, 420px);
  position: relative;
}

.replay-timeline__canvas {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  border: 1px solid rgba(124, 174, 255, 0.18);
  border-radius: 12px;
}

.replay-timeline__content {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: auto;
  border: 1px solid rgba(124, 174, 255, 0.18);
  border-radius: 12px;
  background: rgba(3, 10, 18, 0.5);
  padding: 12px;
  scrollbar-color: rgba(244, 185, 66, 0.62) rgba(9, 20, 34, 0.62);
  scrollbar-width: thin;
}

.replay-timeline__content::-webkit-scrollbar {
  width: 10px;
}

.replay-timeline__content::-webkit-scrollbar-track {
  background: rgba(9, 20, 34, 0.62);
  border-radius: 999px;
}

.replay-timeline__content::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 20, 34, 0.62);
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.72);
}

.replay-timeline__empty {
  margin: 0;
  color: var(--muted);
}

.replay-chat-list {
  display: grid;
  gap: 8px;
}

.replay-chat-row {
  display: grid;
  grid-template-columns: 58px minmax(120px, 190px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid rgba(124, 174, 255, 0.1);
  padding-bottom: 8px;
}

.replay-chat-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.replay-chat-row__time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.replay-chat-row__player {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  min-width: 0;
}

.replay-chat-row__player i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
}

.replay-chat-row__message {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.replay-action-share-list {
  display: grid;
  gap: 10px;
}

.replay-action-share {
  display: grid;
  gap: 5px;
}

.replay-action-share__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.replay-action-share__header span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.replay-action-share__bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(124, 174, 255, 0.12);
}

.replay-action-share__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(244, 185, 66, 0.95), rgba(255, 126, 87, 0.95));
}

.replay-timeline__tooltip {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  border: 1px solid rgba(244, 185, 66, 0.34);
  border-radius: 10px;
  background: rgba(3, 10, 18, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 8px 10px;
  pointer-events: none;
}

.button-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button-link--danger {
  color: #ff9d8f;
  float: right;
  margin-left: 12px;
}

.replay-timeline__hotkeys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.replay-result-map-preview {
  position: relative;
  display: inline-grid;
  width: 128px;
  height: 128px;
  margin-bottom: 0.65rem;
  place-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(244, 185, 66, 0.24);
  border-radius: 10px;
  background: rgba(2, 8, 15, 0.9);
}

.replay-result-map-preview > img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.replay-result-map-preview--analysis {
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.replay-result-map-preview--analysis > img {
  width: 100%;
  height: 100%;
}

.analysis-preview-hover {
  position: fixed;
  inset: 18px;
  z-index: 90;
  display: none;
  place-items: center;
  transform: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  pointer-events: none;
}

.analysis-preview-hover img {
  display: block;
  width: min(calc(100vw - 36px), calc(100vh - 36px));
  height: auto;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid rgba(244, 185, 66, 0.38);
  border-radius: 10px;
  background: rgba(4, 11, 20, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.replay-result-map-preview--analysis:hover .analysis-preview-hover,
.replay-result-map-preview--analysis:focus-within .analysis-preview-hover,
.analysis-result-card__preview:hover .analysis-preview-hover,
.analysis-result-card__preview:focus-within .analysis-preview-hover {
  display: block;
}

.replay-start-position-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.replay-start-position-marker {
  --replay-start-color: var(--accent);
  position: absolute;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(238, 245, 255, 0.96);
  border-radius: 999px;
  background: var(--replay-start-color);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(2, 8, 15, 0.92), 0 8px 18px rgba(0, 0, 0, 0.46);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88);
}

.replay-start-position-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.replay-start-position-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.replay-start-position-legend i {
  --replay-start-color: var(--accent);
  width: 15px;
  height: 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--replay-start-color);
  border: 1px solid rgba(238, 245, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(2, 8, 15, 0.92);
  color: #fff;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 950;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88);
}

.replay-ingame-players,
.replay-ingame-team,
.replay-ingame-player {
  display: inline-flex;
  align-items: center;
}

.replay-ingame-players {
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-left: 4px;
}

.replay-ingame-team {
  flex-wrap: wrap;
  gap: 4px 8px;
}

.replay-ingame-player {
  gap: 5px;
  color: var(--text);
}

.replay-ingame-players__vs {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.replay-player-color-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(238, 245, 255, 0.62);
  border-radius: 3px;
  background: var(--replay-player-color, rgba(238, 245, 255, 0.55));
  box-shadow: 0 0 0 1px rgba(2, 8, 15, 0.74), 0 2px 6px rgba(0, 0, 0, 0.28);
}

.replay-hotkey-symbol {
  --hotkey-symbol-color: #73a7ff;
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: middle;
}

.replay-hotkey-symbol--assign {
  background: var(--hotkey-symbol-color);
}

.replay-hotkey-symbol--select {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.72);
}

.replay-hotkey-symbol--add {
  border: 2px solid var(--hotkey-symbol-color);
  background: transparent;
}

.content-grid--single {
  grid-template-columns: 1fr;
}

.donate-hero {
  position: relative;
  overflow: hidden;
}

.donate-hero::after {
  content: "";
  position: absolute;
  inset: auto 8% -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.2), transparent 68%);
  pointer-events: none;
}

.donate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 28px;
  align-items: center;
}

.donate-card__copy h2 {
  margin-top: 0;
}

.donate-card__copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 62ch;
}

.donate-card__qr {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.donate-card__qr img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.donate-card__qr-missing {
  width: min(100%, 320px);
  min-height: 320px;
  border: 1px dashed rgba(244, 185, 66, 0.55);
  border-radius: 14px;
  background: rgba(9, 20, 34, 0.72);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.donate-card__qr-missing strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

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

.homepage-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 0.7fr);
  gap: var(--section-gap);
  padding: var(--page-top) 0 0;
  align-items: start;
}

.homepage-top-grid + .content-grid {
  padding-top: var(--section-gap);
}

.homepage-aside-stack {
  display: grid;
  gap: var(--section-gap);
  align-items: start;
}

.homepage-main-section {
  padding: var(--section-gap) 0 var(--page-bottom);
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--section-gap);
  padding: var(--section-gap) 0 var(--page-bottom);
}

.admin-detail-grid {
  padding-top: var(--section-gap);
}

.admin-news-edit-grid > .panel {
  grid-column: 1 / -1;
}

.admin-broadcast-index-grid > .panel {
  grid-column: 1 / -1;
}

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(2, 8, 15, 0.34);
}

.panel__header {
  margin-bottom: 16px;
}

.homepage-aside-stack .panel__header {
  margin-bottom: 12px;
}

.panel__header h2,
.page-header h1,
.detail-hero__body h1,
.news-detail__body h1 {
  margin: 0;
  font-size: 1.7rem;
}

.panel__header p,
.page-header p,
.detail-hero__body p,
.empty-text,
.news-detail__summary {
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  margin: 0;
  padding: 20px;
  color: var(--muted);
}

.catalog-empty-state {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.catalog-empty-state strong {
  color: var(--text);
  font-size: 1rem;
}

.form-control,
.form-select,
.form-floating > .form-control,
.form-floating > .form-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(124, 174, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(12, 25, 42, 0.96), rgba(5, 13, 23, 0.96)),
    rgba(6, 14, 24, 0.94);
  color: var(--text);
  padding: 13px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

.form-control:focus,
.form-select:focus,
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: rgba(244, 185, 66, 0.72);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
  background:
    linear-gradient(180deg, rgba(19, 31, 48, 0.72), rgba(8, 17, 29, 0.72)),
    rgba(6, 14, 24, 0.72);
  color: rgba(238, 245, 255, 0.62);
  cursor: not-allowed;
}

.form-control::placeholder {
  color: rgba(147, 168, 197, 0.72);
}

.form-floating {
  position: relative;
  margin-bottom: 14px;
}

.form-floating > label,
.form-label,
label {
  color: #bdd0ea;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.form-floating > label {
  display: block;
  margin: 0 0 7px;
}

.form-text,
.text-muted,
.text-danger,
.validation-summary-errors,
.field-validation-error {
  line-height: 1.55;
}

.form-text,
.text-muted {
  color: var(--muted) !important;
}

.text-danger,
.validation-summary-errors,
.field-validation-error {
  color: #ff9a9a !important;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-danger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid rgba(244, 185, 66, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 211, 105, 0.2), rgba(244, 185, 66, 0.1)),
    rgba(15, 29, 46, 0.94);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(2, 8, 15, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 12px 18px;
  text-decoration: none;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
  border-color: rgba(244, 185, 66, 0.72);
  transform: translateY(-1px);
}

.btn-danger {
  border-color: rgba(255, 112, 112, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 112, 112, 0.22), rgba(158, 46, 46, 0.16)),
    rgba(34, 12, 18, 0.94);
}

.nav-pills {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.nav-pills .nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(124, 174, 255, 0.16);
  border-radius: 14px;
  background: rgba(12, 25, 42, 0.72);
  color: #dbe9fb;
  padding: 10px 14px;
  font-weight: 800;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
  border-color: rgba(244, 185, 66, 0.52);
  background: linear-gradient(135deg, rgba(244, 185, 66, 0.18), rgba(83, 208, 255, 0.1));
  color: var(--text);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.col-md-3 {
  flex: 1 1 220px;
  max-width: 280px;
}

.col-md-6 {
  flex: 999 1 420px;
  max-width: 720px;
}

.w-100 {
  width: 100%;
}

.page-header--notice {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(83, 208, 255, 0.28);
  border-radius: 18px;
  background: rgba(16, 34, 53, 0.65);
}

.news-list,
.competition-list,
.match-list,
.replay-list,
.game-list,
.stream-admin-list,
.stream-sidebar-list,
.stack-list,
.map-list {
  display: grid;
  gap: 14px;
}

.news-card,
.competition-card,
.match-card,
.replay-row,
.game-row,
.stream-admin-row,
.stack-list__item {
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.56);
}

.news-card {
  overflow: hidden;
}

.panel--news .news-list {
  gap: 12px;
}

.panel--news .news-card {
  display: grid;
  grid-template-columns: minmax(126px, 220px) minmax(0, 1fr);
}

.news-card__image {
  min-height: 180px;
  background-position: center;
  background-size: cover;
}

.panel--news .news-card__image {
  min-height: 118px;
}

.news-card__body,
.competition-card,
.match-card,
.replay-row,
.game-row,
.stream-admin-row,
.stack-list__item {
  padding: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-card__body h3,
.competition-card h3,
.match-card h3,
.replay-row h3,
.game-row h3,
.player-card h3 {
  margin: 0 0 8px;
}

.competition-player-grid,
.competition-map-grid {
  display: grid;
  gap: 12px;
}

.competition-player-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.competition-map-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.competition-player-chip,
.competition-map-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(137, 177, 223, 0.16);
  border-radius: 14px;
  background: rgba(4, 12, 22, 0.58);
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.competition-player-chip:hover,
.competition-map-card:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 185, 66, 0.42);
  background: rgba(11, 30, 52, 0.76);
}

.competition-player-chip__portrait {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(244, 185, 66, 0.22);
  background-color: rgba(2, 8, 15, 0.9);
  background-position: center;
  background-size: cover;
}

.competition-player-chip__body,
.competition-map-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.competition-player-chip strong,
.competition-map-card strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.competition-player-chip small,
.competition-map-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.competition-map-card img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(137, 177, 223, 0.18);
  background: rgba(2, 8, 15, 0.86);
}

.panel--news .news-card__body {
  padding: 14px 16px;
}

.panel--news .news-card__body h3 {
  font-size: 1rem;
}

.panel--news .news-card__body p,
.news-card--archive .news-card__body > p:not(.news-card__meta) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.panel--news .news-card__body p {
  -webkit-line-clamp: 2;
}

.player-grid,
.player-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: var(--page-bottom);
}

.player-directory-stats {
  margin-top: var(--section-gap);
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.player-stat-card {
  border: 1px solid rgba(137, 177, 223, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 22, 41, 0.88), rgba(4, 12, 22, 0.72));
  padding: 14px 16px;
  min-width: 0;
}

.player-stat-card > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-stat-card > strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.player-race-stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.player-race-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.player-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 22, 0.6);
}

.player-card--directory {
  align-items: center;
}

.player-card__info {
  min-width: 0;
}

.player-card__identity {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.player-card__identity h3 {
  margin-bottom: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-card__country {
  flex: 0 0 auto;
  border: 1px solid rgba(137, 177, 223, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  text-transform: uppercase;
}

.player-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.player-account-tags {
  margin-top: 14px;
}

.player-stats-panel {
  grid-column: 1 / -1;
}

.player-recent-games-panel {
  grid-column: 1 / -1;
  order: -10;
}

.player-stat-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.player-stat-summary div {
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.58);
  padding: 14px;
}

.player-stat-summary span,
.player-stat-table__row span {
  color: var(--muted);
}

.player-stat-summary span {
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-stat-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.28rem;
}

.player-points-panel .player-stat-summary {
  grid-template-columns: minmax(0, 1fr);
}

.player-points-panel .player-stat-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.player-points-panel .player-stat-summary span,
.player-points-panel .player-stat-summary strong {
  display: inline;
  margin-top: 0;
}

.player-stat-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.player-stat-breakdowns h3 {
  margin: 0 0 10px;
}

.player-stat-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(123, 161, 219, 0.1);
}

.player-stat-table__row {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) repeat(4, minmax(70px, 0.7fr));
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  background: rgba(4, 11, 20, 0.78);
  font-size: 0.9rem;
}

.player-stat-table__row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-card__portrait,
.detail-hero__portrait {
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  min-height: 140px;
}

.map-detail__preview {
  min-height: 320px;
}

.map-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: var(--section-gap);
  align-items: center;
  padding: var(--page-top) 0 0;
}

.map-detail-hero__preview {
  border: 1px solid rgba(244, 185, 66, 0.24);
  border-radius: 12px;
  background: rgba(2, 8, 15, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.map-detail-hero__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.map-detail-hero__body h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.map-detail-actions,
.segmented-actions,
.thumbnail-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button-badge,
.icon-button__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(83, 208, 255, 0.18);
  color: #dff7ff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 6px;
}

.map-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.map-directory-card {
  position: relative;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.56);
  display: grid;
  overflow: visible;
}

.map-directory-card__preview-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.map-directory-card__preview {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgba(2, 8, 15, 0.9);
  border-radius: 16px 16px 0 0;
}

.map-directory-card__hover-preview {
  position: fixed;
  z-index: 80;
  inset: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.map-directory-card__hover-preview img {
  display: block;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  object-fit: contain;
  border: 1px solid rgba(244, 185, 66, 0.38);
  border-radius: 10px;
  background: rgba(4, 11, 20, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.map-directory-card__preview-link:hover .map-directory-card__hover-preview,
.map-directory-card__preview-link:focus-visible .map-directory-card__hover-preview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-directory-card__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.map-directory-card__body h2 {
  margin: 0;
  font-size: 1.08rem;
}

.map-directory-card__body p {
  margin: 0;
  color: var(--muted);
}

.map-directory-card__title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.map-directory-card__title-row h2 a {
  color: var(--text);
}

.map-directory-card__title-row h2 a:hover,
.map-directory-card__title-row h2 a:focus-visible {
  color: var(--accent);
}

.map-download-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.map-meta-row,
.map-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(123, 161, 219, 0.09);
  color: var(--muted);
  font-size: 0.82rem;
}

.map-meta-pill--button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.map-meta-pill--button:hover,
.map-meta-pill--button:focus-visible {
  background: rgba(244, 185, 66, 0.16);
  color: var(--text);
  outline: none;
}

.map-meta-pill svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.map-description {
  min-height: 3.2em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.race-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  height: 1.45em;
  vertical-align: -0.22em;
  flex: 0 0 auto;
}

.race-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.race-icon__fallback {
  display: none;
}

.race-pair,
.race-with-text,
.player-card__meta-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.race-pair {
  gap: 8px;
}

.race-pair__vs {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-version-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: rgba(244, 185, 66, 0.42) rgba(4, 11, 20, 0.68);
  scrollbar-width: thin;
}

.map-version-strip::-webkit-scrollbar {
  height: 8px;
}

.map-version-strip::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(4, 11, 20, 0.68);
  box-shadow: inset 0 0 0 1px rgba(123, 161, 219, 0.08);
}

.map-version-strip::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 11, 20, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(244, 185, 66, 0.78), rgba(83, 208, 255, 0.55));
}

.map-version-strip::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(90deg, rgba(244, 185, 66, 0.95), rgba(83, 208, 255, 0.75));
}

.map-version-label {
  margin: 2px 0 -4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-version-tile {
  width: 74px;
  flex: 0 0 auto;
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 10px;
  background: rgba(12, 24, 40, 0.82);
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  text-align: center;
}

.map-version-tile span {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgba(2, 8, 15, 0.86);
}

.map-version-tile strong {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-version-tile em,
.map-version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin-top: 4px;
  border: 1px solid rgba(83, 208, 255, 0.34);
  border-radius: 999px;
  background: rgba(83, 208, 255, 0.12);
  color: #92e7ff;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
}

.map-version-tile em {
  margin-inline: auto;
}

.map-version-badge {
  margin-left: 6px;
  vertical-align: middle;
}

.map-version-tile.is-active {
  border-color: rgba(244, 185, 66, 0.72);
  box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.16);
}

.map-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
}

.map-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 0.7fr)) auto;
  align-items: end;
  gap: 10px;
  width: 100%;
}

.map-filter input,
.map-filter select {
  width: 100%;
  border: 1px solid rgba(123, 161, 219, 0.2);
  border-radius: 14px;
  background: rgba(4, 11, 20, 0.76);
  color: var(--text);
  padding: 11px 13px;
}

.map-filter-clear {
  min-height: 43px;
}

.button--compact {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 12px;
  text-align: center;
}

.map-load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 22px;
}

.map-pagination-bar {
  justify-content: space-between;
  flex-wrap: wrap;
}

.map-pagination-bar .pagination {
  margin: 0;
}

.map-detail-version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.map-detail-version-tile {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 12px;
  background: rgba(7, 17, 30, 0.72);
  color: var(--text);
}

.map-detail-version-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(2, 8, 15, 0.88);
}

.map-detail-version-tile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.map-detail-version-tile.is-active,
.segmented-actions .is-active {
  border-color: rgba(244, 185, 66, 0.66);
  box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.12);
}

.map-stat-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.map-stat-summary div {
  padding: 16px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 18px;
  background: rgba(4, 11, 20, 0.58);
}

.map-stat-summary span,
.table-like__head {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-stat-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.map-stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.table-like {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(123, 161, 219, 0.12);
}

.table-like__head,
.table-like__row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  background: rgba(4, 11, 20, 0.78);
}

.table-like__row {
  color: var(--text);
}

.table-like__row:hover {
  background: rgba(16, 34, 53, 0.88);
}

.table-like--games .table-like__head,
.table-like--games .table-like__row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) 110px 110px 90px minmax(150px, 1fr);
}

.duration-bars {
  display: grid;
  gap: 10px;
}

.duration-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.62);
}

.duration-bar span,
.duration-bar strong {
  position: relative;
  z-index: 1;
}

.duration-bar i {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 185, 66, 0.95), rgba(83, 208, 255, 0.75));
}

.panel--flush {
  padding: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--section-gap);
  padding: var(--page-top) 0 0;
}

.detail-hero__portrait {
  min-height: 320px;
}

.page-header {
  padding-top: var(--page-top);
}

.page-header--compact {
  padding-top: var(--page-top);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.page-header--catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.page-header--catalog .page-header__actions {
  justify-content: flex-end;
  margin-top: 0;
}

.page-header--catalog .map-filter-panel,
.page-header--catalog .admin-notice {
  grid-column: 1 / -1;
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.page-header > :first-child > h1,
.page-header > h1,
.detail-hero__body > h1,
.map-detail-hero__body > h1 {
  margin-top: 0;
}

.page-header > :first-child > :last-child,
.page-header > :last-child,
.detail-hero__body > :last-child,
.map-detail-hero__body > :last-child,
.panel__header > :last-child {
  margin-bottom: 0;
}

.detail-grid {
  align-items: start;
}

.detail-grid .panel {
  min-width: 0;
}

.competition-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.competition-card:hover {
  border-color: rgba(83, 208, 255, 0.38);
}

.competition-card__badge img {
  width: 48px;
}

.match-card,
.replay-row,
.game-row,
.stream-admin-row,
.stream-sidebar-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.replay-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.replay-filter-panel__wide {
  grid-column: span 2;
}

.replay-filter-panel__actions,
.replay-save-filter {
  display: flex;
  gap: 10px;
  align-items: end;
}

.replay-filter-management {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(123, 161, 219, 0.14);
}

.replay-filter-management[open] {
  display: grid;
  gap: 12px;
}

.replay-filter-management__summary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(123, 161, 219, 0.22);
  border-radius: 999px;
  background: rgba(7, 17, 30, 0.72);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.replay-filter-management__summary::-webkit-details-marker {
  display: none;
}

.replay-filter-management__summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(244, 185, 66, 0.9);
  border-bottom: 2px solid rgba(244, 185, 66, 0.9);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.replay-filter-management[open] .replay-filter-management__summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.replay-filter-management__summary span {
  font-weight: 850;
}

.replay-filter-management__summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.replay-save-filter {
  margin-top: 0;
}

.replay-save-filter .map-filter {
  flex: 1;
}

.replay-save-filter--selected {
  padding: 12px;
  border: 1px solid rgba(83, 208, 255, 0.16);
  border-radius: 18px;
  background: rgba(83, 208, 255, 0.04);
}

.replay-delete-filter {
  display: flex;
  justify-content: flex-end;
}

.replay-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 20px;
  background: rgba(4, 11, 20, 0.56);
}

.replay-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.replay-card p {
  margin: 0;
  color: var(--muted);
}

.replay-card__map {
  min-height: 64px;
}

.replay-map-thumb {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(244, 185, 66, 0.24);
  border-radius: 16px;
  background: rgba(2, 8, 15, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.replay-map-thumb > img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: contain;
}

.replay-map-thumb__large {
  position: fixed;
  z-index: 90;
  inset: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.replay-map-thumb__large img {
  display: block;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  object-fit: contain;
  border: 1px solid rgba(244, 185, 66, 0.38);
  border-radius: 18px;
  background: rgba(4, 11, 20, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.replay-map-thumb:hover .replay-map-thumb__large,
.replay-map-thumb:focus-visible .replay-map-thumb__large {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.replay-card__main {
  min-width: 0;
}

.replay-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.replay-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(123, 161, 219, 0.12);
  border-radius: 18px;
  background: rgba(8, 18, 31, 0.62);
}

.replay-versus > strong {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.replay-team {
  display: grid;
  gap: 4px;
  min-height: 28px;
  align-content: center;
  text-align: center;
}

.replay-team a {
  color: var(--text);
  font-weight: 850;
}

.replay-team a:hover,
.replay-team a:focus-visible {
  color: var(--accent);
}

.replay-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 14px 0 0;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(123, 161, 219, 0.12);
}

.replay-facts div {
  min-width: 0;
  padding: 10px 12px;
  background: rgba(4, 11, 20, 0.78);
}

.replay-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.replay-facts dd {
  color: #e8f2ff;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.player-match-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
}

.player-match-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, max-content);
  align-items: start;
}

.player-match-card > div:first-child {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.player-match-card h3 {
  margin-bottom: 8px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.player-match-card .match-card__meta {
  min-width: 0;
  justify-content: flex-end;
}

.player-match-pager {
  margin-top: 18px;
}

.replay-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.86rem;
}

.replay-card__meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(16, 34, 53, 0.7);
  border: 1px solid rgba(123, 161, 219, 0.12);
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.stream-sidebar-row {
  padding: 14px 16px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 20px;
  background: rgba(4, 11, 20, 0.56);
}

.stream-sidebar-row.is-featured {
  border-color: rgba(244, 185, 66, 0.35);
  box-shadow: inset 0 0 0 1px rgba(244, 185, 66, 0.08);
}

.stream-sidebar-row.is-live {
  border-color: rgba(255, 74, 74, 0.35);
}

.stream-sidebar-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.stream-sidebar-row__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stream-sidebar-row__identity img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.stream-sidebar-row__identity strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.stream-status-dot.is-live {
  background: #43d66c;
  box-shadow: 0 0 0 3px rgba(67, 214, 108, 0.14);
}

.stream-status-dot.is-offline {
  background: #ff5d5d;
  box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.14);
}

.panel__header--compact-action {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.panel-more-link {
  border: 1px solid rgba(134, 178, 230, 0.22);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.panel-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.panel-more-link--bottom {
  align-self: flex-end;
  background: rgba(9, 20, 34, 0.62);
}

.stream-directory {
  display: grid;
  gap: 14px;
  padding: var(--section-gap) 0 var(--page-bottom);
}

.stream-directory-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stream-directory-card.is-live {
  border-color: rgba(67, 214, 108, 0.34);
  box-shadow: inset 0 0 0 1px rgba(67, 214, 108, 0.08);
}

.stream-directory-card__main {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.stream-directory-card__main img {
  height: 24px;
  width: 24px;
}

.stream-directory-card__main h2 {
  margin: 0;
}

.stream-directory-card__main p,
.stream-directory-card__main small {
  color: var(--muted);
  display: block;
  margin: 4px 0 0;
}

.stream-directory-card__badge {
  border: 1px solid rgba(244, 185, 66, 0.32);
  border-radius: 999px;
  color: #ffd36f;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
  text-transform: uppercase;
}

.panel--streams-compact .panel__header p {
  margin-top: 6px;
}

.panel--streams-compact .stream-sidebar-list {
  gap: 10px;
}

.panel--streams-compact .stream-sidebar-row {
  justify-content: flex-start;
}

.panel--streams-compact .stream-sidebar-row__meta {
  display: none;
}

.panel--aside-compact .stack-list {
  gap: 10px;
}

.panel--aside-compact .stack-list__item {
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.stream-sidebar-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.match-card__meta,
.game-row__stats,
.permission-user__grid,
.tag-row,
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-toolbar {
  align-items: center;
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.48);
  padding: 10px;
}

.editor-toolbar button {
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(123, 161, 219, 0.18);
  background: rgba(19, 35, 55, 0.92);
  font-weight: 900;
}

.editor-toolbar button:hover {
  border-color: rgba(244, 185, 66, 0.62);
  background: rgba(31, 54, 84, 0.98);
  transform: translateY(-1px);
}

.editor-toolbar__race img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.toolbar-icon {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  line-height: 1;
}

.toolbar-icon--mention {
  font-size: 1.05rem;
  font-weight: 900;
}

.toolbar-icon--underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toolbar-icon--link,
.toolbar-icon--image {
  position: relative;
  width: 20px;
  height: 18px;
}

.toolbar-icon--link::before,
.toolbar-icon--link::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
  top: 5px;
}

.toolbar-icon--link::before {
  left: 0;
  transform: rotate(-28deg);
}

.toolbar-icon--link::after {
  right: 0;
  transform: rotate(-28deg);
}

.toolbar-icon--image {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.toolbar-icon--image::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: 3px;
  top: 3px;
  border-radius: 999px;
  background: currentColor;
}

.toolbar-icon--image::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 7px;
  background: linear-gradient(135deg, transparent 45%, currentColor 46% 58%, transparent 59%),
              linear-gradient(45deg, transparent 38%, currentColor 39% 58%, transparent 59%);
}

.map-chip {
  display: grid;
  gap: 4px;
  border-radius: 20px;
}

.parser-note {
  margin-top: 18px;
  color: #dbe8ff;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(1, 5, 10, 0.8);
}

.site-footer__inner {
  padding: 26px 0 38px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__links a {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-link-button,
.site-footer__links a:hover {
  color: white;
}

.footer-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
}

.footer-link-button:hover {
  color: white;
}

.news-detail__hero {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 14px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  width: min(calc(100% - 32px), var(--max));
}

.news-detail__hero img {
  border-radius: 12px;
  display: block;
  height: auto;
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.news-detail__hero a {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
}

.news-detail__body {
  padding: 30px 0 60px;
}

.news-detail__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.news-detail__topline .news-detail__meta {
  margin: 0;
}

.legal-grid {
  padding-top: 12px;
}

.legal-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(83, 208, 255, 0.25);
  border-radius: 24px;
  background: rgba(4, 11, 20, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cookie-banner__content strong {
  display: block;
  margin-bottom: 8px;
}

.cookie-banner__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner__actions a {
  color: var(--accent-2);
  font-weight: 700;
}

.cookie-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #20395a, #10253f);
  color: white;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
}

.cookie-button--secondary {
  background: rgba(19, 35, 55, 0.92);
  border: 1px solid var(--line);
}

.permission-user {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.permission-toggle,
.admin-form button,
.download-all-button,
.editor-toolbar button,
.admin-link-button,
.danger-button,
.admin-actions button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #20395a, #10253f);
  color: white;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.permission-toggle.is-enabled {
  background: linear-gradient(135deg, #f4b942, #cf8a13);
  color: #08111d;
}

.admin-link-button--subtle {
  justify-self: start;
  background: rgba(19, 35, 55, 0.92);
  border: 1px solid var(--line);
  color: #dce8f8;
}

.panel__header--compact {
  padding-bottom: 12px;
}

.admin-section-stack {
  display: grid;
  gap: 22px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.news-editor {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 24, 0.9);
  color: white;
  padding: 14px 16px;
  font: inherit;
  color-scheme: dark;
}

.admin-form input[type="datetime-local"] {
  color-scheme: dark;
  background:
    linear-gradient(135deg, rgba(9, 22, 38, 0.98), rgba(4, 11, 20, 0.96)),
    rgba(6, 14, 24, 0.9);
  border-color: rgba(123, 161, 219, 0.34);
  color: #f4f8ff;
}

.admin-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  filter: invert(1) brightness(2.4) contrast(1.25) drop-shadow(0 0 4px rgba(244, 185, 66, 0.72));
}

.admin-form input[type="datetime-local"]:focus {
  border-color: rgba(244, 185, 66, 0.7);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.14);
  outline: none;
}

.news-editor {
  min-height: 220px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.news-editor:focus {
  border-color: rgba(244, 185, 66, 0.7);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.14);
  outline: none;
}

.news-editor figure {
  margin: 16px 0;
}

.news-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.news-editor figcaption {
  min-height: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
  text-align: center;
}

.news-editor blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.08);
}

.news-editor .news-race-icon,
.news-detail__content .news-race-icon {
  display: inline-flex;
  vertical-align: -0.18em;
  margin: 0 0.12em;
}

.news-player-mention {
  display: inline;
  gap: 0.16rem;
  color: #d9e8fb;
  font-weight: 650;
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
  white-space: nowrap;
}

.news-player-mention:hover {
  color: var(--accent);
}

.news-player-mention .news-race-icon {
  margin-left: 0;
  margin-right: 0.12em;
  vertical-align: -0.26em;
}

.news-player-mention__nick {
  line-height: inherit;
  vertical-align: baseline;
}

.news-mention-popover {
  display: grid;
  gap: 4px;
  position: fixed;
  width: min(340px, 100%);
  margin-top: 0;
  padding: 8px;
  border: 1px solid rgba(116, 173, 224, 0.25);
  border-radius: 12px;
  background: rgba(4, 12, 24, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  z-index: 1000;
}

.news-mention-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.news-mention-option:hover,
.news-mention-option.is-active {
  background: rgba(244, 185, 66, 0.14);
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.news-gallery__item {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(116, 173, 224, 0.22);
  border-radius: 12px;
  background: rgba(6, 16, 31, 0.65);
}

.news-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.news-lightbox[hidden] {
  display: none;
}

.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 32px 76px;
  background: rgba(1, 8, 18, 0.88);
  backdrop-filter: blur(8px);
}

.news-lightbox img {
  display: block;
  max-width: min(100%, 1800px);
  max-height: calc(100vh - 96px);
  border-radius: 10px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}

.news-lightbox__close,
.news-lightbox__nav {
  border: 1px solid rgba(116, 173, 224, 0.3);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.85);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}

.news-lightbox__close:hover,
.news-lightbox__nav:hover {
  background: rgba(33, 82, 131, 0.92);
  transform: translateY(-1px);
}

.news-lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.news-lightbox__nav {
  position: fixed;
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 2.4rem;
  transform: translateY(-50%);
}

.news-lightbox__nav:hover {
  transform: translateY(calc(-50% - 1px));
}

.news-lightbox__nav--prev {
  left: 18px;
}

.news-lightbox__nav--next {
  right: 18px;
}

.news-lightbox__counter {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  border: 1px solid rgba(116, 173, 224, 0.24);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.78);
  color: var(--muted);
  font-weight: 800;
  padding: 8px 14px;
}

.has-news-lightbox {
  overflow: hidden;
}

@media (max-width: 760px) {
  .news-lightbox {
    padding: 72px 14px 58px;
  }

  .news-lightbox__nav {
    top: auto;
    bottom: 14px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    transform: none;
  }

  .news-lightbox__nav:hover {
    transform: translateY(-1px);
  }

  .news-lightbox__counter {
    bottom: 20px;
  }
}

.bulk-email-textarea {
  min-height: 240px;
  resize: vertical;
  overflow-y: auto;
  line-height: 1.55;
}

.admin-search-input {
  width: 100%;
  margin-bottom: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.identity-manage-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: var(--section-gap) 0 var(--page-bottom);
}

.identity-manage-layout__nav {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 18, 30, 0.72);
  padding: 12px;
}

.identity-manage-layout__nav ul,
.identity-manage-nav {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.identity-manage-layout__nav a {
  display: block;
  border-radius: 12px;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
}

.identity-manage-layout__nav a.active,
.identity-manage-layout__nav a.is-active,
.identity-manage-layout__nav a:hover {
  background: rgba(83, 208, 255, 0.12);
  color: white;
}

.identity-manage-logout {
  margin-top: 12px;
}

.identity-manage-logout button {
  width: 100%;
  border: 1px solid rgba(255, 93, 93, 0.32);
  border-radius: 12px;
  background: rgba(255, 93, 93, 0.1);
  color: #ffb7b7;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.identity-manage-logout button:hover {
  border-color: rgba(255, 93, 93, 0.62);
  background: rgba(255, 93, 93, 0.16);
  color: white;
  transform: translateY(-1px);
}

.admin-form .checkbox-line {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.admin-form .checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.map-filter--inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.map-filter--inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.portrait-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portrait-upload {
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.48);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.portrait-upload.is-dragover {
  border-color: rgba(244, 185, 66, 0.72);
  background: rgba(244, 185, 66, 0.1);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.12);
}

.portrait-upload img,
.portrait-upload__placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  border-radius: 12px;
  background: rgba(2, 8, 15, 0.82);
  object-fit: cover;
  color: var(--muted);
}

.portrait-upload--feature img,
.portrait-upload--feature .portrait-upload__placeholder {
  aspect-ratio: 16 / 9;
}

.portrait-upload small {
  color: var(--muted);
  line-height: 1.5;
}

.news-hero-upload {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.48);
  color: var(--muted);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.news-hero-upload.is-dragover {
  border-color: rgba(244, 185, 66, 0.72);
  background: rgba(244, 185, 66, 0.1);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.12);
}

.news-hero-upload img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(2, 8, 15, 0.82);
}

.news-hero-upload__actions {
  display: grid;
  gap: 8px;
}

.news-hero-upload__actions small,
.checkbox-row small {
  color: var(--muted);
  line-height: 1.45;
}

.publish-date-block {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.publish-date-block [data-publish-date-field] {
  display: none;
}

.publish-date-block.is-visible [data-show-publish-date] {
  display: none;
}

.publish-date-block.is-visible [data-publish-date-field] {
  display: grid;
}

.publish-date-field {
  flex: 0 1 auto;
}

.publish-date-field input[type="datetime-local"] {
  width: 18rem;
  max-width: calc(100vw - 48px);
}

.publish-date-block [data-clear-publish-date] {
  display: none;
}

.publish-date-block.is-visible [data-clear-publish-date] {
  display: inline-flex;
}

.thumbnail-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.thumbnail-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
}

.thumbnail-form input,
.thumbnail-form select {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 24, 0.9);
  color: white;
  padding: 14px 16px;
  font: inherit;
}

.thumbnail-form__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.thumbnail-form__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dff7ff;
  font-weight: 800;
}

.thumbnail-form__status[hidden] {
  display: none;
}

.thumbnail-form__status::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(83, 208, 255, 0.26);
  border-top-color: rgba(244, 185, 66, 0.95);
  animation: thumbnail-spin 0.8s linear infinite;
}

@keyframes thumbnail-spin {
  to {
    transform: rotate(360deg);
  }
}

.thumbnail-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.admin-subnav {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-subnav__link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(6, 14, 24, 0.74);
}

.admin-subnav__link:hover,
.admin-link-button:hover {
  color: white;
}

.admin-section-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
}

.admin-section-card__meta,
.admin-meta {
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-list__row {
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 20px;
  background: rgba(4, 11, 20, 0.56);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.admin-list__row.is-disabled {
  opacity: 0.5;
  filter: grayscale(0.8);
}

.admin-list__row.is-disabled h3::after {
  content: "disabled";
  display: inline-flex;
  margin-left: 10px;
  border: 1px solid rgba(238, 245, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  text-transform: uppercase;
}

.admin-player-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-player-summary__portrait,
.admin-player-option__portrait {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(123, 161, 219, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(123, 161, 219, 0.18), rgba(4, 11, 20, 0.72)),
    url("/images/scbw/hero.jpg");
  background-position: center;
  background-size: cover;
}

.admin-form--secondary-action {
  margin-top: 12px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.panel__header--with-action {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.page-header.panel__header--with-action {
  align-items: flex-start;
  gap: var(--section-gap);
}

.permission-checklist {
  display: grid;
  gap: 10px;
}

.permission-checklist__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  background: rgba(4, 11, 20, 0.56);
}

.permission-checklist__item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.permission-checklist__item span {
  display: grid;
  gap: 4px;
}

.permission-checklist__item small {
  color: var(--muted);
}

.panel--subtle {
  padding: 20px;
  background: rgba(6, 14, 24, 0.52);
}

.permission-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  background: rgba(4, 11, 20, 0.56);
}

.permission-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.permission-check span {
  display: grid;
  gap: 4px;
}

.permission-check small {
  color: var(--muted);
}

.danger-button,
.admin-actions .danger-button {
  background: linear-gradient(135deg, #8e2c37, #56131d);
  border: 1px solid rgba(255, 122, 122, 0.24);
  box-shadow: 0 10px 24px rgba(107, 23, 35, 0.22);
}

.danger-button:hover,
.admin-actions .danger-button:hover {
  background: linear-gradient(135deg, #aa3340, #661822);
  transform: translateY(-1px);
}

.news-editor.is-dragover {
  outline: 2px dashed var(--accent-2);
}

.form-inline {
  margin: 0;
}

.btn-link {
  background: transparent;
  border: 0;
}

.admin-fieldset {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 18px;
}

.admin-fieldset legend {
  padding: 0 8px;
  color: var(--text);
}

.checkbox-grid {
  display: grid;
  gap: 10px;
}

.admin-map-picker {
  display: grid;
  gap: 14px;
}

.admin-map-picker__filters {
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(120px, 0.7fr)) auto;
  padding: 0;
}

.admin-map-picker__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-map-picker__summary strong {
  color: var(--accent);
}

.admin-map-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding: 2px 6px 2px 2px;
  scrollbar-color: rgba(244, 185, 66, 0.7) rgba(4, 11, 20, 0.68);
  scrollbar-width: thin;
}

.admin-map-picker__grid::-webkit-scrollbar {
  width: 10px;
}

.admin-map-picker__grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(4, 11, 20, 0.68);
}

.admin-map-picker__grid::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 11, 20, 0.68);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 185, 66, 0.85), rgba(83, 208, 255, 0.58));
}

.admin-map-picker-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(123, 161, 219, 0.16);
  border-radius: 14px;
  background: rgba(4, 11, 20, 0.58);
  cursor: pointer;
  min-width: 0;
  padding: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-map-picker-card:hover {
  border-color: rgba(83, 208, 255, 0.42);
  transform: translateY(-1px);
}

.admin-map-picker-card.is-selected {
  border-color: rgba(244, 185, 66, 0.72);
  box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.14), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.admin-map-picker-card__checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.admin-map-picker-card__preview {
  position: relative;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(2, 8, 15, 0.9);
}

.admin-map-picker-card__preview > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.admin-map-picker-card__hover-preview {
  position: fixed;
  z-index: 90;
  inset: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.admin-map-picker-card__hover-preview img {
  display: block;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  object-fit: contain;
  border: 1px solid rgba(244, 185, 66, 0.35);
  border-radius: 10px;
  background: rgba(2, 8, 15, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.56);
}

.admin-map-picker-card__preview:hover .admin-map-picker-card__hover-preview,
.admin-map-picker-card__preview:focus-within .admin-map-picker-card__hover-preview {
  opacity: 1;
  transform: scale(1);
}

.admin-map-picker-card__body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-map-picker-card__body strong,
.admin-map-picker-card__body small,
.admin-map-picker-card__body em {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-map-picker-card__body strong {
  color: var(--text);
  line-height: 1.15;
}

.admin-map-picker-card__body small,
.admin-map-picker-card__body em {
  color: var(--muted);
  font-style: normal;
}

.admin-map-picker-card__body em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.admin-map-picker-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-map-picker-card__meta span {
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 2px 6px;
}

.analysis-upload {
  display: grid;
  gap: 14px;
}

.analysis-dropzone {
  position: relative;
  display: grid;
  min-height: 180px;
  place-items: center;
  gap: 8px;
  border: 1px dashed rgba(83, 208, 255, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(83, 208, 255, 0.12), transparent 48%),
    rgba(4, 11, 20, 0.58);
  color: var(--text);
  cursor: pointer;
  padding: 28px;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.analysis-dropzone:hover,
.analysis-dropzone.is-dragover {
  border-color: rgba(244, 185, 66, 0.7);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 185, 66, 0.16), transparent 52%),
    rgba(8, 18, 31, 0.84);
  transform: translateY(-1px);
}

.analysis-upload.is-uploading .analysis-dropzone {
  border-color: rgba(244, 185, 66, 0.88);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 185, 66, 0.2), transparent 54%),
    rgba(8, 18, 31, 0.92);
  cursor: progress;
  opacity: 0.82;
  pointer-events: none;
}

.analysis-dropzone span {
  font-size: 1.1rem;
  font-weight: 900;
}

.analysis-dropzone small,
.analysis-upload__selected,
.analysis-muted {
  color: var(--muted);
}

.analysis-muted a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.analysis-muted a:hover,
.analysis-muted a:focus-visible {
  color: var(--accent);
}

.analysis-upload__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 10px 14px;
  border: 1px solid rgba(244, 185, 66, 0.34);
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.11);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.analysis-upload__spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(244, 185, 66, 0.24);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: analysis-spin 0.8s linear infinite;
}

@keyframes analysis-spin {
  to {
    transform: rotate(360deg);
  }
}

.error-panel {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: min(100%, 760px);
}

.error-panel span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-panel code {
  overflow-wrap: anywhere;
  color: var(--text);
}

.analysis-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.analysis-fact-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(123, 161, 219, 0.12);
  padding: 0 0 8px;
}

.analysis-fact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.analysis-fact-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.analysis-fact-row dd {
  color: #e8f2ff;
  margin: 0;
  overflow-wrap: anywhere;
}

.thumbnail-form--analysis {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  margin-top: 8px;
}

.thumbnail-form--analysis input[name="fileName"],
.thumbnail-form--analysis input[name="contentBase64"] {
  display: none;
}

.analysis-similar-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.analysis-similar-map-grid .map-detail-version-tile {
  border-radius: 14px;
  padding: 9px;
}

.analysis-similar-map-grid .map-detail-version-tile img {
  border-radius: 10px;
}

.analysis-similar-map-preview {
  display: block;
  position: relative;
}

.analysis-similar-map-preview > img {
  display: block;
  width: 100%;
}

.similarity-score {
  color: rgba(244, 185, 66, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
}

.analysis-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.analysis-result-list {
  display: grid;
  gap: 16px;
}

.analysis-result-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 18px;
  background: rgba(4, 11, 20, 0.56);
  padding: 18px;
}

.analysis-result-card--replay {
  grid-template-columns: minmax(0, 1fr);
}

.analysis-result-card--map {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.analysis-result-card__preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 185, 66, 0.18);
  border-radius: 14px;
  background: rgba(2, 8, 15, 0.9);
  overflow: hidden;
}

.analysis-result-card--map .analysis-result-card__preview {
  width: min(100%, 960px);
  min-height: 0;
  justify-self: center;
  margin: 0 auto;
}

.analysis-result-card--replay .analysis-result-card__preview {
  width: min(100%, 760px);
  min-height: 0;
  justify-self: center;
  margin: 0 auto;
}

.analysis-result-card--replay .replay-result-map-preview--analysis {
  width: min(100%, 560px);
}

.analysis-result-card__preview:empty::before {
  content: "No preview";
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.analysis-result-card__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.analysis-result-card--map .analysis-result-card__preview img {
  max-height: min(76vh, 960px);
}

.analysis-map-preview {
  display: inline-block;
  position: relative;
}

.analysis-map-preview > img {
  display: block;
}

.analysis-results-panel {
  order: 1;
}

.analysis-upload-panel {
  order: 2;
}

.analysis-map-preview__hover {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(10px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.analysis-map-preview__hover img {
  display: block;
  width: min(calc(100vw - 36px), calc(100vh - 36px)) !important;
  height: auto !important;
  max-width: calc(100vw - 36px) !important;
  max-height: calc(100vh - 36px) !important;
  object-fit: contain;
  border: 1px solid rgba(244, 185, 66, 0.38);
  border-radius: 10px;
  background: rgba(4, 11, 20, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.analysis-map-preview:hover .analysis-map-preview__hover,
.analysis-map-preview:focus-within .analysis-map-preview__hover,
.replay-result-map-preview--analysis:hover .analysis-map-preview__hover,
.replay-result-map-preview--analysis:focus-within .analysis-map-preview__hover,
.analysis-similar-map-preview:hover .analysis-map-preview__hover,
.analysis-similar-map-preview:focus-within .analysis-map-preview__hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.analysis-result-card--replay .replay-timeline__canvas {
  max-width: 100%;
}

.analysis-result-card__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.analysis-description {
  display: grid;
  gap: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.analysis-thumbnail-toggle {
  justify-self: start;
}

.analysis-description p {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-inline-form {
  margin-top: 18px;
}

.stream-editor-layout {
  width: min(calc(100% - 24px), 1880px);
  margin: 0 auto;
  padding: 12px 0 24px;
  min-height: calc(100vh - 140px);
}

.stream-editor-panel--wide {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.stream-scene-form {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
}

.stream-editor-topbar {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.stream-scene-meta,
.stream-editor-actions,
.stream-inspector__toolbar,
.stream-inspector__grid,
.broadcast-match-card__grid {
  display: grid;
  gap: 12px;
}

.stream-scene-meta {
  grid-template-columns: 2fr 1fr;
  margin-bottom: 18px;
}

.stream-scene-links {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.stream-scene-link-card {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  background: rgba(4, 11, 20, 0.46);
  display: grid;
  gap: 8px;
}

.stream-scene-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.stream-scene-link-row input {
  width: 100%;
}

.stream-scene-upload input {
  cursor: pointer;
}

.stream-canvas-shell {
  overflow: auto;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  background: rgba(2, 6, 12, 0.96);
  min-height: 66vh;
  max-height: 66vh;
}

.stream-canvas-scaler {
  min-width: 100%;
  display: grid;
  place-items: start center;
  justify-items: center;
}

.stream-canvas {
  position: relative;
  width: 1920px;
  height: 1080px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.stream-inspector--inline {
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 24px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  background: rgba(4, 11, 20, 0.46);
  max-height: 26vh;
  overflow: hidden;
}

.stream-editor-inspector-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.stream-scene-item {
  position: absolute;
  cursor: move;
  user-select: none;
  outline: 1px dashed rgba(83, 208, 255, 0.32);
  display: grid;
  align-content: center;
  padding: 12px;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.stream-scene-item.is-selected {
  outline: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.2);
}

.stream-scene-item.is-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 0;
}

.stream-scene-item__resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px 0 0 0;
  background: rgba(244, 185, 66, 0.95);
  cursor: nwse-resize;
}

.stream-inspector__empty {
  color: var(--muted);
  line-height: 1.7;
}

.stream-inspector__content,
.stream-inspector__stack {
  display: grid;
  gap: 12px;
}

.stream-inspector label,
.stream-scene-meta label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.stream-inspector input,
.stream-inspector select,
.stream-inspector textarea,
.stream-scene-meta input {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 24, 0.9);
  color: white;
  padding: 12px 14px;
  font: inherit;
}

.stream-inspector__section {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(123, 161, 219, 0.12);
}

.stream-inspector__section:first-child {
  border-top: 0;
  padding-top: 0;
}

.stream-inspector__section-header {
  display: grid;
  gap: 4px;
}

.stream-inspector__section-header h3 {
  margin: 0;
  font-size: 1rem;
}

.stream-inspector__section-header small {
  color: var(--muted);
}

.stream-inspector__grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stream-transform-panel {
  background: rgba(9, 21, 35, 0.78);
  border: 1px solid rgba(244, 185, 66, 0.18);
  border-radius: 18px;
  padding: 16px;
}

.stream-layer-list {
  display: grid;
  gap: 8px;
  max-height: 19vh;
  overflow: auto;
}

.stream-layer-row {
  border: 1px solid rgba(123, 161, 219, 0.14);
  border-radius: 16px;
  background: rgba(4, 11, 20, 0.56);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 8px 12px;
}

.stream-layer-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stream-layer-row__main {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.stream-layer-row__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.stream-layer-row.is-selected {
  border-color: rgba(244, 185, 66, 0.35);
  box-shadow: inset 0 0 0 1px rgba(244, 185, 66, 0.08);
}

.stream-scene-context-menu {
  position: fixed;
  z-index: 60;
  min-width: 232px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(123, 161, 219, 0.16);
  background: rgba(4, 11, 20, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 6px;
}

.stream-scene-context-group {
  display: grid;
  gap: 6px;
}

.stream-scene-context-group + .stream-scene-context-group {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(123, 161, 219, 0.12);
}

.stream-scene-context-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px 0;
}

.stream-scene-context-menu button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.stream-scene-context-menu button:hover {
  background: rgba(21, 36, 58, 0.9);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(123, 161, 219, 0.18);
  border-radius: 14px;
  background: rgba(12, 24, 40, 0.92);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.icon-button:hover {
  background: rgba(26, 42, 66, 0.95);
  border-color: rgba(244, 185, 66, 0.36);
  transform: translateY(-1px);
}

.icon-button.is-confirmed {
  border-color: rgba(103, 212, 148, 0.5);
  background: rgba(20, 70, 48, 0.94);
}

.icon-button--ghost {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: transparent;
  border-color: rgba(123, 161, 219, 0.12);
}

.icon-button--ghost:hover {
  background: rgba(21, 36, 58, 0.9);
}

.icon-button--danger:hover {
  border-color: rgba(213, 84, 84, 0.4);
  background: rgba(66, 20, 20, 0.92);
}

.icon-button__badge {
  position: absolute;
  right: -7px;
  top: -7px;
  border: 1px solid rgba(83, 208, 255, 0.28);
  background: rgba(4, 16, 28, 0.96);
}

.icon-copy,
.icon-open,
.icon-duplicate,
.icon-trash {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.icon-copy::before,
.icon-copy::after,
.icon-open::before,
.icon-open::after,
.icon-duplicate::before,
.icon-duplicate::after,
.icon-trash::before,
.icon-trash::after {
  content: "";
  position: absolute;
}

.icon-copy::before {
  inset: 4px 2px 2px 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-copy::after {
  inset: 1px 5px 5px 1px;
  border: 2px solid currentColor;
  border-radius: 3px;
  opacity: 0.65;
}

.icon-open::before {
  inset: 7px 2px 2px 7px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-open::after {
  width: 9px;
  height: 9px;
  top: 1px;
  right: 1px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(0deg);
  box-sizing: border-box;
}

.icon-duplicate::before {
  inset: 5px 3px 3px 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-duplicate::after {
  inset: 2px 6px 6px 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
  opacity: 0.68;
}

.icon-trash::before {
  left: 4px;
  right: 4px;
  top: 5px;
  bottom: 3px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.icon-trash::after {
  left: 3px;
  right: 3px;
  top: 2px;
  height: 3px;
  border-top: 2px solid currentColor;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
}

.stream-binding-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(123, 161, 219, 0.16);
}

.stream-binding-list summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.stream-binding-list ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.stream-binding-list li {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  background: rgba(4, 11, 20, 0.46);
}

.broadcast-match-picker {
  display: grid;
  gap: 14px;
}

.broadcast-match-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(123, 161, 219, 0.14);
  background: rgba(4, 11, 20, 0.48);
}

.broadcast-match-card.is-selected {
  border-color: rgba(244, 185, 66, 0.34);
  box-shadow: inset 0 0 0 1px rgba(244, 185, 66, 0.08);
}

.broadcast-match-card.is-dragging {
  opacity: 0.45;
}

.broadcast-match-card__header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 14px;
}

.broadcast-drag-handle {
  border: 0;
  background: rgba(16, 34, 53, 0.88);
  border-radius: 12px;
  color: var(--muted);
  width: 44px;
  height: 44px;
  cursor: grab;
  font-weight: 900;
}

.broadcast-match-card__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.broadcast-match-card__notes {
  grid-column: 1 / -1;
}

.stream-layout-body {
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.stream-scene-public {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.stream-render-item {
  position: absolute;
}

.stream-render-item--text {
  display: grid;
  align-content: center;
  padding: 12px 18px;
  line-height: 1.1;
  white-space: pre-wrap;
}

.stream-render-item--image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 960px) {
  .topline__inner,
  .main-nav,
  .site-footer__inner {
    flex-wrap: wrap;
  }

  .content-grid,
  .detail-grid,
  .map-detail-hero,
  .map-stat-grid,
  .admin-section-grid,
  .detail-hero,
  .player-grid,
  .player-directory,
  .cookie-banner__inner,
  .map-directory {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 340px;
  }

  .hero--with-stream {
    min-height: 520px;
  }

  .hero__content {
    padding-top: var(--page-top);
    min-height: 340px;
  }

  .hero--with-stream .hero__content {
    min-height: 520px;
  }

  .hero-socials {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 18px;
  }

  .hero-social {
    justify-content: center;
  }

  .cookie-banner__inner {
    display: grid;
  }

  .admin-list__row,
  .panel__header--with-action,
  .stream-editor-layout,
  .broadcast-match-card__grid,
  .stream-scene-meta,
  .stream-editor-topbar,
  .stream-editor-inspector-grid,
  .homepage-top-grid {
    display: grid;
  }

  .homepage-top-grid {
    grid-template-columns: 1fr;
    padding-top: var(--page-top);
  }

  .panel--news .news-card {
    grid-template-columns: 1fr;
  }

  .panel--news .news-card__image {
    min-height: 150px;
  }

  .thumbnail-form {
    grid-template-columns: 1fr;
  }

  .page-header--compact,
  .map-filter-panel,
  .replay-filter-panel,
  .replay-save-filter,
  .replay-card {
    display: grid;
  }

  .map-filter-panel,
  .replay-filter-panel {
    grid-template-columns: 1fr;
  }

  .map-stat-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-stat-summary,
  .player-stat-breakdowns,
  .player-stat-table__row {
    grid-template-columns: 1fr;
  }

  .analysis-fact-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .table-like,
  .table-like__head,
  .table-like__row,
  .table-like--games .table-like__head,
  .table-like--games .table-like__row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .replay-card,
  .player-match-filter,
  .player-match-card {
    grid-template-columns: 1fr;
  }

  .replay-card__header,
  .player-match-card {
    display: grid;
  }

  .replay-facts {
    grid-template-columns: 1fr;
  }

  .replay-versus {
    grid-template-columns: 1fr;
  }

  .replay-map-thumb__large {
    display: none;
  }

  .replay-filter-panel__wide {
    grid-column: auto;
  }

  .match-report-form__top {
    grid-template-columns: 1fr;
  }

  .map-directory-card__hover-preview {
    display: none;
  }

  .homepage-main-section {
    padding-top: var(--section-gap);
  }

  .brand {
    font-size: 1.2rem;
    letter-spacing: 0.16rem;
    gap: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 6vw, 2.6rem);
  }
}

@media (max-width: 1280px) and (min-width: 961px) {
  .map-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-map-pairing-panel {
  margin-top: 24px;
}

.admin-maps-upload-grid > .panel {
  grid-column: 1 / -1;
}

.admin-map-table {
  display: grid;
  gap: 12px;
}

.admin-map-row {
  align-items: center;
  background: rgba(7, 19, 38, 0.72);
  border: 1px solid rgba(137, 177, 223, 0.18);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr) minmax(260px, 420px);
  padding: 12px;
}

.admin-map-row__actions {
  align-items: center;
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.admin-map-row__preview {
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.admin-map-row__preview img {
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  width: 72px;
}

.admin-map-row__body h3 {
  margin: 0 0 4px;
}

.admin-map-row__body p,
.admin-map-row__body small {
  color: var(--muted);
  margin: 0;
}

.admin-map-row__form {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.stack-form select,
.admin-map-row__form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #d8e7f7 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(9, 22, 38, 0.98), rgba(4, 11, 20, 0.96));
  border: 1px solid rgba(123, 161, 219, 0.34);
  border-radius: 14px;
  color: #f4f8ff;
  font: inherit;
  min-height: 44px;
  padding: 10px 38px 10px 12px;
  width: 100%;
}

.stack-form select:focus,
.admin-map-row__form select:focus {
  border-color: rgba(244, 185, 66, 0.72);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.12);
  outline: 0;
}

@media (max-width: 860px) {
  .player-directory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-map-row,
  .admin-map-row__form,
  .admin-map-row__actions {
    grid-template-columns: 1fr;
  }
}

.news-archive {
  margin-bottom: 18px;
}

.filter-bar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-bar label {
  color: var(--muted);
  display: grid;
  flex: 1 1 210px;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 7px;
  letter-spacing: 0.01em;
}

.filter-bar input,
.filter-bar select {
  appearance: none;
  background: rgba(3, 10, 18, 0.88);
  border: 1px solid rgba(123, 161, 219, 0.24);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-height: 44px;
  padding: 10px 13px;
}

.filter-bar select {
  background-image:
    linear-gradient(45deg, transparent 50%, #ffd28a 50%),
    linear-gradient(135deg, #ffd28a 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 38px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(255, 190, 92, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 190, 92, 0.13);
  outline: none;
}

.filter-bar button {
  background: linear-gradient(135deg, rgba(255, 190, 92, 0.95), rgba(235, 119, 46, 0.95));
  border: 0;
  border-radius: 999px;
  color: #140a03;
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 18px;
}

.filter-bar button:hover {
  filter: brightness(1.08);
}

.news-list--archive {
  display: grid;
  gap: 18px;
}

.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid rgba(134, 178, 230, 0.22);
  border-radius: 999px;
  background: rgba(6, 14, 24, 0.62);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 7px 11px;
  text-decoration: none;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(244, 185, 66, 0.48);
  background: rgba(244, 185, 66, 0.13);
  color: var(--accent);
}

.points-sidebar-list,
.points-leaderboard,
.points-transaction-list,
.admin-points-list {
  display: grid;
  gap: 0.65rem;
}

.points-sidebar-row,
.points-row,
.points-transaction-row,
.admin-points-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(126, 185, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 18, 32, 0.54);
}

.points-row:hover,
.points-sidebar-row:hover {
  border-color: rgba(245, 182, 66, 0.65);
  transform: translateY(-1px);
}

.latest-results-list {
  display: grid;
  gap: 0.65rem;
}

.latest-result-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(126, 185, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 18, 32, 0.54);
}

.latest-result-row:hover {
  border-color: rgba(245, 182, 66, 0.65);
  transform: translateY(-1px);
}

.latest-result-row.is-spoiler-hidden {
  border-color: rgba(244, 185, 66, 0.22);
  background: linear-gradient(135deg, rgba(5, 18, 32, 0.7), rgba(26, 19, 7, 0.46));
}

.latest-result-row__players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
  font-size: 0.94rem;
}

.latest-result-row__players span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.latest-result-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.latest-result-row__score {
  justify-self: start;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.latest-result-row__spoiler {
  justify-self: start;
  border: 1px solid rgba(244, 185, 66, 0.32);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-result-reveal {
  margin-top: -0.35rem;
}

.points-row__rank {
  color: #f5b642;
  font-weight: 800;
}

.admin-points-row {
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr);
}

.admin-player-pick {
  display: grid;
  gap: 14px;
}

.admin-player-pick__results {
  display: grid;
  gap: 10px;
}

.admin-player-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(126, 185, 255, 0.18);
  border-radius: 16px;
  background: rgba(5, 18, 32, 0.54);
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 10px;
  text-align: left;
}

.admin-player-option:hover,
.admin-player-option.is-selected {
  border-color: rgba(245, 182, 66, 0.65);
  background: rgba(245, 182, 66, 0.1);
}

.admin-player-option strong,
.admin-player-option small {
  display: block;
}

.admin-player-option small {
  color: var(--muted);
  margin-top: 3px;
}

.analysis-import-map-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.analysis-import-map-form small {
  color: var(--muted);
}

.admin-points-adjust {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.6rem;
}

.admin-points-adjust--single {
  grid-template-columns: minmax(130px, 180px) minmax(220px, 1fr) auto;
  align-items: end;
}

.admin-points-adjust--single label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.admin-points-adjust input,
.admin-points-adjust button {
  min-width: 0;
}

.admin-points-adjust input {
  border: 1px solid rgba(126, 185, 255, 0.24);
  border-radius: 14px;
  background: rgba(3, 12, 22, 0.88);
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
}

.admin-points-adjust input:focus {
  border-color: rgba(244, 185, 66, 0.62);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.13);
  outline: none;
}

.admin-points-adjust button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #20395a, #10253f);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 16px;
}

.admin-points-adjust button:hover {
  filter: brightness(1.08);
}

.points-history-chart {
  min-height: 180px;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(126, 185, 255, 0.16);
  border-radius: 14px;
  background: rgba(2, 10, 18, 0.44);
}

.points-history-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.points-history-chart circle {
  fill: #f5b642;
  stroke: #06101d;
  stroke-width: 2;
}

.points-positive {
  color: #7df2a0;
  font-weight: 800;
}

.points-negative {
  color: #ff8f8f;
  font-weight: 800;
}

.admin-list__row--scheduled {
  border-color: rgba(245, 182, 66, 0.65);
  background: linear-gradient(135deg, rgba(245, 182, 66, 0.12), rgba(6, 16, 29, 0.62));
}

.scheduled-news-icon {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.35rem;
  color: #06101d;
  background: #f5b642;
  border-radius: 999px;
  font-weight: 900;
}

.scheduled-news-note {
  display: inline-flex;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: #f9d98a;
  background: rgba(245, 182, 66, 0.14);
}

@media (max-width: 760px) {
  .points-row,
  .points-transaction-row,
  .admin-points-row,
  .admin-points-adjust {
    grid-template-columns: 1fr;
  }
}

.news-card--archive {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  overflow: hidden;
}

.news-card--archive .news-card__image {
  min-height: 170px;
}

.news-card__meta,
.news-detail__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tag-pill {
  border: 1px solid rgba(255, 190, 92, 0.32);
  border-radius: 999px;
  color: #ffd28a;
  font-size: 0.85rem;
  padding: 4px 10px;
  text-decoration: none;
}

.tag-pill:hover,
.tag-pill.is-active {
  background: rgba(255, 190, 92, 0.16);
}

.responsive-embed {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin: 18px 0;
  overflow: hidden;
}

.responsive-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 22px 0;
}

.pagination a,
.pagination button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
}

.pagination a.is-active,
.pagination a:hover,
.pagination button.is-active,
.pagination button:hover {
  background: rgba(255, 190, 92, 0.18);
  border-color: rgba(255, 190, 92, 0.5);
}

@media (max-width: 760px) {
  .news-card--archive {
    grid-template-columns: 1fr;
  }
}
