.tn-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.tn-title { font-size: 44px; font-weight: 500; margin: 0; }
.tn-sub { margin: 8px 0 0; color: #777; font-size: 13px; }

.tn-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 18px;
}

.tn-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
}

.tn-pill select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.tn-label { font-size: 12px; color: #666; }

.tn-status { color: #666; font-size: 12px; margin: 6px 0 10px; min-height: 16px; }

.tn-date-sep {
  background: #777;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  margin: 20px 0 0;
}

/* items */
.tn-item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid #ececec;
  background: #fff;
}

.tn-item__left{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: center;
}

.tn-time{
  font-variant-numeric: tabular-nums;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.tn-titleline{
  font-size: 16px;
  line-height: 1.35;
  color: #111;
  font-weight: 500;
}

.tn-event {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #111;
    font-size: 14px;
    white-space: nowrap;
}

.tn-empty { padding: 12px 2px; color: #777; }
.tn-empty--error { color: #b00020; }

.tn-pager{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:10px;
  margin-top: 16px;
}
.tn-btn{
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-size:13px;
}
.tn-btn--ghost{
  background:#fff;
  color:#111;
}
.tn-btn:disabled{ opacity:.35; cursor:not-allowed; }
.tn-pageinfo{ color:#666; font-size:12px; }

@media (max-width: 560px){
  .tn-title{ font-size: 36px; }
  .tn-item__left{ grid-template-columns: 50px 1fr; }
  .tn-titleline{ font-size: 14px; }
}

/* =========================
   Mobile font down
========================= */
@media (max-width: 560px) {

  /* ページ全体の基準文字サイズを下げる */
  .tn-page {
    font-size: 13px;
  }

  /* 見出し */
  .tn-title {
    font-size: 28px;
  }
  .tn-sub {
    font-size: 12px;
  }

  /* フィルタ（pill） */
  .tn-pill,
  .tn-btn,
  .tn-pageinfo {
    font-size: 12px;
  }

  /* 日付区切り */
  .tn-date-sep {
    font-size: 12px;
  }

  /* 各アイテム */
  .tn-time {
    font-size: 10px;
  }
  .tn-titleline {
    font-size: 12px;
  }

  /* 右側の補足（event等を出してる場合） */
  .tn-event {
    font-size: 11px;
  }

  .tn-pill select{
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  /* 選手で絞り込み中だけ、右側(event)を下に落とす */
  .tn-item.is-person {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 8px;
    align-items: start;
  }

  .tn-item.is-person .tn-item__right {
    width: 100%;
    justify-self: start; /* gridの右寄せ解除 */
    text-align: left;
  }

  .tn-item.is-person .tn-item__right {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* ← 右寄せ */
    align-items: flex-end;
    justify-self: end;         /* ← grid上でも右寄せ */
  }

}


/* =========================
   スコア色変え未導入
========================= */
.tn-item[data-score="1"] { background: #ffffff; }
.tn-item[data-score="2"] { background: #ffffff; }
.tn-item[data-score="3"] { background: #ffffff; }
.tn-item[data-score="4"] { background: #ffffff; }
.tn-item[data-score="5"] { background: #ffffff; }
