/* Choctaw Film Festival - shared styles (public site + admin). Fonts are self-hosted (OFL).
   Look: Choctaw blue + ochre woven band (Choctaw Nation style), crimson header and colored tiles
   (Choctaw Cultural Center style), and the Diamondback play logo used decoratively. */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("../fonts/cabin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("../fonts/cabin-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("../fonts/cabin-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("../fonts/cabin-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #115C86; --blue-dark: #0B3F5E; --crimson: #8B2332; --crimson-dark: #6E1B28;
  --gold: #E3AA3C; --gold-soft: #F6D9A3; --ochre: #946005; --sand: #E8D9BC;
  --rust: #964029; --teal: #256D83; --navy: #27446B;
  --charcoal: #2E2A26; --charcoal-2: #1E1B18; --cream: #F4F1EC; --paper: #FFFFFF;
  --ink: #212529; --muted: #5C544B; --line: #E2DACD;
  --ok: #2E7550; --ok-bg: #E5F2EA; --warn: #8A5300; --warn-bg: #FBEFD8; --bad: #A13028; --bad-bg: #F8E3E0;
  --radius: 4px; --shadow: 0 2px 12px rgba(43, 36, 32, .12);
  --display: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Cabin", "Segoe UI", Roboto, Arial, sans-serif;
  /* older names the admin stylesheet still uses */
  --night: var(--charcoal); --night-2: #3A342F; --night-3: #4A433C; --clay: var(--blue); --clay-dark: var(--blue-dark);
  /* decorative patterns, drawn from the logo: the diamondback band and a woven texture */
  --diamondback: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cpath d='M12 0L24 10L12 20L0 10Z' fill='%23E3AA3C'/%3E%3Cpath d='M12 6L16.5 10L12 14L7.5 10Z' fill='%238B2332'/%3E%3C/svg%3E");
  --beads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cg fill='%23E3AA3C'%3E%3Cpath d='M7 0L14 6L7 12L0 6Z'/%3E%3Cpath d='M22 0L29 6L22 12L15 6Z'/%3E%3Cpath d='M37 0L44 6L37 12L30 6Z'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='M7 3.6L9.6 6L7 8.4L4.4 6Z'/%3E%3Cpath d='M22 3.6L24.6 6L22 8.4L19.4 6Z'/%3E%3Cpath d='M37 3.6L39.6 6L37 8.4L34.4 6Z'/%3E%3C/g%3E%3C/svg%3E");
  --woven: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 16px, transparent 16px 32px), repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 16px, transparent 16px 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--body); }
img { max-width: 100%; display: block; }
svg.logo { display: block; flex: none; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--blue); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--charcoal); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.caps { font-family: var(--display); text-transform: uppercase; }
.gap-top { margin-top: 16px; }
.lead { font-size: 1.2rem; }

/* decorative: diamondback strip and bead accent */
.db-band { height: 24px; background: var(--diamondback) center / 24px 20px repeat-x, var(--crimson); }
.db-band.dark { background-color: var(--crimson-dark); }
.beads { display: flex; align-items: center; gap: 14px; }
.beads::before { content: ""; width: 44px; height: 12px; flex: none; background: var(--beads) no-repeat; }
.section-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--charcoal); margin: 0; }

