# #096 — MUBI Arthouse Reel

> Curated arthouse film-journal and cinema-reel interface in midnight cobalt, royal cinema blue, and editorial notebook essays.

## Metadata

- **Index**: #096
- **Slug**: `mubi-arthouse-reel`
- **Kind**: `style`
- **Family**: Kinetic, Film & Creative Studio
- **Theme**: `dark`
- **Mobile Strength**: `high`
- **Tags**: `arthouse-cinema`, `film-journal`, `midnight-cobalt`, `filmstrip-reel`, `editorial-streaming`, `cinephile-ui`
- **Best For**: Curated streaming & documentary platforms, Film criticism journals & cultural archives, Music/art curation & daily discovery clubs, Festival programming guides
- **Real-World Inspiration**: [MUBI](https://mubi.com/)
- **Detail Page**: https://templates.michaelpitts.net/t/mubi-arthouse-reel
- **Live Demo**: https://templates.michaelpitts.net/demos/mubi-arthouse-reel.html
- **JSON API**: https://templates.michaelpitts.net/api/templates/mubi-arthouse-reel

## Why This Aesthetic Is Unique

Combines a streaming screening room with a serious film-criticism journal—anchoring a 'Film of the Day' double-bill with a scrubbable 30-day programming reel and critical notebook essays.

## Color Palette

| Role | Name | Hex |
|------|------|-----|
| `canvas` | Midnight Cobalt | `#0D111A` |
| `surface` | Booth Slate Blue | `#171E2E` |
| `ink` | Screen Daylight | `#F2F4F8` |
| `accent` | Royal Cinema Blue | `#2E6BFF` |
| `muted` | Subtitles Steel | `#8B95AC` |

## Typography

- **Display**: `Fraunces, Georgia, serif`
- **Body**: `Inter, -apple-system, sans-serif`
- **Mono**: `IBM Plex Mono, ui-monospace, monospace`
- **Scale Notes**: Expressive Fraunces editorial titles (32–54px) paired with crisp 15px Inter criticism and 11px mono screening countdowns ('LEAVING IN 4 DAYS').
- **Google Fonts**: https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;1,9..144,400&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap
  ```html
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;1,9..144,400&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap">
  ```

## Layout Architecture

Double-bill editorial hero followed by a horizontal 30-day filmstrip reel scrubber, an integrated Notebook essay column, and a minimalist cinephile rating bar.

## Interaction & Micro-Motion Rules

Scrubbing or clicking frames on the 'Now Showing / Leaving Soon' reel updates the active cinema-frame still, director essay excerpt, and community rating distribution.

## Mobile & Responsive Rules

Horizontal touch-scrollable filmstrip reel with snap points and >=44px filter tabs on 390px viewports, stacking the Notebook essay cleanly below.

## Agent Guardrails

### DO
- Pair deep midnight cobalt (#0D111A) with authoritative royal blue (#2E6BFF) and refined serif journalism.
- Highlight curation signals like 'Film of the Day', country/year, and days remaining.
- Keep film stills widescreen (16:9) with crisp, uncluttered captions.

### DON'T
- Do not mimic chaotic auto-playing algorithmic carousels with noisy percentage match badges.
- Do not sacrifice essay readability with low-contrast muted text.

## Complete Standalone Starter Code

File: `demos/mubi-arthouse-reel.html`

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MUBI — Film of the Day &amp; 30-Day Curated Reel</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
  :root {
    --bg: #0D111A;
    --surface: #171E2E;
    --surface-hi: #1F2940;
    --ink: #F2F4F8;
    --accent: #2E6BFF;
    --accent-soft: rgba(46, 107, 255, 0.16);
    --muted: #8B95AC;
    --border: rgba(242, 244, 248, 0.11);
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

  /* Top Bar */
  .header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 17, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .mubi-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
  }
  .dots {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 3px;
  }
  .dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink);
  }
  .dots span.b { background: var(--accent); }
  .logo-word {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.22em;
  }
  .nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
  }
  .nav a {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav a.active, .nav a:hover { color: var(--ink); }
  .mobile-toggle {
    display: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.72rem;
    align-items: center;
    justify-content: center;
  }
  .mobile-drawer {
    display: none;
    flex-direction: column;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }
  .mobile-drawer.open { display: flex; }
  .mobile-drawer a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
  }

  /* Main wrapper */
  .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  }

  /* Double-Bill Hero */
  .hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(46, 107, 255, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
  }
  .curated-date {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.08em;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .still-stage {
    position: relative;
    background: #070A10;
    min-height: 320px;
    display: flex;
    flex-direction: column;
  }
  .still-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .still-canvas svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .still-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.4rem 1.2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 26, 0.92) 85%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
  }
  .still-caption h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
    line-height: 1.05;
  }
  .still-meta {
    margin-top: 0.35rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  .days-pill {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    background: rgba(13, 17, 26, 0.85);
    border: 1px solid var(--border);
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    color: var(--ink);
  }
  .days-pill.urgent { border-color: #FF6B6B; color: #FF9494; }

  .double-bill-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(13, 17, 26, 0.55);
    flex-wrap: wrap;
  }
  .double-bill-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
  }
  .double-bill-label strong { color: var(--ink); font-weight: 500; }
  .pair-btn {
    min-height: 44px;
    padding: 0 0.95rem;
    border: 1px solid rgba(46, 107, 255, 0.45);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink);
    background: var(--accent-soft);
    transition: background 0.2s;
  }
  .pair-btn:hover { background: var(--accent); }

  /* Feature Sidebar */
  .feature-info {
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
  }
  .feature-synopsis {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.68;
    color: rgba(242, 244, 248, 0.88);
  }
  .action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .btn-primary {
    min-height: 44px;
    padding: 0 1.2rem;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.84rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: filter 0.2s;
  }
  .btn-primary:hover { filter: brightness(1.12); }
  .btn-ghost {
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--ink);
    transition: border-color 0.2s, background 0.2s;
  }
  .btn-ghost.saved {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  /* Rating Distribution Bar */
  .ratings-box {
    background: rgba(13, 17, 26, 0.55);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.95rem 1.05rem;
  }
  .ratings-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.7rem;
  }
  .ratings-title {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .ratings-score {
    font-family: var(--serif);
    font-size: 1.45rem;
    color: var(--ink);
  }
  .ratings-score span {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
  }
  .hist-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0.45rem;
    height: 64px;
  }
  .hist-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
    justify-content: flex-end;
  }
  .hist-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(46, 107, 255, 0.35) 100%);
    border-radius: 3px 3px 0 0;
    transition: height 0.4s ease;
    min-height: 4px;
  }
  .hist-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
  }

  /* 30-Day Filmstrip Reel */
  .reel-section {
    margin-top: 2.75rem;
  }
  .reel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
  }
  .reel-header h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
  }
  .filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .filter-btn {
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .scrubber-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-wrap: wrap;
  }
  .scrubber-bar label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .scrubber-bar input[type="range"] {
    flex: 1;
    min-width: 160px;
    accent-color: var(--accent);
    height: 44px;
    cursor: pointer;
  }
  .scrubber-val {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--ink);
    min-width: 108px;
    text-align: right;
  }

  .filmstrip-shell {
    background: #080B12;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0;
    overflow: hidden;
  }
  .sprockets {
    height: 12px;
    margin: 0 0.75rem;
    background-image: repeating-linear-gradient(90deg, rgba(242, 244, 248, 0.16) 0 14px, transparent 14px 28px);
    border-radius: 2px;
  }
  .reel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.9rem 1rem;
  }
  .reel-card {
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
  }
  .reel-card:hover {
    border-color: rgba(46, 107, 255, 0.65);
    transform: translateY(-2px);
  }
  .reel-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
  }
  .reel-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #060910;
    position: relative;
  }
  .reel-thumb svg { width: 100%; height: 100%; display: block; }
  .reel-day-tag {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    padding: 0.22rem 0.48rem;
    background: rgba(13, 17, 26, 0.85);
    border: 1px solid var(--border);
    border-radius: 3px;
  }
  .reel-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  .reel-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.15;
  }
  .reel-sub {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--muted);
  }

  /* Notebook Essay Panel */
  .notebook {
    margin-top: 2.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }
  .notebook-kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.65rem;
  }
  .notebook h3 {
    margin: 0 0 0.85rem;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.15;
  }
  .notebook-byline {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
  }
  .pullquote {
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.18rem;
    line-height: 1.5;
    color: var(--ink);
  }
  .essay-body p {
    margin: 0 0 1rem;
    font-size: 0.96rem;
    line-height: 1.75;
    color: rgba(242, 244, 248, 0.86);
  }
  .essay-extra { display: none; }
  .essay-extra.open { display: block; }
  .read-more-btn {
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .read-more-btn:hover { background: var(--accent-soft); }

  footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
  }

  @media (max-width: 960px) {
    .feature-grid, .notebook { grid-template-columns: 1fr; }
    .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .nav { display: none; }
    .mobile-toggle { display: inline-flex; }
    .reel-grid { grid-template-columns: 1fr; }
    .still-caption { flex-direction: column; align-items: flex-start; }
  }
