:root {
  color-scheme: dark;
  --bg: #0d0c0b;
  --ink: #fbf5e8;
  --muted: #c6beb0;
  --soft: rgba(251, 245, 232, 0.74);
  --line: rgba(255, 255, 255, 0.14);
  --panel: #171512;
  --ruby: #e54c5f;
  --gold: #f4c45e;
  --teal: #55c8b9;
  --green: #84b96a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 4%, rgba(229, 76, 95, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 0%, rgba(85, 200, 185, 0.14), transparent 26rem),
    linear-gradient(180deg, #14110f 0%, var(--bg) 42rem);
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.screen-reader-text,
.skipLink {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skipLink:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  color: #14100d;
  background: var(--gold);
  border-radius: 8px;
}

.siteHeader,
.siteMain,
.siteFooter {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-right: clamp(16px, 3vw, 40px);
  padding-left: clamp(16px, 3vw, 40px);
}

.siteHeader {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 850;
}

.brandMark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ruby), var(--gold) 52%, var(--teal));
  box-shadow: 0 10px 30px rgba(229, 76, 95, 0.34);
}

.navMenu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navMenu a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 750;
}

.navMenu a:hover {
  color: var(--ink);
}

.movieSearch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.movieSearch input[type="search"] {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.movieSearch input[type="search"]::placeholder {
  color: rgba(251, 245, 232, 0.48);
}

.movieSearch button,
.primaryButton,
.ghostButton,
.tabButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 850;
}

.movieSearch button,
.primaryButton {
  color: #15100d;
  background: var(--ink);
}

.ghostButton,
.tabButton {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line);
}

.tabButton.isActive {
  color: #14100d;
  background: var(--gold);
  border-color: transparent;
}

.heroBand,
.singleHero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.38fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  min-height: min(680px, calc(100vh - 104px));
  padding: clamp(28px, 5vw, 64px) 0 34px;
}

.singleHero {
  grid-template-columns: minmax(420px, 1.34fr) minmax(280px, 0.86fr);
}

.heroCopy,
.singleCopy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 10px;
  color: #18120d;
  background: var(--gold);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 a {
  text-decoration: none;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.metaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
}

.synopsis {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
}

.actionRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.heroMedia,
.singleMedia {
  position: relative;
}

.heroMedia::after,
.singleMedia::after {
  content: "";
  position: absolute;
  inset: auto 7% -20px;
  z-index: -1;
  height: 28%;
  background: linear-gradient(90deg, rgba(229, 76, 95, 0.34), rgba(85, 200, 185, 0.26), rgba(244, 196, 94, 0.24));
  filter: blur(34px);
}

.moviePlayer,
.moviePoster,
.embedFrame,
.posterPlaceholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  object-fit: cover;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.embedFrame iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.posterPlaceholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--soft);
  background: linear-gradient(135deg, rgba(229, 76, 95, 0.34), rgba(85, 200, 185, 0.26)), #171512;
}

.libraryBand,
.archiveBand,
.contentBand,
.emptyBand {
  padding: 32px 0 46px;
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.filterTabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.movieGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.movieCard {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

.movieCardImage,
.movieCardPlaceholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.movieCardPlaceholder {
  background: linear-gradient(135deg, rgba(229, 76, 95, 0.32), rgba(85, 200, 185, 0.22)), #171512;
}

.movieCard::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 28%, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.93)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 58%);
}

.movieCard:hover .movieCardImage {
  transform: scale(1.04);
}

.movieCardBody {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 16px;
}

.cardKicker {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.movieCard strong {
  font-size: 1.08rem;
  line-height: 1.18;
}

.movieCard span:last-child {
  color: rgba(251, 245, 232, 0.72);
  font-size: 0.9rem;
  line-height: 1.35;
}

.contentBand {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.contentBand > *:first-child {
  margin-top: 0;
}

.postList {
  display: grid;
  gap: 12px;
}

.postItem,
.emptyState,
.emptyBand {
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.postItem h2 {
  margin-bottom: 8px;
}

.postItem a {
  text-decoration: none;
}

.paginationWrap {
  margin-top: 24px;
}

.siteFooter {
  padding-top: 24px;
  padding-bottom: 34px;
  color: var(--soft);
}

body.framehouse-theater {
  overflow: hidden;
}

body.framehouse-theater .siteHeader,
body.framehouse-theater .singleCopy,
body.framehouse-theater .contentBand,
body.framehouse-theater .relatedBand,
body.framehouse-theater .siteFooter {
  display: none;
}

body.framehouse-theater .siteMain {
  width: 100%;
  padding: 0;
}

body.framehouse-theater .singleHero {
  display: block;
  min-height: 100vh;
  padding: 0;
}

body.framehouse-theater .singleMedia,
body.framehouse-theater .moviePlayer,
body.framehouse-theater .embedFrame,
body.framehouse-theater .moviePoster {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
}

@media (max-width: 1080px) {
  .siteHeader {
    grid-template-columns: 1fr auto;
  }

  .siteNav {
    grid-column: 1 / -1;
  }

  .movieSearch {
    grid-column: 1 / -1;
  }

  .heroBand,
  .singleHero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .singleMedia {
    order: 2;
  }

  .singleCopy {
    order: 1;
  }

  .movieGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .siteHeader,
  .siteMain,
  .siteFooter {
    padding-right: 12px;
    padding-left: 12px;
  }

  .siteHeader {
    gap: 12px;
  }

  .sectionHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .filterTabs {
    justify-content: flex-start;
  }

  .movieGrid {
    grid-template-columns: 1fr;
  }

  .movieCard {
    min-height: 250px;
  }
}
