:root {
  font-family: "DM Sans", sans-serif;
  color: #f7f5ef;
  background: #10100f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #10100f;
  --panel: #181817;
  --panel-soft: #1d1d1b;
  --muted: #a3a29c;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #39ff14;
  --accent-dark: #202717;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 83% 11%, rgba(86, 99, 47, 0.11), transparent 31rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.wordmark-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #10100f;
  background: var(--accent);
  font: 800 21px/1 "Manrope", sans-serif;
  transform: rotate(-5deg);
}

.wordmark-text {
  font: 800 15px/1 "Manrope", sans-serif;
  letter-spacing: 0.065em;
}

.wordmark-text b {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #b4b2ac;
  font-size: 13px;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.search-box {
  height: 42px;
  min-width: 222px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.search-icon {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-box input {
  width: 100%;
  color: #f5f4ef;
  outline: none;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #84837d;
}

.search-box kbd {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #85847e;
  font-size: 9px;
}

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 42px;
  padding: 52px 0 63px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 15px 0;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px rgba(57, 255, 20, 0.7);
}

.hero h1 {
  margin: 0;
  font: 700 clamp(42px, 5.2vw, 66px)/1.06 "Manrope", sans-serif;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-description {
  max-width: 430px;
  margin: 20px 0 25px;
  color: #aaa9a2;
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button-primary {
  color: #15170f;
  background: var(--accent);
}

.button-primary:hover:not(:disabled) {
  background: #83ff6c;
}

.button-quiet {
  color: #deddd7;
  background: transparent;
}

.button-quiet:hover {
  background: rgba(255, 255, 255, 0.06);
}

.button-outline {
  color: #f2f0e9;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.button-outline:hover:not(:disabled) {
  border-color: var(--accent);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.hero-proof {
  max-width: 395px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 35px;
  color: #8e8d86;
  font-size: 10px;
  line-height: 1.65;
}

.proof-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.12);
  font-size: 10px;
}

.hero-art {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 260px;
  content: "";
  border-radius: 50%;
  background: rgba(170, 210, 72, 0.12);
  filter: blur(90px);
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(57, 255, 20, 0.12);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.orbit-one {
  width: 440px;
  height: 230px;
}

.orbit-two {
  width: 390px;
  height: 185px;
  transform: rotate(39deg);
}

.film-frame {
  position: relative;
  width: min(350px, 83%);
  height: 300px;
  overflow: hidden;
  border: 1px solid rgba(231, 228, 208, 0.23);
  border-radius: 8px;
  background:
    linear-gradient(178deg, transparent 42%, rgba(10, 13, 8, 0.7) 79%),
    linear-gradient(145deg, #354740 0%, #839b6c 34%, #d0aa6b 60%, #352f28 100%);
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(57, 255, 20, 0.07);
  transform: rotate(3deg);
}

.film-frame::before,
.film-frame::after {
  position: absolute;
  inset: 10px auto 10px 12px;
  width: 4px;
  content: "";
  opacity: 0.42;
  background: repeating-linear-gradient(to bottom, #e8e5d8 0 9px, transparent 9px 17px);
}

.film-frame::after {
  right: 12px;
  left: auto;
}

.frame-topline,
.frame-bottomline {
  position: absolute;
  z-index: 3;
  right: 26px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 248, 223, 0.8);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.frame-topline {
  top: 18px;
}

.frame-bottomline {
  bottom: 17px;
  color: rgba(255, 248, 223, 0.65);
}

.moon {
  position: absolute;
  top: 44px;
  right: 51px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #e9d5a3;
  box-shadow: 0 0 50px rgba(255, 222, 150, 0.42);
}

.silhouette {
  position: absolute;
  right: -15px;
  bottom: 32px;
  width: 70%;
  height: 155px;
  background: linear-gradient(145deg, #303730, #111511 70%);
  clip-path: polygon(0 100%, 12% 50%, 30% 63%, 50% 12%, 65% 41%, 77% 30%, 100% 67%, 100% 100%);
}

.silhouette-two {
  right: auto;
  bottom: 32px;
  left: 12px;
  width: 74%;
  height: 102px;
  opacity: 0.74;
  background: #1b241d;
  clip-path: polygon(0 100%, 0 65%, 22% 44%, 43% 64%, 58% 20%, 79% 50%, 100% 29%, 100% 100%);
}

.film-title {
  position: absolute;
  z-index: 2;
  right: 31px;
  bottom: 57px;
  left: 31px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #f9f0d7;
}

.film-title span {
  font-size: 8px;
  letter-spacing: 0.3em;
}

.film-title strong {
  font: 800 23px/1 "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.floating-note {
  position: absolute;
  right: -1px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #b8b7b0;
  background: rgba(25, 25, 22, 0.95);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  font-size: 10px;
  line-height: 1.55;
}

.floating-note b {
  color: #f5f3ec;
  font-size: 11px;
}

.note-spark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.12);
  font-size: 19px;
}

.hero-index {
  position: absolute;
  right: 24px;
  bottom: 6px;
  color: #77766f;
  font: 600 9px/1 "Manrope", sans-serif;
  letter-spacing: 0.15em;
}

.hero-index i {
  width: 30px;
  height: 1px;
  display: inline-block;
  margin: 0 7px 3px;
  background: var(--accent);
}

.catalog-section {
  padding: 26px 0 82px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2,
.collection-copy h2 {
  margin: 0;
  font: 700 clamp(24px, 3vw, 34px)/1.2 "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

.section-heading h2 span {
  color: var(--accent);
}

.text-link {
  padding-bottom: 4px;
  color: #c1c0b8;
  font-size: 11px;
}

.text-link span {
  margin-left: 8px;
  color: var(--accent);
}

.catalog-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  border-bottom: 1px solid var(--line);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #aaa9a2;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.filter-chip:hover {
  color: #f6f4ec;
}

.filter-chip.is-selected {
  border-color: rgba(57, 255, 20, 0.19);
  color: var(--accent);
  background: rgba(57, 255, 20, 0.075);
}

.result-count {
  flex: 0 0 auto;
  color: #77766f;
  font-size: 10px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  padding-top: 24px;
}

.movie-card {
  min-width: 0;
}

.poster-art,
.dialog-art {
  --poster-one: #496b5c;
  --poster-two: #d1a45e;
  --poster-shape: #18231e;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 22%, rgba(250, 222, 156, 0.9) 0 8%, transparent 8.5%),
    linear-gradient(162deg, var(--poster-one), var(--poster-two));
}

.poster-art {
  aspect-ratio: 0.83;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.poster-art .poster-image,
.dialog-art .poster-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.poster-art.has-poster::before {
  display: none;
}

.poster-art.has-poster::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 10, 9, 0.02) 27%, rgba(9, 10, 9, 0.78));
}

.poster-art.has-poster .poster-kicker,
.poster-art.has-poster .poster-copy {
  z-index: 2;
}

.movie-card:hover .poster-art {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.33);
}

.poster-art::before,
.dialog-art::before {
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -15%;
  width: 115%;
  height: 59%;
  content: "";
  background: var(--poster-shape);
  clip-path: polygon(0 100%, 8% 61%, 23% 78%, 39% 34%, 51% 69%, 65% 16%, 76% 50%, 89% 28%, 100% 63%, 100% 100%);
}

.poster-art::after,
.dialog-art::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(9, 10, 9, 0.02) 32%, rgba(9, 10, 9, 0.73));
}

.poster-art[data-art="caligari"] {
  --poster-one: #242239;
  --poster-two: #a86e52;
  --poster-shape: #181824;
  background:
    linear-gradient(125deg, transparent 32%, rgba(230, 174, 105, 0.45) 33% 38%, transparent 39%),
    linear-gradient(160deg, var(--poster-one), #744b55 60%, var(--poster-two));
}

.poster-art[data-art="metropolis"] {
  --poster-one: #33485c;
  --poster-two: #cfaa70;
  --poster-shape: #17202a;
  background:
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(239, 217, 164, 0.14) 21px 25px),
    linear-gradient(160deg, var(--poster-one), var(--poster-two));
}

.poster-art[data-art="moon"] {
  --poster-one: #314c53;
  --poster-two: #bba168;
  --poster-shape: #20312d;
  background:
    radial-gradient(circle at 56% 28%, #f0d992 0 11%, transparent 11.5%),
    linear-gradient(160deg, var(--poster-one), var(--poster-two));
}

.poster-art[data-art="general"] {
  --poster-one: #4e694e;
  --poster-two: #b58d58;
  --poster-shape: #34352c;
  background:
    radial-gradient(ellipse at 45% 77%, rgba(39, 37, 32, 0.9) 0 12%, transparent 12.5%),
    linear-gradient(160deg, var(--poster-one), var(--poster-two));
}

.poster-art[data-art="nosferatu"] {
  --poster-one: #282b38;
  --poster-two: #82764f;
  --poster-shape: #191a20;
  background:
    radial-gradient(circle at 35% 36%, rgba(221, 206, 167, 0.65) 0 8%, transparent 8.5%),
    linear-gradient(160deg, var(--poster-one), var(--poster-two));
}

.poster-art[data-art="city"] {
  --poster-one: #554144;
  --poster-two: #b98c67;
  --poster-shape: #252022;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(249, 205, 151, 0.12) 27px 32px),
    linear-gradient(160deg, var(--poster-one), var(--poster-two));
}

.poster-kicker {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(13, 14, 14, 0.34);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.poster-kicker::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.poster-copy {
  position: absolute;
  right: 13px;
  bottom: 15px;
  left: 13px;
}

.poster-year {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.71);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.poster-copy h3 {
  margin: 0;
  font: 700 18px/1.1 "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

.poster-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 1px 0;
}

.genre-label {
  color: #a5a49d;
  font-size: 10px;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0 5px 7px;
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.detail-button:hover {
  color: #a9ff9d;
}

.empty-state {
  margin: 35px 0 0;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.catalog-error {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 128, 105, 0.25);
  border-radius: 8px;
  color: #ffad9b;
  background: rgba(181, 58, 36, 0.08);
  font-size: 11px;
}

.collection-banner {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 80px;
  padding: 25px 28px;
  border: 1px solid rgba(57, 255, 20, 0.16);
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 5% 45%, rgba(57, 255, 20, 0.09), transparent 40%),
    #171916;
}

.collection-mark {
  display: grid;
  width: 59px;
  height: 59px;
  place-items: center;
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 18px;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.08);
  font: 800 17px/1 "Manrope", sans-serif;
  transform: rotate(-4deg);
}

.collection-mark span {
  color: #f5f3ec;
}

.collection-copy .eyebrow {
  margin-bottom: 8px;
  font-size: 8px;
}

.collection-copy h2 {
  max-width: 640px;
  font-size: 20px;
}

.collection-copy > p:last-child {
  max-width: 675px;
  margin: 8px 0 0;
  color: #a2a199;
  font-size: 10px;
  line-height: 1.7;
}

.collection-banner > .button {
  white-space: nowrap;
}

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: #77766f;
}

.footer-wordmark .wordmark-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 17px;
}