</style>
</head>
<body>
<header class="header">
  <div class="header-inner">
    <a href="#today" class="mubi-logo">
      <span class="dots" aria-hidden="true">
        <span></span><span></span><span class="b"></span>
        <span></span><span class="b"></span><span></span>
      </span>
      <span class="logo-word">MUBI</span>
    </a>
    <nav class="nav" aria-label="Primary">
      <a href="#today" class="active">Now Showing</a>
      <a href="#reel">30-Day Reel</a>
      <a href="#notebook">Notebook</a>
    </nav>
    <button class="mobile-toggle" id="mobToggle" aria-expanded="false" aria-controls="mobDrawer">MENU</button>
  </div>
  <nav class="mobile-drawer" id="mobDrawer" aria-label="Mobile Navigation">
    <a href="#today">Now Showing</a>
    <a href="#reel">30-Day Reel</a>
    <a href="#notebook">Notebook Essays</a>
  </nav>
</header>

<main class="wrap">
  <section id="today">
    <div class="hero-kicker">
      <span class="badge">● FILM OF THE DAY · DOUBLE BILL</span>
      <span class="curated-date">NEW FILM EVERY DAY · HAND-PICKED BY CURATORS</span>
    </div>

    <div class="feature-grid">
      <div class="still-stage">
        <div class="still-canvas" id="heroStill"></div>
        <div class="still-caption">
          <div>
            <h1 id="heroTitle">Letters from the Blue Harbor</h1>
            <div class="still-meta" id="heroMeta">AGNÈS MOREAU · FRANCE / PORTUGAL · 1994 · 108 MIN</div>
          </div>
          <span class="days-pill" id="heroDays">29 DAYS LEFT</span>
        </div>
        <div class="double-bill-strip">
          <span class="double-bill-label">PAIRED DOUBLE BILL: <strong id="pairName">The Train to Sapporo (2001)</strong></span>
          <button class="pair-btn" id="pairSwitchBtn">Switch to Companion Film →</button>
        </div>
      </div>

      <div class="feature-info">
        <div>
          <p class="feature-synopsis" id="heroSynopsis"></p>
        </div>
        <div class="action-row">
          <button class="btn-primary" id="playBtn">▶ Start Screening</button>
          <button class="btn-ghost" id="watchBtn">+ Watchlist</button>
        </div>
        <div class="ratings-box">
          <div class="ratings-head">
            <span class="ratings-title">Member Rating Distribution</span>
            <span class="ratings-score" id="avgRating">4.3 <span>/ 5.0</span></span>
          </div>
          <div class="hist-bars" id="histBars" aria-label="Rating histogram from 1 to 5 stars"></div>
        </div>
      </div>
    </div>
  </section>

  <section class="reel-section" id="reel">
    <div class="reel-header">
      <h2>30-Day Now Showing Filmstrip</h2>
      <div class="filter-pills" id="filterPills">
        <button class="filter-btn active" data-filter="all">All Showing</button>
        <button class="filter-btn" data-filter="leaving">Leaving Soon</button>
        <button class="filter-btn" data-filter="restored">4K Restored</button>
      </div>
    </div>

    <div class="scrubber-bar">
      <label for="dayScrubber">Reel Scrubber · Max Days Remaining</label>
      <input type="range" id="dayScrubber" min="2" max="30" value="30">
      <span class="scrubber-val" id="scrubberVal">≤ 30 DAYS</span>
    </div>

    <div class="filmstrip-shell">
      <div class="sprockets" aria-hidden="true"></div>
      <div class="reel-grid" id="reelGrid"></div>
      <div class="sprockets" aria-hidden="true"></div>
    </div>
  </section>

  <section class="notebook" id="notebook">
    <div>
      <div class="notebook-kicker">NOTEBOOK · CLOSE-UP ESSAY</div>
      <h3 id="essayTitle">Blue Hour and the Persistence of Maritime Memory</h3>
      <div class="notebook-byline" id="essayByline">BY CLARA HENRIQUES · 6 MIN READ</div>
      <blockquote class="pullquote" id="essayQuote">“Every static wide shot holds its breath just long enough for the tide to rewrite the composition.”</blockquote>
    </div>
    <div class="essay-body">
      <p id="essayLead"></p>
      <div class="essay-extra" id="essayExtra">
        <p id="essayMore"></p>
      </div>
      <button class="read-more-btn" id="essayToggle" aria-expanded="false">Read Full Notebook Entry</button>
    </div>
  </section>
