/* Live: room, pay pop-up, profile buttons, /live/ list. Uses the Hotmerix theme tokens with fallbacks. */
.vl-room, .vl-modal, .vl-actions, .vl-index {
	--vl-accent: var(--accent, #ff2d6f);
	--vl-live: #ff3b3b;
	--vl-online: var(--success, #2ecc71);
	--vl-surface: var(--surface, #15151c);
	--vl-border: var(--border, #2a2a36);
	--vl-text: var(--text, #f2f2f5);
	--vl-muted: var(--muted, #9a9aab);
}

/* ---------- Status dots ---------- */
.vl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--vl-muted); flex-shrink: 0; }
.vl-dot.is-online { background: var(--vl-online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vl-online) 30%, transparent); }
.vl-dot.is-live, .vl-dot.is-busy { background: var(--vl-live); animation: vl-pulse 1.4s ease-in-out infinite; }
@keyframes vl-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vl-live) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .vl-dot.is-live, .vl-dot.is-busy { animation: none; } }

.vl-actions { display: contents; }
.vl-actions .btn { gap: 8px; }
.vl-actions .btn.is-live, .vl-actions .btn.is-busy { background: var(--vl-live); }
.vl-actions .btn.is-live .vl-dot, .vl-actions .btn.is-busy .vl-dot { background: #fff; }
.vl-actions .btn.is-online .vl-dot { background: #fff; box-shadow: none; }

/* ---------- Room ---------- */
.vl-room { position: relative; background: #000; color: #fff; }
.vl-stage {
	position: relative; overflow: hidden; background: #000;
	height: calc(100vh - var(--header-h, 62px) - var(--bottom-nav-h, 64px));
	height: calc(100dvh - var(--header-h, 62px) - var(--bottom-nav-h, 64px));
	min-height: 420px; max-height: 920px;
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
@media (min-width: 900px) {
	.vl-room { max-width: 1180px; margin: 20px auto; border-radius: 22px; overflow: hidden; }
	.vl-stage { height: min(78vh, 760px); }
}
.vl-bg { position: absolute; inset: -40px; background: #111 center / cover no-repeat; filter: blur(34px) brightness(.45); transform: scale(1.1); }
.vl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; z-index: 1; }
.vl-video.is-mirror { transform: scaleX(-1); }
.vl-wm { position: absolute; z-index: 2; pointer-events: none; white-space: nowrap; font: 700 13px/1 system-ui, sans-serif; color: rgba(255, 255, 255, .5); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); transform: rotate(-8deg); transition: left 1.2s ease, top 1.2s ease; }

.vl-top { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.vl-who { display: flex; align-items: center; gap: 10px; color: #fff; margin-right: auto; min-width: 0; }
.vl-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--vl-accent); }
.vl-who span { display: flex; flex-direction: column; min-width: 0; }
.vl-who strong { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-who small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.vl-badge { padding: 4px 10px; border-radius: 6px; font: 800 12px/1.2 system-ui, sans-serif; letter-spacing: .06em; background: rgba(0, 0, 0, .5); }
.vl-badge.is-live { background: var(--vl-live); }
.vl-badge.is-online { background: color-mix(in srgb, var(--vl-online) 85%, #000); }
.vl-badge.is-busy { background: color-mix(in srgb, var(--vl-live) 70%, #000); }
.vl-pill { padding: 4px 10px; border-radius: 999px; font: 700 12px/1.2 system-ui, sans-serif; background: rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums; }

.vl-unmute[hidden] { display: none; }
.vl-unmute { position: absolute; z-index: 5; top: 70px; left: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font: 700 13px/1 system-ui, sans-serif; cursor: pointer; }

.vl-panel { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 80px 18px 120px; }
.vl-panel[hidden] { display: none; }
.vl-card-msg { width: min(420px, 100%); text-align: center; padding: 26px 22px; border-radius: 22px; background: rgba(16, 16, 22, .78); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vl-card-msg h2 { margin: 0 0 8px; font-size: 21px; color: #fff; }
.vl-card-msg p { margin: 0 0 16px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.45; }
.vl-card-msg .btn { margin-top: 4px; }
.vl-big { font: 800 40px/1 system-ui, sans-serif !important; color: #fff !important; font-variant-numeric: tabular-nums; margin: 6px 0 14px !important; }
.vl-small { font-size: 13px !important; }

.vl-controls { position: absolute; z-index: 5; right: 12px; top: 70px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.vl-controls[hidden] { display: none; }
.vl-ctl { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.vl-ctl.is-off { background: var(--vl-live); }
.vl-go { border: 0; border-radius: 999px; padding: 12px 18px; font: 800 15px/1 system-ui, sans-serif; background: var(--vl-live); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.vl-go.is-end { background: rgba(0, 0, 0, .7); border: 2px solid var(--vl-live); }
.vl-go:disabled { opacity: .6; }

/* Chat over the bottom of the video */
.vl-chat { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7) 40%); }
.vl-chat[hidden] { display: none; }
@media (min-width: 900px) { .vl-chat { right: auto; width: 420px; background: linear-gradient(transparent, rgba(0, 0, 0, .55) 30%); border-radius: 0 18px 0 0; } }
.vl-msgs { list-style: none; margin: 0 0 10px; padding: 0; max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 24px); mask-image: linear-gradient(transparent, #000 24px); }
.vl-msgs::-webkit-scrollbar { display: none; }
.vl-msg { font-size: 14px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); word-wrap: break-word; }
.vl-msg b { color: rgba(255, 255, 255, .75); margin-right: 4px; }
.vl-msg i { color: #ffd34d; font-style: normal; }
.vl-msg.role-creator b { color: var(--vl-accent); }
.vl-msg.kind-tip { align-self: flex-start; padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--vl-accent) 75%, #000); text-shadow: none; }
.vl-msg.kind-tip b { color: #fff; }
.vl-sys { color: rgba(255, 255, 255, .6); font-size: 12px; }
.vl-say { display: flex; gap: 8px; align-items: center; }
.vl-say input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .45); color: #fff; font: inherit; font-size: 16px; }
.vl-say input::placeholder { color: rgba(255, 255, 255, .6); }
.vl-send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.vl-tip { height: 44px; flex-shrink: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--vl-accent); color: #fff; font: 800 14px/1 system-ui, sans-serif; cursor: pointer; }

.vl-spin { width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--vl-accent, #ff2d6f); animation: vl-spin .9s linear infinite; }
@keyframes vl-spin { to { transform: rotate(360deg); } }

/* ---------- Pay pop-up ---------- */
.vl-modal { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 26px 22px 22px; border: 1px solid var(--vl-border); border-radius: 22px; background: var(--vl-surface); color: var(--vl-text); text-align: center; }
.vl-modal::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vl-modal[open] { display: block; }
.vl-modal h2 { margin: 0 0 6px; font-size: 21px; }
.vl-modal section[hidden] { display: none; }
.vl-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 1px solid var(--vl-border); border-radius: 50%; background: transparent; color: var(--vl-text); font-size: 22px; line-height: 1; cursor: pointer; }
.vl-sub { color: var(--vl-muted); margin: 0 0 14px; font-size: 14px; }
.vl-price { margin: 4px 0 16px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--vl-accent) 14%, transparent); }
.vl-price strong { display: block; font-size: 28px; color: var(--vl-accent); }
.vl-price small { color: var(--vl-muted); }
.vl-modal form { text-align: left; }
.vl-label { display: block; font-weight: 700; font-size: 14px; margin: 10px 0 6px; }
.vl-modal input, .vl-modal textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--vl-border); background: var(--bg, #0b0b0f); color: var(--vl-text); font: inherit; font-size: 16px; }
.vl-modal textarea { resize: vertical; }
.vl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-chip { flex: 1 1 70px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--vl-border); background: transparent; color: var(--vl-text); font: 800 15px/1 system-ui, sans-serif; cursor: pointer; }
.vl-chip.is-on { border-color: var(--vl-accent); background: color-mix(in srgb, var(--vl-accent) 20%, transparent); }
.vl-credit { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--vl-online) 16%, transparent); color: var(--vl-text); font-size: 14px; }
.vl-error { margin: 10px 0 0; color: var(--danger, #ff5a5a); font-size: 14px; }
.vl-btn { margin-top: 16px; }
.vl-fine { color: var(--vl-muted); font-size: 13px; margin: 14px 0 0; }
.vl-ok, .vl-fail { width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; background: var(--vl-online); }
.vl-fail { background: var(--danger, #ff5a5a); }
.vl-modal .vl-spin { border-color: color-mix(in srgb, var(--vl-text) 20%, transparent); border-top-color: var(--vl-accent); }

/* ---------- /live/ list ---------- */
.vl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 32px; }
.vl-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 12px; border-radius: 18px; overflow: hidden; color: #fff; background: #111; }
.vl-card-img { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .3s ease; }
.vl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .85)); }
.vl-card:hover .vl-card-img { transform: scale(1.04); }
.vl-card > span:not(.vl-card-img) { position: relative; z-index: 1; }
.vl-card-tag { position: absolute !important; top: 10px; left: 10px; padding: 3px 9px; border-radius: 6px; font: 800 11px/1.3 system-ui, sans-serif; letter-spacing: .06em; background: var(--vl-online); }
.vl-card.is-live .vl-card-tag, .vl-card.is-busy .vl-card-tag { background: var(--vl-live); }
.vl-card-name { font-weight: 800; font-size: 16px; }
.vl-card-cta { font-size: 13px; color: rgba(255, 255, 255, .8); }

/* Pay pop-up: merchant line + theme progress screens inside the live modal */
.vl-merchant { margin: -6px 0 14px; font-size: 13px; color: var(--vl-muted); }
.vl-merchant strong { color: var(--vl-text); letter-spacing: .02em; }
.vl-modal .modal-step { text-align: center; }
.vl-modal .modal-step[hidden], .vl-modal [data-step][hidden] { display: none; }
.vl-modal .modal-step h2 { font-size: 22px; margin: 0 0 6px; }
.vl-modal .modal-step p { color: var(--text-soft, #d6d6de); }
