/* Video type 4: a dense screening ledger and timeline workspace. */
:root {
  --v4-bg: #e9e8e2;
  --v4-surface: #f7f7f3;
  --v4-surface-alt: #deded8;
  --v4-header: #171918;
  --v4-header-ink: #f5f5f0;
  --v4-ink: #161918;
  --v4-muted: #666b68;
  --v4-accent: #cf3d2e;
  --v4-accent-ink: #ffffff;
  --v4-line: #b9bcb8;
  --v4-line-strong: #343936;
  --v4-radius: 2px;
  --v4-main-width: 1540px;
  --v4-media-width: 196px;
  --v4-ui: Arial, "Microsoft YaHei", sans-serif;
  --v4-mono: "Courier New", "Microsoft YaHei", monospace;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--v4-bg); }
body.v4-nav-open { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
.video-type-4.v4-ledger { min-height: 100vh; overflow-x: clip; background: var(--v4-bg); color: var(--v4-ink); font: 13px/1.45 var(--v4-ui); }
.video-type-4.v4-ledger :where(a) { color: inherit; text-decoration: none; }
.video-type-4.v4-ledger :where(button, input, select, textarea) { color: inherit; font: inherit; }
.video-type-4.v4-ledger :where(button, [type="button"], [type="submit"]) { cursor: pointer; }
.video-type-4.v4-ledger :where(img) { display: block; max-width: 100%; }
.video-type-4.v4-ledger :where(h1, h2, h3, p, li, dd, dt, a, span, strong, small, em, b) { overflow-wrap: anywhere; }
.video-type-4.v4-ledger :where(.v4-header, .v4-main, .v4-entry, .v4-entry-body, .v4-ledger-intro, .v4-ledger-section, .v4-footer) > * { min-width: 0; }

.v4-header { position: sticky; z-index: 100; top: 0; display: grid; min-height: 64px; grid-template-columns: minmax(210px, .7fr) minmax(360px, 1.5fr) minmax(210px, .7fr); align-items: stretch; border-bottom: 3px solid var(--v4-accent); background: var(--v4-header); color: var(--v4-header-ink); }
.v4-brand { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 10px clamp(14px, 2vw, 28px); border-right: 1px solid #454a47; }
.v4-brand > :first-child:not(span) { flex: 0 0 auto; }
.v4-brand > span { display: flex; min-width: 0; flex-direction: column; }
.v4-brand strong { overflow: hidden; font: 800 16px/1.2 var(--v4-ui); text-overflow: ellipsis; white-space: nowrap; }
.v4-brand small { overflow: hidden; margin-top: 3px; color: #aeb3af; font: 9px/1.2 var(--v4-mono); letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.v4-nav { display: flex; min-width: 0; align-items: stretch; overflow-x: auto; scrollbar-width: thin; }
.v4-nav a { position: relative; display: flex; min-width: 90px; align-items: center; justify-content: center; padding: 10px 15px; border-right: 1px solid #454a47; color: #c7cbc8; font-size: 11px; font-weight: 700; text-align: center; }
.v4-nav a:hover, .v4-nav a.is-current, .v4-nav a[aria-current="page"] { background: var(--v4-accent); color: var(--v4-accent-ink); }
.v4-nav a.is-current::after, .v4-nav a[aria-current="page"]::after { position: absolute; right: 8px; bottom: 7px; width: 5px; height: 5px; background: currentColor; content: ""; }
.v4-tools { display: flex; min-width: 0; align-items: stretch; justify-content: flex-end; }
.v4-tools input { width: min(210px, 18vw); min-width: 110px; padding: 8px 12px; border: 0; border-left: 1px solid #454a47; outline: 0; background: #242725; color: var(--v4-header-ink); }
.v4-tools input::placeholder { color: #aeb3af; opacity: 1; }
.v4-tools > :where(a, button) { display: inline-flex; min-width: 48px; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 0; border-left: 1px solid #454a47; background: transparent; color: var(--v4-header-ink); font-size: 10px; font-weight: 700; }
.v4-tools > :where(a, button):hover { background: #303431; }

.v4-main { width: min(100%, var(--v4-main-width)); margin: 0 auto; padding: 22px clamp(14px, 2.8vw, 44px) 54px; }
.v4-ledger-intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: end; gap: clamp(24px, 5vw, 80px); padding: 28px 0 24px; border-bottom: 4px solid var(--v4-line-strong); }
.v4-ledger-intro > div > span, .v4-ledger-section > header span, .v4-premiere > header span { color: var(--v4-accent); font: 800 9px/1.2 var(--v4-mono); letter-spacing: .12em; text-transform: uppercase; }
.v4-ledger-intro h1 { max-width: 920px; margin: 7px 0 8px; font-size: clamp(30px, 4.3vw, 62px); line-height: 1.02; }
.v4-ledger-intro p { max-width: 780px; margin: 0; color: var(--v4-muted); font-size: 12px; }
.v4-ledger-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--v4-line-strong); background: var(--v4-surface); }
.v4-ledger-stats > div { min-width: 0; padding: 14px; border-right: 1px solid var(--v4-line); }
.v4-ledger-stats > div:last-child { border-right: 0; }
.v4-ledger-stats dt { overflow: hidden; font: 800 22px/1 var(--v4-mono); text-overflow: ellipsis; white-space: nowrap; }
.v4-ledger-stats dd { margin: 5px 0 0; color: var(--v4-muted); font: 8px/1.25 var(--v4-mono); letter-spacing: .06em; text-transform: uppercase; }

.v4-premiere { margin: 26px 0 34px; }
.v4-premiere > header, .v4-ledger-section > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; min-height: 42px; padding: 0 0 9px; border-bottom: 1px solid var(--v4-line-strong); }
.v4-premiere > header h1, .v4-premiere > header h2, .v4-ledger-section > header h2 { margin: 3px 0 0; font-size: clamp(20px, 2.4vw, 31px); line-height: 1.1; }
.v4-premiere > header a, .v4-ledger-section > header a { color: var(--v4-muted); font: 700 9px/1.2 var(--v4-mono); text-transform: uppercase; }
.v4-premiere > header a:hover, .v4-ledger-section > header a:hover { color: var(--v4-accent); }
.v4-premiere .v4-entry { min-height: 250px; grid-template-columns: 58px minmax(300px, 42%) minmax(0, 1fr); border-top: 0; border-bottom: 4px solid var(--v4-line-strong); background: var(--v4-surface); }
.v4-premiere .v4-entry-media { align-self: stretch; width: 100%; aspect-ratio: auto; }
.v4-premiere .v4-entry-body { align-self: center; padding: 24px clamp(18px, 3vw, 42px); }
.v4-premiere .v4-entry-title { font-size: clamp(22px, 3vw, 40px); -webkit-line-clamp: 3; }

.v4-ledger-section { margin: 34px 0 54px; }
.v4-ledger-section > header { margin-bottom: 0; }
.v4-ledger-section > header p { max-width: 620px; margin: 4px 0 0; color: var(--v4-muted); font-size: 10px; }
.v4-ledger-section > :where(ol, ul, div):not(header) { margin-top: 0; }
.v4-ledger-section :where(ol, ul).v4-entry-list { margin: 0; padding: 0; list-style: none; }

.v4-entry { position: relative; display: grid; min-width: 0; min-height: 126px; grid-template-columns: 58px var(--v4-media-width) minmax(0, 1fr); grid-template-areas: "index media body"; align-items: stretch; border-bottom: 1px solid var(--v4-line); background: var(--v4-surface); transition: background-color .16s ease, border-color .16s ease, transform .28s ease; }
.v4-entry:first-child { border-top: 1px solid var(--v4-line); }
.v4-entry::before { position: absolute; z-index: 0; top: 0; bottom: -1px; left: 28px; width: 1px; background: var(--v4-line); content: ""; }
.v4-entry:hover, .v4-entry.has-focus { z-index: 1; background: var(--v4-surface-alt); border-color: var(--v4-line-strong); }
.v4-entry-index { position: relative; z-index: 1; grid-area: index; align-self: start; justify-self: center; min-width: 30px; margin-top: 14px; padding: 5px 3px; border: 1px solid var(--v4-line-strong); background: var(--v4-surface); color: var(--v4-muted); font: 700 9px/1 var(--v4-mono); text-align: center; }
.v4-entry-media { position: relative; grid-area: media; align-self: center; width: var(--v4-media-width); overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.v4-entry-media :where(img, video) { width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease, transform .28s ease; }
.v4-entry:hover .v4-entry-media img { filter: contrast(1.05); transform: scale(1.02); }
.v4-entry-media :where(time, small, .duration, .date) { position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); overflow: hidden; padding: 3px 5px; background: #111; color: #fff; font: 700 8px/1.2 var(--v4-mono); text-overflow: ellipsis; white-space: nowrap; }
.v4-entry-body { display: grid; min-width: 0; grid-area: body; grid-template-columns: minmax(0, 1fr) minmax(160px, .42fr); grid-template-rows: auto 1fr; align-content: center; gap: 7px 20px; padding: 15px 18px; }
.v4-entry-title { display: -webkit-box; max-width: 820px; margin: 0; overflow: hidden; font-size: 17px; font-weight: 800; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v4-entry:hover .v4-entry-title, .v4-entry:focus-within .v4-entry-title { color: var(--v4-accent); }
.v4-entry-meta { display: flex; min-width: 0; grid-column: 2; grid-row: 1 / span 2; align-items: flex-start; justify-content: flex-end; gap: 5px 12px; flex-wrap: wrap; margin: 0; color: var(--v4-muted); font: 9px/1.4 var(--v4-mono); text-align: right; }
.v4-entry-meta > * { max-width: 100%; }
.v4-entry-tags { display: flex; min-width: 0; align-self: end; gap: 5px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.v4-entry-tags :where(a, span) { display: inline-block; max-width: 190px; overflow: hidden; padding: 3px 6px; border: 1px solid var(--v4-line); color: var(--v4-muted); font: 8px/1.2 var(--v4-mono); text-overflow: ellipsis; white-space: nowrap; }
.v4-entry-tags a:hover { border-color: var(--v4-accent); color: var(--v4-accent); }
.v4-entry > a:only-child { display: contents; }

.v4-enhanced .v4-entry { transform: translateX(10px); transition-delay: calc(min(var(--v4-order, 0), 8) * 24ms); }
.v4-enhanced .v4-entry.is-in-view { transform: translateX(0); }

.v4-footer { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr) auto; gap: 26px 48px; padding: 34px max(18px, calc((100% - var(--v4-main-width)) / 2 + 44px)) 18px; border-top: 4px solid var(--v4-line-strong); background: var(--v4-header); color: var(--v4-header-ink); }
.v4-footer :where(strong, small) { display: block; }
.v4-footer strong { font-size: 15px; }
.v4-footer small, .v4-footer p { margin: 4px 0 0; color: #aeb3af; font-size: 9px; }
.v4-footer nav { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px 22px; flex-wrap: wrap; font-size: 10px; }
.v4-footer a:hover { color: var(--v4-accent); }
.v4-footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; padding-top: 12px; border-top: 1px solid #454a47; color: #8d928e; font: 8px/1.4 var(--v4-mono); }

.video-type-4.v4-ledger :where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--v4-accent); outline-offset: 3px; }
.video-type-4.v4-ledger .v4-header :where(a, button, input):focus-visible { outline-color: #ffffff; outline-offset: -4px; }
.video-type-4.v4-ledger .v4-entry:focus-within { box-shadow: inset 4px 0 0 var(--v4-accent); }

@media (max-width: 1040px) {
  .v4-header { grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr) auto; }
  .v4-nav a { min-width: 76px; padding-inline: 11px; }
  .v4-tools > :where(a, button) { min-width: 44px; padding-inline: 9px; }
  .v4-tools :where(span, strong, small) { display: none; }
  .v4-ledger-intro { grid-template-columns: 1fr; gap: 20px; }
  .v4-ledger-stats { max-width: 620px; }
  .v4-entry { grid-template-columns: 50px 170px minmax(0, 1fr); }
  .v4-entry::before { left: 24px; }
  .v4-entry-media { width: 170px; }
  .v4-entry-body { grid-template-columns: minmax(0, 1fr); }
  .v4-entry-meta { grid-column: 1; grid-row: auto; justify-content: flex-start; text-align: left; }
}

@media (max-width: 720px) {
  .v4-header { position: relative; grid-template-columns: minmax(0, 1fr) auto; min-height: 58px; }
  .v4-brand { min-height: 58px; border-right: 0; }
  .v4-tools { min-height: 58px; }
  .v4-nav { grid-column: 1 / -1; min-height: 43px; border-top: 1px solid #454a47; }
  .v4-nav a { flex: 1 0 auto; min-width: 82px; padding: 8px 11px; }
  .v4-main { padding: 16px 10px 36px; }
  .v4-ledger-intro { padding-top: 18px; }
  .v4-ledger-intro h1 { font-size: 34px; }
  .v4-premiere { margin-top: 20px; }
  .v4-premiere .v4-entry, .v4-entry { min-height: 0; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "index media" "index body"; }
  .v4-entry::before { left: 19px; }
  .v4-entry-index { min-width: 27px; margin-top: 10px; font-size: 8px; }
  .v4-premiere .v4-entry-media, .v4-entry-media { align-self: auto; width: 100%; aspect-ratio: 16 / 9; }
  .v4-premiere .v4-entry-body, .v4-entry-body { align-self: auto; padding: 11px 12px 14px; }
  .v4-premiere .v4-entry-title { font-size: 22px; }
  .v4-entry-title { font-size: 15px; }
  .v4-entry-meta { font-size: 8px; }
  .v4-ledger-section { margin: 28px 0 40px; }
  .v4-footer { grid-template-columns: 1fr; gap: 18px; padding: 26px 16px 14px; }
  .v4-footer nav { justify-content: flex-start; }
  .v4-footer-meta { grid-column: 1; flex-direction: column; }
}

@media (max-width: 430px) {
  .v4-brand { padding-inline: 11px; }
  .v4-brand strong { font-size: 14px; }
  .v4-brand small { display: none; }
  .v4-ledger-stats > div { padding: 10px 7px; }
  .v4-ledger-stats dt { font-size: 17px; }
  .v4-ledger-stats dd { font-size: 7px; }
  .v4-premiere > header, .v4-ledger-section > header { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .v4-premiere > header > a, .v4-ledger-section > header > a { justify-self: start; }
  .v4-entry-tags :where(a, span) { max-width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v4-entry, .v4-entry-media img, .v4-enhanced .v4-entry { transform: none; transition: none; }
}
