/* gita.yoga.org bar — full-viewport creator cinema */
:root {
  --ac-gold: #d4b478;
  --ac-warm: #f5ecd9;
  --ac-text: #f5ecdd;
  --ac-muted: #beb5a5;
  --ac-page: #050605;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body.ac-body {
  margin: 0; height: 100%; height: 100dvh;
  background: var(--ac-page); color: var(--ac-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}
.ac-cinema {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  background: #000;
}
.ac-cinema .poster,
.ac-cinema video.plate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  display: block;
}
.ac-cinema[data-vibe-bar="1"] video.plate.on {
  object-position: center 18%;
}
.ac-mix.is-quiet { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.ac-cinema .poster { z-index: 0; }
.ac-cinema video.plate {
  z-index: 1; opacity: 0;
  transition: opacity 1.35s ease;
  filter: brightness(1) saturate(1);
}
.ac-cinema video.plate.on { opacity: 1; z-index: 2; }
.ac-cinema[data-arc="morph"] video.plate.on {
  filter: brightness(1.08) saturate(1.15);
}
.ac-cinema[data-arc="divine"] video.plate.on {
  filter: brightness(1.12) saturate(1.2);
}
.ac-bloom {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,220,150,.55), transparent 60%);
  opacity: 0; transition: opacity .9s ease;
}
.ac-cinema.is-blooming .ac-bloom { opacity: 1; }
.ac-cinema[data-arc="morph"] .ac-scrim {
  background:
    linear-gradient(90deg, rgba(20,12,0,.55) 0%, rgba(0,0,0,.25) 50%, transparent 75%),
    linear-gradient(transparent 30%, rgba(40,24,4,.55) 100%);
}
.ac-cinema[data-arc="divine"] .ac-scrim {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(212,180,120,.28), transparent 55%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 50%, transparent 75%),
    linear-gradient(transparent 40%, rgba(0,0,0,.82) 100%);
}
.ac-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.4) 46%, transparent 72%),
    linear-gradient(transparent 36%, rgba(0,0,0,.92) 100%);
  transition: background .8s ease;
}
.ac-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,0));
  pointer-events: none;
}
.ac-top a, .ac-top button { pointer-events: auto; }
.ac-brand {
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.65); font-size: 15px;
}
.ac-brand em { font-style: normal; color: var(--ac-gold); }
.ac-share {
  appearance: none; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1); color: #fff; font: 650 13px/1 inherit;
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(8px);
}

.ac-billboard {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: clamp(20px, 5vh, 48px) clamp(18px, 4vw, 48px) clamp(28px, 7vh, 64px);
  max-width: 640px; transition: opacity .45s ease;
}
.ac-billboard.hidden { opacity: 0; pointer-events: none; }
.ac-eyebrow {
  margin: 0 0 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ac-gold);
}
.ac-billboard h1 {
  margin: 0 0 12px;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 500; font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: .98; letter-spacing: -.02em; color: var(--ac-warm);
  text-shadow: 0 8px 40px rgba(0,0,0,.55);
}
.ac-billboard p {
  margin: 0 0 22px; max-width: 28em;
  font-size: clamp(15px, 2.2vw, 18px); line-height: 1.45;
  color: rgba(245, 236, 221, .92);
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}
.ac-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ac-play {
  appearance: none; border: 0; cursor: pointer;
  background: var(--ac-gold); color: #1a1408;
  font-weight: 800; font-size: 17px;
  padding: 16px 28px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); text-decoration: none;
  min-height: 52px;
}
.ac-play:hover { filter: brightness(1.05); }
.ac-ghost {
  appearance: none; cursor: pointer; text-decoration: none;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 650; font-size: 15px;
  padding: 14px 18px; border-radius: 8px;
  backdrop-filter: blur(8px); min-height: 52px;
  display: inline-flex; align-items: center;
}
.ac-live {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 12px; color: var(--ac-muted);
}
.ac-live i {
  width: 8px; height: 8px; border-radius: 50%; background: #3dd68c;
  box-shadow: 0 0 10px #3dd68c; animation: ac-pulse 1.5s ease-in-out infinite;
}
@keyframes ac-pulse { 50% { opacity: .35; } }

