.grid-container {
    display: grid;
    grid-template-columns: 160px 1fr 160px; /* Tres columnas: dos sky y una central */
    grid-template-rows: auto;
    gap: 20px;
    max-width: 1300px; /* El contenedor no debe superar los 1200px */
    width: 100%;
    margin: 0 auto; /* Margen de 10px a los lados */
  }

  .grid-container > div {
    background-color: #ffffff;
    padding: 10px;
  }

  .sticky {
    position: sticky;
    top: 0;
  }

  /* Columna central siempre centrada, ajustable */
  .central {
    background-color: lightgray;
  }


  .central {
  max-width: 920px;
  display: block;
  width: 98%;
}

  /* Media query para dispositivos con ancho menor a 1200px */
  @media screen and (max-width: 1200px) {
    .grid-container {
      grid-template-columns: 1fr 160px; /* Eliminar sky izquierdo */
    }

    /* Eliminar sky izquierdo */
    .grid-container > .sticky:nth-child(1) {
      display: none;
    }
  }

  /* Media query para dispositivos con ancho menor a 960px */
  @media screen and (max-width: 960px) {
    .grid-container {
      grid-template-columns: 1fr; /* Solo una columna */
    }

    /* Eliminar ambos sky */
    .grid-container > .sticky:nth-child(1),
    .grid-container > .sticky:nth-child(3) {
      display: none;
    }
  }

  /* Media query para dispositivos con ancho menor a 660px */
  @media screen and (max-width: 660px) {
    .central {
      width: 98%;
      margin-left: auto;
      margin-right: auto;
    }
  }
/* Colors may be replaced by team colors */

.cp-player-name {
  font-size: 50px;
  margin-top: 50px;
  display: inline-block;
  padding-left: 20px;
}

.cp-player-name, .cp-player-number { color: #000 }


.cp-player-img {
  float: left;
  display: block;
  border-radius: 20px;
  padding-top: 20px;
  background-color: white;
  margin-top: 40px;
}

.cp-player-team-data {
  font-size: 20px;
  display: table-cell;
  width: 100%;
  padding-left: 20px;
}

.cp-player-team-data div {
  float: left;
  display: contents;
}

.cp-player-personal-data-element {
  float: left;
  display: flex;
  margin-right: 15px;
}

.cp-player-personal-data {
  margin-top: 20px;
  padding-left: 20px;
  display: flow-root;
}

.cp-player-pd-key {
  text-shadow: 1px 0 0 currentColor;
  float: left;
  margin-right: 5px;
}

.cp-player-pd-extra-space {
  clear: both;
}

.clear { clear:both; }

.cp-player-stats-element {
  float: left;
  margin: 10px 15px;
  min-width: 130px;
  border: 1px solid #483c3254;
  padding: 10px 10px 15px;
}

.cp-stats-pd-value {
  font-size: 35px;
  text-shadow: 1px 0 0 currentColor;
  color: var(--main-color);
}




/* Table */
/* Hacer la tabla desplazable si no cabe en el contenedor */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
  }

  th {
    background-color: #f4f4f4;
  }




.table-container table {
  table-layout: fixed;
}

.table-container table th {
  padding: 0;
}

.table-container table td {
  border: 0;
}

.table-container table thead {
  font-weight: bold;
  text-shadow: 1px 0 0 currentColor;
}

th.gt-game-day {
  width: 100px;
}

th.gt-game-competition {
  width: 120px;
}


th.gt-game-rival {
  width: 190px;
}

th.gt-game-result {
  width: 110px;
}

th.gt-simple-number {
  width: 45px;
  padding: 0px;
  text-align: center;
}

th.gt-double-number {
  width: 50px;
  text-align: center;
}

th.gt-triple-number {
  width: 65px;
}

.game-score-widget {
  display: flow-root;
  margin: 0 5px;
  float: left;
}

.game-score-team.game-score-winner {
}

.game-score-widget div {
  padding: 3px 0px;
  border: 1px solid;
  width: 38px;
  text-align: center;
  font-weight: bold;
  background-color: var(--white);
  text-shadow: 1px 0 0 currentColor;
  font-size: 20px;
  float: left;
}
th.gt-game-partido {
  width: 230px;
}

