/* Inline movie player — top of single movie page (1hd-style layout) */

.detail-inline-player #content {
	margin-top: 80px;
}

.detail-inline-player #content .inner-container {
	display: block;
	max-width: 1200px;
}

.inline-movie-player {
	width: 100%;
	margin: 0 0 28px;
	background: #12151c;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.inline-player-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 18px;
	background: #1a1f2b;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-player-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
}

.inline-player-detail-link {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s ease;
}

.inline-player-detail-link:hover {
	color: #fff;
}

.inline-player-body {
	position: relative;
}

.inline-player-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000 center / cover no-repeat;
	min-height: 200px;
}

.inline-player-stage--autoembed::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 1;
	pointer-events: none;
}

.inline-player-frame,
.inline-autoembed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 5;
}

/* Auto-embed server picker (scoped from warez modal styles) */
.inline-mainautoembed {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inline-mainautoembed.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.inline-selectPlayer {
	width: 100%;
	max-width: 420px;
}

.inline-movie-player .hostListSelector.singleautoembed .hostList,
.detail-tv-inline .hostListSelector.singleautoembed .hostList,
.tv-watch-top .hostListSelector.singleautoembed .hostList,
.inline-tv-servers-panel .hostListSelector.singleautoembed .hostList {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: static !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	height: auto !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.inline-movie-player .buttonLoadHost,
.detail-tv-inline .buttonLoadHostTv,
.detail-tv-inline .buttonLoadHost,
.tv-watch-top .buttonLoadHostTv,
.tv-watch-top .buttonLoadHost,
.inline-tv-servers-panel .buttonLoadHostTv,
.inline-tv-servers-panel .buttonLoadHost {
	display: flex !important;
	align-items: flex-start;
	gap: 14px;
	width: 100% !important;
	height: auto !important;
	min-height: 0;
	padding: 14px 16px;
	margin: 0 0 12px;
	text-align: left;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
	background: rgba(30, 35, 48, 0.92) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 10px;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
	position: relative !important;
}

.inline-movie-player .buttonLoadHost:hover,
.inline-movie-player .buttonLoadHost.active,
.detail-tv-inline .buttonLoadHostTv:hover,
.detail-tv-inline .buttonLoadHostTv.active,
.detail-tv-inline .buttonLoadHost:hover,
.detail-tv-inline .buttonLoadHost.active,
.tv-watch-top .buttonLoadHostTv:hover,
.tv-watch-top .buttonLoadHostTv.active,
.tv-watch-top .buttonLoadHost:hover,
.tv-watch-top .buttonLoadHost.active,
.inline-tv-servers-panel .buttonLoadHostTv:hover,
.inline-tv-servers-panel .buttonLoadHostTv.active,
.inline-tv-servers-panel .buttonLoadHost:hover,
.inline-tv-servers-panel .buttonLoadHost.active {
	background: rgba(41, 142, 234, 0.25);
	border-color: rgba(41, 142, 234, 0.5);
}

.inline-movie-player .buttonLoadHost i,
.detail-tv-inline .buttonLoadHostTv i,
.detail-tv-inline .buttonLoadHost i,
.tv-watch-top .buttonLoadHostTv i,
.tv-watch-top .buttonLoadHost i,
.inline-tv-servers-panel .buttonLoadHostTv i,
.inline-tv-servers-panel .buttonLoadHost i {
	position: static;
	display: block;
	width: auto;
	height: auto;
	font-size: 28px;
	line-height: 1;
	margin-top: 2px;
	opacity: 0.9;
	flex-shrink: 0;
}

.inline-movie-player .buttonLoadHost .t,
.detail-tv-inline .buttonLoadHostTv .t,
.detail-tv-inline .buttonLoadHost .t,
.tv-watch-top .buttonLoadHostTv .t,
.tv-watch-top .buttonLoadHost .t,
.inline-tv-servers-panel .buttonLoadHostTv .t,
.inline-tv-servers-panel .buttonLoadHost .t {
	position: static !important;
	top: auto !important;
	left: auto !important;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.inline-movie-player .buttonLoadHost .s,
.detail-tv-inline .buttonLoadHostTv .s,
.detail-tv-inline .buttonLoadHost .s,
.tv-watch-top .buttonLoadHostTv .s,
.tv-watch-top .buttonLoadHost .s,
.inline-tv-servers-panel .buttonLoadHostTv .s,
.inline-tv-servers-panel .buttonLoadHost .s {
	position: static !important;
	top: auto !important;
	left: auto !important;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.35;
	opacity: 1;
}

.inline-autoembed {
	position: absolute;
	inset: 0;
	z-index: 8;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inline-autoembed.active {
	opacity: 1;
	visibility: visible;
}

.inline-show-servers {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 15;
	padding: 8px 14px;
	font-size: 13px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	cursor: pointer;
}

.inline-show-servers:hover {
	background: rgba(41, 142, 234, 0.85);
}

.inline-player-servers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px;
	background: #1a1f2b;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-server-btn {
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.inline-server-btn:hover,
.inline-server-btn.active {
	background: #298eea;
	color: #fff;
}

/* Details section below player */
.detail-inline-player .movie-details-section {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	position: relative;
	z-index: 10;
}

.detail-inline-player #content .movie-image {
	width: 22%;
	min-width: 140px;
	display: block;
}

.detail-inline-player #content .movie-info {
	width: 78%;
	display: block;
	padding: 0 0 0 28px;
	box-sizing: border-box;
}

.detail-inline-player .movie-actions {
	display: block;
	width: 100%;
	margin: 20px 0 0;
}

.detail-inline-player .movie-actions .extra {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.detail-inline-player #playnow,
.detail-inline-player #multiplayer {
	display: none !important;
}

.detail-inline-player #content .movie-background {
	opacity: 0.15;
}

@media (max-width: 900px) {
	.detail-inline-player #content .movie-image,
	.detail-inline-player #content .movie-info {
		width: 100%;
		padding: 0;
	}

	.detail-inline-player #content .movie-image {
		max-width: 220px;
		margin: 0 auto 20px;
	}

	.inline-player-title {
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.inline-movie-player {
		border-radius: 0;
		margin-left: -15px;
		margin-right: -15px;
		width: calc(100% + 30px);
	}

	.inline-player-stage {
		min-height: 180px;
	}

	.inline-mainautoembed {
		padding: 8px 10px;
		align-items: flex-start;
		justify-content: flex-start;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.inline-selectPlayer {
		max-width: 100%;
	}

	.inline-movie-player .hostListSelector.singleautoembed .hostList,
	.detail-tv-inline .hostListSelector.singleautoembed .hostList,
	.tv-watch-top .hostListSelector.singleautoembed .hostList,
	.inline-tv-servers-panel .hostListSelector.singleautoembed .hostList {
		gap: 6px;
		width: 100%;
		max-height: min(68vh, 100%);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.inline-movie-player .buttonLoadHost,
	.detail-tv-inline .buttonLoadHostTv,
	.detail-tv-inline .buttonLoadHost,
	.tv-watch-top .buttonLoadHostTv,
	.tv-watch-top .buttonLoadHost,
	.inline-tv-servers-panel .buttonLoadHostTv,
	.inline-tv-servers-panel .buttonLoadHost {
		padding: 8px 10px;
		gap: 8px;
		border-radius: 6px;
	}

	.inline-movie-player .buttonLoadHost i,
	.detail-tv-inline .buttonLoadHostTv i,
	.detail-tv-inline .buttonLoadHost i,
	.tv-watch-top .buttonLoadHostTv i,
	.tv-watch-top .buttonLoadHost i,
	.inline-tv-servers-panel .buttonLoadHostTv i,
	.inline-tv-servers-panel .buttonLoadHost i {
		font-size: 18px;
		margin-top: 0;
	}

	.inline-movie-player .buttonLoadHost .t,
	.detail-tv-inline .buttonLoadHostTv .t,
	.detail-tv-inline .buttonLoadHost .t,
	.tv-watch-top .buttonLoadHostTv .t,
	.tv-watch-top .buttonLoadHost .t,
	.inline-tv-servers-panel .buttonLoadHostTv .t,
	.inline-tv-servers-panel .buttonLoadHost .t {
		font-size: 13px;
		margin-bottom: 2px;
	}

	.inline-movie-player .buttonLoadHost .s,
	.detail-tv-inline .buttonLoadHostTv .s,
	.detail-tv-inline .buttonLoadHost .s,
	.tv-watch-top .buttonLoadHostTv .s,
	.tv-watch-top .buttonLoadHost .s,
	.inline-tv-servers-panel .buttonLoadHostTv .s,
	.inline-tv-servers-panel .buttonLoadHost .s {
		font-size: 11px;
		line-height: 1.25;
	}

	.inline-player-servers {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 8px 10px;
		gap: 6px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.inline-server-btn {
		flex: 0 0 auto;
		padding: 6px 10px;
		font-size: 11px;
		white-space: nowrap;
	}

	.inline-show-servers {
		padding: 5px 10px;
		font-size: 11px;
		bottom: 8px;
		right: 8px;
	}
}
