/* ═══════════════════════════════════════════════════════════════════
   CABANA LIVE · the pulse (cabana-live-pulse.js)
   Lines beside each record, the race for the throne, live re-ordering,
   what moved since you last looked, the heartbeat and the record sheet.
   Loaded after cabana-live-royalty.css; it only adds and widens.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --cp-up: #2EF2D0;
  --cp-down: #FF6B8B;
  --cp-new: #A98BFF;
  --cp-hot: #FF7A3D;
}

/* ── lines beside each record ────────────────────────────────────── */
.cr-spark { display: inline-block; width: 84px; height: 26px; flex: none; vertical-align: middle; }
.cr-spark:empty { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05) 30%, transparent 70%); border-radius: 6px; }
.cr-spark-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cr-spark-line { fill: none; stroke: var(--lv-ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cr-spark-dot { fill: var(--lv-ink-2); }
.cr-spark-area { fill: rgba(255, 255, 255, .04); stroke: none; }
.cr-spark-svg.is-up .cr-spark-line { stroke: var(--cp-up); filter: drop-shadow(0 0 4px rgba(46, 242, 208, .45)); }
.cr-spark-svg.is-up .cr-spark-dot { fill: var(--cp-up); }
.cr-spark-svg.is-up .cr-spark-area { fill: rgba(46, 242, 208, .08); }
.cr-spark-svg.is-down .cr-spark-line { stroke: var(--cp-down); opacity: .85; }
.cr-spark-svg.is-down .cr-spark-dot { fill: var(--cp-down); }
.cr-spark-svg.is-new .cr-spark-dot { fill: var(--cp-new); }
.cr-spark.is-in .cr-spark-line { stroke-dasharray: 100; animation: cp-draw 1.1s var(--ease) both; }
.cr-spark.is-in .cr-spark-dot { animation: cp-pop .5s .8s var(--ease) both; }
.cr-spark.is-lead { display: block; width: 100%; max-width: 360px; height: 44px; margin-top: 12px; }
@keyframes cp-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes cp-pop { from { transform: scale(0); transform-origin: center; transform-box: fill-box; } to { transform: scale(1); transform-box: fill-box; } }

/* The full chart gains a column for the line. */
.cr-row-main { grid-template-columns: 40px 30px 52px minmax(0, 1fr) minmax(0, 120px) 84px 52px 52px 86px; }
.cr-row-chal { width: auto; min-width: 128px; gap: 6px; align-items: center; }
@media (max-width: 900px) {
  .cr-row-main { grid-template-columns: 32px 26px 46px minmax(0, 1fr) 70px 48px; }
  .cr-row .cr-spark { width: 70px; }
}
@media (max-width: 560px) {
  .cr-row-main { grid-template-columns: 26px 22px 44px minmax(0, 1fr) 44px; gap: 7px; }
  .cr-row .cr-spark { width: 44px; height: 20px; }
  .cr-row-chal { min-width: 0; gap: 4px; }
  .cr-row .cr-chal-chip { width: 28px; height: 28px; padding: 0; justify-content: center; }
  .cr-row .cr-more { width: 28px; height: 28px; }
}

/* Top 10: the line, the challenges and the way in sit at the end. */
.cr-t10-end { display: flex; align-items: center; gap: 8px; }
.cr-t10-end .cr-spark { width: 72px; }
@media (max-width: 560px) {
  .cr-t10-item { grid-template-columns: 30px 84px minmax(0, 1fr) auto; }
  .cr-t10-end { flex-direction: column; align-items: flex-end; gap: 6px; }
  .cr-t10-end .cr-spark { width: 52px; height: 20px; }
  .cr-t10-end .cr-chal-chip span { display: none; }
  .cr-t10-end .cr-chal-chip { padding: 0 8px; height: 26px; }
}

/* The way into one record. */
.cr-more { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--lv-ink-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--lv-line); transition: background .2s, color .2s, transform .2s var(--ease); }
.cr-more svg { width: 15px; height: 15px; }
.cr-more:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateX(2px); }
.cr-more:focus-visible { outline: 2px solid var(--cr-gold-ink); outline-offset: 2px; }

