:root {
  color-scheme: light;
  --background: #f7f1e7;
  --background-warm: #fff9ef;
  --surface: #fffdf8;
  --surface-soft: #efe3d0;
  --text: #153c3f;
  --text-strong: #0b2f33;
  --muted: #5f6f6f;
  --accent: #2f8f87;
  --accent-strong: #1f6f6a;
  --accent-warm: #d96f45;
  --accent-soft: #dbeee9;
  --line: rgba(21, 60, 63, 0.16);
  --shadow: 0 24px 70px rgba(35, 54, 54, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 143, 135, 0.2), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(217, 111, 69, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--background-warm), var(--background));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.logo, .nav-links {
  display: flex;
  align-items: center;
}

.logo {
  gap: 10px;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 12px 28px rgba(47, 143, 135, 0.28);
}

.nav-links {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  padding: 44px 0 30px;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  color: var(--text-strong);
  font-size: clamp(3rem, 9vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy, .status-message, .movie-meta, .movie-description {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 820px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.panel {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-message {
  margin: 16px 0 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-warm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 22px;
}

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

.movie-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(219, 238, 233, 0.68), rgba(255, 253, 248, 0.96));
}

.movie-topline {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.poster-wrap {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-soft);
  aspect-ratio: 2 / 3;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 8px;
}

.movie-header, .movie-body {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.movie-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.1;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.pill {
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  padding: 5px 9px;
  color: var(--text);
  font-weight: 800;
}

.movie-description {
  margin: 0;
}

.movie-link {
  color: var(--accent-strong);
  font-weight: 800;
}

@media (max-width: 850px) {
  .app-shell { width: min(100% - 28px, 1120px); }
  .site-header { padding: 18px 0; }
  .hero { padding: 22px 0 22px; }
  h1 { letter-spacing: -0.06em; }
  .panel { padding: 18px; }
  .movie-topline {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }
}
