/* KidMin Parents — mobile-first PWA styles */
:root {
  --ink: #12313b;
  --muted: #4d6970;
  --paper: #fffdf7;
  --teal: #087f80;
  --deep: #07525c;
  --yellow: #f6b71e;
  --coral: #ef624f;
  --line: #e7dcc8;
  --card: #ffffff;
  --tabbar-h: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: var(--deep);
  color: #fff;
  max-width: 480px;
  margin: 0 auto;
}
.brand-icon { border-radius: 10px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: 0.2px; }
.brand-text span { font-size: 11px; opacity: 0.85; }

/* Layout */
.app { max-width: 480px; margin: 0 auto; padding: 16px 16px 24px; }
.view[hidden] { display: none; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(18, 49, 59, 0.06);
}
.card.accent { border-top: 6px solid var(--teal); }
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 6px;
}
.card h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; }
.card h2 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.big-truth { font-size: 21px; line-height: 1.35; font-weight: 700; color: var(--deep); margin: 10px 0 4px; }

.field { margin: 14px 0; }
.field-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.field p { margin: 0; font-size: 17px; }
.field .verse-ref { font-weight: 700; }
.scripture-text { font-style: italic; color: var(--muted); font-size: 15px; margin-top: 4px; }
.takehome-full { font-size: 15.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:active { background: var(--deep); }
.btn-quiet { background: #eef4f3; color: var(--deep); }

.playbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  color: #3a2f00;
  cursor: pointer;
}
.playbtn svg { width: 22px; height: 22px; }
.playbtn .icon-pause { display: none; }
.playbtn.playing .icon-pause { display: block; }
.playbtn.playing .icon-play { display: none; }
.playbtn.big { width: 64px; height: 64px; flex-basis: 64px; }
.playbtn.big svg { width: 26px; height: 26px; }

.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
  min-height: 72px;
}
.song-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }
.song-meta { flex: 1; min-width: 0; }
.song-meta strong { display: block; font-size: 16px; }
.song-meta span { font-size: 13px; color: var(--muted); }
.now-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--deep);
  background: #ffe9a8;
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

/* Library accordion */
.lib-item { margin-bottom: 10px; }
.lib-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--teal);
  border-radius: 16px;
  padding: 14px;
  min-height: 64px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink);
}
.lib-head .chev { margin-left: auto; color: var(--muted); transition: transform 0.2s; flex: 0 0 auto; }
.lib-item.open .lib-head .chev { transform: rotate(180deg); }
.lib-body { display: none; padding: 4px 2px 0; }
.lib-item.open .lib-body { display: block; }

/* Heart */
.heartbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.heartbtn svg { width: 20px; height: 20px; }
.heartbtn.faved { color: var(--coral); border-color: var(--coral); }
.heartbtn.faved svg { fill: var(--coral); }

/* Settings */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  min-height: 60px;
}
.set-row:last-child { border-bottom: 0; }
.set-row .label { font-weight: 700; font-size: 16px; }
.set-row .desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.seg { display: flex; border: 1.5px solid var(--teal); border-radius: 999px; overflow: hidden; }
.seg button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}
.seg button.is-active { background: var(--teal); color: #fff; }
.toggle {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #d8cfb8;
  cursor: not-allowed;
  opacity: 0.7;
  flex: 0 0 auto;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
}
.soon-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--deep);
  background: #ffe9a8;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; margin-bottom: 10px; opacity: 0.5; }

/* Tab bar */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  max-width: 480px;
  margin: 0 auto;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 7px;
  min-height: var(--tabbar-h);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--teal); }

@media (min-width: 520px) {
  body { background: #f3ede0; }
}

/* Age-group weekly lines (elementary) */
.weekly-lines { list-style: none; margin: 8px 0 0; padding: 0; }
.weekly-lines li { padding: 9px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: 15px; line-height: 1.45; }
.weekly-lines li.is-now { font-weight: 700; }

/* ---------- Remember This video (added Oct 15, 2026) ---------- */
.watchbtn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 18px;
  border: none; border-radius: 999px;
  background: var(--coral); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.watchbtn svg { width: 16px; height: 16px; }
.watchbtn.small { padding: 3px 10px; margin: 0 0 0 6px; font-size: 12px; vertical-align: middle; }
.watchbtn.small svg { width: 11px; height: 11px; }
.video-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: #0a0e28;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.video-overlay[hidden] { display: none; }
.video-box { position: relative; width: 100%; max-width: 720px; }
.video-frame {
  position: relative; padding-top: 56.25%;
  background: #000; border-radius: 14px; overflow: hidden;
}
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.video-open { display: block; text-align: center; margin-top: 14px; color: #fff; font-weight: 700; font-size: 15px; }
.video-close {
  position: absolute; top: -16px; right: -6px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #fff; color: #101361; font-size: 22px; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
