/*
 * LITTLE MOVIE のスタイル。外部ライブラリは使わない(サイトの作法)。
 * 1950年代の映写室を思わせる暗い地に、映像だけが光っている見え方にする。
 */

:root {
  --bg: #0e0f12;
  --bg-raised: #16181d;
  --bg-sunken: #0a0b0e;
  --line: #262a33;
  --text: #e7e9ee;
  --text-dim: #99a0ad;
  --text-faint: #6b7280;
  --accent: #8fd3ff;
  --warn: #ffd479;
  --shadow: 0 1px 3px rgba(0, 0, 0, .5);
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: #b9e4ff; }

.shell { max-width: 52rem; margin: 0 auto; padding: 0 1.1rem; }

/* ── ヘッダ ── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
}
.site-header .shell {
  display: flex; align-items: baseline; gap: .9rem;
  padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap;
}
.site-header .brand {
  font-weight: 700; letter-spacing: .18em; font-size: .95rem; color: var(--text);
  text-decoration: none;
}
.site-header nav { margin-left: auto; display: flex; gap: 1rem; font-size: .85rem; align-items: center; }
.site-header nav a { color: var(--text-dim); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
#fullscreen-btn {
  width: 26px; height: 26px; padding: 0; border: 1px solid var(--line);
  background: transparent; color: var(--text-dim); font-size: 13px; line-height: 1;
  cursor: pointer; touch-action: manipulation;
}

/* ── 見出し ── */
.eyebrow {
  font-size: .68rem; letter-spacing: .22em; color: var(--text-faint);
  text-transform: uppercase; margin: 0 0 .3rem;
}
h1 { font-size: 1.55rem; line-height: 1.35; margin: 0 0 .5rem; letter-spacing: .04em; }
h2 {
  font-size: 1.05rem; margin: 2.6rem 0 .3rem; letter-spacing: .04em;
  padding-bottom: .35rem; border-bottom: 1px solid var(--line);
}
h3 { font-size: .92rem; margin: 1.6rem 0 .3rem; color: var(--text-dim); }
.lede { color: var(--text-dim); margin: .2rem 0 1.4rem; }

/* ── 今日の1本 ── */
.today { padding: 1.6rem 0 .5rem; }
.stage { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stage video { display: block; width: 100%; height: auto; background: #000; }

.meta-line { color: var(--text-dim); font-size: .88rem; margin: .7rem 0 0; }
.meta-line .sep { color: var(--text-faint); margin: 0 .45rem; }

/* ── 注意・準備中 ── */
.notice {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius); padding: .9rem 1rem; margin: 1.2rem 0;
  color: var(--text-dim); font-size: .9rem;
}
.notice strong { color: var(--text); }

/* ── 権利の表 ── */
table.rights { width: 100%; border-collapse: collapse; font-size: .87rem; margin: .6rem 0 1rem; }
table.rights th, table.rights td {
  border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top;
}
table.rights th { background: var(--bg-raised); color: var(--text-dim); font-weight: 600; }
table.rights td.yes { color: #9fe6a0; }
table.rights td.no { color: var(--warn); }

.not-covered { list-style: none; padding: 0; margin: .4rem 0 0; }
.not-covered li {
  border-left: 2px solid var(--warn); padding: .1rem 0 .1rem .7rem;
  margin: .5rem 0; font-size: .87rem; color: var(--text-dim);
}
.disclaimer { color: var(--text-faint); font-size: .8rem; margin: .6rem 0 0; }

/* ── 引用・帰属 ── */
.attribution {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--bg-sunken); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .8rem; margin: .5rem 0;
}
.attribution code {
  flex: 1; font-size: .82rem; color: var(--text-dim); word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
button.copy {
  background: var(--bg-raised); border: 1px solid var(--line); color: var(--text-dim);
  border-radius: 4px; padding: .3rem .6rem; font-size: .78rem; cursor: pointer;
  white-space: nowrap;
}
button.copy:hover { border-color: var(--accent); color: var(--accent); }

/* ── 解析の展示 ── */
.strip { display: grid; gap: .5rem; margin: .8rem 0; }
.strip.five { grid-template-columns: repeat(5, 1fr); }
.strip.three { grid-template-columns: repeat(3, 1fr); }
.strip.two { grid-template-columns: repeat(2, 1fr); }
.strip figure { margin: 0; }
.strip img {
  width: 100%; height: auto; display: block; border-radius: 3px;
  background: var(--bg-sunken); border: 1px solid var(--line);
}
.strip figcaption {
  font-size: .72rem; color: var(--text-faint); margin-top: .3rem; text-align: center;
  line-height: 1.5;
}
.strip figcaption b { color: var(--text-dim); font-weight: 600; }

@media (max-width: 40rem) {
  .strip.five { grid-template-columns: repeat(2, 1fr); }
  .strip.three { grid-template-columns: 1fr; }
}

/* 数字を大きく見せる箱 */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.figure-box {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .8rem;
}
.figure-box .value { font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
.figure-box .value small { font-size: .8rem; font-weight: 400; color: var(--text-dim); }
.figure-box .label { font-size: .74rem; color: var(--text-faint); margin-top: .1rem; }

/* GOP の帯グラフ */
.gop-chart { width: 100%; height: auto; display: block; background: var(--bg-sunken);
             border: 1px solid var(--line); border-radius: var(--radius); }
.legend { display: flex; gap: 1rem; font-size: .76rem; color: var(--text-faint); margin-top: .4rem; flex-wrap: wrap; }
.legend span::before {
  content: ""; display: inline-block; width: .7rem; height: .7rem;
  border-radius: 2px; margin-right: .3rem; vertical-align: -1px;
}
.legend .i::before { background: #ff9d76; }
.legend .p::before { background: #8fd3ff; }
.legend .b::before { background: #4a5568; }

/* ── 証跡 ── */
dl.provenance { margin: .6rem 0; font-size: .85rem; }
dl.provenance dt { color: var(--text-faint); font-size: .76rem; margin-top: .7rem; }
dl.provenance dd {
  margin: .1rem 0 0; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem;
}
details.raw { margin: 1rem 0; }
details.raw summary { cursor: pointer; color: var(--text-dim); font-size: .85rem; }
details.raw pre {
  background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; overflow-x: auto; font-size: .74rem; color: var(--text-dim); max-height: 24rem;
}

blockquote.source-text {
  margin: .6rem 0; padding: .6rem 0 .6rem .9rem;
  border-left: 2px solid var(--line); color: var(--text-dim); font-size: .88rem;
}

/* ── フッタ ── */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 1.6rem 0 2.5rem;
  color: var(--text-faint); font-size: .8rem;
}
.site-footer a { color: var(--text-dim); }
.site-footer p { margin: .35rem 0; }

.empty { color: var(--text-dim); text-align: center; padding: 3rem 1rem; }

/* ── アーカイブ ── */
.filters {
  display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: flex-end;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9rem 1rem; margin: 1.2rem 0 1rem;
}
.filters label {
  display: flex; flex-direction: column; gap: .25rem;
  font-size: .74rem; color: var(--text-faint); letter-spacing: .04em;
}
.filters label.check { flex-direction: row; align-items: center; gap: .4rem; font-size: .8rem; }
.filters input, .filters select {
  background: var(--bg-sunken); border: 1px solid var(--line); color: var(--text);
  border-radius: 4px; padding: .35rem .5rem; font-size: 1rem; font-family: inherit;
}
.filters input[type="search"] { min-width: 13rem; }
.filters input[type="number"] { width: 5.2rem; }
.filters .range { display: flex; align-items: center; gap: .35rem; color: var(--text-faint); }
.filters button { align-self: flex-end; }

.cards { display: grid; gap: .7rem; }
.card {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .8rem; align-items: center;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .6rem .8rem .6rem .6rem;
}
.card-thumb img {
  width: 100%; height: auto; display: block; border-radius: 3px; background: #000;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.card-body h3 { margin: 0 0 .15rem; font-size: .95rem; color: var(--text); }
.card-body h3 a { text-decoration: none; }
.card-meta { margin: 0; font-size: .78rem; color: var(--text-faint); }
.card-meta .sep { margin: 0 .35rem; }

button.mark {
  background: none; border: 0; color: var(--text-faint); font-size: 1.25rem;
  cursor: pointer; padding: .2rem .3rem; line-height: 1;
}
button.mark.on { color: var(--warn); }
button.mark:hover { color: var(--accent); }

@media (max-width: 34rem) {
  .card { grid-template-columns: 5rem 1fr auto; }
  .filters input[type="search"] { min-width: 100%; }
}
