/* films.madangelfilms.com
   Mad Angel Films palette (NetworkTopology AGENTS.md rule 3): Deep Black #0A0A0A,
   Dark Charcoal #1F1F1F, Pure White #FFFFFF, Steel Gray #6E6E6E, Brick Red #B22222,
   Deep Blood Red #7A0C0C, Dark Crimson #8B0000, Burnt Red #C1442E, Muted Gold #A67C2D.

   Two themes on one stylesheet:
     .theme-noir    -- the four features (and the menu): black and white with Muted Gold, as on
                       the 2009-2012 posters. This part is the features' old site.css verbatim.
     .theme-crimson -- Crimson Moon: Cinzel type, Brick Red accents and the rising moon,
                       carried over from crimsonmoon.madangelfilms.com.
   Fonts are self-hosted OFL (see /assets/fonts/LICENSE.txt). The Crackhouse wordmark is an
   image: that typeface is a commercial House Industries font with no web licence on file. */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-var.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("../fonts/archivo-narrow-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --black: #0A0A0A;
  --charcoal: #1F1F1F;
  --white: #FFFFFF;
  --text: #ECE6E1;            /* Pure White, softened slightly for long reading on black */
  --muted: #B9B1AC;           /* secondary text; >= 7:1 on --black */
  --steel: #6E6E6E;
  --brick: #B22222;
  --blood: #7A0C0C;
  --crimson: #8B0000;
  --burnt: #C1442E;
  --gold: #A67C2D;
  --focus: #E8B04B;
  --measure: 68ch;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

a { color: var(--white); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--white); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--white); color: var(--black); padding: .5rem 1rem; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 16px clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 60% at 50% 105%, rgba(166, 124, 45, .10), transparent 70%),
    linear-gradient(to bottom, #050505 0%, var(--black) 100%);
}
/* Two backlights from the top corners, like the 2010 poster. */
.beams {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 160deg at 6% -8%, transparent 0deg, rgba(255,255,255,.10) 14deg, transparent 30deg),
    conic-gradient(from 170deg at 94% -8%, transparent 0deg, rgba(255,255,255,.10) 16deg, transparent 30deg);
  filter: blur(18px);
  animation: lights 2s ease-out both;
}
@keyframes lights { from { opacity: 0; } to { opacity: 1; } }
.presents { display: inline-block; text-decoration: none; }
.presents img { width: clamp(11rem, 30vw, 17rem); display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.9)); }
.presents-word, .byline {
  margin: .35rem 0 0;
  font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-weight: 500;
  letter-spacing: .45em; text-transform: uppercase; font-size: .8rem; color: var(--text);
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.byline { margin-top: .9rem; letter-spacing: .3em; font-size: .78rem; color: var(--muted); }
.title img {
  /* the film's master title logo (same PNG as the opening and end titles) */
  display: block; width: min(92vw, 52rem); height: auto; margin: 0 auto;
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 4px 14px rgba(0,0,0,.95)) drop-shadow(0 0 30px rgba(255, 255, 255, .12));
}
.title {
  margin: clamp(1.2rem, 4vw, 2.6rem) 0 .4rem;
  font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-weight: 700;
  font-size: clamp(2.9rem, 11vw, 7.5rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--white);
  text-shadow: 0 0 2px #000, 0 4px 18px rgba(0,0,0,.95);
}
.tagline {
  margin: 1rem auto 0; max-width: 40ch; font-style: italic;
  font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-weight: 500;
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem); line-height: 1.45;
  color: var(--text);
}
.facts {
  margin: 1.1rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .7rem;
  text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; color: var(--muted);
}

/* ---------- player ---------- */
.film { padding: 0 16px; }
.player {
  margin: 0 auto; max-width: 1280px;
  background: #000;
  border: 1px solid var(--charcoal);
  box-shadow: 0 0 0 1px rgba(166, 124, 45, .25), 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.player-offline { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--muted); }
