.phim-hybrid-site #header .header-search-form-wrapper,
.phim-hybrid-site #header .searchform,
.phim-hybrid-site #main-menu .header-search-form-wrapper,
.phim-hybrid-site #main-menu .searchform,
.phim-header .phim-search { position:relative; }

.phim-hybrid-site #header .searchform .search-field,
.phim-hybrid-site #main-menu .searchform .search-field { padding-right:42px!important; }

.gwd-header-search-clear {
  position:absolute;
  z-index:10021;
  top:50%;
  right:0;
  display:none;
  width:48px;
  min-width:unset!important;
  height:44px;
  min-height:44px;
  margin:0!important;
  padding:0!important;
  transform:translateY(-50%);
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#ffd45b!important;
  font-size:14px!important;
  font-weight:700;
  line-height:44px!important;
  text-align:center;
}
.gwd-header-search-clear.is-visible { display:block; }
.searchform.gwd-api-search-has-value .ux-search-submit { visibility:hidden; }
.gwd-header-search-clear span {
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
  color:transparent;
  font-size:0;
}
.gwd-header-search-clear span::before,
.gwd-header-search-clear span::after {
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  color:#ffd45b;
  content:"";
  transform:translate(-50%,-50%) rotate(45deg);
}
.gwd-header-search-clear span::after { transform:translate(-50%,-50%) rotate(-45deg); }

