.team-page {
  position: relative;
}

/* Texto do topo centralizado; lista um pouco à direita (sem centralizar no meio) */
.team-page__content {
  width: 100%;
  margin-right: auto;
  margin-left: 0;
  padding-left: clamp(1rem, 4vw, 2rem);
  text-align: left;
}

.team-page__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  width: 100%;
}

.team-page__roster-wrap {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1023px) {
  .team-vagas-card--mobile {
    order: -1;
  }
}

@media (min-width: 768px) {
  .team-vagas-card--mobile {
    display: none;
  }

  .team-page__content {
    padding-left: clamp(3rem, 9vw, 6rem);
    padding-right: 10.5rem;
    max-width: 100%;
  }
}

/* Botão fixo à direita — não se move com o scroll */
.team-apply-fixed {
  display: none;
  position: fixed;
  right: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  text-decoration: none;
  pointer-events: auto;
}

@media (min-width: 1200px) {
  .team-apply-fixed {
    right: max(1.5rem, calc((100vw - 72rem) / 2 + 0.5rem));
  }
}

.team-apply-fixed__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 9.5rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(47, 140, 255, 0.42);
  background: linear-gradient(165deg, rgba(18, 24, 42, 0.98) 0%, rgba(10, 14, 28, 0.99) 100%);
  color: #fff;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.team-apply-fixed:hover .team-apply-fixed__inner {
  transform: translateY(-2px);
  border-color: rgba(94, 176, 255, 0.78);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(47, 140, 255, 0.22);
}

.team-apply-fixed__icon {
  margin-bottom: 0.2rem;
  color: #5eb0ff;
}

.team-apply-fixed__label {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.team-apply-fixed__sublabel {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.88);
  text-align: center;
}

@media (min-width: 768px) {
  .team-apply-fixed {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(0.75rem);
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease,
      transform 0.28s ease;
  }

  .team-apply-fixed.team-apply-fixed--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}

.team-vagas-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(18, 24, 42, 0.96) 0%, rgba(10, 14, 28, 0.98) 100%);
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.team-vagas-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.team-vagas-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.88);
}

.team-vagas-card__divider {
  margin: 1.1rem 0 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.team-vagas-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #2f8cff 0%, #1a6fe8 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 18px rgba(26, 111, 232, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.team-vagas-card__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.team-vagas-card__btn-icon {
  flex-shrink: 0;
}

.team-roster {
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  text-align: left;
}

.team-roster__loading,
.team-roster__empty {
  text-align: left;
  color: rgb(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 2rem 0;
  max-width: 36rem;
  margin: 0;
}

.team-roster__group {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  text-align: left;
}

.team-roster__group:last-child {
  margin-bottom: 0;
}

.team-roster__group-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  justify-content: flex-start;
}

.team-roster__group-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.team-roster__group-header span {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 85%);
}

.team-roster__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1.1rem 1.25rem;
}

.team-skin-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: auto;
  min-width: 6.5rem;
  max-width: 12rem;
  flex: 0 0 auto;
  padding: 0;
  transition: transform 0.2s ease;
}

.team-skin-card:hover {
  transform: translateY(-4px);
}

.team-skin-card__figure {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  align-self: flex-start;
  margin-bottom: -0.75rem;
  margin-left: 0;
  pointer-events: none;
  background: transparent;
}

.team-skin-card__figure--bust {
  width: 5.5rem;
  height: 7rem;
  flex: 0 0 7rem;
  overflow: visible;
}

.team-skin-card__figure--bust.team-skin-card__figure--iso {
  width: 6rem;
  height: 7.35rem;
  flex: 0 0 7.35rem;
}

.team-skin-card__figure--bust.team-skin-card__figure--body-fallback {
  overflow: hidden;
  border-radius: 0.2rem;
}

.team-skin-card__figure--bust.team-skin-card__figure--body-fallback img {
  height: 10rem !important;
  max-height: none !important;
  object-position: 18% 2%;
}

.team-skin-card__figure--bust img {
  display: block;
  width: auto !important;
  height: 7rem !important;
  max-width: 6rem !important;
  max-height: 7rem !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  object-fit: contain;
  object-position: 0% 100%;
  transform: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.team-skin-card__figure--bust.team-skin-card__figure--iso img {
  height: 7.35rem !important;
  max-width: 6.5rem !important;
  max-height: 7.35rem !important;
  object-position: 4% 100%;
}

.team-skin-card__figure--empty {
  width: 5.5rem;
  height: 7rem;
  flex: 0 0 7rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.4rem;
}

.team-skin-card__figure--empty::after {
  content: '?';
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}

.team-skin-card__banner {
  position: relative;
  z-index: 4;
  width: max-content;
  min-width: 5.25rem;
  max-width: 11.5rem;
  align-self: flex-start;
  margin-left: 0;
  margin-top: 0;
  min-height: 1.95rem;
  padding: 0.46rem 1.05rem 0.44rem 0.38rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  box-sizing: border-box;
  clip-path: polygon(0 0, calc(100% - 0.48rem) 0, 100% 50%, calc(100% - 0.48rem) 100%, 0 100%);
}

.team-skin-card__name {
  display: block;
  text-align: left;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  word-break: normal;
}

.team-skin-card__points {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: max-content;
  min-width: 4.75rem;
  max-width: 11.5rem;
  align-self: flex-start;
  margin-top: 0.42rem;
  margin-left: 0;
  padding: 0.32rem 0.75rem 0.32rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(92, 218, 148, 0.96) 0%,
    rgba(55, 182, 108, 0.98) 50%,
    rgba(42, 155, 92, 1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 3px 12px rgba(47, 184, 106, 0.22);
}

.team-skin-card__points-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.52rem;
  line-height: 1;
  color: rgba(12, 38, 24, 0.8);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.team-skin-card__points-value {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(10, 32, 20, 0.94);
  font-variant-numeric: tabular-nums;
}

.team-widget-fallback iframe {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

@media (min-width: 768px) {
  .team-roster__row {
    gap: 1.2rem 1.4rem;
  }

  .team-skin-card {
    min-width: 7rem;
    max-width: 12.5rem;
  }

  .team-skin-card__figure--bust {
    width: 5.85rem;
    height: 7.25rem;
    flex: 0 0 7.25rem;
    margin-left: 0.15rem;
  }

  .team-skin-card__figure--bust img {
    height: 7.25rem !important;
    max-width: 6.35rem !important;
    max-height: 7.25rem !important;
  }

  .team-skin-card__figure--bust.team-skin-card__figure--iso {
    width: 6.35rem;
    height: 7.5rem;
    flex: 0 0 7.5rem;
  }

  .team-skin-card__figure--bust.team-skin-card__figure--iso img {
    height: 7.5rem !important;
    max-width: 6.75rem !important;
    max-height: 7.5rem !important;
  }

  .team-skin-card__figure--empty {
    width: 5.85rem;
    height: 7.25rem;
    flex: 0 0 7.25rem;
  }

  .team-skin-card__banner {
    min-height: 2.05rem;
    font-size: 0.82rem;
    padding: 0.5rem 1rem 0.48rem 0.36rem;
    margin-left: 0;
  }

  .team-skin-card__points {
    margin-left: 0;
    padding: 0.34rem 0.8rem 0.34rem 0.48rem;
  }

  .team-skin-card__points-value {
    font-size: 0.82rem;
  }
}
