/* ムービーの比較（同時再生）ページ（inc/emdb_video_compare.php）。独立レイアウト。アクセント色は #e9608a のまま */
body.emdb-vc-page { margin: 0; background: #16181d; color: #e8eaed; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif; font-size: 15px; line-height: 1.6; }
.vc *, .vc *::before, .vc *::after { box-sizing: border-box; }
.vc a { color: #e9608a; text-decoration: underline; transition: color .15s; }
.vc a:hover { color: #f39ab4; }

.vc-head { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #0f1115; border-bottom: 1px solid #2a2d35; }
.vc-home { display: inline-flex; align-items: center; color: #e8eaed; font-weight: 700; }
.vc-home img { height: 30px; width: auto; max-width: 220px; display: block; }
.vc-title { margin: 0; font-size: 16px; font-weight: 700; color: #e8eaed; }
.vc-back { margin-left: auto; font-size: 14px; }

.vc-main { max-width: 1680px; margin: 0 auto; padding: 16px 20px 32px; }

/* 並べる */
.vc-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vc-pane { min-width: 0; }
.vc-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vc-player, .vc-player > *, .vc-frame iframe, .vc-frame video, .vc-frame hlsjs-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vc-frame video, .vc-frame hlsjs-video { object-fit: contain; background: #000; }
/* 動画そのものは触らせない（片方だけ止まる・シークされる、といったずれの原因になるため）。操作は下の操作欄から */
.vc-player, .vc-player * { pointer-events: none; }
.vc-cap { margin: 8px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.vc-tag { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid #e9608a; color: #e9608a; font-weight: 700; font-size: 13px; border-radius: 4px; }
.vc-rel { color: #9aa0aa; font-size: 13px; }
.vc-pane.is-muted .vc-tag { border-color: #5a5f6a; color: #9aa0aa; }
.vc-pane.is-wait .vc-frame::after { content: "待機中"; position: absolute; left: 8px; top: 8px; padding: 2px 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; border-radius: 4px; }
.vc-pane.is-err .vc-frame::after { content: "再生できません"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .8); color: #fff; }

/* 切り替え（同じ枠に重ねて、片方だけ見せる。両方とも再生は続ける） */
.vc[data-mode="switch"] .vc-stage { display: block; position: relative; max-width: min(100%, calc((100vh - 300px) * 16 / 9)); margin: 0 auto; }
.vc[data-mode="switch"] .vc-pane { transition: none; }
.vc[data-mode="switch"][data-show="a"] .vc-pane[data-side="b"],
.vc[data-mode="switch"][data-show="b"] .vc-pane[data-side="a"] { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 0; }
.vc[data-mode="switch"][data-show="a"] .vc-pane[data-side="a"],
.vc[data-mode="switch"][data-show="b"] .vc-pane[data-side="b"] { position: relative; z-index: 1; }
.vc[data-mode="side"] .vc-only-switch { display: none; }
.vc[data-mode="switch"] .vc-only-side { display: none; }
/* 左右を入れ替え（並べる表示だけ。A・B の役割は変えず、置き場所だけ） */
.vc[data-mode="side"][data-swap="1"] .vc-pane[data-side="a"] { order: 2; }
.vc[data-mode="side"][data-swap="1"] .vc-pane[data-side="b"] { order: 1; }
.vc-btn[aria-pressed="true"] { border-color: #e9608a; color: #e9608a; }
.vc-base { color: #9aa0aa; font-size: 13px; }

/* ムービーを選び直す */
.vc-change { margin-left: auto; }
.vc-pick { margin-top: 16px; padding: 12px 14px; background: #1e2128; border: 1px solid #e9608a; border-radius: 8px; }
.vc-pick[hidden] { display: none; }
.vc-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vc-pick-q { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; color: #e8eaed; background: #16181d; border: 1px solid #454a55; border-radius: 6px; transition: border-color .15s; }
.vc-pick-q:focus { outline: none; border-color: #e9608a; }
.vc-pick-note { margin: 8px 0 0; font-size: 13px; color: #9aa0aa; min-height: 1.4em; }
.vc-pick-list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.vc-pick-item { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; color: #e8eaed; background: transparent; border: 0; border-bottom: 1px solid #2a2d35; padding: 8px 6px; cursor: pointer; text-decoration: underline; text-decoration-color: #5a5f6a; transition: background-color .15s, color .15s; }
.vc-pick-item:hover, .vc-pick-item:focus-visible { background: #2a2d35; color: #f39ab4; outline: none; }

/* 操作 */
.vc-ctrl { margin-top: 16px; padding: 12px 14px; background: #1e2128; border: 1px solid #2a2d35; border-radius: 8px; }
.vc-row { display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.vc-row + .vc-row { margin-top: 12px; }
.vc-row--seek { gap: 12px; flex-wrap: nowrap; }
.vc-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vc-label { color: #9aa0aa; font-size: 13px; margin-right: 2px; }
.vc-time { font-variant-numeric: tabular-nums; font-size: 14px; color: #c5c9d0; min-width: 3.2em; text-align: center; }
.vc-seek { flex: 1; min-width: 0; accent-color: #e9608a; height: 24px; cursor: pointer; }
.vc-seek:disabled { cursor: default; opacity: .5; }

.vc-btn, .vc-seg button { font: inherit; font-size: 14px; color: #e8eaed; background: #2a2d35; border: 1px solid #454a55; border-radius: 6px; padding: 6px 12px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.vc-btn:hover:not(:disabled), .vc-seg button:hover { background: #3a3e48; border-color: #6a707c; }
.vc-btn:disabled { opacity: .5; cursor: default; }
.vc-btn:focus-visible, .vc-seg button:focus-visible, .vc-seek:focus-visible { outline: 2px solid #e9608a; outline-offset: 2px; }
.vc-btn.sm { padding: 4px 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.vc-btn.ghost { background: transparent; }
.vc-btn.line { border-color: #e9608a; color: #e9608a; background: transparent; }
.vc-btn.line:hover:not(:disabled) { background: #e9608a; border-color: #e9608a; color: #fff; }
.vc-btn--play { min-width: 5.5em; background: #e9608a; border-color: #e9608a; color: #fff; font-weight: 700; }
.vc-btn--play:hover:not(:disabled) { background: #f07fa2; border-color: #f07fa2; }
.vc-seg { display: inline-flex; }
.vc-seg button { border-radius: 0; margin-left: -1px; }
.vc-seg button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.vc-seg button:last-child { border-radius: 0 6px 6px 0; }
.vc-seg button.on { background: #e9608a; border-color: #e9608a; color: #fff; position: relative; z-index: 1; }
.vc-seg button.on:hover { background: #f07fa2; border-color: #f07fa2; }
.vc-offset { margin-left: 6px; font-variant-numeric: tabular-nums; font-size: 14px; }
.vc-msg { margin: 10px 0 0; font-size: 13px; color: #9aa0aa; min-height: 1.6em; }
.vc-msg.is-err { color: #ff9c9c; }
.vc-keys { margin: 10px 2px 0; font-size: 12px; color: #7d838e; }

@media (max-width: 800px) {
	.vc-main { padding: 10px 10px 90px; }
	.vc-stage { grid-template-columns: 1fr; }
	.vc-head { padding: 8px 12px; gap: 10px; }
	.vc-keys { display: none; }
	.vc-row { gap: 10px 16px; }
	.vc[data-mode="switch"] .vc-stage { max-width: 100%; }
}