.footer-wordmark .wordmark-text {
  font-size: 12px;
}

.site-footer p,
.site-footer > span {
  font-size: 9px;
}

.site-footer > span {
  letter-spacing: 0.09em;
}

.movie-dialog {
  position: fixed;
  width: min(690px, calc(100% - 32px));
  max-width: none;
  max-height: min(690px, calc(100% - 32px));
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: #f5f3ec;
  background: #191a18;
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.72);
}

.movie-dialog::backdrop {
  background: rgba(3, 4, 3, 0.78);
  backdrop-filter: blur(7px);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 21px;
}

.dialog-art {
  min-height: 235px;
  background:
    radial-gradient(circle at 72% 25%, rgba(255, 225, 163, 0.8) 0 7%, transparent 7.5%),
    linear-gradient(145deg, var(--poster-one), var(--poster-two));
}

.dialog-content {
  padding: 24px 29px 28px;
}

.dialog-content .eyebrow {
  margin-bottom: 7px;
}

.dialog-content h2 {
  margin: 0;
  font: 700 29px/1.2 "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.dialog-description {
  max-width: 590px;
  margin: 12px 0 18px;
  color: #aaa9a2;
  font-size: 12px;
  line-height: 1.8;
}

.rights-note {
  display: flex;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(57, 255, 20, 0.16);
  border-radius: 7px;
  color: #c3c2bb;
  background: rgba(57, 255, 20, 0.055);
  font-size: 10px;
  line-height: 1.6;
}