.phim-hybrid-site #header .live-search-results.gwd-header-search-results,
.phim-hybrid-site #main-menu .live-search-results.gwd-header-search-results,
.phim-header .gwd-header-search-results {
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  z-index:10020;
  display:none;
  width:min(560px, calc(100vw - 28px));
  max-height:min(520px, 70vh);
  overflow:auto;
  padding:0;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:var(--phim-site-bg, #191b24)!important;
  box-shadow:0 18px 54px rgba(0,0,0,.38);
  text-align:left;
}
.phim-hybrid-site #header .live-search-results.gwd-header-search-results.is-open,
.phim-hybrid-site #main-menu .live-search-results.gwd-header-search-results.is-open,
.phim-header .gwd-header-search-results.is-open { display:block!important; }
.gwd-header-search-results__heading {
  padding:15px 20px;
  color:#aeb1bb;
  font-size:15px;
  font-weight:500;
}
.gwd-header-search-result {
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-height:88px;
  margin:0;
  padding:10px 20px;
  border-radius:9px;
  background:transparent!important;
  color:#f4f4f6!important;
  text-decoration:none!important;
  transition:background-color .18s ease;
}
.gwd-header-search-result:hover,
.gwd-header-search-result.is-active { background:#20232f!important; color:#ffd875!important; }
.gwd-header-search-result__image {
  display:block;
  width:54px;
  height:72px;
  overflow:hidden;
  border-radius:7px;
  background:#252834;
}
.gwd-header-search-result__image img { width:100%; height:100%; object-fit:cover; }
.gwd-header-search-result__copy { display:flex; min-width:0; flex-direction:column; gap:3px; }
.gwd-header-search-result__copy strong,
.gwd-header-search-result__copy small,
.gwd-header-search-result__copy em { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gwd-header-search-result__copy strong { color:inherit; font-size:15px; font-style:normal; }
.gwd-header-search-result__copy small { color:#aeb1bc; font-size:12px; }
.gwd-header-search-result__copy em { color:#a3a6b0; font-size:12px; font-style:normal; }
.gwd-header-search-results__all {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:64px;
  margin-top:12px;
  border-radius:0 0 13px 13px;
  background:#1d202b;
  color:#fff!important;
  font-size:15px;
  font-weight:500;
  text-decoration:none!important;
}
.gwd-header-search-results__all:hover { background:#252936; color:#ffd875!important; }
.gwd-header-search-results__message { padding:24px 14px; color:#aeb1bc; font-size:13px; text-align:center; }
.gwd-header-search-results__message.is-loading:before {
  display:inline-block;
  width:14px;
  height:14px;
  margin-right:8px;
  border:2px solid rgba(255,216,117,.25);
  border-top-color:#ffd875;
  border-radius:50%;
  content:"";
  vertical-align:-3px;
  animation:gwd-header-search-spin .7s linear infinite;
}
@keyframes gwd-header-search-spin { to { transform:rotate(360deg); } }
@media screen and (max-width: 768px) {
	body.gwd-mobile-search-open { overflow-x:hidden; }

	/* Flatsome opens this dropdown on hover. Keep it fully suppressed until
	   our explicit mobile-search state is activated by a click. */
	.phim-hybrid-site #header .header-search-dropdown:not(.is-gwd-search-open) > .nav-dropdown {
		display:none!important;
		opacity:0!important;
		pointer-events:none!important;
		visibility:hidden!important;
	}

	.phim-hybrid-site #header .header-search-dropdown > .nav-dropdown::before,
	.phim-hybrid-site #header .header-search-dropdown > .nav-dropdown::after {
		display:none!important;
		content:none!important;
	}

	.phim-hybrid-site #header .header-search-dropdown.is-gwd-search-open > a {
		visibility:hidden;
	}

	.phim-hybrid-site #header .header-search-dropdown.is-gwd-search-open > .nav-dropdown {
		position:fixed!important;
		top:0!important;
		right:0!important;
		left:0!important;
		z-index:10018!important;
		display:block!important;
		width:100%!important;
		min-width:0!important;
		height:64px!important;
		min-height:64px!important;
		margin:0!important;
		padding:9px 58px 9px 14px!important;
		transform:none!important;
		border:0!important;
		border-radius:0!important;
		background:#151720!important;
		box-shadow:none!important;
		opacity:1!important;
		visibility:visible!important;
	}

	.phim-hybrid-site #header .header-search-dropdown.is-gwd-search-open .header-search-form {
		display:block!important;
		width:100%!important;
		margin:0!important;
		padding:0!important;
		border:0!important;
	}

	.phim-hybrid-site #header .header-search-dropdown.is-gwd-search-open .searchform .flex-row {
		height:46px;
		border:0;
		border-radius:8px;
		background:#292c37;
	}

	.phim-hybrid-site #header .header-search-dropdown.is-gwd-search-open .search-field {
		height:46px!important;
		padding-left:14px!important;
		font-size:16px!important;
	}

	.phim-hybrid-site #header .header-search-dropdown.is-gwd-search-open .search-field::placeholder {
		color:#f2f2f5;
		opacity:1;
	}

	.phim-hybrid-site #header .header-search-dropdown.is-gwd-search-open .ux-search-submit {
		display:none!important;
	}

	.gwd-mobile-search-close {
		position:fixed;
		top:9px;
		right:8px;
		z-index:10019;
		display:none;
		width:48px;
		height:46px;
		min-height:46px;
		margin:0!important;
		padding:0!important;
		border:0!important;
		background:transparent!important;
		box-shadow:none!important;
	}

	.is-gwd-search-open > .gwd-mobile-search-close { display:block; }
	.gwd-mobile-search-close span::before,
	.gwd-mobile-search-close span::after {
		position:absolute;
		top:50%;
		left:50%;
		width:25px;
		height:3px;
		border-radius:2px;
		background:#ff6d62;
		content:"";
		transform:translate(-50%,-50%) rotate(45deg);
	}
	.gwd-mobile-search-close span::after { transform:translate(-50%,-50%) rotate(-45deg); }

	.phim-hybrid-site #header .live-search-results.gwd-header-search-results,
	.phim-header .gwd-header-search-results {
		position:fixed;
		top:64px;
		right:14px;
		left:14px;
		width:auto;
		max-height:calc(100vh - 90px);
	}
	.gwd-header-search-result { margin:0; padding:10px 20px; }
	.gwd-header-search-results__heading { padding:15px 20px; }

	.phim-hybrid-site #main-menu .live-search-results.gwd-header-search-results {
		position:static;
		width:100%;
		max-height:calc(100vh - 150px);
		margin-top:10px;
		border-radius:12px;
		box-shadow:none;
	}

	.phim-hybrid-site #main-menu .gwd-header-search-result {
		grid-template-columns:44px minmax(0, 1fr);
		min-height:70px;
		padding:8px 10px;
	}

	.phim-hybrid-site #main-menu .gwd-header-search-result__image {
		width:44px;
		height:58px;
	}

	.phim-hybrid-site #main-menu .gwd-header-search-results__heading {
		padding:12px 10px 6px;
		font-size:13px;
	}

	.phim-hybrid-site #main-menu .gwd-header-search-results__all {
		min-height:48px;
		margin-top:6px;
		font-size:13px;
	}
}