.player-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.5rem; padding: .7rem 1rem;
  background: var(--charcoal); border-top: 1px solid #2a2a2a;
  font-size: .95rem;
}
.quality { display: flex; align-items: center; gap: .4rem; }
.quality .label { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-right: .2rem; }
.q {
  font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  min-width: 4.2rem; min-height: 2.25rem; padding: .25rem .7rem;
  color: var(--text); background: transparent;
  border: 1px solid var(--steel); border-radius: 3px; cursor: pointer;
}
.q:hover { border-color: var(--text); }
.q[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }
.advisory { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- sections ---------- */
main > section:not(.film) {
  max-width: 1080px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 16px 0;
}
h2 {
  margin: 0 0 1.2rem;
  font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); letter-spacing: .06em;
  color: var(--white);
}
h2::after {
  content: ""; display: block; width: 3.5rem; height: 3px; margin-top: .6rem;
  background: linear-gradient(90deg, var(--gold), rgba(166,124,45,0));
}
h3 {
  margin: 1.8rem 0 .8rem;
  font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
h3 .year { color: var(--muted); font-weight: 500; letter-spacing: .08em; }
.story p { max-width: var(--measure); }
.poster { margin: 0 auto 1.8rem; width: min(88vw, 420px); text-align: center; }
.poster img { display: block; width: 100%; height: auto; border: 1px solid var(--charcoal);
  box-shadow: 0 10px 40px rgba(0,0,0,.8), 0 0 60px rgba(255, 255, 255, .06); }
.poster figcaption { margin-top: .7rem; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.poster figcaption a { color: var(--muted); }
.poster figcaption a:hover { color: var(--white); }
@media (min-width: 900px) {
  .story::after { content: ""; display: table; clear: both; }
  .poster { float: right; width: 340px; margin: .3rem 0 1.5rem 2.5rem; }
}
.logline {
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.45; color: var(--white);
  border-left: 3px solid var(--gold); padding-left: 1rem; margin-left: 0;
}

.credit-cols { display: grid; grid-template-columns: 1fr; gap: 1.4rem 3.5rem; }
@media (min-width: 760px) { .credit-cols { grid-template-columns: 1fr 1fr; } }
.credit-cols > div > h3:first-child { margin-top: .2rem; }
.roles { margin: 0; display: grid; gap: .45rem; }
.roles > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem; align-items: baseline; }
.roles dt { color: var(--muted); text-align: right; font-size: .95em; }
.roles dd { margin: 0; color: var(--white); font-weight: 600; }
.notes { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--charcoal); color: var(--muted); font-size: .98rem; }
.notes p { max-width: var(--measure); margin: .4rem 0; }
.notes strong { color: var(--text); }

.extras { margin-top: 1.8rem; }
.extras summary {
  cursor: pointer; width: fit-content;
  font-weight: 600; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.extras summary:hover { color: var(--white); }
.extras .roles { margin-top: 1rem; max-width: 540px; }

.towns { max-width: var(--measure); font-size: 1.15em; color: var(--white); }
.towns span { color: var(--gold); margin: 0 .25em; }
.towns .t { color: inherit; margin: 0; white-space: nowrap; }
.thanks-list {
  list-style: none; margin: 0; padding: 0;
  columns: 3 14rem; column-gap: 2.5rem; color: var(--text);
}
.thanks-list li { break-inside: avoid; padding: .12rem 0; }
.restoration p { max-width: var(--measure); }
.aside { color: var(--muted); font-style: italic; }

/* ---------- footer ---------- */
.foot {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 2.5rem 16px 3rem;
  text-align: center;
  border-top: 1px solid var(--charcoal);
  background: linear-gradient(to bottom, var(--black), #050505);
}
.foot-brand img { width: 13rem; }
.foot p { margin: .5rem 0 0; }
.copy { color: var(--muted); font-size: .88rem; }

@media (max-width: 520px) {
  .roles > div { grid-template-columns: 1fr; gap: 0; }
  .roles dt { text-align: left; font-size: .85em; text-transform: uppercase; letter-spacing: .08em; }
  .player-bar { padding: .6rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .beams { animation: none; }
}

/* ======================================================================
   Site menu (new for the combined site)
   ====================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding: .45rem 16px;
  background: rgba(10, 10, 10, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--charcoal);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { width: 8.5rem; display: block; }
.brand-sub {
  font-weight: 600; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  padding-left: .6rem; border-left: 1px solid var(--steel);
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--text); }
.nav-inline { display: none; }
.nav .tag {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; vertical-align: .15em;
  color: var(--muted); border: 1px solid var(--steel); border-radius: 2px; padding: .05rem .3rem;
}

/* phones and tablets: a drop-down (a <details>, so it works without JavaScript) */
.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .45rem;
  min-height: 2.75rem; padding: 0 .9rem;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem;
  border: 1px solid var(--steel); border-radius: 3px; color: var(--white);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { transition: transform .15s; }
.nav-menu[open] summary { border-color: var(--gold); }
.nav-menu[open] summary svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute; right: 0; top: calc(100% + .5rem);
  width: min(20rem, calc(100vw - 32px));
  max-height: calc(100vh - 5rem); overflow-y: auto;
  padding: .6rem 0 .8rem;
  background: #111; border: 1px solid #2a2a2a; border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,.8);
}
.nav-group {
  margin: .6rem 1rem .2rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.nav-panel a { display: block; padding: .55rem 1rem; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--charcoal); }
.nav-panel .nm { display: block; font-weight: 700; font-size: 1.08rem; color: var(--white); }
.nav-panel .sub { display: block; font-size: .85rem; color: var(--muted); }
.nav-panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); background: rgba(166,124,45,.08); }
.nav-all { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid #2a2a2a; }
.nav-all a { color: var(--muted); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }

/* desktop: the films inline */
@media (min-width: 900px) {
  .nav-menu { display: none; }
  .nav-inline { display: flex; gap: .2rem; }
  .nav-inline a {
    display: block; padding: .5rem .8rem; border-radius: 3px;
    font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .86rem;
  }
  .nav-inline a:hover { background: var(--charcoal); }
  .nav-inline a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--gold); }
}

