/* ============================================================
   Search Article Player Directory — Front-end CSS
   プレフィックス: .sapd-  で名前空間化（テーマ衝突回避）
   ============================================================ */

/* --- CSS 変数 ------------------------------------------------ */
:root {
  --sapd-bg:           #0c1220;
  --sapd-card:         #121a2c;
  --sapd-text:         #ecf2ff;
  --sapd-muted:        #c1cde3;
  --sapd-accent:       #f24f5d;
  --sapd-accent-hover: #d9404d;
  --sapd-border:       rgba(255, 255, 255, 0.12);
  --sapd-surface:      rgba(255, 255, 255, 0.05);
  --sapd-radius:       14px;
  --sapd-max-width:    960px;
}

/* --- 共通リセット -------------------------------------------- */
.sapd-archive *,
.sapd-single * {
  box-sizing: border-box;
}

/* ============================================================
   一覧ページ (.sapd-archive)
   ============================================================ */

.sapd-archive {
  background-color: var(--sapd-bg);
  color: var(--sapd-text);
  min-height: 100vh;
  padding: 40px 16px;
}

.sapd-archive--embedded {
  min-height: 0;
  padding: 32px 20px;
  border-radius: var(--sapd-radius);
}

.sapd-archive__inner {
  max-width: var(--sapd-max-width);
  margin: 0 auto;
}

.sapd-theme-sidebar-area {
  max-width: calc(var(--sapd-max-width) + 32px);
  margin: 32px auto 0;
  padding: 0 16px 40px;
}

.sapd-theme-sidebar-area > * {
  max-width: 100%;
}

.sapd-ad {
  position: relative;
  width: min(100%, 760px);
  max-width: 100%;
  min-height: 220px;
  margin: 24px auto;
  padding: 14px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.06), transparent 46%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.11);
  color: #172033;
  text-align: center;
}

