﻿:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111113;
  --panel-2: #171719;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f5f0e8;
  --muted: #a8a29a;
  --red: #df1f2d;
  --red-dark: #870f18;
  --gold: #d8a83f;
  --gold-soft: rgba(216, 168, 63, 0.18);
  --green: #22c55e;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(223, 31, 45, 0.24), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(216, 168, 63, 0.16), transparent 24rem),
    linear-gradient(180deg, #090909 0%, var(--bg) 46%, #020202 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 168, 63, 0.55);
  background: linear-gradient(145deg, var(--red-dark), #151515);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.brand-mark.logo-mark {
  overflow: hidden;
  border-radius: 50%;
  background: #090909;
}

.brand-mark.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.77rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav button,
.lang-toggle,
.language-select,
.icon-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.nav button {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav button.active,
.nav button:hover,
.lang-toggle:hover,
.language-select:hover,
.icon-button:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.lang-toggle,
.language-select,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.language-select {
  width: auto;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.mobile-only {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 22px;
}

.hero-content,
.hero-card,
.panel,
.fighter-card,
.form-card,
.match-card,
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero-content {
  min-height: 430px;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.93), rgba(5, 5, 5, 0.42)),
    url("./assets/fight-cards-hero.png") center / cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.profile-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: #ddd6cb;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.card-actions,
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.primary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, var(--red), #9f101b);
  color: white;
}

.secondary {
  border: 1px solid rgba(216, 168, 63, 0.42);
  background: rgba(216, 168, 63, 0.08);
  color: var(--gold);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.94)),
    url("./assets/main-card-faceoff-20260621.png") center / cover;
}

.poster-label {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 168, 63, 0.5);
  background: rgba(0, 0, 0, 0.6);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.versus span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.versus strong:last-child {
  text-align: right;
}

.hero-stats,
.metric-grid,
.admin-stats {
  display: grid;
  gap: 10px;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.hero-stats span,
.metric-grid span,
.stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.34);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-stats b,
.metric-grid b,
.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.branch-strip,
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.branch-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0 6px;
}

.branch-strip button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.branch-strip button.active,
.branch-strip button:hover {
  border-color: rgba(216, 168, 63, 0.55);
  background: var(--gold-soft);
  color: var(--gold);
}

.section {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 168, 63, 0.38);
  border-radius: var(--radius);
  color: var(--gold);
  background: var(--gold-soft);
}

.section-title h2,
.panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.section-title p,
.muted,
.panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.main-event-section {
  margin-top: 22px;
}

.main-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(216, 168, 63, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 168, 63, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(166, 19, 30, 0.18), rgba(255, 255, 255, 0.035)),
    #080808;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.event-fighter {
  display: grid;
  align-content: end;
  min-height: 330px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-align: left;
}

.event-fighter div {
  min-height: 210px;
  margin: 8px 0 14px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -80px 70px rgba(0, 0, 0, 0.5);
}

.event-fighter span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-fighter h3 {
  margin: 0;
  color: white;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.event-fighter p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.empty-corner {
  justify-content: center;
}

.main-event-center {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(216, 168, 63, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.32);
  text-align: center;
}

.main-event-center strong {
  color: var(--red);
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(166, 19, 30, 0.45);
}

.main-event-center p {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
}

.fighter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.featured-compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-card .fighter-photo {
  min-height: 100%;
}

.compact-card .fighter-body {
  padding: 11px;
}

.compact-card .fighter-name-row h3 {
  font-size: 0.95rem;
  line-height: 1.15;
}

.compact-card .muted {
  font-size: 0.76rem;
}

.compact-card .pro-badges,
.compact-card .tags {
  gap: 5px;
  margin: 8px 0;
}

.compact-card .pro-badge,
.compact-card .tags span {
  padding: 5px 6px;
  font-size: 0.66rem;
}

.compact-card .metric-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 9px 0;
}

.compact-card .metric-grid span {
  padding: 8px;
  font-size: 0.68rem;
}

.compact-card .metric-grid b {
  font-size: 0.95rem;
}

.compact-card .record {
  margin: 9px 0;
  padding-top: 8px;
}

.compact-card .card-actions {
  gap: 6px;
}

.compact-card .card-actions button {
  min-height: 38px;
  padding: 8px 9px;
  font-size: 0.72rem;
}

.compact-card .fighter-photo i,
.compact-card .fighter-photo span,
.compact-card .rank-chip {
  font-size: 0.6rem;
  padding: 5px 6px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed rgba(216, 168, 63, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.fighter-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 176px;
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.09);
}

.fighter-card.premium {
  border-color: rgba(216, 168, 63, 0.45);
}