/* ======================================================================
   Film cards: the menu page, "More from Mad Angel Films", 404
   ====================================================================== */
.hero-home { padding-bottom: clamp(1rem, 3vw, 2rem); }
.home-title {
  margin: clamp(1.4rem, 4vw, 2.4rem) 0 0;
  font-weight: 700; font-size: clamp(2.6rem, 9vw, 5.5rem); line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); text-shadow: 0 0 2px #000, 0 4px 18px rgba(0,0,0,.95);
}
main > section.menu-section, main > section.more { max-width: 1200px; }
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.6rem 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.card-art {
  display: block; aspect-ratio: 720 / 1019; overflow: hidden; background: #000;
  border: 1px solid var(--charcoal);
  box-shadow: 0 10px 30px rgba(0,0,0,.7);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card a:hover .card-art, .card a:focus-visible .card-art {
  transform: translateY(-3px); border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,.85), 0 0 0 1px rgba(166,124,45,.4);
}
.card-crimson a:hover .card-art, .card-crimson a:focus-visible .card-art {
  border-color: var(--brick); box-shadow: 0 16px 40px rgba(0,0,0,.85), 0 0 30px rgba(178,34,34,.35);
}
.card-ph {
  display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center;
  font-weight: 700; font-size: 1.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
  background:
    conic-gradient(from 160deg at 6% -8%, transparent 0deg, rgba(255,255,255,.06) 14deg, transparent 30deg),
    linear-gradient(#141414, #0a0a0a);
}
.card-title { margin: .9rem 0 .15rem; font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; color: var(--white); }
.card-crimson .card-title { font-family: "Cinzel", Georgia, serif; }
.card-facts { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-tag { margin-top: .45rem; font-style: italic; font-size: .98rem; line-height: 1.45; }
.card-cta {
  margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.card-crimson .card-cta { color: var(--burnt); }
.card-pending .card-cta { color: var(--steel); }
/* the short sits alone in its row: keep it card-sized */
#shorts-h + .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 17rem)); }

/* "More films": a swipeable strip on phones, a grid on wide screens */
.cards-row {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 42vw);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; overscroll-behavior-x: contain;
}
.cards-row .card { scroll-snap-align: start; }
@media (min-width: 760px) {
  .cards-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); grid-auto-columns: auto; overflow: visible; }
}
.cards-row .card-title { font-size: 1.1rem; }
.cards-row .card-tag { display: none; }

.player-offline { position: relative; overflow: hidden; }
.player-offline .offline-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: blur(2px); }
.player-offline p { position: relative; }
.title-text { text-transform: uppercase; letter-spacing: .08em; }
.notfound { max-width: 1080px; margin: 0 auto; padding: 4rem 16px 0; }

/* ======================================================================
   Crimson Moon theme (overrides, from crimsonmoon.madangelfilms.com site.css)
   ====================================================================== */
