/* === PLAYER ROSTER GALLERY CONTENT === */

.roster-gallery-title {
  text-align: center;
  margin: 40px 0 20px;
  font-weight: 900;
}

/* Team photo (big image) */
.roster-team-container {
  max-width: 1100px;
  margin: 0 auto 30px;
  text-align: center;
}

.roster-team-container img {
  display: block;
  max-width: 100%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  border: 1px solid #ccc;
}

/* === ROSTER TITLE + YEAR DROPDOWN (INLINE) === */
.roster-title-wrap {
  text-align: center;
  margin: 40px 0 20px;
}

/* Make the h1 behave nicely with an inline select */
.roster-gallery-heading {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;

  margin: 0;
  font-weight: 900;
}

.roster-year-select {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: inherit;
  line-height: inherit;

  background: transparent;
  border: none;
  padding: 0;
  margin: 0;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  padding-right: 20px;

  background-repeat: no-repeat;
  background-position: right 2px center;

  background-size: 20px 12px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}


.roster-year-select::-ms-expand {
  display: none;
}


.roster-year-select:hover {
  text-decoration: underline;
}

.roster-year-select:focus {
  outline: none;
  text-decoration: underline;
}



/* ===== FORCE 4 ACROSS ===== */
.roster-players-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

/* Player card */
.roster-grid-player {
  position: relative; /* REQUIRED for the left info bar (absolute) */
  overflow: hidden;
  transform: translateZ(0);
  box-sizing: border-box;
}

/* image */
.roster-grid-player img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.4s;
}

.roster-grid-player:hover img {
  transform: scale(1.08) translateZ(0);
}

/* Left vertical info bar */
.roster-grid-player .roster-grid-player-info {
  position: absolute;
  height: 100%;
  width: 40px;
  bottom: 0;
  left: 0;
  background-color: #151515;
}

/* Rotated text */
.roster-grid-player .roster-grid-player-info .inner {
  position: absolute;
  bottom: 0;
  left: 40px;
  height: 40px;
  line-height: 40px;
  padding-left: 32px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  white-space: nowrap;
  color: #fff;
  font-family: "Roboto Condensed", system-ui, sans-serif;
}

.roster-grid-player .roster-grid-player-info .inner > div {
  display: inline-block;
}

.roster-grid-player .player-number {
  margin-right: 29px;
  transform: rotate(90deg);
  font-size: 18px;
  font-weight: 700;
}

.roster-grid-player .player-name {
  margin-right: 39px;
  font-size: 16px;
  font-weight: 700;
}

.roster-grid-player .player-position {
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive fallbacks */
@media (max-width: 1100px) {
  .roster-players-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 500px) {
  .roster-players-grid {
    grid-template-columns: 1fr;
  }
}