.fighter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(166, 19, 30, 0.14), transparent 36%),
    linear-gradient(315deg, rgba(216, 168, 63, 0.12), transparent 30%);
  opacity: 0.72;
}

.favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
}

.favorite.saved {
  color: var(--red);
}

.fighter-photo {
  position: relative;
  min-height: 100%;
  background-position: center;
  background-size: cover;
}

.fighter-photo i {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid rgba(166, 19, 30, 0.7);
  border-radius: 999px;
  background: rgba(166, 19, 30, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.fighter-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.88));
}

.fighter-photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 9px;
  border: 1px solid rgba(216, 168, 63, 0.45);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.58);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.rank-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(216, 168, 63, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--gold);
  font-size: 0.75rem;
}

.fighter-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: 12px 14px;
}

.fighter-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fighter-name-row h3 {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.verified {
  color: var(--gold);
  vertical-align: middle;
}

.pro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ddd6cb;
  font-size: 0.72rem;
  font-weight: 900;
}

.verified-badge {
  border-color: rgba(216, 168, 63, 0.55);
  background: var(--gold-soft);
  color: var(--gold);
}

.hero-badges {
  margin: 14px 0;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 7px 0;
}

.metric-grid span {
  padding: 8px;
  font-size: 0.72rem;
}

.metric-grid b {
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0;
}

.tags span,
.gold-tag,
.status {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ddd6cb;
  font-size: 0.7rem;
  font-weight: 800;
}

.gold-tag {
  background: var(--gold-soft) !important;
  color: var(--gold) !important;
}