.theme-crimson a { text-decoration-color: var(--brick); }
.theme-crimson a:hover { text-decoration-color: var(--burnt); }
.theme-crimson .hero {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(122, 12, 12, .35), transparent 70%),
    linear-gradient(to bottom, #120404 0%, var(--black) 100%);
}
.moon {
  position: absolute; z-index: -1;
  left: 50%; top: clamp(3.5rem, 7vw, 5.5rem);
  width: clamp(13rem, 36vw, 24rem); aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(0,0,0,.18) 0 7%, transparent 8%),
    radial-gradient(circle at 62% 64%, rgba(0,0,0,.16) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 30%, rgba(0,0,0,.12) 0 4%, transparent 5%),
    radial-gradient(circle at 38% 36%, #D23B2C 0%, var(--brick) 38%, var(--crimson) 70%, #3E0404 100%);
  box-shadow: 0 0 60px 10px rgba(178, 34, 34, .35), 0 0 180px 40px rgba(122, 12, 12, .28);
  opacity: .9;
  animation: rise 1.6s ease-out both;
}
@keyframes rise {
  from { opacity: .35; transform: translate(-50%, 14px); }
  to   { opacity: .9; transform: translate(-50%, 0); }
}
.theme-crimson .presents-word { font-family: "Cinzel", Georgia, serif; }
.theme-crimson .title img { filter: drop-shadow(0 0 2px #000) drop-shadow(0 4px 14px rgba(0,0,0,.95)) drop-shadow(0 0 28px rgba(178, 34, 34, .45)); }
.theme-crimson .tagline { max-width: 36ch; font-family: "Cinzel", Georgia, serif; font-style: normal; }
.theme-crimson .player { box-shadow: 0 0 0 1px rgba(178, 34, 34, .25), 0 30px 80px -20px rgba(122, 12, 12, .55); }
.theme-crimson .q[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); color: var(--white); }
.theme-crimson h2 { font-family: "Cinzel", Georgia, serif; }
.theme-crimson h2::after { background: linear-gradient(90deg, var(--brick), var(--blood)); }
.theme-crimson h3, .theme-crimson .extras summary { font-family: "Cinzel", Georgia, serif; color: var(--burnt); }
.theme-crimson .poster img { box-shadow: 0 10px 40px rgba(0,0,0,.8), 0 0 60px rgba(178, 34, 34, .18); }
.theme-crimson .logline { border-left-color: var(--brick); }
.theme-crimson .credit-cols { gap: 0 3.5rem; }
.location p { max-width: var(--measure); }
.thanks { font-size: 1.15em; color: var(--white); }
.thanks span { font-family: "Cinzel", Georgia, serif; font-weight: 700; color: var(--burnt); letter-spacing: .06em; }
.theme-crimson .foot { background: linear-gradient(to bottom, var(--black), #120404); }
.theme-crimson .nav-inline a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brick); }
.theme-crimson .nav-panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brick); background: rgba(178,34,34,.08); }
.theme-crimson .nav-menu[open] summary { border-color: var(--brick); }

@media (prefers-reduced-motion: reduce) {
  .moon { animation: none; }
  .card-art { transition: none; }
}

/* ======================================================================
   Sign-in, account links and the admin page (private site)
   ====================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* account links in the menu */
