:root {
  color-scheme: dark;
  --black: #070707;
  --white: #f4f4f1;
  --muted: #a9a9a5;
  --line: rgba(255,255,255,.18);
  --pink: #ff2abf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(100% - 48px, 1320px);
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(7,7,7,.96);
}
.identity { display: flex; align-items: baseline; gap: 18px; }
.identity strong { font-size: 32px; line-height: .82; letter-spacing: -.055em; white-space: nowrap; }
.identity strong .brand-initial { font-size: calc(1em + 2px); }
.identity > span, nav a {
  font-size: 15px;
  line-height: .82;
  letter-spacing: .005em;
  text-transform: uppercase;
}
nav { display: flex; align-items: baseline; gap: 30px; }
nav a { transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--pink); }

main { width: min(100% - 48px, 1320px); margin: 0 auto; }

.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(58px, 7vw, 105px) 28px;
  padding-top: clamp(64px, 7vw, 100px);
  padding-bottom: clamp(110px, 14vw, 190px);
}
.film-card { min-width: 0; }
.film-poster {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.film-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.film-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .3s ease;
}
.play-mark {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}
.play-mark::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  border-left: 12px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.film-poster:hover img, .film-poster:focus-visible img { transform: scale(1.018); filter: brightness(.78); }
.film-poster:hover::after, .film-poster:focus-visible::after { background: rgba(0,0,0,.1); }
.film-poster:hover .play-mark, .film-poster:focus-visible .play-mark { opacity: 1; transform: translateY(0); border-color: var(--pink); }
.film-poster:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
.film-card h2 {
  margin: 15px 0 0;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 500;
}
.film-card h2 span {
  color: var(--muted);
  font-weight: 400;
}
.film-card h2 span::before { content: " / "; }

footer {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 70px 0 86px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  text-align: center;
}
footer p, footer a { margin: 0; font-size: .92rem; }
footer a:hover, footer a:focus-visible { color: var(--pink); }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  padding: 64px;
}
.video-modal[hidden] { display: none; }
.video-modal:not([hidden]) { display: grid; place-items: center; }
.video-modal:not(.compact-player) .modal-player {
  width: min(85vw, calc((100vh - 128px) * 1.7778), 1500px);
  height: auto;
  aspect-ratio: 16 / 9;
}
.video-modal.compact-player:not([hidden]) { display: grid; place-items: center; }
.video-modal.compact-player .modal-player {
  width: min(88vw, 924px);
  height: auto;
  aspect-ratio: 16 / 9;
}
.modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: white;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { color: var(--pink); }
.modal-player { display: grid; place-items: center; overflow: hidden; background: #000; }
.modal-player iframe, .modal-player video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  color-scheme: dark;
}
.modal-open { overflow: hidden; }
.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; }

@media (max-width: 700px) {
  .site-header, main, footer { width: min(100% - 28px, 1320px); }
  .site-header { height: 68px; }
  .identity strong { font-size: 1.55rem; line-height: .9; }
  .identity > span { display: none; }
  nav { gap: 18px; }
  nav a { font-size: 12px; }
  .film-grid { grid-template-columns: 1fr; gap: 50px; padding-top: 54px; }
  .play-mark { opacity: 1; transform: none; width: 40px; height: 40px; left: 16px; bottom: 16px; }
  .play-mark::after { left: 15px; top: 12px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
  .video-modal { padding: clamp(96px, 16vh, 150px) 0 0; }
  .video-modal:not([hidden]), .video-modal.compact-player:not([hidden]) { place-items: start center; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-poster img, .play-mark { transition: none; }
}