.sapd-ad::before {
  content: "広告";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 4px;
  background: rgba(248, 250, 252, 0.96);
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.sapd-ad--article_top {
  margin-top: 18px;
}

.sapd-ad--article_middle {
  margin: 24px auto;
}

.sapd-ad--article_bottom,
.sapd-ad--related_before {
  margin-top: 24px;
}

.sapd-ad__creative {
  display: grid;
  place-items: center;
  max-width: 100%;
  min-height: 164px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sapd-ad__creative-link {
  width: 100%;
  min-height: inherit;
}

.sapd-ad--multi {
  width: min(100%, 980px);
  text-align: left;
}

.sapd-ad--multi .sapd-ad__creative {
  min-height: 150px;
  padding: 12px;
  background: #f8fafc;
}

.sapd-ad__scroller {
  margin: 0 -16px -4px;
  padding: 10px 16px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #94a3b8 transparent;
}

.sapd-ad__track {
  display: flex;
  gap: 16px;
  min-width: min-content;
}

.sapd-ad__card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.sapd-ad__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.sapd-ad__product {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.sapd-ad iframe,
.sapd-ad ins,
.sapd-ad img,
.sapd-ad video {
  max-width: 100%;
}

.sapd-ad iframe,
.sapd-ad ins {
  display: block;
  min-height: 150px;
}

.sapd-ad a {
  display: inline-grid;
  place-items: center;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.sapd-ad img,
.sapd-ad video {
  height: auto;
  border-radius: 6px;
}

.sapd-ad img {
  width: auto;
  max-height: 190px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  object-fit: contain;
}

.sapd-ad img[width="1"][height="1"] {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sapd-ad__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sapd-ad__button:hover,
.sapd-ad__button:focus {
  background: #0b5f59;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
  text-decoration: none;
  transform: translateY(-1px);
}

.sapd-player-affiliate {
  position: relative;
  width: min(100%, 980px);
  margin: 34px auto;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 79, 93, 0.08), transparent 44%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
  color: #172033;
  overflow: hidden;
  text-align: left;
}

.sapd-player-affiliate::after {
  content: "";
  position: absolute;
  top: 72px;
  right: 0;
  bottom: 18px;
  width: 48px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.96));
}

.sapd-player-affiliate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sapd-player-affiliate__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.sapd-player-affiliate__title {
  flex: 1 1 auto;
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.sapd-player-affiliate__scroller {
  margin: 0 -20px -4px;
  padding: 0 20px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #94a3b8 transparent;
}

.sapd-player-affiliate__track {
  display: flex;
  gap: 16px;
  min-width: min-content;
}

.sapd-player-affiliate__card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sapd-player-affiliate__creative {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 12px;
  background: #f8fafc;
}

.sapd-player-affiliate__creative a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 126px;
}

.sapd-player-affiliate__creative img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 170px;
  height: auto;
  object-fit: contain;
}

.sapd-player-affiliate__creative img[width="1"][height="1"] {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sapd-player-affiliate__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.sapd-player-affiliate__players {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.sapd-player-affiliate__badge,
.sapd-affiliate-ranking__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.sapd-player-affiliate__player {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.sapd-player-affiliate__product {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.sapd-player-affiliate__copy {
  margin: -2px 0 2px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sapd-player-affiliate__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sapd-player-affiliate__button:hover,
.sapd-player-affiliate__button:focus {
  background: #0b5f59;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
  transform: translateY(-1px);
}

.sapd-affiliate-ranking {
  width: min(100%, 980px);
  margin: 34px auto;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
  color: #172033;
}

.sapd-affiliate-ranking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sapd-affiliate-ranking__label {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.sapd-affiliate-ranking__title {
  flex: 1 1 auto;
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.sapd-affiliate-ranking__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.sapd-affiliate-ranking__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.sapd-affiliate-ranking__rank {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.sapd-affiliate-ranking__creative {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 14px;
  background: #f8fafc;
}

.sapd-affiliate-ranking__creative a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 126px;
}

.sapd-affiliate-ranking__creative img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 170px;
  height: auto;
  object-fit: contain;
}

.sapd-affiliate-ranking__creative img[width="1"][height="1"] {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sapd-affiliate-ranking__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.sapd-affiliate-ranking__players {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sapd-affiliate-ranking__player {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.sapd-affiliate-ranking__product {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.sapd-affiliate-ranking__copy {
  margin: -2px 0 2px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sapd-affiliate-ranking__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sapd-affiliate-ranking__metrics span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.sapd-affiliate-ranking__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sapd-affiliate-ranking__button:hover,
.sapd-affiliate-ranking__button:focus {
  background: #0b5f59;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .sapd-ad {
    width: 100%;
    margin: 22px auto;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .sapd-ad::before {
    top: 8px;
    left: 8px;
    font-size: 10px;
  }

  .sapd-ad__creative {
    padding: 8px;
  }

  .sapd-ad img {
    max-height: 150px;
  }

  .sapd-ad__button {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 10px 12px;
  }

  .sapd-ad__scroller {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .sapd-ad__card {
    flex-basis: 78vw;
    max-width: 300px;
  }

  .sapd-player-affiliate {
    margin: 28px auto;
    padding: 16px;
  }

  .sapd-player-affiliate::after {
    width: 30px;
  }

  .sapd-player-affiliate__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .sapd-player-affiliate__title {
    font-size: 18px;
  }

  .sapd-player-affiliate__scroller {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .sapd-player-affiliate__card {
    flex-basis: 78vw;
    max-width: 300px;
  }

  .sapd-affiliate-ranking {
    margin: 28px auto;
    padding: 16px;
  }

  .sapd-affiliate-ranking__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .sapd-affiliate-ranking__title {
    font-size: 18px;
  }

  .sapd-affiliate-ranking__grid {
    grid-template-columns: 1fr;
  }
}

.sapd-archive__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--sapd-text);
}

/* --- フィルターバー (.sapd-filter-bar) ---------------------- */
.sapd-filter-bar {
  background: var(--sapd-card);
  border: 1px solid var(--sapd-border);
  border-radius: var(--sapd-radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sapd-filter-bar__select {
  background: #1a2540;
  border: 1px solid var(--sapd-border);
  color: var(--sapd-text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  min-width: 120px;
}

.sapd-filter-bar__select:focus {
  outline: 2px solid var(--sapd-accent);
  outline-offset: 1px;
}

.sapd-filter-bar__btn {
  background: var(--sapd-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sapd-filter-bar__btn:hover {
  background: var(--sapd-accent-hover);
}

.sapd-filter-bar__btn--reset {
  background: transparent;
  color: var(--sapd-muted);
  border: 1px solid var(--sapd-border);
}

.sapd-filter-bar__btn--reset:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sapd-text);
}

/* モバイル：フィルターをトグル */
.sapd-filter-bar--collapsed {
  display: none;
}

.sapd-filter-toggle {
  display: none;
  background: var(--sapd-card);
  color: var(--sapd-text);
  border: 1px solid var(--sapd-border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 12px;
  width: 100%;
  text-align: left;
}

/* --- カードグリッド (.sapd-card-grid) ----------------------- */
.sapd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- カード (.sapd-card) ------------------------------------- */
.sapd-card {
  background: var(--sapd-card);
  border: 1px solid var(--sapd-border);
  border-radius: var(--sapd-radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.sapd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border-color: var(--sapd-accent);
}

.sapd-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* カード画像 */
.sapd-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a2540;
}

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

.sapd-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sapd-muted);
  font-size: 13px;
}

/* カード本体 */
.sapd-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sapd-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sapd-text);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.sapd-card__excerpt {
  font-size: 14px;
  color: var(--sapd-muted);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

.sapd-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sapd-card__date {
  font-size: 12px;
  color: var(--sapd-muted);
  margin-top: auto;
}

/* --- ページネーション (.sapd-pagination) -------------------- */
.sapd-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.sapd-pagination a,
.sapd-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--sapd-border);
  color: var(--sapd-muted);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.sapd-pagination a:hover {
  background: var(--sapd-accent);
  color: #fff;
  border-color: var(--sapd-accent);
}

.sapd-pagination .current {
  background: var(--sapd-accent);
  color: #fff;
  border-color: var(--sapd-accent);
}

/* ============================================================
   詳細ページ (.sapd-single)
   ============================================================ */

.sapd-single {
  --sapd-bg: #f3f6fa;
  --sapd-card: #ffffff;
  --sapd-text: #1f2a37;
  --sapd-muted: #5f6b7a;
  --sapd-accent: #154c8a;
  --sapd-accent-hover: #0f3d6e;
  --sapd-border: #d7dee7;
  --sapd-surface: #ffffff;
  --sapd-radius: 4px;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--sapd-text);
  min-height: 100vh;
  padding: 48px 20px 64px;
}

.sapd-single__inner {
  max-width: var(--sapd-max-width);
  margin: 0 auto;
}

.sapd-record__inner {
  max-width: 1240px;
}

/* --- アイキャッチ (.sapd-hero) ------------------------------ */
.sapd-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--sapd-radius);
  border: 1px solid var(--sapd-border);
  display: block;
  margin-bottom: 24px;
}

/* --- キャッチコピー (.sapd-catch-copy) ---------------------- */
.sapd-catch-copy {
  display: inline-flex;
  align-items: center;
  color: var(--sapd-accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 6px 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eaf1f8;
  border: 1px solid #c9d8e8;
  border-radius: 2px;
}

/* --- タイトル --------------------------------------------- */
.sapd-single__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sapd-text);
  margin: 0 0 12px;
}

/* --- 抜粋 -------------------------------------------------- */
.sapd-single__excerpt {
  font-size: 17px;
  color: var(--sapd-muted);
  line-height: 1.8;
  margin: 0 0 24px;
}

.sapd-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.sapd-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #111827;
  border-radius: var(--sapd-radius);
  background: #111827;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.14);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sapd-share-button:hover,
.sapd-share-button:focus {
  background: #000000;
  border-color: #000000;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.2);
}

.sapd-share-button__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

/* --- タグエリア (.sapd-tag-badges) ------------------------- */
.sapd-tag-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

/* --- バッジ (.sapd-tag-badge) ------------------------------ */
.sapd-tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--sapd-radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s, border-color 0.18s, background 0.18s;
  line-height: 1.4;
  border: 1px solid #cfd9e4;
  box-shadow: none;
}

.sapd-tag-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.sapd-tag-badge--accent {
  background: linear-gradient(180deg, #1b5ca2, #154c8a);
  color: #fff;
}

.sapd-tag-badge--position {
  background: linear-gradient(180deg, #3b7cde, #2a6bcf);
  color: #fff;
}

.sapd-tag-badge--other {
  background: linear-gradient(180deg, #fbfcfe, #f2f6fa);
  color: var(--sapd-text);
}

/* --- 記事本文エリア (.sapd-article) ------------------------ */
.sapd-article {
  background: var(--sapd-surface);
  border: 1px solid var(--sapd-border);
  border-radius: var(--sapd-radius);
  border-top: 4px solid var(--sapd-accent);
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: 0 10px 28px rgba(28, 53, 87, 0.06);
}

.sapd-related-article {
  margin-bottom: 32px;
}

.sapd-related-article__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.sapd-related-article__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  color: var(--sapd-text);
}

.sapd-related-article__link {
  color: var(--sapd-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sapd-related-article__link:hover {
  color: var(--sapd-accent-hover);
  text-decoration: underline;
}

.sapd-article h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 0.8em;
  color: var(--sapd-text);
}

.sapd-article h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sapd-text);
  margin: 2em 0 0.6em;
  padding-left: 14px;
  border-left: 4px solid var(--sapd-accent);
}

.sapd-article h2:first-child {
  margin-top: 0;
}

.sapd-article h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--sapd-text);
  margin: 1.5em 0 0.5em;
}

.sapd-article h4,
.sapd-article h5,
.sapd-article h6 {
  color: var(--sapd-text);
  line-height: 1.45;
  margin: 1.2em 0 0.45em;
}

.sapd-article p {
  font-size: 17px;
  line-height: 1.95;
  color: var(--sapd-text);
  margin: 0 0 1em;
}

.sapd-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sapd-radius);
  border: 1px solid var(--sapd-border);
  display: block;
  margin: 1.2em auto;
}

.sapd-article strong {
  color: var(--sapd-accent);
  font-weight: 700;
}

.sapd-article blockquote {
  margin: 1.5em 0;
  padding: 18px 20px 18px 24px;
  border-left: 4px solid var(--sapd-accent);
  background: #f5f8fb;
  border-radius: 0;
}

.sapd-article blockquote p:last-child {
  margin-bottom: 0;
}

.sapd-article a {
  color: var(--sapd-accent);
  text-decoration: none;
}

.sapd-article a:hover {
  text-decoration: underline;
}

.sapd-article .sapd-ad a,
.sapd-article .sapd-ad a:hover,
.sapd-article .sapd-ad a:focus {
  color: inherit;
  text-decoration: none;
}

.sapd-article .sapd-ad img {
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.sapd-article .sapd-ad img[width="1"][height="1"] {
  border: 0;
  box-shadow: none;
}

.sapd-article .sapd-ad__product {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.sapd-article .sapd-ad__button,
.sapd-article .sapd-ad__button:hover,
.sapd-article .sapd-ad__button:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.sapd-article .sapd-player-affiliate__title {
  margin: 0;
  padding-left: 0;
  border-left: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.sapd-article .sapd-player-affiliate__product {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.sapd-article .sapd-player-affiliate__copy {
  margin: -2px 0 2px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sapd-article .sapd-player-affiliate__creative img {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.sapd-article .sapd-player-affiliate__button,
.sapd-article .sapd-player-affiliate__button:hover,
.sapd-article .sapd-player-affiliate__button:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.sapd-article .sapd-affiliate-ranking__title,
.sapd-article .sapd-affiliate-ranking__product {
  margin: 0;
  padding-left: 0;
  border-left: 0;
  color: #111827;
}

.sapd-article .sapd-affiliate-ranking__copy {
  margin: -2px 0 2px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.sapd-article .sapd-affiliate-ranking__creative img {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.sapd-article .sapd-affiliate-ranking__button,
.sapd-article .sapd-affiliate-ranking__button:hover,
.sapd-article .sapd-affiliate-ranking__button:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.sapd-article ul,
.sapd-article ol {
  padding-left: 1.6em;
  margin: 0 0 1em;
}

.sapd-article li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--sapd-text);
  margin-bottom: 0.4em;
}

.sapd-article hr {
  border: 0;
  border-top: 1px solid var(--sapd-border);
  margin: 2em 0;
}

.sapd-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  overflow: hidden;
  border-radius: var(--sapd-radius);
}

.sapd-article th,
.sapd-article td {
  padding: 12px 14px;
  border: 1px solid var(--sapd-border);
  text-align: left;
}

.sapd-article th {
  background: #f3f6f9;
  font-weight: 700;
}

.sapd-article pre,
.sapd-article code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.sapd-article pre {
  background: #f5f7fa;
  border: 1px solid var(--sapd-border);
  border-radius: var(--sapd-radius);
  padding: 16px 18px;
  overflow-x: auto;
}

.sapd-article code {
  background: #f5f7fa;
  padding: 0.14em 0.4em;
  border-radius: var(--sapd-radius);
}

/* --- メタ情報 (.sapd-meta) --------------------------------- */
.sapd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--sapd-muted);
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--sapd-border);
  border-left: 4px solid #d2deeb;
  background: linear-gradient(180deg, #fcfdff, #f5f8fb);
}

.sapd-meta__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- 関連記事 (.sapd-related) ------------------------------ */
.sapd-related {
  margin-top: 40px;
}

.sapd-related__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sapd-text);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sapd-border);
}

.sapd-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.sapd-related__card {
  background: var(--sapd-card);
  border: 1px solid var(--sapd-border);
  border-radius: var(--sapd-radius);
  border-top: 3px solid #d6e0eb;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 22px rgba(28, 53, 87, 0.05);
}

.sapd-related__card:hover {
  border-color: var(--sapd-accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(21, 76, 138, 0.1);
}

.sapd-related__card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sapd-text);
  line-height: 1.4;
}

.sapd-related__link {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.sapd-related__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sapd-accent);
}

.sapd-related__card-title {
  font-size: 17px;
  line-height: 1.5;
}

.sapd-related__card-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--sapd-muted);
  line-height: 1.5;
}

.sapd-related__card-excerpt {
  font-size: 14px;
  font-weight: 400;
  color: var(--sapd-muted);
  line-height: 1.7;
}

.sapd-player-links {
  display: grid;
  gap: 32px;
}

.sapd-player-links__group {
  display: grid;
  gap: 16px;
}

.sapd-player-links__group-title {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--sapd-accent);
  font-size: 18px;
  line-height: 1.4;
  color: var(--sapd-text);
}

