.playerSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
  max-width: 960px;
  gap: 32px;
}

.playerContainer {
  display: flex;
  align-items: flex-start;
  justify-content: start;
  background: white;
  padding: 24px;
  filter: drop-shadow(#0000001a 0rem 0rem 10px);
  border-radius: 8px;
  gap: 32px;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.playerImage {
  width: 200px;
  height: 200px;
  background: #edeff2;
  border-radius: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.playerImage img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.playerInfo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  height: auto;
  width: 100%;
}

@media (min-width: 769px) {
  .playerInfo {
    height: 200px; /* Altura fixa apenas em desktop */
  }
}

.playerInfoDetails {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: space-between;
}

.playerInfoDetailsLeft,
.playerInfoDetailsRight {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playerInfoDetails table {
  width: 100%;
  border-spacing: 0;
}

.playerInfoDetails tr {
  display: flex;
  align-items: center;
  gap: 8px;
}

.playerInfoDetails td {
  padding: 8px 4px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Desktop */
.playerInfoDetails td:nth-child(2n-1) {
  width: 10%;
  padding-right: 0;
}

.playerInfoDetails td:nth-child(2n) {
  width: 40%;
  padding-left: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .playerContainer {
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 24px;
  }

  .playerInfo {
    align-items: center;
    text-align: center;
  }

  .playerInfoDetails table {
    width: 100%;
  }

  .playerInfoDetails tr {
    flex-direction: row;
    width: 100%;
    margin-bottom: 16px;
  }

  .playerInfoDetails td {
    padding: 4px;
  }

  /* Sobrescreve as regras do desktop para mobile */
  .playerInfoDetails td:nth-child(2n-1),
  .playerInfoDetails td:first-child {
    width: 25%;
  }

  .playerInfoDetails td:nth-child(2n),
  .playerInfoDetails td:last-child {
    width: 75%;
  }
}

.playerInfoDetails .columnTitle {
  color: #677081;
}

.playerInfoDetails a {
  text-decoration: none;
}

.playerInfoDetails td>a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.playerInfoDetails td>span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.playerTeamImage {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.playerTeam {
  display: flex;
  align-items: center;
  gap: 32px;
}

.playerTeam span {
  color: #677081;
}

.playerTeam a {
  text-decoration: none;
}

.playerCountryImage {
  height: 16px;
  vertical-align: middle;
  border-radius: 4px;
  overflow: hidden;
}

.separator {
  width: 100% !important;
  height: 1px !important;
  background: #edeff2 !important;
  padding: 0 2px !important;
  margin: 3px 0 !important;
}

.titleSection {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  white-space: nowrap;
}

.titleSection h2 {
  white-space: nowrap;
}

.titleSeparator {
  height: 1px;
  background-color: #E5E7EB;
  width: 100%;
}

.gearContainer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: white;
  padding: 24px;
  filter: drop-shadow(#0000001a 0rem 0rem 10px);
  border-radius: 8px;
  gap: 24px;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.gearItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 8px;
  position: relative;
  width: calc(25% - 18px);
  margin-bottom: 48px; /* Espaço para o nome do produto */
}

.gearItem > div {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  aspect-ratio: 1 / 1;
}

.gearItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #edeff2;
  border-radius: 8px;
  transition: filter 0.2s ease;
}

/* Ajuste do botão de compra */
.affiliate-button {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  background: rgb(37, 100, 235);
  color: white;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  z-index: 2;
}

/* Mostra o botão quando hover na div pai da imagem */
.gearItem > div:hover img {
  filter: brightness(0.7);
}

.gearItem > div:hover .affiliate-button {
  opacity: 1;
}

/* Ajuste do título do produto */
.gearItem h3 {
  font-size: 16px;
  width: 100%;
  text-align: start;
  margin-top: 8px;
}

/* Ajustes responsivos para a seção de equipamentos */
.gearContainer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: white;
  padding: 24px;
  filter: drop-shadow(#0000001a 0rem 0rem 10px);
  border-radius: 8px;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.gearItem {
  width: calc(25% - 18px);
}

/* Tablets */
@media (max-width: 1024px) {
  .gearItem {
    width: calc(33.333% - 16px);
    margin-bottom: 48px;
  }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
  .gearItem {
    width: calc(50% - 12px);
    margin-bottom: 48px;
  }

  .gearContainer {
    padding: 16px;
    gap: 16px;
  }
}

/* Celulares */
@media (max-width: 480px) {
  .gearItem {
    width: calc(50% - 8px);
    margin-bottom: 48px;
  }

  .titleSection h2 {
    white-space: wrap;
    text-align: center;
    font-size: 16px;
  }

  .playerImage {
    width: 160px;
    height: 160px;
  }

  .playerImage img {
    width: 160px;
    height: 160px;
  }

  .playerInfoDescription {
    font-size: 14px;
  }

  .gearItem h3 {
    font-size: 14px;
  }

  .gearContainer {
    gap: 12px;
  }

  .product-name {
    font-size: 14px;
    min-height: 34px;
  }
}

.buyButton {
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgb(37, 100, 235);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: rgb(29, 78, 216);
}

@media (max-width: 768px) {
  .buyButton {
    width: 100%;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

.product-name {
  font-size: 16px;
  width: 100%;
  text-align: start;
  color: #000;
  text-decoration: none;
  display: block;
  position: absolute;
  bottom: -45px;
  line-height: 1.2; /* Line height consistente */
  min-height: 38px; /* Altura mínima para até 2 linhas de texto */
}

.product-name:hover {
  color: rgb(37, 100, 235);
}

.settingsContainer {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 24px;
  filter: drop-shadow(#0000001a 0rem 0rem 10px);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  gap: 24px;
}

.gearSection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gearSection h3 {
  color: #282828;
  font-size: 18px;
  margin: 0;
}

.settingsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .settingsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.settingItem {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.settingLabel {
  color: #677081;
  font-size: 14px;
}

.settingValue {
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .settingsContainer {
    padding: 16px;
    gap: 16px;
  }

  .settingsGrid {
    gap: 12px;
  }

  .gearSection {
    gap: 12px;
  }

  .settingValue {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .settingsGrid {
    grid-template-columns: 1fr;
  }

  .settingItem {
    padding: 10px;
  }

  .gearSection h3 {
    font-size: 16px;
  }
}

.crosshairPreview {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.background-controls {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  pointer-events: none;
}

.bg-button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: auto;
  transition: background-color 0.2s;
}

.bg-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.crosshairWrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  .playerContainer{
    background: #181818 !important;
  }

  .productName {
    color: #ededed !important;
  }

  .settingsContainer{
    background: #181818 !important;
  }

  .settingItem {
    background: #242424 !important;
  }

  .gearContainer {
    background: #181818 !important;
  }

  .product-name {
    color: #ededed !important;
  }

  .productDetails {
    color: #ededed !important;
  }	

  .teamContainer{
    background: #181818 !important;
  }
}
