/* Scoped waiting & placeholder styles for VLike Timeline Live Entry */

[data-vmh-live-entry].vmh-timeline-entry {
  --vmh-card-bg: #ffffff;
  --vmh-card-border: #e4dcf2;
  --vmh-card-shadow: 0 1px 2px rgba(26, 16, 46, 0.04), 0 8px 22px rgba(42, 23, 77, 0.05);

  --vmh-stage-bg: linear-gradient(155deg, #fcfbfe 0%, #f4eefc 56%, #ece3fa 100%);
  --vmh-stage-muted-bg: linear-gradient(155deg, #faf9fc 0%, #f2eff7 100%);
  --vmh-stage-error-bg: linear-gradient(155deg, #fef9fa 0%, #faeef1 100%);
  --vmh-stage-border: #dfd4f2;
  --vmh-stage-error-border: #ecc8d0;

  --vmh-halo-bg: rgba(116, 48, 204, 0.1);
  --vmh-halo-ring: rgba(116, 48, 204, 0.24);
  --vmh-halo-muted-bg: rgba(90, 78, 112, 0.09);
  --vmh-halo-error-bg: rgba(168, 36, 62, 0.1);

  --vmh-text: #1f172e;
  --vmh-text-muted: #5a4e70;

  --vmh-accent: #7430cc;
  --vmh-accent-hover: #6224b3;
  --vmh-accent-pressed: #521d99;
  --vmh-accent-ink: #6426b8;
  --vmh-focus: #6e28c9;

  --vmh-badge-bg: #f1e9fc;
  --vmh-badge-border: #d8c7f3;
  --vmh-badge-text: #5920a3;
  --vmh-badge-live-dot: #d92d57;

  --vmh-badge-muted-bg: #f1eef7;
  --vmh-badge-muted-border: #dcd5e8;
  --vmh-badge-muted-text: #4f4563;

  --vmh-badge-error-bg: #fcedf0;
  --vmh-badge-error-border: #ecc3cb;
  --vmh-badge-error-text: #8c1d32;

  --vmh-btn-sec-bg: #ffffff;
  --vmh-btn-sec-hover: #f5effc;
  --vmh-btn-sec-border: #cbbce3;

  --vmh-error-ink: #9e2239;
  --vmh-actions-bg: #faf8fd;

  color-scheme: light;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--vmh-card-border);
  border-radius: 14px;
  background-color: var(--vmh-card-bg);
  color: var(--vmh-text);
  box-shadow: var(--vmh-card-shadow);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

:is(html:has(#night-mode-css),body[theme="dark"],body.theme-dark) [data-vmh-live-entry].vmh-timeline-entry,
body.night-mode [data-vmh-live-entry].vmh-timeline-entry,
body.dark [data-vmh-live-entry].vmh-timeline-entry,
body[data-theme="dark"] [data-vmh-live-entry].vmh-timeline-entry,
body .night_mode [data-vmh-live-entry].vmh-timeline-entry,
html[data-theme="dark"] [data-vmh-live-entry].vmh-timeline-entry,
[data-theme="dark"] [data-vmh-live-entry].vmh-timeline-entry {
  --vmh-card-bg: #171320;
  --vmh-card-border: #332b45;
  --vmh-card-shadow: 0 2px 6px rgba(0, 0, 0, 0.34), 0 10px 28px rgba(8, 5, 16, 0.44);

  --vmh-stage-bg: linear-gradient(155deg, #1b1627 0%, #231c35 56%, #2b2144 100%);
  --vmh-stage-muted-bg: linear-gradient(155deg, #1a1623 0%, #201c2b 100%);
  --vmh-stage-error-bg: linear-gradient(155deg, #241620 0%, #2b1925 100%);
  --vmh-stage-border: #3c3254;
  --vmh-stage-error-border: #623240;

  --vmh-halo-bg: rgba(164, 114, 247, 0.16);
  --vmh-halo-ring: rgba(182, 138, 255, 0.3);
  --vmh-halo-muted-bg: rgba(190, 180, 209, 0.12);
  --vmh-halo-error-bg: rgba(242, 128, 150, 0.15);

  --vmh-text: #f4f0fb;
  --vmh-text-muted: #c2b8d6;

  --vmh-accent: #8240d4;
  --vmh-accent-hover: #9254e0;
  --vmh-accent-pressed: #7233c2;
  --vmh-accent-ink: #caa8ff;
  --vmh-focus: #d2b5ff;

  --vmh-badge-bg: #2d2147;
  --vmh-badge-border: #553c87;
  --vmh-badge-text: #e4d4ff;
  --vmh-badge-live-dot: #ff6b8b;

  --vmh-badge-muted-bg: #231f2e;
  --vmh-badge-muted-border: #3b344c;
  --vmh-badge-muted-text: #cbc2dc;

  --vmh-badge-error-bg: #361c24;
  --vmh-badge-error-border: #6f3544;
  --vmh-badge-error-text: #f6bac4;

  --vmh-btn-sec-bg: #251f33;
  --vmh-btn-sec-hover: #312844;
  --vmh-btn-sec-border: #524570;

  --vmh-error-ink: #f4a4b4;
  --vmh-actions-bg: #1e1929;

  color-scheme: dark;
}

[data-vmh-live-entry].vmh-timeline-entry,
[data-vmh-live-entry].vmh-timeline-entry *,
[data-vmh-live-entry].vmh-timeline-entry *::before,
[data-vmh-live-entry].vmh-timeline-entry *::after {
  box-sizing: border-box;
}

[data-vmh-live-entry].vmh-timeline-entry [hidden] {
  display: none !important;
}

/* Header row & single status badge */
[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  margin: 0;
  padding: 0;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-top > span:last-child {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vmh-text-muted);
  letter-spacing: 0.01em;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--vmh-badge-border);
  border-radius: 999px;
  background-color: var(--vmh-badge-bg);
  color: var(--vmh-badge-text);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

[data-vmh-live-entry].vmh-timeline-entry[data-live-state="live"]:not([data-player-view="error"]):not([data-playback="error"]) .vmh-timeline-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--vmh-badge-live-dot);
  flex-shrink: 0;
}

[data-vmh-live-entry].vmh-timeline-entry[data-live-state="processing"] .vmh-timeline-badge,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="unavailable"] .vmh-timeline-badge,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="failed"] .vmh-timeline-badge,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="processing"] .vmh-timeline-badge,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="unavailable"] .vmh-timeline-badge,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="failed"] .vmh-timeline-badge {
  border-color: var(--vmh-badge-muted-border);
  background-color: var(--vmh-badge-muted-bg);
  color: var(--vmh-badge-muted-text);
}

[data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] .vmh-timeline-badge,
[data-vmh-live-entry].vmh-timeline-entry[data-playback="error"] .vmh-timeline-badge {
  border-color: var(--vmh-badge-error-border);
  background-color: var(--vmh-badge-error-bg);
  color: var(--vmh-badge-error-text);
}

/* Stage container */
[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 210px;
  max-height: 336px;
  overflow: hidden;
  border: 1px solid var(--vmh-stage-border);
  border-radius: 12px;
  background: var(--vmh-stage-bg);
}

/* Compact stage height for processing / ended / unavailable / error */
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="processing"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="unavailable"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="failed"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="processing"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="unavailable"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="failed"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-playback="error"] .vmh-timeline-stage {
  aspect-ratio: auto;
  min-height: 184px;
  max-height: 240px;
  background: var(--vmh-stage-muted-bg);
}

