/* ------------------------------------------------------------------
   Bilingual Mix — hero demo player
   Full-length practice track: transcripts follow the audio, the wave
   is a seek bar, volume + MP3 download included.
   ------------------------------------------------------------------ */

/* wrapper so the caption can sit under the card inside the hero grid */
.lc-wrap { min-width: 0; }

.listen-card {
  --lc-cream: #f7f3e8;
  --lc-gold: #f1dfa6;
  --lc-soft: #a4b49f;
  --lc-line: rgba(247, 243, 232, .14);
  --p: 0%;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: 0;
  padding: 24px 26px 20px;
  transition: box-shadow .5s ease, transform .5s ease;
  user-select: none;
  -webkit-user-select: none;
}
.listen-card > * { position: relative; z-index: 1; }
.listen-card audio { display: none; }

/* slow drifting light inside the card */
.listen-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 0;
  pointer-events: none;
  border-radius: 40%;
  background:
    radial-gradient(38% 40% at 20% 16%, rgba(241, 223, 166, .13), transparent 68%),
    radial-gradient(36% 40% at 84% 80%, rgba(164, 180, 159, .18), transparent 70%);
  animation: lcDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.listen-card::after { pointer-events: none; animation: lcHalo 12s ease-in-out infinite alternate; }
@keyframes lcHalo {
  from { transform: scale(1); }
  to   { transform: scale(1.07) translateY(3px); }
}
@keyframes lcDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* ---------------- top bar ---------------- */
.listen-card .listen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, .6);
}
.listen-card .listen-top > span:first-child { display: inline-flex; align-items: center; }

/* ---------------- title / meta ---------------- */
.listen-card .lc-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: nowrap;
  margin-top: 13px;
}
.listen-card .lc-meta strong { flex: none; white-space: nowrap; }
.listen-card .lc-dur-badge { flex: none; }
.listen-card #lcMeta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.listen-card .lc-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #fffdf3;
}
.listen-card .lc-meta span {
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(247, 243, 232, .55);
}
.listen-card .lc-meta .lc-dur-badge {
  padding: 2px 7px;
  border: 1px solid rgba(241, 223, 166, .4);
  border-radius: 99px;
  color: var(--lc-gold);
  font-variant-numeric: tabular-nums;
}

/* ---------------- transcript stage ---------------- */
.listen-card .lc-stage {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 13px;
  min-height: 150px;   /* fits the longest pair, so slides never jump */
  margin-top: 16px;
  padding-top: 2px;
}
.listen-card .lc-line { transition: opacity .35s ease; }
.listen-card.is-live .lc-line { opacity: .38; }
.listen-card.is-live .lc-line.is-active { opacity: 1; }