/* ── what stands out ─────────────────────────────────────────────── */
.cr-tag { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 7px; margin-left: 6px; border-radius: 999px; font: 800 9.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.cr-tag svg { width: 11px; height: 11px; }
.cr-tag.is-hot { color: #1b0a00; background: linear-gradient(90deg, #FFB23F, var(--cp-hot)); box-shadow: 0 0 16px -2px rgba(255, 122, 61, .55); }
.cr-tag.is-climb { color: #00130f; background: var(--cp-up); }
.cr-row-meta .cr-tag, .cr-row-meta .cr-since { margin-left: 0; }
.cr-since { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 6px; font: 700 10.5px var(--f-mono); white-space: nowrap; vertical-align: middle; color: var(--lv-ink-2); background: rgba(255, 255, 255, .06); }
.cr-since.is-up { color: var(--cp-up); background: rgba(46, 242, 208, .1); }
.cr-since.is-down { color: var(--cp-down); background: rgba(255, 107, 139, .1); }
.cr-since.is-new { color: var(--cp-new); background: rgba(169, 139, 255, .12); font-family: var(--f-body); font-weight: 800; letter-spacing: .04em; }

/* ── the heartbeat ───────────────────────────────────────────────── */
.cr-beat { --c: var(--cp-up); display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--lv-ink-2); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--lv-line); white-space: nowrap; max-width: 100%; }
.cr-beat-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.cr-beat-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: cp-ping 2s var(--ease) infinite; }
.cr-beat-k { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; color: var(--c); }
.cr-beat-ago { overflow: hidden; text-overflow: ellipsis; }
.cr-beat-next { display: inline-flex; align-items: center; gap: 5px; font: 700 11px var(--f-mono); color: var(--lv-ink-3); }
.cr-beat-next:empty, .cr-beat-next span:empty { display: none; }
.cr-beat-next svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.cr-beat-next circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3; }
.cr-beat-next .cr-beat-ring { stroke: var(--c); stroke-dasharray: 100; transition: stroke-dashoffset 1s linear; }
.cr-beat[data-state="sync"] { --c: var(--lv-cyan); }
.cr-beat[data-state="sync"] .cr-beat-next svg { animation: cp-spin 1s linear infinite; }
.cr-beat[data-state="sync"] .cr-beat-ring { stroke-dashoffset: 70 !important; }
.cr-beat[data-state="stale"] { --c: var(--lv-amber); }
.cr-beat[data-state="offline"] { --c: rgba(247, 244, 255, .45); }
.cr-beat[data-state="offline"] .cr-beat-dot::after { animation: none; }
.cr-stage-h .cr-beat { margin-top: 14px; }
@keyframes cp-ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes cp-spin { to { transform: rotate(270deg); } }
@media (max-width: 560px) {
  .cr-beat { font-size: 11px; gap: 6px; padding: 0 10px 0 9px; }
  .cr-beat-next svg { display: none; }
}