[data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] .vmh-timeline-stage,
[data-vmh-live-entry].vmh-timeline-entry[data-playback="error"] .vmh-timeline-stage {
  border-color: var(--vmh-stage-error-border);
  background: var(--vmh-stage-error-bg);
}

/* Native video element: hidden behind waiting state so no empty black box or controls leak */
[data-vmh-live-entry].vmh-timeline-entry:not([data-media-ready="true"]) [data-vmh-timeline-video] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

[data-vmh-live-entry].vmh-timeline-entry[data-player-view="processing"] [data-vmh-timeline-video],
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="unavailable"] [data-vmh-timeline-video],
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="failed"] [data-vmh-timeline-video],
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] [data-vmh-timeline-video] {
  display: none !important;
}

/* Actual playing state: release stage cap, retain video's natural shape, hide all waiting overlays */
[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"]:not([data-player-view="processing"]):not([data-player-view="failed"]):not([data-player-view="unavailable"]):not([data-player-view="error"]) .vmh-timeline-stage {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  border-color: var(--vmh-card-border);
  background: #0d0a14;
}

[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"] [data-vmh-timeline-video] {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 580px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background-color: #0d0a14;
}

[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"][data-video-shape="portrait"] [data-vmh-timeline-video] {
  max-height: min(74vh, 560px);
  margin-inline: auto;
  object-fit: contain;
}

