/* /view/darkcontrol-in-depth. Loaded after home.css; everything here is scoped to .vd. */
.vd { --night-raised: #0c1222; --night-strong: #46527a; background: var(--night); }
.vd main:focus { outline: none; }
.vd main > .end, .vd .foot { background: #fff; }
.vd .end { border-top: 0; }
.vd .top__nav a[aria-current] { color: #fff; }
.cinema { background: var(--night); color: var(--night-soft); }
.cinema :focus-visible { outline-color: #fff; }
.cinema button { cursor: pointer; }
.cinema ol { padding: 0; }
.cinema .btn { height: 44px; padding: 0 18px; background: none; font-size: 15.5px; cursor: pointer; }
.cinema .btn--crimson { background: var(--crimson); }
.cinema .btn--crimson:hover { background: var(--crimson-deep); }
.cinema .btn[aria-pressed="true"] { border-color: var(--night-text); background: var(--night-text); color: var(--night); }
.cinema .btn[aria-disabled="true"] { border-color: var(--night-rule); color: #6b7590; cursor: default; }
.cinema h2 { color: #fff; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.016em; }

.show { width: min(1240px, 100% - 2 * var(--gutter), max(620px, (100svh - 320px) * 1.7778)); margin: 0 auto; padding: 26px 0 72px; }
.show__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 12px 40px; align-items: end; margin-bottom: 26px; }
.show__head h1 { color: #fff; font-size: clamp(38px, 4.6vw, 66px); }
.show__head p { font-size: 16.5px; line-height: 1.5; }

.playbtn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px 0 18px; border-radius: 8px; background: var(--crimson); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.playbtn svg { flex: none; }
.playbtn--lg { height: 64px; padding: 0 30px 0 26px; gap: 16px; border-radius: 10px; font-size: 19px; }
.go { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; color: #fff; }
.go .playbtn { position: absolute; left: 4.6%; top: 57%; }
.go:hover .playbtn { background: var(--crimson-deep); }
.go:focus-visible { outline: none; }
.go:focus-visible .playbtn { outline: 2px solid #fff; outline-offset: 4px; }

.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px var(--night-rule); }
.screen video { width: 100%; height: 100%; background: #000; }
.screen video::cue { background: rgba(0, 0, 0, .82); color: #fff; font-family: Arial, sans-serif; }
.card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(16px, 5vw, 72px); overflow: auto; background: var(--night-raised); color: var(--night-soft); }
.card__title { color: #fff; font-size: clamp(24px, 3.4vw, 44px); font-weight: 660; font-stretch: 88%; line-height: 1.05; letter-spacing: -.02em; }
.card--end { flex-direction: row; align-items: center; justify-content: flex-start; gap: clamp(20px, 4vw, 48px); }
.card--end img { flex: none; width: 38%; border-radius: 8px; }
.card__kind { margin-bottom: 6px; color: var(--night-text); }
.card--end .actions { margin-top: 24px; }

.now { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 40px; padding: 20px 0 24px; }
.now__desc { max-width: 46em; margin-top: 6px; }
.now__ctl { display: flex; flex: none; align-items: center; gap: 10px; }
.now__count { min-width: 64px; color: var(--night-soft); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }

.strip ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.strip a { display: block; text-decoration: none; font-size: 14.5px; line-height: 1.3; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: 8px; overflow: hidden; border-radius: 6px; background: #18213a; box-shadow: 0 0 0 1px var(--night-rule); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip a:hover .thumb { box-shadow: 0 0 0 2px var(--night-muted); }
.strip a[aria-current] .thumb { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--crimson-lit); }
.strip__t { display: block; color: var(--night-text); font-weight: 600; }
.strip__m { display: block; min-height: 1.3em; color: var(--night-muted); font-variant-numeric: tabular-nums; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .6); }
.bar i { display: block; height: 100%; background: var(--crimson-lit); }
.keys { margin-top: 28px; color: var(--night-muted); font-size: 14px; }

@media (hover: none) { .keys { display: none; } }
@media (max-width: 1000px) {
  .now { flex-direction: column; }
  .now__ctl { width: 100%; }
  .now__ctl [data-captions] { margin-right: auto; }
  .show { width: calc(100% - 2 * var(--gutter)); }
  .strip { margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: thin; scrollbar-color: var(--night-strong) transparent; }
  .strip ol { display: flex; width: max-content; padding: 6px var(--gutter) 12px; }
  .strip li { flex: none; width: 188px; scroll-snap-align: start; }
}
@media (max-width: 820px) { .show__head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .show { padding: 16px 0 48px; }
  .show__head { margin-bottom: 20px; }
  .screen { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; }
  .playbtn--lg { height: 46px; padding: 0 18px 0 14px; gap: 10px; border-radius: 8px; font-size: 15.5px; }
  .card { padding: 16px; gap: 6px; font-size: 15px; line-height: 1.4; }
  .card--end img { display: none; }
  .card--end .actions { margin-top: 12px; gap: 8px; }
  .card__kind { margin-bottom: 2px; }
  .cinema .card .btn { padding: 0 14px; font-size: 14.5px; }
  .now { padding-top: 16px; gap: 16px; }
  .now__desc { font-size: 16px; }
  .now__ctl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .cinema .now__ctl .btn { padding: 0 14px; }
  .now__ctl [data-captions] { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .keys { display: none; }
  .strip li { width: 152px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .vd .top__in { height: 52px; }
  .show__head { display: none; }
  .show { width: min(100% - 2 * var(--gutter), (100svh - 64px) * 1.7778); padding-top: 0; }
  .screen { margin: 0; border-radius: 8px; }
}
