/* 年ごとの劇場公演一覧ページ（theater_history.py）。
   公演の行（押せる箱）とポップアップは theater_member_schedule.css / stage_dates_modal.css を共用する。 */

/* 年を選ぶ */
#main .th-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 4px 14px; }
#main .th-year {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid #e6ebf1; border-radius: 999px;
    background: #f7f9fb; color: #1f2937; font-weight: 800; font-size: 14px; text-decoration: none;
    transition: border-color .15s, background .15s;
}
#main .th-year:hover { border-color: #e0568f; background: #fdf1f6; }
#main .th-year--now { background: #1f2937; border-color: #1f2937; color: #fff; }
#main .th-year--now:hover { background: #1f2937; border-color: #1f2937; }
#main .th-year-n { font-size: 11px; font-weight: 700; color: #6b7280; }
#main .th-year--now .th-year-n { color: #d1d5db; }

/* 絞り込み */
#main .th-tools { margin: 0 4px 10px; }
#main .th-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #1f2937; }
#main .th-filter select {
    flex: 1 1 200px; max-width: 320px; font: inherit; font-weight: 700;
    padding: 8px 10px; border: 1px solid #cfd6df; border-radius: 9px; background: #fff; color: #1f2937;
}
#main .th-result { margin: 8px 0 0; font-size: 14px; font-weight: 800; color: #b1487c; }
#main .th-empty { margin: 16px 4px; color: #6b7280; }

/* 月へ移動 */
#main .th-months { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 4px 6px; font-size: 14px; }
#main .th-month-link { color: #b1487c; font-weight: 800; text-decoration: none; padding: 2px 2px; }
#main .th-month-link:hover { text-decoration: underline; }
#main .th-month-link[hidden] { display: none; }

/* 月ごとのまとまり */
#main .th-month { scroll-margin-top: 70px; }
#main .th-month[hidden] { display: none; }
#main .th-month-n { margin-left: 10px; font-size: .72em; font-weight: 700; color: #4b5563; }
#main .th-list { max-width: none; margin: 0 0 0 4px; }
#main .th-list .ms-item[hidden] { display: none; }