.sapd-player-links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sapd-player-links__card {
  min-width: 0;
  background: linear-gradient(180deg, #ffffff, #f7fafd);
  border: 1px solid var(--sapd-border);
  border-top: 4px solid #c7d7e8;
  border-radius: var(--sapd-radius);
  box-shadow: 0 10px 26px rgba(28, 53, 87, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sapd-player-links__card:hover {
  transform: translateY(-2px);
  border-color: #9eb6cf;
  box-shadow: 0 14px 30px rgba(21, 76, 138, 0.1);
}

.sapd-player-links__card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

.sapd-player-links__market-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #607182;
}

.sapd-player-links__market-value {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  color: var(--sapd-accent);
}

.sapd-player-links__player-name {
  display: block;
  font-size: 18px;
  line-height: 1.45;
  color: var(--sapd-text);
}

.sapd-player-links__meta {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #e0e7ef;
}

.sapd-player-links__meta-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.sapd-player-links__meta-row dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #607182;
}

.sapd-player-links__meta-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sapd-text);
}

/* ============================================================
   player_record 詳細 (.sapd-record)
   ============================================================ */

.sapd-record {
  background:
    radial-gradient(circle at top left, rgba(242, 79, 93, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(56, 123, 255, 0.16), transparent 28%),
    var(--sapd-bg);
}

.sapd-record-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 28px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--sapd-border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 16, 30, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.sapd-record-hero__body {
  display: flex;
  flex-direction: column;
}

.sapd-record-hero__eyebrow,
.sapd-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #91b9ff;
}