[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"] .vmh-waiting-shell,
[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"] [data-vmh-waiting],
[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"] .vmh-timeline-play {
  display: none !important;
  pointer-events: none !important;
}

[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"]:not([data-player-view="processing"]):not([data-player-view="failed"]):not([data-player-view="unavailable"]):not([data-player-view="error"]) .vmh-timeline-empty {
  display: none !important;
  pointer-events: none !important;
}

/* Waiting shell (live-ready, replay-ready, loading, guest sign-in) */
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 20px 18px;
  text-align: center;
}

[data-vmh-live-entry].vmh-timeline-entry[data-player-view="processing"] .vmh-waiting-shell,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="unavailable"] .vmh-waiting-shell,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="failed"] .vmh-waiting-shell,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] .vmh-waiting-shell,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="processing"] .vmh-waiting-shell,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="unavailable"] .vmh-waiting-shell,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="failed"] .vmh-waiting-shell {
  display: none !important;
}

/* Artwork halo + contained bounded pulse */
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-art {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 2px;
  border-radius: 20px;
  border: 1px solid var(--vmh-halo-ring);
  background-color: var(--vmh-halo-bg);
  color: var(--vmh-accent-ink);
  flex-shrink: 0;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-art::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid var(--vmh-halo-ring);
  opacity: 0;
  pointer-events: none;
}

[data-vmh-live-entry].vmh-timeline-entry[data-live-state="live"]:not([data-media-ready="true"]):not([data-playback="error"]) .vmh-waiting-art::before {
  animation: vmhWaitingBreath 2.6s ease-in-out 4 both;
}

