/* CINEZABAN phrase library — one useful expression, many real movie scenes. */
.mj-phrases,
.mj-phrase-detail {
  --phrase-gold: #ffc85a;
  --phrase-gold-rgb: 255, 200, 90;
  --phrase-ink: #070a10;
  width: var(--mj-page);
  margin: 0 auto;
  padding-top: calc(var(--mj-header) + 38px);
  padding-bottom: 90px;
}

.mj-phrases button,
.mj-phrase-detail button { border: 0; font: inherit; }

.mj-phrases-hero {
  min-height: 460px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  overflow: hidden;
  padding: clamp(46px, 6vw, 88px) clamp(30px, 5vw, 80px) 116px;
  border: 1px solid rgba(var(--phrase-gold-rgb), .2);
  border-radius: 36px;
  background:
    radial-gradient(circle at 81% 28%, rgba(var(--phrase-gold-rgb), .17), transparent 25rem),
    linear-gradient(125deg, rgba(255,255,255,.045), transparent 42%),
    #0a0f18;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.mj-phrases-hero::before {
  content: "“";
  position: absolute;
  inset: -110px auto auto 25px;
  color: rgba(var(--phrase-gold-rgb), .06);
  font: 900 520px/1 Georgia, serif;
  pointer-events: none;
}

.mj-phrases-hero__copy { position: relative; z-index: 2; max-width: 720px; }
.mj-phrases-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--phrase-gold); font: 800 10px/1.5 "Segoe UI", sans-serif; letter-spacing: 2.4px; }
.mj-phrases-kicker i { width: 20px; height: 1px; background: currentColor; box-shadow: 0 0 14px currentColor; }
.mj-phrases-hero h1 { max-width: 690px; margin: 18px 0 14px; color: #fff; font-size: clamp(37px, 4.4vw, 72px); font-weight: 900; line-height: 1.16; letter-spacing: -2.5px; }
.mj-phrases-hero__copy > p { max-width: 650px; margin: 0; color: #aeb8c6; font-size: clamp(15px, 1.25vw, 19px); line-height: 2; }
.mj-phrases-hero__action { min-height: 50px; display: inline-flex; align-items: center; gap: 20px; margin-top: 28px; padding: 0 20px; border-radius: 14px; background: var(--phrase-gold); color: var(--phrase-ink) !important; font-weight: 900; box-shadow: 0 14px 36px rgba(var(--phrase-gold-rgb), .18); transition: transform .2s ease, box-shadow .2s ease; }
.mj-phrases-hero__action:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(var(--phrase-gold-rgb), .27); }
.mj-phrases-hero__action span { font-size: 20px; }

.mj-phrases-hero__visual { position: relative; z-index: 2; min-height: 260px; }
.mj-phrases-hero__play { position: absolute; top: 50%; left: 50%; width: 126px; height: 126px; display: grid; place-items: center; padding: 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 39px; background: linear-gradient(145deg,#ffd36a 0%,#ffb343 52%,#ff765f 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transform: translate(-50%, -50%) rotate(-5deg); filter: drop-shadow(0 24px 35px rgba(0,0,0,.42)); }
.mj-phrases-hero__play img { width: 100%; height: 100%; display: block; }
.mj-phrases-hero__play::before,
.mj-phrases-hero__play::after { content: ""; position: absolute; inset: -23px; z-index: -1; border: 1px solid rgba(var(--phrase-gold-rgb), .18); border-radius: 50%; }
.mj-phrases-hero__play::after { inset: -50px; opacity: .55; }
.mj-phrases-hero__bubble { position: absolute; z-index: 2; direction: ltr; padding: 11px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px 17px 5px 17px; background: rgba(19,27,39,.88); color: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.28); backdrop-filter: blur(12px); font: 750 16px/1.3 "Segoe UI", sans-serif; }
.mj-phrases-hero__bubble::after { content: ""; position: absolute; bottom: -7px; right: 12px; width: 13px; height: 13px; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); background: #141c28; transform: rotate(45deg); }
.mj-phrases-hero__bubble--one { top: 8px; right: 3%; transform: rotate(2deg); }
.mj-phrases-hero__bubble--two { top: 46%; left: 0; color: var(--phrase-gold); transform: rotate(-4deg); }
.mj-phrases-hero__bubble--three { right: 10%; bottom: 0; transform: rotate(4deg); }

.mj-phrases-stats { position: absolute; z-index: 3; inset: auto clamp(30px, 5vw, 80px) 25px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.08); }
.mj-phrases-stats > span { display: flex; align-items: baseline; gap: 10px; padding: 19px 0 0; }
.mj-phrases-stats strong { color: #fff; font-size: 24px; }
.mj-phrases-stats small { color: #8895a6; font-size: 11px; }

.mj-phrases-library { padding-top: 72px; }
.mj-phrases-quality-note { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; padding: 14px 16px; border: 1px solid rgba(var(--phrase-gold-rgb), .24); border-radius: 17px; background: linear-gradient(110deg, rgba(var(--phrase-gold-rgb), .1), rgba(var(--mj-accent-rgb), .045)); }
.mj-phrases-quality-note > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--phrase-gold); color: var(--phrase-ink); font-weight: 950; box-shadow: 0 8px 22px rgba(var(--phrase-gold-rgb), .18); }
.mj-phrases-quality-note strong,
.mj-phrases-quality-note small { display: block; }
.mj-phrases-quality-note strong { color: var(--mj-text); font-size: 12px; }
.mj-phrases-quality-note small { margin-top: 3px; color: var(--mj-muted); font-size: 10px; line-height: 1.75; }
.mj-phrases-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.mj-phrases-section-head > div > span { color: var(--phrase-gold); font: 800 9px/1.4 "Segoe UI", sans-serif; letter-spacing: 2.2px; }
.mj-phrases-section-head h2 { margin: 8px 0 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.35; letter-spacing: -.8px; }
.mj-phrases-section-head > p { max-width: 560px; margin: 0; color: var(--mj-muted); font-size: 13px; line-height: 1.95; }

.mj-phrases-toolbar { display: grid; grid-template-columns: minmax(280px, 650px) auto; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--mj-line); border-radius: 20px; background: var(--mj-surface); box-shadow: 0 16px 45px rgba(0,0,0,.12); }
.mj-phrases-search { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--mj-line); border-radius: 14px; background: var(--mj-bg-soft); transition: border-color .2s, box-shadow .2s; }
.mj-phrases-search:focus-within { border-color: rgba(var(--phrase-gold-rgb), .45); box-shadow: 0 0 0 4px rgba(var(--phrase-gold-rgb), .08); }
.mj-phrases-search svg { width: 20px; height: 20px; color: var(--mj-muted); }
.mj-phrases-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--mj-text); font-size: 13px; }
.mj-phrases-search input::placeholder { color: var(--mj-muted); }
.mj-phrases-search kbd { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--mj-line); border-radius: 7px; color: var(--mj-muted); background: var(--mj-surface); font: 11px/1 sans-serif; }
.mj-phrases-result { min-width: 100px; text-align: center; }
.mj-phrases-result b { font-size: 20px; }
.mj-phrases-result small { color: var(--mj-muted); }