.sapd-record-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sapd-muted);
}

.sapd-record-hero__nat-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sapd-record-hero__nat-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
}

.sapd-record-hero__kicker-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  line-height: 1;
}

.sapd-record-hero__title {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 52px);
}

.sapd-record-hero__excerpt {
  max-width: 60ch;
  margin-bottom: 18px;
}

.sapd-record-hero__badges {
  margin-bottom: 24px;
}

.sapd-record-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sapd-record-hero__stat {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.sapd-record-hero__stat-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--sapd-muted);
}

.sapd-record-hero__stat-value {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  color: var(--sapd-text);
}

/* 選出確率バー（ヒーロースタット内） */
.sapd-record-hero__stat--prob {
  grid-column: 1 / -1;
}

.sapd-record-prob-bar {
  margin-top: 10px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.sapd-record-prob-bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.sapd-record-prob-bar__fill--high   { background: linear-gradient(90deg, #10b981, #34d399); }
.sapd-record-prob-bar__fill--medium { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.sapd-record-prob-bar__fill--low    { background: linear-gradient(90deg, #ef4444, #f87171); }

.sapd-record-hero__media {
  min-width: 0;
}

.sapd-record-hero__image,
.sapd-record-hero__placeholder {
  width: 100%;
  min-height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sapd-record-hero__image {
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.sapd-record-hero__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(155deg, rgba(242, 79, 93, 0.26), transparent 55%),
    linear-gradient(320deg, rgba(80, 144, 255, 0.24), transparent 48%),
    rgba(255, 255, 255, 0.04);
  text-align: center;
  color: var(--sapd-text);
}

.sapd-record-hero__placeholder span {
  display: block;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--sapd-muted);
}

.sapd-record-hero__placeholder strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.sapd-record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 24px;
}

.sapd-record-main,
.sapd-record-side {
  min-width: 0;
}

.sapd-record-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sapd-panel {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--sapd-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(15, 22, 38, 0.78);
}

.sapd-panel--highlight {
  background:
    linear-gradient(135deg, rgba(242, 79, 93, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(15, 22, 38, 0.8);
}

.sapd-panel--article {
  padding-bottom: 10px;
}

.sapd-panel__header {
  margin-bottom: 18px;
}

.sapd-panel__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--sapd-text);
}

.sapd-record-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sapd-record-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--sapd-text);
}

.sapd-record-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f24f5d, #6ea8ff);
}

.sapd-record-article {
  margin-bottom: 0;
}

.sapd-record-empty {
  margin: 0;
  color: var(--sapd-muted);
}

.sapd-record-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sapd-record-taxonomy-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.sapd-record-taxonomy-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--sapd-text);
}

