:root {
  --bg: #14110f;
  --card: #1f1a16;
  --line: #3a3029;
  --text: #f3eadb;
  --muted: #b8a993;
  --gold: #e3b04b;
  --gold-dark: #b8862b;
  --error: #ff8a7a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

a { color: var(--gold); }

img { display: block; max-width: 100%; }

.fade { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Header ---------- */
.hero { text-align: center; padding: 32px 0 8px; }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.3; color: var(--gold); }
.hero .edition {
  display: inline-block; margin-top: 6px; padding: 2px 14px;
  border: 1px solid var(--gold-dark); border-radius: 99px;
  font-size: 15px; color: var(--gold);
}
.hero p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Home ---------- */
.day { margin: 28px 0 12px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 6px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.card:active { transform: scale(.98); }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #000; }
.card .info { padding: 10px 12px 12px; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.card .group, .card .time { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.card .time { color: var(--gold); }

/* ---------- Drama page ---------- */
.back {
  display: inline-block; margin: 18px 0 14px; padding: 8px 0;
  text-decoration: none; font-weight: 600;
}

/* Poster fits in one screen; details start right below */
.poster-stage { display: flex; justify-content: center; }
.poster {
  max-width: 100%; width: auto; height: auto;
  max-height: calc(100vh - 150px);
  max-height: calc(100svh - 150px);
  border-radius: var(--radius); background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}
.drama h1 { scroll-margin-top: 16px; }

.down {
  position: fixed; left: 50%; bottom: 22px; z-index: 10;
  transform: translateX(-50%);
  min-height: 48px; padding: 10px 24px;
  border: 0; border-radius: 99px; cursor: pointer;
  background: var(--gold); color: #1a1208;
  font: inherit; font-size: 17px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55);
  animation: fade .3s ease-out;
}
.down span { display: inline-block; margin-left: 4px; animation: nudge 1.4s ease-in-out infinite; }
.down[hidden] { display: none; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .down span { animation: none; } }

.drama h1 { margin: 20px 0 0; font-size: 28px; line-height: 1.3; }
.drama .group { margin: 0; color: var(--muted); font-size: 18px; }

.facts { margin: 16px 0 0; padding: 0; list-style: none; }
.facts li { padding: 4px 0; }
.facts b { color: var(--gold); font-weight: 600; margin-right: 6px; }

.box {
  margin-top: 22px; padding: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.box h2 { margin: 0 0 8px; font-size: 20px; }
.box .note { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

.prices { width: 100%; border-collapse: collapse; }
.prices td { padding: 8px 0; border-top: 1px solid var(--line); }
.prices tr:first-child td { border-top: 0; }
.prices .amt { font-size: 22px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.prices .seats { text-align: right; color: var(--muted); }

/* ---------- Buttons & form ---------- */
.btn {
  display: block; width: 100%; min-height: 54px; margin-top: 22px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--gold); color: #1a1208;
  font: inherit; font-size: 19px; font-weight: 700;
}
.btn:active { background: var(--gold-dark); }
.btn:disabled { opacity: .6; cursor: wait; }

label { display: block; margin-top: 14px; font-weight: 600; }
input[type=tel], input[type=text] {
  display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #0f0d0b; color: var(--text); font: inherit; font-size: 18px;
}
input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.err { margin: 6px 0 0; color: var(--error); font-size: 15px; min-height: 0; }
.privacy { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contacts ---------- */
.thanks { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: var(--gold); }
.area { margin-top: 16px; }
.area h3 { margin: 0 0 6px; font-size: 16px; color: var(--muted); font-weight: 600; }
.call {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 52px; margin-top: 8px; padding: 8px 14px;
  border: 1px solid var(--gold-dark); border-radius: 10px;
  text-decoration: none; color: var(--text); font-size: 18px;
}
.call:active { background: #2a221b; }
.call .num { color: var(--gold); font-weight: 700; letter-spacing: .5px; white-space: nowrap; }

/* ---------- Powered by ---------- */
.powered-mini {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 18px;
  font-size: 14px; color: var(--muted);
}
.powered-mini img { width: 28px; height: 28px; border-radius: 7px; }
.powered-mini b { color: var(--text); font-weight: 600; }

.sponsor { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.sponsor p { margin: 0; }
.sponsor-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.sponsor img { margin: 12px auto 10px; width: 72px; height: 72px; border-radius: 18px; }
.sponsor-name { color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.4; }
.sponsor-en { font-size: 14px; color: var(--muted); }
.sponsor-place { margin-top: 4px !important; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 36px 16px 28px; text-align: center; color: var(--muted); font-size: 15px; }
#visits { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.footer b { color: var(--gold); font-size: 18px; }

@media (min-width: 720px) {
  .wrap { max-width: 900px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .drama { max-width: 600px; margin: 0 auto; }
}
