/* 集梦影视 · 搜索下拉面板 */

.jm-top-s { position: relative; }

.jm-sug {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #101a31;
	border: 1px solid #2c3d5f;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .65);
	z-index: 9998;
	overflow: hidden;
	display: none;
}

.jm-sug.show { display: block; }

.jm-sug-body {
	max-height: 420px;
	overflow-y: auto;
}

.jm-sug-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 14px;
	border-bottom: 1px solid rgba(36, 49, 79, .5);
	text-decoration: none !important;
	transition: .12s;
	cursor: pointer;
}

.jm-sug-item:last-child { border-bottom: 0; }
.jm-sug-item:hover,
.jm-sug-item.act { background: rgba(52, 224, 255, .08); }

.jm-sug-item .cv {
	flex-shrink: 0;
	width: 36px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: linear-gradient(135deg, #1b2a4a, #101a30);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.jm-sug-item .cv img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jm-sug-item .bd {
	flex: 1;
	min-width: 0;
}

.jm-sug-item .t {
	display: block;
	color: #edf3ff !important;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 3px;
}

.jm-sug-item .t mark {
	background: rgba(255, 200, 87, .3);
	color: #ffc857;
	padding: 0 2px;
	border-radius: 3px;
}

.jm-sug-item .s {
	display: block;
	color: #6b7899 !important;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jm-sug-item .pr {
	flex-shrink: 0;
	padding: 2px 9px;
	border-radius: 5px;
	background: rgba(255, 200, 87, .13);
	color: #ffc857;
	font-size: 10.5px;
	font-weight: 800;
	white-space: nowrap;
}

.jm-sug-item .pr.free {
	background: rgba(74, 222, 128, .13);
	color: #4ade80;
}

.jm-sug-foot {
	padding: 10px 14px;
	border-top: 1px solid #24314f;
	background: rgba(255, 255, 255, .02);
	text-align: center;
}

.jm-sug-foot a {
	color: #34e0ff !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
}

.jm-sug-foot a:hover { text-decoration: underline !important; }

.jm-sug-empty {
	padding: 26px 16px;
	text-align: center;
	color: #5d6b8c;
	font-size: 12.5px;
}

.jm-sug-empty b {
	display: block;
	color: #8fa4c8;
	font-size: 13px;
	margin-bottom: 6px;
}

.jm-sug-loading {
	padding: 22px;
	text-align: center;
	color: #5d6b8c;
	font-size: 12px;
}

.jm-sug-loading::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border: 2px solid #24314f;
	border-top-color: #34e0ff;
	border-radius: 50%;
	animation: jmSpin .7s linear infinite;
	vertical-align: middle;
}

@keyframes jmSpin {
	to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
	.jm-sug {
		position: fixed;
		left: 12px;
		right: 12px;
		top: auto;
	}
}
