body.srp-app-full {
	margin: 0;
	background: #111;
	min-height: 100dvh;
}

.srp-wrap {
	--srp-frame-w: 360px;
	--srp-aspect: 9/16;
	--srp-wm-opacity: 0.7;
	--srp-wm-size: 13px;
	width: min(360px, 92vw);
	max-width: 360px;
	margin: 20px auto;
	position: relative;
}

body.srp-app-full .srp-wrap {
	margin: 24px auto;
}

.srp-feed {
	width: 100%;
	aspect-ratio: 9 / 16;
	max-height: min(78dvh, calc(360px * 16 / 9));
	height: auto;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
	border-radius: 22px;
	background: #000;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	outline: none;
	border: 3px solid #1a1a1a;
}

.srp-feed::-webkit-scrollbar { width: 0; height: 0; }

.srp-slide {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	height: auto;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	overflow: hidden;
	background: #000;
}

.srp-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #000;
}

.srp-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0.55) 100%);
}

.srp-watermark {
	position: absolute;
	pointer-events: none;
	color: #fff;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-weight: 700;
	font-size: var(--srp-wm-size);
	letter-spacing: 0.04em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
	opacity: var(--srp-wm-opacity);
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.28);
	max-width: 70%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.srp-wm-top-left { top: 12px; left: 10px; }
.srp-wm-top-right { top: 12px; right: 10px; }
.srp-wm-bottom-left { bottom: 84px; left: 10px; }
.srp-wm-bottom-right { bottom: 84px; right: 10px; }

.srp-meta {
	position: absolute;
	left: 12px;
	right: 56px;
	bottom: 16px;
	color: #fff;
	pointer-events: auto;
}

.srp-title { margin: 0 0 6px; font-size: 15px; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.srp-caption { margin: 0 0 10px; font-size: 13px; line-height: 1.4; opacity: 0.95; }
.srp-cta {
	display: inline-block;
	background: #fff;
	color: #111;
	text-decoration: none;
	font-weight: 700;
	font-size: 12px;
	padding: 7px 12px;
	border-radius: 999px;
}

.srp-mute {
	pointer-events: auto;
	position: absolute;
	right: 10px;
	bottom: 18px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,0.45);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.srp-hint { text-align: center; font-size: 12px; color: #888; margin-top: 8px; }
.srp-empty { text-align: center; padding: 20px; }

@media (max-width: 480px) {
	.srp-wrap {
		width: min(360px, 94vw);
		margin: 12px auto;
	}
}

.srp-stories {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 12px 0 8px;
	position: relative;
	z-index: 20;
}
.srp-stories-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 4px 16px 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.srp-stories-track::-webkit-scrollbar { display: none; }
.srp-story {
	flex: 0 0 auto;
	width: 76px;
	text-decoration: none;
	color: inherit;
	text-align: center;
}
.srp-story-ring {
	display: block;
	width: 68px;
	height: 68px;
	margin: 0 auto 6px;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}
.srp-story-ring img,
.srp-story-ring video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #fff;
	background: #111;
	display: block;
}
.srp-story-name {
	display: block;
	font-size: 11px;
	line-height: 1.2;
	max-width: 76px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #222;
}
.srp-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.72);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.srp-modal[hidden] { display: none !important; }
.srp-modal-close {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000000;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.srp-modal .srp-wrap { margin: 0 auto; }
body.srp-modal-open { overflow: hidden; }

.srp-loop-card {
	position: relative;
	margin: 0 0 12px;
	width: 100%;
	max-width: 100%;
	border-radius: 6px;
	overflow: hidden;
	background: #000;
	border: 0;
}
.srp-loop-link {
	display: block;
	position: relative;
	color: inherit;
	text-decoration: none;
	aspect-ratio: 16 / 9;
	max-height: 280px;
}
.srp-loop-video,
.srp-loop-poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	background: #000;
	aspect-ratio: 16 / 9;
	max-height: 280px;
}
.srp-loop-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0,0,0,.55);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	padding: 4px 8px;
	border-radius: 999px;
}
.srp-loop-card .srp-watermark {
	pointer-events: none;
}
.srp-loop-caption {
	margin: 8px 0 0;
	font-size: 14px;
}

.srp-story-fallback {
	display:flex;align-items:center;justify-content:center;
	width:100%;height:100%;border-radius:50%;border:2px solid #fff;
	background:#222;color:#fff;font-weight:700;font-size:22px;
}
.srp-loop-card .srp-watermark { font-size:12px; }


.srp-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	pointer-events: none;
}
.srp-play-dot {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	pointer-events: none;
}

.srp-subs {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 78px;
	z-index: 4;
	text-align: center;
	color: #fff;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
	text-shadow: 0 1px 2px #000, 0 0 6px #000;
	background: rgba(0,0,0,.35);
	border-radius: 8px;
	padding: 6px 8px;
	display: none;
	pointer-events: none;
	white-space: pre-wrap;
}
