:root {
  --sb-font-prim: "Bakbak One";
}

.result-squad-wrap {
  background:
    url("/static-assets/images/misc/team_bg.png") bottom / cover no-repeat;
  position: relative;
  padding-bottom: 3%;
  background-attachment: fixed;

  &::before {
    content: "";
    background:
      url("/static-assets/images/misc/bottom-shape.svg") no-repeat bottom center
      / cover;
    width: 100%;
    position: absolute;
    bottom: -2px;
    left: 0;
    aspect-ratio: 57 / 4;
  }
}

.sb-squad.page-view {
  padding-top: 0px;
}

.page-view .sb-header {
  margin-bottom: 60px;
}

.sb-squad.page-view .sb-tabs {
  background: #f5f5f53d;
  border-radius: var(--radius_md, 8px);
  border: 0.5px solid hsl(var(--border_main_disable));
}

.sb-squad {
  padding: 80px 0;
  overflow: hidden;
  color: hsl(var(--text_invert_high));
  font-family: var(--sb-font-prim);
  position: relative;
}

.sb-squad button {
  font-family: var(--sb-font-prim);
}

.container-l {
  padding-left: var(--container-offset);
}

.container-r {
  padding-right: var(--container-offset);
}

.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 32px;
  flex-wrap: wrap;
}

.sb-title {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
}

.sb-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.page-view .sb-tabs-wrap {
  margin-right: unset;
  margin-left: auto;
}

.sb-tabs {
  display: flex;
  border: 1px solid hsl(var(--border_main_disable));
  border-radius: 6px;
  overflow: hidden;
}

.sb-tab {
  min-width: 110px;
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: hsl(var(--text_invert_high));
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

.sb-tab.active {
  background: hsl(var(--background_prim_card));
}

@media (max-width: 768px) {
  .result-squad-wrap {
    padding-bottom: 50px;
  }

  .sb-title {
    font-size: 24px;
  }

  .sb-header {
    margin-bottom: 12px;
  }

  .page-view .sb-header {
    margin-bottom: 40px;
  }

  .sb-tabs-wrap {
    order: 1;
    width: 100%;
  }

  .sb-tabs {
    width: 100%;
  }

  .sb-tab {
    padding: 13px 8px;
    flex: 1;
    font-size: 12px;
  }
}

.sb-no-data {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
  font-size: 18px;
  font-weight: 500;
  color: hsl(var(--text_invert_medium, 0, 0%, 70%));
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius_md, 8px);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  margin-top: 20px;
}

.sb-view-more {
  border: 1px solid hsl(var(--button_outline_style_3_border_default));
  padding: 5px 16px;
  border-radius: 8px;
  color: hsl(var(--text_invert_high));
  font-size: 10px;
  font-weight: 700;
  font-family: var(--sb-font-sec);
  background: transparent;
  cursor: pointer;
}

.sb-nav {
  margin-top: 35px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.sb-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid hsl(var(--text_invert_high));
  background: transparent;
  color: hsl(var(--text_invert_high));
  cursor: pointer;
}

.sb-squad .swiper-slide {
  width: 25%;
}

.sb-squad .swiper {
  padding-inline: var(--container-offset);
}

@media (max-width: 768px) {
  .sb-view-more {
    padding: 10px;
    aspect-ratio: 1 / 1;
    font-size: 0;
  }

  .view-more-icon {
    font-size: 12px;
  }

  .sb-squad .swiper-slide {
    width: 40%;
  }
}

@media (max-width: 767px) {
  .sb-squad .swiper-slide {
    width: 80%;
  }

  .sb-nav {
    display: none;
  }
}

.no-data-msg {
  text-align: center;
  padding: 4rem 0;
  color: hsl(var(--text_invert_high));
  font-size: 1.2rem;
  text-transform: uppercase;
}

.sb-squad-skeleton-cards {
  display: flex;
  gap: 16px;
  overflow: hidden;
}

.sb-squad-skeleton-card-wrapper {
  flex-shrink: 0;
  width: 23%;
}

@media (max-width: 1024px) {
  .sb-squad-skeleton-card-wrapper {
    width: 38%;
  }
}

@media (max-width: 768px) {
  .sb-squad-skeleton-card-wrapper {
    width: 60%;
  }
}

@media (max-width: 480px) {
  .sb-squad-skeleton-card-wrapper {
    width: 75%;
  }
}

.sb-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sb-filter-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background: hsl(var(--background_main_surface));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  font-family: var(--sb-font-sec);
  color: hsl(var(--text_main_high));
}

.sb-filter-modal.open {
  right: 0;
}

.sb-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: hsl(var(--background_sec_container));
  color: hsl(var(--text_invert_high));
}

.sb-filter-header h3 {
  margin: 0;
  font-size: 16px;
  font-family: var(--sb-font-sec);
  font-weight: 700;
  text-transform: uppercase;
}

.sb-filter-close {
  background: transparent;
  border: none;
  color: hsl(var(--text_invert_high));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.sb-filter-accordion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-bottom: 16px;
  border-bottom: 1px solid hsl(var(--border_main_disable));
}

