/* -------------------------------- */
/* -- PLAYER PAGE ----------------- */

html {
  scroll-behavior: smooth;
}

.player-page main {
  width: 100%;
  overflow: hidden;
}

.player-shell {
  width: calc(100% - 160px);
  max-width: 1400px;
  margin: 0 auto;
}

.player-section {
  padding: 80px 0;
  scroll-margin-top: 80px;
}

.player-eyebrow {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.player-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.player-section-heading h2 {
  margin: 0;
  color: var(--primary);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.player-section-heading > p {
  width: 420px;
  max-width: 45%;
  margin: 0;
  color: var(--primary-60);
  font-size: 1.1rem;
  line-height: 1.4;
}

.player-section-heading--actions {
  align-items: center;
}

/* -- PLAYER PAGE ---------- END -- */
/* -------------------------------- */
/* -- PLAYER HERO ----------------- */

.player-hero {
  --player-hero-image: none;
  height: 680px;
  width: calc(100% - 40px);
  position: relative;
  margin: 20px;
  overflow: hidden;
  border-radius: 40px;
  color: var(--background-accent);
  background-color: var(--primary);
  background-image: var(--player-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-sizing: border-box;
}

.player-hero__wash {
  position: absolute;
  inset: 0;
  background-color: var(--primary-80);
}

.player-hero__inner {
  height: calc(100% - 75px);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 60px;
  padding-top: 105px;
  box-sizing: border-box;
}

.player-hero__visual {
  height: calc(100% - 30px);
  width: 42%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.player-hero__portrait {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background-color: var(--primary-20);
}

.player-hero__portrait img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.player-hero__silhouette {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-60);
}

.player-hero__silhouette::after {
  content: "Kein Spielerbild";
  color: var(--background-accent-60);
  font-size: 1rem;
}

.player-hero__silhouette span {
  display: none;
}

.player-hero__clubmark {
  height: 90px;
  width: 90px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 20px;
  background-color: var(--background-accent);
  box-sizing: border-box;
}

.player-hero__clubmark img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.player-hero__content {
  width: calc(58% - 60px);
  padding-bottom: 55px;
}

.player-hero__content .player-eyebrow {
  color: var(--background-accent-60);
}

.player-hero h1 {
  margin: 0;
  color: var(--background-accent);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 600;
  line-height: .85;
  text-transform: uppercase;
}

.player-hero h1 span {
  display: block;
  margin-bottom: 10px;
  color: var(--background-accent-60);
  font-size: .45em;
  font-weight: 400;
  line-height: 1;
}

.player-hero__statusline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  color: var(--background-accent-80);
}

.player-hero__statusline > * {
  position: relative;
  color: inherit;
  font-size: 1rem;
  text-decoration: none;
}

.player-hero__statusline > * + *::before {
  content: "·";
  position: absolute;
  left: -12px;
}

.player-hero__statusline a:hover {
  color: var(--background-accent);
}

.player-hero__quickfacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--background-accent-20);
}

.player-hero__quickfacts div {
  padding: 20px 15px 0;
  border-right: 1px solid var(--background-accent-20);
}

.player-hero__quickfacts div:first-child {
  padding-left: 0;
}

.player-hero__quickfacts div:last-child {
  border-right: 0;
}

.player-hero__quickfacts strong,
.player-hero__quickfacts span {
  display: block;
}

.player-hero__quickfacts strong {
  font-size: 2rem;
  font-weight: 500;
}

.player-hero__quickfacts span {
  margin-top: 3px;
  color: var(--background-accent-50);
  font-size: .75rem;
  text-transform: uppercase;
}

.player-hero__nav {
  height: 75px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--background-accent-20);
}

.player-hero__nav a {
  color: var(--background-accent-60);
  font-size: .85rem;
  text-decoration: none;
  transition: all ease .3s;
}

.player-hero__nav a:hover {
  color: var(--background-accent);
}

/* -- PLAYER HERO ---------- END -- */
/* -------------------------------- */
/* -- PLAYER PROFILE -------------- */

.player-overview__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.player-facts-card,
.player-status-card {
  border-radius: 20px;
  overflow: hidden;
}