.rights-note > span:first-child {
  color: var(--accent);
  font-size: 14px;
}

.dialog-actions {
  margin-top: 17px;
}

.movie-player {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #050505;
}

.movie-player video {
  display: block;
  width: 100%;
  max-height: 430px;
  background: #050505;
}

.toast {
  position: fixed;
  z-index: 5;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 12px 16px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  color: #e7e6dd;
  background: #20211e;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-size: 11px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 44px, 720px);
  }

  .site-header {
    gap: 15px;
  }

  .main-nav {
    gap: 17px;
  }

  .search-box {
    min-width: 42px;
    width: 42px;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .search-box input,
  .search-box kbd {
    display: none;
  }

  .search-box.is-open {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 44px));
    min-width: 0;
    justify-content: flex-start;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #181817;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  }

  .search-box.is-open input {
    display: block;
  }

  .hero {
    min-height: 410px;
    grid-template-columns: 1fr 0.9fr;
    gap: 10px;
  }

  .hero-art {
    transform: scale(0.88);
  }

  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-banner {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .collection-mark {
    width: 50px;
    height: 50px;
  }

  .collection-banner > .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 68px;
    gap: 8px;
  }

  .wordmark {
    gap: 7px;
  }

  .wordmark-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 18px;
  }

  .wordmark-text {
    font-size: 12px;
  }

  .main-nav {
    gap: 13px;
  }

  .main-nav .nav-link {
    display: none;
  }

  .main-nav .nav-link:first-child,
  .main-nav .nav-link:nth-child(2) {
    display: inline;
    font-size: 10px;
  }

  .search-box {
    width: 32px;
  }

  .search-box.is-open {
    width: min(340px, calc(100vw - 32px));
  }

  .search-icon {
    font-size: 23px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 48px 0 38px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-description {
    max-width: 350px;
    font-size: 12px;
  }

  .hero-proof {
    margin-top: 22px;
  }

  .hero-art {
    min-height: 300px;
    margin-top: 9px;
    overflow: clip;
    transform: none;
  }

  .film-frame {
    width: min(300px, 78%);
    height: 260px;
  }

  .moon {
    width: 65px;
    height: 65px;
  }

  .floating-note {
    right: 0;
    bottom: 20px;
    padding: 9px 11px;
    font-size: 9px;
  }

  .hero-index {
    right: 7px;
    bottom: -3px;
  }

  .catalog-section {
    padding: 21px 0 53px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    max-width: 260px;
    font-size: 24px;
  }

  .section-heading > .text-link {
    margin-top: 25px;
    white-space: nowrap;
    font-size: 9px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 14px 0 12px;
  }

  .filter-list {
    gap: 4px;
  }

  .filter-chip {
    padding: 7px 9px;
    font-size: 9px;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding-top: 18px;
  }

  .poster-kicker {
    top: 8px;
    left: 8px;
    padding: 4px 5px;
    font-size: 6px;
  }

  .poster-copy {
    right: 9px;
    bottom: 11px;
    left: 9px;
  }

  .poster-copy h3 {
    font-size: 15px;
  }

  .poster-copy p {
    font-size: 8px;
  }

  .card-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 8px;
  }

  .detail-button {
    padding-left: 0;
  }

  .collection-banner {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 48px;
    padding: 19px;
  }

  .collection-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 14px;
  }

  .collection-copy h2 {
    font-size: 18px;
  }

  .collection-banner > .button {
    grid-column: 1;
  }

  .site-footer {
    min-height: 95px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 15px 0;
  }

  .site-footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .site-footer > span {
    font-size: 8px;
  }

  .movie-dialog {
    width: calc(100% - 22px);
    max-height: calc(100% - 22px);
  }

  .dialog-art {
    min-height: 185px;
  }

  .dialog-content {
    padding: 19px 18px 21px;
  }

  .dialog-content h2 {
    font-size: 24px;
  }

  .dialog-description {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  color-scheme: dark;
  --bg: #090b09;
  --panel: #121512;
  --panel-soft: #191e19;
  --muted: #a2a79f;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #39ff14;
  --accent-dark: #183412;
}