/* ── since you were here ─────────────────────────────────────────── */
.cr-recap { position: relative; margin: 0 var(--gutter) 16px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, rgba(169, 139, 255, .14), rgba(46, 242, 208, .08)); box-shadow: inset 0 0 0 1px rgba(169, 139, 255, .3); animation: cp-in .7s var(--ease) both; }
.cr-recap.is-out { animation: cp-out .35s var(--ease) both; }
.cr-recap-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lv-ink-2); }
.cr-recap-h > svg { width: 16px; height: 16px; color: var(--cp-new); flex: none; }
.cr-recap-h b { color: #fff; }
.cr-recap-x { margin-left: auto; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; font: 700 12px var(--f-body); color: var(--lv-ink-2); background: rgba(255, 255, 255, .07); }
.cr-recap-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.cr-recap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cr-recap-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border-radius: 12px; font-size: 13px; color: var(--lv-ink-2); background: rgba(7, 6, 11, .55); box-shadow: inset 0 0 0 1px var(--lv-line); animation: cp-in .6s var(--ease) both; }
.cr-recap-chip:nth-child(2) { animation-delay: .08s; } .cr-recap-chip:nth-child(3) { animation-delay: .16s; } .cr-recap-chip:nth-child(4) { animation-delay: .24s; }
.cr-recap-chip > svg { width: 15px; height: 15px; flex: none; color: var(--lv-ink-3); }
.cr-recap-chip b { color: #fff; }
.cr-recap-chip.is-gold > svg { color: var(--cr-gold-ink); }
.cr-recap-chip.is-gold { box-shadow: inset 0 0 0 1px rgba(255, 217, 120, .45); }
.cr-recap-chip.is-up > svg { color: var(--cp-up); }
@keyframes cp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cp-out { to { opacity: 0; transform: translateY(-6px); } }

/* ── live re-ordering ────────────────────────────────────────────── */
.cr-row.is-rose, .cr-t10-item.is-rose { animation: cp-rose 2.6s var(--ease) both; }
.cr-row.is-fell, .cr-t10-item.is-fell { animation: cp-fell 2.6s var(--ease) both; }
.cr-row.is-arrived, .cr-t10-item.is-arrived { animation: cp-arrive 2.6s var(--ease) both; }
.is-rose .cr-row-r, .is-rose .cr-t10-n { animation: cp-num 1.2s var(--ease) both; }
@keyframes cp-rose { 0%, 30% { box-shadow: inset 0 0 0 1px rgba(46, 242, 208, .7), 0 0 28px -6px rgba(46, 242, 208, .55); background-color: rgba(46, 242, 208, .1); } 100% { box-shadow: inset 0 0 0 1px transparent; background-color: transparent; } }
@keyframes cp-fell { 0%, 30% { background-color: rgba(255, 107, 139, .07); } 100% { background-color: transparent; } }
@keyframes cp-arrive { 0% { opacity: 0; transform: scale(.97); box-shadow: inset 0 0 0 1px rgba(169, 139, 255, .8); } 35% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(169, 139, 255, .6), 0 0 30px -8px rgba(169, 139, 255, .6); } 100% { box-shadow: inset 0 0 0 1px transparent; } }
@keyframes cp-num { 0% { transform: scale(1); } 30% { transform: scale(1.35); color: var(--cp-up); } 100% { transform: scale(1); } }

