/* src/styles/portal.css・src/components/live/portalHome.css から移植 */
.portal-panel { margin: 1.5rem 0; }
.portal-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; padding: 1rem; background: #f8f7f7; border: 1px solid #e8e3e4; border-radius: 14px; }
.portal-filters label, .portal-sort { display: grid; gap: .35rem; color: #4b4144; font-size: .9rem; font-weight: 700; }
.portal-filters input:not([type=checkbox]), .portal-filters select, .portal-sort select { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid #cfc5c8; border-radius: 8px; background: #fff; color: #282225; font: inherit; }
.portal-filters .portal-check { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.portal-check input { width: 20px; height: 20px; accent-color: #aa4967; }
.portal-result-count { color: #62565a; font-size: .9rem; }
.portal-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 4px; color: var(--text-2); font-size: 14px; }
.portal-pager a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-weight: 700; text-decoration: none; }
.portal-card__main:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.portal-footnote { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.portal-home__links { display: flex; gap: 4px 16px; }
.portal-home__links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.portal-empty, .portal-message { padding: 1rem; border-radius: 10px; background: #f8f7f7; color: #51464a; }
.portal-sort { max-width: 320px; margin-bottom: .75rem; }

.portal-home { display: flex; flex-direction: column; gap: 28px; }
.portal-home__section, .portal-home__ranking { min-width: 0; }
.portal-home__section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.portal-home__section-head h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.portal-home__section-head p { margin: 5px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.portal-home__section-head > a, .portal-home__guides a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.portal-home__empty, .portal-home__status { padding: 12px 14px; margin: 0; border-radius: 10px; background: var(--surface); color: var(--text-2); font-size: 14px; line-height: 1.6; }
.portal-home__sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.portal-home__sites a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.portal-home__comments ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.portal-home__comments li { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.portal-home__comments li p { margin: 0 0 9px; line-height: 1.7; overflow-wrap: anywhere; }
.portal-home__comments li a { color: var(--accent); font-size: 13px; font-weight: 700; }
.portal-home__comments time { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.portal-home__guides { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 420px) { .portal-home__section-head { align-items: start; flex-direction: column; gap: 4px; } .portal-home__section-head h2 { font-size: 18px; } }

/* src/pages/comments/index.astro */
  .comments-title { margin: 18px 0 4px; font-size: 22px; }
  .comments-intro { margin: 0 0 18px; color: var(--text-2); line-height: 1.7; }
/* スマホでは検索フォームを2列に詰め、一覧を最初の画面に出す */
@media (max-width: 767px) {
  .portal-filters { grid-template-columns: 1fr 1fr; gap: .5rem .75rem; padding: .75rem; }
  .portal-filters > label:first-child { grid-column: 1 / -1; }
  .portal-filters label { gap: .2rem; font-size: .8rem; }
  .portal-filters .portal-check { min-height: 44px; font-size: .85rem; }
}

/* ランキング：種類・期間のタブと、カード下の値 */
.ranking-tabs { display: flex; gap: 8px; margin: 0 0 12px; padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ranking-tabs::-webkit-scrollbar { display: none; }
.ranking-tabs a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ranking-tabs a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.ranking-tabs a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ranking-section { margin: 28px 0; }
.ranking-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ranking-section__head h2 { margin: 0; font-size: 18px; }
.ranking-section__head a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.ranking-item { min-width: 0; }
.ranking-value { margin: 6px 2px 0; color: var(--text); font-size: 14px; font-weight: 700; text-align: center; }

/* トップの横スクロール行（この時間によくいる人・ランキングの先頭）。カードは幅140px固定、スクロールバーは隠す */
.portal-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.portal-row::-webkit-scrollbar { display: none; }
.portal-row > .ranking-item { flex: 0 0 140px; scroll-snap-align: start; }
/* 横スクロール行は幅が狭いので、状態バッジを外して順位と「詳細」（出演者ページへの内部リンク）を優先する */
.portal-row .photo-card__state { display: none; }
/* サイト別リンクの「今 23人 · 会話中 40%」 */
.portal-home__site-text { display: flex; flex-direction: column; min-width: 0; }
.portal-home__activity { margin-top: 2px; color: var(--text-2); font-size: 12px; font-weight: 400; }
/* 入口行は見出しと「もっと見る」1つだけなので、狭い画面でも横に並べる */
@media (max-width: 420px) { .portal-home__section-head--inline { flex-direction: row; align-items: center; gap: 12px; } }
.portal-home__section-head--inline > a { flex: 0 0 auto; white-space: nowrap; }
