/* ============================
   ending：全体コンテナ（historyと完全統一）
============================ */

.ending-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 40px;
  padding: 32px;
  background: #0A1A2F;
  border: 1px solid #D4AF37;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  color: #FFFFFF;
}

/* ============================
   ending：セクションカード
============================ */

.ending-section {
  margin: 32px 0;
  padding: 24px 28px;
  background: rgba(255,255,255,0.10);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* ============================
   優勝・得点王：historyと完全統一
============================ */

.hs-result-center-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e6c46c;
  text-align: center;
}

.hs-result-center-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hs-result-center-flag {
  width: 60px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.hs-result-center-team {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.hs-result-center-stars {
  font-size: 1.1rem;
  color: #ffd700;
  letter-spacing: 2px;
}

.hs-result-center-player {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  text-align: center;
}

.hs-result-center-countryline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.hs-result-center-flag-small {
  width: 38px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.hs-result-center-country {
  font-size: 0.95rem;
  opacity: 0.9;
  color: #ffffff;
}

/* 写真コンテナ（優勝・得点王共通） */
.hs-result-center-photo {
  margin-top: 6px;
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
  max-width: 240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hs-result-center-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 丸画像を完全削除（得点王） */
.ending-topscorer-photo {
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* ============================
   的中者リスト（historyと完全統一）
============================ */

.ending-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.ending-item {
  background: rgba(255,255,255,0.10);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ============================
   テン画像（サイズ固定）
============================ */

.ending-image {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

/* ============================
   ランキング（既存維持）
============================ */

.ending-ranking {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ending-rank-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.rank-num { font-weight: 700; }
.rank-name { font-weight: 600; }
.rank-score { font-weight: 700; }

/* ============================
   スマホ最適化
============================ */

@media (max-width: 640px) {
  .ending-container {
    padding: 24px;
  }

  .ending-section {
    padding: 20px;
  }

  .hs-result-center-photo {
    max-width: 200px;
  }

  .ending-image {
    max-width: 220px;
  }
}