</main>

<footer>
  <span>MUBI CURATED CINEMA · WORLDWIDE STREAMING &amp; NOTEBOOK</span>
  <span>30 FILMS IN ROTATION · RESTORED ARCHIVE</span>
</footer>

<script>
const CATALOG = [
  {
    id: 0,
    title: 'Letters from the Blue Harbor',
    meta: 'AGNÈS MOREAU · FRANCE / PORTUGAL · 1994 · 108 MIN',
    daysLeft: 29,
    tags: ['restored'],
    pairIdx: 1,
    synopsis: 'Shot on 35mm Eastmancolor along the misty docks of Porto, Moreau’s luminous drama follows a radio archivist cataloguing unsent letters left behind by merchant sailors at the close of the century.',
    rating: '4.3',
    hist: [4, 9, 18, 39, 54],
    essayTitle: 'Blue Hour and the Persistence of Maritime Memory',
    essayByline: 'BY CLARA HENRIQUES · 6 MIN READ',
    essayQuote: '“Every static wide shot holds its breath just long enough for the tide to rewrite the composition.”',
    essayLead: 'Restored in 4K from the original camera negative, Letters from the Blue Harbor resists melodrama in favor of acoustic texture—foghorns, chalk on slate, and the low hum of reel-to-reel tape.',
    essayMore: 'Moreau stages her conversations inside doorways and harbor trams, allowing passersby to bisect the frame. What emerges is a tender atlas of departure, where cobalt twilight becomes a character unto itself.',
    svg: `<svg viewBox="0 0 800 450" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <defs><linearGradient id="m0" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#142952"/><stop offset="65%" stop-color="#0C1426"/><stop offset="100%" stop-color="#070B14"/></linearGradient></defs>
      <rect width="800" height="450" fill="url(#m0)"/>
      <circle cx="600" cy="128" r="46" fill="#2E6BFF" opacity="0.28"/>
      <circle cx="600" cy="128" r="22" fill="#F2F4F8" opacity="0.82"/>
      <path d="M0 285 L220 265 L420 290 L800 272 L800 450 L0 450 Z" fill="#0B1324"/>
      <rect x="130" y="190" width="90" height="95" fill="#171E2E" stroke="#8B95AC" stroke-opacity="0.35"/>
      <rect x="155" y="218" width="16" height="24" fill="#2E6BFF" opacity="0.85"/>
      <line x1="0" y1="330" x2="800" y2="330" stroke="#2E6BFF" stroke-opacity="0.35" stroke-width="1.5"/>
      <line x1="120" y1="365" x2="680" y2="365" stroke="#F2F4F8" stroke-opacity="0.18"/>
    </svg>`
  },
  {
    id: 1,
    title: 'The Train to Sapporo',
    meta: 'KENICHIRO MORI · JAPAN · 2001 · 116 MIN',
    daysLeft: 18,
    tags: ['restored'],
    pairIdx: 0,
    synopsis: 'Two estranged siblings share an overnight sleeper car northward through Hokkaido’s winter blizzard, piecing together an unfinished Super-8 travelogue shot by their mother in 1978.',
    rating: '4.5',
    hist: [2, 6, 15, 41, 62],
    essayTitle: 'Snowfall Through a Moving Aperture',
    essayByline: 'BY DANIEL KWON · 5 MIN READ',
    essayQuote: '“The dining car window turns the northern landscape into a continuous horizontal scroll.”',
    essayLead: 'Mori’s camera rarely leaves the narrow corridor of the sleeper train. As frost gathers on the panes, the interior tungsten glow contrasts sharply with the cobalt snowdrifts outside.',
    essayMore: 'Paired tonight with Moreau’s harbor elegy, both films treat transit not as an interlude between destinations, but as the only space where memory can finally be spoken aloud.',
    svg: `<svg viewBox="0 0 800 450" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="800" height="450" fill="#0D1424"/>
      <rect x="70" y="75" width="660" height="240" rx="18" fill="#16233E" stroke="#F2F4F8" stroke-opacity="0.25" stroke-width="2"/>
      <line x1="290" y1="75" x2="290" y2="315" stroke="#0D111A" stroke-width="12"/>
      <line x1="510" y1="75" x2="510" y2="315" stroke="#0D111A" stroke-width="12"/>
      <path d="M70 250 Q260 215 440 245 T730 235 L730 315 L70 315 Z" fill="#F2F4F8" opacity="0.14"/>
      <circle cx="180" cy="140" r="3" fill="#F2F4F8"/><circle cx="380" cy="160" r="2.5" fill="#F2F4F8"/><circle cx="620" cy="130" r="3" fill="#2E6BFF"/>
      <rect x="0" y="348" width="800" height="2" fill="#2E6BFF" opacity="0.5"/>
    </svg>`
  },
  {
    id: 2,
    title: 'A Quiet Symmetry',
    meta: 'LUKAS KOVAC · CZECHIA · 1987 · 92 MIN',
    daysLeft: 3,
    tags: ['leaving', 'restored'],
    pairIdx: 3,
    synopsis: 'Inside a Prague municipal swimming bath scheduled for demolition, an architectural draftsman documents every tile pattern before the final morning whistle.',
    rating: '4.1',
    hist: [5, 11, 24, 42, 36],
    essayTitle: 'Geometry of the Everyday in Late-80s Prague',
    essayByline: 'BY PETRA NOVAKOVA · 7 MIN READ',
    essayQuote: '“Kovac turns civic concrete into a chamber-music score of ripples and echoes.”',
    essayLead: 'Leaving the reel in three days, Kovac’s dryly humorous miniature finds unexpected warmth inside modernist symmetry and deadpan municipal bureaucracy.',
    essayMore: 'Every frame is locked to a tripod, making even a stray ripple across the diving pool register like a dramatic upheaval.',
    svg: `<svg viewBox="0 0 800 450" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="800" height="450" fill="#0F1828"/>
      <g stroke="#2E6BFF" stroke-opacity="0.32" stroke-width="1">
        <line x1="0" y1="90" x2="800" y2="90"/><line x1="0" y1="180" x2="800" y2="180"/><line x1="0" y1="270" x2="800" y2="270"/><line x1="0" y1="360" x2="800" y2="360"/>
        <line x1="160" y1="0" x2="160" y2="450"/><line x1="320" y1="0" x2="320" y2="450"/><line x1="480" y1="0" x2="480" y2="450"/><line x1="640" y1="0" x2="640" y2="450"/>
      </g>
      <circle cx="400" cy="225" r="95" fill="none" stroke="#F2F4F8" stroke-width="1.5" opacity="0.65"/>
      <circle cx="400" cy="225" r="55" fill="#2E6BFF" opacity="0.22"/>
    </svg>`
  },
  {
    id: 3,
    title: 'After the Monsoon',
    meta: 'MEERA NAIR-SEN · INDIA · 2019 · 124 MIN',
    daysLeft: 6,
    tags: ['leaving'],
    pairIdx: 2,
    synopsis: 'A young sound recordist returns to Kochi to capture disappearing rain-season folk percussion before coastal redevelopment reshapes the neighborhood.',
    rating: '4.4',
    hist: [3, 7, 16, 40, 58],
    essayTitle: 'Listening to Rain on Tin Roofs',
    essayByline: 'BY ARJUN MEHTA · 4 MIN READ',
    essayQuote: '“Before we ever see the musicians, the Dolby mix places us squarely under the monsoon eaves.”',
    essayLead: 'Shot with natural overcast light and handheld intimacy, After the Monsoon treats field recording as an act of love and civic preservation.',
    essayMore: 'Its final twenty minutes unfold in a single nocturnal rehearsal lit only by streetlamps and passing ferry beams.',
    svg: `<svg viewBox="0 0 800 450" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="800" height="450" fill="#0B1320"/>
      <g stroke="#8B95AC" stroke-opacity="0.28" stroke-width="1.2">
        <line x1="120" y1="0" x2="60" y2="450"/><line x1="240" y1="0" x2="180" y2="450"/><line x1="360" y1="0" x2="300" y2="450"/>
        <line x1="480" y1="0" x2="420" y2="450"/><line x1="600" y1="0" x2="540" y2="450"/><line x1="720" y1="0" x2="660" y2="450"/>
      </g>
      <ellipse cx="400" cy="360" rx="220" ry="26" fill="none" stroke="#2E6BFF" stroke-width="2" opacity="0.7"/>
      <ellipse cx="400" cy="360" rx="120" ry="14" fill="none" stroke="#F2F4F8" stroke-width="1" opacity="0.45"/>
    </svg>`
  },
  {
    id: 4,
    title: 'Night Shift in Turin',
    meta: 'MATTEO CONTI · ITALY · 1973 · 101 MIN',
    daysLeft: 2,
    tags: ['leaving', 'restored'],
    pairIdx: 5,
    synopsis: 'Over one humid August night, a newspaper linotype operator wanders between cafés and empty piazzas trying to return a misplaced envelope of photographs.',
    rating: '4.2',
    hist: [4, 10, 22, 44, 42],
    essayTitle: 'Piazza Shadows and the Italian Neo-Noir',
    essayByline: 'BY SOFIA FERRARI · 5 MIN READ',
    essayQuote: '“Turin’s arcades become a labyrinth of sodium-vapor light and quiet chance encounters.”',
    essayLead: 'Restored by the Cineteca, Conti’s nocturnal drift balances crisp black-and-white contrast with a warm jazz-flute score.',
    essayMore: 'Only two days remain on the reel to catch this rarely screened gem of 1970s Italian cinema.',
    svg: `<svg viewBox="0 0 800 450" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="800" height="450" fill="#0C1018"/>
      <path d="M80 450 L80 180 A100 100 0 0 1 280 180 L280 450" fill="none" stroke="#F2F4F8" stroke-opacity="0.35" stroke-width="2"/>
      <path d="M300 450 L300 180 A100 100 0 0 1 500 180 L500 450" fill="none" stroke="#F2F4F8" stroke-opacity="0.35" stroke-width="2"/>
      <path d="M520 450 L520 180 A100 100 0 0 1 720 180 L720 450" fill="none" stroke="#F2F4F8" stroke-opacity="0.35" stroke-width="2"/>
      <circle cx="400" cy="145" r="18" fill="#2E6BFF" opacity="0.6"/>
      <polygon points="400,163 290,450 510,450" fill="#2E6BFF" opacity="0.1"/>
    </svg>`
  },
  {
    id: 5,
    title: 'Glass & Concrete',
    meta: 'HELENA BORG · SWEDEN · 2023 · 89 MIN',
    daysLeft: 24,
    tags: ['restored'],
    pairIdx: 4,
    synopsis: 'A portrait of three retired Stockholm subway-station mosaicists revisiting the underground vaults they sculpted in the 1960s.',
    rating: '4.0',
    hist: [6, 12, 26, 39, 32],
    essayTitle: 'Subterranean Cathedrals of Public Transit',
    essayByline: 'BY ERIK LINDQVIST · 4 MIN READ',
    essayQuote: '“Borg films escalators and tiled arches with the reverence usually reserved for opera houses.”',
    essayLead: 'An essay-film about civic craft, Glass & Concrete pairs archival 16mm construction footage with crisp modern digital cinematography.',
    essayMore: 'Its unhurried rhythm invites viewers to notice the hand-laid artistry beneath their daily commute.',
    svg: `<svg viewBox="0 0 800 450" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="800" height="450" fill="#101827"/>
      <polygon points="0,450 320,160 480,160 800,450" fill="#17233A"/>
      <polygon points="180,450 360,200 440,200 620,450" fill="#2E6BFF" opacity="0.22"/>
      <line x1="0" y1="120" x2="800" y2="120" stroke="#F2F4F8" stroke-opacity="0.2"/>
      <rect x="355" y="160" width="90" height="60" fill="none" stroke="#F2F4F8" stroke-opacity="0.5"/>
    </svg>`
  }
];