body {
  background:
    radial-gradient(ellipse at 82% 16%, rgba(57, 255, 20, 0.07), transparent 34rem),
    #090b09;
}

.site-header,
main,
.site-footer {
  width: min(1260px, calc(100% - 64px));
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 74px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(10, 12, 10, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.wordmark-icon {
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.18);
}

.main-nav {
  gap: 27px;
}

.nav-link {
  font-size: 12px;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--accent);
}

.search-box {
  min-width: 250px;
  border-radius: 999px;
  background: #151815;
}

.search-box:focus-within {
  border-color: rgba(57, 255, 20, 0.42);
}

.hero {
  position: relative;
  min-height: 430px;
  gap: 24px;
  margin-top: 27px;
  padding: 48px 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 19px;
  background:
    linear-gradient(100deg, rgba(12, 15, 12, 0.98) 4%, rgba(12, 15, 12, 0.91) 43%, rgba(12, 15, 12, 0.25) 100%),
    radial-gradient(ellipse at 75% 45%, rgba(57, 255, 20, 0.12), transparent 36rem),
    #111511;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.27);
}

.hero::after {
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid rgba(57, 255, 20, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(57, 255, 20, 0.018), 0 0 0 75px rgba(57, 255, 20, 0.015);
  pointer-events: none;
}

.hero-copy {
  padding: 5px 0;
}

.hero-copy .eyebrow {
  margin-bottom: 17px;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(42px, 5vw, 62px);
  letter-spacing: -0.07em;
}

.hero-description {
  max-width: 445px;
  margin-top: 17px;
  font-size: 13px;
}

.button {
  min-height: 44px;
  border-radius: 7px;
  font-size: 11px;
}

.button-primary {
  box-shadow: 0 7px 24px rgba(57, 255, 20, 0.14);
}

.hero-proof {
  max-width: 430px;
  margin-top: 26px;
}

.hero-art {
  z-index: 1;
  min-height: 338px;
}

.orbit-one {
  width: 420px;
  height: 225px;
  border-color: rgba(57, 255, 20, 0.15);
}

.orbit-two {
  width: 350px;
  height: 195px;
  border-color: rgba(255, 255, 255, 0.08);
}

.film-frame {
  width: min(345px, 84%);
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 13px;
  background:
    linear-gradient(180deg, transparent 22%, rgba(7, 11, 7, 0.88) 100%),
    radial-gradient(circle at 68% 30%, rgba(204, 255, 138, 0.88) 0 10%, transparent 10.5%),
    linear-gradient(135deg, #2c5b3a 0%, #92a443 42%, #bc783d 68%, #1c2920 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 55px rgba(57, 255, 20, 0.1);
  transform: rotate(2deg);
}

.film-frame::before,
.film-frame::after {
  opacity: 0.31;
}

.frame-topline,
.frame-bottomline {
  right: 25px;
  left: 25px;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.film-title {
  right: 28px;
  bottom: 48px;
  left: 28px;
  gap: 7px;
}

.film-title span {
  max-width: 230px;
  font-size: 7px;
  letter-spacing: 0.22em;
}

.film-title strong {
  font-size: 28px;
  letter-spacing: -0.06em;
}

.floating-note {
  right: -5px;
  bottom: 34px;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(15, 19, 15, 0.96);
}

.hero-index {
  right: 8px;
  bottom: 2px;
  color: #aaa;
}

.catalog-section {
  padding: 43px 0 68px;
}

.section-heading h2 {
  font-size: clamp(27px, 3vw, 36px);
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.text-link {
  font-weight: 700;
}

.catalog-toolbar {
  min-height: 65px;
  margin-top: 19px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.filter-list {
  gap: 7px;
}

.filter-chip {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
}

.filter-chip:hover {
  border-color: rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.055);
}

.filter-chip.is-selected {
  border-color: rgba(57, 255, 20, 0.33);
  color: #11190e;
  background: var(--accent);
}

.result-count {
  color: #9a9e97;
}

.movie-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 25px 17px;
  padding-top: 23px;
}

.movie-card {
  transition: transform 180ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
}

.poster-art {
  aspect-ratio: 0.69;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background-color: #1b241d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.23);
}

.poster-art::before {
  z-index: 0;
  opacity: 0.88;
}

.poster-art::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.04) 26%, rgba(8, 9, 8, 0.93) 100%),
    linear-gradient(0deg, rgba(57, 255, 20, 0.04), transparent 60%);
}