.record {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.record small {
  color: var(--muted);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.trio-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trio-actions .manager-action {
  grid-column: auto;
  min-height: 40px;
  border-color: rgba(216, 168, 63, 0.38);
  color: var(--gold);
}

.compact-card {
  min-height: 158px;
  grid-template-columns: 178px minmax(0, 1fr);
}

.social-link {
  display: inline-flex;
  width: fit-content;
  margin: 4px 8px 4px 0;
  padding: 7px 10px;
  border: 1px solid rgba(216, 168, 63, 0.32);
  border-radius: 999px;
  background: rgba(216, 168, 63, 0.08);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.social-link:hover {
  border-color: rgba(216, 168, 63, 0.72);
  background: rgba(216, 168, 63, 0.16);
}

.profile-actions {
  flex-wrap: wrap;
}

.split,
.profile-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  padding: 20px;
  background-color: var(--panel);
}

.fighter-info-bg,
.score-card-bg {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

.fighter-info-bg {
  background-image:
    linear-gradient(135deg, rgba(7, 7, 10, 0.92), rgba(7, 7, 10, 0.58)),
    url("./assets/fighter-info-bg.png");
}

.score-card-bg {
  display: grid;
  align-items: end;
  background-image:
    linear-gradient(180deg, rgba(7, 7, 10, 0.18), rgba(7, 7, 10, 0.92)),
    url("./assets/score-card-bg.png");
}

.score-card-overlay {
  position: relative;
  z-index: 1;
}

.score-card-overlay h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 1;
}

.score-metrics,
.score-inputs,
.branch-picker {
  display: grid;
  gap: 10px;
}

.score-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.score-metrics span {
  padding: 12px;
  border: 1px solid rgba(216, 168, 63, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-weight: 800;
}

.score-metrics b {
  display: block;
  color: var(--gold);
  font-size: 1.4rem;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #f4efe6;
  font-weight: 900;
}

.branch-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.branch-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.branch-choice span {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: #f4efe6;
  text-align: center;
  font-weight: 900;
  cursor: pointer;
}

.branch-choice input:checked + span {
  border-color: rgba(216, 168, 63, 0.9);
  background: var(--gold-soft);
  color: var(--gold);
}

.score-input-card {
  padding: 14px;
  border: 1px solid rgba(216, 168, 63, 0.25);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.achievement-editor {
  margin: 16px 0;
  border-color: rgba(216, 168, 63, 0.28);
  background:
    linear-gradient(135deg, rgba(216, 168, 63, 0.1), rgba(166, 19, 30, 0.08)),
    var(--panel);
}

.achievement-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.achievement-edit-grid textarea {
  min-height: 150px;
}

.score-inputs {
  grid-template-columns: repeat(3, 1fr);
}

.fighter-cv {
  display: grid;
  gap: 18px;
  margin: 16px 0;
  border-color: rgba(216, 168, 63, 0.28);
  background:
    linear-gradient(135deg, rgba(166, 19, 30, 0.18), rgba(216, 168, 63, 0.08)),
    var(--panel);
}

.fighter-cv h2 {
  margin: 0 0 6px;
  color: #fff;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.cv-grid span {
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cv-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1.35rem;
}

.cv-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fight-passport {
  display: grid;
  gap: 16px;
  margin: 16px 0;
  border-color: rgba(216, 168, 63, 0.34);
  background:
    linear-gradient(135deg, rgba(216, 168, 63, 0.14), rgba(166, 19, 30, 0.12)),
    #090909;
}

.passport-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.passport-header h2 {
  margin: 0 0 4px;
  color: #fff;
  text-transform: uppercase;
}

.passport-header strong {
  padding: 9px 11px;
  border: 1px solid rgba(216, 168, 63, 0.5);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 0.78rem;
}

.passport-strip,
.passport-record {
  display: grid;
  gap: 10px;
}

.passport-strip,
.passport-record {
  grid-template-columns: repeat(4, 1fr);
}

.passport-strip span,
.passport-record span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.passport-strip b,
.passport-record b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1.16rem;
}

.challenge-list,
.ranking-list,
.ranking-table {
  display: grid;
  gap: 10px;
}

.challenge-row,
.ranking-row,
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.challenge-row span,
.admin-row span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.ranking-row {
  grid-template-columns: 44px minmax(0, 1fr) 110px auto;
  width: 100%;
  color: inherit;
  text-align: left;
}

.ranking-row.full {
  grid-template-columns: 54px minmax(0, 1fr) 110px 90px 80px auto;
}

.ranking-board {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.podium-card {
  display: grid;
  gap: 8px;
  min-height: 260px;
  padding: 14px;
  border: 1px solid rgba(216, 168, 63, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-align: left;
}

.podium-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 900;
}

.podium-card div {
  min-height: 150px;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}

.podium-card h3 {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
}

.podium-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.podium-card b {
  color: var(--gold);
}

.podium-1 {
  border-color: rgba(216, 168, 63, 0.58);
  background:
    linear-gradient(180deg, rgba(216, 168, 63, 0.16), rgba(255, 255, 255, 0.035)),
    #111;
}

.ranking-board-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 110px 90px 80px auto;
  gap: 12px;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pro-ranking-row strong {
  display: grid;
  gap: 3px;
}

.pro-ranking-row em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.ranking-filters {
  grid-template-columns: repeat(3, 1fr);
}

.ranking-row:hover,
.admin-row:hover {
  border-color: rgba(216, 168, 63, 0.35);
  background: rgba(216, 168, 63, 0.06);
}

.status {
  display: inline-flex !important;
  width: fit-content;
  border: 1px solid var(--line);
}

.status-kabul-edildi {
  color: var(--green);
}

.status-reddedildi {
  color: #fb7185;
}

.status-beklemede,
.status-organizasyon-araniyor {
  color: var(--gold);
}

.filters,
.form-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0c0d;
  color: var(--text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-card {
  padding: 20px;
}

.form-card label:has(textarea),
.form-card button,
.form-card label:has(select[multiple]) {
  grid-column: 1 / -1;
}

.form-card.compact {
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.photo-preview-wrap {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.photo-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(216, 168, 63, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #0c0c0d;
  color: var(--muted);
  background-position: center;
  background-size: cover;
  font-weight: 800;
}

.photo-preview.has-photo {
  border-style: solid;
  border-color: rgba(216, 168, 63, 0.55);
}

.profile-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.65)),
    url("./assets/profile-hero-bg.png") center / cover;
}

.profile-photo {
  min-height: 360px;
  border: 1px solid rgba(216, 168, 63, 0.36);
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}

.info-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-panel span {
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--gold);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.74);
}

.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0c0d;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pro-match-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(216, 168, 63, 0.28);
  background:
    linear-gradient(135deg, rgba(166, 19, 30, 0.16), rgba(216, 168, 63, 0.08)),
    #090909;
}

.match-poster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  min-height: 300px;
}

.match-corner {
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 14px;
  border: 0;
  background: #090909;
  color: inherit;
  text-align: left;
}

.match-corner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.92));
}

.match-corner:last-child {
  text-align: right;
}

.match-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(216, 168, 63, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(166, 19, 30, 0.28), rgba(0, 0, 0, 0.85));
  background-position: center;
  background-size: cover;
}

.match-corner span,
.match-corner h3,
.match-corner p {
  position: relative;
  z-index: 1;
}

.match-corner span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-corner h3 {
  margin: 6px 0 4px;
  color: white;
  font-size: clamp(1.05rem, 2.5vw, 1.8rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.match-corner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.match-vs {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  border-inline: 1px solid rgba(216, 168, 63, 0.22);
  background:
    radial-gradient(circle, rgba(166, 19, 30, 0.35), transparent 58%),
    rgba(0, 0, 0, 0.62);
  text-align: center;
}

.match-vs span,
.match-vs small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.match-vs strong {
  color: var(--red);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.85;
  text-shadow: 0 0 28px rgba(166, 19, 30, 0.55);
}

.match-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.match-meta span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.match-meta b {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
}

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 12px;
}

.admin-stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}