.sb-filter-accordion-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-filter-accordion-title .label {
  font-family: var(--sb-font-sec);
  font-size: 12px;
  color: hsl(var(--text_main_low));
  text-transform: uppercase;
}

.sb-filter-accordion-title .value {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sb-font-sec);
  color: hsl(var(--text_main_prim));
}

.icon_sb_down {
  font-size: 12px;
  color: hsl(var(--text_main_low));
}

.sb-filter-option {
  padding: 24px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid hsl(var(--border_main_disable));
  text-transform: uppercase;
  font-family: var(--sb-font-sec);
  color: hsl(var(--text_main_medium));
}

.sb-filter-option:last-child {
  border-bottom: none;
}

.sb-filter-option.selected {
  color: hsl(var(--text_main_prim));
}

.sb-filter-footer {
  padding: 24px;
  display: flex;
  gap: 16px;
}

.sb-btn {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-family: var(--sb-font-sec);
  width: 50%;
}

.sb-btn-apply {
  background: hsl(var(--background_prim_card));
  color: hsl(var(--text_invert_high));
  border: none;
}

.sb-btn-reset {
  background: hsl(var(--background_main_surface));
  color: hsl(var(--button_outline_style_1_text_default));
  border: 1px solid hsl(var(--button_outline_style_1_border_default));
}

@media (max-width: 768px) {
  .sb-filter-header {
    padding: 16px;
  }

  .sb-filter-body {
    padding: 16px;
  }

  .sb-filter-accordion-head {
    padding-bottom: 12px;
  }

  .sb-filter-option {
    padding: 14px 0;
  }

  .sb-filter-footer {
    padding: 16px;
    gap: 12px;
  }

  .sb-btn {
    padding: 8px 10px;
  }
}

.sb-filter-btn {
  background: hsl(var(--background_main_surface));
  color: hsl(var(--button_filled_style_3_text_default));
  border: none;
  width: 107px;
  height: 40px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--sb-font-sec);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.sb-filter-btn i {
  font-size: 16px;
}

.role-group {
  margin-bottom: 56px;
}

.role-group:first-child .role-title {
  color: hsl(var(--core_sec_50));
}

.role-title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: hsl(var(--text_main_sec));
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .players-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .players-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .role-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .sb-filter-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .sb-filter-btn-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .players-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.no-data-msg {
  text-align: center;
  padding: 4rem 0;
  color: hsl(var(--text_invert_high));
  font-size: 1.2rem;
  text-transform: uppercase;
}

.player-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.player-card:hover {
  transform: translateY(-8px);
}

.player-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.player-badges {
  position: absolute;
  top: 50px;
  right: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  font-family: var(--sb-font-sec);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-c,
.badge-vc {
  background: hsl(var(--background_main_surface));
  color: hsl(var(--background_sec_surface));
}

.badge.badge-plane,
.badge.badge-wk {
  background: hsl(var(--background_sec_container_2));
  color: hsl(var(--text_invert_high));
}

.badge.badge-wk {
  font-size: 15px;
}

.player-card-bg {
  position: absolute;
  width: 100%;
  height: 80%;
  bottom: 0px;
  left: 0;
  background:
    url("/static-assets/images/misc/card-bg-hd.png") bottom / 100% 100%
    no-repeat;
  overflow: hidden;
  z-index: 1;
}

.player-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0px 16px 16px;
}

.player-card-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--gradient_sec_vert_1_gradient);
  z-index: 2;
  pointer-events: none;
}

.player-image-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.player-image-wrap::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: hsl(var(--background_main_surface));
  opacity: 0.6;
  mix-blend-mode: screen;
  filter: blur(19px);
  overflow: hidden;
  bottom: 10px;
  left: 50%;
  transform: translatex(-50%);
  z-index: 1;
  transition: transform 0.3s ease;
}

.player-card:hover .player-image-wrap::before {
  transform: translatex(-50%) scale(1.3);
}

.player-image {
  width: 74%;
  max-width: 340px;
  object-fit: contain;
  z-index: 2;
  position: relative;
}

.player-role {
  position: absolute;
  left: 6.5%;
  height: 45%;
  top: 17%;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-180deg);
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2.4px;
  opacity: 0.95;
  color: hsl(var(--background_main_surface));
}

.player-name {
  position: absolute;
  bottom: 23px;
  width: 100%;
  text-align: center;
  font-size: 36px;
  line-height: 1.1;
  text-transform: uppercase;
  font-family: var(--sb-font-prim);
  z-index: 3;
}

.player-stats {
  background: hsl(var(--background_sec_container_2));
  border-radius: 16px;
  display: flex;
  justify-content: space-around;
  padding: 10px 20px;
  z-index: 4;
}

.stat {
  text-align: center;
}

.stat-label {
  font-family: var(--sb-font-sec);
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
}

.stat-value {
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
  font-family: var(--sb-font-sec);
}

.stat-divider {
  width: 1px;
  background-color: hsl(var(--border_sec_default));
  align-self: stretch;
}