.mj-phrases-filter-block { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 17px; }
.mj-phrases-filter-label { color: var(--mj-muted); font-size: 11px; font-weight: 800; }
.mj-phrases-chips { min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.mj-phrases-chips::-webkit-scrollbar { display: none; }
.mj-phrases-chips button,
.mj-phrases-levels button { min-height: 40px; flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--mj-line); border-radius: 12px; background: var(--mj-surface); color: var(--mj-muted); cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; transition: .18s ease; }
.mj-phrases-chips button { display: inline-flex; align-items: center; gap: 8px; }
.mj-phrases-chips button i { width: 5px; height: 5px; border-radius: 50%; background: var(--phrase-gold); opacity: .62; }
.mj-phrases-chips button:hover,
.mj-phrases-levels button:hover { border-color: rgba(var(--phrase-gold-rgb), .32); color: var(--mj-text); }
.mj-phrases-chips button.is-active,
.mj-phrases-levels button.is-active { border-color: var(--phrase-gold); background: rgba(var(--phrase-gold-rgb), .12); color: var(--phrase-gold); box-shadow: inset 0 0 0 1px rgba(var(--phrase-gold-rgb), .06); }
.mj-phrases-levels { display: flex; flex-wrap: wrap; gap: 7px; }
.mj-phrases-levels button { min-width: 48px; font: 800 11px/1 "Segoe UI", sans-serif; }
.mj-phrases-levels button:first-child { font-family: var(--mj-font-fa); }

