html,
body {
  height: 100%;
  min-height: 100vh;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  --color-text: #0f2437;
  --color-muted: #5b6b78;
  --color-border: #dceaf2;
  --color-surface: #ffffff;
  --color-soft-surface: #f5fbff;
  --link-action: #0f6f88;
  --link-action-hover: #0a5367;
  --button-primary: #0f8f4d;
  --button-primary-hover: #0b743e;
  --radius-card: 14px;
  --radius-section: 20px;
  --portal-brand: var(--link-action);
  --portal-brand-hover: var(--link-action-hover);
  --portal-brand-soft: rgba(15, 111, 136, 0.1);
  --portal-brand-border: rgba(15, 111, 136, 0.18);
  --portal-border-subtle: rgba(15, 36, 55, 0.1);
  --portal-icon-muted: #5b6b78;
  --portal-section-bg: var(--color-surface);
  --portal-section-border: rgba(15, 111, 136, 0.12);
  --portal-shadow-soft: 0 14px 34px rgba(15, 36, 55, 0.08);
  --portal-stat-bg: #f5fbff;
  --portal-stat-text: #223647;
  --portal-surface-muted: #f2f8fc;
  --portal-tag-border: rgba(15, 111, 136, 0.08);
  --portal-tag-text: #314757;
  --portal-text-heading: var(--color-text);
  --portal-text-muted: var(--color-muted);
  --portal-text-soft: #263c4e;
  --tournament-participants-icon: #1f5f8b;
  --tournament-register-bg: var(--button-primary);
  --tournament-register-hover-bg: var(--button-primary-hover);
  --tournament-register-active-bg: #085c32;
  --tournament-tag-men-bg: #e7f0ff;
  --tournament-tag-men-border: #bfdbfe;
  --tournament-tag-men-text: #1d4ed8;
  --tournament-tag-women-bg: #fdf2f8;
  --tournament-tag-women-border: #fbcfe8;
  --tournament-tag-women-text: #be185d;
  --tournament-tag-youth-bg: #ecfdf3;
  --tournament-tag-youth-border: #bbf7d0;
  --tournament-tag-youth-text: #15803d;
  --tournament-power-none-bg: #f2f4f7;
  --tournament-power-none-border: #d9dee7;
  --tournament-power-none-text: #667085;
  --tournament-power-1-bg: #e7f6ff;
  --tournament-power-1-border: #bae6fd;
  --tournament-power-1-text: #176b8f;
  --tournament-power-2-bg: #def7ff;
  --tournament-power-2-border: #a5f3fc;
  --tournament-power-2-text: #0e7490;
  --tournament-power-3-bg: #e0f7f2;
  --tournament-power-3-border: #99f6e4;
  --tournament-power-3-text: #0f766e;
  --tournament-power-4-bg: #ecfdf3;
  --tournament-power-4-border: #bbf7d0;
  --tournament-power-4-text: #15803d;
  --tournament-power-5-bg: #f7fee7;
  --tournament-power-5-border: #d9f99d;
  --tournament-power-5-text: #4d7c0f;
  --tournament-power-6-bg: #fef9c3;
  --tournament-power-6-border: #fde68a;
  --tournament-power-6-text: #854d0e;
  --tournament-power-7-bg: #fff1b8;
  --tournament-power-7-border: #fcd34d;
  --tournament-power-7-text: #92400e;
  --tournament-power-8-bg: #ffdfb8;
  --tournament-power-8-border: #ff9f43;
  --tournament-power-8-text: #9a3412;
  --tournament-power-9-bg: #ffb15c;
  --tournament-power-9-border: #ff7a1a;
  --tournament-power-9-text: #7c2d12;
  --tournament-power-10-bg: #ff5a1f;
  --tournament-power-10-border: #ea3f0b;
  --tournament-power-10-text: #ffffff;
  --tournament-power-top-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}

.portal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  padding-top: 0;
  width: 100%;
}

.portal-footer-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  line-height: 1.4;
}

.portal-footer-muted {
  color: #86868b;
  white-space: nowrap;
}

.portal-footer a {
  font-weight: 400;
}

.portal-footer-brand,
.portal-footer-credit {
  align-items: baseline;
  display: flex;
  gap: 0.35rem;
}

@media (max-width: 575.98px) {
  .landing-header-container {
    padding-top: 0 !important;
  }

  .portal-footer .footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .portal-footer-inner {
    align-items: center;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .portal-footer-brand,
  .portal-footer-credit {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .portal-footer-credit {
    white-space: nowrap;
  }
}

.portal-page-content {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

.cookie-consent {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(18rem, 1fr) minmax(0, 44rem);
  left: 50%;
  max-width: 1260px;
  padding: 1rem;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 9999999;
}

@supports (backdrop-filter: blur(16px)) {
  .cookie-consent {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.86);
  }
}

.cookie-consent {
  bottom: 1rem;
}

.cookie-consent-text {
  color: #1d1d1f;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-end;
  min-width: 0;
}

.cookie-consent-button {
  align-items: center;
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.4rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  max-width: 100%;
  min-height: 2.5rem;
  min-width: 0;
  padding: 0.65rem 1rem;
  text-align: center;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  white-space: normal;
}

.cookie-consent-button .bi {
  flex: 0 0 auto;
}

.cookie-consent-button:hover {
  transform: translateY(-1px);
}

.cookie-consent-button:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.25);
  outline-offset: 2px;
}

.cookie-consent-accept {
  background: #188c52;
  color: #ffffff;
}

.cookie-consent-accept:hover {
  background: #147945;
}

.cookie-consent-decline {
  background: #f2f2f7;
  color: #424245;
  flex: 1 1 20rem;
}

.cookie-consent-decline:hover {
  background: #e5e5ea;
}

.navbar-header {
  align-items: center;
  display: flex;
}

.portal-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.6rem;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 2.5rem;
  padding-bottom: 0;
  padding-top: 0;
}

.portal-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 2rem;
  width: 2rem;
}

.portal-brand-short {
  display: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar-toggler {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: none;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.14);
}

.navbar-toggler-icon {
  height: 1.15rem;
  width: 1.15rem;
}

@media (max-width: 1199px) {
  .navbar-header {
    justify-content: space-between;
    width: 100%;
  }

  #navbar.navbar-collapse.show,
  #navbar.navbar-collapse.collapsing {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  #navbar .navbar-nav {
    width: 100%;
  }

  #navbar .navbar-right {
    order: 2;
  }

  #navbar .language-switcher {
    order: 3;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
  }

  #navbar #search-form {
    order: 4;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .portal-brand {
    font-size: 1.05rem;
    gap: 0.55rem;
    margin-right: 0;
    min-height: 2.75rem;
  }

  .portal-brand-logo {
    height: 2.25rem;
    width: 2.25rem;
  }

  .portal-brand-full {
    display: none;
  }

  .portal-brand-short {
    display: inline;
  }
}

#search-form {
  margin: 0px !important;
}

#search-form .input-group {
  flex-wrap: nowrap;
}

#search-form .input-group:focus-within {
  border-radius: 6px;
  outline: 2px solid #777;
}

#search-form .form-control {
  border-color: #e9e9e9;
  border-right: 0;
}

#search-form .form-control:focus {
  border-color: #e9e9e9;
  border-right: 0;
  box-shadow: none;
  outline: 0;
}

#search-form .portal-search-button:focus {
  border-color: var(--bs-border-color);
  box-shadow: none;
  outline: 0;
}

.portal-search-button {
  background: #ffffff;
  border-color: var(--bs-border-color);
  border-left: 0;
  color: #6e7781;
}

.portal-search-button:hover,
.portal-search-button:focus {
  background: #ffffff;
  border-color: var(--bs-border-color);
  border-left: 0;
  color: #424a53;
}

.portal-search-button:focus {
  box-shadow: none;
}

.ui-widget.ui-widget-content {
  border-radius: 4px;
  top: 51px !important;
  z-index: 2000;
}

.ui-autocomplete.ui-widget.ui-widget-content {
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.language-switcher {
  align-items: center;
  display: flex;
  margin-bottom: 0;
  margin-top: 0;
}

.language-switcher .language-current {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--bs-navbar-color, rgba(255, 255, 255, 0.75));
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  gap: 0.5rem;
  line-height: 1.5;
  min-height: 2.375rem;
  padding: 0;
}

.language-switcher .language-current:hover,
.language-switcher .language-current:focus {
  background: transparent;
  box-shadow: none;
  color: var(--bs-navbar-hover-color, #ffffff);
}

.language-switcher .language-current:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.language-switcher .lang-flag {
  border-radius: 2px;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  display: block;
  height: 1.45rem;
  width: 1.95rem;
}

.landing-header-container {
  margin-top: 3.5rem !important;
  max-width: none;
  padding: 0 !important;
  width: 100%;
}

.landing-icon-sprite {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.landing-svg-icon {
  display: inline-block;
  fill: none;
  flex: 0 0 auto;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.15rem;
}

.landing-hero {
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(245, 251, 255, 0.99) 0%,
      rgba(245, 251, 255, 0.96) 39%,
      rgba(245, 251, 255, 0.7) 56%,
      rgba(245, 251, 255, 0.45) 66%,
      rgba(245, 251, 255, 0.78) 84%,
      rgba(245, 251, 255, 0.98) 100%
    ),
    url("brand/landing-hero-petanque.ff2e8bdbd6df.png");
  background-position:
    center,
    67% 58%;
  background-repeat: no-repeat;
  background-size:
    auto,
    max(76vw, 64rem) auto;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.43fr);
  margin: 0 0 1rem;
  min-height: 16.25rem;
  overflow: hidden;
  padding: 1.55rem max(2rem, calc((100vw - 1320px) / 2 + 0.75rem));
}

.landing-hero-copy {
  align-content: center;
  display: grid;
  max-width: 42rem;
  position: relative;
  z-index: 1;
}

.landing-title {
  align-items: center;
  color: var(--color-text);
  display: flex;
  font-size: 2.12rem;
  font-weight: 800;
  gap: 1rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.landing-title-logo {
  display: block;
  flex: 0 0 auto;
  height: 5rem;
  width: 5rem;
}

.landing-title a,
.landing-title a:hover,
.landing-title a:focus {
  color: var(--color-text);
}

.landing-intro {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 36rem;
}

.landing-actions {
  align-content: center;
  display: grid;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.landing-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 234, 242, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 36, 55, 0.08);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 4rem;
  padding: 0.75rem 0.9rem;
}

.landing-action-primary {
  background: #ffffff;
}

.landing-icon {
  align-items: center;
  background: #eaf6ff;
  border-radius: 999px;
  color: var(--link-action);
  display: inline-flex;
  flex: 0 0 2.55rem;
  height: 2.55rem;
  justify-content: center;
  line-height: 1;
  width: 2.55rem;
}

.landing-icon .landing-svg-icon {
  height: 1.45rem;
  width: 1.45rem;
}

.landing-icon-gold {
  background: #fff5d9;
  color: #c78100;
}

.landing-line {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.38;
  margin: 0;
}

.landing-action-chevron {
  color: var(--color-text);
  fill: none;
  height: 1.1rem;
  opacity: 0.7;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.1rem;
}

.landing-action-cta a {
  color: var(--link-action);
}

.landing-action-cta a:hover,
.landing-action-cta a:focus {
  color: var(--link-action-hover);
}

.homepage-content {
  color: var(--color-text);
  display: grid;
  gap: clamp(2.75rem, 4vw, 4.5rem);
  min-width: 0;
}

.homepage-content.py-4 {
  padding-top: 0.75rem !important;
}

.landing-block {
  display: grid;
  gap: clamp(1.35rem, 2vw, 1.9rem);
  min-width: 0;
}

.landing-block-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.landing-heading-copy {
  align-items: flex-start;
  display: flex;
  flex: 1 1 auto;
  gap: 0.85rem;
  max-width: 100%;
  min-width: 0;
}

.landing-heading-copy > div {
  min-width: 0;
}

.landing-heading-icon {
  align-items: center;
  color: var(--portal-icon-muted);
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  margin-top: 0.1rem;
}

.landing-heading-icon .landing-svg-icon {
  height: 1.55rem;
  width: 1.55rem;
}

.landing-block-header h2,
.landing-subsection-header h3 {
  color: var(--color-text);
  letter-spacing: 0;
  margin: 0;
}

.landing-block-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.landing-block-header p,
.landing-subsection-header p {
  color: var(--color-muted);
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.landing-block-header p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 0.35rem;
}

.landing-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.landing-action-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  color: var(--color-text);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.48rem;
  justify-content: center;
  line-height: 1;
  min-height: 2.35rem;
  padding: 0.5rem 1.05rem;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}

.landing-action-button .landing-svg-icon {
  height: 1rem;
  width: 1rem;
}

.landing-action-button:hover,
.landing-action-button:focus {
  background: var(--color-soft-surface);
  border-color: #b9d5e3;
  color: var(--link-action-hover);
}

