/* Same charter as the videos (design/CHARTE.md): Baloo 2 + Nunito, sky → cream, mango = new, leaf = watched. */
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2.ttf') format('truetype'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/Nunito.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }

:root {
  --sky: #E8F6FF; --cream: #FFF6E5; --ink: #2B2D42; --white: #FFFFFF; --sun: #FFC93C;
  --mango: #FF8A3D; --mango-deep: #C9560A; --ocean-deep: #2B6FE0; --leaf: #2EC4B6; --leaf-deep: #14897F;
  --muted: #5B5E73; --card: #FFFFFF; --line: rgba(43, 45, 66, .12);
  /* no-ai-slop: allow C6 (the videos' own sky-to-cream background, design/CHARTE.md) */
  --bg: linear-gradient(180deg, var(--sky), var(--cream));
  color-scheme: light; /* one bright look in both themes, like the videos */
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--cream); background-image: var(--bg); background-attachment: fixed;
  color: var(--ink); font: 600 17px/1.4 'Nunito', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ocean-deep); outline-offset: 3px; }

.home { max-width: 560px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
.hello { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.bubu { flex: none; }
h1 { font: 800 38px/1 'Baloo 2', system-ui, sans-serif; margin: 6px 0 2px; }
.progress { margin: 0; color: var(--muted); }

.notify { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-bottom: 18px; }
.notify p { margin: 0 0 10px; }
.btn { border: 0; border-radius: 999px; padding: 12px 20px; background: var(--ocean-deep); color: var(--white); font-weight: 800; min-height: 48px; }
.btn.ghost { background: var(--white); color: var(--ink); border: 2px solid var(--line); }
.btn.ghost[aria-pressed="true"] { background: var(--leaf-deep); color: var(--white); border-color: var(--leaf-deep); }
.btn:disabled { opacity: .6; cursor: default; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card-btn {
  width: 100%; display: flex; gap: 14px; align-items: stretch; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 10px;
  border-bottom-width: 5px; transition: transform .12s ease;
}
.card-btn:active { transform: scale(.98); }
.thumb { position: relative; flex: none; width: 96px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--sky); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { position: absolute; inset: auto 8px 8px auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink); font-size: 14px; border: 2px solid var(--ink); }
.meta { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 4px 0; min-width: 0; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.badge.new { background: var(--sun); color: var(--ink); }
.badge.watched { background: var(--leaf-deep); color: var(--white); }
.title { font: 800 22px/1.15 'Baloo 2', system-ui, sans-serif; }
.sub { color: var(--muted); font-size: 15px; }
.info { color: var(--muted); font-size: 14px; margin-top: auto; }
.card.is-watched .thumb img { opacity: .75; }

.empty, .offline { text-align: center; color: var(--muted); margin: 32px 8px; }
.offline { margin: 16px 8px 0; font-size: 15px; }

.player { position: fixed; inset: 0; background: #11131c; color: var(--white); display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); z-index: 10; }
.player-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.player-bar h2 { font: 800 20px/1.2 'Baloo 2', system-ui, sans-serif; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { background: transparent; border: 0; color: var(--white); font-weight: 800; font-size: 18px; padding: 10px 8px; min-height: 44px; }
.player video { flex: 1; min-height: 0; width: 100%; background: #000; }
.player-foot { display: flex; justify-content: center; padding: 12px 16px; }
