/* Mirzapur home: the key art and title up top (teaser), the Badla story, then the five scenes. */
@font-face { font-family: "MZ Head"; src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "MZ Serif"; src: url("fonts/NotoSerif-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
:root {
  --bg: #070504;
  --ink: #f4ede3;
  --muted: #a99d8f;
  --gold: #f2a54a;
  --gold2: #ffcf8a;
  --line: rgba(242, 165, 74, .22);
  --head: "MZ Head", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --serif: "MZ Serif", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }
body.tvOn { overflow: hidden; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: currentColor; }
.eyebrow { margin: 0 0 10px; font-family: var(--head); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-size: 14px; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-1%); } }

/* top bar */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 12px; background: linear-gradient(#000c, #0000); }
.logo { font-family: var(--head); letter-spacing: .32em; color: var(--gold); font-size: 17px; }
.logo i { font-style: normal; color: var(--muted); letter-spacing: .2em; font-size: 13px; margin-left: 8px; }
.bar nav { display: flex; gap: 22px; }
.bar nav a { font-family: var(--head); letter-spacing: .2em; text-transform: uppercase; font-size: 14px; text-decoration: none; opacity: .85; }
.bar nav a:hover { opacity: 1; color: var(--gold2); }

/* buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.go, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; cursor: pointer;
  text-decoration: none; font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; font-size: 21px;
  transition: transform .12s, box-shadow .12s, border-color .12s, background .12s; }
.go { border: 0; padding: 15px 32px; color: #1a1006; background: linear-gradient(var(--gold2), var(--gold)); box-shadow: 0 12px 36px #f2a54a59; }
.go:hover, .go:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 44px #f2a54a80; outline: none; }
.go svg { width: 17px; height: 17px; }
.ghost { padding: 14px 28px; border: 1px solid #f2a54a99; background: #0008; color: var(--ink); }
.ghost:hover, .ghost:focus-visible { border-color: var(--gold2); background: #2a1c10; outline: none; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 20px 0 0; padding: 0; font-family: var(--head);
  letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.meta li + li::before { content: "·"; margin-right: 16px; color: var(--gold); }

/* hero: the key art (portrait art on tall screens), the generated title, the teaser */
.hero { position: relative; display: grid; align-items: end; overflow: hidden; min-height: 92svh; }
.hero picture { position: absolute; inset: 0; }
.hero .bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: drift 26s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 3%, #0000 58%); }
.heroText { position: relative; z-index: 1; padding: 0 clamp(18px, 6vw, 96px) clamp(36px, 7vh, 80px); animation: up .7s ease-out both; }
.hero h1 { margin: 0; line-height: 0; }
.title { width: min(86vw, 560px); height: auto; filter: drop-shadow(0 6px 24px #000); }
.lede { margin: 14px 0 22px; font-family: var(--head); letter-spacing: .2em; text-transform: uppercase; font-size: clamp(16px, 2vw, 22px); color: var(--gold2); }
@media (min-aspect-ratio: 4/5) {   /* the whole 3:1 art, title in its dark lower left */
  .hero { min-height: 420px; aspect-ratio: 3 / 1; max-height: 94svh; }
  .hero .bg { object-position: 50% 40%; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, #0000 28%), linear-gradient(90deg, #000b 0%, #0007 28%, #0000 46%); }
  .heroText { padding-bottom: clamp(24px, 3.4vw, 64px); }
  .title { width: clamp(300px, 34vw, 640px); }
  .lede { margin: 10px 0 18px; font-size: clamp(14px, 1.2vw, 20px); }
  .go { padding: 13px 28px; font-size: clamp(17px, 1.35vw, 22px); }
  .ghost { padding: 12px 24px; font-size: clamp(16px, 1.25vw, 20px); }
  .meta { margin-top: 14px; }
}

/* Badla: the story playable */
.feature { padding: clamp(28px, 5vh, 56px) clamp(16px, 6vw, 96px) 0; }
.feat { position: relative; display: block; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); text-decoration: none;
  aspect-ratio: 1920 / 804; background: #000; transition: border-color .18s, transform .18s, box-shadow .18s; }
.feat:hover, .feat:focus-visible { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 40px #000c; outline: none; }
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feat:hover img { transform: scale(1.03); }
.feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000e 0%, #000a 34%, #0000 62%); }
.ft { position: absolute; z-index: 1; left: clamp(18px, 4vw, 56px); top: 50%; transform: translateY(-50%); max-width: 44%; }
.ft h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 6vw, 96px); line-height: .95; }
.ft p:not(.eyebrow) { margin: 0 0 20px; color: #efe5d7; font-size: clamp(14px, 1.3vw, 19px); line-height: 1.45; }
.go.small { padding: 12px 24px; font-size: clamp(15px, 1.2vw, 19px); }

/* scenes */
.scenes { padding: clamp(28px, 6vh, 64px) clamp(16px, 6vw, 96px) 24px; }
.head h2 { margin: 0 0 26px; font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.1; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.card { display: flex; flex-direction: column; text-decoration: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(#1a130d, #0f0b08); transition: transform .18s, border-color .18s, box-shadow .18s; animation: up .5s ease-out both; }
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; } .card:nth-child(5) { animation-delay: .2s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 40px #000c; outline: none; }
.pic { position: relative; aspect-ratio: 720 / 780; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .pic img { transform: scale(1.05); }
.pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0f0b08 0%, #0000 40%); }
.play { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #1a1006; box-shadow: 0 6px 18px #0009; }
.play svg { width: 18px; height: 18px; margin-left: 2px; }
.txt { padding: 4px 16px 18px; }
.n { margin: 0; font-family: var(--head); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-size: 12px; }
.card h3 { margin: 4px 0 4px; font-family: var(--serif); font-weight: 800; font-size: 22px; line-height: 1.1; }
.en { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.ch { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; margin: 12px 0 0; font-size: 13px; color: #d9cbb8; }
.ch b { font-family: var(--head); color: var(--gold); }

/* teaser player */
.tv { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: #000; }
.tv[hidden] { display: none; }
.tv video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tvClose { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid #f2a54a66; background: #000a; color: var(--ink); cursor: pointer;
  font-family: var(--head); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.tvClose svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.foot { padding: 30px 20px max(30px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-family: var(--head);
  letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }

@media (max-width: 560px) {
  .bar nav { display: none; }
  .ctas .go, .ctas .ghost { flex: 1 1 100%; }
  .feat { aspect-ratio: 4 / 5; }
  .feat img { object-position: 62% 50%; }
  .feat::after { background: linear-gradient(0deg, #000f 0%, #000b 42%, #0000 75%); }
  .ft { top: auto; bottom: 20px; transform: none; max-width: none; right: 18px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .txt { padding: 2px 12px 14px; }
  .card h3 { font-size: 18px; }
  .en { font-size: 12.5px; }
  .ch { font-size: 12px; }
  .play { width: 36px; height: 36px; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.feat img { object-position: 70% 50%; }
@media (max-aspect-ratio: 4/5) {   /* tall screens: the portrait art on top, the title just under the faces */
  .hero { display: block; min-height: 0; }
  .hero picture { position: relative; display: block; }
  .hero .bg { height: auto; aspect-ratio: 1024 / 1170; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 30%, #0000 62%); }
  .heroText { margin-top: -26vw; padding-bottom: 28px; }
}

/* thumbnails (2026-11-02): generated key art for Badla and each scene, the title over the picture, no choice text */
.feat picture { position: absolute; inset: 0; }
.feat img { object-position: 60% 50%; }
.card { position: relative; }
.pic { aspect-ratio: 4 / 5; }
.pic::after { background: linear-gradient(0deg, #000f 0%, #000c 24%, #0000 52%); }
.txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 64px 16px 16px; }
.card .play { right: 14px; bottom: 16px; }
.card h3 { font-size: clamp(20px, 1.7vw, 26px); text-shadow: 0 2px 10px #000; }
.en { color: #d9ccba; text-shadow: 0 1px 6px #000; }
@media (max-width: 560px) {
  .feat img { object-position: 50% 30%; }
  .feat::after { background: linear-gradient(0deg, #000f 0%, #000d 30%, #0000 58%); }
  .txt { padding: 0 46px 12px 12px; }
  .card h3 { font-size: 17px; }
  .card .play { right: 8px; bottom: 10px; }
}
@media (max-width: 560px) {   /* phone: the scenes as a swipe row, one big poster at a time */
  .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 74vw; scroll-snap-align: start; scroll-margin-left: 16px; }
  .txt { padding: 0 56px 14px 14px; }
  .card h3 { font-size: 22px; }
  .en { font-size: 13.5px; }
  .card .play { width: 40px; height: 40px; right: 12px; bottom: 14px; }
}