.landing-action-button-primary {
  background: var(--link-action);
  border-color: var(--link-action);
  box-shadow: none;
  color: #ffffff;
}

.landing-action-button-primary:hover,
.landing-action-button-primary:focus {
  background: var(--link-action-hover);
  border-color: var(--link-action-hover);
  color: #ffffff;
}

.landing-subsection {
  display: grid;
  gap: 0.95rem;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.landing-subsection + .landing-subsection {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

.landing-subsection-header {
  display: grid;
  gap: 0.25rem;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.landing-subsection-title-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  flex-wrap: wrap;
}

.landing-subsection-header h3 {
  align-items: center;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 800;
  gap: 0.55rem;
  line-height: 1.2;
}

.landing-subsection-header h3 .landing-svg-icon {
  color: var(--portal-icon-muted);
  height: 1.45rem;
  width: 1.45rem;
}

.landing-subsection-header p {
  font-size: 0.9rem;
  line-height: 1.35;
}

.homepage-view-all {
  align-items: center;
  color: var(--link-action);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.45rem;
  line-height: 1.1;
  padding: 0.2rem 0;
  text-decoration: none;
  white-space: nowrap;
}

.homepage-view-all:hover,
.homepage-view-all:focus {
  color: var(--link-action-hover);
  text-decoration: none;
}

.homepage-view-all .landing-svg-icon {
  height: 1rem;
  width: 1rem;
}

.landing-carousel {
  --landing-carousel-gutter: clamp(4.25rem, 5vw, 5rem);
  max-width: 100%;
  min-width: 0;
  padding: 0 var(--landing-carousel-gutter) 1.15rem;
  position: relative;
  width: 100%;
}

.landing-carousel-track {
  display: flex;
  gap: 0.85rem;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.1rem 0.05rem 0.35rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 10px;
  padding-bottom: 4px;
}

.landing-carousel-track::-webkit-scrollbar {
  display: none;
}

.landing-carousel-item {
  flex: 0 0 calc((100% - 2.55rem) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.landing-carousel-arrow {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(15, 36, 55, 0.12);
  color: var(--color-text);
  display: inline-flex;
  height: 2.4rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: calc(50% - 0.75rem);
  transform: translateY(-50%);
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
  width: 2.4rem;
  z-index: 2;
}

.landing-carousel-arrow:hover,
.landing-carousel-arrow:focus {
  background: var(--color-soft-surface);
  box-shadow: 0 5px 12px rgba(15, 36, 55, 0.14);
  color: var(--link-action-hover);
  transform: translateY(-50%) scale(1.03);
}

.landing-carousel-arrow:disabled {
  cursor: default;
  opacity: 0.5;
  transform: translateY(-50%);
}

.landing-carousel-arrow-prev {
  left: 0;
}

.landing-carousel-arrow-next {
  right: 0;
}

.landing-carousel-dots {
  align-items: center;
  bottom: 0.05rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.landing-carousel-dot {
  appearance: none;
  background: #c9d2dc;
  border: 0;
  border-radius: 999px;
  height: 0.55rem;
  padding: 0;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
  width: 0.55rem;
}

.landing-carousel-dot.is-active {
  background: #0c6f9f;
  transform: scale(1.12);
}

.landing-carousel.is-single-page {
  padding-left: 0;
  padding-right: 0;
}

.landing-carousel.is-single-page .landing-carousel-arrow,
.landing-carousel.is-single-page .landing-carousel-dots {
  display: none;
}

.tournament-card {
  --tournament-card-accent: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 36, 55, 0.06);
  height: 100%;
  overflow: hidden;
}

.tournament-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 11.25rem;
  padding: 0.85rem;
}

.tournament-card-main {
  display: grid;
  gap: 0.5rem;
}

.tournament-card-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.tournament-card-title a {
  color: var(--tournament-card-accent);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tournament-card-title a:hover,
.tournament-card-title a:focus {
  color: var(--link-action-hover);
}

.tournament-card-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tournament-card-tag {
  align-items: center;
  background: var(--portal-surface-muted);
  border: 1px solid var(--portal-tag-border);
  border-radius: 999px;
  color: var(--portal-tag-text);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  min-height: 1.45rem;
  padding: 0.32rem 0.62rem;
}

.tournament-card [data-bs-toggle="tooltip"] {
  cursor: pointer;
}

.tournament-card-tag-format {
  background: #e7f6fb;
  border-color: #d4edf5;
  color: var(--link-action);
}

.tournament-card-tag-men {
  background: var(--tournament-tag-men-bg);
  border-color: var(--tournament-tag-men-border);
  color: var(--tournament-tag-men-text);
}

.tournament-card-tag-women {
  background: var(--tournament-tag-women-bg);
  border-color: var(--tournament-tag-women-border);
  color: var(--tournament-tag-women-text);
}

.tournament-card-tag-youth {
  background: var(--tournament-tag-youth-bg);
  border-color: var(--tournament-tag-youth-border);
  color: var(--tournament-tag-youth-text);
}

.tournament-card-facts {
  color: var(--color-text);
  display: grid;
  gap: 0.28rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.tournament-card-fact {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  min-width: 0;
}

.tournament-card-organizer {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
}

.tournament-card-separator {
  color: var(--color-muted);
  margin-right: 0.2rem;
}

.tournament-card-country {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
}

.tournament-card-fact .landing-svg-icon,
.tournament-card-fact-icon .landing-svg-icon {
  color: var(--portal-icon-muted);
  height: 0.95rem;
  width: 0.95rem;
}

.tournament-card-fact[data-bs-toggle="tooltip"],
.tournament-card-fact-icon {
  align-items: center;
}

.tournament-card-fact[data-bs-toggle="tooltip"] {
  justify-self: start;
  max-width: 100%;
  width: fit-content;
}

.tournament-card-fact-icon {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  line-height: 1;
}

.tournament-card-fact a {
  color: var(--color-text);
}

.tournament-card-fact a:hover,
.tournament-card-fact a:focus {
  color: var(--link-action-hover);
}

.tournament-card-bottom {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
}

.tournament-card-power-row {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  min-height: 1.55rem;
  min-width: 0;
}

.tournament-card-footer {
  border-top: 1px solid var(--portal-border-subtle);
  display: grid;
  min-height: 3rem;
  padding-top: 0.55rem;
}

.tournament-card-stats {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-height: 2.25rem;
  min-width: 0;
}

.tournament-card-stat {
  align-items: center;
  color: var(--color-text);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.3rem;
  line-height: 1;
  min-height: 1.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-card-stat .landing-svg-icon {
  color: var(--color-text);
  height: 0.95rem;
  width: 0.95rem;
}

.tournament-power-badge {
  align-items: center;
  background: var(--tournament-power-bg, var(--portal-stat-bg));
  border: 1px solid var(--tournament-power-border, transparent);
  border-radius: 999px;
  box-shadow: var(--tournament-power-shadow, none);
  color: var(--tournament-power-text, var(--portal-stat-text));
  display: inline-flex !important;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.3rem;
  line-height: 1;
  min-height: 1.5rem;
  padding: 0.3rem 0.52rem;
}

.tournament-card-stat.is-muted {
  color: var(--portal-text-muted);
  font-weight: 600;
}

.tournament-power-none {
  --tournament-power-bg: var(--tournament-power-none-bg);
  --tournament-power-border: var(--tournament-power-none-border);
  --tournament-power-text: var(--tournament-power-none-text);
}

.tournament-power-1 {
  --tournament-power-bg: var(--tournament-power-1-bg);
  --tournament-power-border: var(--tournament-power-1-border);
  --tournament-power-text: var(--tournament-power-1-text);
}

.tournament-power-2 {
  --tournament-power-bg: var(--tournament-power-2-bg);
  --tournament-power-border: var(--tournament-power-2-border);
  --tournament-power-text: var(--tournament-power-2-text);
}

.tournament-power-3 {
  --tournament-power-bg: var(--tournament-power-3-bg);
  --tournament-power-border: var(--tournament-power-3-border);
  --tournament-power-text: var(--tournament-power-3-text);
}

.tournament-power-4 {
  --tournament-power-bg: var(--tournament-power-4-bg);
  --tournament-power-border: var(--tournament-power-4-border);
  --tournament-power-text: var(--tournament-power-4-text);
}

.tournament-power-5 {
  --tournament-power-bg: var(--tournament-power-5-bg);
  --tournament-power-border: var(--tournament-power-5-border);
  --tournament-power-text: var(--tournament-power-5-text);
}

.tournament-power-6 {
  --tournament-power-bg: var(--tournament-power-6-bg);
  --tournament-power-border: var(--tournament-power-6-border);
  --tournament-power-text: var(--tournament-power-6-text);
}

.tournament-power-7 {
  --tournament-power-bg: var(--tournament-power-7-bg);
  --tournament-power-border: var(--tournament-power-7-border);
  --tournament-power-text: var(--tournament-power-7-text);
}

.tournament-power-8 {
  --tournament-power-bg: var(--tournament-power-8-bg);
  --tournament-power-border: var(--tournament-power-8-border);
  --tournament-power-text: var(--tournament-power-8-text);
}

.tournament-power-9 {
  --tournament-power-bg: var(--tournament-power-9-bg);
  --tournament-power-border: var(--tournament-power-9-border);
  --tournament-power-shadow: var(--tournament-power-top-shadow);
  --tournament-power-text: var(--tournament-power-9-text);
}

.tournament-power-10 {
  --tournament-power-bg: var(--tournament-power-10-bg);
  --tournament-power-border: var(--tournament-power-10-border);
  --tournament-power-shadow: var(--tournament-power-top-shadow);
  --tournament-power-text: var(--tournament-power-10-text);
}

.tournament-card-action {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.tournament-card-action .tournament-register-button {
  align-items: center;
  background: #f0faf5 !important;
  border: 1px solid rgba(15, 143, 77, 0.34);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  color: #087443 !important;
  display: inline-flex !important;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 0.3rem;
  justify-content: center;
  line-height: 1;
  max-width: 100%;
  min-height: 2.05rem;
  min-width: 7.55rem;
  overflow: hidden;
  padding: 0.4rem 0.68rem;
  text-overflow: ellipsis;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
  white-space: nowrap;
  width: auto;
}

.tournament-card-action .tournament-register-button:hover,
.tournament-card-action .tournament-register-button:focus {
  background: var(--tournament-register-bg) !important;
  border-color: var(--tournament-register-bg);
  box-shadow: 0 7px 16px rgba(15, 143, 77, 0.18);
  color: #ffffff !important;
}

.tournament-card-action .tournament-register-button:active {
  background: var(--tournament-register-active-bg) !important;
  border-color: var(--tournament-register-active-bg);
  box-shadow: none;
}

.tournament-card-action .tournament-register-button .bi-plus,
.tournament-card-action .tournament-register-button .bi-plus-lg {
  font-size: 1.05rem;
  line-height: 1;
  margin-left: 0;
}

.tournament-card-empty {
  background: var(--color-soft-surface);
  box-shadow: none;
}

.tournament-card-empty-text,
.athlete-card-empty-text {
  color: var(--color-muted);
  margin: 0;
}

.athletes-block {
  padding-bottom: 1rem;
}

.athlete-tabs {
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.athlete-tabs::-webkit-scrollbar {
  display: none;
}

.athlete-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--color-text);
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  min-height: 2.45rem;
  padding: 0.65rem 1.1rem;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.athlete-tab:hover,
.athlete-tab:focus {
  background: var(--color-soft-surface);
  color: var(--link-action-hover);
}

.athlete-tab.active {
  border-bottom-color: #1688d3;
  color: #005baf;
}

.athlete-tab-content {
  padding-top: 0.9rem;
}

.athlete-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.athlete-card {
  --athlete-card-border: rgba(15, 45, 75, 0.08);
  --athlete-card-navy: #08264a;
  --athlete-card-muted: #5f7285;
  --athlete-card-blue: #2563eb;
  --athlete-card-cyan: #13aee8;
  --athlete-card-green: #119b59;
  --athlete-card-gold: #d9a000;
  background: #ffffff;
  border: 1px solid var(--athlete-card-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 45, 75, 0.1);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.athlete-card:hover,
.athlete-card:focus,
.athlete-card:focus-within {
  box-shadow: 0 14px 34px rgba(15, 45, 75, 0.14);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.athlete-card-body {
  display: block;
  min-height: 13.7rem;
  padding: 0;
  position: relative;
}

.athlete-card-hero {
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(191, 226, 255, 0.75),
      transparent 42%
    ),
    linear-gradient(135deg, #eaf7ff 0%, #f5fbff 52%, #eefbf3 100%);
  min-height: 8.05rem;
  padding: 1rem 4.7rem 1.55rem 1rem;
  position: relative;
}

.athlete-card-profile {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

.athlete-card-avatar {
  align-items: center;
  background: linear-gradient(145deg, #eef4f8, #dce7ef);
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow:
    0 12px 24px rgba(15, 45, 75, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  color: #9aaaba;
  display: inline-flex;
  flex: 0 0 auto;
  height: 5.25rem;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 5.25rem;
}

.athlete-card-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.athlete-card-avatar-placeholder {
  align-items: center;
  display: inline-flex;
  font-size: 2.75rem;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.athlete-card-rank {
  align-items: center;
  background: rgba(237, 249, 241, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow:
    0 8px 20px rgba(15, 143, 77, 0.12),
    inset 0 0 0 1px rgba(17, 155, 89, 0.08);
  color: var(--athlete-card-green);
  display: flex !important;
  flex-direction: column;
  font-weight: 800;
  height: 3.65rem;
  justify-content: center;
  line-height: 1.05;
  position: absolute !important;
  right: 0.9rem;
  text-align: center;
  top: 0.9rem;
  width: 3.65rem;
}

.athlete-card-rank-value {
  display: block;
  font-size: 1.46rem;
}

.athlete-card-rank-label {
  color: var(--athlete-card-navy);
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.athlete-card-copy {
  min-width: 0;
  padding-top: 0.08rem;
}

.athlete-card-name-row {
  align-items: flex-start;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.athlete-card-name {
  flex: 1 1 auto;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 0.42rem;
  min-width: 0;
}

.athlete-card-name-link {
  color: var(--athlete-card-navy);
  display: block;
  text-decoration: none;
}

.athlete-card-surname-line {
  align-items: center;
  display: flex;
  gap: 0.28rem;
  max-width: 100%;
  min-width: 0;
}

.athlete-card-given-line {
  align-items: center;
  display: flex;
  gap: 0.28rem;
  max-width: 100%;
  min-width: 0;
}

.athlete-card-name-text {
  display: block;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.athlete-card:hover .athlete-card-name-link,
.athlete-card:focus .athlete-card-name-link {
  color: var(--link-action-hover);
}

.athlete-card-title-badge {
  color: var(--athlete-card-gold);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
  margin-top: 0.08rem;
}

.athlete-card-club {
  align-items: center;
  color: #2f5d7c;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.18rem;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.athlete-card-club .landing-svg-icon {
  color: #475467;
  height: 1rem;
  width: 1rem;
}

.athlete-card-club-name {
  color: var(--athlete-card-navy);
  font-weight: 700;
}

.athlete-card [data-bs-toggle="tooltip"] {
  cursor: pointer;
}

.athlete-card-country {
  align-items: center;
  display: inline-flex;
  gap: 0.18rem;
  min-width: 0;
}

.athlete-card-country .flag-icon {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 45, 75, 0.08);
  margin-left: 0.1rem;
}

.athlete-card-stats {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 45, 75, 0.06);
  border-bottom: 0;
  border-radius: 18px 18px 10px 10px;
  box-shadow: 0 -6px 18px rgba(15, 45, 75, 0.04);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -1.05rem 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.athlete-stat {
  align-items: center;
  display: grid !important;
  gap: 0.48rem;
  grid-template-columns: 1.78rem minmax(0, 1fr);
  min-width: 0;
  position: relative;
  padding: 0.78rem 0.8rem;
}

.athlete-stat + .athlete-stat {
  border-left: 1px solid rgba(15, 45, 75, 0.08);
}

.athlete-stat-icon {
  align-items: center;
  background: #e9f5ff;
  border-radius: 999px;
  color: var(--athlete-card-blue);
  display: inline-flex;
  font-size: 0.92rem;
  height: 1.78rem;
  justify-content: center;
  width: 1.78rem;
}

.athlete-stat-power .athlete-stat-icon {
  background: #e6faff;
  color: var(--athlete-card-cyan);
}

.athlete-stat-copy {
  display: grid;
  min-width: 0;
}

.athlete-stat-value {
  color: var(--athlete-card-navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-stat-label {
  color: var(--athlete-card-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.15;
  margin-top: 0.2rem;
}

.athlete-card-meta {
  background: #ffffff;
  border-top: 1px solid rgba(15, 45, 75, 0.08);
  display: grid;
  column-gap: 0.75rem;
  grid-template-columns: 0.95fr 1.25fr 0.9fr;
  margin-top: 0.72rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.athlete-chip {
  align-items: center;
  border-radius: 12px;
  display: grid !important;
  gap: 0.55rem;
  grid-template-columns: auto minmax(0, max-content);
  justify-content: center;
  min-height: 3.05rem;
  min-width: 0;
  padding: 0.54rem 0.5rem;
  position: relative;
}

.athlete-chip + .athlete-chip::before {
  background: rgba(15, 45, 75, 0.12);
  bottom: 0.44rem;
  content: "";
  left: -0.375rem;
  position: absolute;
  top: 0.44rem;
  width: 1px;
}

.athlete-chip-icon {
  color: var(--athlete-card-gold);
  font-size: 0.98rem;
  line-height: 1;
  opacity: 0.9;
}

.athlete-chip-license .athlete-chip-icon {
  color: #6b7280;
}

.athlete-chip-license {
  background: #f5f7f9;
}

.athlete-chip-gender,
.athlete-chip-age {
  background: #fffaf0;
}

.athlete-chip-copy {
  display: grid;
  min-width: 0;
}

.athlete-chip-value {
  color: var(--athlete-card-navy);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.08;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-chip-value .badge {
  background: transparent !important;
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
}

.athlete-chip-label {
  color: var(--athlete-card-muted);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.12;
  margin-top: 0.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-card-empty {
  box-shadow: none;
  cursor: default;
}

@media (max-width: 1399.98px) {
  .landing-carousel-item {
    flex-basis: calc((100% - 1.7rem) / 3);
  }
}

@media (max-width: 991.98px) {
  .landing-hero {
    background-position: center bottom;
    gap: 1.4rem;
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .landing-actions {
    max-width: 32rem;
  }

  .landing-block-header,
  .landing-subsection-header {
    align-items: flex-start;
  }

  .landing-heading-copy,
  .landing-subsection-title-row {
    width: 100%;
  }

  .landing-header-actions {
    flex-wrap: wrap;
  }

  .landing-carousel-item {
    flex-basis: calc((100% - 1rem) / 2);
  }

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

@media (max-width: 767.98px) {
  .cookie-consent {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .cookie-consent-button {
    width: 100%;
  }

  .landing-header-container {
    margin-top: 3.35rem !important;
  }

  .landing-hero {
    background-image:
      linear-gradient(
        180deg,
        rgba(245, 251, 255, 0.98) 0%,
        rgba(245, 251, 255, 0.94) 52%,
        rgba(245, 251, 255, 0.74) 100%
      ),
      url("brand/landing-hero-petanque.ff2e8bdbd6df.png");
    background-position:
      center,
      center bottom;
    background-size:
      auto,
      44rem auto;
    min-height: 0;
  }

  .landing-title {
    align-items: flex-start;
    flex-direction: column;
    font-size: 2rem;
  }

  .landing-title-logo {
    height: 4.4rem;
    width: 4.4rem;
  }

  .landing-action {
    min-height: 0;
  }

  .landing-block-header {
    display: grid;
    gap: 0.8rem;
  }

  .landing-header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .landing-header-actions .landing-action-button {
    width: 100%;
  }

  .landing-carousel {
    --landing-carousel-gutter: 3.25rem;
    padding-bottom: 1.2rem;
  }

  .landing-carousel-item {
    flex-basis: 100%;
  }

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

@media (max-width: 575.98px) {
  .cookie-consent {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-left: 0;
    border-right: 0;
    bottom: 0;
    gap: 0.875rem;
    grid-template-columns: 1fr;
    padding: 1rem;
    width: 100%;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    width: 100%;
  }

  .cookie-consent-button {
    border-radius: 12px;
    font-size: 0.875rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    white-space: normal;
  }

  .landing-hero {
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.15rem 1rem;
  }

  .landing-title {
    gap: 0.625rem;
    margin-bottom: 0.875rem;
  }

  .landing-intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .landing-action {
    border-radius: 12px;
    padding: 0.875rem;
  }

  .homepage-content {
    gap: 2.2rem;
  }

  .landing-block-header h2 {
    font-size: 1.35rem;
  }

  .landing-action-button {
    min-height: 2.35rem;
    padding: 0.5rem 0.85rem;
  }

  .homepage-view-all {
    max-width: 100%;
    white-space: normal;
  }

  .tournament-card-body {
    min-height: 0;
  }

  .landing-carousel-arrow {
    height: 2.15rem;
    width: 2.15rem;
  }

  .athlete-tabs {
    gap: 0.1rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .athlete-tab {
    flex: 0 1 auto;
    font-size: 0.76rem;
    min-height: 2.2rem;
    padding: 0.55rem 0.3rem;
    white-space: nowrap;
  }

  .athlete-card-hero {
    min-height: 7.75rem;
    padding: 0.9rem 4.35rem 1.45rem 0.9rem;
  }

  .athlete-card-avatar {
    height: 4.75rem;
    width: 4.75rem;
  }

  .athlete-card-name {
    font-size: 1.02rem;
  }

  .athlete-card-rank {
    height: 3.35rem;
    right: 0.75rem;
    top: 0.75rem;
    width: 3.35rem;
  }

  .athlete-card-rank-value {
    font-size: 1.3rem;
  }

  .athlete-card-rank-label {
    font-size: 0.6rem;
  }

  .athlete-card-stats {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .athlete-stat {
    gap: 0.45rem;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    padding: 0.68rem 0.6rem;
  }

  .athlete-stat-icon {
    height: 1.7rem;
    width: 1.7rem;
  }

  .athlete-chip {
    gap: 0.35rem;
    grid-template-columns: auto minmax(0, max-content);
    padding: 0.58rem 0.36rem;
  }

  .athlete-chip-icon {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }

  .athlete-tabs {
    gap: 0.05rem;
  }

  .athlete-tab {
    font-size: 0.7rem;
    padding-left: 0.18rem;
    padding-right: 0.18rem;
  }
}

:root,
[data-bs-theme="light"] {
  --datatable-header-color: #212529;
}

[data-bs-theme="dark"] {
  --datatable-header-color: #ffffff;
}

table.dataTable thead th {
  background: none !important;
  color: var(--datatable-header-color) !important;
  border: none !important;
}

.logo-container.big {
  width: 100px;
  height: 100px;
}

a {
  color: var(--link-action);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-action-hover);
}

.table > :not(caption) > * > * {
  padding: 1rem !important;
}

div.table-responsive > div.dataTables_wrapper > div.row {
  margin: 0.5rem 0 !important;
}

[data-bs-toggle="tooltip"]:not(.athlete-card-rank):not(
    .tournament-register-button
  ):not(.tournament-power-badge):not(.tournament-card-stat):not(
    .tournament-card-tag
  ):not(.tournament-card-fact):not(.tournament-card-fact-icon):not(
    .athlete-stat
  ):not(.athlete-chip) {
  display: inline-block !important;
  position: relative !important;
}

.athlete-card-rank[data-bs-toggle="tooltip"] {
  display: inline-flex !important;
  position: absolute !important;
}

.tournament-register-button[data-bs-toggle="tooltip"],
.tournament-power-badge[data-bs-toggle="tooltip"],
.tournament-card-stat[data-bs-toggle="tooltip"],
.tournament-card-tag[data-bs-toggle="tooltip"] {
  display: inline-flex !important;
  position: relative !important;
}

.tournament-card-fact[data-bs-toggle="tooltip"] {
  display: flex !important;
  position: relative !important;
}

.tournament-card-fact-icon[data-bs-toggle="tooltip"] {
  display: inline-flex !important;
  position: static !important;
}

.btn-action-icon {
  min-height: 30px;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
}

.dataTable td,
.dataTable th {
  vertical-align: middle !important;
}

.tournament-place-field input[type="text"] {
  max-width: 30px !important;
}

.errorlist {
  margin: 0 !important;
}

.asteriskField {
  color: var(--bs-danger);
  margin-left: 0.15rem;
}

#div_id_captcha .captcha {
  display: block;
  height: auto;
  margin-bottom: 0.5rem;
  min-width: 180px;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
  border-color: var(--bs-danger);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);
}

/*
Tournaments classes
*/
.tournament_goes_to_rating td {
  background: rgba(var(--bs-success-rgb), 0.07) !important;
  border: rgba(var(--bs-success-rgb), 0.07) !important;
}

.tournament_away td {
  background: rgba(var(--bs-primary-rgb), 0.07) !important;
  border: rgba(var(--bs-primary-rgb), 0.07) !important;
}

.tournament_b td {
  background: rgba(var(--bs-secondary-rgb), 0.07) !important;
  border: rgba(var(--bs-secondary-rgb), 0.07) !important;
}

.tournament-name {
  overflow: hidden;
}

.tournament-name a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* table-layout: fixed is required for text-overflow to work inside DataTables */
#tournaments {
  table-layout: fixed !important;
}

.tournaments-page {
  color: #172033;
  display: grid;
  gap: 1rem;
  margin-left: 50%;
  min-width: 0;
  padding-bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(1840px, calc(100vw - 3rem));
}

.tournaments-titlebar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.tournaments-titlebar h1 {
  color: #172033;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.create-tournament-button {
  align-items: center;
  background: linear-gradient(180deg, #1264d8 0%, #0b4cad 100%);
  border: 1px solid #0f4fa8;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(13, 91, 190, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 0.45rem;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.create-tournament-button:hover,
.create-tournament-button:focus {
  background: linear-gradient(180deg, #0f59c4 0%, #09449b 100%);
  color: #ffffff;
}

.create-tournament-button:focus-visible,
.tournament-action:focus-visible,
.tournament-period-tab:focus-visible,
.tournament-reset-button:focus-visible {
  outline: 3px solid rgba(18, 100, 216, 0.25);
  outline-offset: 2px;
}

.tournaments-control-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tournament-period-tabs {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.04);
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  width: min(100%, 560px);
}

.tournament-period-tab {
  align-items: center;
  border-right: 1px solid #e5ecf4;
  color: #23304a;
  display: flex;
  font-weight: 750;
  gap: 0.55rem;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
  white-space: nowrap;
}

.tournament-period-tab:last-child {
  border-right: 0;
}

.tournament-period-tab:hover,
.tournament-period-tab:focus {
  background: #f7fbff;
  color: #0b4cad;
}

.tournament-period-tab.is-active {
  background: #eef6ff;
  color: #0b55c6;
}

.tournament-period-tab.is-active .bi {
  color: #0b64d8;
}

.tournament-period-count {
  background: #e3eeff;
  border-radius: 999px;
  color: #0b55c6;
  font-size: 0.75rem;
  line-height: 1;
  min-width: 1.55rem;
  padding: 0.28rem 0.45rem;
  text-align: center;
}

.tournament-toggle-group {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: flex-end;
  justify-self: end;
  white-space: nowrap;
}

.tournament-toggle-form {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}

.tournament-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.04);
  cursor: pointer;
  display: inline-flex;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0 0.8rem 0 0.95rem;
  user-select: none;
}

.tournament-toggle input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.tournament-toggle-label {
  align-items: center;
  color: #23304a;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  white-space: nowrap;
}

.tournament-toggle-label .bi {
  color: #1f5f8b;
}

.tournament-toggle-switch {
  background: #cfd6e0;
  border-radius: 999px;
  display: inline-flex;
  height: 1.25rem;
  padding: 0.15rem;
  position: relative;
  transition: background-color 0.16s ease;
  width: 2.3rem;
}

.tournament-toggle-switch::before {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(23, 32, 51, 0.24);
  content: "";
  height: 0.95rem;
  transform: translateX(0);
  transition: transform 0.16s ease;
  width: 0.95rem;
}

.tournament-toggle input:checked ~ .tournament-toggle-switch {
  background: #1264d8;
}

.tournament-toggle input:checked ~ .tournament-toggle-switch::before {
  transform: translateX(1.05rem);
}

.tournament-filter-form {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.05);
  display: grid;
  gap: 0.5rem;
  grid-template-columns:
    minmax(13rem, 1.55fr)
    minmax(7.25rem, 0.7fr)
    minmax(10.25rem, 0.92fr)
    minmax(8.25rem, 0.82fr)
    minmax(7.25rem, 0.7fr)
    max-content;
  padding: 0.55rem;
}

.tournament-filter-field {
  align-items: center;
  background: #fbfdff;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  color: #506078;
  display: flex;
  gap: 0.45rem;
  min-height: 38px;
  min-width: 0;
  padding: 0 0.62rem;
}

.tournament-filter-field .bi {
  color: #506078;
  flex: 0 0 auto;
}

.tournament-filter-field input,
.tournament-filter-field select {
  appearance: none;
  background: transparent;
  border: 0;
  color: #23304a;
  font-size: 0.84rem;
  font-weight: 650;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.tournament-filter-field input::placeholder {
  color: #748096;
  font-weight: 600;
}

.tournament-filter-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #23304a 50%),
    linear-gradient(135deg, #23304a 50%, transparent 50%);
  background-position:
    calc(100% - 0.45rem) 52%,
    calc(100% - 0.1rem) 52%;
  background-repeat: no-repeat;
  background-size:
    0.35rem 0.35rem,
    0.35rem 0.35rem;
  padding-right: 0.92rem;
}

.tournament-reset-button {
  align-items: center;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 750;
  gap: 0.38rem;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.68rem;
  text-decoration: none;
  white-space: nowrap;
}

.tournament-reset-button {
  background: #ffffff;
  color: #0b55c6;
}

.tournament-reset-button:hover,
.tournament-reset-button:focus {
  background: #e4f0ff;
  border-color: #b8d2ff;
  color: #09449b;
}

.tournaments-results-surface {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}

.tournaments-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  table-layout: fixed;
  width: 100%;
}

.tournaments-table th {
  background: #fbfdff;
  border-bottom: 1px solid #dbe5ef;
  color: #23304a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.9rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.tournaments-table th:first-child,
.tournaments-table td:first-child {
  padding-left: 2.5rem;
}

.tournaments-table th:last-child,
.tournaments-table td:last-child {
  padding-right: 2.5rem;
}

.tournaments-table td {
  border-bottom: 1px solid #e5ecf4;
  color: #23304a;
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  vertical-align: middle;
}

.tournaments-table tbody tr:last-child td {
  border-bottom: 0;
}

.tournaments-table tbody tr.tournament-row-clickable {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tournaments-table tbody tr.tournament-row-clickable:hover {
  background-color: #f8f9fa;
}

.tournament-date-column {
  width: 13.5rem;
}

.tournament-title-column {
  width: 28%;
}

.tournament-format-column {
  width: 13%;
}

.tournament-place-column {
  width: 16%;
}

.tournament-strength-column {
  width: 9.25rem;
}

.tournament-status-column {
  width: 12.5rem;
}

.tournament-actions-column {
  width: 10.25rem;
}

.tournament-strength-column,
.tournament-strength-cell {
  padding-right: 1.6rem !important;
}

.tournament-sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.2rem;
  text-decoration: none;
}

.tournament-sort-link:hover,
.tournament-sort-link:focus {
  color: #0b55c6;
}

.tournament-sort-link .bi {
  color: #51627a;
  font-size: 1rem;
  line-height: 1;
}

.tournament-date-wrap,
.tournament-place-line {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  min-width: 0;
}

.tournament-date-wrap .bi,
.tournament-place-line .bi {
  color: #4a5b74;
  flex: 0 0 auto;
}

.tournament-country-flag {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.12);
  flex: 0 0 auto;
}

.tournament-date-wrap time {
  color: #172033;
  display: block;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.tournament-date-wrap span,
.tournament-status-note,
.tournaments-muted {
  color: #66748a;
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.tournament-title-link {
  color: #0d3b66;
  display: -webkit-box;
  font-weight: 800;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tournament-title-link:hover,
.tournament-title-link:focus {
  color: #1677c2;
  text-decoration: underline;
}

.tournament-title-link:visited {
  color: #0d3b66;
}

.tournament-team-count {
  align-items: center;
  color: #66748a;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.35rem;
  line-height: 1.2;
  margin-top: 0.42rem;
  white-space: nowrap;
}

.tournament-team-count .bi {
  color: #506078;
  font-size: 0.92rem;
}

.tournament-chip-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.tournament-chip {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.05;
  min-height: 1.38rem;
  padding: 0.28rem 0.54rem;
  white-space: nowrap;
}

.tournament-chip-format {
  background: #eef6ff;
  border-color: #d7e8ff;
  color: #0b58b7;
}

.tournament-chip-audience {
  background: #f5f0ff;
  border-color: #e5dbff;
  color: #5a35b4;
}

.tournament-chip-open {
  background: #effaf3;
  border-color: #b9e6c7;
  color: #147a45;
}

.tournament-chip-closed {
  background: #f6f8fb;
  border-color: #d5deea;
  color: #324156;
}

.tournament-place-cell {
  line-height: 1.35;
}

.tournament-place-line + .tournament-place-line {
  margin-top: 0.35rem;
}

.tournament-place-line a {
  color: #23304a;
  min-width: 0;
  text-decoration: none;
}

.tournament-place-line a:hover,
.tournament-place-line a:focus {
  color: #0b55c6;
  text-decoration: underline;
}

.tournament-organizer-line,
.tournament-organizer-line a,
.tournament-organizer-line span {
  color: #66748a;
  font-weight: 650;
}

.tournament-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  min-height: 1.45rem;
  max-width: 100%;
  padding: 0.35rem 0.58rem;
  white-space: normal;
}

.tournament-status-registration_open {
  background: #e8f7e9;
  color: #1a7f37;
}

.tournament-status-registration_closed {
  background: #fff0e6;
  color: #cf4b12;
}

.tournament-status-registration_unavailable,
.tournament-status-finished {
  background: #eef2f6;
  color: #38465c;
}

.tournament-status-ongoing {
  background: #e7f0ff;
  color: #0b55c6;
}

.tournament-status-cancelled {
  background: #ffe8e8;
  color: #c92a2a;
}

.tournament-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  row-gap: 0.38rem;
}

.tournament-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 9px;
  color: #23304a;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.35rem;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.15rem;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.tournament-action:hover,
.tournament-action:focus {
  background: #f7fbff;
  color: #0b55c6;
}

.tournament-action-primary {
  background: #ffffff;
  border-color: #9fd7b4;
  box-shadow: none;
  color: #16824d;
}

.tournament-action-primary:hover,
.tournament-action-primary:focus {
  background: #effaf4;
  border-color: #82c99f;
  color: #0f743f;
}

.tournament-action-results {
  background: #f3f7ff;
  border-color: #bdd2f4;
  color: #2457a6;
}

.tournament-action-results .bi {
  color: #2457a6;
}

.tournament-action-results:hover,
.tournament-action-results:focus {
  background: #e7f0ff;
  border-color: #9ebdea;
  color: #17458c;
}

.tournaments-pagination {
  align-items: center;
  border-top: 1px solid #e5ecf4;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(7rem, auto);
  padding: 0.85rem 2.5rem;
}

.tournaments-pagination p {
  color: #66748a;
  font-size: 0.86rem;
  font-weight: 650;
  margin: 0;
}

.tournaments-page-links {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.tournaments-page-link,
.tournaments-page-ellipsis,
.tournaments-page-size-value {
  align-items: center;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  color: #23304a;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  min-width: 2rem;
  padding: 0 0.55rem;
  text-decoration: none;
}

.tournaments-page-link:hover,
.tournaments-page-link:focus {
  background: #eaf4f8;
  border-color: #b8d3de;
  color: #1f5f8b;
}

.tournaments-page-link.is-active {
  background: #1f5f8b;
  border-color: #1a557d;
  color: #ffffff;
}

.tournaments-page-link.is-disabled {
  color: #b1bbc9;
  pointer-events: none;
}

.tournaments-page-ellipsis {
  border-color: transparent;
}

.tournaments-page-size {
  align-items: center;
  color: #66748a;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 650;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tournaments-empty-state {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  min-height: 18rem;
  padding: 3rem 1rem;
  text-align: center;
}

.tournaments-empty-state h2 {
  color: #172033;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.tournaments-empty-state p {
  color: #66748a;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

/*
Athletes ranking page
*/
.players-page {
  color: #172033;
  display: grid;
  gap: 1rem;
  margin-left: 50%;
  min-width: 0;
  padding-bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(1840px, calc(100vw - 3rem));
}

.players-titlebar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-width: 0;
}

.players-title-copy {
  min-width: 0;
}

.players-title-copy h1 {
  align-items: center;
  color: #172033;
  display: flex;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  gap: 0.62rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.players-title-icon {
  align-items: center;
  color: #8b96a7;
  display: inline-flex;
  font-size: 1.4rem;
  line-height: 1;
}

.players-title-copy p {
  align-items: center;
  color: #66748a;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.98rem;
  font-weight: 650;
  gap: 0.35rem;
  line-height: 1.4;
  margin: 0.35rem 0 0;
}

.players-page-info {
  color: #6e7d92;
  cursor: pointer;
  display: inline-flex !important;
  line-height: 1;
}

.players-search-mount {
  min-width: 0;
  width: 100%;
}

.players-search-mount #players_filter {
  width: 100%;
}

.players-search-mount #players_filter label {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.05);
  color: #66748a;
  display: flex;
  gap: 0.65rem;
  margin: 0;
  min-height: 3.15rem;
  padding: 0 0.95rem;
  width: 100%;
}

.players-search-icon {
  color: #506078;
  flex: 0 0 auto;
  font-size: 1.12rem;
}

.players-search-mount #players_filter input {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #23304a;
  font-size: 0.9rem;
  font-weight: 650;
  height: auto;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.players-search-mount #players_filter input:focus {
  box-shadow: none;
  outline: 0;
}

.players-search-mount #players_filter input::placeholder {
  color: #748096;
  font-weight: 600;
}

.players-control-panel {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.05);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(18rem, 1.15fr) minmax(0, 2.85fr);
  min-width: 0;
  padding: 0.72rem 0.85rem;
}

.players-footer-length-mount {
  justify-self: end;
}

.players-footer-length-mount #players_length label {
  align-items: center;
  color: #23304a;
  display: inline-flex;
  flex-wrap: nowrap;
  font-size: 0.9rem;
  font-weight: 650;
  gap: 0.72rem;
  margin: 0;
  white-space: nowrap;
}

.players-footer-length-mount #players_length select,
.players-filter-select {
  appearance: none;
  background-color: #fbfdff;
  background-image:
    linear-gradient(45deg, transparent 50%, #23304a 50%),
    linear-gradient(135deg, #23304a 50%, transparent 50%);
  background-position:
    calc(100% - 0.85rem) 52%,
    calc(100% - 0.5rem) 52%;
  background-repeat: no-repeat;
  background-size:
    0.35rem 0.35rem,
    0.35rem 0.35rem;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  box-shadow: none;
  color: #23304a;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 2.58rem;
  outline: 0;
  padding: 0 2rem 0 0.85rem;
}

.players-footer-length-mount #players_length select {
  flex: 0 0 auto;
  width: 5.4rem;
}

.players-footer-length-mount #players_length select:focus {
  border-color: #b8d3de;
  box-shadow: 0 0 0 3px rgba(31, 95, 139, 0.14);
}

.players-search-mount #players_filter label:focus-within,
.players-filter-field:focus-within {
  border-color: #dbe5ef;
  box-shadow: 0 0 0 2px rgba(31, 95, 139, 0.2);
}

.players-filter-select:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}

.players-filter-controls {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: stretch;
  min-width: 0;
}

.players-filter-field {
  align-items: center;
  background: #fbfdff;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  color: #506078;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  min-height: 2.58rem;
  min-width: 0;
  padding: 0 0.72rem;
}

.players-filter-field .bi {
  color: #506078;
  flex: 0 0 auto;
}

.players-filter-select {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 1 1 auto;
  min-height: 2.42rem;
  min-width: 0;
  padding-left: 0;
  width: 100%;
}

.players-results-surface {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.06);
  overflow: hidden;
}

.players-table-responsive {
  overflow-x: auto;
  width: 100%;
}

.players-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 !important;
  table-layout: fixed;
  width: 100% !important;
}

.players-table th {
  background: #fbfdff !important;
  border-bottom: 1px solid #dbe5ef !important;
  color: #23304a !important;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.9rem 1rem !important;
  position: relative;
  text-align: left;
  white-space: nowrap;
}

.players-table th.sorting,
.players-table th.sorting_asc,
.players-table th.sorting_desc {
  padding-right: 1.7rem !important;
}

.players-table th.sorting::before,
.players-table th.sorting_asc::before,
.players-table th.sorting_desc::before,
.players-table th.sorting::after,
.players-table th.sorting_asc::after,
.players-table th.sorting_desc::after {
  content: "";
  height: 0;
  opacity: 1;
  position: absolute;
  right: 0.78rem;
  width: 0;
}

.players-table th.sorting::before,
.players-table th.sorting_asc::before,
.players-table th.sorting_desc::before {
  border-bottom: 4px solid #bdc7d3;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  top: calc(50% - 5px);
}

.players-table th.sorting::after,
.players-table th.sorting_asc::after,
.players-table th.sorting_desc::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #bdc7d3;
  top: calc(50% + 2px);
}

.players-table th.sorting_asc::after,
.players-table th.sorting_desc::before {
  display: none;
}

table.dataTable.players-table thead th.sorting_asc::after,
table.dataTable.players-table thead td.sorting_asc::after,
table.dataTable.players-table thead th.sorting_desc::before,
table.dataTable.players-table thead td.sorting_desc::before {
  content: "" !important;
  display: none !important;
}

.players-table th.sorting_asc::before,
.players-table th.sorting_desc::after {
  top: calc(50% - 2px);
}

.players-table th.sorting_asc::before {
  border-bottom-color: #1f5f8b;
}

.players-table th.sorting_desc::after {
  border-top-color: #1f5f8b;
}

table.dataTable.players-table thead th.sorting::before,
table.dataTable.players-table thead th.sorting_asc::before,
table.dataTable.players-table thead th.sorting_desc::before,
table.dataTable.players-table thead th.sorting::after,
table.dataTable.players-table thead th.sorting_asc::after,
table.dataTable.players-table thead th.sorting_desc::after {
  content: "" !important;
}

.players-table th.sorting_disabled::before,
.players-table th.sorting_disabled::after {
  display: none;
}

.players-table th:first-child,
.players-table td:first-child {
  padding-left: 1.65rem !important;
}

.players-table th:last-child,
.players-table td:last-child {
  padding-right: 1.25rem !important;
}

.players-table td {
  border-bottom: 1px solid #e5ecf4;
  color: #23304a;
  font-size: 0.9rem;
  padding: 0.78rem 1rem !important;
  vertical-align: middle;
}

.players-table tbody tr:last-child td {
  border-bottom: 0;
}

.players-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.players-row:hover {
  background: #f8fbfe;
}

.players-row.inactive {
  opacity: 0.72;
}

.players-rank-column {
  width: 7%;
}

.players-athlete-column {
  min-width: 0;
  width: 27%;
}

.players-points-column,
.players-power-column {
  width: 11.5%;
}

.players-sex-column,
.players-age-column {
  width: 7.5%;
}

.players-license-column {
  width: 10.5%;
}

.players-club-column {
  min-width: 0;
  width: 13.5%;
}

.players-action-column {
  width: 4%;
}

.players-mobile-card-column,
.players-mobile-card-cell {
  display: none;
}

.players-action-column,
.players-action-cell {
  padding-left: 0.35rem !important;
  padding-right: 0.8rem !important;
  text-align: right;
}

.players-rank-badge,
.players-metric-badge,
.players-sex-badge,
.players-age-badge .badge,
.players-license-badge,
.players-no-club {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex !important;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 0.3rem;
  justify-content: center;
  line-height: 1;
  min-height: 1.75rem;
  padding: 0.36rem 0.42rem;
  white-space: nowrap;
}

.players-rank-badge {
  background: #159464;
  border-color: #0f6f4d;
  box-shadow: 0 0 0 1px rgba(241, 178, 74, 0.45);
  color: #ffffff;
  min-width: 2.35rem;
}

.players-rank-value {
  line-height: 1;
}

.players-rank-label-mobile {
  display: none;
}

.players-metric-badge {
  font-variant-numeric: tabular-nums;
}

.players-metric-copy {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
}

.players-metric-label {
  display: none;
}

.players-points-badge {
  background: #edf1ff;
  border-color: #cfd8ff;
  color: #3158d4;
}

.players-power-badge {
  background: #dff3ff;
  border-color: #adddf7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  color: #1670b7;
}

.players-sex-badge {
  background: #e8f1ff !important;
  border-color: #c8dcff !important;
  color: #1d5fc0 !important;
  min-width: 3.5rem;
}

.players-sex-badge-f {
  background: #fff0f8 !important;
  border-color: #f7c9df !important;
  color: #c23a7a !important;
}

.players-sex-copy {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
}

.players-sex-label {
  display: none;
}

.players-age-badge .badge {
  background: #fff3dc !important;
  border-color: #f3c982 !important;
  color: #c96f00 !important;
  min-width: 3.7rem;
}

.players-age-icon,
.players-age-label {
  display: none;
}

.players-license-badge {
  background: #edf1f5;
  border-color: #d9e0e8;
  color: #334155;
  font-variant-numeric: tabular-nums;
  min-width: 5rem;
}

.players-license-copy {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
}

.players-license-badge i {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.94rem;
  height: 1rem;
  justify-content: center;
  line-height: 1;
  transform: translateY(0.12rem);
  width: 1rem;
}

.players-license-number {
  display: inline-flex;
  line-height: 1;
}

.players-license-label {
  display: none;
}

.players-license-badge-missing,
.players-no-club {
  background: #fff0f0;
  border-color: #f7cdcd;
  color: #b42318;
}

.players-athlete-link {
  align-items: center;
  color: #0d3b66;
  display: inline-flex;
  gap: 0.85rem;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
}

.players-athlete-link:hover,
.players-athlete-link:focus {
  color: #1677c2;
  text-decoration: none;
}

.players-athlete-avatar {
  align-items: center;
  background: linear-gradient(145deg, #eef4f8, #dce7ef);
  border: 1px solid rgba(15, 45, 75, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  color: #9aaaba;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.72rem;
  justify-content: center;
  overflow: hidden;
  width: 2.72rem;
}

.players-athlete-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.players-athlete-avatar-placeholder {
  align-items: center;
  display: inline-flex;
  font-size: 1.62rem;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.players-athlete-copy {
  display: grid;
  min-width: 0;
}

.players-athlete-meta-mobile {
  display: none;
}

.players-athlete-name {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 0.35rem;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.players-athlete-title-badge {
  color: #d9a000;
  display: inline-flex !important;
  flex: 0 0 auto;
  line-height: 1;
}

.players-club-wrap {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.players-club-link {
  color: #0f6f88;
  font-weight: 750;
  line-height: 1.18;
  text-decoration: none;
  white-space: nowrap;
}

.players-club-link:hover,
.players-club-link:focus {
  color: #0a5367;
  text-decoration: underline;
}

.players-club-city {
  color: #66748a;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
}

.players-row-action {
  align-items: center;
  color: #23304a;
  display: inline-flex !important;
  height: 2.1rem;
  justify-content: center;
  text-decoration: none;
  transition: color 0.18s ease;
  width: 2.1rem;
}

.players-row-action:hover,
.players-row-action:focus {
  color: #1f5f8b;
}

.players-table-footer {
  align-items: center;
  border-top: 1px solid #e5ecf4;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(14rem, max-content);
  padding: 0.85rem 1.65rem;
}

.players-table-footer .dataTables_info {
  color: #66748a;
  font-size: 0.86rem;
  font-weight: 650;
  margin: 0;
  padding: 0 !important;
}

.players-table-footer .dataTables_paginate {
  padding: 0 !important;
}

.players-table-footer .pagination {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin: 0;
}

.players-table-footer .page-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 8px !important;
  color: #23304a;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  min-width: 2rem;
  padding: 0 0.55rem;
  text-decoration: none;
}

.players-table-footer .page-link:hover,
.players-table-footer .page-link:focus {
  background: #eaf4f8;
  border-color: #b8d3de;
  box-shadow: none;
  color: #1f5f8b;
}

.players-table-footer .page-item.active .page-link {
  background: #1f5f8b;
  border-color: #1a557d;
  color: #ffffff;
}

.players-table-footer .page-item.disabled .page-link {
  background: #ffffff;
  color: #b1bbc9;
  pointer-events: none;
}

@media (max-width: 1199.98px) {
  .players-control-panel {
    grid-template-columns: 1fr;
  }

  .players-filter-controls {
    justify-self: stretch;
    min-width: 0;
  }

  .tournament-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tournament-filter-search {
    grid-column: span 2;
  }

  .tournaments-results-surface {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .tournaments-table,
  .tournaments-table thead,
  .tournaments-table tbody,
  .tournaments-table tr,
  .tournaments-table td {
    display: block;
    width: 100%;
  }

  .tournaments-table thead {
    display: none;
  }

  .tournaments-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .tournaments-table tr {
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.07);
    display: grid;
    gap: 0.95rem 1rem;
    grid-template-columns: 6.25rem minmax(0, 1fr) auto;
    grid-template-areas:
      "date title strength"
      "date format strength"
      "place place status"
      "actions actions actions";
    overflow: hidden;
    padding: 1.2rem 1.25rem 1.25rem;
  }

  .tournaments-table td {
    border: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tournament-date-cell {
    color: #66748a;
    grid-area: date;
    padding-right: 0.25rem !important;
  }

  .tournament-title-cell {
    grid-area: title;
    min-width: 0;
    padding-left: 0.12rem !important;
  }

  .tournament-format-cell {
    grid-area: format;
  }

  .tournament-place-cell {
    grid-area: place;
  }

  .tournament-strength-cell {
    grid-area: strength;
    justify-self: end;
    padding-top: 0.15rem !important;
  }

  .tournament-status-cell {
    align-items: flex-end;
    display: flex !important;
    flex-direction: column;
    grid-area: status;
    justify-self: end;
    text-align: right;
  }

  .tournament-actions-cell {
    grid-area: actions;
    padding-top: 0.95rem !important;
  }

  .tournament-place-cell,
  .tournament-status-cell,
  .tournament-actions-cell {
    border-top: 1px solid #edf2f7 !important;
    padding-top: 0.95rem !important;
  }

  .tournament-place-cell {
    border-top: 0 !important;
    padding-top: 0.15rem !important;
  }

  .tournament-title-link {
    -webkit-line-clamp: 3;
    display: block;
    font-size: 1rem;
    line-height: 1.3;
  }

  .tournament-date-wrap {
    align-items: flex-start;
  }

  .tournament-date-wrap .bi {
    font-size: 1.05rem;
    margin-top: 0.12rem;
  }

  .tournament-date-wrap time {
    font-size: 0.95rem;
  }

  .tournament-date-wrap span {
    margin-top: 0.32rem;
  }

  .tournament-team-count {
    font-size: 0.92rem;
    margin-top: 0.58rem;
  }

  .tournament-chip-list {
    gap: 0.45rem;
  }

  .tournament-chip {
    border-radius: 10px;
    font-size: 0.85rem;
    min-height: 2rem;
    padding: 0.38rem 0.78rem;
  }

  .tournament-place-cell {
    display: grid !important;
    gap: 0.52rem;
    padding-right: 1rem !important;
  }

  .tournament-place-line + .tournament-place-line {
    margin-top: 0;
  }

  .tournament-place-line,
  .tournament-organizer-line,
  .tournament-organizer-line a,
  .tournament-organizer-line span {
    font-size: 0.92rem;
  }

  .tournament-status {
    font-size: 0.92rem;
    min-height: 2.15rem;
    padding: 0.5rem 0.95rem;
  }

  .tournament-status-note {
    margin-top: 0.55rem;
  }

  .tournament-actions {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  }

  .tournament-action {
    border-radius: 12px;
    font-size: 0.95rem;
    min-height: 3.05rem;
    padding: 0.6rem 1rem;
  }

  .tournament-action-primary {
    background: #0b55c6;
    border-color: #0b55c6;
    color: #ffffff;
  }

  .tournament-action-primary:hover,
  .tournament-action-primary:focus {
    background: #0948a7;
    border-color: #0948a7;
    color: #ffffff;
  }

  .tournament-action-results {
    background: #f4f8ff;
    border-color: #c9d8f6;
  }

  .tournament-action:only-child {
    inline-size: 100%;
  }

  .tournaments-pagination {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tournaments-page-size {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .players-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .players-control-panel {
    grid-template-columns: 1fr;
  }

  .players-filter-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tournaments-control-row {
    grid-template-columns: 1fr;
  }

  .tournament-period-tabs {
    width: 100%;
  }

  .tournament-toggle-group {
    justify-content: center;
    justify-self: center;
    width: 100%;
  }

  .tournament-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .tournament-toggle-group {
    flex-wrap: wrap;
    justify-content: flex-start;
    justify-self: start;
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px),
  (min-width: 768px) and (max-width: 1400px) and (pointer: coarse) {
  .players-results-surface {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .players-table-responsive {
    overflow: visible;
  }

  .players-table,
  .players-table thead,
  .players-table tbody,
  .players-table tr,
  .players-table td {
    display: block;
    width: 100%;
  }

  .players-table thead {
    display: none;
  }

  .players-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .players-table tr.players-row {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
  }

  .players-table tr.players-row::before {
    display: none !important;
  }

  .players-table tr.players-row > td {
    display: none !important;
  }

  .players-table tr.players-row > td.players-mobile-card-cell {
    display: block !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card {
    box-shadow: 0 10px 28px rgba(15, 45, 75, 0.1);
    margin: 0;
    transform: none !important;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card:hover,
  .players-mobile-card-cell .athlete-card.players-mobile-rating-card:focus,
  .players-mobile-card-cell .athlete-card.players-mobile-rating-card:focus-within {
    box-shadow: 0 10px 28px rgba(15, 45, 75, 0.1);
    transform: none !important;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-hero {
    min-height: 7.9rem;
    padding: 1rem 5.15rem 1.55rem 1rem;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-name {
    font-size: 1.2rem;
    margin-bottom: 0.38rem;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-name-link {
    display: flex;
    flex-direction: column;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-given-line {
    order: 1;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-surname-line {
    order: 2;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-title-badge {
    margin-top: 0.02rem;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-stats {
    margin-left: 0.9rem;
    margin-right: 0.9rem;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-meta {
    column-gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.8rem 0.95rem 0.9rem;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-chip {
    gap: 0.42rem;
    padding: 0.62rem 0.68rem;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-chip + .athlete-chip::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .players-page {
    gap: 0.85rem;
    width: min(100%, calc(100vw - 1rem));
  }

  .players-title-copy h1 {
    font-size: 1.85rem;
  }

  .players-title-copy p {
    font-size: 0.9rem;
  }

  .players-control-panel {
    padding: 0.72rem;
  }

  .players-filter-controls {
    gap: 0.6rem;
    grid-template-columns: 1fr;
  }

  .players-results-surface {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .players-table-responsive {
    overflow: visible;
  }

  .players-table,
  .players-table thead,
  .players-table tbody,
  .players-table tr,
  .players-table td {
    display: block;
    width: 100%;
  }

  .players-table thead {
    display: none;
  }

  .players-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .players-table tr.players-row {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
  }

  .players-table tr.players-row::before {
    display: none !important;
  }

  .players-table tr.players-row > td {
    display: none !important;
  }

  .players-table tr.players-row > td.players-mobile-card-cell {
    display: block !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card {
    box-shadow: 0 10px 28px rgba(15, 45, 75, 0.1);
    margin: 0;
    transform: none !important;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card:hover,
  .players-mobile-card-cell .athlete-card.players-mobile-rating-card:focus,
  .players-mobile-card-cell .athlete-card.players-mobile-rating-card:focus-within {
    box-shadow: 0 10px 28px rgba(15, 45, 75, 0.1);
    transform: none !important;
  }

  .players-mobile-card-cell .athlete-card.players-mobile-rating-card .athlete-card-body {
    min-height: 0;
  }

  .players-rank-cell {
    align-self: start;
    grid-area: rank;
    justify-self: end;
    padding-top: 0.02rem !important;
  }

  .players-rank-badge {
    background: rgba(237, 249, 241, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow:
      0 8px 20px rgba(15, 143, 77, 0.12),
      inset 0 0 0 1px rgba(17, 155, 89, 0.08);
    color: #119b59;
    flex-direction: column;
    gap: 0.02rem;
    height: 3.35rem;
    min-height: 3.35rem;
    min-width: 3.35rem;
    padding: 0.34rem 0.25rem;
    width: 3.35rem;
  }

  .players-rank-value {
    font-size: 1.3rem;
    font-weight: 800;
  }

  .players-rank-label-mobile {
    color: #08264a;
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.05;
    white-space: nowrap;
  }

  .players-athlete-cell {
    grid-area: athlete;
    min-width: 0;
  }

  .players-athlete-link {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .players-athlete-avatar {
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow:
      0 12px 24px rgba(15, 45, 75, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    height: 4.75rem;
    width: 4.75rem;
  }

  .players-athlete-avatar-placeholder {
    font-size: 2.55rem;
  }

  .players-athlete-copy {
    gap: 0.26rem;
    padding-top: 0.04rem;
  }

  .players-athlete-name {
    display: -webkit-box;
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.08;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .players-athlete-meta-mobile {
    color: #2f5d7c;
    display: grid;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.12rem;
    line-height: 1.2;
    min-width: 0;
  }

  .players-athlete-meta-line {
    align-items: center;
    display: flex;
    gap: 0.2rem;
    min-width: 0;
  }

  .players-athlete-meta-line .bi {
    color: #475467;
    flex: 0 0 auto;
    font-size: 0.95rem;
  }

  .players-athlete-country {
    align-items: center;
    display: inline-flex;
    gap: 0.16rem;
    min-width: 0;
    white-space: nowrap;
  }

  .players-athlete-country .flag-icon {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 45, 75, 0.08);
    margin-left: 0.08rem;
  }

  .players-points-cell {
    grid-area: points;
  }

  .players-power-cell {
    grid-area: power;
  }

  .players-metric-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 45, 75, 0.06);
    box-shadow: 0 -6px 18px rgba(15, 45, 75, 0.04);
    display: grid !important;
    gap: 0.45rem;
    grid-template-columns: 1.72rem minmax(0, 1fr);
    justify-content: start;
    min-height: 3.22rem;
    min-width: 0;
    padding: 0.68rem 0.62rem;
    width: 100%;
  }

  .players-points-badge {
    border-radius: 16px 0 0 16px;
  }

  .players-power-badge {
    border-left: 1px solid rgba(15, 45, 75, 0.08);
    border-radius: 0 16px 16px 0;
  }

  .players-metric-badge i {
    align-items: center;
    background: #e9f5ff;
    border-radius: 999px;
    color: #2563eb;
    display: inline-flex;
    font-size: 0.9rem;
    height: 1.72rem;
    justify-content: center;
    width: 1.72rem;
  }

  .players-power-badge i {
    background: #e6faff;
    color: #13aee8;
  }

  .players-metric-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
  }

  .players-metric-value {
    color: #08264a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .players-metric-label {
    color: #5f7285;
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.12;
  }

  .players-license-cell {
    grid-area: license;
  }

  .players-sex-cell {
    grid-area: sex;
  }

  .players-age-cell {
    grid-area: age;
  }

  .players-license-badge,
  .players-sex-badge,
  .players-age-badge {
    align-items: center;
    border-radius: 12px;
    display: grid !important;
    gap: 0.36rem;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
    min-height: 3rem;
    min-width: 0;
    padding: 0.58rem 0.42rem;
    width: 100%;
  }

  .players-license-badge {
    background: #f5f7f9;
    border-color: #e5e9ef;
    color: #08264a;
  }

  .players-license-badge i {
    color: #6b7280;
    transform: none;
  }

  .players-license-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
  }

  .players-license-number {
    color: #08264a;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .players-license-label {
    color: #5f7285;
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
  }

  .players-sex-badge {
    background: #fffaf0 !important;
    border-color: #f1dfb8 !important;
    color: #08264a !important;
  }

  .players-sex-badge i {
    color: #d38d00;
  }

  .players-sex-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
  }

  .players-sex-value {
    color: #08264a;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .players-sex-label {
    color: #5f7285;
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
  }

  .players-age-badge {
    background: #fffaf0;
    border: 1px solid #f1dfb8;
  }

  .players-age-icon {
    color: #d9a000;
    display: inline-flex;
    font-size: 0.9rem;
    line-height: 1;
  }

  .players-age-badge .badge {
    background: transparent !important;
    border: 0 !important;
    color: #08264a !important;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.08;
    min-width: 0;
    padding: 0 !important;
  }

  .players-age-label {
    color: #5f7285;
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 0.16rem;
  }

  .players-license-badge-missing {
    display: flex !important;
    justify-content: center;
  }

  .players-metric-badge,
  .players-sex-badge,
  .players-age-badge,
  .players-license-badge {
    min-width: 0;
    width: 100%;
  }

  .players-table td {
    border: 0;
    padding: 0 !important;
  }

  .players-metric-copy,
  .players-sex-copy,
  .players-license-copy {
    align-items: start;
  }

  .players-sex-badge-f i {
    color: #c23a7a;
  }

  .players-no-club {
    width: 100%;
  }

  .players-row.inactive::before {
    opacity: 0.65;
  }

  .players-row.inactive {
    opacity: 1;
  }

  .players-row.inactive td {
    opacity: 0.85;
  }

  .players-row:hover {
    background: #ffffff;
  }

  .players-rank-cell,
  .players-athlete-cell,
  .players-points-cell,
  .players-power-cell,
  .players-license-cell,
  .players-sex-cell,
  .players-age-cell {
    border: 0 !important;
  }

  .players-club-wrap {
    align-items: flex-start;
  }

  .players-athlete-meta-line:first-child {
    margin-top: 0.04rem;
  }

  .players-athlete-meta-line:last-child {
    font-weight: 650;
  }

  .players-license-badge-missing {
    padding-inline: 0.6rem;
  }

  .players-license-badge-missing .players-license-label {
    display: none;
  }

  .players-license-badge-missing,
  .players-no-club {
    font-size: 0.76rem;
  }

  .players-metric-copy,
  .players-sex-copy,
  .players-license-copy {
    min-width: 0;
  }

  .players-metric-value,
  .players-sex-value,
  .players-license-number {
    letter-spacing: 0;
  }

  .players-athlete-country,
  .players-athlete-meta-line span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .players-athlete-meta-line span {
    white-space: nowrap;
  }

  .players-athlete-country {
    white-space: nowrap;
  }

  .players-table-footer {
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    gap: 0.75rem;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 0.85rem;
    padding: 0.9rem 0.55rem;
  }

  .players-footer-length-mount {
    justify-self: center;
  }

  .players-footer-length-mount #players_length label {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
    text-align: center;
    white-space: normal;
  }

  .players-table-footer .pagination {
    flex-wrap: nowrap;
    gap: 0.3rem;
    max-width: 100%;
    width: 100%;
  }

  .players-table-footer .page-link {
    border-radius: 10px !important;
    flex: 0 0 auto;
    font-size: 0.82rem;
    height: 1.9rem;
    min-width: 1.9rem;
    padding: 0;
  }

  .players-table-footer .dataTables_info {
    font-size: 0.82rem;
    text-align: center;
  }

  .tournaments-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .create-tournament-button {
    width: 100%;
  }

  .tournament-period-tab {
    flex-direction: column;
    gap: 0.3rem;
    min-height: 4.6rem;
    padding: 0.65rem 0.35rem;
  }

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

  .tournaments-table tr {
    grid-template-columns: minmax(8.9rem, auto) minmax(0, 1fr);
    grid-template-areas:
      "date title"
      "date title"
      "format strength"
      "place status"
      "actions actions";
    padding: 1.05rem 1rem 1rem;
  }

  .tournament-date-cell {
    justify-self: start;
    padding-right: 0.4rem !important;
  }

  .tournament-title-cell {
    padding-left: 0.25rem !important;
  }

  .tournament-strength-cell,
  .tournament-status-cell {
    justify-self: end;
    text-align: right;
  }

  .tournament-place-cell {
    padding-right: 0 !important;
  }

  .tournament-actions {
    gap: 0.6rem;
  }

  .tournament-action {
    min-height: 2.9rem;
  }

  .tournaments-pagination {
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding: 0.9rem 0.55rem;
  }

  .tournaments-page-links {
    flex-wrap: nowrap;
    gap: 0.3rem;
    max-width: 100%;
    width: 100%;
  }

  .tournaments-page-link,
  .tournaments-page-ellipsis {
    border-radius: 10px;
    flex: 0 0 auto;
    font-size: 0.82rem;
    height: 1.9rem;
    min-width: 1.9rem;
    padding: 0;
  }

  .tournaments-page-ellipsis {
    min-width: 1.15rem;
  }

  .tournaments-pagination p,
  .tournaments-page-size {
    font-size: 0.82rem;
  }

  .tournaments-page-size-value {
    border-radius: 10px;
    font-size: 0.82rem;
    height: 1.9rem;
    min-width: 1.9rem;
    padding: 0;
  }
}

@media (max-width: 420px) {
  .players-table tr.players-row {
    gap: 0.6rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas:
      "athlete athlete rank"
      "points power power"
      "license sex age";
    padding: 0.82rem 0.62rem 0.68rem;
  }

  .players-athlete-avatar {
    height: 4.2rem;
    width: 4.2rem;
  }

  .players-athlete-avatar-placeholder {
    font-size: 2.3rem;
  }

  .players-athlete-name {
    font-size: 1.7rem;
  }

  .players-rank-badge {
    height: 3.05rem;
    min-height: 3.05rem;
    min-width: 3.05rem;
    width: 3.05rem;
  }

  .players-rank-value {
    font-size: 1.18rem;
  }

  .players-rank-label-mobile {
    font-size: 0.56rem;
  }

  .players-metric-badge {
    grid-template-columns: 1.62rem minmax(0, 1fr);
    padding: 0.62rem 0.52rem;
  }

  .players-metric-badge i {
    height: 1.62rem;
    width: 1.62rem;
  }

  .players-metric-value {
    font-size: 0.95rem;
  }

  .players-metric-label {
    font-size: 0.72rem;
  }

  .players-license-badge,
  .players-sex-badge,
  .players-age-badge {
    gap: 0.28rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 2.8rem;
    padding: 0.52rem 0.34rem;
  }

  .players-sex-value,
  .players-license-number,
  .players-age-badge .badge {
    font-size: 0.76rem !important;
  }

  .players-sex-label,
  .players-license-label,
  .players-age-label {
    font-size: 0.58rem;
  }

  .tournaments-table tr {
    gap: 0.82rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "title"
      "format"
      "strength"
      "place"
      "status"
      "actions";
    padding-inline: 0.88rem;
  }

  .tournament-strength-cell,
  .tournament-status-cell {
    justify-self: start;
    text-align: left;
  }

  .tournament-period-tab {
    font-size: 0.82rem;
  }

  .tournament-period-count {
    font-size: 0.7rem;
  }

  .tournament-actions {
    grid-template-columns: 1fr;
  }
}

.tournaments-tablet-list,
.tournaments-mobile-list {
  display: none;
}

.tournament-title-link[data-bs-toggle="tooltip"],
.tournament-tablet-title[data-bs-toggle="tooltip"],
.tournament-mobile-title[data-bs-toggle="tooltip"] {
  display: -webkit-box !important;
  position: relative !important;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .tournaments-table {
    display: none !important;
  }

  .tournaments-tablet-list {
    display: grid;
    gap: 1rem;
  }

  .tournament-tablet-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.05);
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(12rem, 13rem) minmax(0, 1fr) minmax(
        9.75rem,
        12rem
      );
    min-width: 0;
    padding: 1.25rem;
  }

  .tournament-tablet-side {
    border-right: 1px solid #e3e9f1;
    display: grid;
    gap: 1.45rem;
    grid-template-rows: auto 1fr;
    padding-right: 1.2rem;
  }

  .tournament-tablet-date {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
    min-width: 0;
  }

  .tournament-tablet-date .bi {
    color: #526079;
    flex: 0 0 auto;
    font-size: 1.28rem;
    line-height: 1;
    margin-top: 0.1rem;
  }

  .tournament-tablet-date time {
    color: #172033;
    display: block;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.22;
    white-space: nowrap;
  }

  .tournament-tablet-date span {
    color: #65728a;
    display: block;
    font-size: 0.9rem;
    font-weight: 650;
    margin-top: 0.55rem;
  }

  .tournament-tablet-registration {
    align-self: end;
    display: grid;
    gap: 0.65rem;
    justify-items: start;
  }

  .tournament-tablet-registration .tournament-status {
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 2rem;
    padding: 0.45rem 0.78rem;
  }

  .tournament-tablet-registration .tournament-status-note {
    color: #65728a;
    font-size: 0.86rem;
    font-weight: 650;
    margin-top: 0;
  }

  .tournament-tablet-main {
    align-content: center;
    display: grid;
    gap: 0.8rem;
    min-width: 0;
  }

  .tournament-tablet-tags {
    gap: 0.45rem;
  }

  .tournament-tablet-tags .tournament-chip {
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 1.75rem;
    padding: 0.34rem 0.68rem;
  }

  .tournament-tablet-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.18;
    max-height: calc(1.18em * 2);
    -webkit-line-clamp: 2;
  }

  .tournament-tablet-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.35rem;
    min-width: 0;
  }

  .tournament-tablet-meta .tournament-team-count,
  .tournament-tablet-meta .tournament-place-line {
    color: #5f6d86;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    min-width: 0;
  }

  .tournament-tablet-meta .tournament-place-line a,
  .tournament-tablet-meta .tournament-place-line span:not(.flag-icon) {
    color: inherit;
    min-width: 0;
  }

  .tournament-tablet-power {
    justify-self: start;
    margin-top: 0.12rem;
  }

  .tournament-tablet-power .tournament-power-badge {
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
  }

  .tournament-tablet-actions {
    align-content: center;
    display: grid;
    gap: 0.82rem;
  }

  .tournament-tablet-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #172033;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    gap: 0.4rem;
    justify-content: center;
    min-height: 3.05rem;
    padding: 0.72rem 1rem;
    text-align: center;
    text-decoration: none;
  }

  .tournament-tablet-action:hover,
  .tournament-tablet-action:focus {
    background: #f8fbff;
    border-color: #b9c7d8;
    color: #0d3b66;
  }

  .tournament-tablet-action-primary {
    background: #dcf4e7;
    border-color: #a7e2bd;
    box-shadow: none;
    color: #07823f;
  }

  .tournament-tablet-action-primary:hover,
  .tournament-tablet-action-primary:focus {
    background: #d4efdf;
    border-color: #8bd5aa;
    color: #057536;
  }

  .tournament-tablet-action-results {
    background: #f6f9ff;
    border-color: #cbd9ef;
    color: #2457a6;
  }
}

@media (max-width: 767.98px) {
  .tournaments-page {
    width: min(100%, calc(100vw - 1rem));
  }

  .tournaments-table {
    display: none !important;
  }

  .tournaments-mobile-list {
    display: grid;
    gap: 12px;
  }

  .tournament-mobile-card {
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 36, 55, 0.035);
    display: grid;
    gap: 13px;
    overflow: hidden;
    padding: 16px 16px 17px;
  }

  .tournament-mobile-meta {
    align-items: start;
    display: grid;
    gap: 0.62rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tournament-mobile-date {
    align-items: flex-start;
    color: #536179;
    display: flex;
    gap: 0.62rem;
    min-width: 0;
  }

  .tournament-mobile-date .bi {
    color: #526079;
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    margin-top: 0.05rem;
  }

  .tournament-mobile-date time {
    color: #172033;
    display: block;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
  }

  .tournament-mobile-date span {
    color: #65728a;
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0.3rem;
  }

  .tournament-mobile-players {
    align-items: center;
    color: #5a6780;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 0.4rem;
    line-height: 1.2;
    padding-top: 0.08rem;
    white-space: nowrap;
  }

  .tournament-mobile-players .bi {
    color: #526079;
    font-size: 15px;
  }

  .tournament-mobile-tags {
    gap: 0.42rem 0.5rem;
  }

  .tournament-mobile-tags .tournament-chip {
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    max-width: 100%;
    min-height: 30px;
    overflow: hidden;
    padding: 5px 10px;
    text-overflow: ellipsis;
  }

  .tournament-mobile-title {
    color: #0d3b66;
    display: -webkit-box;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.24;
    max-height: calc(1.24em * 2);
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .tournament-mobile-title:hover,
  .tournament-mobile-title:focus {
    color: #1677c2;
    text-decoration: none;
  }

  .tournament-mobile-title:visited {
    color: #0d3b66;
  }

  .tournament-mobile-details {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    min-width: 0;
  }

  .tournament-mobile-info {
    display: grid;
    gap: 9px;
    min-width: 0;
  }

  .tournament-mobile-info-line {
    align-items: center;
    color: #5a6780;
    display: flex;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    line-height: 1.25;
    min-width: 0;
  }

  .tournament-mobile-info-line .bi {
    color: #526079;
    flex: 0 0 auto;
    font-size: 16px;
  }

  .tournament-mobile-info-line a,
  .tournament-mobile-info-line span:not(.flag-icon) {
    color: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tournament-mobile-info-line a:hover,
  .tournament-mobile-info-line a:focus {
    color: #0b55c6;
  }

  .tournament-mobile-status-panel {
    display: grid;
    gap: 8px;
    justify-content: end;
    justify-items: end;
    min-width: 0;
  }

  .tournament-mobile-power {
    max-width: 100%;
    min-width: 0;
  }

  .tournament-mobile-power .tournament-power-badge {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    gap: 0.42rem;
    min-height: 32px;
    padding: 6px 11px;
  }

  .tournament-mobile-registration {
    display: grid;
    gap: 5px;
    justify-items: end;
    max-width: 100%;
    min-width: 0;
    text-align: right;
  }

  .tournament-mobile-registration .tournament-status {
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    min-height: 32px;
    padding: 6px 12px;
  }

  .tournament-mobile-registration .tournament-status-registration_open {
    background: #e9f8ef;
    border-color: #d5f0de;
    color: #14813d;
  }

  .tournament-mobile-registration .tournament-status-registration_closed,
  .tournament-mobile-registration .tournament-status-registration_unavailable,
  .tournament-mobile-registration .tournament-status-finished {
    background: #f0f2f5;
    border-color: #e3e8ef;
    color: #5e6a7e;
  }

  .tournament-mobile-registration .tournament-status-ongoing {
    background: #eaf2ff;
    border-color: #d8e6ff;
    color: #0b55c6;
  }

  .tournament-mobile-registration .tournament-status-cancelled {
    background: #ffecec;
    border-color: #ffd5d5;
    color: #b42318;
  }

  .tournament-mobile-registration .tournament-status-note {
    color: #65728a;
    font-size: 12px;
    font-weight: 600;
    margin-top: 0;
  }

  .tournament-mobile-actions {
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    padding-top: 12px;
  }

  .tournament-mobile-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: #172033;
    display: inline-flex;
    font-size: 15px;
    font-weight: 600;
    gap: 0.38rem;
    justify-content: center;
    line-height: 1.15;
    min-height: 48px;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
    transition:
      background-color 0.16s ease,
      border-color 0.16s ease,
      box-shadow 0.16s ease,
      color 0.16s ease,
      transform 0.16s ease;
  }

  .tournament-mobile-action:hover,
  .tournament-mobile-action:focus {
    background: #f8fbff;
    border-color: #b9c7d8;
    color: #0f2437;
    transform: translateY(-1px);
  }

  .tournament-mobile-action:focus-visible {
    outline: 3px solid rgba(18, 100, 216, 0.24);
    outline-offset: 2px;
  }

  .tournament-mobile-action-primary {
    background: #dcf4e7;
    border-color: #a7e2bd;
    box-shadow: none;
    color: #07823f;
  }

  .tournament-mobile-action-primary:hover,
  .tournament-mobile-action-primary:focus {
    background: #d4efdf;
    border-color: #8bd5aa;
    color: #057536;
  }

  .tournament-mobile-action-results {
    background: #f6f9ff;
    border-color: #cbd9ef;
    color: #2457a6;
  }

  .tournament-mobile-action-results:hover,
  .tournament-mobile-action-results:focus {
    background: #edf4ff;
    border-color: #b6cbea;
    color: #17458c;
  }
}

@media (max-width: 360px) {
  .tournament-mobile-card {
    border-radius: 18px;
    padding: 14px;
  }

  .tournament-mobile-meta {
    gap: 0.55rem;
  }

  .tournament-mobile-date {
    gap: 0.55rem;
  }

  .tournament-mobile-date time {
    font-size: 16px;
  }

  .tournament-mobile-date span,
  .tournament-mobile-players {
    font-size: 12px;
  }

  .tournament-mobile-title {
    font-size: 17px;
  }

  .tournament-mobile-details {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(108px, auto);
  }

  .tournament-mobile-power .tournament-power-badge,
  .tournament-mobile-registration .tournament-status,
  .tournament-mobile-registration .tournament-status-note {
    font-size: 12px;
  }

  .tournament-mobile-actions {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr));
  }
}
/* ===== Player Detail Page ===== */

.player-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.player-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
}

.player-breadcrumb-link {
  color: #5b6b78;
  text-decoration: none;
}

.player-breadcrumb-link:hover {
  color: #005bd8;
}

.player-breadcrumb-sep {
  font-size: 10px;
  color: #9aa8b5;
}

.player-breadcrumb-current {
  color: #12213f;
  font-weight: 600;
}

/* Hero Card */
.player-hero-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: #ffffff;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 35, 70, 0.08);
  padding: 32px;
  margin-bottom: 20px;
}

.player-hero-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f4f8;
  border: 3px solid #e8eef4;
}

.player-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-hero-info {
  flex: 1;
  min-width: 0;
}

.player-id-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #bfdbfe;
  background: #eaf3ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.player-hero-name {
  font-size: 32px;
  font-weight: 800;
  color: #12213f;
  line-height: 1.2;
  margin: 0 0 12px;
}

.player-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  border: 1.5px solid transparent;
}

.player-chip-sport-title {
  background: #fff3d6;
  border-color: #f2bf63;
  color: #8a4b00;
}

.player-chip-national-team {
  background: #f1eaff;
  border-color: #d7c4ff;
  color: #5b2bbd;
}

.player-chip-arbiter {
  background: #e8f7ed;
  border-color: #b8e5c5;
  color: #1f7a3b;
}

/* Info Grid */
.player-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.player-card {
  background: #ffffff;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 35, 70, 0.08);
  padding: 24px;
}

.player-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #12213f;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-card-title i {
  color: #5b6b78;
  font-size: 18px;
}

/* Details Card */
.player-details-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.player-detail-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4f8;
}

.player-detail-row:last-child {
  border-bottom: none;
}

.player-detail-row > i {
  color: #5b6b78;
  font-size: 15px;
}

.player-detail-label {
  font-size: 14px;
  color: #5b6b78;
}

.player-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #12213f;
  text-align: right;
  word-break: break-word;
}

/* Club Card */
.player-club-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-club-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-club-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-club-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf3ff;
  color: #5b6b78;
  font-size: 28px;
}

.player-club-name {
  font-size: 16px;
  font-weight: 800;
  color: #005bd8;
  text-decoration: none;
}

.player-club-name:hover {
  color: #003f9e;
  text-decoration: underline;
}

.player-club-info {
  flex: 1;
  min-width: 0;
}

.player-club-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
}

.player-club-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5b6b78;
}

.player-club-meta-item i {
  font-size: 13px;
  color: #9aa8b5;
}

.player-club-meta-label {
  color: #5b6b78;
}

.player-club-meta-value {
  font-weight: 600;
  color: #12213f;
}

.player-club-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: #9aa8b5;
  gap: 8px;
}

.player-club-empty i {
  font-size: 32px;
}

.player-club-empty span {
  font-size: 14px;
  font-weight: 600;
}

/* Stats Card */
.player-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.player-stat-tile {
  background: #f8fbff;
  border: 1px solid #e8eef4;
  border-radius: 12px;
  padding: 14px 16px;
}

.player-stat-label {
  display: block;
  font-size: 12px;
  color: #5b6b78;
  margin-bottom: 4px;
  font-weight: 500;
}

.player-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-stat-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.player-stat-icon {
  font-size: 20px;
  opacity: 0.7;
}

.player-stat-rating .player-stat-value {
  color: #159947;
}

.player-stat-rating .player-stat-icon {
  color: #159947;
}

.player-stat-power .player-stat-value {
  color: #1d4ed8;
}

.player-stat-power .player-stat-icon {
  color: #f97316;
}

.player-stat-rating-comp .player-stat-value {
  color: #7c3aed;
}

.player-stat-rating-comp .player-stat-icon {
  color: #7c3aed;
}

.player-stat-international .player-stat-value {
  color: #f97316;
}

.player-stat-international .player-stat-icon {
  color: #f97316;
}

.player-stat-total .player-stat-value {
  color: #159947;
}

.player-stat-total .player-stat-icon {
  color: #159947;
}

/* Tournaments Section */
.player-tournaments-section {
  margin-bottom: 20px;
}

.player-tournaments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.player-tournaments-header .player-card-title {
  margin-bottom: 0;
}

.player-tournaments-view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: #005bd8;
  text-decoration: none;
}

.player-tournaments-view-all-link:hover {
  text-decoration: underline;
}

/* Tournaments Desktop Table */
.player-tournaments-table-wrap {
  overflow-x: auto;
}

.player-tournaments-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.player-tournaments-table thead th {
  font-size: 12px;
  font-weight: 700;
  color: #5b6b78;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  border-bottom: 2px solid #e8eef4;
  text-align: left;
  white-space: nowrap;
}

.player-tournaments-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

.player-tournaments-table tbody tr:hover {
  background: #f8fbff;
}

.player-tournaments-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f4f8;
  font-size: 14px;
  color: #12213f;
  vertical-align: middle;
}

.player-tournaments-table tbody tr:last-child td {
  border-bottom: none;
}

.pt-col-date { width: 12%; }
.pt-col-name { width: 24%; }
.pt-col-format { width: 18%; }
.pt-col-place { width: 8%; }
.pt-col-team { width: 12%; }
.pt-col-status { width: 12%; }
.pt-col-power { width: 7%; }
.pt-col-points { width: 7%; }

.pt-date-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pt-date-wrap > i {
  color: #9aa8b5;
  margin-top: 2px;
}

.pt-date-wrap div {
  display: flex;
  flex-direction: column;
}

.pt-date-wrap time {
  font-size: 13px;
  font-weight: 600;
  color: #12213f;
  white-space: nowrap;
}

.pt-date-wrap span {
  font-size: 12px;
  color: #5b6b78;
}

.pt-tournament-link {
  font-weight: 700;
  color: #005bd8;
  text-decoration: none;
  display: block;
}

.pt-tournament-link:hover {
  text-decoration: underline;
}

.pt-tournament-location {
  font-size: 12px;
  color: #5b6b78;
  display: block;
  margin-top: 2px;
}

.pt-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pt-place-value {
  font-weight: 800;
  color: #12213f;
}

.pt-place-sep {
  color: #9aa8b5;
  margin: 0 2px;
}

.pt-place-total {
  color: #5b6b78;
  font-size: 13px;
}

.pt-team-name {
  font-size: 13px;
  font-weight: 600;
  color: #12213f;
}

.pt-power-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf3ff;
  border: 1px solid #bfdbfe;
  color: #075bd8;
  font-size: 13px;
  font-weight: 700;
}

.pt-points-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e9f8ef;
  border: 1px solid #b8e5c5;
  color: #159947;
  font-size: 13px;
  font-weight: 700;
}

.pt-muted {
  color: #9aa8b5;
}

.player-tournaments-footer {
  text-align: center;
  padding-top: 20px;
}

.player-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border: 1.5px solid #005bd8;
  border-radius: 999px;
  color: #005bd8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.player-view-all-btn:hover {
  background: #005bd8;
  color: #ffffff;
}

.player-tournaments-empty {
  text-align: center;
  padding: 48px 16px;
  color: #9aa8b5;
}

.player-tournaments-empty i {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.player-tournaments-empty p {
  font-size: 14px;
  margin: 0;
}

/* Mobile tournament list (hidden on desktop) */
.player-tournaments-mobile-list {
  display: none;
}

.player-tournament-mobile-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px 0;
  border-bottom: 1px solid #f0f4f8;
}

.player-tournament-mobile-card:last-child {
  border-bottom: none;
}

.player-tournament-mobile-card:hover {
  background: #f8fbff;
}

.ptm-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ptm-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 50px;
}

.ptm-date time {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #12213f;
}

.ptm-date span {
  display: block;
  font-size: 12px;
  color: #5b6b78;
}

.ptm-main {
  flex: 1;
  min-width: 0;
}

.ptm-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #005bd8;
  margin-bottom: 2px;
}

.ptm-location {
  display: block;
  font-size: 12px;
  color: #5b6b78;
  margin-bottom: 6px;
}

.ptm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ptm-chevron {
  flex-shrink: 0;
  color: #9aa8b5;
  font-size: 18px;
  align-self: center;
}

.ptm-bottom {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-left: 62px;
}

/* All tournaments collapsed section */
.player-all-tournaments-section {
  margin-bottom: 20px;
}

.player-all-tournaments-section .player-card {
  padding: 24px;
}

/* Tournament chips (reuse from tournaments page) */
.player-tournaments-table .tournament-chip,
.player-tournaments-mobile-list .tournament-chip {
  font-size: 11px;
  padding: 2px 8px;
}

/* Row highlight for rating tournaments */
.player-tournament-row.tournament_goes_to_rating {
  background: #f9fefb;
}

/* ===== Player Page — Tablet ===== */
@media (min-width: 768px) and (max-width: 1199px) {
  .player-page {
    padding: 0 24px 36px;
  }

  .player-hero-name {
    font-size: 28px;
  }

  .player-hero-avatar {
    width: 112px;
    height: 112px;
  }

  .player-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .player-details-card {
    order: 1;
  }

  .player-stats-card {
    order: 2;
  }

  .player-club-card {
    order: 3;
    grid-column: 1 / -1;
  }

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

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

  .player-club-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .player-club-meta-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  /* Hide status column on tablet for space */
  .player-tournaments-table thead th.pt-col-status,
  .player-tournaments-table tbody td.pt-col-status {
    display: none;
  }

  .pt-col-format {
    width: 22%;
  }

  .pt-col-name {
    width: 28%;
  }
}

/* Collapsible card titles - only active on mobile */
.player-collapse-icon {
  display: none;
}

.player-card-title-collapsible {
  cursor: default;
  pointer-events: none;
}

/* Ensure card bodies are always visible on non-mobile */
@media (min-width: 768px) {
  .player-card-body {
    display: block !important;
    height: auto !important;
  }
}

/* ===== Player Page — Mobile ===== */
@media (max-width: 767px) {
  .player-page {
    padding: 0 16px 32px;
  }

  .player-hero-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .player-hero-avatar {
    width: 100px;
    height: 100px;
  }

  .player-hero-name {
    font-size: 24px;
  }

  .player-hero-chips {
    justify-content: center;
  }

  .player-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .player-card {
    padding: 20px;
  }

  .player-card-title-collapsible {
    cursor: pointer;
    pointer-events: auto;
  }

  .player-collapse-icon {
    display: inline-block;
    margin-left: auto;
    transition: transform 0.2s;
    font-size: 14px;
    color: #9aa8b5;
  }

  .player-card-title-collapsible[aria-expanded="true"] .player-collapse-icon {
    transform: rotate(180deg);
  }

  .player-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .player-stat-value {
    font-size: 20px;
  }

  .player-stat-tile {
    padding: 12px;
  }

  .player-club-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Hide desktop table, show mobile list */
  .player-tournaments-table-wrap {
    display: none;
  }

  .player-tournaments-mobile-list {
    display: block;
  }

  .player-tournaments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .player-tournaments-view-all-link {
    align-self: flex-end;
  }
}

/* ===== Player Page — Narrow tablet fallback ===== */
@media (max-width: 860px) and (min-width: 768px) {
  .player-page {
    padding: 0 16px 28px;
  }

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

  .player-details-card,
  .player-stats-card,
  .player-club-card {
    grid-column: auto;
  }
}