.player-facts-card {
  padding: 20px 40px;
  background-color: var(--background-accent);
}

.player-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.player-facts > div {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--primary-10);
}

.player-facts > div:nth-child(odd) {
  padding-right: 30px;
  border-right: 1px solid var(--primary-10);
}

.player-facts > div:nth-child(even) {
  padding-left: 30px;
}

.player-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.player-facts dt {
  color: var(--primary-50);
  font-size: .8rem;
}

.player-facts dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

.player-status-card {
  padding: 35px;
  color: var(--background-accent);
  background-color: var(--primary);
}

.player-status-card__label {
  margin: 0 0 25px;
  color: var(--background-accent-50);
  font-size: .8rem;
}

.player-status-card__dot {
  height: 10px;
  width: 10px;
  display: block;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: var(--green);
}

.player-status-card--injured .player-status-card__dot {
  background-color: var(--secondary-light);
}

.player-status-card h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
}

.player-status-card > p:not(.player-status-card__label) {
  margin: 15px 0 25px;
  color: var(--background-accent-70);
  line-height: 1.4;
}

.player-status-card dl {
  display: flex;
  gap: 30px;
  margin: 20px 0;
}

.player-status-card dl div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-status-card dt {
  color: var(--background-accent-50);
  font-size: .7rem;
}

.player-status-card dd {
  margin: 0;
}

.player-status-card a {
  color: var(--background-accent);
  font-size: .85rem;
  text-decoration: none;
}

.player-status-card a:hover {
  color: var(--background-accent-60);
}

/* -- PLAYER PROFILE ------ END -- */
/* -------------------------------- */
/* -- PLAYER CAREER --------------- */

.player-career {
  width: calc(100% - 40px);
  margin: 20px;
  padding: 80px 0;
  border-radius: 40px;
  color: var(--background-accent);
  background-color: var(--primary);
  box-sizing: border-box;
}

.player-career .player-shell {
  width: calc(100% - 120px);
}

.player-career .player-section-heading h2 {
  color: var(--background-accent);
}

.player-career .player-eyebrow {
  color: var(--background-accent-50);
}

.player-slider-controls {
  display: flex;
  gap: 10px;
}

.player-slider-controls button {
  height: 50px;
  width: 50px;
  border: 1px solid var(--background-accent-20);
  border-radius: 50%;
  color: var(--background-accent);
  background-color: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all ease .3s;
}

.player-slider-controls button:hover {
  color: var(--primary);
  background-color: var(--background-accent);
}

.player-career__viewport {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.player-career__track {
  width: max-content;
  display: flex;
  gap: 15px;
}

.player-career-card {
  width: 320px;
  min-height: 390px;
  flex: 0 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 20px;
  color: var(--primary);
  background-color: var(--background-accent);
  box-sizing: border-box;
  scroll-snap-align: start;
}

.player-career-card.is-current {
  border: 2px solid var(--secondary-light);
}

.player-career-card__rail {
  display: none;
}

.player-career-card__years {
  color: var(--secondary);
  font-size: .8rem;
  font-weight: 600;
}

.player-career-card__years span {
  margin: 0 5px;
  color: var(--primary-30);
}

.player-career-card__logo {
  height: 85px;
  width: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
}

.player-career-card__logo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.player-career-card__logo > span {
  font-size: 2.5rem;
  font-weight: 600;
}

.player-career-card__current {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--secondary);
  font-size: .75rem;
  font-weight: 600;
}

.player-career-card h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
}

.player-career-card > p {
  margin: 8px 0 20px;
  color: var(--primary-50);
}

.player-career-card dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
}

.player-career-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--primary-10);
}

.player-career-card dt {
  color: var(--primary-50);
  font-size: .75rem;
}

.player-career-card dd {
  margin: 0;
  font-size: .75rem;
  text-align: right;
}

.player-career-card > a {
  margin-top: auto;
  color: var(--primary);
  font-size: .85rem;
  text-decoration: none;
}

.player-career-card > a:hover {
  color: var(--primary-60);
}

/* -- PLAYER CAREER ------- END -- */
/* -------------------------------- */
/* -- PLAYER CARDS ---------------- */

