/* 出演回数の表：公演名の行を押すと、その公演に出た日の一覧をポップアップで出す。
   ポップアップ本体の見た目は theater_member_schedule.css の ms-modal を共用する（lib.build_summary_table）。 */
/* 公演名の行は、行そのものを押せる箱（ボタン）にする。箱の見た目は theater_member_schedule.css の ms-stage-btn。
   メンバーページの「出演予定」の行も同じ箱（member.py）。 */
#main .st-stages { max-width: 560px; margin: 0 auto; }
#main .st-stages .ms-stage-btn,
#main .st-stages .ms-stage-box { padding: 9px 12px; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
#main .st-stages .ms-stage-btn { box-shadow: 0 1px 2px rgba(17,24,39,.06); }
#main .st-stages .ms-stage-btn:focus-visible { outline: 2px solid #e0568f; outline-offset: 1px; }
#main .st-stages .ms-stage-arrow { font-size: 18px; line-height: 1; }
#main .st-box .ms-stage { flex: 1 1 auto; min-width: 0; text-align: left; }
#main .st-count { flex-shrink: 0; font-size: 14px; font-weight: 800; color: #1f2937; white-space: nowrap; }
#main .st-box.ms-stage-box .st-count { margin-right: 22px; }   /* 押せない行も回数の位置をそろえる（›のぶん） */
#main .st-arrow { margin-left: 6px; color: #b1487c; font-weight: 800; }
#main .st-hint { margin: 6px 0 0; font-size: .82em; color: #6b7280; }

/* ポップアップの中の日付一覧（1列。2列は読みにくいとの指摘で1列にした 2026-11-27） */
#main .st-list { list-style: none; margin: 0; padding: 0; }
#main .st-list li { padding: 6px 2px; border-bottom: 1px solid #eef0f3; line-height: 1.4; text-align: left; }
#main .st-date { font-size: 14px; font-weight: 700; color: #1f2937; }
/* 特別公演・その他：日付の下に公演名を出す */
#main .st-name { display: block; font-size: 13px; color: #4b5563; }

/* 公演の詳細（劇場出演履歴ページ）：日付の行・「詳細」の表の行を押すと、開演時刻と出演メンバーを出す */
#main .st-list li.st-show { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
#main .st-list li.st-show .st-arrow { margin-left: auto; }
#main .st-list li.st-show .st-name { flex-basis: 100%; order: 3; }
#main .st-list li.st-show:hover,
#main .st-list li.st-show:focus-visible { background: #fdf1f6; }
#main tr.st-show { cursor: pointer; }
#main tr.st-show:hover td,
#main tr.st-show:focus-visible td { background: #fdf1f6; }
#main tr.st-show:focus-visible { outline: 2px solid #e0568f; outline-offset: -2px; }
#main .st-when { font-weight: 700; }
/* 出演メンバーの名前は、名前の途中で折り返さない */
#main .st-nm { white-space: nowrap; }

/* メンバーページの「出演予定」：日付・開演時刻・公演名を1行に並べる（入りきらないときだけ折り返す） */
#main .st-oneline .ms-stage-main { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
#main .st-oneline .ms-item-head { flex-shrink: 0; }
#main .st-oneline .ms-stage { text-align: left; }
/* 劇場出演履歴ページの「詳細」の表：空白の無い長い英字の公演名（例: ~AKB48AwardMemberoftheYear2024~）で
   表がスマホの画面から横にはみ出していたので、入りきらないときだけ語の途中でも折り返す */
#main tr.st-show td:nth-child(2) { overflow-wrap: anywhere; }