.listen-card .lc-tag {
  display: block;
  margin-bottom: 4px;
  color: #dbb16c;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.listen-card .lc-line[data-role="1"] .lc-tag { color: rgba(164, 180, 159, .95); }
.listen-card .lc-line.is-active .lc-tag { color: var(--lc-gold); }

.listen-card .hanzi {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  overflow: hidden;
  transition: color .3s ease;
}
.listen-card #lcFirst { font-size: 25px; max-height: 90px; }   /* 3 lines */
.listen-card #lcSecond { font-size: 21px; max-height: 51px; }  /* 2 lines */
.listen-card .hanzi.is-cn { letter-spacing: .03em; }

/* pair swap animation */
.listen-card .lc-stage.swap { animation: lcSwap .34s cubic-bezier(.22, .61, .36, 1); }
@keyframes lcSwap {
  from { opacity: .25; transform: translateY(6px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* word tokens */
.listen-card .hanzi .w {
  display: inline-block;
  white-space: pre-wrap;
  transition: color .28s ease, opacity .28s ease, text-shadow .28s ease;
}
.listen-card .hanzi .w.said { color: var(--lc-gold); opacity: 1; }
.listen-card .hanzi .w.now {
  color: #fffdf3;
  text-shadow: 0 0 20px rgba(241, 223, 166, .6), 0 0 6px rgba(241, 223, 166, .5);
}
.listen-card.is-live .hanzi .w { opacity: .42; }
.listen-card.is-live .hanzi .w.said,
.listen-card.is-live .hanzi .w.now { opacity: 1; }

/* ---------------- seek wave ---------------- */
.listen-card .wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  margin-top: 4px;
  cursor: pointer;
  touch-action: none;
}
.listen-card .wave:focus-visible { outline: 2px solid rgba(241, 223, 166, .6); outline-offset: 6px; border-radius: 4px; }
.listen-card .wave i {
  flex: 1 1 0;
  width: 2px;
  max-width: 3.5px;
  height: var(--bar, 10px);
  border-radius: 9px;
  background: rgba(247, 243, 232, .26);
  transform-origin: center;
  transition: height .45s cubic-bezier(.22, .61, .36, 1), background .25s ease;
  will-change: transform;
}
.listen-card .wave i.lit { background: var(--lc-gold); }
.listen-card .wave i.played { opacity: .95; }

.listen-card .wave-head {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: var(--p, 0%);
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(241, 223, 166, 0), rgba(241, 223, 166, .95), rgba(241, 223, 166, 0));
  box-shadow: 0 0 12px rgba(241, 223, 166, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.listen-card.is-live .wave-head, .listen-card .wave:hover .wave-head { opacity: 1; }

/* equaliser while playing */
.listen-card.is-playing .wave i {
  animation: lcEq .92s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -41ms);
}
@keyframes lcEq {
  from { transform: scaleY(.5); }
  to   { transform: scaleY(1.18); }
}
.listen-card:not(.is-playing) .wave i {
  animation: lcBreath 5.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -97ms);
}
@keyframes lcBreath {
  0%, 100% { transform: scaleY(.88); }
  50%      { transform: scaleY(1.02); }
}

/* ---------------- transport ---------------- */
.listen-card .lc-transport {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
}
.listen-card .play-disc {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lc-gold);
  color: var(--green, #294a3a);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
}
.listen-card .play-disc span { transform: translateX(1px); }
.listen-card.is-playing .play-disc span { transform: none; }
.listen-card:hover .play-disc { transform: scale(1.05); }
.listen-card.is-playing .play-disc { animation: lcPulse 1.9s ease-out infinite; }
@keyframes lcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(241, 223, 166, .42); }
  72%  { box-shadow: 0 0 0 14px rgba(241, 223, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 223, 166, 0); }
}

.listen-card .lc-time {
  flex: none;
  color: rgba(247, 243, 232, .78);
  font-size: 10.5px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.listen-card .lc-time b { color: #fffdf3; font-weight: 650; }
.listen-card .lc-time .lc-sep { opacity: .4; margin: 0 3px; }

.listen-card .lc-vol {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: rgba(247, 243, 232, .6);
}
.listen-card .lc-vol button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.listen-card .lc-vol button:hover { color: var(--lc-gold); }
.listen-card .lc-vol button svg { width: 15px; height: 15px; display: block; overflow: visible; }
.listen-card .lc-vol .spk { fill: currentColor; }
.listen-card .lc-vol .wv { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.listen-card .lc-vol .mx { display: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.listen-card .lc-vol button.is-muted .wv { display: none; }
.listen-card .lc-vol button.is-muted .mx { display: block; }
.listen-card .lc-vol button.is-low .w2 { display: none; }
.listen-card .lc-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 16px;
  margin: 0;
  background: none;
  cursor: pointer;
}
.listen-card .lc-vol input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 9px;
  background: linear-gradient(to right, var(--lc-gold) var(--v, 80%), rgba(247, 243, 232, .28) var(--v, 80%));
}
.listen-card .lc-vol input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 9px;
  background: rgba(247, 243, 232, .28);
}
.listen-card .lc-vol input[type="range"]::-moz-range-progress {
  height: 3px; border-radius: 9px; background: var(--lc-gold);
}
.listen-card .lc-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border: 0;
  border-radius: 50%;
  background: #fffdf3;
  box-shadow: 0 0 0 3px rgba(241, 223, 166, .18);
}
.listen-card .lc-vol input[type="range"]::-moz-range-thumb {
  width: 9px; height: 9px; border: 0; border-radius: 50%; background: #fffdf3;
}

