/* ===== この機種の動画・コラム（機種ページのタブの直下・2026-09-26 オーナーが案C「折りたたみ」を採用）=====
   2026-09-30 コラムのページ（題名の下・同じ機種のコラムと動画）でも使うので single-machine.css から切り出した。
   中身は inc/theme/machine-related.php。最初は帯1本（動画○・コラム○）で閉じていて、押すと一覧が開く。
   サムネイルは loading="lazy" なので、閉じている間は読まない。動画の行を押すとその下で再生（js/single-machine.js）。 */
.machine-related {
  margin: 12px 0 4px;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  background: var(--bg-card);
}
.machine-related__bar {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
}
.machine-related__bar::-webkit-details-marker { display: none; }
.machine-related__counts { display: inline-flex; gap: 6px; }
.machine-related__open { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--text-gold); white-space: nowrap; }
.machine-related__open::after { content: " \25BE"; }
.machine-related[open] .machine-related__open::after { content: " \25B4"; }
.machine-related__close-t,
.machine-related[open] .machine-related__open-t { display: none; }
.machine-related[open] .machine-related__close-t { display: inline; }
/* 動画=赤・コラム=濃い金（白い文字が読める濃さ。昼夜とも同じ色） */
.machine-related__kind {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #fff;
  background: #c8322f;
}
.machine-related__kind--col { background: #8a5d00; }
.machine-related__kind svg { width: 10px; height: 10px; flex: none; }
.machine-related__list { margin: 0 12px 4px; border-top: 1px solid var(--line-gold); }
.machine-related a.machine-related__item {
  display: grid;
  grid-template-columns: 76px 1fr 14px;
  gap: 10px;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-gold);
  color: inherit;
  text-decoration: none;
}
.machine-related a.machine-related__item:last-of-type { border-bottom: 0; }
.machine-related__thumb {
  position: relative;
  display: block;
  width: 76px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #1c1f2a;
}
.machine-related__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.machine-related__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 16px;
  margin: -8px 0 0 -11px;
  border-radius: 5px;
  color: #fff;
  background: rgba(220, 30, 30, 0.92);
}
.machine-related__play svg { width: 11px; height: 11px; }
.machine-related__text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.machine-related__meta { display: inline-flex; align-items: center; gap: 6px; }
.machine-related__lock { display: inline-flex; align-items: center; gap: 2px; font-size: 0.64rem; font-weight: 700; color: var(--text-light); }
.machine-related__lock svg { width: 9px; height: 9px; }
.machine-related__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}
.machine-related__arrow { color: var(--text-light); font-size: 1.1rem; }
.machine-related a.machine-related__item[aria-expanded="true"] .machine-related__arrow { transform: rotate(90deg); }
/* 押した動画の下に出す再生の枠（16:9） */
.machine-related__player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.machine-related__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 動画を見られない人（有料会員でない人）の行: 題名と鍵だけ。サムネイルの代わりに鍵（inc/theme/machine-related.php）*/
.machine-related__thumb--locked { display: grid; place-items: center; color: #9aa3b2; }
.machine-related__thumb--locked svg { width: 16px; height: 16px; }
