/* ============================================================
 *  Single Player — Editorial Sport Portrait
 *  シンプルで洗練された選手紹介ページ
 * ============================================================ */

.archive-hero--compact {
  padding-bottom: 0;
}

.single-player-main {
  padding: 56px 0 96px;
  background: var(--color-bg);
}

/* ============================================================
 *  Profile Layout
 * ============================================================ */
.player-profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--color-border);
  animation: wf-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wf-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 *  Photo
 * ============================================================ */
.player-profile__photo {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h, 80px) + 24px);
}

.player-profile__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-white);
  position: relative;
}

.player-profile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-profile__img .player-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--color-primary-rgb), 0.05),
    rgba(var(--color-primary-rgb), 0.02)
  );
  position: relative;
}

.player-profile__img .player-card__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(var(--color-primary-rgb), 0.08),
    transparent 70%
  );
}

/* 写真下のキャプション (POSITION · No.X) */
.player-profile__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 2px 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.player-profile__caption-pos {
  position: relative;
  padding-left: 14px;
  color: var(--color-text);
}

/* ポジション色のドット */
.player-profile__caption-pos::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pos-color, var(--color-primary));
}

.player-profile[data-pos="GK"] { --pos-color: #f59e0b; }
.player-profile[data-pos="DF"] { --pos-color: #3b82f6; }
.player-profile[data-pos="MF"] { --pos-color: #10b981; }
.player-profile[data-pos="FW"] { --pos-color: #ef4444; }

.player-profile__caption-divider {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.player-profile__caption-num {
  letter-spacing: 0.1em;
  color: var(--color-text);
}

/* ============================================================
 *  Detail
 * ============================================================ */
.player-profile__detail {
  animation: wf-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.player-profile__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

/* ヘッダーの左側に縦のポジション色アクセント */
.player-profile__header::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  bottom: 24px;
  width: 3px;
  background: var(--pos-color, var(--color-primary));
}

.player-profile__kana {
  font-size: 0.82rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  font-weight: 500;
}

.player-profile__name {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ============================================================
 *  Profile Data (dl)
 * ============================================================ */
.player-profile__data {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.player-profile__data-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  animation: wf-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.player-profile__data-row:last-child {
  border-bottom: 0;
}

/* スタガード フェードイン */
.player-profile__data-row:nth-child(1) { animation-delay: 0.12s; }
.player-profile__data-row:nth-child(2) { animation-delay: 0.16s; }
.player-profile__data-row:nth-child(3) { animation-delay: 0.20s; }
.player-profile__data-row:nth-child(4) { animation-delay: 0.24s; }
.player-profile__data-row:nth-child(5) { animation-delay: 0.28s; }
.player-profile__data-row:nth-child(6) { animation-delay: 0.32s; }
.player-profile__data-row:nth-child(7) { animation-delay: 0.36s; }
.player-profile__data-row:nth-child(8) { animation-delay: 0.40s; }

.player-profile__data-row dt {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin: 0;
}

.player-profile__data-row dd {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

/* ============================================================
 *  About Section
 * ============================================================ */
.player-about {
  margin-top: 64px;
  animation: wf-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.player-about__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.player-about__en {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pos-color, var(--color-primary));
  position: relative;
  padding-left: 28px;
}

.player-about__en::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 1px;
  background: currentColor;
}

.player-about__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  letter-spacing: 0.01em;
}

.player-about__body {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--color-text);
  max-width: 720px;
  letter-spacing: 0.01em;
}

.player-about__body p + p {
  margin-top: 1.4em;
}

/* ============================================================
 *  Player Navigation
 * ============================================================ */
.player-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  animation: wf-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.player-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.player-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  padding: 12px 16px;
  border-radius: 0;
  transition: background-color 0.15s ease;
  max-width: 280px;
}

/* 「次の選手」リンクは右寄せ */
.player-nav__link--next {
  justify-content: flex-end;
  margin-left: auto;
  text-align: right;
}

.player-nav__link:hover {
  background: rgba(0, 0, 0, 0.035);
}

.player-nav__link svg {
  flex-shrink: 0;
  color: var(--color-text-light);
  transition: transform 0.2s ease, color 0.2s ease;
}

.player-nav__link:hover svg {
  color: var(--color-primary);
}
.player-nav__link--prev:hover svg { transform: translateX(-2px); }
.player-nav__link--next:hover svg { transform: translateX(2px); }

.player-nav__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.player-nav__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

.player-nav__list-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  background: transparent;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.player-nav__list-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
 *  Responsive
 * ============================================================ */
@media (max-width: 900px) {
  .player-profile {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
  }

  .player-profile__photo {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .player-profile__header::before {
    left: -16px;
    top: 0;
    bottom: 16px;
  }
}

@media (max-width: 600px) {
  .single-player-main { padding: 32px 0 64px; }

  .player-profile { gap: 28px; }

  .player-profile__photo { max-width: 280px; }

  .player-profile__name { font-size: 1.6rem; }

  .player-profile__header {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .player-profile__header::before {
    left: -14px;
    top: 2px;
    width: 2px;
  }

  .player-profile__data-row {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 12px 0;
  }

  .player-profile__data-row dt {
    font-size: 0.72rem;
  }

  .player-profile__data-row dd {
    font-size: 0.92rem;
  }

  .player-about { margin-top: 40px; }
  .player-about__title { font-size: 1.15rem; }
  .player-about__body { font-size: 0.92rem; line-height: 1.85; }

  /* SP: 前 / 一覧 / 次 を 3カラム横並び固定 */
  .player-nav { padding-top: 24px; margin-top: 40px; }
  .player-nav__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .player-nav__link {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 8px 6px;
    gap: 6px;
  }
  .player-nav__link svg { width: 14px; height: 14px; }
  .player-nav__info { min-width: 0; }
  .player-nav__label { font-size: 0.62rem; margin-bottom: 1px; }
  .player-nav__name {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-nav__list-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.74rem;
    gap: 4px;
  }
  .player-nav__list-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 360px) {
  .player-nav__name { display: none; }
  .player-nav__list-btn { font-size: 0.7rem; padding: 8px 10px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .player-profile,
  .player-profile__detail,
  .player-profile__data-row,
  .player-about,
  .player-nav {
    animation: none !important;
  }
}
