.watch_video-app {
	--bg: #0f172a;
	--panel: #000000bf;
	--panel-2: #580f11e3;
	--text: #e5e7eb;
	--muted: #ffffff;
	--brand: #9f0000;
	--ring: rgba(238, 34, 34, 0.35);
	--radius: 1rem;
}
.watch_video-app {
	/*! max-width: 720px; */
	margin: 0 auto;
	display: grid;
	gap: 20px;
	background-image: url('../images/fondo-watchgarza.jpg');
	background-size: cover;
	background-repeat: no-repeat;
}

/* Reproductor principal */
.watch_player {
	max-width: 624px;
	margin-inline: auto;
	background: linear-gradient(180deg, #000000a3, #0a1220);
	border: 0px solid rgba(255, 255, 255, 0.06);
	border-radius: calc(var(--radius) + 4px);
	padding: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35),
		0 2px 0 rgba(255, 255, 255, 0.02) inset;
	width: 100%;
	margin-top: 25px;
}
.watch_player-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 6px 4px 10px 4px;
}
.watch_player-title {
	font-size: 18px;
	color: var(--muted);
	letter-spacing: 0.2px;
}
.watch_frame-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}
.watch_frame-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 12px;
	display: block;
}

/* Lista y tarjetas */
.watch_playlist {
	background: linear-gradient(180deg, #0000009e, #751012ab);
	/*! border-radius: calc(var(--radius) + 4px); */
	border: 1px solid rgba(255, 255, 255, 0.06);
	padding: 14px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.watch_playlist-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 8px;
}
.watch_playlist-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.2px;
	margin-bottom: 15px;
	color: var(--text);
}
.watch_grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
	gap: 12px;
	justify-content: center; /* centra el conjunto de columnas */
}
.watch_card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 0px solid rgba(255, 255, 255, 0.06);
	background: linear-gradient(180deg, var(--panel), #0000001f);
	border-radius: var(--radius);
	padding: 10px;
	transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.watch_card:hover {
	transform: translateY(-2px);
	border-color: rgba(238, 34, 34, 0.3);
	box-shadow: 0 10px 24px rgba(238, 34, 34, 0.4);
	cursor: pointer;
}
.watch_thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: radial-gradient(
			80% 80% at 50% 20%,
			rgba(238, 34, 34, 0.12),
			transparent 60%
		),
		linear-gradient(180deg, #200b0b, #1a0a0a);
	border: 1px solid rgba(255, 255, 255, 0.06);
	display: grid;
	place-items: center;
}
.watch_play-pill {
	position: absolute;
	bottom: 8px;
	left: 8px;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(6px);
}
.watch_meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.watch_meta .watch_title {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}
.watch_meta .watch_date {
	font-size: 12px;
	color: var(--muted);
}
.watch_card[aria-current='true'] {
	outline: 2px solid var(--brand);
	box-shadow: 0 0 0 6px var(--ring);
}
.watch_card:focus-visible {
	outline: 2px solid var(--brand);
	box-shadow: 0 0 0 6px var(--ring);
}

/* Paginado */
.watch_pagination {
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.watch_pager {
	display: flex;
	gap: 8px;
	align-items: center;
}
.watch_btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(180deg, #0f172a, #0b1220);
	color: var(--text);
	padding: 8px 12px;
	font-size: 14px;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease;
}
.watch_btn:hover {
	transform: translateY(-1px);
	border-color: rgba(34, 211, 238, 0.35);
}
.watch_btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}
.watch_page-info {
	font-size: 13px;
	color: var(--muted);
}

/* Bloque de datos oculto */
#episodesData {
	display: none;
}

/* === Share panel & wrapper (añadido) === */
.watch_player-wrap {
	position: relative;
	width: 100%;
	max-width: 624px;
	margin-inline: auto;
}

.watch_share {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 10px 25px 0;
	padding: 8px 12px;
	border: 0px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(180deg, #0000005c, #0000008c);
	backdrop-filter: blur(6px);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	color: var(--text);
}

.watch_share-title {
	font-size: 14px;
	color: var(--muted);
	margin-right: 4px;
}

.watch_share-btn {
	appearance: none;
	border: 0px solid rgba(255, 255, 255, 0.16);
	background: linear-gradient(180deg, var(--panel), #0000001f);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.watch_share-btn:hover {
	transform: translateY(-1px);
	border-color: rgba(238, 34, 34, 0.35);
	box-shadow: 0 10px 24px rgba(238, 34, 34, 0.25);
}

@media (min-width: 990px) {
	.watch_player-wrap {
		padding-right: 84px;
	}
	.watch_share {
		position: absolute;
		top: 50%;
		right: -72px;
		transform: translateY(-50%);
		flex-direction: column;
		gap: 10px;
		padding: 10px;
		width: 56px;
		height: auto;
		border-radius: 20px;
		margin: 0;
	}
	.watch_share-title {
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		margin: 0;
		font-size: 12px;
		letter-spacing: 0.5px;
	}
	.watch_share-btn {
		width: 44px;
		height: 44px;
	}
}

/* Toast */
.watch_toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%) translateY(20px);
	opacity: 0;
	background: #111827cc;
	color: #fff;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
	font-size: 14px;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 9999;
}
.watch_toast--show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
