.sr-share {
	position: relative;
	color: #f5f7fb;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sr-share-toggle,
.sr-share-menu a,
.sr-share-menu button {
	font: inherit;
}

.sr-share-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 19px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	color: #c7cdd8;
	font-weight: 700;
	cursor: pointer;
}

.sr-share-toggle:hover,
.sr-share-toggle[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.32);
	color: #fff;
}

.sr-share-toggle:focus-visible,
.sr-share-menu a:focus-visible,
.sr-share-menu button:focus-visible {
	outline: 3px solid #ffd45c;
	outline-offset: 3px;
}

.sr-share-menu {
	display: flex;
	gap: 8px;
	align-items: center;
}

.sr-share-menu[hidden] {
	display: none;
}

.sr-share-menu [hidden] {
	display: none;
}

.sr-share-menu a,
.sr-share-menu button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 12px;
	background: #202634;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #e2e5ea;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.sr-share-menu a:hover,
.sr-share-menu button:hover {
	border-color: rgba(255, 120, 144, 0.7);
	color: #fff;
}

.sr-share--drama {
	margin: 0;
}

.sr-drama-actions .sr-share-toggle {
	padding-inline: 15px;
}

.sr-share--drama .sr-share-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	right: 0;
	padding: 8px;
	background: #171b25;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	white-space: nowrap;
}

.sr-share--end {
	max-width: 700px;
	margin: 0 auto 32px;
	padding-top: 4px;
	text-align: center;
}

.sr-share--end .sr-share-heading {
	margin: 0 0 12px;
	color: #aeb6c7;
	font-size: 0.9rem;
	font-weight: 700;
}

.sr-share--end .sr-share-toggle {
	display: none;
}

.sr-share--end .sr-share-menu {
	flex-wrap: wrap;
	justify-content: center;
}

.sr-share-feedback {
	display: block;
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	margin-top: 6px;
	color: #ffb5c2;
	font-size: 0.82rem;
	pointer-events: none;
}

@media (max-width: 767px) {
	.sr-drama-actions .sr-share,
	.sr-drama-actions .sr-share-toggle {
		width: 100%;
	}

	.sr-share--drama .sr-share-menu,
	.sr-share--end .sr-share-menu {
		position: absolute;
		z-index: 20;
		top: calc(100% + 8px);
		right: 0;
		left: 0;
		flex-wrap: wrap;
		justify-content: center;
		padding: 8px;
		background: #171b25;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 12px;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
		white-space: normal;
	}

	.sr-share--end {
		width: 100%;
		margin-bottom: 30px;
	}

	.sr-share--end .sr-share-heading {
		display: none;
	}

	.sr-share--end .sr-share-toggle {
		display: flex;
		width: 100%;
	}
}