let activeId = 0;
let activeFilter = 'all';
let maxDays = 30;
const savedIds = new Set();

const $ = (id) => document.getElementById(id);

function renderFeature(id) {
  activeId = id;
  const f = CATALOG.find(x => x.id === id) || CATALOG[0];
  const pair = CATALOG.find(x => x.id === f.pairIdx) || CATALOG[1];

  $('heroStill').innerHTML = f.svg;
  $('heroTitle').textContent = f.title;
  $('heroMeta').textContent = f.meta;
  const dp = $('heroDays');
  dp.textContent = f.daysLeft + (f.daysLeft === 1 ? ' DAY LEFT' : ' DAYS LEFT');
  dp.classList.toggle('urgent', f.daysLeft <= 6);
  $('pairName').textContent = pair.title;
  $('heroSynopsis').textContent = f.synopsis;
  $('avgRating').innerHTML = `${f.rating} <span>/ 5.0</span>`;

  const maxH = Math.max(...f.hist);
  $('histBars').innerHTML = f.hist.map((v, i) => `
    <div class="hist-col">
      <div class="hist-bar" style="height:${Math.round((v / maxH) * 46)}px" title="${i+1} stars: ${v}%"></div>
      <span class="hist-label">${i+1}★</span>
    </div>
  `).join('');

  const wb = $('watchBtn');
  const isSaved = savedIds.has(f.id);
  wb.classList.toggle('saved', isSaved);
  wb.textContent = isSaved ? '✓ In Watchlist' : '+ Watchlist';

  $('essayTitle').textContent = f.essayTitle;
  $('essayByline').textContent = f.essayByline;
  $('essayQuote').textContent = f.essayQuote;
  $('essayLead').textContent = f.essayLead;
  $('essayMore').textContent = f.essayMore;
  $('essayExtra').classList.remove('open');
  $('essayToggle').textContent = 'Read Full Notebook Entry';
  $('essayToggle').setAttribute('aria-expanded', 'false');

  renderReel();
}

