/*
 * Path: wp-content/themes/moviestream-child-gogotv/assets/css/gogo-player-v230.css
 * GogoTV Native Player v2.3.2
 * TVWiki-style controls with responsive 16:9 layout.
 */

.gogo-native-player,
.gogo-native-player * {
	box-sizing: border-box;
}

.gogo-native-player {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	background: #000;
	color: #fff;
	font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	contain: layout paint;
}

.gogo-native-stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 0;
	overflow: hidden;
	background: #000;
	outline: 0;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
}

.gogo-native-video,
.gogo-native-iframe-host,
.gogo-native-fallback-frame {
	position: absolute !important;
	inset: 0 !important;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	transform: none !important;
}

.gogo-native-video {
	z-index: 1;
	object-fit: contain;
	background: #000;
}

.gogo-native-iframe-host {
	z-index: 2;
	overflow: hidden;
	background: #000;
}

.gogo-native-fallback-frame {
	object-fit: contain;
	background: #000;
}

.gogo-native-player [hidden] {
	display: none !important;
}

/* Buffering is deliberately small and never includes text. */
.gogo-native-buffer {
	position: absolute;
	z-index: 30;
	left: 50%;
	top: 50%;
	width: 42px;
	height: 42px;
	margin: -21px 0 0 -21px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .42);
	box-shadow: 0 4px 22px rgba(0, 0, 0, .3);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	pointer-events: none;
}

.gogo-native-spinner {
	position: absolute;
	inset: 8px;
	border: 3px solid rgba(255, 255, 255, .24);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gogo-native-spin .72s linear infinite;
}

@keyframes gogo-native-spin {
	to { transform: rotate(360deg); }
}

/* Centre controls: the exact three-button composition requested. */
.gogo-native-center-controls {
	position: absolute;
	z-index: 18;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 5vw, 72px);
	transform: translate(-50%, -50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity .16s ease, transform .16s ease;
}

.gogo-native-player.is-controls-visible .gogo-native-center-controls,
.gogo-native-player:not(.is-playing) .gogo-native-center-controls {
	opacity: 1;
	pointer-events: auto;
}

.gogo-native-center-controls button {
	position: relative;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .75));
	transition: transform .14s ease, opacity .14s ease;
}

.gogo-native-center-controls button:hover,
.gogo-native-center-controls button:focus-visible {
	transform: scale(1.08);
	outline: 0;
}

.gogo-native-center-play {
	width: clamp(64px, 6vw, 86px);
	height: clamp(64px, 6vw, 86px);
	border-radius: 50% !important;
	background: rgba(0, 0, 0, .22) !important;
}

.gogo-native-center-play svg {
	width: 58%;
	height: 58%;
	fill: currentColor;
	margin-left: 5%;
}

.gogo-native-center-play.is-pause svg {
	margin-left: 0;
}

.gogo-native-center-seek {
	width: clamp(54px, 5vw, 72px);
	height: clamp(54px, 5vw, 72px);
}

.gogo-native-center-seek svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
}

.gogo-native-center-seek > span {
	position: relative;
	z-index: 2;
	font-size: clamp(15px, 1.5vw, 21px);
	font-weight: 900;
	line-height: 1;
	text-shadow: 0 2px 5px #000;
}

.gogo-native-player.is-iframe-mode .gogo-native-center-controls,
.gogo-native-player.is-iframe-mode .gogo-native-controls {
	display: none !important;
}

.gogo-native-server-badge {
	position: absolute;
	z-index: 22;
	top: 12px;
	right: 12px;
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 5px;
	background: rgba(0, 0, 0, .58);
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, .82);
	pointer-events: none;
}

/* Bottom control rail, visually close to the reference player. */
.gogo-native-controls {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 48px 14px 9px;
	background: linear-gradient(to top, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .68) 46%, rgba(0, 0, 0, 0) 100%);
	opacity: 0;
	transform: translateY(5px);
	pointer-events: none;
	transition: opacity .16s ease, transform .16s ease;
}

.gogo-native-player.is-controls-visible .gogo-native-controls,
.gogo-native-player:not(.is-playing) .gogo-native-controls {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.gogo-native-progress-wrap {
	position: relative;
	height: 17px;
	display: flex;
	align-items: center;
	margin: 0 1px 4px;
}

.gogo-native-progress-wrap::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 7px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .22);
}

.gogo-native-progress-buffered {
	position: absolute;
	left: 0;
	top: 7px;
	height: 3px;
	width: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, .48);
	pointer-events: none;
}