.nav-out { margin: 0; }
.nav-out button {
  font: inherit; cursor: pointer; background: none; border: 0; padding: .5rem .8rem; border-radius: 3px;
  color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem;
}
.nav-out button:hover { color: var(--white); background: var(--charcoal); }
.nav-inline .nav-admin { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid #2a2a2a; }
.nav-inline .nav-admin a { color: var(--gold); }
.nav-none { margin: .6rem 1rem; color: var(--muted); font-size: .95rem; }
.nav-acct { margin-top: .5rem; padding: .6rem 0 0; border-top: 1px solid #2a2a2a; }
.nav-who { margin: 0 1rem .3rem; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.nav-acct > a { color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .88rem; }
.nav-acct .nav-out button { width: 100%; text-align: left; padding: .55rem 1rem; font-size: .88rem; letter-spacing: .12em; }

/* sign-in */
.login { min-height: calc(100vh - 3.5rem); display: grid; place-items: center; padding: 2rem 16px; }
.login-card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(100%, 26rem); padding: 2.4rem 1.6rem 2rem; text-align: center;
  background: linear-gradient(#111, #0b0b0b); border: 1px solid #262626; border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(166,124,45,.15);
}
.login-mark { width: 12rem; display: block; margin: 0 auto; }
.login h1 {
  margin: 1.2rem 0 .4rem; font-size: 1.9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white);
}
.login-lede { margin: 0 auto 1.6rem; max-width: 30ch; color: var(--muted); }
.login-error { margin: 0 0 1rem; padding: .6rem .8rem; border: 1px solid var(--brick); border-radius: 4px; background: rgba(178,34,34,.12); color: var(--white); }
.login-note { color: var(--muted); }
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 2.9rem; width: 100%; padding: 0 1.2rem;
  background: #fff; color: #1f1f1f; border-radius: 4px; text-decoration: none;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: .01em;
}
.gbtn:hover { background: #f2f2f2; }
.devlogin { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed #333; text-align: left; }
.dev-tag { margin: 0 0 .6rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--burnt); }
.devlogin label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
.devrow { display: flex; gap: .5rem; }
.devrow input { flex: 1; min-width: 0; }

/* form controls */
input[type="email"], input[type="text"] {
  font: inherit; color: var(--white); background: #0d0d0d; border: 1px solid var(--steel); border-radius: 3px;
  min-height: 2.75rem; padding: .4rem .7rem;
}
input[type="email"]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(166,124,45,.35); }
.btn, .devrow button {
  font: inherit; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; cursor: pointer;
  min-height: 2.75rem; padding: 0 1.1rem; border-radius: 3px;
  color: var(--black); background: var(--gold); border: 1px solid var(--gold);
}
.btn:hover, .devrow button:hover { background: #b98d36; }
.btn-danger { background: transparent; color: #e9817a; border-color: #6b2a26; }
.btn-danger:hover { background: rgba(178,34,34,.15); color: var(--white); }

/* admin */
.admin { max-width: 1080px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 16px 0; }
.admin h1 { margin: 0 0 .4rem; font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); letter-spacing: .06em; color: var(--white); }
.admin-lede { margin: 0 0 1.5rem; max-width: 70ch; color: var(--muted); }
.flash { padding: .7rem 1rem; border-radius: 4px; margin: 0 0 1.4rem; }
.flash-ok { background: rgba(166,124,45,.12); border: 1px solid rgba(166,124,45,.5); color: var(--white); }
.flash-err { background: rgba(178,34,34,.12); border: 1px solid var(--brick); color: var(--white); }
.panel { margin-top: 2.4rem; }
.panel h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); }
.count { color: var(--muted); font-weight: 500; }
.badge { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; letter-spacing: .06em; background: var(--brick); color: var(--white); }
.addform { display: grid; gap: 1rem; padding: 1.2rem; background: #101010; border: 1px solid #242424; border-radius: 6px; }
.field { display: grid; gap: .35rem; max-width: 30rem; }
.field span { color: var(--muted); font-size: .9rem; }
.films { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.films legend { color: var(--muted); font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.chk { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .85rem; border: 1px solid #333; border-radius: 3px; cursor: pointer; user-select: none; }
.chk input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); margin: 0; }
.chk:has(input:checked) { border-color: var(--gold); background: rgba(166,124,45,.10); color: var(--white); }
.chk-admin { border-style: dashed; }
.chk-admin.locked { cursor: default; color: var(--muted); border-color: #2a2a2a; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.person { padding: 1rem 1.1rem; background: #101010; border: 1px solid #242424; border-radius: 6px; scroll-margin-top: 5rem; }
.person:target { border-color: var(--gold); }
.person-waiting { border-left: 3px solid var(--brick); }
.person form { display: grid; gap: .8rem; }
.person-head p { margin: 0; }
.person-email { font-weight: 700; color: var(--white); font-size: 1.08rem; overflow-wrap: anywhere; }
.person-meta { color: var(--muted); font-size: .9rem; }
.person-all { margin: 0; color: var(--muted); font-style: italic; }
.person-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.person-actions .btn:first-of-type { margin-left: auto; }
.pill { display: inline-block; vertical-align: .12em; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; }
.pill-owner { background: var(--gold); color: var(--black); }
.pill-you { border-color: var(--steel); color: var(--muted); }
.log summary { cursor: pointer; list-style: none; }
.log summary::-webkit-details-marker { display: none; }
.log summary h2 { display: inline-block; }
.log ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.log li { padding: .45rem 0; border-bottom: 1px solid #1c1c1c; color: var(--muted); overflow-wrap: anywhere; }
.log time { font-variant-numeric: tabular-nums; margin-right: .4rem; }
.log strong { color: var(--text); font-weight: 600; }
.empty p { max-width: 60ch; }
@media (max-width: 520px) {
  .person-actions .btn:first-of-type { margin-left: 0; }
  .person-actions .btn { flex: 1; }
  .chk-admin { width: 100%; }
}
.admin > section.panel { max-width: none; padding: 0; margin: 2.4rem 0 0; }
.log summary h2::before { content: "▸ "; color: var(--gold); }
.log[open] summary h2::before { content: "▾ "; }