[data-vmh-live-entry].vmh-timeline-entry[data-playback="connecting"]:not([data-media-ready="true"]) .vmh-waiting-art::before,
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-shell[data-vmh-waiting="loading"] .vmh-waiting-art::before {
  animation: vmhWaitingBreath 1.8s ease-in-out 8 both;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-svg {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 20px;
  min-height: 20px;
  max-width: 56px;
  max-height: 56px;
  flex-shrink: 0;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-title {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--vmh-text);
  max-width: 34ch;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-copy {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--vmh-text-muted);
  max-width: 46ch;
}

/* Primary inviting CTA button (live-ready / replay-ready) */
[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-play,
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-cta {
  position: static;
  inset: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  width: auto;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--vmh-accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(116, 48, 204, 0.24);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-play > span {
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  line-height: inherit;
}

/* Expand one-tap affordance across the entire waiting card for live/replay idle */
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-shell .vmh-timeline-play::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

[data-vmh-live-entry].vmh-timeline-entry[data-playback="connecting"] .vmh-waiting-shell .vmh-timeline-play {
  display: none;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-play:hover,
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-cta:hover {
  background-color: var(--vmh-accent-hover);
  text-decoration: none;
  color: #ffffff;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-play:active,
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-cta:active {
  background-color: var(--vmh-accent-pressed);
  box-shadow: none;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-play:focus-visible,
[data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-cta:focus-visible {
  outline: 2px solid var(--vmh-focus);
  outline-offset: 3px;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-btn-icon {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}

/* Fallback positioning if .vmh-timeline-play is rendered directly in stage */
[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-stage > .vmh-timeline-play {
  position: relative;
  z-index: 2;
  margin: 0;
}

/* Empty / Processing / Ended / Error card inside stage */
[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-empty {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 18px;
  text-align: center;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-empty-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
  border-radius: 15px;
  border: 1px solid var(--vmh-badge-muted-border);
  background-color: var(--vmh-halo-muted-bg);
  color: var(--vmh-text-muted);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

[data-vmh-live-entry].vmh-timeline-entry[data-live-state="processing"] .vmh-timeline-empty-art,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="processing"] .vmh-timeline-empty-art {
  border-color: var(--vmh-halo-ring);
  background-color: var(--vmh-halo-bg);
  color: var(--vmh-accent-ink);
}

[data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] .vmh-timeline-empty-art,
[data-vmh-live-entry].vmh-timeline-entry[data-playback="error"] .vmh-timeline-empty-art {
  border-color: var(--vmh-stage-error-border);
  background-color: var(--vmh-halo-error-bg);
  color: var(--vmh-error-ink);
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-empty-svg {
  display: block;
  width: 32px;
  height: 32px;
  min-width: 20px;
  min-height: 20px;
  max-width: 40px;
  max-height: 40px;
  flex-shrink: 0;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-empty-title {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--vmh-text);
  max-width: 34ch;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-empty-copy {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--vmh-text-muted);
  max-width: 42ch;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 10px 20px;
  border: 1px solid var(--vmh-btn-sec-border);
  border-radius: 999px;
  background-color: var(--vmh-btn-sec-bg);
  color: var(--vmh-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-retry:hover {
  background-color: var(--vmh-btn-sec-hover);
  border-color: var(--vmh-accent);
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-retry:active {
  transform: scale(0.985);
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-retry:focus-visible {
  outline: 2px solid var(--vmh-focus);
  outline-offset: 2px;
}

/* Footer actions bar & live message */
[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--vmh-card-border);
  border-radius: 10px;
  background-color: var(--vmh-actions-bg);
}

[data-vmh-live-entry].vmh-timeline-entry[data-live-state="processing"] .vmh-timeline-actions,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="unavailable"] .vmh-timeline-actions,
[data-vmh-live-entry].vmh-timeline-entry[data-live-state="failed"] .vmh-timeline-actions,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="processing"] .vmh-timeline-actions,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="unavailable"] .vmh-timeline-actions,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="failed"] .vmh-timeline-actions,
[data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] .vmh-timeline-actions,
[data-vmh-live-entry].vmh-timeline-entry[data-playback="error"] .vmh-timeline-actions {
  display: none;
}

[data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-actions > span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--vmh-text-muted);
}

[data-vmh-live-entry].vmh-timeline-entry [data-vmh-timeline-sound] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--vmh-btn-sec-border);
  border-radius: 9px;
  background-color: var(--vmh-btn-sec-bg);
  color: var(--vmh-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

[data-vmh-live-entry].vmh-timeline-entry [data-vmh-timeline-sound]:hover {
  background-color: var(--vmh-btn-sec-hover);
  border-color: var(--vmh-accent);
}

[data-vmh-live-entry].vmh-timeline-entry [data-vmh-timeline-sound]:active {
  transform: scale(0.985);
}

[data-vmh-live-entry].vmh-timeline-entry [data-vmh-timeline-sound]:focus-visible {
  outline: 2px solid var(--vmh-focus);
  outline-offset: 2px;
}

[data-vmh-live-entry].vmh-timeline-entry [data-vmh-live-message] {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--vmh-text-muted);
}

[data-vmh-live-entry].vmh-timeline-entry [data-vmh-live-message]:empty {
  display: none;
}

/* Fallback styling if server still emits bare guest link outside stage */
[data-vmh-live-entry].vmh-timeline-entry > a[href] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--vmh-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

[data-vmh-live-entry].vmh-timeline-entry > a[href]:hover {
  background-color: var(--vmh-accent-hover);
}

[data-vmh-live-entry].vmh-timeline-entry > a[href]:focus-visible {
  outline: 2px solid var(--vmh-focus);
  outline-offset: 2px;
}

@keyframes vmhWaitingBreath {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.06);
  }
}

/* Responsive mobile spacing */
@media (max-width: 640px) {
  [data-vmh-live-entry].vmh-timeline-entry {
    padding: 12px;
    border-radius: 12px;
  }

  [data-vmh-live-entry].vmh-timeline-entry .vmh-timeline-stage {
    min-height: 210px;
    max-height: 280px;
  }

  [data-vmh-live-entry].vmh-timeline-entry[data-live-state="processing"] .vmh-timeline-stage,
  [data-vmh-live-entry].vmh-timeline-entry[data-live-state="unavailable"] .vmh-timeline-stage,
  [data-vmh-live-entry].vmh-timeline-entry[data-live-state="failed"] .vmh-timeline-stage,
  [data-vmh-live-entry].vmh-timeline-entry[data-player-view="processing"] .vmh-timeline-stage,
  [data-vmh-live-entry].vmh-timeline-entry[data-player-view="unavailable"] .vmh-timeline-stage,
  [data-vmh-live-entry].vmh-timeline-entry[data-player-view="failed"] .vmh-timeline-stage,
  [data-vmh-live-entry].vmh-timeline-entry[data-player-view="error"] .vmh-timeline-stage,
  [data-vmh-live-entry].vmh-timeline-entry[data-playback="error"] .vmh-timeline-stage {
    min-height: 184px;
    max-height: 240px;
  }

  [data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-shell {
    padding: 16px 14px;
  }

  [data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-art {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  [data-vmh-live-entry].vmh-timeline-entry .vmh-waiting-title {
    font-size: 15px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  [data-vmh-live-entry].vmh-timeline-entry,
  [data-vmh-live-entry].vmh-timeline-entry *,
  [data-vmh-live-entry].vmh-timeline-entry *::before,
  [data-vmh-live-entry].vmh-timeline-entry *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[data-vmh-live-entry].vmh-timeline-entry {align-items:stretch;flex-wrap:nowrap;min-width:0}
[data-vmh-live-entry].vmh-timeline-entry:not([data-media-ready="true"]) .vmh-timeline-replay {position:absolute!important;inset:0;opacity:0;pointer-events:none}
[data-vmh-live-entry].vmh-timeline-entry[data-media-ready="true"] .vmh-timeline-stage {min-height:0;max-height:none}
[data-vmh-live-entry].vmh-timeline-entry:not([data-media-ready="true"]) .vmh-timeline-actions {display:none}