.gogo-native-progress {
	--gogo-progress: 0%;
	position: relative;
	z-index: 2;
	width: 100%;
	height: 17px;
	margin: 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	background: linear-gradient(to right, #e50914 0 var(--gogo-progress), transparent var(--gogo-progress) 100%);
	cursor: pointer;
}

.gogo-native-progress::-webkit-slider-runnable-track {
	height: 3px;
	background: transparent;
}

.gogo-native-progress::-webkit-slider-thumb {
	width: 13px;
	height: 13px;
	margin-top: -5px;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 50%;
	background: #e50914;
	box-shadow: 0 0 0 3px rgba(229, 9, 20, .18);
}

.gogo-native-progress::-moz-range-track {
	height: 3px;
	background: transparent;
}

.gogo-native-progress::-moz-range-progress {
	height: 3px;
	background: #e50914;
}

.gogo-native-progress::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border: 0;
	border-radius: 50%;
	background: #e50914;
}

.gogo-native-control-row,
.gogo-native-control-left,
.gogo-native-control-right {
	display: flex;
	align-items: center;
}

.gogo-native-control-row {
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
}

.gogo-native-control-left,
.gogo-native-control-right {
	gap: 3px;
	min-width: 0;
}

.gogo-native-control-right {
	justify-content: flex-end;
}

.gogo-native-controls button {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background .14s ease, transform .14s ease;
}

.gogo-native-controls button:hover,
.gogo-native-controls button:focus-visible,
.gogo-native-controls button[aria-expanded="true"] {
	background: rgba(255, 255, 255, .14);
	outline: 0;
}

.gogo-native-controls button:active {
	transform: scale(.94);
}

.gogo-native-controls button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.gogo-native-volume {
	width: 72px;
	height: 4px;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 4px;
	background: rgba(255, 255, 255, .35);
	cursor: pointer;
}

.gogo-native-volume::-webkit-slider-thumb {
	width: 12px;
	height: 12px;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 50%;
	background: #fff;
}

.gogo-native-volume::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: #fff;
}

.gogo-native-time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 112px;
	margin-left: 5px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: rgba(255, 255, 255, .72);
}

.gogo-native-time b {
	color: #fff;
	font-weight: 700;
}

.gogo-native-time i {
	font-style: normal;
	color: rgba(255, 255, 255, .38);
}

/* Settings popover: quality, speed, subtitle and server in one clean menu. */
.gogo-native-settings {
	position: absolute;
	right: 12px;
	bottom: 57px;
	z-index: 28;
	width: min(280px, calc(100% - 24px));
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 9px;
	background: rgba(18, 18, 20, .96);
	box-shadow: 0 16px 44px rgba(0, 0, 0, .48);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.gogo-native-settings label {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 43px;
	padding: 5px 8px;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.gogo-native-settings label:last-child {
	border-bottom: 0;
}

.gogo-native-settings label > span {
	font-size: 12px;
	font-weight: 700;
	color: rgba(255, 255, 255, .68);
}

.gogo-native-settings select {
	width: 100%;
	height: 32px;
	padding: 0 30px 0 9px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 5px;
	background: #252529;
	color: #fff;
	font-size: 12px;
	outline: 0;
}

.gogo-native-error,
.gogo-native-ended {
	position: absolute;
	z-index: 32;
	left: 50%;
	top: 50%;
	width: min(420px, calc(100% - 36px));
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 10px;
	background: rgba(12, 12, 14, .94);
	text-align: center;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.gogo-native-error strong,
.gogo-native-ended strong {
	font-size: 17px;
	font-weight: 800;
}

.gogo-native-error > span {
	font-size: 13px;
	line-height: 1.55;
	color: #bdbdbd;
}

.gogo-native-error-actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.gogo-native-error-actions button,
.gogo-native-ended a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 15px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 7px;
	background: #202126;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.gogo-native-error-actions button:first-child,
.gogo-native-ended a {
	border-color: #e50914;
	background: #e50914;
}

.gogo-native-toast {
	position: absolute;
	z-index: 34;
	left: 50%;
	top: 14px;
	max-width: calc(100% - 36px);
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 6px;
	background: rgba(0, 0, 0, .72);
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transform: translate(-50%, -4px);
	pointer-events: none;
	transition: opacity .14s ease, transform .14s ease;
}

.gogo-native-toast.is-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

.gogo-native-seek-feedback {
	position: absolute;
	z-index: 26;
	top: 50%;
	min-width: 88px;
	padding: 9px 12px;
	margin-top: -20px;
	border-radius: 22px;
	background: rgba(0, 0, 0, .58);
	font-size: 12px;
	font-weight: 800;
	text-align: center;
	opacity: 0;
	transform: scale(.82);
	pointer-events: none;
}

.gogo-native-seek-feedback.is-left { left: 18%; }
.gogo-native-seek-feedback.is-right { right: 18%; }

.gogo-native-seek-feedback.is-show {
	animation: gogo-native-seek .5s ease;
}

@keyframes gogo-native-seek {
	0% { opacity: 0; transform: scale(.8); }
	28% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.04); }
}

/* Disable old wrapper overlays/toolbars only when the native player is active. */
.gogo-player-v2[data-player-mode="gogo-native"] > .gogo-player-stage > .gogo-player-brand,
.gogo-player-v2[data-player-mode="gogo-native"] > .gogo-player-stage > .gogo-player-status,
.gogo-player-v2[data-player-mode="gogo-native"] > .gogo-player-stage > .gogo-player-toolbar,
.gogo-player-v2[data-player-mode="gogo-native"] > .gogo-player-stage > .gogo-player-toast {
	display: none !important;
}

.gogo-player-v2[data-player-mode="gogo-native"],
.gogo-player-v2[data-player-mode="gogo-native"] > .gogo-player-stage,
.gogo-player-v2[data-player-mode="gogo-native"] .gogo-player-media,
.gogo-player-v2[data-player-mode="gogo-native"] .playerx,
.gogo-player-v2[data-player-mode="gogo-native"] .bigplayer,
.gogo-player-v2[data-player-mode="gogo-native"] .centerplayer {
	position: relative !important;
	inset: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	overflow: visible !important;
	background: #000 !important;
}

.gogo-player-v2[data-player-mode="gogo-native"] .gogo-player-media,
.gogo-player-v2[data-player-mode="gogo-native"] .centerplayer {
	aspect-ratio: auto !important;
}

.gogo-player-v2[data-player-mode="gogo-native"] .gogo-native-stage {
	overflow: hidden !important;
}

.gogo-movie-player-aspect > .gogo-native-player,
.centerplayer > .gogo-native-player,
.gogo-series-inline-pembed > .gogo-native-player {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}

.gogo-native-stage:fullscreen,
.gogo-native-stage:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	aspect-ratio: auto !important;
	background: #000;
}