.listen-card .lc-dl {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(241, 223, 166, .38);
  border-radius: 99px;
  color: var(--lc-gold);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.listen-card .lc-dl span { font-size: 11px; line-height: 1; }
.listen-card .lc-dl:hover { background: rgba(241, 223, 166, .14); border-color: rgba(241, 223, 166, .8); }

/* ---------------- footer ---------------- */
.listen-card .sample-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--lc-line);
  color: rgba(247, 243, 232, .55);
  font-size: 9.5px;
  letter-spacing: .06em;
}
.listen-card .lc-nav { display: flex; align-items: center; gap: 9px; }
.listen-card .lc-arrow {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(247, 243, 232, .3);
  border-radius: 50%;
  background: transparent;
  color: var(--lc-cream);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.listen-card .lc-arrow:hover { background: rgba(247, 243, 232, .12); border-color: rgba(247, 243, 232, .7); }
.listen-card .lc-dots { display: flex; align-items: center; gap: 5px; }
.listen-card .lc-dot {
  position: relative;
  overflow: hidden;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(247, 243, 232, .3);
  cursor: pointer;
  transition: width .32s cubic-bezier(.22, .61, .36, 1), background .3s ease;
}
.listen-card .lc-dot.on { width: 26px; background: rgba(247, 243, 232, .2); }
.listen-card .lc-dot.on::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: max(6px, var(--dp, 0%));
  border-radius: 99px;
  background: var(--lc-gold);
  transition: width .18s linear;
}
.listen-card .lc-pair {
  font-variant-numeric: tabular-nums;
  color: rgba(247, 243, 232, .48);
}
.listen-card .lc-pair b { color: rgba(247, 243, 232, .8); font-weight: 650; }

/* ---------------- status dot / counter ---------------- */
.listen-card .live-dot { transition: background .3s ease, box-shadow .3s ease; }
.listen-card.is-playing .live-dot {
  background: var(--lc-gold);
  box-shadow: 0 0 0 3px rgba(241, 223, 166, .2);
  animation: lcBlink 1.7s ease-in-out infinite;
}
@keyframes lcBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.listen-card #lcCount.tick { animation: lcTick .42s cubic-bezier(.22, .61, .36, 1); display: inline-block; }
@keyframes lcTick {
  0%   { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}
.listen-card .lc-title-swap { animation: lcTick .4s cubic-bezier(.22, .61, .36, 1); }

/* ---------------- caption under the card ---------------- */
.lc-note {
  margin: 12px 2px 0;
  color: var(--muted, #69736d);
  font-size: 11px;
  line-height: 1.6;
}
.lc-note a { color: var(--red-dark, #9c382d); font-weight: 650; text-decoration: none; border-bottom: 1px solid rgba(156, 56, 45, .3); }

@media (max-width: 900px) {
  .listen-card { padding: 22px 22px 18px; }
  .listen-card .lc-stage { min-height: 156px; }
  .listen-card #lcFirst { font-size: 22px; max-height: 80px; }
  .listen-card #lcSecond { font-size: 19px; max-height: 47px; }
}

@media (max-width: 600px) {
  .listen-card { padding: 20px 18px 16px; }
  .listen-card .lc-stage { min-height: 168px; gap: 14px; }
  .listen-card #lcFirst { font-size: 21px; max-height: 104px; }  /* 4 lines */
  .listen-card #lcSecond { font-size: 18.5px; max-height: 68px; }
  .listen-card .lc-meta strong { font-size: 19px; }
  .listen-card .lc-vol input[type="range"] { width: 40px; }
  .listen-card .lc-transport { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .listen-card::before,
  .listen-card .wave i,
  .listen-card .lc-stage.swap,
  .listen-card.is-playing .live-dot,
  .listen-card.is-playing .play-disc {
    animation: none !important;
  }
}

/* ---------------- hero extras: audience line, price anchor, 2nd CTA ---------------- */
.hero-actions { flex-wrap: wrap; }
.hero-fit {
  max-width: 510px;
  margin: 16px 0 0;
  padding-left: 11px;
  border-left: 2px solid var(--butter, #f1dfa6);
  color: var(--green, #294a3a);
  font-size: 12.5px;
  line-height: 1.65;
}
.hero-price {
  margin: 13px 0 0;
  color: var(--muted, #69736d);
  font-size: 11.5px;
  line-height: 1.7;
}
.hero-price b { color: var(--ink, #202923); font-weight: 750; }
.hero-price a {
  color: var(--red-dark, #9c382d);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(156, 56, 45, .3);
}
.hero-price a b { color: inherit; }
.hero-note { display: block; margin: 11px 0 0; color: var(--muted, #69736d); font-size: 11px; line-height: 1.6; }
.hero-note a {
  color: var(--red-dark, #9c382d);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(156, 56, 45, .3);
}
.hero-play { gap: 9px; }
.hero-play span { font-size: 10px; }
@media (max-width: 600px) {
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
}
