:root {
  --maroon-ink: #1c0408;
  --maroon-deep: #2a070c;
  --maroon: #4c1016;
  --maroon-mid: #6e1c24;
  --saffron: #f08c2b;
  --gold: #e8c547;
  --cream: #fff6e8;
  --lime: #c8ee3a;
  --ink: #2a140f;
  --muted: #7c5a4c;
  --nav-h: calc(68px + env(safe-area-inset-bottom));
  --font: "Outfit", "Noto Sans Devanagari", system-ui, sans-serif;
  --display: "Yatra One", "Noto Serif Devanagari", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--maroon-deep);
  line-height: 1.45;
  padding-bottom: var(--nav-h);
}

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

.toran {
  height: 22px;
  background:
    radial-gradient(circle at 8px 4px, #e23b2f 3px, transparent 4px),
    radial-gradient(circle at 24px 4px, var(--saffron) 3px, transparent 4px),
    radial-gradient(circle at 40px 4px, var(--gold) 3px, transparent 4px);
  background-size: 48px 22px;
}

.hero {
  padding: 28px 20px 36px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240, 140, 43, 0.28), transparent 55%),
    var(--maroon);
  color: var(--cream);
  text-align: center;
}

.hero-compact { padding: 22px 20px 28px; }

.kicker {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
}

.kicker a { text-decoration: none; }

.mantra {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 8vw, 2.4rem);
}

h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 auto;
  max-width: 34ch;
  color: #f3d9b8;
}

.sheet {
  margin-top: -18px;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 22px 16px 28px;
  min-height: 40vh;
}

.section { max-width: 720px; margin: 0 auto; }

.sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
  color: var(--maroon);
}

.status-pill.on {
  background: var(--lime);
  color: #1a2800;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9a08c;
}

.status-pill.on i {
  background: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.18);
}

.player {
  position: relative;
  background: #110307;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: min(78svh, 820px);
  margin: 0 auto;
  box-shadow: 0 16px 36px rgba(28, 4, 8, 0.2);
}

.player iframe,
.player video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #110307;
}

.player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: #f3d9b8;
  background: #110307;
}

.player-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.player-actions .btn {
  min-height: 40px;
  padding: 0 12px;
}

.player-actions .btn-ghost {
  background: rgba(255, 253, 247, 0.92);
}

.player:fullscreen,
.player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  aspect-ratio: auto;
}

.player:fullscreen video,
.player:-webkit-full-screen video {
  object-fit: contain;
}

.preview-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #110307;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: min(70svh, 760px);
  margin: 0 auto;
}

.preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-wrap:fullscreen,
.preview-wrap:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  aspect-ratio: auto;
}

@media (orientation: landscape) {
  body { padding-bottom: 0; }
  .toran,
  .hero .mantra,
  .hero .lede,
  .card,
  .site-footer,
  .bottom-nav { display: none; }
  .hero-compact { padding: 8px 16px 12px; }
  .hero h1 { font-size: 1.15rem; margin: 4px 0; }
  .sheet { padding: 10px 12px 16px; }
  .section { max-width: none; }
  .player,
  .preview-wrap {
    width: 100%;
    height: calc(100svh - 92px);
    max-height: none;
    aspect-ratio: auto;
  }
}

.live-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 8px 20px rgba(76, 16, 22, 0.08);
}

.card strong { display: block; margin-bottom: 6px; }

.field { margin: 0 0 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }

.field input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(76, 16, 22, 0.16);
  padding: 0 12px;
  font: inherit;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--lime);
  color: #1a2800;
}

.btn-ghost {
  background: #fff;
  color: var(--maroon);
  border: 1px solid rgba(76, 16, 22, 0.12);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.error { color: #9b1c1c; font-weight: 600; margin: 0 0 10px; }


.site-footer {
  padding: 8px 16px 20px;
  text-align: center;
  color: #f3d9b8;
  font-size: 0.82rem;
}

.site-footer a { color: var(--gold); }
.credit { color: #c9b09a; font-size: 0.75rem; line-height: 1.5; }
.credit a { color: #f3d9b8; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: #140306;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  color: #f3d9b8;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto 4px;
}

.bottom-nav .accent { color: var(--lime); }

.hidden { display: none; }

@media (orientation: landscape) {
  .bottom-nav { display: none; }
}
