/* ==========================================================================
   LeeCinema — Shared Styles (main.css)
   Site-wide design tokens, layout chrome (header, nav, filmstrip, footer)
   shared by every page. Page-specific styles live in their own files:
   watched.css, watchlist.css, stats.css, equipment.css
   ========================================================================== */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #0c0c0f;
      --bg2:      #13131a;
      --bg3:      #1a1a24;
      --bg4:      #22222f;
      --border:   rgba(255,255,255,0.07);
      --border2:  rgba(255,255,255,0.12);
      --gold:     #c9a84c;
      --gold2:    #e8c96a;
      --gold-dim: rgba(201,168,76,0.15);
      --text:     #e8e6e0;
      --text2:    #9e9b92;
      --text3:    #6b6860;
      --red:      #e05252;
      --netflix:  #e50914;
      --hbo:      #8a2be2;
      --disney:   #113ccf;
      --prime:    #00a8e1;
      --apple:    #a2aaad;
      --theater:  #c9a84c;
      --green:    #5cb87a;
      --green-bg: rgba(92,184,122,0.1);
      --green-bdr:rgba(92,184,122,0.25);
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'DM Sans', sans-serif;
      font-weight: 300;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── Grain overlay ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      opacity: 0.4;
      pointer-events: none;
      z-index: 0;
    }

    /* ── Header ── */
    header {
      position: relative;
      z-index: 10;
      padding: 48px 40px 36px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 20px;
    }

    .logo-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .logo-eyebrow {
      font-family: 'DM Sans', sans-serif;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
    }

    .logo {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 52px;
      line-height: 1;
      letter-spacing: 0.04em;
      color: var(--text);
    }

    .logo span {
      color: var(--gold);
    }

    .header-stats {
      display: flex;
      gap: 32px;
      padding-bottom: 4px;
    }

    .header-right {
      display: flex;
      align-items: flex-end;
      padding-bottom: 4px;
    }

    /* ── Site nav bar ── */
    .site-nav-bar {
      position: relative;
      z-index: 15;
      background: var(--bg2);
      border-bottom: 1px solid var(--border);
      display: flex;
      padding: 0 40px;
    }

    .site-nav-bar a {
      position: relative;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.08em;
      color: var(--text3);
      text-decoration: none;
      padding: 14px 22px;
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .site-nav-bar a::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 2px;
      background: var(--gold);
      transform: scaleX(0);
      transition: transform 0.2s;
    }

    .site-nav-bar a:hover { color: var(--text2); }
    .site-nav-bar a:hover::after { transform: scaleX(1); opacity: 0.4; }

    .site-nav-bar a.active {
      color: var(--gold);
    }

    .site-nav-bar a.active::after {
      transform: scaleX(1);
    }

    .site-nav-bar .nav-icon {
      opacity: 0.7;
    }

    .site-nav-bar a.active .nav-icon {
      opacity: 1;
    }

    .stat { text-align: right; }

    .stat-clickable {
      cursor: pointer;
      transition: opacity 0.15s;
    }

    .stat-clickable:hover { opacity: 0.75; }

    .stat-num {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 32px;
      line-height: 1;
      color: var(--gold);
    }

    .stat-label {
      font-size: 10px;
      font-weight: 400;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text3);
      margin-top: 2px;
    }

    /* ── Filmstrip decoration ── */
    .filmstrip {
      width: 100%;
      height: 22px;
      background: var(--bg2);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 8px;
      gap: 6px;
      overflow: hidden;
      position: relative;
      z-index: 5;
    }

    .filmstrip-hole {
      width: 12px;
      height: 10px;
      border-radius: 2px;
      background: var(--bg);
      flex-shrink: 0;
      border: 1px solid var(--border2);
    }

    /* ── Footer ── */
    footer {
      position: relative;
      z-index: 5;
      border-top: 1px solid var(--border);
      padding: 20px 40px;
      text-align: center;
      font-size: 11px;
      color: var(--text3);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