.gogo-native-stage:fullscreen .gogo-native-video,
.gogo-native-stage:-webkit-full-screen .gogo-native-video {
	object-fit: contain;
}

@media (max-width: 860px) {
	.gogo-native-stage {
		width: 100% !important;
		max-width: 100vw !important;
		aspect-ratio: 16 / 9 !important;
	}

	.gogo-native-center-controls {
		gap: clamp(20px, 9vw, 42px);
	}

	.gogo-native-center-play {
		width: 60px;
		height: 60px;
	}

	.gogo-native-center-seek {
		width: 52px;
		height: 52px;
	}

	.gogo-native-center-seek > span {
		font-size: 15px;
	}

	.gogo-native-controls {
		padding: 31px 7px 5px;
	}

	.gogo-native-progress-wrap {
		margin: 0 4px 1px;
	}

	.gogo-native-controls button {
		width: 39px;
		height: 39px;
	}

	.gogo-native-controls button svg {
		width: 22px;
		height: 22px;
	}

	.gogo-native-volume {
		display: none;
	}

	.gogo-native-time {
		min-width: 82px;
		margin-left: 0;
		font-size: 10px;
		gap: 3px;
	}

	.gogo-native-settings {
		right: 7px;
		bottom: 49px;
		width: min(260px, calc(100% - 14px));
	}

	.gogo-native-error,
	.gogo-native-ended {
		width: min(340px, calc(100% - 24px));
		padding: 16px;
	}

	.gogo-native-seek-feedback {
		min-width: 76px;
		padding: 7px 9px;
		font-size: 11px;
	}

	.gogo-native-seek-feedback.is-left { left: 7%; }
	.gogo-native-seek-feedback.is-right { right: 7%; }
}

@media (max-width: 430px) {
	.gogo-native-center-controls {
		gap: 22px;
	}

	.gogo-native-center-play {
		width: 54px;
		height: 54px;
	}

	.gogo-native-center-seek {
		width: 46px;
		height: 46px;
	}

	.gogo-native-control-right button[data-gogo-action="pip"],
	.gogo-native-control-left button[data-gogo-action="mute"] {
		display: none;
	}

	.gogo-native-time {
		min-width: 70px;
		font-size: 9px;
	}

	.gogo-native-controls button {
		width: 36px;
		height: 36px;
	}

	.gogo-native-settings label {
		grid-template-columns: 82px minmax(0, 1fr);
	}
}
