/* WeddingClinicPlus — story bubbles and the full-screen viewer */
.wcp-sbar-wrap { margin-top: 26px; }
.wcp-sbar-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--wcp-ink); }
.wcp-sbar { display: flex; gap: 16px; padding: 4px 2px 10px; overflow-x: auto; scrollbar-width: none; }
.wcp-sbar::-webkit-scrollbar { display: none; }
.wcp-sb-item { flex: none; width: 84px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; color: var(--wcp-ink); font: inherit; }
.wcp-sb-ring {
	position: relative; display: block; width: 76px; height: 76px; margin: 0 auto 6px; padding: 3px; border-radius: 50%;
	background: conic-gradient(from 200deg, var(--wcp-gold-1), var(--wcp-rose), var(--wcp-pink), var(--wcp-gold-2), var(--wcp-gold-1));
	transition: transform .2s;
}
.wcp-sb-item:hover .wcp-sb-ring { transform: scale(1.06); }
.wcp-sb-item.is-seen .wcp-sb-ring { background: #ddd3cc; }
.wcp-sb-av { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--wcp-blush) center / cover no-repeat; }
.wcp-sb-vid { position: absolute; left: 0; bottom: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--wcp-rose); box-shadow: 0 0 0 2px #fff; }
.wcp-sb-vid::after { content: ""; position: absolute; top: 6px; left: 8px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.wcp-sb-name { display: block; font-size: 12.5px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- viewer ---------- */
html.wcp-sv-lock, html.wcp-sv-lock body { overflow: hidden !important; }
.wcp-sv { position: fixed; inset: 0; z-index: 100010; display: none; align-items: center; justify-content: center; gap: 18px; direction: rtl; }
.wcp-sv.is-open { display: flex; animation: wcpSvIn .25s ease; }
@keyframes wcpSvIn { from { opacity: 0; } to { opacity: 1; } }
.wcp-sv-bg { position: absolute; inset: 0; background: rgba(28, 18, 14, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wcp-sv-frame {
	position: relative; z-index: 1; width: min(420px, calc((100vh - 40px) * 9 / 16)); aspect-ratio: 9 / 16; max-height: calc(100vh - 40px);
	border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.wcp-sv-media { position: absolute; inset: 0; }
.wcp-sv-media img, .wcp-sv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcp-sv-media.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: wcpSpin .8s linear infinite; }
@keyframes wcpSpin { to { transform: rotate(360deg); } }
.wcp-sv-frame::before, .wcp-sv-frame::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.wcp-sv-frame::before { top: 0; height: 120px; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.wcp-sv-frame::after { bottom: 0; height: 200px; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }

.wcp-sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; direction: rtl; }
.wcp-sv-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.wcp-sv-bars i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; float: right; }

.wcp-sv-head { position: absolute; top: 22px; left: 10px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.wcp-sv-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; }
.wcp-sv-av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff center / cover no-repeat; box-shadow: 0 0 0 2px var(--wcp-gold-2, #ecd39a); }
.wcp-sv-who b { display: block; font-size: 14px; font-weight: 800; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcp-sv-who small { display: block; font-size: 11.5px; opacity: .85; line-height: 1.4; }
.wcp-sv-close, .wcp-sv-sound { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.wcp-sv-sound { background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 9l4 6M21 9l-4 6'/%3E%3C/svg%3E") center / 18px no-repeat; }
.wcp-sv-sound.is-on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 8a5 5 0 010 8M19.5 5.5a8.5 8.5 0 010 13'/%3E%3C/svg%3E"); }
.wcp-sv-sound[hidden] { display: none; }

.wcp-sv-tap { position: absolute; top: 70px; bottom: 120px; z-index: 3; width: 50%; cursor: pointer; }
.wcp-sv-tap-a { left: 0; }
.wcp-sv-tap-b { right: 0; }

.wcp-sv-foot { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wcp-sv-text { margin: 0; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.9; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.wcp-sv-text[hidden], .wcp-sv-btn[hidden] { display: none !important; }
.wcp-sv-btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 60%; height: 48px; padding: 0 26px; border-radius: 99px;
	background: #fff; color: var(--wcp-rose-d) !important; font-weight: 800; font-size: 15px; text-decoration: none !important;
	box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); transition: transform .15s;
}
.wcp-sv-btn:hover { transform: translateY(-2px); }
.wcp-sv.is-paused .wcp-sv-foot, .wcp-sv.is-paused .wcp-sv-head { opacity: .25; transition: opacity .2s; }

.wcp-sv-nav { position: relative; z-index: 1; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); cursor: pointer; padding: 0; }
.wcp-sv-nav::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; }
.wcp-sv-prev::after { transform: translate(-70%, -50%) rotate(-45deg); }
.wcp-sv-next::after { transform: translate(-30%, -50%) rotate(135deg); }
.wcp-sv-nav:hover { background: rgba(255,255,255,.28); }

@media (max-width: 640px) {
	.wcp-sv { gap: 0; }
	.wcp-sv-nav { display: none; }
	.wcp-sv-frame { width: 100vw; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
	.wcp-sb-item { width: 76px; }
	.wcp-sb-ring { width: 68px; height: 68px; }
}