.poster-art .poster-image {
  z-index: 0;
}

.poster-art.has-poster::after {
  z-index: 1;
}

.poster-kicker {
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.poster-copy {
  z-index: 2;
  right: 12px;
  bottom: 14px;
  left: 12px;
}

.poster-year {
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.poster-copy h3 {
  font-size: 16px;
  line-height: 1.18;
}

.poster-copy p {
  margin-top: 5px;
  font-size: 9px;
}

.card-info {
  padding: 10px 1px 0;
}

.genre-label {
  color: #8f958d;
  font-size: 9px;
}

.detail-button {
  font-size: 9px;
}

.empty-state {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 0 50%, rgba(57, 255, 20, 0.07), transparent 45%),
    #111411;
  text-align: left;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 14px;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.08);
  font-size: 17px;
}

.empty-copy .eyebrow {
  margin: 0 0 5px;
  font-size: 8px;
}

.empty-copy h3 {
  margin: 0;
  color: #f5f6f2;
  font: 700 17px/1.3 "Manrope", sans-serif;
}

.empty-copy > p:last-child {
  margin: 5px 0 0;
  color: #9da29b;
  font-size: 10px;
  line-height: 1.6;
}

.empty-state .button {
  white-space: nowrap;
}

.official-feature {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  margin: 0 0 58px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(57, 255, 20, 0.08), transparent 42%),
    #101310;
}