.stat {
  display: grid;
  gap: 8px;
}

.stat svg {
  color: var(--gold);
}

.mini-actions {
  justify-content: flex-end;
}

.mini-actions button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.78rem;
}

.admin-login-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(216, 168, 63, 0.08);
}

.admin-login-helper strong {
  color: var(--gold);
}

@media (max-width: 1080px) {
  .fighter-grid {
    grid-template-columns: 1fr;
  }

  .featured-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-only {
    display: inline-flex;
  }

  .topbar {
    gap: 10px;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 88vw);
    padding: 78px 18px 18px;
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(13, 8, 8, 0.98)),
      radial-gradient(circle at 30% 0%, rgba(216, 168, 63, 0.18), transparent 36%);
    border-left: 1px solid rgba(216, 168, 63, 0.38);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(18px);
  }

  .nav.open {
    display: flex;
  }

  .nav button {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.38);
    color: #f5efe6;
    font-weight: 900;
    text-align: left;
  }

  .nav button.active {
    border-color: rgba(216, 168, 63, 0.6);
    background: rgba(216, 168, 63, 0.14);
    color: var(--gold);
  }

  .close-menu {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .hero,
  .main-event-card,
  .split,
  .profile-hero,
  .profile-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .fighter-grid {
    grid-template-columns: 1fr;
  }

  .featured-compact-grid {
    grid-template-columns: 1fr;
  }

  .fighter-card,
  .compact-card {
    grid-template-columns: 138px minmax(0, 1fr);
    min-height: 168px;
  }

  .fighter-photo,
  .compact-card .fighter-photo {
    min-height: 100%;
  }

  .fighter-body {
    padding: 12px;
  }

  .fighter-name-row h3 {
    font-size: 0.95rem;
  }

  .filters,
  .form-card,
  .form-card.compact,
  .achievement-edit-grid {
    grid-template-columns: 1fr;
  }

  .branch-picker,
  .score-inputs,
  .score-metrics,
  .metric-grid,
  .cv-grid,
  .passport-strip,
  .passport-record,
  .ranking-podium,
  .ranking-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-event-center {
    min-height: 190px;
  }

  .ranking-board-head {
    display: none;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-photo {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 66px;
    padding: 10px 12px;
  }

  .brand small {
    display: none;
  }

  .hero {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .hero-content,
  .hero-card,
  .profile-hero {
    min-height: auto;
    padding: 20px;
  }

  .hero h1,
  .profile-hero h1 {
    font-size: 2.45rem;
  }

  .hero-stats,
  .match-grid,
  .branch-picker,
  .score-inputs,
  .score-metrics,
  .cv-grid,
  .passport-strip,
  .passport-record,
  .ranking-podium,
  .ranking-filters,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .match-poster {
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    min-height: 240px;
  }

  .match-corner {
    padding: 10px;
  }

  .match-vs strong {
    font-size: 2.7rem;
  }

  .match-meta {
    grid-template-columns: 1fr;
  }

  .fighter-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .metric-grid span {
    padding: 6px;
    font-size: 0.66rem;
  }

  .metric-grid b {
    font-size: 0.9rem;
  }

  .pro-badges,
  .tags {
    gap: 4px;
    margin: 5px 0;
  }

  .pro-badge,
  .tags span {
    padding: 4px 5px;
    font-size: 0.62rem;
  }

  .record {
    font-size: 0.78rem;
  }

  .card-actions button {
    min-height: 36px;
    padding: 6px 6px;
    font-size: 0.62rem;
  }

  .featured-compact-grid {
    grid-template-columns: 1fr;
  }

  .fighter-card,
  .compact-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 160px;
  }

  .fighter-photo,
  .compact-card .fighter-photo {
    min-height: 100%;
  }

  .fighter-photo i,
  .fighter-photo span,
  .rank-chip {
    font-size: 0.56rem;
    padding: 5px 6px;
  }

  .favorite {
    width: 32px;
    height: 32px;
  }

  .branch-strip,
  .section {
    width: calc(100% - 20px);
  }

  .card-actions,
  .challenge-row,
  .ranking-row,
  .ranking-row.full,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .trio-actions {
    grid-template-columns: 1fr;
  }

  .card-actions button,
  .event-fighter,
  .podium-card {
    min-height: 40px;
  }

  .event-fighter {
    min-height: 260px;
  }

  .event-fighter div {
    min-height: 170px;
  }

  .passport-header {
    display: grid;
  }

  .mini-actions {
    justify-content: flex-start;
  }
}
