/* Kaya 959 – listener stories */
:is(#kaya14k-x,html) .kaya14k-stories{ margin: 32px 0; font-family: var(--kaya14k-font, inherit); color: var(--kaya14k-ink, #141414); }
:is(#kaya14k-x,html) .kaya14k-stories-title{ margin: 0 0 14px; font-size: clamp(20px, 3vw, 28px); font-weight: 900; }

/* ---------- Row of rings (WhatsApp Status style) ---------- */
:is(#kaya14k-x,html) .kaya14k-ring-row{
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 6px 4px 12px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
:is(#kaya14k-x,html) .kaya14k-ring-item{
	all: unset;
	cursor: pointer;
	flex: none;
	width: 78px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	scroll-snap-align: start;
	-webkit-tap-highlight-color: transparent;
}
:is(#kaya14k-x,html) .kaya14k-ring{
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	padding: 3px;
	box-sizing: border-box;
	background: conic-gradient(var(--kaya14k-gold, #ffc72c), var(--kaya14k-primary, #ac1f2d), var(--kaya14k-gold, #ffc72c));
	transition: transform .15s ease;
}
:is(#kaya14k-x,html) .kaya14k-ring-item.is-seen .kaya14k-ring{ background: #c9c9c9; }
:is(#kaya14k-x,html) .kaya14k-ring-item:hover .kaya14k-ring{ transform: scale(1.05); }
:is(#kaya14k-x,html) .kaya14k-ring-item:focus-visible .kaya14k-ring{ outline: 3px solid var(--kaya14k-primary, #ac1f2d); outline-offset: 3px; }
:is(#kaya14k-x,html) .kaya14k-avatar{
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid #fff;
	box-sizing: border-box;
	overflow: hidden;
	color: #fff;
	font-weight: 900;
	font-size: 22px;
}
:is(#kaya14k-x,html) .kaya14k-avatar img{ width: 100%; height: 100%; object-fit: cover; }
:is(#kaya14k-x,html) .kaya14k-mic{
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	font-size: 13px;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
:is(#kaya14k-x,html) .kaya14k-ring-name{
	max-width: 100%;
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Wall of cards ---------- */
:is(#kaya14k-x,html) .kaya14k-wall{
	columns: 3 260px;
	column-gap: 16px;
}
:is(#kaya14k-x,html) .kaya14k-card{
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0 0 16px;
	break-inside: avoid;
	border-radius: 18px;
	overflow: hidden;
	background: var(--kaya14k-card-bg, #ac1f2d);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,.12);
	transition: transform .15s ease, box-shadow .15s ease;
}
:is(#kaya14k-x,html) .kaya14k-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
:is(#kaya14k-x,html) .kaya14k-card:focus-visible{ outline: 3px solid var(--kaya14k-gold, #ffc72c); outline-offset: 3px; }
:is(#kaya14k-x,html) .kaya14k-card-photo{ width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
:is(#kaya14k-x,html) .kaya14k-card-msg{ padding: 18px 18px 6px; font-size: 18px; line-height: 1.4; font-weight: 700; }
:is(#kaya14k-x,html) .kaya14k-card-foot{ display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 18px 16px; font-size: 13px; opacity: .95; }
:is(#kaya14k-x,html) .kaya14k-card-name{ font-weight: 700; }
:is(#kaya14k-x,html) .kaya14k-card-play{ background: rgba(255,255,255,.22); border-radius: 999px; padding: 4px 10px; font-weight: 700; white-space: nowrap; }
:is(#kaya14k-x,html) .kaya14k-card.is-seen{ opacity: .85; }

/* ---------- Full-screen viewer ---------- */
:is(#kaya14k-x,html) .kaya14k-sv{
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0,0,0,.92);
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity .2s ease;
	font-family: var(--kaya14k-font, inherit);
}
:is(#kaya14k-x,html) .kaya14k-sv[hidden]{ display: none; }
:is(#kaya14k-x,html) .kaya14k-sv.is-open{ opacity: 1; }
:is(#kaya14k-x,html) .kaya14k-sv-stage{
	position: relative;
	width: min(100vw, calc(100vh * 9 / 16));
	height: min(100vh, calc(100vw * 16 / 9));
	max-height: 100vh;
	background: #111;
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
@media (max-width: 699px) {
	:is(#kaya14k-x,html) .kaya14k-sv{ background: #000; }
	:is(#kaya14k-x,html) .kaya14k-sv-stage{ width: 100vw; height: 100vh; height: 100dvh; max-height: none; }
}
@media (min-width: 700px) { :is(#kaya14k-x,html) .kaya14k-sv-stage{ height: 92vh; width: calc(92vh * 9 / 16); border-radius: 14px; } }
:is(#kaya14k-x,html) .kaya14k-sv-stage:focus{ outline: none; }

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

:is(#kaya14k-x,html) .kaya14k-sv-head{
	position: absolute; z-index: 5; top: 20px; left: 10px; right: 6px;
	display: flex; align-items: center; gap: 10px; color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
:is(#kaya14k-x,html) .kaya14k-sv-avatar{
	flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
	display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff;
	border: 2px solid rgba(255,255,255,.8); box-sizing: border-box;
}
:is(#kaya14k-x,html) .kaya14k-sv-avatar img{ width: 100%; height: 100%; object-fit: cover; }
:is(#kaya14k-x,html) .kaya14k-sv-who{ display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
:is(#kaya14k-x,html) .kaya14k-sv-name{ font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#kaya14k-x,html) .kaya14k-sv-meta{ font-size: 12px; opacity: .85; }
:is(#kaya14k-x,html) .kaya14k-sv-x, :is(#kaya14k-x,html) .kaya14k-sv-pause{
	all: unset; cursor: pointer; color: #fff; width: 36px; height: 36px; display: grid; place-items: center;
	font-size: 30px; line-height: 1; border-radius: 50%;
}
:is(#kaya14k-x,html) .kaya14k-sv-pause{ font-size: 14px; letter-spacing: -2px; }
:is(#kaya14k-x,html) .kaya14k-sv-x:focus-visible, :is(#kaya14k-x,html) .kaya14k-sv-pause:focus-visible{ outline: 2px solid #fff; }

:is(#kaya14k-x,html) .kaya14k-sv-body, :is(#kaya14k-x,html) .kaya14k-sv-slide{ position: absolute; inset: 0; }
:is(#kaya14k-x,html) .kaya14k-sv-slide{ display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 28px 90px; box-sizing: border-box; animation: kaya14k-sv-in .25s ease; }
@keyframes kaya14k-sv-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
:is(#kaya14k-x,html) .kaya14k-sv-text{ margin: 0; color: #fff; font-size: clamp(22px, 3.6vh, 34px); line-height: 1.3; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
:is(#kaya14k-x,html) .kaya14k-sv-text.is-long{ font-size: clamp(18px, 2.7vh, 24px); }
:is(#kaya14k-x,html) .kaya14k-sv-slide.has-photo{ padding: 0; justify-content: flex-end; background: #000; }
:is(#kaya14k-x,html) .kaya14k-sv-photo{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
:is(#kaya14k-x,html) .kaya14k-sv-caption{
	position: relative; z-index: 1; margin: 0; width: 100%; box-sizing: border-box;
	padding: 18px 20px 80px; color: #fff; font-size: 17px; line-height: 1.4; text-align: center;
	background: linear-gradient(transparent, rgba(0,0,0,.75) 35%);
}

/* Voice note pill */
:is(#kaya14k-x,html) .kaya14k-sv-vn{
	position: relative; z-index: 6;
	display: flex; align-items: center; gap: 10px;
	margin-top: 26px; padding: 10px 16px 10px 10px;
	background: rgba(255,255,255,.95); color: #111;
	border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
	width: min(320px, 100%); box-sizing: border-box;
}
:is(#kaya14k-x,html) .kaya14k-sv-slide.has-photo .kaya14k-sv-vn{ position: absolute; top: 76px; left: 50%; transform: translateX(-50%); margin: 0; }
:is(#kaya14k-x,html) .kaya14k-sv-vn-play{
	all: unset; cursor: pointer; flex: none; width: 40px; height: 40px; border-radius: 50%;
	background: #1fa855; color: #fff; display: grid; place-items: center; font-size: 15px;
}
:is(#kaya14k-x,html) .kaya14k-sv-vn-play:focus-visible{ outline: 2px solid #111; outline-offset: 2px; }
:is(#kaya14k-x,html) .kaya14k-sv-vn-wave{ flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; }
:is(#kaya14k-x,html) .kaya14k-sv-vn-wave i{ flex: 1; background: #b8b8b8; border-radius: 2px; min-height: 3px; transition: background .1s; }
:is(#kaya14k-x,html) .kaya14k-sv-vn-wave i.on{ background: #1fa855; }
:is(#kaya14k-x,html) .kaya14k-sv-vn-time{ flex: none; font-size: 12px; font-variant-numeric: tabular-nums; color: #555; min-width: 32px; text-align: right; }

/* Tap zones */
:is(#kaya14k-x,html) .kaya14k-sv-nav{ all: unset; position: absolute; z-index: 3; top: 70px; bottom: 60px; cursor: pointer; }
:is(#kaya14k-x,html) .kaya14k-sv-prev{ left: 0; width: 33%; }
:is(#kaya14k-x,html) .kaya14k-sv-next{ right: 0; width: 67%; }
:is(#kaya14k-x,html) .kaya14k-sv-nav:focus-visible{ outline: 2px solid rgba(255,255,255,.6); outline-offset: -4px; }

:is(#kaya14k-x,html) .kaya14k-sv-brand{
	position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px;
	text-align: center; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; letter-spacing: .03em;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	:is(#kaya14k-x,html) .kaya14k-sv, :is(#kaya14k-x,html) .kaya14k-sv-slide{ animation: none; transition: none; }
}

/* Sample (demo) messages: shown only before the campaign is enabled, to admins / demo mode */
:is(#kaya14k-x,html) .kaya14k-card{ position: relative; }
:is(#kaya14k-x,html) .kaya14k-sample-badge{ align-self: flex-start; margin: 14px 0 -8px 18px; background: rgba(0,0,0,.35); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
:is(#kaya14k-x,html) .kaya14k-sample-badge--ring{ position: static; display: inline-block; margin-top: 2px; background: #eee; color: #666; font-size: 9px; padding: 1px 6px; }

/* ===================== Slideshow: protect against theme !important button rules ===================== */
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-nav,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-nav:hover,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-nav:focus,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-nav:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	color: transparent !important;
	font-size: 0 !important;
	opacity: 1 !important;
	transform: none !important;
}
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-prev { width: 33% !important; left: 0 !important; right: auto !important; }
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-next { width: 67% !important; right: 0 !important; left: auto !important; }
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-x,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-pause,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-x:hover,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-pause:hover,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-x:focus,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-pause:focus {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	color: #fff !important;
	line-height: 36px !important;
	text-align: center !important;
	transform: none !important;
}
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-x { font-size: 30px !important; }
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-pause { font-size: 14px !important; }
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-vn-play,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-vn-play:hover,
:is(#kaya14k-x,html) .kaya14k-sv button.kaya14k-sv-vn-play:focus {
	background: #1fa855 !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	line-height: 40px !important;
	font-size: 15px !important;
	text-align: center !important;
}