function renderReel() {
  const grid = $('reelGrid');
  const filtered = CATALOG.filter(f => {
    const matchFilter = activeFilter === 'all' || f.tags.includes(activeFilter);
    const matchDays = f.daysLeft <= maxDays;
    return matchFilter && matchDays;
  });

  if (!filtered.length) {
    grid.innerHTML = `<div style="grid-column:1/-1;padding:2rem;text-align:center;color:var(--muted);font-family:var(--mono);font-size:0.82rem;">No films match ≤ ${maxDays} days in this filter. Adjust the reel scrubber above.</div>`;
    return;
  }

  grid.innerHTML = '';
  filtered.forEach(f => {
    const card = document.createElement('button');
    card.className = 'reel-card' + (f.id === activeId ? ' active' : '');
    card.innerHTML = `
      <div class="reel-thumb">
        ${f.svg}
        <span class="reel-day-tag">${f.daysLeft}D LEFT</span>
      </div>
      <div class="reel-body">
        <div class="reel-title">${f.title}</div>
        <div class="reel-sub">${f.meta.split('·').slice(0, 2).join('·')}</div>
      </div>
    `;
    card.addEventListener('click', () => {
      renderFeature(f.id);
      $('today').scrollIntoView({ behavior: 'smooth', block: 'start' });
    });
    grid.appendChild(card);
  });
}