@media (max-width: 768px) {
  .player-name {
    font-size: 28px;
  }

  .page-view .player-name {
    font-size: 24px;
    bottom: 10px;
  }

  .page-view .player-card-content {
    padding: 0px 10px 10px;
  }

  .page-view .player-stats {
    padding: 9px 13px;
  }

  .page-view .player-role {
    font-size: 10px;
  }

  .stat-value {
    font-size: 16px;
  }

  .page-view .stat-value {
    font-size: 10px;
  }

  .hide-on-mobile {
    display: none;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer-bg {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.shimmer-wrapper .player-image-wrap::before {
  display: none;
}

/* ── Shared pennant badge ────────────────────────────────────────────────────── */

.sbh-pennant-sm {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 66px;
  top: 5px;
}

.sbh-pennant-lg {
  position: absolute;
  left: calc(var(--container-offset));
  top: 0;
  z-index: 10;
  width: 85px;
  height: 103px;
}

.sbh-pennant-svg {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.sbh-pennant-shape {
  fill: #ffffff;
  transition: fill 0.3s ease;
}

.sbh-logo-path-theme {
  fill: black;
  transition: fill 0.3s ease;
}

/* ─── Desktop Header: Home page transparent states ─── */
.sbh-header-desktop {
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

/* 1. Desktop Pennant Badge on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-pennant-shape {
  fill: #1f2b7b;
}

body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-logo-path-theme {
  fill: white;
}

/* 2. Desktop Topbar on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-topbar {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3. Desktop Navbar on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-navbar {
  background: hsl(var(--core_neu_50) / 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sbh-pennant-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sbh-pennant-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Mobile bar ──────────────────────────────────────────────────────────────── */

.sbh-mobile-bar {
  height: 54px;
  background: #ffffff;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
  box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.2);
}

/* Mobile Pennant Shape default background (always blue by default) */
.sbh-header-mobile .sbh-pennant-shape {
  fill: #1f2b7b;
}

/* Mobile Logo Paths default fill (always white by default) */
.sbh-header-mobile .sbh-logo-path-theme {
  fill: #ffffff;
}

/* Mobile Bar when scrolled and not open: gets the dark blue background */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-mobile-bar {
  background: hsl(var(--background_sec_card));
  /* matches background_sec_card */
}

/* Mobile Pennant Shape when scrolled and not open: gets white background */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-pennant-shape {
  fill: #ffffff;
}

/* Mobile Logo Paths when scrolled and not open: gets black fill */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-logo-path-theme {
  fill: #000000;
}

.sbh-cta-gap {
  border-top: 1px solid hsl(var(--border_sec_disable));
  gap: 24px;
}

.sbh-hamburger-btn {
  width: 60px;
  height: 54px;
}

.sbh-line-s {
  width: 12px;
}

.sbh-line-l {
  width: 22px;
}

/* ── Mobile overlay ──────────────────────────────────────────────────────────── */

.sbh-menu-overlay {
  font-family: "Montserrat", sans-serif;
  height: calc(100dvh - 54px);
  z-index: -1;
}

.sbh-left-panel {
  width: 185px;
}

.sbh-left-panel-inner {
  gap: 24px;
}

.sbh-download-row {
  height: 40px;
}

.sbh-download-icon {
  width: 36px;
  height: 36px;
}

.sbh-social-icon-sm {
  width: 24px;
  height: 28px;
}

/* ── Bottom pennant (left panel footer) ──────────────────────────────────────── */

.sbh-bottom-pennant {
  margin-top: auto;
  padding: 0 12px 16px;
}

.sbh-bottom-pennant-badge {
  position: relative;
  width: 54px;
  height: 66px;
  margin-top: -20px;
}

/* ── Right panel ─────────────────────────────────────────────────────────────── */

.sbh-right-bg {
  background:
    url("/static-assets/images/misc/sbstatic-assetsimagesmischeader-m-right-pattern.png"),
    var(--gradient_sec_vert_5_gradient);
}

.sbh-nav-inner {
  gap: 24px;
}

.sbh-chevron-left {
  font-size: 12px;
  line-height: 1;
  transform: rotate(-90deg);
}

.sbh-hospitality-btn {
  padding: 0 25px;
}

.sbh-cta-btn {
  border: 0.5px solid hsl(var(--text_invert_high));
  padding: 10px 20px;
}

/* ── Desktop ─────────────────────────────────────────────────────────────────── */

.sbh-desktop-offset {
  padding-left: 100px;
}

.sbh-topbar,
.sbh-navbar {
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.sbh-sponsor-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.sbh-sponsor-img--rounded {
  width: 28px;
  border-radius: 50%;
}

.sbh-more-panel {
  width: 165px;
}

.sbh-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.sbh-social-icon-desktop {
  width: 22px;
  height: 22px;
}

.sbh-desktop-nav-item.sbh-active {
  background-color: hsl(var(--background_prim_card));
}

.sbh-mobile-nav-item.sbh-active {
  color: hsl(var(--background_prim_card));
}
