* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #14171c;
  --panel-soft: #191d23;
  --surface: #f5f1e8;
  --surface-ink: #121212;
  --line: #2b3038;
  --text: #f4f2ed;
  --muted: #a7adb7;
  --subtle: #727985;
  --blue: #7fa3ff;
  --green: #8fd6b2;
  --amber: #f4c96b;
  --rose: #e49aa8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #111417 0, var(--bg) 420px),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 "DM Sans", system-ui, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 1120px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 15, 18, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font: 700 15px "Space Grotesk", system-ui, sans-serif;
}

.brand b {
  color: var(--muted);
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
  background: #20242b;
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a,
.mobile-menu a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-menu a.active {
  color: var(--text);
  background: var(--panel-soft);
}

.menu {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  position: fixed;
  top: 70px;
  left: 12px;
  right: 12px;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: #15181e;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 24px 82px;
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 34px;
  align-items: stretch;
  min-height: 430px;
}

.home-hero {
  margin-bottom: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-panel {
  min-height: 420px;
}

.spotlight {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.spotlight .poster-art {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.spotlight .poster-art::after {
  background:
    linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.26) 46%, rgba(0, 0, 0, 0.9) 100%);
}

.spotlight .poster-title {
  display: none;
}

.spotlight-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #111;
  background: var(--amber);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.spotlight h2 {
  margin: 0 0 6px;
  font-size: 34px;
}

.spotlight p {
  max-width: 430px;
  margin: 0;
  color: #d8dde7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 48px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat strong {
  display: block;
  font: 700 30px "Space Grotesk", system-ui, sans-serif;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 18px;
}

.section-head.compact {
  margin-top: 38px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.section-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 170px 170px;
  gap: 10px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12151a;
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 154px;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(127, 163, 255, 0.14);
}

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

.movie-list {
  display: grid;
  gap: 14px;
}

.movie-card,
.movie-row,
.suggest-card,
.suggestion-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.movie-card {
  overflow: hidden;
}

.movie-card-body {
  padding: 14px;
}

.poster-art {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 18px;
  background:
    linear-gradient(145deg, var(--accent-one, #2d3748), var(--accent-two, #725d68)),
    #222;
}

.poster-art.has-image {
  background: #16191e;
}

.poster-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
}

.poster-title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  color: white;
  font: 700 32px/0.98 "Space Grotesk", system-ui, sans-serif;
  text-transform: uppercase;
}

.movie-card h3,
.movie-row h2 {
  margin: 7px 0 4px;
  font-size: 24px;
  line-height: 1.1;
}

.meta {
  margin: 0 0 11px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

.summary {
  margin: 0 0 13px;
  color: #c1c7d0;
}

.rating-line,
.rowtop,
.tag-list,
.movie-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.rating-line {
  justify-content: space-between;
  color: var(--amber);
  font-weight: 800;
}

.status-pill,
.fact,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill {
  color: #101418;
  background: var(--green);
}

.status-pill.queue {
  background: var(--rose);
}

.fact,
.tag-list span {
  color: #d7ddec;
  background: #1b2028;
  border: 1px solid #303741;
}

.tag-list {
  margin-top: 12px;
}

.movie-row {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 18px;
  padding: 12px;
}

.movie-row .poster-art {
  min-height: 255px;
  border-radius: 8px;
}

.movie-row .poster-title {
  font-size: 24px;
}

.row-info {
  align-self: center;
  padding: 8px 8px 8px 0;
}

.rowtop {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.note {
  margin-top: 14px;
  padding-left: 12px;
  color: #d6dbe5;
  border-left: 3px solid var(--amber);
}

.note b {
  color: var(--text);
}

.page-hero {
  max-width: 760px;
  padding: 28px 0 8px;
}

.queue-note {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 640px;
  margin: 28px 0 8px;
  padding: 14px;
  border: 1px solid #3b3a2d;
  border-radius: 8px;
  background: #17170f;
}

.queue-note b {
  color: var(--amber);
}

.queue-note span {
  color: var(--muted);
}

.suggest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.suggestion-form,
.suggest-card {
  padding: 18px;
}

.suggestion-form {
  display: grid;
  gap: 14px;
}

.suggest-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.suggest-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

code {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #101214;
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--green);
}

.btn:hover {
  filter: brightness(1.04);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.empty-state,
.load-error {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  color: #737a84;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero,
  .suggest-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-panel,
  .spotlight {
    min-height: 390px;
  }

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

  .control-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .menu {
    display: inline-flex;
  }

  main {
    padding: 34px 16px 58px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

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

  .control-bar,
  .stats-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .movie-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .movie-row .poster-art {
    min-height: 150px;
    padding: 10px;
  }

  .movie-row .poster-title {
    font-size: 15px;
  }

  .row-info {
    padding: 0;
  }

  .movie-row h2 {
    font-size: 21px;
  }

  .movie-row .summary,
  .movie-row .tag-list {
    display: none;
  }

  .rowtop {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  footer {
    padding: 18px 16px 28px;
  }
}
