:root {
  --bg: #07111d;
  --panel: rgba(7, 17, 29, 0.72);
  --panel-strong: rgba(10, 23, 39, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eff7ff;
  --muted: #9cb0c7;
  --gold-1: #f7d77b;
  --gold-2: #c6921d;
  --teal-1: #7ef0ff;
  --teal-2: #1899aa;
  --pitch: #45c46a;
  --danger: #ff7d7d;
  --success: #86f7a9;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(46, 227, 170, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(247, 215, 123, 0.16), transparent 32%),
    linear-gradient(160deg, #02060b 0%, #07111d 35%, #0d2134 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 88%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(9, 20, 34, 0.95), rgba(15, 36, 55, 0.84)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.hero__glow--one {
  width: 240px;
  height: 240px;
  background: rgba(247, 215, 123, 0.15);
  top: -60px;
  right: 18%;
}

.hero__glow--two {
  width: 200px;
  height: 200px;
  background: rgba(93, 244, 255, 0.18);
  bottom: -70px;
  left: 35%;
}

.hero__copy,
.hero__logo-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pitch);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.9;
  max-width: 8ch;
}

.lead {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__badges span,
.ghost-button,
.save-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
}

.hero__badges span {
  background: rgba(255, 255, 255, 0.05);
}

.hero__logo-card {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  text-align: center;
}