/* header */
.site-head { background: var(--crimson); color: #fff; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { height: 56px; width: auto; }
.brand b { display: block; font: 600 2rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.brand small { display: block; font: 500 .95rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font: 600 1.1rem var(--display); text-transform: uppercase; padding: 8px 2px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
.nav a.cta { background: var(--gold); color: var(--charcoal); padding: 10px 20px; border-bottom: 0; }
.nav a.cta:hover { background: var(--gold-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: var(--radius); padding: 12px 28px; font: 600 1.25rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; background: var(--blue); color: #fff; min-height: 48px; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.gold { background: var(--gold); color: var(--charcoal); }
.btn.gold:hover { background: var(--gold-soft); color: var(--charcoal); }
.btn.sand { background: var(--sand); color: var(--charcoal); font-size: 1rem; padding: 10px 22px; min-height: 44px; }
.btn.sand:hover { background: #F3E8D1; }
.btn.crimson { background: var(--crimson); }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.light:hover { background: #fff; border-color: var(--muted); color: var(--ink); }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 6px 14px; min-height: 36px; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero-visual { flex: 999 1 520px; min-width: 0; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual.panel { background: var(--woven), var(--ochre); display: flex; align-items: center; justify-content: center; }
.hero-visual.panel .logo { width: 46%; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.18)); }
.hero-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-text p { margin: 0; }
.eyebrow { color: var(--crimson); font-weight: 700; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-text .btn { align-self: flex-start; }
.deadline { font-size: 1rem; color: var(--muted); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-bottom: 56px; }
.tile { background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s; }
.tile:hover { transform: translateY(-3px); color: var(--ink); }
.tile .top { color: #fff; padding: 24px 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 1.25rem var(--display); text-transform: uppercase; letter-spacing: .04em; }
.tile .top svg { width: 40px; height: 40px; }
.tile p { margin: 0; padding: 16px 20px 20px; font-size: 1.02rem; }
.t-rust { background: var(--rust); } .t-teal { background: var(--teal); } .t-navy { background: var(--navy); }

/* ochre woven info band, with the logo as a faint watermark */
.info { background: var(--woven), var(--ochre); color: #fff; position: relative; overflow: hidden; }
.info .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px; padding-top: 48px; padding-bottom: 48px; position: relative; }
.info h2 { margin: 0 0 10px; font-size: 1.5rem; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.45); color: #fff; }
.info p { margin: 0 0 6px; }
.info .big { font-size: 1.2rem; }
.info .btn { margin-top: 8px; }
.watermark { position: absolute; pointer-events: none; opacity: 0.1035; }
.info .watermark { right: -40px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 340px; height: auto; }

/* sections */
section.block { padding: 64px 0; }
section.alt { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .section-title { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; }
.split { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.split > h2 { flex: 1 1 280px; color: var(--blue); text-transform: uppercase; font-weight: 700; margin: 0; }
.split > div { flex: 999 1 480px; min-width: 0; }
.prose p { max-width: 42em; }
.notice { border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 20px; }
.notice.ok { background: var(--ok-bg); border-color: #b9dcc7; }
.notice.warn { background: var(--warn-bg); border-color: #efd29c; }
.notice.bad { background: var(--bad-bg); border-color: #ecbcb6; }
.notice > :last-child { margin-bottom: 0; }

/* film cards + posters (a poster-less film gets a colored tile with the logo) */
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.film-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.film-card:hover { color: var(--ink); }
.film-card:hover .poster { transform: translateY(-3px); }
.poster { aspect-ratio: 2 / 3; position: relative; overflow: hidden; background: var(--blue); transition: transform .15s; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster.wide { aspect-ratio: 16 / 9; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; color: #fff; background: var(--woven); }
.placeholder .logo { width: 44%; height: auto; opacity: .3; margin: 22% auto 0; }
.placeholder .ttl { font: 600 1.45rem/1.1 var(--display); text-transform: uppercase; }
.pc-0 { background-color: var(--blue); } .pc-1 { background-color: var(--rust); } .pc-2 { background-color: var(--teal); } .pc-3 { background-color: var(--ochre); }
.poster .num { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--charcoal); font: 600 1.05rem var(--display); border-radius: 999px; min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 10px; z-index: 1; }
.meta { color: var(--muted); font-size: 1rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--cream); border: 1px solid var(--line); color: var(--crimson); border-radius: 999px; padding: 2px 10px; }
.tagline { margin-top: 6px; }
.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .logo { opacity: .35; }
.film-detail { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; padding-top: 48px; padding-bottom: 64px; }
.film-detail h1 { margin-top: 10px; }

/* forms */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font: 600 1.45rem/1.2 var(--display); text-transform: uppercase; color: var(--charcoal); margin-bottom: 14px; padding: 0; }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: .95rem; color: var(--muted); margin: -2px 0 8px; }
.req { color: var(--crimson); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid #CFC3AE; border-radius: var(--radius); padding: 11px 13px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(227, 170, 60, .45); outline-offset: 0; }
.field.error input, .field.error textarea, .field.error select { border-color: var(--bad); }
.err-msg { color: var(--bad); font-weight: 600; font-size: .95rem; margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.field label.check { font-weight: 400; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -5000px; }
.dropzone { position: relative; display: block; border: 2px dashed #C9B998; border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.over { background: #FFFAF0; border-color: var(--blue); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .big { font: 600 1.3rem var(--display); text-transform: uppercase; margin-bottom: 4px; }
.dropzone .chosen { font-weight: 700; color: var(--ok); word-break: break-all; }
.guide { margin-bottom: 20px; padding: 18px 24px; } .guide summary { cursor: pointer; } .guide[open] summary { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.card + .card, .notice + .card { margin-top: 20px; }

/* upload progress */
.progress-wrap { margin: 18px 0; }
.progress { height: 18px; background: #EBE3D4; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .3s; }
.progress-text { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.upload-panel { text-align: center; }
.upload-panel .logo { margin: 0 auto 10px; }

/* status page */
.status-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 16px; font-weight: 700; }
.status-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.st-submitted { background: var(--warn-bg); color: var(--warn); }
.st-approved { background: var(--ok-bg); color: var(--ok); }
.st-declined { background: #EEE8DF; color: var(--muted); }
.st-uploading { background: var(--bad-bg); color: var(--bad); }
.st-trashed { background: #EEE; color: #666; }

/* footer, with a faint logo watermark */
.site-foot { background: var(--crimson-dark); color: #F3E7E3; position: relative; overflow: hidden; }
.site-foot a { color: var(--gold-soft); }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 24px; position: relative; }
.site-foot .h { font: 600 1rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 4px; }
.site-foot .fb { display: flex; gap: 14px; align-items: center; }
.site-foot .fb span { font: 600 1.2rem var(--display); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.site-foot .fine { border-top: 1px solid #8B3A45; font-size: .9rem; color: #E0C9C4; padding-top: 16px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; }
.site-foot .fine a { color: #E0C9C4; }
.site-foot .watermark { right: -60px; bottom: -70px; width: 420px; height: auto; opacity: 0.069; transform: rotate(-8deg); }

@media (max-width: 860px) {
  .film-detail { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .film-detail .poster { max-width: 300px; }
  section.block { padding: 44px 0; }
  .hero .wrap { padding-top: 28px; padding-bottom: 40px; gap: 24px; }
  .info .watermark { width: 240px; right: -50px; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .brand b { font-size: 1.7rem; }
  .nav { width: 100%; gap: 4px 20px; }
  .films { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .placeholder .ttl { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.h-sm { font-size: 1.6rem; margin-top: 8px; margin-bottom: 10px; }
.logo-toggle { margin-left: 14px; text-decoration: none; opacity: .28; font-size: .8rem; display: inline-block; padding: 6px; }
.logo-toggle:hover, .logo-toggle:focus-visible { opacity: 1; }
.brand svg.logo-feather { height: 58px; width: auto; }
.hero-visual.panel .logo-feather { width: 62%; }
.placeholder .logo-feather { width: 62%; }

/* scattered background logos: very faint, large, rotated, bleeding off the edges */
main.deco { position: relative; overflow: hidden; }
main.deco > :not(.deco-layer) { position: relative; z-index: 1; }
.deco-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.deco-layer .logo { position: absolute; height: auto; opacity: 0.0517; }
.deco-layer .d1 { width: 820px; top: -60px; right: -260px; transform: rotate(14deg); }
.deco-layer .d2 { width: 560px; top: 24%; left: -230px; transform: rotate(-23deg); opacity: 0.0403; }
.deco-layer .d3 { width: 980px; top: 47%; right: -380px; transform: rotate(31deg); opacity: 0.0403; }
.deco-layer .d4 { width: 300px; top: 70%; left: 6%; transform: rotate(-9deg); opacity: 0.069; }
.deco-layer .d5 { width: 700px; top: 84%; left: 38%; transform: rotate(-38deg); opacity: 0.0345; }
section.alt { position: relative; overflow: hidden; }
section.alt > .wrap { position: relative; }
.alt .watermark.a1 { width: 640px; height: auto; right: -200px; top: -140px; transform: rotate(-16deg); opacity: 0.069; }
.alt .watermark.a2 { width: 260px; height: auto; left: 3%; bottom: -60px; transform: rotate(22deg); opacity: 0.0575; }
.info .watermark.w2 { width: 520px; height: auto; left: -180px; top: -120px; right: auto; transform: rotate(24deg); opacity: 0.0805; }
@media (max-width: 600px) {
  .deco-layer .d1 { width: 460px; right: -200px; }
  .deco-layer .d2 { width: 340px; left: -170px; }
  .deco-layer .d3 { width: 520px; right: -260px; }
  .deco-layer .d4 { width: 200px; }
  .deco-layer .d5 { width: 420px; left: 10%; }
  .alt .watermark.a1 { width: 380px; right: -170px; }
}

/* trailers */
.film-item { display: flex; flex-direction: column; gap: 10px; }
.trailer-btn { align-self: flex-start; gap: 8px; }
.film-trailer { margin: 6px 0 22px; background: #000; }
.film-trailer video { display: block; width: 100%; max-height: 70vh; }
#trailer-dialog { border: 0; padding: 0; width: min(960px, 94vw); background: #000; color: #fff; }
#trailer-dialog::backdrop { background: rgba(20, 16, 12, .82); }
#trailer-dialog video { display: block; width: 100%; max-height: 80vh; background: #000; }
.td-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: var(--charcoal); font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; }
.td-close { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; border-radius: 4px; }
.td-close:hover { background: rgba(255,255,255,.12); }
