/* VLike.vn Live Discovery UI - Adaptive light/dark, zero external dependencies */

[data-vlike-live-story-rail] > .vld-reel-slot {
  width: var(--vld-rail-card-w, 100px);
  height: var(--vld-rail-card-h, 154px);
}

.vld-reel-slot > .vld-reel-card {
  border-color: #7553bf;
  background: linear-gradient(155deg, #25213f, #613896 55%, #171328);
}

.vld-reel-pill {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 999px;
  background: #593aa1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.vld-promo-embed-btn[hidden],
.vld-promo-media-link[hidden] {
  display: none;
}

.vld-promo-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(17, 14, 28, .72);
  color: #fff;
}

.vld-promo-play-badge svg {
  width: 24px;
  height: 24px;
}

:root {
  --vld-accent: #e11d48;
  --vld-accent-hover: #be123c;
  --vld-accent-active: #9f1239;
  --vld-accent-soft: rgba(225, 29, 72, 0.12);
  --vld-accent-ring: rgba(225, 29, 72, 0.36);
  --vld-on-accent: #ffffff;

  --vld-surface: #ffffff;
  --vld-surface-elevated: #ffffff;
  --vld-surface-muted: #f8fafc;
  --vld-surface-hover: #f1f5f9;
  --vld-text: #0f172a;
  --vld-text-muted: #475569;
  --vld-border: rgba(15, 23, 42, 0.11);
  --vld-backdrop: rgba(15, 23, 42, 0.56);

  --vld-shadow-card: 0 2px 10px rgba(15, 23, 42, 0.08);
  --vld-shadow-popup: 0 24px 60px -12px rgba(15, 23, 42, 0.32), 0 4px 16px rgba(15, 23, 42, 0.1);
  --vld-shadow-dock: 0 12px 32px -4px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.08);
  --vld-focus-ring: 0 0 0 3px rgba(225, 29, 72, 0.42);
  --vld-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --vld-accent: #e11d48;
    --vld-accent-hover: #f43f5e;
    --vld-accent-active: #be123c;
    --vld-accent-soft: rgba(244, 63, 94, 0.2);
    --vld-accent-ring: rgba(244, 63, 94, 0.44);

    --vld-surface: #14171f;
    --vld-surface-elevated: #1b1f2a;
    --vld-surface-muted: #222734;
    --vld-surface-hover: #2a3142;
    --vld-text: #f8fafc;
    --vld-text-muted: #cbd5e1;
    --vld-border: rgba(255, 255, 255, 0.13);
    --vld-backdrop: rgba(2, 6, 23, 0.74);

    --vld-shadow-card: 0 4px 14px rgba(0, 0, 0, 0.36);
    --vld-shadow-popup: 0 28px 64px -12px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --vld-shadow-dock: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
    --vld-focus-ring: 0 0 0 3px rgba(244, 63, 94, 0.52);
  }
}

/* Explicit host light overrides */
:root[data-theme="light"],
:root[data-bs-theme="light"],
:root[data-color-mode="light"],
:root.light,
:root.light-mode,
:root.day_mode,
body[data-theme="light"],
body[data-bs-theme="light"],
body[data-color-mode="light"],
body.light,
body.light-mode,
body.day_mode,
[data-vlike-live-theme="light"] {
  --vld-accent: #e11d48;
  --vld-accent-hover: #be123c;
  --vld-accent-active: #9f1239;
  --vld-accent-soft: rgba(225, 29, 72, 0.12);
  --vld-accent-ring: rgba(225, 29, 72, 0.36);

  --vld-surface: #ffffff;
  --vld-surface-elevated: #ffffff;
  --vld-surface-muted: #f8fafc;
  --vld-surface-hover: #f1f5f9;
  --vld-text: #0f172a;
  --vld-text-muted: #475569;
  --vld-border: rgba(15, 23, 42, 0.11);
  --vld-backdrop: rgba(15, 23, 42, 0.56);

  --vld-shadow-card: 0 2px 10px rgba(15, 23, 42, 0.08);
  --vld-shadow-popup: 0 24px 60px -12px rgba(15, 23, 42, 0.32), 0 4px 16px rgba(15, 23, 42, 0.1);
  --vld-shadow-dock: 0 12px 32px -4px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.08);
  --vld-focus-ring: 0 0 0 3px rgba(225, 29, 72, 0.42);
}