.official-art {
  position: relative;
  width: min(100%, 270px);
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  justify-self: center;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 11, 8, 0.05) 15%, rgba(8, 11, 8, 0.94) 100%),
    radial-gradient(circle at 68% 28%, rgba(57, 255, 20, 0.78) 0 9%, transparent 9.5%),
    linear-gradient(145deg, #31523a, #8d713e 47%, #271f1b 78%, #0c100d);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.official-art::before,
.official-art::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.official-art::before {
  right: -20%;
  bottom: 10%;
  left: -20%;
  height: 48%;
  background: linear-gradient(140deg, #151b16 0 36%, #27352a 37% 62%, #111611 63%);
  clip-path: polygon(0 100%, 0 53%, 18% 30%, 31% 52%, 50% 0, 69% 54%, 84% 22%, 100% 48%, 100% 100%);
}

.official-art::after {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
}

.official-art-label,
.official-art-emblem,
.official-art strong,
.official-art-footer {
  position: relative;
  z-index: 1;
}

.official-art-label,
.official-art-footer {
  color: rgba(255, 255, 255, 0.72);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.official-art-label {
  position: absolute;
  top: 25px;
  left: 23px;
}

.official-art-emblem {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 2px;
  border: 1px solid rgba(57, 255, 20, 0.6);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(10, 14, 10, 0.55);
  font: 800 11px/1 "Manrope", sans-serif;
}

.official-art strong {
  color: #fff;
  font: 800 26px/0.99 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.official-art-footer {
  margin-top: 2px;
}

.official-feature-copy {
  max-width: 620px;
}

.official-feature-copy .eyebrow {
  margin-bottom: 10px;
}

.official-feature-copy h2 {
  margin: 0;
  color: #f5f6f2;
  font: 800 clamp(30px, 4vw, 43px)/1.1 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.official-feature-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 22px;
  color: #a2a79f;
  font-size: 12px;
  line-height: 1.8;
}

.official-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-banner {
  grid-template-columns: 58px 1fr auto;
  gap: 20px;
  margin-bottom: 62px;
  padding: 23px 25px;
  border-color: rgba(57, 255, 20, 0.15);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 5% 45%, rgba(57, 255, 20, 0.075), transparent 44%),
    #111411;
}

.collection-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.collection-copy h2 {
  font-size: 18px;
}

.collection-copy > p:last-child {
  font-size: 10px;
}

.site-footer {
  min-height: 82px;
}

.movie-dialog {
  border-radius: 14px;
  background: #121512;
}

.rights-note {
  border-color: rgba(57, 255, 20, 0.17);
  background: rgba(57, 255, 20, 0.045);
}

.toast {
  border-color: rgba(57, 255, 20, 0.22);
  background: #121712;
}

.button:focus-visible,
.nav-link:focus-visible,
.filter-chip:focus-visible,
.detail-button:focus-visible,
.search-icon:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 44px, 820px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .main-nav {
    gap: 15px;
  }

  .search-box {
    min-width: 205px;
  }

  .hero {
    min-height: 400px;
    padding: 38px 35px;
  }

  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 68px;
    gap: 9px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav .nav-link {
    display: none;
  }

  .main-nav .nav-link:first-child,
  .main-nav .nav-link:nth-child(2) {
    display: inline;
    font-size: 10px;
  }

  .search-box {
    min-width: 36px;
    width: 36px;
  }

  .search-box.is-open {
    width: min(330px, calc(100vw - 32px));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-top: 16px;
    padding: 31px 24px 20px;
    border-radius: 15px;
  }

  .hero h1 {
    font-size: clamp(39px, 10vw, 54px);
  }

  .hero-description {
    margin: 14px 0 19px;
    font-size: 12px;
  }

  .hero-proof {
    margin-top: 18px;
  }

  .hero-art {
    min-height: 260px;
    margin-top: 8px;
  }

  .film-frame {
    width: min(290px, 74%);
    height: 235px;
  }

  .film-title {
    bottom: 39px;
  }

  .film-title strong {
    font-size: 24px;
  }

  .moon {
    top: 37px;
    right: 42px;
    width: 60px;
    height: 60px;
  }

  .floating-note {
    right: 0;
    bottom: 18px;
    padding: 9px 11px;
    font-size: 9px;
  }

  .catalog-section {
    padding: 34px 0 48px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 13px 0;
  }

  .filter-list {
    gap: 6px;
  }

  .filter-chip {
    padding: 7px 10px;
    font-size: 9px;
  }

  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px 12px;
  }

  .poster-copy h3 {
    font-size: 14px;
  }

  .collection-banner {
    grid-template-columns: 48px 1fr;
    gap: 13px;
    margin-bottom: 44px;
    padding: 18px;
  }

  .collection-mark {
    width: 45px;
    height: 45px;
  }

  .collection-banner > .button {
    grid-column: 2;
    justify-self: start;
  }

  .official-feature {
    grid-template-columns: minmax(165px, 0.75fr) minmax(0, 1.25fr);
    gap: 25px;
  }

  .official-art {
    min-height: 270px;
    padding: 18px;
  }

  .official-art-label {
    top: 20px;
    left: 19px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 10px;
  }

  .wordmark {
    gap: 6px;
  }

  .wordmark-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .wordmark-text {
    font-size: 11px;
  }

  .main-nav {
    gap: 9px;
  }

  .main-nav .nav-link:first-child,
  .main-nav .nav-link:nth-child(2) {
    font-size: 9px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero-art {
    min-height: 235px;
  }

  .film-frame {
    width: 76%;
    height: 215px;
  }

  .floating-note {
    right: -2px;
    bottom: 13px;
  }

  .hero-index {
    right: 2px;
    bottom: 0;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading > .text-link {
    margin-top: 24px;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .poster-art {
    aspect-ratio: 0.72;
  }

  .poster-copy {
    right: 9px;
    bottom: 10px;
    left: 9px;
  }

  .poster-copy h3 {
    font-size: 14px;
  }

  .card-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-top: 7px;
  }

  .empty-state {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 17px;
  }

  .empty-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .empty-copy h3 {
    font-size: 15px;
  }

  .empty-state .button {
    grid-column: 2;
    justify-self: start;
  }

  .collection-banner {
    grid-template-columns: 1fr;
  }

  .collection-banner > .button {
    grid-column: 1;
  }

  .official-feature {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 42px;
  }

  .official-art {
    width: min(100%, 265px);
    min-height: 300px;
  }

  .official-feature-copy {
    text-align: center;
  }

  .official-feature-actions {
    justify-content: center;
  }
}