.sapd-record-taxonomy-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sapd-record-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--sapd-text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sapd-record-chip:hover {
  background: rgba(242, 79, 93, 0.18);
  transform: translateY(-1px);
}

.sapd-record-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.sapd-record-facts__row {
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sapd-record-facts dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sapd-muted);
}

.sapd-record-facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sapd-text);
}

.sapd-record-facts--compact dt,
.sapd-record-facts--compact dd {
  font-size: 14px;
}

.sapd-record-stack {
  display: grid;
  gap: 14px;
}

.sapd-record-stack__item {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sapd-record-stack__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--sapd-muted);
}

.sapd-record-links {
  display: grid;
  gap: 12px;
}

.sapd-record-links__item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--sapd-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sapd-record-links__item:hover {
  border-color: rgba(242, 79, 93, 0.46);
  transform: translateY(-1px);
}

.sapd-record-links__item span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sapd-muted);
}

.sapd-record-links__item strong {
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   選手レコード 通常記事スタイル (.sapd-record-article-page)
   ============================================================ */

/* sapd-record の暗背景をリセット */
.sapd-record-article-page {
  background: var(--sapd-bg);
}

/* クイックスタットバー */
.sapd-record-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfcfe, #f3f7fb);
  border: 1px solid var(--sapd-border);
  border-radius: var(--sapd-radius);
  border-top: 4px solid var(--sapd-accent);
  box-shadow: 0 10px 28px rgba(28, 53, 87, 0.06);
}