.player-card-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.player-card-switcher button {
  min-width: 160px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 15px;
  border: 1px solid var(--primary-20);
  border-radius: 15px;
  color: var(--primary);
  background-color: transparent;
  cursor: pointer;
  transition: all ease .3s;
}

.player-card-switcher button:hover,
.player-card-switcher button.is-active {
  color: var(--background-accent);
  background-color: var(--primary);
}

.player-card-switcher strong,
.player-card-switcher span,
.player-card-switcher small {
  display: block;
}

.player-card-switcher strong {
  font-size: 1rem;
}

.player-card-switcher span,
.player-card-switcher small {
  font-size: .7rem;
}

.player-card-switcher small {
  opacity: .6;
}

.player-card-stage {
  width: 100%;
}

.player-card-panel[hidden] {
  display: none !important;
}

.player-card-stage section.post-playercard {
  margin: 0;
}

/* -- PLAYER CARDS --------- END -- */
/* -------------------------------- */
/* -- PLAYER POSTS ---------------- */

.player-posts__grid.moreposts-grid {
  width: 100%;
  padding: 0;
}

.player-posts__sentinel {
  height: 1px;
}

.player-posts__loading {
  padding-top: 25px;
  color: var(--primary-50);
  text-align: center;
}

.player-empty-state {
  padding: 50px 30px;
  border-radius: 20px;
  color: var(--primary-60);
  background-color: var(--primary-10);
  text-align: center;
}

/* -- PLAYER POSTS --------- END -- */
/* -------------------------------- */
/* -- PLAYER RESPONSIVE ----------- */

@media (max-width: 1000px) {
  .player-shell {
    width: calc(100% - 80px);
  }

  .player-hero__inner {
    gap: 35px;
  }

  .player-hero__content {
    width: calc(58% - 35px);
  }

  .player-overview__grid {
    grid-template-columns: 1fr;
  }

  .player-career .player-shell {
    width: calc(100% - 80px);
  }
}

@media (max-width: 768px) {
  .player-shell,
  .player-career .player-shell {
    width: calc(100% - 30px);
  }

  .player-section {
    padding: 60px 0;
  }

  .player-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .player-section-heading h2 {
    font-size: 2.5rem;
  }

  .player-section-heading > p {
    width: 100%;
    max-width: none;
    font-size: 1rem;
  }

  .player-section-heading--actions {
    flex-direction: row;
    align-items: center;
  }

  .player-hero {
    height: auto;
    min-height: calc(100svh - 20px);
    width: calc(100% - 20px);
    margin: 10px;
  }

  .player-hero__inner {
    height: auto;
    min-height: calc(100svh - 95px);
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding-top: 120px;
  }

  .player-hero__visual {
    height: 330px;
    width: 100%;
  }

  .player-hero__portrait {
    border-radius: 20px;
  }

  .player-hero__clubmark {
    height: 75px;
    width: 75px;
  }

  .player-hero__content {
    width: 100%;
    padding-bottom: 30px;
  }

  .player-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .player-hero__quickfacts {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-hero__quickfacts div:nth-child(2) {
    border-right: 0;
  }

  .player-hero__quickfacts div:nth-child(-n + 2) {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--background-accent-20);
  }

  .player-hero__quickfacts div:nth-child(3) {
    padding-left: 0;
  }

  .player-hero__nav {
    overflow-x: auto;
  }

  .player-hero__nav a {
    flex: 0 0 auto;
  }

  .player-facts-card {
    padding: 15px 25px;
  }

  .player-facts {
    grid-template-columns: 1fr;
  }

  .player-facts > div,
  .player-facts > div:nth-child(odd),
  .player-facts > div:nth-child(even) {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--primary-10);
  }

  .player-facts > div:nth-last-child(2) {
    border-bottom: 1px solid var(--primary-10);
  }

  .player-career {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 60px 0;
  }

  .player-career-card {
    width: calc(100vw - 65px);
  }

  .player-posts__grid.moreposts-grid {
    width: 100%;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* -- PLAYER RESPONSIVE ---- END -- */
/* -------------------------------- */
