/**
 * Player competition honours gallery (Rewards tab).
 */

.player-awards-section {
  margin: 0 0 1.75rem;
}

.player-awards-section.ctm-component--modern .ctm-visible {
  isolation: isolate;
}

.player-awards-section .ctm-season-filter__select,
.player-awards-section .ctm-season-filter__select option {
  text-transform: none;
}

.player-awards-section .ctm-visible__subtitle {
  max-width: 52ch;
  white-space: normal;
  text-wrap: pretty;
}

.player-stats-wrapper .player-awards-section {
  margin-top: 1rem;
}

.player-stats-wrapper .player-awards-section--embedded,
.team-trophies .player-awards-section--embedded {
  margin-top: 0;
  margin-bottom: 0;
}

.player-awards-section--embedded {
  margin: 0;
}

.player-awards-section--embedded.ctm-component--modern .ctm-visible {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: auto;
}

.player-awards-section--embedded .ctm-visible__header {
  justify-content: flex-end;
  align-items: flex-end;
  padding: 1.25rem 1.5rem 0.35rem;
}

.player-awards-section--embedded .ctm-visible__subtitle {
  margin: 0 auto 0 0;
  max-width: none;
  text-transform: none;
}

.player-awards-section--embedded.ctm-component--modern .ctm-gallery {
  padding-top: 1.15rem;
}

.player-awards-section--embedded .player-awards-more-wrap {
  padding-bottom: 1.5rem;
}

.tab-content .team-trophies__container,
.player-stats-wrapper .team-trophies__container,
.single-staff-page .team-trophies__container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Club tab is full-width; keep heading + season filter on one row. */
.player-awards-section--club .ctm-visible__header {
  justify-content: space-between;
  align-items: flex-start;
}

.player-awards-section--club .ctm-visible__heading {
  flex: 1 1 12rem;
  text-align: left;
}

.player-awards-section--club .ctm-visible__subtitle {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.player-awards-section.ctm-component--modern .ctm-gallery {
  padding-top: 1.5rem;
}

.player-awards-section--club.ctm-component--modern .ctm-gallery {
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  justify-content: center;
  padding-top: 1.5rem;
}

.player-awards-section--embedded.player-awards-section--club .ctm-visible__header {
  justify-content: space-between;
  align-items: flex-end;
}

.player-awards-section--embedded.player-awards-section--club .ctm-visible__subtitle {
  width: auto;
  max-width: none;
  margin: 0;
}

.player-awards-section--embedded.player-awards-section--club.ctm-component--modern .ctm-gallery {
  padding-top: 1.15rem;
}

.player-awards-section .ctm-card__body--mom-meta {
  padding: 0.7rem 0.9rem 0.85rem;
}

.player-awards-section .ctm-card__body--mom-meta .ctm-card__recipient {
  min-height: 0;
}

.player-awards-section .ctm-card__body--mom-meta .ctm-card__recipient-name {
  font-size: 12px;
  font-weight: 700;
  color: #5c534c;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-awards-section .ctm-card__body--mom-meta a.ctm-card__recipient-name:hover {
  color: #c2410c;
}

.player-awards-more-wrap {
  display: flex;
  justify-content: center;
  padding: 0.15rem 1.5rem 1.45rem;
}

.player-awards-more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.35rem;
  border: 1px solid rgba(31, 28, 26, 0.12);
  border-radius: 12px;
  background: #fffaf4;
  color: #3d342c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-awards-more:hover {
  background: #fff;
  border-color: rgba(194, 65, 12, 0.28);
}

.player-awards-more:active {
  transform: scale(0.98);
}

.player-awards-more:focus-visible {
  outline: 2px solid #c2410c;
  outline-offset: 2px;
}

.player-awards-sentinel {
  height: 1px;
  pointer-events: none;
}

@media (max-width: 767px) {
  .player-awards-section {
    margin-bottom: 1.25rem;
  }

  .player-awards-section.ctm-component--modern .ctm-visible {
    border-radius: 18px;
  }

  .player-awards-more-wrap {
    padding: 0 1.1rem 1.25rem;
  }
}