.sapd-record-quick-stats__item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  padding: 15px 18px;
  border-radius: var(--sapd-radius);
  border: 1px solid var(--sapd-border);
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  box-shadow: 0 4px 14px rgba(28, 53, 87, 0.04);
}

.sapd-record-quick-stats__item--prob {
  min-width: 0;
}

.sapd-record-quick-stats__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #607182;
  opacity: 0.95;
  line-height: 1.35;
}

.sapd-record-quick-stats__value {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--sapd-text);
  line-height: 1.4;
  white-space: nowrap;
  word-break: keep-all;
}

.sapd-record-quick-stats__value--link {
  color: var(--sapd-accent);
  text-decoration: none;
}

.sapd-record-quick-stats__value--link:hover {
  text-decoration: underline;
}

.sapd-record-quick-stats__bar {
  grid-column: 1 / -1;
  margin-top: auto;
  height: 8px;
  background: #e6ebf1;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: none;
}

.sapd-record-quick-stats__bar-fill {
  height: 100%;
  border-radius: 999px;
}

.sapd-record-quick-stats__bar-fill--high   { background: linear-gradient(90deg, #10b981, #34d399); }
.sapd-record-quick-stats__bar-fill--medium { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.sapd-record-quick-stats__bar-fill--low    { background: linear-gradient(90deg, #ef4444, #f87171); }

/* 基本データセクション */
.sapd-record-profile {
  margin-bottom: 28px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #fbfcfe, #f3f7fb);
  border: 1px solid var(--sapd-border);
  border-radius: var(--sapd-radius);
  border-top: 4px solid var(--sapd-accent);
  box-shadow: 0 10px 28px rgba(28, 53, 87, 0.06);
}

.sapd-record-profile__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sapd-text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sapd-border);
}

.sapd-record-profile__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}

.sapd-record-profile__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: var(--sapd-radius);
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  border: 1px solid var(--sapd-border);
  box-shadow: 0 4px 14px rgba(28, 53, 87, 0.04);
}

.sapd-record-profile__row dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #607182;
}

