.tabla-subidas,
.tabla-bajadas {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 10px;
}

.tabla-subidas .player-row,
.tabla-bajadas .player-row {
  display: flex;
  min-width: 475px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #ffffff;
  transition: transform 0.2s ease;
  position: relative;
}

.tabla-subidas .player-row:hover,
.tabla-bajadas .player-row:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.tabla-subidas .player-info,
.tabla-bajadas .player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tabla-subidas .player-position,
.tabla-bajadas .player-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.position {
  font-size: 12px;
  font-weight: bold;
  color: #ff4b44;
  background: #ffe5e5;
  padding: 5px 10px;
  border-radius: 3px;
}

.tabla-subidas .team-logo-container,
.tabla-bajadas .team-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
}

.tabla-subidas .team-logo,
.tabla-bajadas .team-logo {
  width: 100%;
  height: 100%;
}

.tabla-subidas .points,
.tabla-bajadas .points {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  background: #333;
  padding: 5px 10px;
  border-radius: 3px;
}

.tabla-subidas .player-images,
.tabla-bajadas .player-images {
  display: flex;
  align-items: center;
  gap: 5px;
}

.player-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ddd;
  object-fit: cover;
  background: #ececec no-repeat center bottom;
} 

.tabla-subidas .player-values,
.tabla-bajadas .player-values {
  text-align: right;
  padding-right: 40px;
}

.tabla-subidas .market-value,
.tabla-bajadas .market-value {
  font-size: 1.1rem;
  color: #505050;
  font-weight: bold;
  margin-bottom: -7px;
  white-space: nowrap;
}

.tabla-subidas .price-change {
  font-size: 16px;
  font-weight: bold;
  color: #0d950d;
}

.tabla-bajadas .price-change {
  font-size: 16px;
  font-weight: bold;
  color: #d81b1f;
}

