.public-fighter-profiles-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 28, 0.14), transparent 22%),
    radial-gradient(circle at bottom right, rgba(31, 78, 140, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff, #f5f7fa);
}

.public-fighter-profiles-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}

.public-fighter-profiles-hero {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.public-fighter-profiles-title {
  margin-top: 0.5rem;
}

.public-fighter-profiles-copy {
  margin-top: 0.75rem;
  max-width: 52rem;
  color: rgb(71 85 105);
  font-size: 1rem;
  line-height: 1.8;
}

.public-fighter-profiles-summary {
  width: fit-content;
  padding: 1rem 1.25rem;
}

.public-fighter-profiles-summary-value {
  font-family: Oswald, "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: rgb(22 58 107);
}

.public-fighter-profiles-summary-label {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(71 85 105);
}

.public-fighter-profiles-directory {
  padding: 0;
}

.public-fighter-profiles-summary-inline {
  color: #5f708d;
  font-size: 0.92rem;
  font-weight: 600;
}

.public-fighter-card .users-card-actions {
  margin-bottom: 0;
}

.public-fighter-card-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(198, 211, 227, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.public-fighter-card-info-button:hover,
.public-fighter-card-info-button:focus-visible {
  color: #163a6b;
  border-color: rgba(31, 78, 140, 0.34);
  box-shadow: 0 12px 24px rgba(22, 58, 107, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.fight-history-grid {
  display: grid;
  gap: 1rem;
}

.fight-history-grid-drawer {
  grid-template-columns: 1fr;
}

.fight-history-card {
  overflow: hidden;
  border: 1px solid rgb(217 225 236);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fight-history-thumb {
  display: block;
  width: 100%;
  height: 144px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(31, 78, 140, 0.84));
}

.fight-history-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 144px;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 28, 0.24), transparent 24%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(31, 78, 140, 0.84));
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fight-history-card-body {
  padding: 1rem;
}

.fight-history-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.fight-history-card-copy {
  min-width: 0;
}

.fight-history-card-title {
  font-weight: 700;
  color: rgb(15 23 42);
  line-height: 1.4;
}

.fight-history-card-date {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: rgb(100 116 139);
}

.fight-history-result {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgb(217 225 236);
  background: rgb(248 250 252);
  color: rgb(71 85 105);
}

.fight-history-result.tone-success {
  border-color: rgba(0, 122, 77, 0.2);
  background: rgba(0, 122, 77, 0.08);
  color: rgb(0 122 77);
}

.fight-history-result.tone-danger {
  border-color: rgba(224, 58, 62, 0.2);
  background: rgba(224, 58, 62, 0.08);
  color: rgb(190 24 39);
}

.fight-history-result.tone-slate {
  border-color: rgba(100, 116, 139, 0.2);
  background: rgba(100, 116, 139, 0.08);
  color: rgb(71 85 105);
}

.fight-history-empty {
  border: 1px dashed #c8d5e6;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1.1rem 1rem;
  color: #64748b;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .fight-history-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.fighter-profiles-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease, backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease;
}

.fighter-profiles-drawer-backdrop[hidden] {
  display: none;
}

.fighter-profiles-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fighter-profiles-drawer {
  width: min(100%, 460px);
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -20px 0 48px rgba(15, 23, 42, 0.14);
  transform: translateX(100%);
  transition: transform 240ms ease;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.fighter-profiles-drawer-backdrop.is-open .fighter-profiles-drawer {
  transform: translateX(0);
}

.fighter-profiles-drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.1rem 1rem;
  border-bottom: 1px solid #d9e1ec;
}

.fighter-profiles-drawer-title {
  margin-top: 0.35rem;
  font-family: Oswald, "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #163a6b;
}

.fighter-profiles-drawer-subtitle {
  margin-top: 0.45rem;
  color: #334155;
  font-size: 1rem;
  font-weight: 700;
}

.fighter-profiles-drawer-meta {
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.92rem;
}

.fighter-profiles-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  flex: 0 0 auto;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fighter-profiles-drawer-close:hover,
.fighter-profiles-drawer-close:focus-visible {
  color: #163a6b;
  border-color: rgba(31, 78, 140, 0.34);
  background: #f8fafc;
  outline: none;
}

.fighter-profiles-drawer-body {
  overflow-y: auto;
  padding: 1rem 1.1rem 1.35rem;
}

body.fighter-profiles-drawer-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .public-fighter-profiles-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 2rem;
  }

  .public-fighter-profiles-shell {
    padding: 2.5rem 1.5rem 4rem;
  }
}

@media (max-width: 639px) {
  .fighter-profiles-drawer {
    width: 100%;
  }

  .fighter-profiles-drawer-title {
    font-size: 1.7rem;
  }
}