.hero__logo {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.hero__logo-card p {
  margin: 16px 0 0;
  max-width: 28ch;
  color: var(--muted);
}

main {
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-header--compact {
  align-items: start;
}

.ghost-button,
.save-button {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.ghost-button:hover,
.save-button:hover {
  transform: translateY(-1px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.bandit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: center;
  margin: 34px 0 0;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(247, 215, 123, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(126, 240, 255, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(10, 23, 39, 0.92), rgba(7, 17, 29, 0.82));
  box-shadow: var(--shadow);
}

.bandit-hero__media {
  min-width: 0;
}

.bandit-hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.bandit-hero__content {
  display: grid;
  gap: 14px;
}

.bandit-hero__content .lead {
  margin-top: 0;
}

.news-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(247, 215, 123, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(126, 240, 255, 0.08), transparent 30%),
    rgba(10, 23, 39, 0.78);
  box-shadow: var(--shadow);
}

.news-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.news-card--featured {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
  padding: 26px;
  border-color: rgba(247, 215, 123, 0.22);
  background:
    radial-gradient(circle at top right, rgba(247, 215, 123, 0.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(126, 240, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(14, 29, 45, 0.96), rgba(10, 23, 39, 0.82));
}

.news-card__media {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
}

.news-card__cover-button,
.news-card__thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.news-card__cover-button {
  height: 100%;
}

.news-card__cover {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease, filter 220ms ease;
}

.news-card__content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.news-card__cover-button:hover .news-card__cover,
.news-card__thumb-button:hover .news-card__thumb {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.news-card__header {
  display: grid;
  gap: 6px;
}

.news-card__date {
  margin: 0;
  color: var(--pitch);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-card__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card__story {
  color: var(--muted);
  line-height: 1.65;
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-card__story p {
  margin: 0 0 12px;
}

.news-card__story p:last-child {
  margin-bottom: 0;
}

.news-card__story img,
.news-card__story video,
.news-card__story iframe {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.news-card__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  min-width: 0;
}

.news-card__thumb,
.news-card__video {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.04);
}

.news-card__thumb {
  transition: transform 220ms ease, filter 220ms ease;
}

.news-card__videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(1, 6, 11, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox__image {
  display: block;
  width: min(1100px, 100%);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

body.is-lightbox-open {
  overflow: hidden;
}

.player-card {
  perspective: 1200px;
  overflow: visible;
}

.player-card__frame {
  position: relative;
  display: grid;
  min-height: 680px;
  padding: 18px;
  border-radius: 28px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  box-shadow: var(--shadow);
  transform: rotateX(1deg) rotateY(-4deg);
}

.player-card__frame::before,
.player-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.player-card__frame::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(160deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  mix-blend-mode: screen;
}

.player-card[data-accent="gold"] .player-card__frame {
  background:
    linear-gradient(180deg, rgba(247, 215, 123, 0.32), rgba(198, 146, 29, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.player-card[data-accent="teal"] .player-card__frame {
  background:
    linear-gradient(180deg, rgba(126, 240, 255, 0.24), rgba(24, 153, 170, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.player-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.player-card__overall {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 5rem;
  line-height: 0.9;
}

.player-card__position {
  margin-top: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
}

.player-card__crest {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
}

.player-card__portrait-wrap {
  margin-top: 10px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.14), rgba(7, 17, 29, 0.45)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 60%);
}

.player-card__portrait {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(1.08) contrast(1.02);
}

.player-card__body {
  display: grid;
  gap: 12px;
  padding: 18px 6px 4px;
}

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

.player-card__name {
  font-size: 2rem;
}

.player-card__nickname {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.player-card__motto,
.player-card__bio {
  margin: 0;
  color: var(--muted);
}

.player-card__motto {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.player-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.stat-box {
  position: relative;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 11, 18, 0.26);
}

.stat-box__value {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.9rem;
  line-height: 0.95;
}

.stat-box__label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-overlay {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 5;
  width: min(320px, 70vw);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 10, 17, 0.96);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.stat-box:hover .stat-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stat-box:focus-within .stat-overlay,
.stat-box:focus .stat-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stat-overlay__header {
  margin-bottom: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.stat-overlay__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-overlay__item {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-overlay__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.stat-overlay__date {
  color: var(--gold-1);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-overlay__description {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-panel {
  margin-top: 42px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

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

.admin-hint {
  margin: 0;
  color: var(--muted);
}

.admin-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.admin-form {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel-strong);
}

.admin-form__title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-form__title {
  font-size: 1.65rem;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.88rem;
}

.field__hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #061019;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-1), #fff0b0);
}

.save-button--link,
.ghost-button--link {
  text-decoration: none;
}

.hero-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-toolbar--end {
  justify-content: end;
  margin-top: 16px;
}

.page-shell--narrow {
  width: min(560px, calc(100% - 24px));
}

.admin-auth,
.admin-shell {
  display: grid;
  gap: 20px;
}

.admin-form--auth {
  padding: 24px;
}

.flash {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.flash--error {
  color: var(--danger);
  border-color: rgba(255, 125, 125, 0.25);
}

.flash--success {
  color: var(--success);
  border-color: rgba(134, 247, 169, 0.25);
}

.admin-shell__header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.admin-shell__header--dashboard {
  align-items: center;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 255, 0.24);
  background: rgba(126, 240, 255, 0.08);
  color: var(--teal-1);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 23, 39, 0.82);
  box-shadow: var(--shadow);
}

.metric-card__label,
.metric-card__sub {
  color: var(--muted);
}

.metric-card__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card__value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at left center, rgba(247, 215, 123, 0.12), transparent 30%),
    radial-gradient(circle at right center, rgba(126, 240, 255, 0.12), transparent 34%),
    rgba(10, 23, 39, 0.78);
}

.admin-band__copy {
  display: grid;
  gap: 8px;
}

.admin-band__copy h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.admin-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-events {
  margin-top: 20px;
}

.field--full {
  grid-column: 1 / -1;
}

.delete-button {
  border: 1px solid rgba(255, 125, 125, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  color: #fff0f0;
  background: rgba(149, 20, 20, 0.35);
  cursor: pointer;
}

.delete-guard {
  display: grid;
  gap: 6px;
  min-width: min(100%, 340px);
}

.delete-guard label {
  color: var(--muted);
  font-size: 0.82rem;
}

.delete-guard input {
  width: 100%;
  border: 1px solid rgba(255, 125, 125, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-forms--stacked {
  grid-template-columns: 1fr;
}

.admin-form--dashboard {
  padding: 24px;
}

.admin-form__kicker {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-form__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-preview {
  position: sticky;
  top: 18px;
}

.admin-preview--event .news-card {
  grid-template-columns: 1fr;
  padding: 16px;
  max-width: 100%;
}

.admin-preview--event .news-card__media,
.admin-preview--event .news-card__content,
.admin-preview--event .news-card__gallery,
.admin-preview--event .news-card__videos {
  max-width: 100%;
  min-width: 0;
}

.admin-preview--event .news-card__gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-preview--event .news-card__thumb,
.admin-preview--event .news-card__video,
.admin-preview--event .news-card__cover {
  max-width: 100%;
  width: 100%;
}

.player-card--preview .player-card__frame {
  min-height: 0;
  transform: none;
}

.player-card--preview .player-card__portrait,
.player-card--preview .player-card__portrait-wrap {
  min-height: 240px;
}

.player-card--preview .player-card__overall {
  font-size: 4.3rem;
}

.player-card--preview .player-card__name {
  font-size: 1.7rem;
}

.player-card--preview .stat-box__value {
  font-size: 1.45rem;
}

.admin-form__content {
  display: grid;
  gap: 18px;
}

.admin-form__section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.admin-form__section-label {
  margin: 0;
  color: var(--pitch);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-form__grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field--stat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 11, 18, 0.22);
}

.field--detail textarea {
  min-height: 90px;
}

.admin-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.richtext-editor {
  display: grid;
  gap: 10px;
}

.richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.richtext-toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.richtext-surface {
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  line-height: 1.6;
  outline: none;
}

.richtext-surface:focus {
  border-color: rgba(126, 240, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(126, 240, 255, 0.18);
}

.richtext-surface p {
  margin: 0 0 12px;
}

.richtext-surface p:last-child {
  margin-bottom: 0;
}

.admin-form__status {
  min-height: 1.2rem;
  margin: 14px 0 0;
  color: var(--muted);
}

.admin-form__status.is-success {
  color: var(--success);
}

.admin-form__status.is-error {
  color: var(--danger);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .bandit-hero {
    grid-template-columns: 1fr;
  }

  .admin-shell__header {
    flex-direction: column;
    align-items: start;
  }

  .admin-metrics,
  .admin-stat-grid,
  .admin-form__layout {
    grid-template-columns: 1fr;
  }

  .admin-band {
    flex-direction: column;
    align-items: start;
  }

  .admin-preview {
    position: static;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .delete-guard {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .hero,
  .admin-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero__badges,
  .hero-actions,
  .admin-toolbar,
  .admin-band__actions {
    width: 100%;
  }

  .ghost-button,
  .save-button,
  .delete-button {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: start;
  }

  .admin-form__grid--compact {
    grid-template-columns: 1fr;
  }

  .player-card__frame {
    min-height: 560px;
    transform: none;
  }

  .player-card__overall {
    font-size: 4.3rem;
  }

  .player-card__portrait,
  .player-card__portrait-wrap {
    min-height: 260px;
  }

  .player-card__identity {
    flex-direction: column;
    align-items: start;
  }

  .player-card__stats {
    grid-template-columns: 1fr;
  }

  .news-card {
    padding: 18px;
  }

  .news-card--featured {
    padding: 18px;
  }

  .bandit-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .news-card__cover {
    min-height: 0;
  }

  .news-card__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .lightbox__image {
    max-height: calc(100vh - 92px);
    border-radius: 18px;
  }

  .stat-overlay {
    left: 0;
    right: 0;
    width: auto;
    bottom: calc(100% + 8px);
    transform: translateY(10px);
  }

  .stat-box:hover .stat-overlay,
  .stat-box:focus-within .stat-overlay,
  .stat-box:focus .stat-overlay {
    transform: translateY(0);
  }

  .admin-form--dashboard {
    padding: 18px;
  }

  .richtext-surface {
    min-height: 150px;
  }

  .admin-form__title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-form__section {
    padding: 14px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar--end {
    justify-content: stretch;
  }
}
