/* index.html — ピックアッププレイヤー（1ブロック内の3カード） */
/* No-JS / 初期化失敗時もスクリーンリーダー向けに選手IDを伝える */
.index-pickup-players .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.index-pickup-players__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 0.75rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .index-pickup-players__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.index-pickup-players__card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  color: var(--color-text, #0a1a3a);
}

.index-pickup-players__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 8px);
  line-height: 1.35;
}

.index-pickup-players__list li,
.index-pickup-players__list a {
  line-height: inherit;
}

/* Lighthouse target-size: タップ領域 44px 相当 + リンク間隔 */
.index-pickup-players__list a.index-pickup-players__player-link,
.index-pickup-players__list a.index-recent-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 6px 0;
}

/* 名前取得前: シマー（読み込み中に "Player" / 選手名 を出さない） */
.index-pickup-players__name-skeleton {
  display: block;
  min-height: 1.08em;
  width: min(12rem, 92%);
  max-width: 100%;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #e4e9f0 0%,
    #f0f3f8 45%,
    #e4e9f0 90%
  );
  background-size: 220% 100%;
  animation: index-pickup-skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes index-pickup-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-pickup-players__name-skeleton {
    animation: none;
    background: #e4e9f0;
  }
}