/* Explicit host dark overrides (including Wondertag night_mode / tag_dark) */
:root.dark,
:root.dark-mode,
:root.night_mode,
:root.tag_dark,
:root[data-theme="dark"],
:root[data-bs-theme="dark"],
:root[data-color-mode="dark"],
:root[mode="night"],
body.dark,
body.dark-mode,
body.night_mode,
body.tag_dark,
body[data-theme="dark"],
body[data-bs-theme="dark"],
body[data-color-mode="dark"],
body[mode="night"],
[data-vlike-live-theme="dark"] {
  --vld-accent: #e11d48;
  --vld-accent-hover: #f43f5e;
  --vld-accent-active: #be123c;
  --vld-accent-soft: rgba(244, 63, 94, 0.2);
  --vld-accent-ring: rgba(244, 63, 94, 0.44);

  --vld-surface: #14171f;
  --vld-surface-elevated: #1b1f2a;
  --vld-surface-muted: #222734;
  --vld-surface-hover: #2a3142;
  --vld-text: #f8fafc;
  --vld-text-muted: #cbd5e1;
  --vld-border: rgba(255, 255, 255, 0.13);
  --vld-backdrop: rgba(2, 6, 23, 0.74);

  --vld-shadow-card: 0 4px 14px rgba(0, 0, 0, 0.36);
  --vld-shadow-popup: 0 28px 64px -12px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --vld-shadow-dock: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --vld-focus-ring: 0 0 0 3px rgba(244, 63, 94, 0.52);
}

@keyframes vld-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.48;
    transform: scale(0.84);
  }
}

@keyframes vld-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vld-dock-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared box-sizing and font isolation for our elements */
.vld-story-slot,
.vld-story-slot *,
.vld-story-card,
.vld-story-card *,
.vld-fallback-section,
.vld-fallback-section *,
.vld-promo-backdrop,
.vld-promo-backdrop *,
.vld-dock,
.vld-dock * {
  box-sizing: border-box;
}

/* Live dot & badge */
.vld-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--vld-accent);
  color: var(--vld-on-accent);
  font-family: var(--vld-font);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

.vld-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
  animation: vld-pulse 1.5s ease-in-out infinite;
}

/* Portrait LIVE card (interleaved in story rail & used in fallback rail) */
.vld-story-slot {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: var(--vld-rail-card-w, var(--vlike-story-card-width, var(--story-card-width, 112px)));
  height: var(--vld-rail-card-h, var(--vlike-story-card-height, var(--story-card-height, 196px)));
  min-width: 44px;
  min-height: 44px;
}

.vld-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: var(--vld-rail-card-w, var(--vlike-story-card-width, var(--story-card-width, 112px)));
  height: var(--vld-rail-card-h, var(--vlike-story-card-height, var(--story-card-height, 196px)));
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--vld-rail-card-radius, 14px);
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--vld-font);
  background: linear-gradient(155deg, #27131d 0%, #7f1030 52%, #181823 100%);
  box-shadow: var(--vld-shadow-card);
  border: 1.5px solid rgba(225, 29, 72, 0.65);
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vld-story-slot > .vld-story-card {
  width: 100%;
  height: 100%;
}

.vld-story-card:hover {
  border-color: var(--vld-accent);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
  text-decoration: none;
  color: #ffffff;
}

.vld-story-card:focus-visible {
  outline: 2px solid var(--vld-accent);
  outline-offset: 2px;
}

.vld-story-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vld-story-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.25s ease;
}

.vld-story-card:hover .vld-story-cover {
  transform: scale(1.03);
}

.vld-story-cover[hidden] {
  display: none;
}

.vld-story-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.56) 0%, rgba(15, 23, 42, 0.04) 36%, rgba(15, 23, 42, 0.12) 56%, rgba(10, 12, 18, 0.88) 100%);
}

.vld-story-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.vld-story-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.vld-avatar-ring {
  width: 32px;
  height: 32px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb7185, var(--vld-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.vld-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--vld-surface-elevated);
  border: 1.5px solid rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vld-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.vld-avatar-img[hidden] {
  display: none;
}

.vld-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vld-accent), #9f1239);
  color: #ffffff;
  font-family: var(--vld-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.vld-avatar-fallback[hidden] {
  display: none;
}

.vld-story-host {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.vld-story-title {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Standalone fallback rail */
.vld-fallback-section {
  font-family: var(--vld-font);
  background: var(--vld-surface);
  color: var(--vld-text);
  border: 1px solid var(--vld-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--vld-shadow-card);
}

.vld-fallback-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.vld-fallback-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--vld-text);
}

.vld-fallback-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vld-accent);
  box-shadow: 0 0 0 3px var(--vld-accent-soft);
  flex-shrink: 0;
  animation: vld-pulse 1.5s ease-in-out infinite;
}

.vld-fallback-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}

.vld-fallback-track::-webkit-scrollbar {
  display: none;
}

