.sr-drama-search-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 52px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #dfe4ee;
	cursor: pointer;
}

.sr-drama-search-trigger:hover,
.sr-drama-search-trigger[aria-expanded="true"] {
	background: transparent;
	color: #ff7890;
}

.sr-drama-search-trigger:focus-visible,
.sr-drama-search-close:focus-visible,
.sr-drama-search-panel input:focus-visible,
.sr-drama-search-result:focus-visible,
.sr-drama-search-browse:focus-visible {
	outline: 3px solid #ffd45c;
	outline-offset: 2px;
}

.sr-drama-search-trigger svg,
.sr-drama-search-field > svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.sr-drama-search-mobile-trigger {
	display: none;
}

.sr-drama-search-shell[hidden] {
	display: none;
}

.sr-drama-search-shell {
	position: absolute;
	z-index: 100;
	left: 0;
	box-sizing: border-box;
	width: 100%;
	padding: 18px var(--sr-shell-gutter) 22px;
	background: #11151e;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.sr-drama-search-panel {
	box-sizing: border-box;
	width: min(100%, 760px);
	margin-inline: auto;
}

.sr-drama-search-field {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	min-height: 50px;
	padding: 0 12px 0 16px;
	background: #202634;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	color: #aeb6c7;
}

.sr-drama-search-field:focus-within {
	border-color: rgba(255, 120, 144, 0.75);
}

.sr-drama-search-field input {
	min-width: 0;
	height: 48px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #f5f7fb;
	font: inherit;
}

.sr-drama-search-field input::placeholder {
	color: #aeb6c7;
}

.sr-drama-search-field input:focus {
	outline: 0;
}

.sr-drama-search-close {
	display: inline-grid;
	width: 38px;
	height: 38px;
	padding: 0;
	place-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #dfe4ee;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.sr-drama-search-close:hover {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.sr-drama-search-status {
	min-height: 22px;
	margin: 12px 2px 0;
	color: #aeb6c7;
	font-size: 0.875rem;
}

.sr-drama-search-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	max-height: min(430px, calc(100vh - 180px));
	overflow-y: auto;
}

.sr-drama-search-result {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 86px;
	padding: 8px;
	background: #171b25;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	color: #f5f7fb;
	text-decoration: none;
}

.sr-drama-search-result:hover {
	border-color: rgba(255, 56, 92, 0.65);
	color: #fff;
}

.sr-drama-search-poster {
	display: block;
	overflow: hidden;
	width: 52px;
	height: 70px;
	background: #2a3040;
	border-radius: 7px;
}

.sr-drama-search-poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sr-drama-search-poster-fallback {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #dfe4ee;
	font-size: 1.35rem;
	font-weight: 800;
}

.sr-drama-search-result-content,
.sr-drama-search-result-title,
.sr-drama-search-result-genres {
	display: block;
	min-width: 0;
}

.sr-drama-search-result-title {
	font-weight: 750;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.sr-drama-search-result-genres {
	margin-top: 5px;
	color: #aeb6c7;
	font-size: 0.78rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.sr-drama-search-browse {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #f5f7fb;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.sr-drama-search-browse:hover {
	border-color: #ff7890;
	color: #ff7890;
}

@media (max-width: 768px) {
	.sr-drama-search-menu-item {
		display: none !important;
	}

	.mobile-menu-control-wrapper .sr-drama-search-mobile-trigger {
		display: inline-flex;
		flex: 0 0 44px;
		width: 44px;
		height: 48px;
	}

	.sr-drama-search-shell {
		padding: 12px var(--sr-shell-gutter) 18px;
	}

	.sr-drama-search-results {
		grid-template-columns: minmax(0, 1fr);
		max-height: calc(100vh - 150px);
	}

	.sr-drama-search-result {
		min-height: 88px;
	}
}

@media (max-width: 339px) {
	.mobile-menu-control-wrapper .sr-drama-search-mobile-trigger {
		flex-basis: 40px;
		width: 40px;
	}
}
