/* Red Handed Productions — design system
   Colors: #CC0000 red (accent only) · #0D0D0D bg · #FFF text · #B3B3B3 muted */

:root {
  --red: #CC0000;
  --bg: #0D0D0D;
  --surface: #161616;
  --surface-2: #1E1E1E;
  --text: #FFFFFF;
  --muted: #B3B3B3;
  --muted-dim: #888888; /* large/decorative text only */
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.lede { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: transparent;
  transition: background 200ms ease;
}
.nav.solid { background: rgba(13, 13, 13, 0.95); border-bottom: 1px solid #222; }
.nav-logo { font-weight: 900; letter-spacing: 0.12em; font-size: 1.05rem; }
.nav-logo em { color: var(--red); font-style: normal; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0;
  transition: color 150ms;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { border-bottom: 2px solid var(--red); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #333;
  color: var(--text);
  font: inherit;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  min-height: 44px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 5vw 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(204, 0, 0, 0.08), transparent 60%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  letter-spacing: 0.08em;
  font-weight: 900;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero .tagline {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
}
.hero .cta-row { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* page hero (interior pages) */
.page-hero { padding: 10rem 5vw 3rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }

/* ---------- buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: filter 150ms, background 150ms;
}
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--text); border-color: #444; }
.btn.ghost:hover { border-color: var(--red); background: rgba(204, 0, 0, 0.1); }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--red);
  border-radius: 3px;
  color: var(--text);
}
.badge.tbc { border-color: #444; color: var(--muted); }

/* ---------- rows (Netflix-style) ---------- */
.section { padding: 3rem 5vw; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.35rem; letter-spacing: 0.02em; }
.section-head a { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.section-head a:hover { color: var(--red); }
.row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.row .card { flex: 0 0 clamp(240px, 30vw, 340px); scroll-snap-align: start; }

/* ---------- cards ---------- */
.card { position: relative; }
.card-poster {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 200ms ease;
}
.card:hover .card-poster, .card:focus-within .card-poster { transform: scale(1.05); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-fallback {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.poster-fallback::before { content: ""; width: 2rem; height: 3px; background: var(--red); margin-bottom: 0.6rem; }
.poster-fallback span { font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: 0.02em; }
.card-meta { padding: 0.6rem 0.1rem; }
.card-title { font-size: 0.95rem; font-weight: 700; }
.card-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.card-logline { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.card-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.card-actions .btn { min-height: 36px; padding: 0.35rem 0.8rem; font-size: 0.7rem; }
.card .badge { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; background: rgba(13, 13, 13, 0.85); }

/* ---------- grid + filter tabs ---------- */
.filter-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-tabs button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  min-height: 44px;
  cursor: pointer;
  transition: all 150ms;
}
.filter-tabs button:hover { color: var(--text); border-color: #555; }
.filter-tabs button[aria-pressed="true"] { color: #fff; border-color: var(--red); background: rgba(204, 0, 0, 0.15); }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.25rem;
}
.card-poster.playable { cursor: pointer; }
.card-poster.playable::after {
  content: "\25B6";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.92);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms;
}
.card:hover .card-poster.playable::after,
.card-poster.playable:focus-visible::after { opacity: 1; }
.card-poster.playable { position: relative; }

/* ---------- modal player ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.9);
}
.modal.open { display: flex; }
.modal-box {
  width: min(960px, 100%);
  background: #000;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
}
.modal-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-foot { padding: 1rem 1.25rem; }
.modal-foot h3 { font-size: 1.05rem; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.modal-close:hover { background: var(--red); }
.grid-empty { color: var(--muted); padding: 2rem 0; }

/* ---------- featured (upcoming hero) ---------- */
.featured {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
}
.featured .card-poster { max-width: 420px; }
.featured h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.featured .meta-line { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.featured p { color: var(--muted); max-width: 60ch; margin-bottom: 1rem; }

/* ---------- video facade ---------- */
.video-facade {
  position: relative;
  width: min(880px, 90vw);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #222;
  cursor: pointer;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.video-facade .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px; height: 72px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms;
}
.video-facade:hover .play { transform: scale(1.1); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade .facade-note {
  position: absolute;
  bottom: 0.75rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- prose / about ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose strong { color: var(--text); }
.collab-list { list-style: none; }
.collab-list li { padding: 1rem 0; border-bottom: 1px solid #222; }
.collab-list .name { font-weight: 700; }
.collab-list .role { color: var(--muted); font-size: 0.9rem; }
.placeholder-block {
  border: 1px dashed #444;
  border-radius: 6px;
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- forms ---------- */
.form { max-width: 560px; display: grid; gap: 1.25rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.form input, .form textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  min-height: 44px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 140px; resize: vertical; }
.hidden { display: none !important; }

/* ---------- footer ---------- */
.footer {
  margin-top: 4rem;
  padding: 3rem 5vw;
  border-top: 1px solid #1E1E1E;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer .socials { display: flex; gap: 1.25rem; }
.footer .socials a { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; padding: 0.75rem 0; }
.footer .socials a:hover { color: var(--red); }

/* ---------- title sheet (app-style detail) ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
}
.sheet-backdrop.open { display: flex; }
.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: 85svh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid #262626;
  border-radius: 14px 14px 0 0;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  animation: sheet-up 220ms ease;
}
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; padding: 2rem; }
  .sheet { border-radius: 14px; }
}
.sheet-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.sheet-close:hover { background: var(--red); }
.sheet-body { display: grid; gap: 1rem; }
.sheet-body .card-poster { border-radius: 8px; }
.sheet-body .card-poster.vertical { aspect-ratio: 2 / 3; max-width: 240px; margin: 0 auto; }
.sheet-info h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.sheet-logline { color: var(--muted); margin: 0.6rem 0 0.9rem; }
.sheet-info .card-actions { margin-top: 0.75rem; }
.sheet-info .card-actions .btn { min-height: 44px; font-size: 0.78rem; flex: 1 1 auto; justify-content: center; }
.sheet-trigger { cursor: pointer; }

/* ---------- mobile bottom tab bar ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid #222;
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0;
  color: var(--muted-dim);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
}
.tabbar .tab svg { width: 22px; height: 22px; }
.tabbar .tab.active { color: var(--red); }
.tabbar .tab:active { color: var(--text); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 420px 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 3.5rem 5vw; }
}
@media (max-width: 639px) {
  /* app-style chrome: bottom tab bar replaces the menu entirely */
  .tabbar { display: flex; }
  .nav-toggle, .nav-links { display: none !important; }
  .nav { background: rgba(13, 13, 13, 0.95); padding: 0.85rem 5vw; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .footer { margin-bottom: 0; }

  /* streaming-app hero: brand up top, content fast */
  .hero { min-height: 62svh; padding-top: 5rem; }
  .page-hero { padding-top: 6.5rem; }

  /* edge-to-edge swipe rows with next-card peek — pure art, app-style */
  .section { padding: 2rem 5vw; }
  .row {
    margin-inline: -5vw;
    padding-inline: 5vw;
    scroll-padding-inline: 5vw;
    scrollbar-width: none;
  }
  .row::-webkit-scrollbar { display: none; }
  .row .card { flex: 0 0 62vw; }
  .row .card-logline, .row .card-actions { display: none; }
  .row .card-meta { padding: 0.45rem 0.1rem 0; }
  .row .card-title { font-size: 0.88rem; }
  .row .card-sub { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .section-head h2 { font-size: 1.15rem; }

  .featured .card-poster { max-width: none; }
}

/* touch screens: play affordance always visible, no hover needed */
@media (hover: none) {
  .card-poster.playable::after { opacity: 0.92; transform: scale(0.85); }
  .card:hover .card-poster { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