$('pairSwitchBtn').addEventListener('click', () => {
  const f = CATALOG.find(x => x.id === activeId);
  if (f) renderFeature(f.pairIdx);
});

$('watchBtn').addEventListener('click', () => {
  if (savedIds.has(activeId)) savedIds.delete(activeId);
  else savedIds.add(activeId);
  renderFeature(activeId);
});

$('playBtn').addEventListener('click', () => {
  const btn = $('playBtn');
  const f = CATALOG.find(x => x.id === activeId);
  btn.textContent = `▶ Playing: ${f.title}`;
  setTimeout(() => { btn.textContent = '▶ Start Screening'; }, 2400);
});

$('filterPills').querySelectorAll('.filter-btn').forEach(btn => {
  btn.addEventListener('click', () => {
    activeFilter = btn.dataset.filter;
    $('filterPills').querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
    btn.classList.add('active');
    renderReel();
  });
});

$('dayScrubber').addEventListener('input', (e) => {
  maxDays = Number(e.target.value);
  $('scrubberVal').textContent = `≤ ${maxDays} DAYS`;
  renderReel();
});

$('essayToggle').addEventListener('click', () => {
  const open = $('essayExtra').classList.toggle('open');
  $('essayToggle').textContent = open ? 'Collapse Notebook Entry' : 'Read Full Notebook Entry';
  $('essayToggle').setAttribute('aria-expanded', open ? 'true' : 'false');
});

$('mobToggle').addEventListener('click', () => {
  const open = $('mobDrawer').classList.toggle('open');
  $('mobToggle').setAttribute('aria-expanded', open ? 'true' : 'false');
});
$('mobDrawer').querySelectorAll('a').forEach(a => a.addEventListener('click', () => {
  $('mobDrawer').classList.remove('open');
  $('mobToggle').setAttribute('aria-expanded', 'false');
}));

renderFeature(0);
</script>
</body>
</html>
```