.game-widget {
  display: flow-root;
}

.gw-teams {
  float: left;
  display: block;
  width: 260px;
}
.gw-date {
  font-size: 12px;
}

.gw-competition {
  font-size: 12px;
  float: left;
  margin-right: 10px;
}

img.gw-team-logo {
  width: 24px;
  float: left;
}

.table-container tbody td {
  padding: 5px 5px;
  display: table-cell;
}

.gw-team {
  float: left;
  padding: 0;
  margin: 0;
  display: flow-root;
  width: 80px;
}

.gw-team.gw-team-local {
  text-align: right;
}

.gw-team-local img.gw-teamLogo {
  float: right;
  margin-left: 5px;
  margin-right: 0px;
}

img.gw-teamLogo {
  height: 30px;
  display: flow-root;
  float: left;
  margin-right: 5px;
  margin-left: 0px;
}

span.team-name {
  line-height: 30px;
  width: auto;
  display: inline-table;
  text-shadow: 1px 0 0 currentColor;
}

.game-score-team.game-score-winner {
  background: var(--third-color);
}

tr.table-data-row td:not(:first-child) {
text-align: center;
vertical-align: middle;
}










/* Roster — Player Widget */

.player-widget {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--third-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.player-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  cursor: pointer;
}

.player-image {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.player-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--fourth-color);
  display: block;
}

.player-jersey-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--main-color);
  color: var(--third-color);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0.3px;
}

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

.player-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-color);
  margin: 0 0 4px 0;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.player-position {
  font-size: 13px;
  color: var(--secondary-color);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.player-stats-small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--secondary-color);
}

.player-stat-item strong {
  color: var(--main-color);
  font-weight: 700;
  margin-right: 2px;
}

/* Anchor wrapping the widget in roster lists */
.gc-team-roster a,
.bestplayers-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Grid de la plantilla */
.gc-team-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.gc-team-roster .player-widget {
  margin-bottom: 0;
}

/* Página de detalle: sin hover ni cursor pointer */
body.basketball_player_details .player-widget {
  cursor: default;
}

span.gt-palyer-title {
  display: block;
  text-shadow: 1px 0 0 currentColor;
  font-size: 26px;
  margin-top: 30px;
  color: var(--main-color);
}

.matches h2, .career h2 {
  text-shadow: 1px 0 0 currentColor;
  color: var(--secondary-color);
}

body.basketball_player_details .player-widget:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: default;
}



tr.tb-player-seasons {
  text-shadow: 1px 0 0 currentColor;
  font-size: 20px;
  line-height: 30px;
  border-top: 1px solid var(--secondary-color);
  border-bottom: 1px solid var(--third-color);
}

tr.tb-player-seasons img {
  margin-right: 5px;
  padding-top: 4px;
}

tr.tb-player-tournament td {
  padding-top: 10px;
  text-shadow: 1px 0 0 currentColor;
  padding-bottom: 7px;
}
tr.tb-player-row-totals {
  border-bottom: 1px solid var(--third-color);
}

tr.tb-player-tournament td {
  padding-top: 10px;
}

tr.tb-space-separator.table-data-no-hover {
  padding-top: 50px;
  display: block;
}

tr.tb-player-tournament {
  border-bottom: 1px solid;
  border-color: var(--fourth-color);
}

td.gt-standing-team img {
  display: flow-root;
  width: 24px;
  height: 24px;
  margin-top: -5px;
  padding-bottom: 6px;
}

.game-point {
  display: inline-flex;
  width: 23px;
  height: 23px;
  margin: 6px 2px 0px;
  border-radius: 30px;
}


/* Tournament */

.gt-simple-mini { width: 30px; }


.gc-round {
background-color: var(--main-color);
color: var(--third-color);
}

.gc-round-info {
display: flex;
padding: 10px 5px;
}


.gc-round-selector.gc-round-selector-left {
float: left;
display: flow-root;
}

.gc-round-selector.gc-current-round {
float: left;
display: flow;
margin: 0 auto;
width: 300px;
text-align: center;
}

.gc-round-selector.gc-round-selector-right {
float: right;
display: flow-root;
}


