/* ⑤ 発表モード */
.present-screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--c-white); }
.present-header {
  min-height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px 8px 24px;
  background: var(--c-surface-dark);
  color: var(--c-on-dark);
}
.present-header__text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.present-title { font-size: var(--fs-xl); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.present-author { font-size: var(--fs-base); color: var(--c-border); }
.btn--end {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  background: var(--c-surface-header);
  color: var(--c-ink);
  flex-shrink: 0;
}
.btn--end:hover { background: var(--c-white); }
.present-main { position: relative; flex: 1; min-height: 0; display: flex; }
.tl-canvas--present .tl-item { cursor: pointer; }
.btn--pill { border-radius: var(--r-pill); }
.legend__item.is-dim { opacity: .35; }
.present-bottom { padding-left: 24px; }

/* メモと出典のフキダシ */
.tip {
  position: absolute;
  z-index: 3;
  width: min(400px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.tip[hidden] { display: none; }
.tip::before {
  content: '';
  position: absolute;
  left: calc(var(--arrow-x, 40px) - 9px);
  top: -10px;
  width: 18px;
  height: 18px;
  background: var(--c-white);
  border-left: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  transform: rotate(45deg);
}
.tip--above::before { top: auto; bottom: -10px; transform: rotate(225deg); }
.tip--plain::before { display: none; }
.tip__head { display: flex; align-items: center; gap: 10px; margin: -8px -8px 0 0; }
.tip__genre { font-size: var(--fs-s); color: var(--c-sub); }
.tip__title { font-size: var(--fs-l); font-weight: 700; }
.tip__date { font-size: var(--fs-m); font-weight: 700; }
.tip__memo { font-size: var(--fs-base); line-height: 1.6; white-space: pre-wrap; }
.tip__source { font-size: var(--fs-s); color: var(--c-sub); border-top: 1px solid var(--c-divider); padding-top: 8px; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .present-bottom { padding-left: 16px; }
}
/* ジャンルの絞り込み（チェックボックスで何個でも選べる） */
.filter-pop {
  position: fixed;
  z-index: 50;
  min-width: 240px;
  max-height: 60vh;
  overflow: auto;
  padding: 6px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  background: var(--c-white);
  box-shadow: var(--shadow-pop);
}
.filter-pop[hidden] { display: none; }
.filter-pop__row { gap: 10px; }
.filter-pop__all { border-bottom: 1px solid var(--c-divider); font-weight: 700; }

/* ⑯ スマートフォンの発表モード：見るだけ。ジャンルの絞り込み・全画面表示は出さない */
html.is-phone .present-header { min-height: 52px; gap: 8px; padding: 6px 8px 6px 16px; }
html.is-phone .present-title { font-size: var(--fs-m); }
html.is-phone .present-author { display: none; }
html.is-phone .present-header .btn { min-height: 40px; padding: 0 12px; font-size: var(--fs-s); }
html.is-phone .present-bottom { min-height: 52px; height: auto; gap: 8px; padding: 4px 8px 4px 16px; }
html.is-phone .present-bottom .zoom__value { display: none; }
.present-hint { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--c-sub); line-height: 1.6; }
.present-rotate { display: none; }
/* 縦向きの時は、横向きにするようすすめる。下の説明は場所をとるので出さない */
@media (orientation: portrait) {
  html.is-phone .present-rotate {
    display: block;
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--c-info-bg);
    font-size: var(--fs-s);
    text-align: center;
  }
  html.is-phone .present-hint { display: none; }
  html.is-phone .present-header .btn--end > svg { display: none; }
}