/* Guest Promo Center Popup */
.vld-promo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--vld-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overscroll-behavior: contain;
}

.vld-promo-dialog {
  width: min(404px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--vld-surface);
  color: var(--vld-text);
  font-family: var(--vld-font);
  border: 1px solid var(--vld-border);
  border-radius: 20px;
  box-shadow: var(--vld-shadow-popup);
  outline: none;
  animation: vld-pop-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.vld-promo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 16px;
  border-bottom: 1px solid var(--vld-border);
}

.vld-promo-topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vld-promo-topbar-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vld-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vld-promo-topbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.vld-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--vld-text-muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vld-icon-btn:hover {
  background: var(--vld-surface-hover);
  color: var(--vld-text);
}

.vld-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--vld-focus-ring);
  color: var(--vld-text);
}

.vld-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.vld-promo-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #2d1220 0%, #881337 52%, #181a24 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.vld-promo-media-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.vld-promo-media-link:focus-visible {
  outline: 2px solid var(--vld-accent);
  outline-offset: -2px;
}

.vld-promo-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vld-promo-cover[hidden] {
  display: none;
}

.vld-promo-media-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.42) 100%);
}

.vld-promo-embed-btn {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-family: var(--vld-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.vld-promo-embed-btn:hover {
  background: var(--vld-accent);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1.03);
}

.vld-promo-embed-btn:focus-visible {
  outline: none;
  box-shadow: var(--vld-focus-ring), 0 8px 24px rgba(0, 0, 0, 0.36);
}

.vld-promo-embed-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.vld-promo-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.vld-promo-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vld-promo-host-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vld-promo-avatar-ring {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb7185, var(--vld-accent));
  flex-shrink: 0;
}

.vld-promo-text {
  min-width: 0;
  flex: 1 1 auto;
}

.vld-promo-host {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--vld-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vld-promo-title {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--vld-text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.vld-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--vld-accent);
  color: var(--vld-on-accent);
  font-family: var(--vld-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 6px 18px -4px rgba(225, 29, 72, 0.48);
  transition: background-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
}

.vld-promo-cta:hover {
  background: var(--vld-accent-hover);
  color: var(--vld-on-accent);
  text-decoration: none;
}

.vld-promo-cta:active {
  background: var(--vld-accent-active);
  transform: scale(0.99);
}

.vld-promo-cta:focus-visible {
  outline: none;
  box-shadow: var(--vld-focus-ring);
}

.vld-promo-cta svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Bottom-left compact dock */
.vld-dock {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147482999;
  display: flex;
  align-items: center;
  max-width: min(332px, calc(100vw - 32px));
  padding: 4px 4px 4px 6px;
  gap: 2px;
  border-radius: 16px;
  background: var(--vld-surface-elevated);
  color: var(--vld-text);
  font-family: var(--vld-font);
  border: 1px solid var(--vld-border);
  box-shadow: var(--vld-shadow-dock);
  animation: vld-dock-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vld-dock-expand {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 4px 8px 4px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease;
}

.vld-dock-expand:hover {
  background: var(--vld-surface-hover);
}

.vld-dock-expand:focus-visible {
  outline: none;
  box-shadow: var(--vld-focus-ring);
}

.vld-dock-thumb {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb7185, var(--vld-accent));
  flex-shrink: 0;
}

.vld-dock-live-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--vld-accent);
  border: 2px solid var(--vld-surface-elevated);
  animation: vld-pulse 1.5s ease-in-out infinite;
}

.vld-dock-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vld-dock-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vld-accent);
}

.vld-dock-host {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--vld-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vld-dock-title {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--vld-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vld-dock-close {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .vld-story-slot,
  .vld-story-card {
    width: var(--vld-rail-card-w, var(--vlike-story-card-width, var(--story-card-width, 98px)));
    height: var(--vld-rail-card-h, var(--vlike-story-card-height, var(--story-card-height, 172px)));
  }

  .vld-promo-backdrop {
    padding: 12px;
  }

  .vld-promo-dialog {
    width: min(404px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .vld-dock {
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vld-live-dot,
  .vld-fallback-dot,
  .vld-dock-live-dot {
    animation: none;
  }

  .vld-promo-dialog,
  .vld-dock,
  .vld-story-card,
  .vld-story-cover,
  .vld-icon-btn,
  .vld-promo-embed-btn,
  .vld-promo-cta,
  .vld-dock-expand {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .vld-story-card,
  .vld-fallback-section,
  .vld-promo-dialog,
  .vld-dock {
    border: 1px solid CanvasText;
  }

  .vld-promo-cta,
  .vld-live-pill {
    border: 1px solid ButtonText;
  }
}
