/* Jumbohop 蹦蹦学英语 — jumbohop.com. Colours follow the App's Park palette (ios-native Theme.swift). */
:root {
  --ink: #26385C;
  --muted: #5B6A86;
  --cream: #FFF8EB;
  --sky: #DBF1FD;
  --sky-deep: #BFE5FB;
  --orange: #FF882B;
  --orange-ink: #B4530A;
  --purple: #9986DB;
  --purple-ink: #6650B8;
  --purple-soft: #EFEAFB;
  --green: #48A778;
  --card: #FFFFFF;
  --line: rgba(38, 56, 92, .08);
  --shadow: 0 10px 30px rgba(38, 56, 92, .08), 0 2px 6px rgba(38, 56, 92, .05);
  --radius: 24px;
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Nunito",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --text: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --latin: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --brand: #4B2A9B;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.7 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--purple-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 4.2vw, 32px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
p { margin: 0; }
[lang="en"] { font-family: var(--latin); }
.cn { font-weight: 700; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.en { color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 880px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- header */
.top { background: var(--sky-deep); position: relative; z-index: 3; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(38,56,92,.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 22px; font-weight: 900; color: var(--brand); letter-spacing: .01em; }
.brand-text small { font-family: var(--round); font-size: 13px; font-weight: 800; color: var(--ink); }
.top-nav { display: flex; align-items: center; gap: 4px; font-family: var(--round); font-weight: 800; font-size: 15px; }
.top-nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.top-nav a:hover { background: rgba(255,255,255,.6); }
.top-nav a:not(.pill) { display: none; }
@media (min-width: 640px) { .top-nav a:not(.pill) { display: inline-block; } }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 14px; }
.top-nav .pill-red, .pill-red { background: #CC2E2A; color: #fff; }
.top-nav .pill-red:hover { background: #B32724; color: #fff; }

/* ---------- buttons, badges, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--round); font-size: 18px; font-weight: 800; line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.96); }
.btn img { width: 20px; height: 20px; }
.btn-primary {
  color: #fff; background: linear-gradient(#F57A1F, #D65A0A);
  box-shadow: 0 6px 16px rgba(214, 90, 10, .28); text-shadow: 0 1px 0 rgba(120, 40, 0, .3);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 20px rgba(214, 90, 10, .36); }
.btn-soft { color: var(--ink); background: #fff; box-shadow: 0 4px 12px rgba(38,56,92,.10); }
.btn-soft:hover { color: var(--purple-ink); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 16px; }

.badge { display: inline-block; font-family: var(--round); font-weight: 800; font-size: 13px; line-height: 1; padding: 7px 11px; border-radius: 999px; }
.badge-new { background: linear-gradient(#F57A1F, #D65A0A); color: #fff; }
.eyebrow { font-family: var(--round); font-weight: 800; font-size: 14px; color: var(--purple-ink); letter-spacing: .02em; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.chips li { background: var(--purple-soft); color: var(--ink); border-radius: 999px; padding: 3px 11px; font-size: 14px; line-height: 1.6; }
.chips li span { font-weight: 800; }
.chips li small { color: var(--muted); margin-left: 2px; }
.chips-plain li { background: #F6F1E6; }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 720px) { .panel { padding: 28px; } }
.section-lead { color: var(--muted); margin-top: 8px; max-width: 46em; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.goal { font-weight: 700; }

/* ---------- hero */
.hero {
  background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, var(--cream) 100%);
  padding: 18px 0 40px; overflow: hidden;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 40px; padding-top: 20px; padding-bottom: 20px; } }
.kicker { display: inline-block; font-family: var(--round); font-weight: 800; font-size: 14px; color: var(--purple-ink); background: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 999px; }
.hero h1 { margin: 14px 0 12px; display: flex; flex-direction: column; gap: 4px; }
.hero h1 [lang="en"] {
  font-size: clamp(48px, 12vw, 80px); font-weight: 900; color: var(--brand); line-height: 1.05;
  text-shadow: 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff, 2px 2px #fff, -2px -2px #fff, 2px -2px #fff,
    -2px 2px #fff, 0 10px 22px rgba(38,56,92,.22);
  letter-spacing: .005em; padding: 0 4px;
}
.h1-cn { font-size: clamp(26px, 6vw, 38px); font-weight: 900; color: var(--ink); }
.lead { font-size: 17.5px; max-width: 30em; }
@media (min-width: 900px) { .lead { font-size: 19px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-meta { margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.hero-meta b { color: var(--ink); }

.hero-art { position: relative; padding: 4% 0 8% 0; }
.hero-frame { border-radius: 30px; overflow: hidden; box-shadow: 0 18px 40px rgba(38,56,92,.18); border: 6px solid #fff; transform: rotate(1.2deg); }
.hero-yard { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-jumbo { position: absolute; left: -2%; bottom: -2%; width: 46%; filter: drop-shadow(0 12px 18px rgba(38,56,92,.25)); }
.hero-cloud { position: absolute; z-index: 1; opacity: .95; }
.hero-cloud-a { width: 24%; right: -5%; top: 0; }
.hero-cloud-b { width: 18%; left: 34%; top: -1%; }
.hero-frame, .hero-jumbo { z-index: 2; position: relative; }
.hero-jumbo { position: absolute; }
@media (max-width: 899px) {
  .hero-art { margin: 0 4px; padding: 2% 0 10% 0; }
  .hero-frame { transform: none; border-width: 4px; border-radius: 22px; }
  .hero-yard { aspect-ratio: 2 / 1; }
  .hero-jumbo { width: 33%; left: -2%; bottom: -1%; }
  .hero-cloud-b { display: none; }
  .hero-cloud-a { width: 22%; top: -4%; }
}

/* ---------- latest */
.latest { margin-top: -6px; position: relative; z-index: 2; }
.latest-panel { display: grid; gap: 14px; }
.latest-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.latest h2 a { color: var(--ink); text-decoration: none; }
.latest h2 a:hover { color: var(--purple-ink); }
.latest-foot { display: grid; gap: 16px; align-items: center; margin-top: 4px; }
@media (min-width: 760px) { .latest-foot { grid-template-columns: 1fr auto; } }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0f1a2e; box-shadow: 0 8px 24px rgba(38,56,92,.18); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-wait { background: linear-gradient(120deg, #e8eef8, #f6f1e6); }

/* ---------- how */
.how { padding: 56px 0 8px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: relative;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start; }
.step-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(#FFAE50, var(--orange)); box-shadow: 0 6px 14px rgba(255,136,43,.3); grid-row: span 2; }
@media (min-width: 760px) { .step { display: block; padding: 22px; } .step-icon { margin-bottom: 14px; } }
.step:nth-child(2) .step-icon { background: linear-gradient(#B3A4EA, var(--purple)); box-shadow: 0 6px 14px rgba(153,134,219,.35); }
.step:nth-child(3) .step-icon { background: linear-gradient(#6CC497, var(--green)); box-shadow: 0 6px 14px rgba(72,167,120,.3); }
.step h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.step-no { font-size: 13px; color: var(--muted); font-weight: 800; border: 2px solid var(--line); border-radius: 999px; width: 26px; height: 26px; display: inline-grid; place-items: center; }
.step p { color: var(--muted); margin-top: 4px; }

/* ---------- episodes */
.episodes { padding: 56px 0 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(38,56,92,.14); color: var(--ink); }
.cover { position: relative; aspect-ratio: 16 / 9; background: var(--sky); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card .eyebrow .badge { margin-left: 6px; vertical-align: 1px; font-size: 12px; padding: 5px 9px; }
.dur { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 26, 46, .78); color: #fff; font: 700 12.5px/1 var(--round); padding: 5px 8px; border-radius: 8px; }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--purple-ink); }
.card-body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.card h3 { font-size: 18px; }
.card h3 .cn { font-weight: 700; color: var(--muted); font-family: var(--text); }
.card-review .eyebrow { color: #2F7D57; }
.card-soon .soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  height: 100%; min-height: 220px; padding: 22px; border-radius: 22px; border: 3px dashed rgba(153, 134, 219, .45); background: rgba(255,255,255,.55); }
.card-soon img { width: 120px; }
.card-soon b { font-family: var(--round); font-size: 18px; }
.card-soon p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 559px) {
  .grid { gap: 12px; }
  .card a { flex-direction: row; align-items: center; border-radius: 18px; }
  .card .cover { width: 44%; flex: none; margin: 10px 0 10px 10px; border-radius: 12px; overflow: hidden; }
  .card-body { padding: 8px 12px 10px; gap: 2px; }
  .card h3 { font-size: 16px; line-height: 1.3; }
  .card h3 .cn { display: block; font-size: 14px; }
  .card .eyebrow { font-size: 12.5px; }
  .card .chips { margin-top: 4px; gap: 4px; }
  .card .chips li { font-size: 12.5px; padding: 0 8px; }
  .card .chips li small { display: none; }
  .dur { font-size: 11px; right: 6px; bottom: 6px; padding: 3px 5px; }
  .card-soon .soon { min-height: 0; flex-direction: row; text-align: left; padding: 14px; }
  .card-soon img { width: 72px; }
}

/* ---------- levels */
.levels { padding: 56px 0 8px; }
.ladder { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .ladder { grid-template-columns: repeat(5, 1fr); } }
.level { background: var(--card); border-radius: 16px; padding: 10px 12px 12px; box-shadow: var(--shadow); border-top: 6px solid var(--lv); display: grid; gap: 0; position: relative; }
.level b { font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.level span { font-weight: 700; font-size: 15px; }
.level small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.level em { position: absolute; right: 10px; top: 10px; font-style: normal; font: 800 12px/1 var(--round); background: var(--green); color: #fff; padding: 5px 8px; border-radius: 999px; }
.level-on { opacity: 1; box-shadow: 0 0 0 3px var(--lv), var(--shadow); }

/* ---------- app */
.app { padding: 56px 0 64px; }
.app-panel { display: grid; gap: 18px; align-items: center; background: linear-gradient(135deg, #fff 0%, #F4F0FF 100%); }
@media (min-width: 820px) { .app-panel { grid-template-columns: 1fr 1.1fr; } }
.app-panel p { color: var(--muted); margin-top: 8px; }
.app-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-art figure { margin: 0; text-align: center; font: 800 14px/1.3 var(--round); color: var(--ink); }
.app-art img { margin: 0 auto 6px; width: auto; height: 110px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(38,56,92,.15)); }
@media (max-width: 559px) { .app-art img { height: 84px; } }

/* ---------- episode page */
.ep main { padding-bottom: 56px; }
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.ep-head { padding: 6px 0 18px; }
.ep-head h1 { font-size: clamp(30px, 6.5vw, 46px); font-weight: 900; margin: 6px 0 4px; }
.ep-head h1 .cn { display: block; font-size: .62em; color: var(--ink); }
.ep-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.summary { margin-top: 26px; display: grid; gap: 10px; font-size: 17px; }
.summary .en { font-size: 15.5px; }
.focus { margin-top: 40px; }
.focus .goal { margin-top: 8px; color: var(--ink); }
.words { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .words { grid-template-columns: repeat(3, 1fr); } }
.word { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.word-art { aspect-ratio: 3 / 2; background: var(--sky); position: relative; }
.word-art img { width: 100%; height: 100%; object-fit: cover; }
.word-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, #E8E1FA 55%, #D9EEFB 100%); color: var(--brand); }
.word-fallback b { font-size: clamp(34px, 6vw, 46px); font-weight: 900; line-height: 1.1; }
.word-fallback small { font: 800 18px/1.2 var(--round); color: var(--ink); }
.word-body { padding: 14px 16px 18px; }
.word-name { display: flex; align-items: baseline; gap: 10px; }
.word-name b { font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.word-name span { font-weight: 700; color: var(--muted); }
.word-sentence { margin-top: 4px; font-weight: 700; }
.word-sentence small { display: block; font-weight: 400; color: var(--muted); }
.ep-panels { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .ep-panels { grid-template-columns: 1fr 1fr; gap: 20px; } .ep-panels .activity, .ep-panels .tip { grid-column: 1 / -1; } }
.ep-panels h2 { font-size: 21px; margin-bottom: 10px; }
.frame-en { font-size: 30px; font-weight: 900; color: var(--purple-ink); line-height: 1.3; }
.frame-cn { font-size: 18px; font-weight: 700; margin-top: 2px; }
.frame .muted { margin-top: 10px; font-size: 14.5px; }
.blank { display: inline-block; min-width: 2.2em; border-bottom: 3px solid var(--orange); color: transparent; line-height: 1; vertical-align: baseline; }
.ending { margin-top: 12px; font-weight: 700; }
.activity { background: linear-gradient(135deg, #FFFFFF 0%, #FFF3E4 100%); }
.activity-steps { margin: 4px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.activity-steps li::marker { color: var(--orange-ink); font-weight: 800; }
.activity .en, .tip .en { margin-top: 12px; font-size: 15px; }
.tip p + p { margin-top: 10px; }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.nav-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; background: var(--card); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-height: 74px; }
.nav-card[rel="next"] { grid-template-columns: 1fr 96px; text-align: right; }
.nav-card[rel="next"] .nav-cover { order: 2; }
.nav-card:hover { color: var(--purple-ink); }
.nav-cover { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sky); }
.nav-cover img { width: 100%; height: 100%; object-fit: cover; }
.nav-text { display: grid; line-height: 1.35; font-size: 14.5px; }
.nav-text small { color: var(--muted); font-weight: 700; }
.nav-empty { background: transparent; box-shadow: none; }
@media (max-width: 559px) { .nav-card, .nav-card[rel="next"] { grid-template-columns: 1fr; } .nav-cover { display: none; } }

/* ---------- footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 30px 0 42px; color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--round); font-size: 17px; color: var(--ink); }
.foot-brand img { border-radius: 50%; width: 40px; height: 40px; }
.foot-links { margin-top: 10px; }
.foot-links a { color: var(--ink); }
.foot-note { margin-top: 6px; }

/* ---------- watch page (episodes newer than the last build) */
.watch [data-w-goal] { margin-top: 18px; }
.watch [data-w-activity] { margin-top: 24px; }
.watch .ep-actions { margin-top: 24px; }
[hidden] { display: none !important; }
