:root {
  --sky-50: #F3FAFF;
  --sky-100: #EAF6FF;
  --sky-200: #CFEAFF;
  --sky-400: #7CCBFF;
  --sky-600: #2F8FE6;
  --sky-700: #1769C0;   /* white text on this = 5.4:1 */
  --ink: #12324A;       /* on white = 12.6:1 */
  --ink-soft: #4A6478;  /* on white = 6.0:1 */
  --sun: #FFD166;
  --coral: #FF7A6B;
  --card: #FFFFFF;
  --radius: 28px;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sky-100);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 50% -200px, #fff 0%, var(--sky-100) 60%) fixed; }
main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 20px 40px; }
a { color: var(--sky-700); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky-700); outline-offset: 3px; border-radius: 8px; }

.top { padding: max(14px, env(safe-area-inset-top)) 20px 6px; display: flex; justify-content: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.mark { width: 34px; height: 34px; }

.player { position: relative; margin: 8px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--sky-200);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -18px rgba(23, 105, 192, .45), 0 2px 6px rgba(18, 50, 74, .08); }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; cursor: pointer; }
.sound { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  display: inline-flex; gap: 8px; align-items: center; font: inherit; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); cursor: pointer; }
.loops { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: rgba(255, 255, 255, .85); color: var(--ink); }

.meta { padding: 14px 4px 0; }
.caption { font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.byline { margin: 0; color: var(--ink-soft); }
.byline a { font-weight: 700; text-decoration: none; }
.handle { color: var(--ink-soft); }

.cta { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--card); text-align: center;
  box-shadow: 0 10px 30px -20px rgba(23, 105, 192, .5); }
.cta h2 { margin: 0 0 6px; font-size: 1.2rem; }
.cta p { margin: 0 0 16px; color: var(--ink-soft); line-height: 1.45; }
.soon { font-weight: 700; color: var(--ink) !important; }

.btn { display: flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; margin: 8px 0 0;
  border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--sky-700); color: #fff; box-shadow: 0 6px 0 -2px #0f4f93; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 3px 0 -2px #0f4f93; }
.btn.ghost { background: var(--sky-100); color: var(--sky-700); }
.btn.small { min-height: 44px; display: inline-flex; background: var(--ink); color: #fff; }

.report { margin-top: 24px; color: var(--ink-soft); }
.report summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.report form { display: grid; gap: 8px; padding: 8px 0; }
.report select, .report textarea { font: inherit; padding: 12px; border-radius: 14px; border: 2px solid var(--sky-200); background: #fff; color: var(--ink); }
.fine { font-size: .85rem; }

.hero { text-align: center; padding: 40px 0 10px; }
.hero-mark .mark { width: 96px; height: 96px; filter: drop-shadow(0 14px 18px rgba(23,105,192,.3)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.hero-word { display: block; height: 52px; width: auto; margin: 4px auto 26px; }
.hero h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 12px; }
.lede { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.5; }
.how { display: grid; gap: 14px; margin-top: 28px; }
.how > div { background: #fff; border-radius: 22px; padding: 18px 20px; }
.how h2 { margin: 0 0 4px; font-size: 1.1rem; }
.how p { margin: 0; color: var(--ink-soft); line-height: 1.45; }

.profile { text-align: center; padding-top: 18px; }
.avatar { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--sky-400), var(--sky-700)); }
.profile h1 { margin: 12px 0 0; }
.bio { color: var(--ink-soft); }
.grid { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; display: block; background: var(--sky-200); }
.empty { text-align: center; color: var(--ink-soft); }

.prose { background: #fff; border-radius: var(--radius); padding: 24px; line-height: 1.55; }
.prose h1 { margin-top: 0; letter-spacing: -0.02em; }
.prose.center { text-align: center; }
.prose.wide { max-width: 900px; }
.modlist { list-style: none; padding: 0; display: grid; gap: 16px; }
.mod { display: flex; gap: 16px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--sky-50); }
.mod video { border-radius: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--sky-200); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.actions .danger { border-color: var(--coral); color: #A3281A; }

.foot { padding: 24px 20px max(24px, env(safe-area-inset-bottom)); }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-soft); font-size: .9rem; min-height: 32px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { .hero-mark .mark { animation: none; } }
@media (min-width: 900px) { main { max-width: 640px; } }

.prompt-tag { display: inline-flex; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--sky-200); color: var(--ink); font-weight: 800; text-decoration: none; }
.prompt-hero .prompt-emoji { font-size: 4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--sky-700); margin: 6px 0 0; font-size: .85rem; }
.adminnav { display: flex; gap: 14px; margin-bottom: 8px; font-weight: 800; }
.promptform { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; margin: 16px 0; }
.promptform input { width: 100%; font: inherit; padding: 10px; border-radius: 12px; border: 2px solid var(--sky-200); }
.metrics { width: 100%; border-collapse: collapse; font-size: .9rem; }
.metrics th, .metrics td { padding: 6px 8px; border-bottom: 1px solid var(--sky-100); text-align: right; white-space: nowrap; }
.metrics th:first-child, .metrics td:first-child { text-align: left; }
.metrics tr.live td { background: var(--sky-50); font-weight: 700; }
.tablewrap { overflow-x: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.kpis div { background: var(--sky-50); border-radius: 16px; padding: 12px; color: var(--ink-soft); font-size: .85rem; }
.kpis span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.brand .mark { width: 40px; height: 40px; }
main:has(.wide) { max-width: 1040px; }
.brand .wordmark { height: 44px; width: auto; display: block; }
.replies { margin-top: 20px; }
.replies h2 { font-size: 1.05rem; margin: 0 0 10px; }
.reply-row { list-style: none; padding: 0 0 6px; margin: 0; display: flex; gap: 10px; overflow-x: auto; }
.reply-row a { display: block; width: 110px; text-decoration: none; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.reply-row img { width: 110px; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; display: block; background: var(--sky-200); margin-bottom: 4px; }

/* Admin: picks */
.picklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pickcard { background: #fff; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(23, 105, 192, 0.08); }
.pickcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; background: #e6f4ff; }
.pickcard form { margin: 0; }
.pickcard .btn { width: 100%; }