/* A new No.1 is crowned where everyone can see it. */
.cr-t10-lead.is-crowned::after { content: 'New No.1'; position: absolute; top: 14px; right: 14px; z-index: 6; height: 28px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; font: 800 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #1a1204; background: var(--cr-gold); background-size: 220% 100%; animation: cp-ribbon 4.2s var(--ease) both, lv-gold-slide 3s linear infinite; }
.cr-t10-lead.is-crowned { animation: cp-crown-glow 4.2s var(--ease) both; }
@keyframes cp-ribbon { 0% { opacity: 0; transform: translateY(-10px) scale(.8); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cp-crown-glow { 0% { box-shadow: 0 0 0 0 rgba(246, 196, 81, .9), 0 30px 80px -30px #000; } 25% { box-shadow: 0 0 0 6px rgba(246, 196, 81, .25), 0 0 90px -10px rgba(246, 196, 81, .55); } 100% { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); } }
.cr-stage.is-coronation .cr-seat[data-pos="1"] .cr-portrait { animation: cp-coronation 5s var(--ease) both; }
.cr-stage.is-coronation .cr-seat[data-pos="1"] .cr-seat-crown { animation: cp-crown-drop 1.4s .2s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cp-coronation { 0% { filter: brightness(1.8) saturate(1.3); box-shadow: 0 0 0 0 rgba(246, 196, 81, .9); } 30% { box-shadow: 0 0 0 18px rgba(246, 196, 81, 0), 0 0 120px 10px rgba(246, 196, 81, .45); } 100% { filter: none; box-shadow: none; } }
@keyframes cp-crown-drop { 0% { transform: translate(-50%, -120%) rotate(-12deg); opacity: 0; } 100% { transform: translateX(-50%); opacity: 1; } }

/* What has already made its entrance does not make it again. */
.cr-stage.is-settled .cr-seat, .cr-stage.is-settled .cr-steps i { transition: none; }
.cr-stage.is-settled .cr-race-row i { transition: none; }
.cr-stage.is-settled .cr-race-line, .cr-stage.is-settled .cr-race-end { animation: none; }

/* ── the race for the throne ─────────────────────────────────────── */
.cr-race { position: relative; z-index: 2; max-width: 860px; margin: clamp(26px, 3.4vw, 40px) auto 0; padding: clamp(18px, 2.4vw, 26px); border-radius: 22px; text-align: left; background: linear-gradient(180deg, rgba(20, 14, 24, .82), rgba(10, 8, 14, .9)); box-shadow: inset 0 0 0 1px rgba(255, 217, 120, .16), 0 30px 80px -40px #000; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cr-race-h h3 { margin: 2px 0 6px; font: 800 clamp(18px, 2vw, 22px)/1.2 var(--f-body); color: #fff; }
.cr-race-insight { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--lv-ink-2); }
.cr-race-insight b { color: #fff; }
.cr-race-proj { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--cr-gold-ink); background: rgba(246, 196, 81, .1); box-shadow: inset 0 0 0 1px rgba(255, 217, 120, .25); }
.cr-race-proj svg { width: 13px; height: 13px; flex: none; }
.cr-race-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cr-race-row { display: grid; grid-template-columns: 28px 34px minmax(90px, 160px) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.cr-race-pos { font: 800 13px var(--f-royal, var(--f-mark)); color: var(--c); text-align: center; }
.cr-race-row .cr-face { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--c); }
.cr-race-who { min-width: 0; display: flex; align-items: center; gap: 6px; }
.cr-race-who b { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-race-who .cr-flag { flex: none; }
.cr-race-track { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cr-race-track i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), var(--c)); box-shadow: 0 0 18px -2px var(--c); transform-origin: left; transform: scaleX(0); transition: transform 1.3s cubic-bezier(.2, .9, .25, 1) calc(.25s + var(--i) * .12s); }
.cr-stage.is-lit .cr-race-track i, .cr-race.is-drawn .cr-race-track i { transform: none; }
.cr-race-val { display: flex; flex-direction: column; align-items: flex-end; min-width: 70px; }
.cr-race-val b { font: 700 14px var(--f-mono); color: #fff; }
.cr-race-val small { font: 700 10.5px var(--f-mono); color: var(--lv-ink-3); }
.cr-race-row:first-child .cr-race-val small { color: var(--cr-gold-ink); font-family: var(--f-body); letter-spacing: .12em; text-transform: uppercase; font-size: 9.5px; font-weight: 800; }
.cr-race-wait { height: 170px; margin-top: 16px; border-radius: 14px; }
.cr-race-chart { margin: 18px 0 0; }
.cr-race-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cr-race-chart figcaption { margin-top: 8px; font-size: 11.5px; color: var(--lv-ink-3); }
.cr-race-grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.cr-race-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.cr-race-line:first-of-type { stroke-width: 3.2; filter: drop-shadow(0 0 6px rgba(246, 196, 81, .5)); }
.cr-stage.is-lit .cr-race-line, .cr-race.is-drawn .cr-race-line { animation: cp-draw 1.8s var(--ease) var(--d, 0s) both; }
.cr-race-end { opacity: 0; }
.cr-stage.is-lit .cr-race-end, .cr-race.is-drawn .cr-race-end { animation: cp-fade .4s var(--d, 0s) both; }
.cr-stage.is-settled .cr-race-line { stroke-dashoffset: 0; }
.cr-stage.is-settled .cr-race-end { opacity: 1; }
.cr-race-label { font: 700 11.5px var(--f-body); }
.cr-race-axis { font: 600 10.5px var(--f-body); fill: var(--lv-ink-3); }
.cr-race-mark line { stroke: rgba(255, 217, 120, .45); stroke-dasharray: 3 4; }
.cr-race-mark text { font: 700 10px var(--f-body); fill: var(--cr-gold-ink); }
@keyframes cp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) {
  .cr-race { border-radius: 18px; }
  .cr-race-row { grid-template-columns: 22px 30px minmax(0, 1fr) auto; gap: 8px; }
  .cr-race-track { grid-column: 2 / -1; grid-row: 2; height: 8px; }
  .cr-race-row .cr-face { width: 30px; height: 30px; }
  .cr-race-label { font-size: 12.5px; }
  .cr-race-axis { font-size: 11.5px; }
}

/* The home card says how the race stands, in one line. */
.cr-home-race { margin: -6px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--lv-ink-2); }
.cr-home-race b { color: #fff; }
.cr-home-race .cr-race-proj { margin-top: 8px; }

/* ── one record, in full ─────────────────────────────────────────── */
.lv-modal.is-record { width: min(760px, 100%); padding: 0; text-align: left; overflow: auto; }
.cr-rec-art { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 24px 24px 0 0; background: #000; }
.cr-rec-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.cr-rec-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(17, 14, 24, .96)); }
.cr-rec-n { position: absolute; left: 22px; bottom: -6px; z-index: 2; font: 900 clamp(70px, 12vw, 120px)/1 var(--f-mark); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--cr-gold-ink); }
.cr-rec-play { position: absolute; right: 22px; bottom: 18px; z-index: 2; width: 58px; height: 58px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #0b0912; background: #fff; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .8); transition: transform .25s var(--ease); }
.cr-rec-play:hover { transform: scale(1.08); }
.cr-rec-play svg { width: 24px; height: 24px; margin-left: 3px; }
.cr-rec-body { padding: 6px clamp(18px, 3vw, 30px) 26px; }
.lv-modal h2.cr-rec-t { margin: 8px 0 2px; font: 800 clamp(22px, 3vw, 30px)/1.15 var(--f-body); text-transform: none; font-stretch: normal; }
.lv-modal p.cr-rec-by { margin: 0 0 14px; color: var(--lv-ink-3); font-weight: 600; }
.cr-rec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-rec-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--lv-ink-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--lv-line); }
.cr-rec-chip svg { width: 13px; height: 13px; }
.cr-rec-chip.is-gold { color: #1a1204; background: var(--cr-gold); background-size: 220% 100%; box-shadow: none; }
.cr-rec-chip.is-up { color: var(--cp-up); }
.cr-rec-chip.is-down { color: var(--cp-down); }
.cr-rec-chip.is-new { color: var(--cp-new); }
.cr-rec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0 0; }
.cr-rec-stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--lv-line); }
.cr-rec-stats dt { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lv-ink-3); }
.cr-rec-stats dd { margin: 4px 0 0; font: 700 20px var(--f-mono); color: #fff; }
.cr-rec-sec { margin-top: 22px; }
.cr-rec-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lv-ink-2); }
.cr-rec-sec h3 svg { width: 15px; height: 15px; color: var(--cr-gold-ink); }
.cr-run { display: block; width: 100%; height: auto; overflow: visible; }
.cr-run-line { fill: none; stroke: var(--lv-ink-2); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: cp-draw 1.4s var(--ease) both; }
.cr-run-line.is-up { stroke: var(--cp-up); filter: drop-shadow(0 0 6px rgba(46, 242, 208, .45)); }
.cr-run-line.is-down { stroke: var(--cp-down); }
.cr-run-dot { fill: #fff; opacity: .7; }
.cr-run-peak circle { fill: none; stroke: var(--cr-gold-ink); stroke-width: 2; }
.cr-run-peak text { font: 800 11px var(--f-body); fill: var(--cr-gold-ink); }
.cr-rec-mkts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cr-rec-mkts li { display: grid; grid-template-columns: 24px minmax(90px, 140px) minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.cr-rec-mkts b { font: 700 13px var(--f-mono); text-align: right; }
.cr-rec-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cr-rec-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8B5CFF, #2EF2D0); animation: cp-grow 1s var(--ease) both; transform-origin: left; }
@keyframes cp-grow { from { transform: scaleX(0); } to { transform: none; } }
.lv-modal p.cr-rec-note { margin: 8px 0 0; font-size: 12px; color: var(--lv-ink-3); }
.cr-rec-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (max-width: 600px) {
  .lv-modal-veil:has(.is-record) { place-items: end stretch; padding: 0; }
  .lv-modal.is-record { width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; }
  .cr-rec-art { aspect-ratio: 16 / 9; }
  .cr-rec-mkts li { grid-template-columns: 24px minmax(0, 1fr) 70px 46px; }
  .cr-rec-acts .lv-btn { flex: 1 1 auto; }
}

/* ── fixes to the stage and the home card on a phone ─────────────── */
.cr-home > * { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .cr-home-copy { justify-self: stretch; width: 100%; }
  .cr-home-p { justify-content: center; text-align: center; }
  .cr-stage-acts { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .cr-stage-acts > :nth-child(-n+2):not(:nth-last-child(2)) { grid-column: 1 / -1; }
  .cr-stage-acts .lv-btn { min-width: 0; padding: 0 14px; font-size: 13.5px; }
}
/* A challenge from the artist's own channel and its pace never collide. */
.cr-short-official ~ .cr-short-rate { top: 36px; left: 9px; right: auto; }

@media (prefers-reduced-motion: reduce) {
  .cr-spark.is-in .cr-spark-line, .cr-spark.is-in .cr-spark-dot, .cr-race-line, .cr-race-end, .cr-run-line, .cr-rec-bar i,
  .cr-recap, .cr-recap-chip, .cr-row, .cr-t10-item, .cr-row-r, .cr-t10-n, .cr-t10-lead, .cr-t10-lead::after, .cr-beat-dot::after, .cr-portrait, .cr-seat-crown { animation: none !important; }
  .cr-race-line { stroke-dashoffset: 0; }
  .cr-race-end { opacity: 1; }
  .cr-race-track i { transform: none; transition: none; }
}

/* ── DJ mixes (cabana-live-mixes.js) ─────────────────────────────── */
.cm-pills { margin: 0 var(--gutter) 12px; }
.cm-pills small { opacity: .6; font-weight: 700; margin-left: 2px; }
.cm-rail { --col: clamp(270px, 28vw, 360px); }
.cm-card { flex: none; width: var(--col); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--lv-surface); box-shadow: inset 0 0 0 1px var(--lv-line); transition: transform .3s var(--ease), box-shadow .3s; }
.cm-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--lv-line-2), 0 24px 60px -30px #000; }
.cm-card.is-top { box-shadow: inset 0 0 0 1px rgba(255, 217, 120, .35); }
.cm-art { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: #000; }
.cm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cm-card:hover .cm-art img { transform: scale(1.06); }
.cm-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 11, .85)); }
.cm-n { position: absolute; left: 12px; bottom: -4px; z-index: 2; font: 900 64px/1 var(--f-mark); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.6px rgba(255, 255, 255, .85); }
.cm-card.is-top .cm-n { -webkit-text-stroke-color: var(--cr-gold-ink); }
.cm-len { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; font: 700 11.5px var(--f-mono); color: #fff; background: rgba(7, 6, 11, .75); }
.cm-len svg { width: 12px; height: 12px; }
.cm-hot { position: absolute; top: 10px; left: 10px; z-index: 2; margin: 0; }
.cm-play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; color: #0b0912; background: #fff; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease); }
.cm-play svg { width: 22px; height: 22px; margin-left: 3px; }
.cm-art:hover .cm-play, .cm-art:focus-visible .cm-play { opacity: 1; transform: none; }
.cm-art:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.cm-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.cm-meta { display: flex; align-items: center; gap: 8px; font: 700 11px var(--f-mono); color: var(--lv-ink-3); }
.cm-mv { display: inline-flex; align-items: center; gap: 2px; }
.cm-mv svg { width: 11px; height: 11px; }
.cm-mv.is-up { color: var(--cp-up); } .cm-mv.is-down { color: var(--cp-down); } .cm-mv.is-new { color: var(--cp-new); font-family: var(--f-body); font-weight: 800; letter-spacing: .08em; }
.cm-pace { color: var(--cp-up); }
.cm-t { margin: 0; font: 800 15px/1.3 var(--f-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-by { margin: 0; font-size: 12.5px; color: var(--lv-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-feat { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.cm-feat b { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--lv-line); }
.cm-feat b small { font: 700 10px var(--f-mono); color: var(--cr-gold-ink); }
.cm-feat i { font: 700 11px var(--f-mono); font-style: normal; color: var(--lv-ink-3); align-self: center; }
.cm-feat.is-none { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lv-ink-3); }
@media (prefers-reduced-motion: reduce) { .cm-card, .cm-art img, .cm-play { transition: none; } }
@media (max-width: 560px) {
  .cm > .lv-row-h { flex-direction: column; align-items: stretch; gap: 12px; }
  .cm > .lv-row-h .cr-row-acts .lv-btn { width: 100%; justify-content: center; }
}