.ac-playhead {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 16px 18px max(20px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.94) 35%);
  display: none;
}
.ac-playhead.on { display: block; }
.ac-captions {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.35; color: var(--ac-warm);
  max-width: 22em; margin: 0 0 14px;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
  min-height: 2.8em;
}
.ac-controls {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.ac-controls button, .ac-controls a {
  appearance: none; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1); color: #fff;
  font: 650 13px/1 inherit; min-height: 40px; padding: 0 14px;
  border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.ac-controls .primary {
  background: var(--ac-gold); color: #1a1408; border-color: transparent; font-weight: 800;
}

.ac-mix {
  position: absolute; right: 16px; bottom: max(110px, 18vh); z-index: 7;
  width: min(360px, calc(100% - 32px));
  background: rgba(10,12,10,.72); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; overflow: hidden; backdrop-filter: blur(12px);
  display: none; box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.ac-mix.on { display: block; }
.ac-mix iframe { width: 100%; height: 166px; border: 0; display: block; background: #000; }
.ac-mix-label {
  padding: 10px 12px; font-size: 12px; color: var(--ac-muted); font-weight: 650;
}

.ac-end {
  position: absolute; inset: 0; z-index: 8;
  display: none; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  background: rgba(0,0,0,.72); backdrop-filter: blur(10px);
}
.ac-end.on { display: flex; }
.ac-end h2 {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--ac-warm);
}
.ac-end p { margin: 0 0 22px; color: var(--ac-muted); }
.ac-end .ac-row { justify-content: center; }

/* Curated world (after Play / Skip) */
.ac-world {
  position: absolute; inset: 0; z-index: 9;
  display: none; overflow: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(5,6,5,.55), rgba(5,6,5,.94) 28%, #050605 100%);
  padding: max(64px, calc(env(safe-area-inset-top) + 48px)) 18px max(120px, env(safe-area-inset-bottom));
}
.ac-world.on { display: block; }
.ac-world-inner { max-width: 920px; margin: 0 auto; }
.ac-world h2 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--ac-warm);
}
.ac-world .lead { margin: 0 0 22px; color: var(--ac-muted); max-width: 34em; line-height: 1.45; }
.ac-kicker {
  margin: 28px 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ac-gold); font-weight: 800;
}
.ac-cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .ac-cards.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ac-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.ac-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 16px; min-height: 96px;
  transition: border-color .2s ease, transform .2s ease;
}
.ac-card:hover { border-color: rgba(212,180,120,.55); transform: translateY(-1px); }
.ac-card b { font-size: 1.02rem; color: var(--ac-warm); }
.ac-card span { color: var(--ac-muted); font-size: .9rem; line-height: 1.35; }
.ac-moments {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
@media (min-width: 720px) { .ac-moments { grid-template-columns: repeat(3, 1fr); } }
.ac-moments a {
  aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); display: block;
}
.ac-moments img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Floating avatar twin */
.ac-avatar {
  position: fixed; z-index: 20; right: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--ac-gold); padding: 0; cursor: pointer;
  overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  background: #111; appearance: none;
}
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-avatar::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(212,180,120,.45);
  animation: ac-ring 2.2s ease-out infinite;
}
.ac-avatar .dot {
  position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #3dd68c; border: 2px solid #050605;
}
@keyframes ac-ring {
  0% { transform: scale(.92); opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}

.ac-twin {
  position: fixed; z-index: 30; right: 12px; left: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 420px; margin: 0 0 0 auto;
  background: rgba(12,14,12,.94); border: 1px solid rgba(212,180,120,.35);
  border-radius: 20px; overflow: hidden; display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.55); backdrop-filter: blur(14px);
}
.ac-twin.on { display: flex; flex-direction: column; max-height: min(70vh, 560px); }
.ac-twin-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ac-twin-head img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(212,180,120,.5);
}
.ac-twin-head b { display: block; font-size: 14px; color: var(--ac-warm); }
.ac-twin-head span { font-size: 11px; color: var(--ac-muted); }
.ac-twin-close {
  margin-left: auto; appearance: none; border: 0; background: transparent;
  color: #fff; font-size: 20px; cursor: pointer; min-width: 40px; min-height: 40px;
}
.ac-twin-log {
  flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.ac-bubble {
  max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4;
}
.ac-bubble.bot { background: rgba(255,255,255,.08); color: var(--ac-text); align-self: flex-start; }
.ac-bubble.me { background: rgba(212,180,120,.22); color: var(--ac-warm); align-self: flex-end; }
.ac-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.ac-starters button {
  appearance: none; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: var(--ac-text);
  border-radius: 999px; padding: 8px 12px; font-size: 12px; cursor: pointer;
}
.ac-twin-form {
  display: flex; gap: 8px; padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.1);
}
.ac-twin-form input {
  flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: #0a0c0a; color: var(--ac-text); padding: 0 12px; font: inherit;
}
.ac-twin-form button {
  appearance: none; border: 0; border-radius: 12px; min-height: 44px; padding: 0 16px;
  background: var(--ac-gold); color: #1a1408; font-weight: 800; cursor: pointer;
}

@media (max-width: 700px) {
  .ac-mix {
    left: 12px; right: 12px; width: auto; bottom: max(100px, 16vh);
  }
  .ac-avatar { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-cinema video.plate { transition: none; }
  .ac-live i, .ac-avatar::after { animation: none; }
}

/* PATRIOT film plate — 16:9 cinematic cover */
.ac-cinema video.plate {
  object-fit: cover;
  object-position: center center;
}
.ac-moments a.wide { aspect-ratio: 16/9; }
.ac-film-note { color: var(--ac-muted); font-size: 13px; line-height: 1.45; max-width: 36em; }
.ac-world .quiet { font-size: 13px; color: var(--ac-muted); }
html[data-door="frenly"] .yoga-only { display: none !important; }
html[data-door="yoga"] .frenly-only { display: none !important; }