.sapd-record-profile__row dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--sapd-text);
  line-height: 1.55;
  text-wrap: balance;
}

/* 外部リンク */
.sapd-record-ext-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sapd-record-ext-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sapd-accent);
  text-decoration: none;
}

.sapd-record-ext-links a:hover {
  text-decoration: underline;
}

.sapd-record-ext-links span {
  font-size: 12px;
  font-weight: 400;
  color: var(--sapd-muted);
}

@media (max-width: 1023px) {
  .sapd-record-quick-stats {
    grid-template-columns: 1fr;
  }

  .sapd-record-quick-stats__item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .sapd-record-quick-stats__value {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .sapd-record-profile__list {
    grid-template-columns: 1fr;
  }

  .sapd-tag-badges {
    gap: 8px;
  }

  .sapd-tag-badge {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .sapd-record-quick-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .sapd-record-quick-stats__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 14px 15px;
  }

  .sapd-record-quick-stats__value {
    font-size: 20px;
    white-space: normal;
  }

  .sapd-record-profile {
    padding: 18px;
  }

  .sapd-record-profile__row {
    min-height: 0;
    padding: 14px 15px;
  }

  .sapd-record-profile__row dd {
    font-size: 16px;
  }
}

/* ============================================================
   ショートコードテーブル (.sapd-player-table)
   ============================================================ */
.sapd-player-table-wrap {
  font-size: 15px;
}

.sapd-player-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--sapd-text, #ecf2ff);
}

.sapd-player-table th {
  background: var(--sapd-card, #121a2c);
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid var(--sapd-border, rgba(255,255,255,0.12));
  white-space: nowrap;
}

.sapd-player-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--sapd-border, rgba(255,255,255,0.08));
  vertical-align: middle;
}

.sapd-player-table__empty {
  color: var(--sapd-muted, #c1cde3);
  font-size: 15px;
  padding: 20px 0;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 1023px) {
  .sapd-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sapd-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sapd-player-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sapd-record-hero,
  .sapd-record-grid {
    grid-template-columns: 1fr;
  }
  .sapd-record-hero__media {
    max-width: 520px;
  }
  .sapd-record-taxonomy-grid {
    grid-template-columns: 1fr;
  }
  .sapd-single__title {
    font-size: 26px;
  }
}

/* モバイル */
@media (max-width: 767px) {
  .sapd-archive {
    padding: 24px 12px;
  }
  .sapd-single {
    padding: 20px 12px;
  }
  .sapd-record-hero,
  .sapd-panel {
    padding: 18px;
  }
  .sapd-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sapd-related__grid {
    grid-template-columns: 1fr;
  }
  .sapd-player-links {
    gap: 24px;
  }
  .sapd-player-links__grid {
    grid-template-columns: 1fr;
  }
  .sapd-player-links__card-link {
    padding: 16px;
  }
  .sapd-player-links__market-value {
    font-size: 22px;
  }
  .sapd-player-links__player-name {
    font-size: 17px;
  }
  .sapd-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sapd-filter-bar__select {
    width: 100%;
  }
  .sapd-filter-toggle {
    display: block;
  }
  .sapd-filter-bar--collapsed {
    display: none !important;
  }
  .sapd-single__title {
    font-size: 22px;
  }
  .sapd-record-hero__title {
    font-size: 30px;
  }
  .sapd-record-hero__stats {
    grid-template-columns: 1fr;
  }
  .sapd-article {
    padding: 18px 16px;
  }
  .sapd-article h2 {
    font-size: 20px;
  }
  .sapd-article p {
    font-size: 16px;
  }
  .sapd-record-facts__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