.tabla-subidas a.player-row:after {
  display: inline-block !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  color: #0d950d;
  font-weight: 900;
  content: "\f35b";
  visibility: visible !important;
  font-size: 30px;
  height: auto !important;
  margin-top: 0 !important;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.tabla-bajadas a.player-row:after {
  display: inline-block !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  color: #d81b1f;
  font-weight: 900;
  content: "\f358";
  visibility: visible !important;
  font-size: 30px;
  height: auto !important;
  margin-top: 0 !important;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.name {
  font-weight: bold;
  font-size: 0.925rem;
  color: #333;
  white-space: nowrap;
}

.position-pt {
  background-color: #ffd800;
  color: #000000;
}

.position-df {
  background-color: #03a9f4;
  color: #ffffff;
}

.position-mc {
  background-color: #10af00;
  color: #ffffff;
}

.position-dl {
  background-color: #ff0000;
  color: #ffffff;
}

/* Media queries */

@media (max-width: 1225px) {
  .tabla-subidas .player-row,
  .tabla-bajadas .player-row {
    min-width: auto;
    padding: 8px;
  }
  .tabla-subidas .player-pic,
  .tabla-bajadas .player-pic {
    width: 50px;
    height: 50px;
  }
  .tabla-subidas .team-logo-container,
  .tabla-bajadas .team-logo-container {
    width: 25px;
    height: 25px;
  }
  .tabla-subidas .points,
  .tabla-subidas .position,
  .tabla-bajadas .points,
  .tabla-bajadas .position {
    font-size: 10px;
    padding: 4px 8px;
  }
  .tabla-subidas .market-value,
  .tabla-bajadas .market-value {
    font-size: 1rem;
  }
  .tabla-subidas a.player-row:after,
  .tabla-bajadas a.player-row:after {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .tabla-subidas .player-info,
  .tabla-bajadas .player-info {
    flex-wrap: wrap;
    gap: 5px;
  }
  .tabla-subidas .player-values,
  .tabla-bajadas .player-values {
    text-align: right;
    padding-right: 30px;
  }
  .tabla-subidas .player-pic,
  .tabla-bajadas .player-pic {
    width: 45px;
    height: 45px;
  }
  .tabla-subidas .market-value,
  .tabla-bajadas .market-value {
    font-size: 0.9rem;
  }
  .tabla-subidas a.player-row:after,
  .tabla-bajadas a.player-row:after {
    font-size: 22px;
  }
}

@media (max-width: 880px) {
  .tabla-subidas,
  .tabla-bajadas {
    padding: 5px;
    gap: 5px;
  }
  .tabla-subidas .player-pic,
  .tabla-bajadas .player-pic {
    width: 30px;
    height: 30px;
  }
  .tabla-subidas .team-logo-container,
  .tabla-bajadas .team-logo-container {
    width: 15px;
    height: 15px;
  }
  .tabla-subidas .name,
  .tabla-bajadas .name {
    font-size: 0.65rem;
  }
  .tabla-subidas .points,
  .tabla-bajadas .points,
  .tabla-subidas .position,
  .tabla-bajadas .position {
    font-size: 8px;
    padding: 2px 4px;
  }
  .tabla-subidas .market-value,
  .tabla-bajadas .market-value {
    font-size: 0.65rem;
  }
  .tabla-subidas a.player-row:after,
  .tabla-bajadas a.player-row:after {
    font-size: 15px;
  }
}

@media (max-width: 782px) {
:where(.wp-block-columns.is-layout-flex) {
    gap: 0 !important;
}
  .tabla-subidas .player-row,
  .tabla-bajadas .player-row {
    min-width: auto;
    padding: 8px;
  }
  .tabla-subidas .player-pic,
  .tabla-bajadas .player-pic {
    width: 50px;
    height: 50px;
  }
  .tabla-subidas .team-logo-container,
  .tabla-bajadas .team-logo-container {
    width: 25px;
    height: 25px;
  }
  .tabla-subidas .name,
  .tabla-bajadas .name {
    font-size: 0.925rem;
  }
  .tabla-subidas .points,
  .tabla-bajadas .points,
  .tabla-subidas .position,
  .tabla-bajadas .position {
    font-size: 10px;
    padding: 4px 8px;
  }
  .tabla-subidas .market-value,
  .tabla-bajadas .market-value {
    font-size: 1rem;
  }
  .tabla-subidas a.player-row:after,
  .tabla-bajadas a.player-row:after {
    font-size: 24px;
  }
}

@media (max-width: 465px) {
  .tabla-subidas,
  .tabla-bajadas {
    padding: 5px;
    gap: 5px;
  }
  .tabla-subidas .player-pic,
  .tabla-bajadas .player-pic {
    width: 50px;
    height: 50px;
  }
  .tabla-subidas .team-logo-container,
  .tabla-bajadas .team-logo-container {
    width: 20px;
    height: 20px;
  }
  .tabla-subidas .name,
  .tabla-bajadas .name {
    font-size: 0.725rem;
    margin-bottom: -5px;
  }
  .tabla-subidas .player-name-position,
  .tabla-bajadas .player-name-position {
    margin-left: 5px;
  }
  .tabla-subidas .price-change,
  .tabla-bajadas .price-change {
    font-size: 0.725rem;
  }
  .tabla-subidas .market-value,
  .tabla-bajadas .market-value {
    font-size: .9rem;
  }
  .tabla-subidas .player-values,
  .tabla-bajadas .player-values {
    padding-right: 40px;
  }
  .tabla-subidas .points,
  .tabla-bajadas .points,
  .tabla-subidas .position,
  .tabla-bajadas .position {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .tabla-subidas a.player-row:after,
  .tabla-bajadas a.player-row:after {
    font-size: 30px;
  }
}

@media (max-width: 415px) {
  .tabla-subidas,
  .tabla-bajadas {
    padding: 5px;
    gap: 5px;
  }
  .tabla-subidas .player-pic,
  .tabla-bajadas .player-pic {
    width: 40px;
    height: 40px;
  }
  .tabla-subidas .team-logo-container,
  .tabla-bajadas .team-logo-container {
    width: 14px;
    height: 14px;
  }
  .tabla-subidas .name,
  .tabla-bajadas .name {
    font-size: 0.725rem;
  }
  .tabla-subidas .player-name-position,
  .tabla-bajadas .player-name-position {
    margin-left: 2px;
  }
  .tabla-subidas .price-change,
  .tabla-bajadas .price-change {
    font-size: 0.525rem;
  }
  .tabla-subidas .market-value,
  .tabla-bajadas .market-value {
    font-size: 0.725rem !important;
    margin-bottom: -3px;
  }
  .tabla-subidas .player-values,
  .tabla-bajadas .player-values {
    padding-right: 35px;
  }
  .tabla-subidas .points,
  .tabla-bajadas .points,
  .tabla-subidas .position,
  .tabla-bajadas .position {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .tabla-subidas a.player-row:after,
  .tabla-bajadas a.player-row:after {
    font-size: 25px;
  }
}

@media (max-width: 350px) {
  .tabla-subidas,
  .tabla-bajadas {
    padding: 5px;
    gap: 5px;
  }
  .tabla-subidas .player-pic,
  .tabla-bajadas .player-pic {
    width: 25px;
    height: 25px;
  }
  .tabla-subidas .team-logo-container,
  .tabla-bajadas .team-logo-container {
    width: 10px;
    height: 10px;
  }
  .tabla-subidas .name,
  .tabla-bajadas .name {
    font-size: 0.5rem;
  }
  .tabla-subidas .points,
  .tabla-bajadas .points,
  .tabla-subidas .position,
  .tabla-bajadas .position {
    font-size: 0.425rem;
    padding: 2px 4px;
  }
  .tabla-subidas .price-change,
  .tabla-bajadas .price-change {
    font-size: 0.425rem !important;
  }
  .tabla-subidas .market-value,
  .tabla-bajadas .market-value {
    font-size: 0.525rem;
    margin-bottom: -2px;
  }
  .tabla-subidas .player-values,
  .tabla-bajadas .player-values {
    padding-right: 25px;
  }
  .tabla-subidas .points,
  .tabla-bajadas .points,
  .tabla-subidas .position,
  .tabla-bajadas .position {
    font-size: 0.425rem;
    padding: 2px 4px;
  }
  .tabla-subidas a.player-row:after,
  .tabla-bajadas a.player-row:after {
    font-size: 15px;
  }
}