.mj-phrase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.mj-phrase-card { min-width: 0; overflow: hidden; border: 1px solid var(--mj-line); border-radius: 22px; background: var(--mj-surface); box-shadow: 0 15px 42px rgba(0,0,0,.12); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.mj-phrase-card:hover { transform: translateY(-6px); border-color: rgba(var(--phrase-gold-rgb), .32); box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.mj-phrase-card[hidden] { display: none !important; }
.mj-phrase-card > a { display: block; height: 100%; }
.mj-phrase-card__media { position: relative; aspect-ratio: 2.1/1; overflow: hidden; background: linear-gradient(135deg, #253044, #0b1018); }
.mj-phrase-card__media::before { content: "“"; position: absolute; z-index: 1; inset: -25px auto auto 10px; color: rgba(255,255,255,.12); font: 900 140px/1 Georgia, serif; }
.mj-phrase-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; filter: saturate(.72); transition: transform .5s ease, filter .5s ease; }
.mj-phrase-card:hover img { transform: scale(1.055); filter: saturate(.95); }
.mj-phrase-card__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,16,.18), rgba(7,10,16,.78)); }
.mj-phrase-card__play { position: absolute; z-index: 2; inset: 50% 50% auto auto; width: 46px; height: 46px; display: grid; place-items: center; transform: translate(50%, -50%); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(7,10,16,.5); color: #fff; backdrop-filter: blur(8px); transition: .2s ease; }
.mj-phrase-card:hover .mj-phrase-card__play { border-color: var(--phrase-gold); background: var(--phrase-gold); color: var(--phrase-ink); transform: translate(50%, -50%) scale(1.08); }
.mj-phrase-card__play svg { width: 22px; height: 22px; }
.mj-phrase-card__play svg path { fill: currentColor; stroke: none; }
.mj-phrase-card__level { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 8px; background: rgba(7,10,16,.65); color: #fff; font: 800 9px/1 "Segoe UI", sans-serif; backdrop-filter: blur(8px); }
.mj-phrase-card__state { position: absolute; z-index: 2; bottom: 10px; left: 10px; padding: 5px 9px; border-radius: 8px; background: rgba(var(--mj-accent-rgb), .82); color: #06120d; font-size: 8px; font-weight: 900; }
.mj-phrase-card__state.is-mastered { background: var(--phrase-gold); color: var(--phrase-ink); }
.mj-phrase-card__body { padding: 17px 18px 16px; }
.mj-phrase-card__quality { display: inline-flex; align-items: center; margin-bottom: 8px; padding: 5px 8px; border: 1px solid rgba(var(--phrase-gold-rgb), .26); border-radius: 8px; background: rgba(var(--phrase-gold-rgb), .09); color: var(--phrase-gold); font-size: 8px; font-weight: 900; }
.mj-phrase-card__category { display: flex; align-items: center; gap: 6px; color: var(--mj-muted); font-size: 9px; font-weight: 800; }
.mj-phrase-card__category i { width: 4px; height: 4px; border-radius: 50%; background: var(--phrase-gold); }
.mj-phrase-card h3 { overflow: hidden; margin: 9px 0 4px; color: var(--mj-text); font: 800 clamp(19px, 1.55vw, 24px)/1.3 "Segoe UI", sans-serif; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.mj-phrase-card__body > p { min-height: 27px; overflow: hidden; margin: 0; color: var(--mj-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mj-phrase-card__reason { display: block; overflow: hidden; margin-top: 7px; color: color-mix(in srgb, var(--mj-muted) 85%, var(--phrase-gold)); font-size: 8px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.mj-phrase-card footer { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mj-line); color: var(--mj-muted); font-size: 9px; }
.mj-phrase-card footer b { color: var(--mj-text); font-size: 11px; }
.mj-phrase-card footer em { margin-inline-start: auto; color: var(--phrase-gold); font-style: normal; font-weight: 900; }
.mj-phrases-empty { display: grid; place-items: center; margin-top: 36px; padding: 55px 20px; border: 1px dashed var(--mj-line-strong); border-radius: 22px; text-align: center; }
.mj-phrases-empty[hidden] { display: none; }
.mj-phrases-empty > span { color: var(--phrase-gold); font: 900 50px/1 Georgia, serif; }
.mj-phrases-empty strong { font-size: 17px; }
.mj-phrases-empty p { margin: 5px 0 15px; color: var(--mj-muted); font-size: 12px; }
.mj-phrases-empty button { padding: 9px 16px; border: 1px solid rgba(var(--phrase-gold-rgb), .28); border-radius: 10px; background: rgba(var(--phrase-gold-rgb), .1); color: var(--phrase-gold); cursor: pointer; font-weight: 800; }

/* Compact discovery rail on the learning dashboard. */
.ml-phrase-spotlight { position: relative; }
.ml-phrase-spotlight__rail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.ml-phrase-spotlight__rail::-webkit-scrollbar { display: none; }
.ml-phrase-spotlight__card { width: 100%; min-width: 0; height: 100%; overflow: hidden; border: 1px solid var(--mj-line); border-radius: 19px; background: var(--mj-surface); transition: transform .22s ease, border-color .22s ease; }
.ml-phrase-spotlight__card:hover { transform: translateY(-4px); border-color: rgba(255,200,90,.35); }
.ml-phrase-spotlight__card > a { height: 100%; display: block; padding: 10px; }
.ml-phrase-spotlight__card > a > div { position: relative; overflow: hidden; aspect-ratio: 1.8/1; border-radius: 12px; background: linear-gradient(135deg, #263247, #0b1018); }
.ml-phrase-spotlight__card img { width: 100%; height: 100%; object-fit: cover; opacity: .67; }
.ml-phrase-spotlight__card > a > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(0,0,0,.65)); }
.ml-phrase-spotlight__card > a > div > span { position: absolute; z-index: 2; inset: 50% 50% auto auto; width: 38px; height: 38px; display: grid; place-items: center; transform: translate(50%,-50%); border-radius: 50%; background: #ffc85a; color: #070a10; }
.ml-phrase-spotlight__card svg { width: 19px; height: 19px; }
.ml-phrase-spotlight__card svg path { fill: currentColor; stroke: none; }
.ml-phrase-spotlight__card small { display: block; margin-top: 10px; color: var(--mj-muted); font-size: 8px; }
.ml-phrase-spotlight__card strong { display: block; overflow: hidden; margin-top: 5px; color: var(--mj-text); font: 800 17px/1.4 "Segoe UI",sans-serif; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ml-phrase-spotlight__card p { overflow: hidden; margin: 3px 0 9px; color: var(--mj-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ml-phrase-spotlight__card footer { padding-top: 8px; border-top: 1px solid var(--mj-line); color: var(--mj-muted); font-size: 8px; }
.ml-phrase-spotlight__card footer b { color: #ffc85a; font-size: 10px; }
html[data-theme="light"] .ml-phrase-spotlight__card footer b { color: #7a4c00; }

/* Phrase detail */
.mj-phrase-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 5px 0 26px; color: var(--mj-muted); font-size: 11px; }
.mj-phrase-breadcrumb a:hover { color: var(--phrase-gold); }
.mj-phrase-breadcrumb span { opacity: .5; }
.mj-phrase-breadcrumb b { min-width: 0; overflow: hidden; color: var(--mj-text); font: 700 11px/1.4 "Segoe UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.mj-phrase-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 35px; padding-bottom: 30px; border-bottom: 1px solid var(--mj-line); }
.mj-phrase-intro__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.mj-phrase-intro__labels span { padding: 6px 10px; border: 1px solid var(--mj-line); border-radius: 8px; color: var(--mj-muted); background: var(--mj-surface); font-size: 9px; font-weight: 800; }
.mj-phrase-intro__labels .mj-phrase-level { border-color: rgba(var(--phrase-gold-rgb), .3); color: var(--phrase-gold); font-family: "Segoe UI", sans-serif; }
.mj-phrase-quality { display: inline-flex; margin-top: 13px; padding: 6px 10px; border: 1px solid rgba(var(--phrase-gold-rgb), .28); border-radius: 9px; background: rgba(var(--phrase-gold-rgb), .1); color: var(--phrase-gold); font-size: 9px; font-weight: 900; }
.mj-phrase-intro h1 { margin: 16px 0 3px; color: var(--mj-text); font: 850 clamp(44px, 5.3vw, 82px)/1.04 "Segoe UI", sans-serif; letter-spacing: -3.2px; text-align: left; }
.mj-phrase-ipa { display: block; color: var(--phrase-gold); font: 500 13px/1.5 "Segoe UI", sans-serif; text-align: left; opacity: .82; }
.mj-phrase-meaning { margin: 13px 0 0; color: var(--mj-muted); font-size: 16px; }
.mj-phrase-quality-reason { display: block; margin-top: 8px; color: var(--mj-muted); font-size: 10px; }
.mj-phrase-intro__stats { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.mj-phrase-intro__stats > span { min-width: 112px; padding: 14px 16px; border: 1px solid var(--mj-line); border-radius: 14px; background: var(--mj-surface); text-align: center; }
.mj-phrase-intro__stats strong,
.mj-phrase-intro__stats small { display: block; }
.mj-phrase-intro__stats strong { color: var(--phrase-gold); font-size: 18px; }
.mj-phrase-intro__stats small { color: var(--mj-muted); font-size: 8px; }

.mj-phrase-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .72fr); align-items: start; gap: 24px; margin-top: 35px; }
.mj-phrase-player-shell { position: relative; overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--mj-line); border-radius: 24px; background: #020305; box-shadow: 0 25px 70px rgba(0,0,0,.34); }
.mj-phrase-player-shell video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.mj-phrase-player-start { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; background: radial-gradient(circle at center, rgba(7,10,16,.38), rgba(7,10,16,.82)); color: #fff; cursor: pointer; transition: opacity .2s, visibility .2s; }
.mj-phrase-player-start.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.mj-phrase-player-start > span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--phrase-gold); color: var(--phrase-ink); box-shadow: 0 15px 45px rgba(var(--phrase-gold-rgb), .3); }
.mj-phrase-player-start svg { width: 32px; height: 32px; }
.mj-phrase-player-start svg path { fill: currentColor; stroke: none; }
.mj-phrase-player-start b { margin-top: 16px; font-size: 14px; }
.mj-phrase-player-start small { margin-top: 3px; color: #b8c0cb; font-size: 9px; }
.mj-phrase-caption { position: absolute; z-index: 4; inset: auto 8% 58px; display: grid; justify-items: center; gap: 5px; pointer-events: none; text-align: center; transition: opacity .2s; }
.mj-phrase-player-shell:not(.has-started) .mj-phrase-caption { opacity: 0; }
.mj-phrase-caption strong { max-width: 90%; padding: 5px 12px; border-radius: 8px; background: rgba(0,0,0,.72); color: #fff; font: 800 clamp(16px, 1.6vw, 25px)/1.55 "Segoe UI", sans-serif; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mj-phrase-caption span { max-width: 90%; padding: 4px 10px; border-radius: 7px; background: rgba(0,0,0,.64); color: #ffe1a1; font-size: clamp(11px, 1vw, 14px); }
.mj-phrase-player-badge { position: absolute; z-index: 4; top: 16px; right: 16px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(0,0,0,.48); color: #fff; font: 800 8px/1 "Segoe UI", sans-serif; letter-spacing: 1.2px; backdrop-filter: blur(9px); }
.mj-phrase-player-badge i { width: 6px; height: 6px; border-radius: 50%; background: #ff4f61; box-shadow: 0 0 8px #ff4f61; }
.mj-phrase-now { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 3px 12px; }
.mj-phrase-now div span,
.mj-phrase-now div strong { display: block; }
.mj-phrase-now div span { color: var(--mj-muted); font-size: 9px; }
.mj-phrase-now div strong { margin-top: 2px; font-size: 12px; }
.mj-phrase-counter { flex: 0 0 auto; color: var(--mj-muted); font-size: 10px; }
.mj-phrase-counter b { color: var(--mj-text); font-size: 13px; }
.mj-phrase-controls { min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--mj-line); border-radius: 17px; background: var(--mj-surface); }
.mj-phrase-controls > button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border-radius: 11px; background: var(--mj-surface-2); color: var(--mj-muted); cursor: pointer; font-size: 10px; font-weight: 800; transition: .18s ease; }
.mj-phrase-controls > button:hover { color: var(--mj-text); background: rgba(var(--phrase-gold-rgb), .09); }
.mj-phrase-controls > button:disabled { opacity: .38; cursor: not-allowed; }
.mj-phrase-controls > button svg { width: 17px; height: 17px; }
.mj-phrase-controls > .mj-phrase-controls__primary { background: var(--phrase-gold); color: var(--phrase-ink); }
.mj-phrase-controls > .mj-phrase-controls__primary:hover { background: #ffd477; color: var(--phrase-ink); }
.mj-phrase-autoplay { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; padding: 0 10px; color: var(--mj-muted); cursor: pointer; font-size: 9px; }
.mj-phrase-autoplay input { position: absolute; opacity: 0; pointer-events: none; }
.mj-phrase-autoplay > span { width: 31px; height: 18px; position: relative; border-radius: 20px; background: var(--mj-line-strong); transition: .2s; }
.mj-phrase-autoplay > span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mj-phrase-autoplay input:checked + span { background: var(--phrase-gold); }
.mj-phrase-autoplay input:checked + span::after { transform: translateX(-13px); background: var(--phrase-ink); }

.mj-phrase-teaching { position: sticky; top: calc(var(--mj-header) + 20px); overflow: hidden; padding: 24px; border: 1px solid var(--mj-line); border-radius: 24px; background: linear-gradient(145deg, rgba(var(--phrase-gold-rgb), .06), transparent 45%), var(--mj-surface); box-shadow: 0 20px 55px rgba(0,0,0,.15); }
.mj-phrase-teaching::before { content: "“"; position: absolute; top: -34px; left: 8px; color: rgba(var(--phrase-gold-rgb), .08); font: 900 150px/1 Georgia, serif; }
.mj-phrase-teaching header { position: relative; padding-bottom: 17px; border-bottom: 1px solid var(--mj-line); }
.mj-phrase-teaching header span { color: var(--phrase-gold); font: 800 8px/1 "Segoe UI", sans-serif; letter-spacing: 2px; }
.mj-phrase-teaching header h2 { margin: 8px 0 0; font-size: 18px; line-height: 1.55; }
.mj-phrase-teaching__meaning,
.mj-phrase-teaching__note { margin-top: 17px; }
.mj-phrase-teaching__meaning small,
.mj-phrase-teaching__meaning strong,
.mj-phrase-teaching__note small { display: block; }
.mj-phrase-teaching__meaning small,
.mj-phrase-teaching__note small { color: var(--mj-muted); font-size: 8px; font-weight: 800; }
.mj-phrase-teaching__meaning strong { margin-top: 4px; color: var(--phrase-gold); font-size: 14px; }
.mj-phrase-teaching__note p { margin: 5px 0 0; color: var(--mj-muted); font-size: 11px; line-height: 1.95; }
.mj-phrase-learning-loop { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; margin-top: 22px; padding: 14px 10px; border: 1px solid var(--mj-line); border-radius: 14px; background: var(--mj-bg-soft); }
.mj-phrase-learning-loop span { display: grid; justify-items: center; gap: 4px; }
.mj-phrase-learning-loop b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--phrase-gold-rgb), .12); color: var(--phrase-gold); font-size: 10px; }
.mj-phrase-learning-loop small { color: var(--mj-muted); font-size: 7px; white-space: nowrap; }
.mj-phrase-learning-loop i { height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--phrase-gold-rgb), .35), transparent); }
.mj-phrase-mastered { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; border: 1px solid rgba(var(--phrase-gold-rgb), .3) !important; border-radius: 13px; background: rgba(var(--phrase-gold-rgb), .09); color: var(--phrase-gold); cursor: pointer; font-size: 11px; font-weight: 900; transition: .2s ease; }
.mj-phrase-mastered:hover,
.mj-phrase-mastered.is-mastered { background: var(--phrase-gold); color: var(--phrase-ink); }
.mj-phrase-mastered svg { width: 18px; height: 18px; }
.mj-phrase-save-status { min-height: 17px; margin: 8px 0 0; color: var(--mj-muted); font-size: 8px; text-align: center; }
.mj-phrase-save-status.is-error { color: var(--mj-danger); }

.mj-phrase-scenes { padding-top: 65px; }
.mj-phrase-scene-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mj-phrase-scene { min-width: 0; min-height: 132px; position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) 26px; align-items: center; gap: 15px; padding: 10px; overflow: hidden; border: 1px solid var(--mj-line) !important; border-radius: 18px; background: var(--mj-surface); color: var(--mj-text); cursor: pointer; text-align: right; transition: transform .2s ease, border-color .2s, background .2s; }
.mj-phrase-scene:hover { transform: translateY(-2px); border-color: rgba(var(--phrase-gold-rgb), .3) !important; }
.mj-phrase-scene.is-active { border-color: var(--phrase-gold) !important; background: linear-gradient(100deg, rgba(var(--phrase-gold-rgb), .09), transparent 60%), var(--mj-surface); }
.mj-phrase-scene__poster { height: 108px; position: relative; overflow: hidden; border-radius: 12px; background: #0a0d13; }
.mj-phrase-scene__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.mj-phrase-scene__poster > i { position: absolute; inset: 50% 50% auto auto; width: 38px; height: 38px; display: grid; place-items: center; transform: translate(50%, -50%); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; }
.mj-phrase-scene.is-active .mj-phrase-scene__poster > i { background: var(--phrase-gold); color: var(--phrase-ink); }
.mj-phrase-scene__poster svg { width: 19px; height: 19px; }
.mj-phrase-scene__poster svg path { fill: currentColor; stroke: none; }
.mj-phrase-scene__poster small { position: absolute; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 7px; }
.mj-phrase-scene__body { min-width: 0; }
.mj-phrase-scene__body small,
.mj-phrase-scene__body strong,
.mj-phrase-scene__body em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mj-phrase-scene__body small { color: var(--mj-muted); font-size: 8px; }
.mj-phrase-scene__body strong { margin-top: 7px; color: var(--mj-text); font: 750 14px/1.45 "Segoe UI", sans-serif; text-align: left; }
.mj-phrase-scene__body em { margin-top: 4px; color: var(--mj-muted); font-size: 10px; font-style: normal; }
.mj-phrase-scene__check { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--mj-line); border-radius: 50%; color: transparent; font-size: 10px; }
.mj-phrase-scene.is-active .mj-phrase-scene__check { border-color: var(--phrase-gold); background: var(--phrase-gold); color: var(--phrase-ink); }
.mj-phrase-context { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 25px; margin-top: 55px; padding: 24px 28px; border: 1px solid rgba(var(--phrase-gold-rgb), .2); border-radius: 20px; background: rgba(var(--phrase-gold-rgb), .055); }
.mj-phrase-context strong { color: var(--phrase-gold); font-size: 12px; }
.mj-phrase-context p { margin: 0; color: var(--mj-muted); font-size: 11px; line-height: 1.9; }
.mj-phrase-context a { color: var(--phrase-gold); font-size: 10px; font-weight: 900; white-space: nowrap; }

html[data-theme="light"] .mj-phrases-hero { border-color: rgba(157,103,15,.18); background: radial-gradient(circle at 82% 30%, rgba(255,196,75,.24), transparent 24rem), linear-gradient(130deg, #273247, #111827); }
html[data-theme="light"] .mj-phrase-card,
html[data-theme="light"] .mj-phrases-toolbar,
html[data-theme="light"] .mj-phrase-teaching,
html[data-theme="light"] .mj-phrase-scene { box-shadow: 0 16px 44px rgba(28,47,68,.08); }
html[data-theme="light"] .mj-phrases-chips button.is-active,
html[data-theme="light"] .mj-phrases-levels button.is-active { background: #fff7e6; color: #8b5800; }
html[data-theme="light"] .mj-phrase-player-shell { border-color: rgba(18,35,56,.18); }
html[data-theme="light"] .mj-phrase-mastered { color: #8b5800; }
html[data-theme="light"] .mj-phrase-mastered.is-mastered { color: #211502; }

@media (max-width: 1240px) {
  .mj-phrase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mj-phrase-workspace { grid-template-columns: minmax(0, 1.5fr) minmax(285px, .75fr); }
  .mj-phrase-scene { grid-template-columns: 130px minmax(0, 1fr) 24px; }
}

@media (max-width: 980px) {
  .mj-phrases,
  .mj-phrase-detail { padding-top: calc(var(--mj-header) + 24px); }
  .mj-phrases-hero { grid-template-columns: 1fr; min-height: 560px; padding-bottom: 105px; }
  .mj-phrases-hero__copy { max-width: 650px; }
  .mj-phrases-hero__visual { position: absolute; inset: auto auto 72px 5%; width: 40%; min-height: 220px; opacity: .82; }
  .mj-phrase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mj-phrase-intro { grid-template-columns: 1fr; align-items: start; }
  .mj-phrase-intro__stats { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .mj-phrase-workspace { grid-template-columns: 1fr; }
  .mj-phrase-teaching { position: relative; top: auto; }
  .mj-phrase-scene-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .mj-phrases,
  .mj-phrase-detail { width: calc(100vw - 28px); padding-top: calc(var(--mj-header) + 12px); padding-bottom: 105px; }
  .mj-phrases-hero { min-height: 510px; gap: 0; padding: 36px 23px 97px; border-radius: 24px; }
  .mj-phrases-hero h1 { margin-top: 14px; font-size: 37px; letter-spacing: -1.5px; }
  .mj-phrases-hero__copy > p { font-size: 13px; line-height: 1.9; }
  .mj-phrases-hero__action { min-height: 45px; margin-top: 21px; padding: 0 15px; font-size: 11px; }
  .mj-phrases-hero__visual { display: none; }
  .mj-phrases-stats { inset-inline: 22px; bottom: 17px; }
  .mj-phrases-stats > span { display: block; padding-top: 12px; }
  .mj-phrases-stats strong,
  .mj-phrases-stats small { display: block; }
  .mj-phrases-stats strong { font-size: 18px; }
  .mj-phrases-stats small { font-size: 7px; }
  .mj-phrases-library { padding-top: 47px; }
  .mj-phrases-section-head { display: block; margin-bottom: 20px; }
  .mj-phrases-section-head > p { margin-top: 9px; font-size: 11px; }
  .mj-phrases-toolbar { grid-template-columns: 1fr auto; padding: 9px; border-radius: 16px; }
  .mj-phrases-search { min-height: 46px; padding: 0 11px; }
  .mj-phrases-search kbd { display: none; }
  .mj-phrases-result { min-width: 65px; }
  .mj-phrases-result b { font-size: 16px; }
  .mj-phrases-result small { font-size: 8px; }
  .mj-phrases-filter-block { display: block; }
  .mj-phrases-filter-label { display: block; margin-bottom: 7px; }
  .mj-phrases-levels { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .mj-phrase-grid { gap: 12px; margin-top: 25px; }
  .mj-phrase-card { border-radius: 17px; }
  .mj-phrase-card__media { aspect-ratio: 1.75/1; }
  .mj-phrase-card__body { padding: 13px 12px; }
  .mj-phrase-card h3 { font-size: 17px; }
  .mj-phrase-card__body > p { font-size: 9px; }
  .mj-phrase-card footer { gap: 7px; font-size: 7px; }
  .mj-phrase-card footer em { display: none; }
  .mj-phrase-card__play { width: 38px; height: 38px; }
  .mj-phrase-breadcrumb { margin-bottom: 18px; }
  .mj-phrase-intro { gap: 22px; padding-bottom: 22px; }
  .mj-phrase-intro h1 { margin-top: 13px; font-size: 44px; letter-spacing: -2px; }
  .mj-phrase-meaning { margin-top: 9px; font-size: 13px; }
  .mj-phrase-intro__stats { gap: 6px; }
  .mj-phrase-intro__stats > span { min-width: 0; padding: 10px 6px; }
  .mj-phrase-intro__stats strong { font-size: 14px; }
  .mj-phrase-workspace { margin-top: 22px; }
  .mj-phrase-player-shell { border-radius: 17px; }
  .mj-phrase-player-start > span { width: 55px; height: 55px; }
  .mj-phrase-player-start b { margin-top: 10px; font-size: 11px; }
  .mj-phrase-caption { inset-inline: 3%; bottom: 48px; }
  .mj-phrase-caption strong { font-size: 14px; }
  .mj-phrase-caption span { font-size: 9px; }
  .mj-phrase-controls { display: grid; grid-template-columns: repeat(3, 1fr); height: auto; }
  .mj-phrase-controls > button { padding-inline: 6px; }
  .mj-phrase-controls > button span { font-size: 8px; }
  .mj-phrase-autoplay { grid-column: 1/-1; min-height: 36px; justify-content: center; margin: 0; }
  .mj-phrase-teaching { padding: 20px; border-radius: 19px; }
  .mj-phrase-scenes { padding-top: 46px; }
  .mj-phrase-scene { min-height: 104px; grid-template-columns: 112px minmax(0, 1fr) 20px; gap: 10px; border-radius: 14px; }
  .mj-phrase-scene__poster { height: 84px; }
  .mj-phrase-scene__body strong { font-size: 11px; }
  .mj-phrase-context { grid-template-columns: 1fr; gap: 8px; margin-top: 38px; padding: 19px; }
}

@media (max-width: 430px) {
  .mj-phrase-grid { grid-template-columns: 1fr; }
  .mj-phrase-card__media { aspect-ratio: 2.25/1; }
  .mj-phrase-scene { grid-template-columns: 92px minmax(0, 1fr); }
  .mj-phrase-scene__poster { height: 74px; }
  .mj-phrase-scene__check { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mj-phrase-card,
  .mj-phrase-card img,
  .mj-phrases-hero__action,
  .mj-phrase-scene { transition: none !important; }
}
.mj-phrase-now__stage{display:grid;justify-items:center;gap:3px;padding:7px 10px;border:1px solid rgba(var(--mj-accent-rgb),.16);border-radius:10px;background:rgba(var(--mj-accent-rgb),.055)}.mj-phrase-now__stage b{direction:ltr;color:var(--mj-accent);font-size:9px}.mj-phrase-now__stage small{color:var(--mj-muted);font-size:7px;white-space:nowrap}