.game-center-main-content .game-widget {
margin: 0 auto;
float: none;
padding: 5px 0px;
border-bottom: 1px solid;
width: 100%;
display: flow-root;
border-bottom-color: var(--third-color);
display: flex;
justify-content: space-between;
}

.gw-time {
width: 50px;
font-size: 12px;
margin-top: 2px;
}

.game-center-main-content .gw-teams {
float: none;
width: 450px;
display: contents;
align-items: center;
justify-content: space-around;
margin: 0 auto;
flex: 1;
text-align: center;
}

.gw-team.gw-team-local {
text-align: right;
display: block;
}

.gw-team {
float: left;
padding: 0;
margin: 0;
display: block;
width: 100%;
display: flex;
max-width: 240px;
}

.game-score-widget {
display: flow-root;
margin: 0 5px;
float: left;
}


.ad-slot.ad-slot-leaderboard {
display: block;
margin: 0 auto;
width: 728px;
height: 90px;
margin: 50px auto;
}

.ad-slot.ad-slot-wide-skyscraper {
width: 160px;
height: 600px;

}

.ad-slot {
background-image: repeating-conic-gradient(#ffffff 0% 25%, #f6f6f6 0% 50%);
background-position: 0 0, 10px 10px;
background-size: 20px 20px;
background-color: #f6f6f6;
}

.gw-match-date {
width: 50px;
margin-right: 10px;
display: flow-root;
float: left;
flex: 1;
text-align: left;
}
.gw-match-extra {
width: 50px;
height: 30px;
flex: 1;
text-align: right;
}


.game-point.game-square-color-red {
background-color: var(--red-standings);
border: 1px solid var(--red);
}


.game-point.game-square-color-green {
background: var(--green-standings);
border: 1px solid var(--green);
}

.game-point.game-square-color-orange {
  background: #fffa6166;
  border: 1px solid #ffa46166;
}

.table-container thead th {
background-color: white;
border: 0px;
border-bottom: 1px solid var(--main-color);
}

.game-square-color-next {
  background: var(--white);
  border: 1px solid var(--main-color);
}

.gc-standings .table-container td {
padding: 0px;
height: 30px;
}


.table-container tbody tr {
border-bottom: 1px solid var(--third-color);
}

td.gt-standing-team {
text-shadow: 1px 0 0 currentColor;
}

.last-5-games {
padding-top: 0px;
display: flow-root;
display: inline-flex;
align-content: center;
align-items: center;
}


.game-widget:hover, .table-container tbody tr:hover {
background-color: var(--fourth-color);
}

.last-5-games .gw-teamLogo {
  width: 15px;
  height: 15px;
  padding-top: 4px;
  padding-left: 4px;
}

tr.tb-player-tournament.table-data-no-hover .gt-triple-number {
  font-size: 13px;
}
tr.tb-player-seasons.table-data-no-hover {
  border-bottom-color: var(--secondary-color);
}
tr.tb-player-row-totals {
  border-bottom-color: var(--main-color) !important;
}

tr.tb-space-separator.table-data-no-hover {
  border-bottom: 0px;
}

.table-data-no-hover {
  background-color: #fff !important;
}

tr.tb-player-competition td {
  text-align: center;
  line-height: 30px;
}

tr.tb-player-competition.table-data-no-hover {
  border-bottom: 0px;
}

.table-data-no-border {
  border-bottom: 0px !important;
}

td.gt-standing-team a:hover {
  text-shadow: 1px 0 0 currentColor;
  color: var(--main-color);
}
td.gt-standing-team a {
  text-decoration: none;
  color: #000;
  text-shadow: none;
}

td.gt-standing-team a:hover {
  color: var(--main-color);
  text-shadow: 1px 0 0 currentColor;
}
td.gt-standing-team a {
  color: black;
  text-decoration: none;
}

.gc-team-roster a {
  color: black;
}

.gc-round-selector a:hover {
  text-shadow: 1px 0 0 currentColor;
}

.gc-round-selector a {
  color: var(--third-color);
  text-decoration: none;
}

.game-score-widget.game-score-widget-notstarted {
  width: 80px;
  line-height: 30px;
  text-shadow: 1px 0 0 currentColor;
}

.gc-standings .gt-game-partido {
  padding-left: 8px;
}
.gc-standings thead th {
  text-align: left;
}

.gc-standings {
  width: 640px;
  float: left;
  margin-right: 10px;
}

.ad-slot.ad-slot-wide-robadoble {
  width: 300px;
  height: 600px;
}

.game-center-aside {
  display: flow-root;
  margin-left: 10px;
}

span.ps-color {
  background-color: #ffffff;
  padding: 6px 6px;
  margin-left: 1px;
  width: 13px;
  font-size: 13px;
  display: block;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  text-align: left;
}

span.ps-color-champions {
  background-color: #00cdff9c;
}

span.ps-color-europa-league {
  background-color: #ff9a009c;
}

span.ps-color-conference-quali {
  background-color: #00ff449c;
}
span.ps-color-playoff-descenso {
  background-color: #ffa2a29c;
}

span.ps-color-descenso {
  background-color: #ff00009c;
}

span.ps-color.ps-color-playoff {
  background-color: #00d7ff9c;
}

span.ps-color.ps-color-playoff-quali {
  background-color: #00d7ff4d;
}

span.ps-color.ps-color-promotion {
  background-color: #ceff007d;
}



  /* Media query para dispositivos con ancho menor a 1200px */
  @media screen and (max-width: 700px) {

    .grids-widget {
      width: 100%;
      max-width: 100% !important;
  }

  .games-list {
    width: 100%;
    max-width: 100%;
}

.game-widget {
  display: inline-flex;
  width: 100%;
}

.gw-match-date {
  width: 40px !important;
  display: inline-grid;
}

.grids-widget .gw-time {
  float: left;
  padding-left: 5px;
  padding-bottom: 2px;
}

.gw-teams {
  float: left;
  display: block;
  max-width: 300px;
  margin-top: 9px;
  width: 100%;
}

  }


  .gw-button a:hover {
    text-shadow: 1px 0 0 currentColor;
}
.gw-button a {
    color: var(--third-color);
    padding: 7px 10px;
    text-align: center;
    display: block;
    text-decoration: none;
    font-size: 14px;
}

.gw-button {
  display: flow-root;
  background-color: var(--main-color);
  color: white;
  text-align: center;
}






span.team-name {
  line-height: 30px;
  width: auto;
  display: inline-block;
  text-shadow: 1px 0 0 currentColor;
  white-space: nowrap;
  overflow: hidden;
  -webkit-background-clip: text;
  color: #000;
}





/* Widgets */

.grids-widget .gw-team {
  width: 70px;
  font-size: 15px;
}

.grids-widget img.gw-teamLogo {
  width: 23px;
  height: 23px;
}

.grids-widget .game-score-team {
  font-size: 17px;
}

.grids-widget .game-score-team {
  font-size: 17px;
  width: 33px;
}

.grids-widget .gw-match-date {
  width: 50px;
  margin-bottom: 3px;
  margin-top: 10px;
  float:left;
  margin-right: 0px;
}

.grids-widget .gw-teams {
  padding-top: 10px;    
  float: right;
  display: block;
  width: 180px;
}

.grids-widget .gw-time {
  float: left;
  padding-left: 5px;
  padding-bottom: 2px;
}

.grids-widget {
  max-width: 230px;
  display: block;
  width: 100%;
}

.grids-widget .game-widget {
  border-bottom: 1px solid var(--third-color);
  padding-bottom: 3px;
}



.game-widget .game-score-widget.game-score-widget-notstarted {
  width: 30px;
  text-align: center;
}


.grid-widget-main-links {
  display: flex;
  align-items: center;
  background-color: var(--main-color);
  padding: 4px 4px;
  font-size: 13px;
  color: white;
}

.grid-widget-main-links a {
  color: var(--third-color);
  text-decoration: none;
  margin: 0 4px;
}

.grid-widget-main-links a:hover {
  text-shadow: 1px 0 0 currentColor;
}

.grid-widget-main-links .right {
  margin-left: auto;
}


.gc-tournament-logo img {
  width: 100px;
}

.gc-tournament-header {
  display: flow-root;
  margin-bottom: 20px;
}