/* ---------------------------------------------------------------------------
   The page reset and the phone. The phone screen copies
   the real attendee watch page (church-translator-admin/app/watch) so the
   site shows the product people will actually hold, not an idealised one.
   --------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: #0b0a10; }
img, svg, canvas, video { max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- phone */

.phone {
  --pw: 300px;
  position: relative; width: var(--pw); max-width: 100%; aspect-ratio: 9 / 19;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(150deg, #2c2a34 0%, #0f0e13 38%, #1d1c23 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 90px -20px rgba(0, 0, 0, 0.6);
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 37px; background: #09090f;
}
.phone__island {
  position: absolute; z-index: 3; top: 11px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; border-radius: 20px; background: #000;
}

/* The watch page, as shipped (app/watch/[sessionId]): #0D0D17 bars over a
   #09090F ground, a green "Live" dot, A / A+ / A++ text sizes, the Audio On
   pill, the current line on #111118 with a gold rule, and the scripture and
   song panels. Sizes are the real ones scaled to a ~280px-wide phone. */
.watch {
  --fs: 17px; --fss: 11.5px;
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  padding-top: 38px; text-align: left;
  background: linear-gradient(#0d0d17 38px, #09090f 38px);
  color: #f5f0e8;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
.watch[data-size="md"] { --fs: 14.5px; --fss: 10px; }
.watch[data-size="xl"] { --fs: 21.5px; --fss: 13px; }
.watch__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 12px 9px; background: #0d0d17; border-bottom: 1px solid #1e1e2a;
}
.watch__status { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6b7a; }
.watch__status i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.watch__tools { display: flex; align-items: center; gap: 7px; }
.watch__sizes { display: flex; gap: 1px; }
.watch__size { position: relative; padding: 3px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 700; line-height: 1.1; color: #3a3a4a; transition: color 0.25s, background 0.25s; }
.watch__size sup { font-size: 0.7em; }
.watch__size.is-on { color: #c9a84c; background: rgba(201, 168, 76, 0.1); }
.watch__audio {
  position: relative; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 600; white-space: nowrap;
  color: #c9a84c; background: rgba(201, 168, 76, 0.1); border: 1px solid rgba(201, 168, 76, 0.25);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.watch.is-muted .watch__audio { color: #3a3a4a; background: rgba(58, 58, 74, 0.3); border-color: #1e1e2a; }
.watch__audio svg { width: 10px; height: 10px; flex: none; }
.watch__audio b { font-weight: 600; }
.watch__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.watch__head {
  display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 12px;
  background: #0d0d17; border-bottom: 1px solid #1e1e2a;
  font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #c9a84c;
}
.watch__head span { display: flex; align-items: center; gap: 7px; }
.watch__head i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: vs-pulse 1.6s ease-in-out infinite; }
.watch__head .watch__onair { color: #4ade80; }
.watch__head .watch__onair i { width: 5px; height: 5px; }
.watch__now { padding: 11px 14px 12px; background: #111118; border-bottom: 1px solid #1e1e2a; border-left: 3px solid #c9a84c; }
.watch__now p { margin: 0; font-size: var(--fs); line-height: 1.3; font-weight: 600; text-wrap: pretty; transition: font-size 0.35s ease; }
.watch__history {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 12px 14px;
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent);
}
.watch__past span { font-size: 8.5px; color: #3a3a4a; }
.watch__past p { margin: 2px 0 0; font-size: var(--fs); line-height: 1.3; color: #f5f0e8; transition: font-size 0.35s ease; }
.watch__past em { display: block; margin-top: 3px; font-size: var(--fss); line-height: 1.35; color: #3a3a4a; }
.watch__overlay { flex: none; background: #0d0d17; border-top: 1px solid #1e1e2a; }
.watch__obody { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 16px; }
.watch__ref { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: #c9a84c; }
.watch__verse { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: calc(var(--fs) + 1.5px); line-height: 1.32; color: #f5f0e8; }
.watch__osrc {
  margin: 0; font-size: var(--fss); font-style: italic; color: #3a3a4a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.watch__song { flex: 1; min-height: 0; overflow: hidden; padding: 16px 14px; }
.watch__stitle { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: calc(var(--fs) + 3px); line-height: 1.1; color: #f5f0e8; }
.watch__ssub { margin: 4px 0 14px; font-size: 10px; color: #c9a84c; }
.watch__slabel { margin: 0 0 5px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b7a; }
.watch__card { padding: 10px; border-radius: 10px; background: #111118; border: 1px solid #1e1e2a; }
.watch__card p { margin: 0; font-size: var(--fs); line-height: 1.45; white-space: pre-line; color: #f5f0e8; }
.watch__card .watch__csrc { margin-top: 8px; font-size: var(--fss); font-style: italic; color: #c9a84c; }
.watch .is-new { animation: vs-rise 0.55s cubic-bezier(0.2, 0.7, 0.1, 1) both; }

/* A fingertip: a soft ring on whatever was just tapped. */
.is-tap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: rgba(245, 240, 232, 0.28); pointer-events: none;
  animation: vs-tap 0.7s ease-out both;
}
@keyframes vs-tap { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes vs-spin { to { transform: rotate(360deg); } }
@keyframes vs-word { to { opacity: 1; } }

@keyframes vs-pulse { 50% { opacity: 0.35; } }
@keyframes vs-rise { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
