:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #000; color: #ddd; --accent: #e48b7e; --caption-size: 1.8rem; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
a { color: inherit; }
#library { max-width: 760px; margin: auto; padding: max(32px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
.wordmark { font-size: 12px; font-weight: 750; letter-spacing: .13em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .18em; color: var(--accent); margin: 40px 0 14px; }
.intro h1 { font-family: Georgia, serif; font-size: clamp(2.7rem, 10vw, 4.1rem); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; margin: 0 0 24px; }
.lede { color: #999; font-size: 15px; line-height: 1.6; margin: 18px 0 26px; }
.instructions { display: flex; gap: 15px; align-items: flex-start; border: 1px solid #302523; background: #110e0d; padding: 18px; border-radius: 12px; }
.cc { flex-shrink: 0; font-size: 11px; font-weight: 750; letter-spacing: -.05em; border: 1px solid currentColor; border-radius: 4px; padding: 3px 5px; color: var(--accent); }
.instructions p { font-size: 14px; line-height: 1.6; margin: -3px 0 0; color: #b7aca9; }
.instructions strong { color: #e1d5d1; font-weight: 600; }
.intro { margin-bottom: 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.section-heading h2 { font-size: 16px; font-weight: 550; margin: 0; }
.section-heading span { font-size: 10px; color: #888; }
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.film { padding: 0; border: 0; background: transparent; text-align: left; color: inherit; display: flex; flex-direction: column; border-radius: 8px; }
.still { display: block; position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: #191919; }
.still img { height: 100%; width: 100%; object-fit: cover; filter: brightness(.7); }
.start-badge { position: absolute; bottom: 8px; right: 8px; border: 1px solid #ffffff30; background: #000b; padding: 5px 7px; border-radius: 5px; font-size: 10px; color: #ddd; }
.film-title { font-size: 14px; font-weight: 550; line-height: 1.35; margin: 10px 0 4px; }
.film-duration { font-size: 11px; color: #888; }
.film:hover .still img { filter: brightness(.9); }
footer { border-top: 1px solid #242020; margin-top: 36px; padding-top: 24px; font-size: 12px; line-height: 1.8; color: #888; }
footer a { display: inline-block; padding: 12px 0; }
.player { min-height: 100svh; min-height: 100dvh; max-width: 760px; margin: auto; display: flex; flex-direction: column; padding: max(12px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom)); }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiet { color: #999; background: transparent; border: 0; min-height: 48px; min-width: 48px; padding: 10px 0; }
#size { font-family: Georgia, serif; font-size: 20px; }
.now-playing { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.now-playing h1 { font-size: 15px; line-height: 1.4; font-weight: 500; color: #aaa; margin: 0; outline: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caption-stage { flex: 1; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 0; text-align: center; }
#caption { font-size: var(--caption-size); line-height: 1.4; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; margin: 0; color: #d8d4cb; }
.gap { color: #777; font-size: 15px; line-height: 1.6; margin: 0; }
.transport { padding-top: 12px; }
.time { display: flex; justify-content: space-between; color: #888; font-size: 12px; font-variant-numeric: tabular-nums; }
#seek { width: 100%; margin: 0 0 12px; height: 44px; accent-color: #a8746c; cursor: pointer; }
.playback-buttons { display: grid; grid-template-columns: 1.15fr 1fr .8fr .8fr; gap: 8px; }
.secondary, .primary { border-radius: 9px; border: 1px solid #38302d; min-height: 50px; min-width: 0; padding: 12px 6px; font-size: 14px; }
.secondary { background: #12100f; color: #aaa; }
.primary { background: #bd8175; color: #120c0a; border-color: #bd8175; font-weight: 650; }
.hint { font-size: 11px; color: #888; text-align: center; line-height: 1.5; margin: 8px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (min-width: 600px) { #library { padding: 48px 32px; } .films { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } .player { padding-left: 40px; padding-right: 40px; } }
@media (max-height: 500px) and (orientation: landscape) { .player { min-height: 100dvh; } .caption-stage { min-height: 120px; padding: 16px 0; } }
