.main-theme {
	--primary-color: #ff4500;
	--primary-color-dark: #c53200;
	--secondary-color: #ffaa00;
	--primary-text-color: #ffffff;
	--secondary-text-color: #000000;
	--text-shadow-color: #000000;
	--body-bg-color: #4f4f4f;
	--info-bg-color: #f0fff0;
	--hover-item-color: #f01f0080;
	--panel-bg: rgba(17, 17, 19, 0.96);
	--panel-border: rgba(255, 255, 255, 0.08);
	--muted-text: rgba(255, 255, 255, 0.58);
}

.alt-theme {
	--primary-color: #00ff7f;
	--primary-color-dark: #00a651;
	--secondary-color: #663399;
	--primary-text-color: #f2fff8;
	--secondary-text-color: #000000;
	--text-shadow-color: #ffffff;
	--body-bg-color: #4f4f4f;
	--info-bg-color: #f0fff0;
	--hover-item-color: #00fa9a80;
	--panel-bg: rgba(10, 22, 16, 0.96);
	--panel-border: rgba(255, 255, 255, 0.1);
	--muted-text: rgba(255, 255, 255, 0.6);
}

/*@media only screen and (max-width: 768px) {*/
html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	overscroll-behavior: none;
}

body {
	padding: 0;
	font-family: "Montserrat", sans-serif;
	color: var(--primary-text-color);
	background:
		radial-gradient(1100px 700px at 12% -10%, rgba(255, 69, 0, 0.22), transparent 60%),
		radial-gradient(900px 600px at 105% 105%, rgba(255, 170, 0, 0.12), transparent 55%),
		linear-gradient(160deg, #5c5c5e 0%, var(--body-bg-color) 45%, #363638 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

body.alt-theme {
	background:
		radial-gradient(1100px 700px at 12% -10%, rgba(0, 255, 127, 0.18), transparent 60%),
		radial-gradient(900px 600px at 105% 105%, rgba(102, 51, 153, 0.2), transparent 55%),
		linear-gradient(160deg, #4f5c56 0%, var(--body-bg-color) 45%, #2f3a35 100%);
}

* ul li {
	list-style: none;
	color: var(--primary-text-color);
}

.material-symbols-outlined {
	margin: 2px;
	color: var(--primary-text-color);
	text-align: center;
	font-variation-settings:
  	'FILL' 0,
  	'wght' 300,
  	'GRAD' 0,
  	'opsz' 48
}

.main {
	position: relative;
	height: 100vh;
	display: flex;
/*	flex-wrap: wrap;*/
	overflow: hidden;
}

.panel-channels {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 18vw;
	min-width: 9rem;
	height: 100vh;
	transform: translateX(-14vw);
	transition: transform .5s;
}

.panel-channels.is-open {
	transform: translateX(0);
}

.panel-channels:hover {
	transform: translateX(0);
}

.panel-channels:hover .icon {
	z-index: -1;
	transform: scale(1.6);
	opacity: 0.35;
}

.panel-channels .main-list {
	margin: 0;
	padding: 0 0.4rem 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: flex-start;
	gap: 0.5rem;
	height: 100vh;
	width: 0;
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	background-color: rgba(18, 18, 20, 0.97);
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
	box-shadow: 0.5rem 0 1.5rem rgba(0, 0, 0, 0.35);
}

.panel-channels .main-list::-webkit-scrollbar {
	width: 6px;
}

.panel-channels .main-list::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.25);
	border-radius: 3px;
}

.panel-channels li {
	cursor: pointer;
	margin-top: 1vw;
	min-width: 100px;
	border-radius: 50px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;

}

.panel-channels .logo {
	display: flex;
	width: 64px;
	border-radius: 50%;	
	align-items: center;
	margin: 8px;
}

.panel-channels .icon {
	display: flex;
	flex: 0 0 4vw;
	align-items: center;
	justify-content: center;
	width: 4vw;
	min-width: 3.5rem;
	height: 100vh;
	cursor: pointer;
	background: linear-gradient(180deg, var(--primary-color), var(--primary-color-dark));
	color: var(--primary-text-color);
	text-shadow: 0.063rem 0px var(--text-shadow-color);
	transition: transform .5s, opacity .5s, background-color .3s;
}

.panel-channels .icon .material-symbols-outlined {
	font-size: 3.125rem;
}

.panel-channels .icon:hover,
.panel-channels .icon:focus-visible {
	outline: none;
	background-color: var(--hover-item-color);
}

.panel-channels::-webkit-scrollbar {
  width: 1em;
}

.panel-center {
	width: 100%;
	height: 100vh;
}

.panel-center .top {
	display: none;
}
body.is-playing .panel-center .top {
	display: block;
	height: 100vh;
	width: 100%;
}
body.is-playing .search-hero {
	display: none;
}

/* Hero de búsqueda general: la puerta de entrada principal en lugar del
   reproductor, que ahora solo se muestra cuando hay contenido en reproducción
   (body.is-playing sincronizado desde JS). */
.search-hero {
	height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	background:
		radial-gradient(1100px 640px at 50% -12%, rgba(255, 69, 0, 0.22), transparent 62%),
		radial-gradient(900px 560px at 50% 112%, rgba(255, 170, 0, 0.13), transparent 58%),
		linear-gradient(180deg, #14141a 0%, #0c0c10 100%);
}

.search-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	width: min(46rem, 92vw);
	text-align: center;
	transform: translateY(-3vh);
}

.search-hero-logo {
	font-size: clamp(3.4rem, 7.4vw, 5.8rem);
	font-weight: 900;
	letter-spacing: 0.05em;
	color: #fff;
	font-style: italic;
	text-shadow: 0 10px 44px rgba(255, 69, 0, 0.38);
}

.search-hero-accent {
	color: var(--primary-color);
}

.search-hero-tagline {
	font-size: clamp(0.7rem, 1.15vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.search-hero-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 999px;
	padding: 0.5rem 0.55rem 0.5rem 1.35rem;
	margin-top: 0.4rem;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.search-hero-form:focus-within {
	border-color: rgba(255, 170, 0, 0.65);
	box-shadow:
		0 0 0 3px rgba(255, 170, 0, 0.18),
		0 24px 70px rgba(255, 69, 0, 0.28);
}

.search-hero-icon {
	font-size: 1.65rem;
	color: rgba(255, 255, 255, 0.6);
}

.search-hero-form input {
	flex: 1;
	background: transparent;
	border: 0;
	outline: 0;
	color: #fff;
	font-size: 1.12rem;
	font-family: inherit;
}

.search-hero-form input::placeholder {
	color: rgba(255, 255, 255, 0.38);
}

.search-hero-submit {
	border: 0;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: #170b00;
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.7rem 1.5rem;
	cursor: pointer;
	transition: transform 0.15s, filter 0.2s;
}

.search-hero-submit:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.search-utility-row {
	margin-bottom: 0.35rem;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.search-trending-row {
	margin-top: 0.25rem;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.search-trending-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.05rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.86);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.search-trending-btn .material-symbols-outlined {
	font-size: 1.35rem;
	color: var(--secondary-color);
}

.search-trending-btn:hover {
	background: rgba(255, 170, 0, 0.14);
	border-color: rgba(255, 170, 0, 0.45);
	transform: translateY(-1px);
}

.search-trending-btn:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 2px;
}

.search-trending-btn-label {
	white-space: nowrap;
}

/* ---- Explorar por género (chips bajo las tendencias) ---- */
.search-genres-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.search-genres-toggle {
	display: inline-flex;
	gap: 0.35rem;
	padding: 0.2rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.05);
}

.search-genres-toggle-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.32rem 0.85rem;
	border-radius: 0.7rem;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.search-genres-toggle-btn:hover {
	color: rgba(255, 255, 255, 0.92);
}

.search-genres-toggle-btn.is-active {
	background: var(--secondary-color);
	color: #161616;
	box-shadow: 0 0.25rem 0.9rem rgba(255, 170, 0, 0.4);
}

.search-genres-toggle-btn:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 1px;
}

.search-genres-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	justify-content: center;
	max-width: 57rem;
	padding: 0 0.75rem;
	box-sizing: border-box;
}

.search-genre-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.75);
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 0.3rem 0.68rem;
	border-radius: 9999px;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.search-genre-btn:hover {
	background: rgba(255, 170, 0, 0.1);
	border-color: rgba(255, 170, 0, 0.4);
	color: #fff;
	transform: translateY(-1px);
}

.search-genre-btn:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 1px;
}

.search-genre-btn:active {
	transform: scale(0.97);
}

.search-hero-submit:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 2px;
}

 /*Hide scrollbar for Chrome, Safari and Opera */
.main-content::-webkit-scrollbar {
  display: none;
}

 /*Hide scrollbar for IE, Edge and Firefox */
.main-content {
  -ms-overflow-style: none;   IE and Edge 
  scrollbar-width: none;  /* Firefox */
}

/*-----------------------------------------------------------------------------------------------*/

/* ---- Configuración (barra lateral derecha) ---- */
.panel-right {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 10;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 18vw;
	min-width: 9rem;
	height: 100vh;
	transform: translateX(14vw);
	transition: transform .5s;
}

.panel-right.is-open {
	transform: translateX(0);
}

.panel-right:hover {
	transform: translateX(0);
}

.panel-right:hover .icon-config {
	z-index: -1;
	transform: scale(1.6);
	opacity: 0.35;
}

.main-content-r {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	overflow-y: auto;
	background: linear-gradient(180deg, var(--primary-color), var(--primary-color-dark));
}

.icon-config {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 0 0 4vw;
	width: 4vw;
	min-width: 3.5rem;
	height: 100vh;
	padding: 0;
	border: 0;
	background: linear-gradient(180deg, var(--primary-color), var(--primary-color-dark));
	color: var(--primary-text-color);
	cursor: pointer;
	text-shadow: 0.063rem 0px var(--text-shadow-color);
	transition: transform .5s, opacity .5s, background-color .3s;
}

.icon-config .material-symbols-outlined {
	font-size: 3.125rem;
}

.icon-config:hover,
.icon-config:focus-visible {
	outline: none;
	background-color: var(--hover-item-color);
}

.panel-right.is-open .icon-config {
	background-color: var(--hover-item-color);
}

.separator {
	width: 12vw;
	height: .3vh;
	background-color: var(--secondary-color);
}

.profile-image {
	background-origin: 0 0;
	margin: 0.625rem;
	width: 6.25rem;
	height: 6.25rem;
	background-color: var(--secondary-color);
	background-image: url("https://cdn-icons-png.flaticon.com/512/1177/1177568.png");
	background-size: cover;
	box-shadow: 0px 0px 1rem var(--secondary-color);
	border-radius: 3.125rem;
}

.username {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 900;
	font-style: italic;
	color: var(--primary-text-color);
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- Ajustes centralizados (panel derecho) ---- */
.cfg-menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.4rem 1rem;
	color: var(--primary-text-color);
}

.cfg-group {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.cfg-label {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--secondary-text-color, #f5f5f5);
	opacity: 0.85;
	white-space: normal;
}

.cfg-select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-width: 0;
	padding: 0.4rem 0.4rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.35rem;
	background-color: #16202a;
	color: #f5f5f5;
	font: inherit;
	font-size: 0.78rem;
	cursor: pointer;
	color-scheme: dark;
}

.cfg-select option {
	background-color: #16202a;
	color: #f5f5f5;
}

.cfg-select:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 1px;
}

.cfg-aspect,
.cfg-backend {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.25rem;
	width: 100%;
}

.cfg-aspect-btn,
.cfg-backend-btn {
	padding: 0.38rem 0.15rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.35rem;
	background-color: rgba(255, 255, 255, 0.06);
	color: var(--primary-text-color);
	font: inherit;
	font-size: 0.68rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
}

.cfg-aspect-btn:hover:not(:disabled),
.cfg-backend-btn:hover:not(:disabled) {
	background-color: rgba(255, 255, 255, 0.14);
}

.cfg-aspect-btn:focus-visible,
.cfg-backend-btn:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 1px;
}

.cfg-aspect-btn.is-active,
.cfg-backend-btn.is-active {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	color: #0b0b0b;
	font-weight: 800;
}

.cfg-backend-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.cfg-position,
.cfg-aspect-row {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.cfg-position {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.3rem;
	width: 100%;
}

.cfg-position-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.45rem 0.4rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.35rem;
	background-color: rgba(255, 255, 255, 0.06);
	color: var(--primary-text-color);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
}

.cfg-position-btn .material-symbols-outlined {
	font-size: 1rem;
	color: var(--secondary-color);
}

.cfg-position-btn:hover {
	background-color: rgba(255, 255, 255, 0.14);
}

.cfg-position-btn:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 1px;
}

.cfg-position-btn.is-active {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	color: #0b0b0b;
	font-weight: 800;
}

.cfg-position-btn.is-active .material-symbols-outlined {
	color: #0b0b0b;
}

.cfg-slider-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cfg-slider {
	flex: 1 1 auto;
	min-width: 0;
	appearance: none;
	-webkit-appearance: none;
	height: 0.35rem;
	border-radius: 0.2rem;
	background: linear-gradient(90deg, rgba(255, 170, 0, 0.18) 0%, rgba(255, 170, 0, 0.55) 50%, rgba(255, 170, 0, 0.18) 100%);
	outline: none;
	cursor: pointer;
}

.cfg-slider::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--secondary-color);
	border: 2px solid #0b0b0b;
	box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.6);
	cursor: pointer;
}

.cfg-slider::-moz-range-thumb {
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--secondary-color);
	border: 2px solid #0b0b0b;
	box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.6);
	cursor: pointer;
}

.cfg-slider:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px rgba(255, 170, 0, 0.7);
}

.cfg-slider:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 4px rgba(255, 170, 0, 0.7);
}

.cfg-slider-value {
	flex: 0 0 auto;
	min-width: 2.4rem;
	text-align: right;
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--secondary-color);
}

.cfg-input {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 0.4rem 0.4rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.35rem;
	background-color: #16202a;
	color: #f5f5f5;
	font: inherit;
	font-size: 0.82rem;
	color-scheme: dark;
}

.cfg-input:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 1px;
}

.cfg-input.is-invalid {
	border-color: #e5484d;
	background-color: rgba(229, 72, 77, 0.12);
}

.cfg-note {
	margin: 0.15rem 0 0;
	font-size: 0.65rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.55);
}

.cfg-remote-pin {
	display: inline-block;
	margin: 0.35rem 0 0.2rem;
	padding: 0.3rem 0.6rem;
	border: 1px solid rgba(255, 170, 0, 0.55);
	border-radius: 0.35rem;
	background: rgba(255, 69, 0, 0.14);
	color: var(--secondary-color);
	font-family: 'Montserrat', sans-serif;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	font-variant-numeric: tabular-nums;
}

.delta-pair-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(4px);
}

.delta-pair-overlay[hidden] { display: none !important; }

.delta-pair-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	width: min(32rem, 92vw);
	padding: clamp(1.4rem, 3vw, 2.5rem);
	border: 1px solid rgba(255, 170, 0, 0.55);
	border-radius: 1.25rem;
	background: rgba(17, 17, 19, 0.98);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
	text-align: center;
}

.delta-pair-card > .material-symbols-outlined {
	font-size: 3rem;
	color: var(--secondary-color);
}

.delta-pair-card h2 {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(1.3rem, 3vw, 2.1rem);
	font-weight: 800;
}

.delta-pair-card p {
	margin: 0;
	font-size: clamp(0.9rem, 1.8vw, 1.15rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

.delta-pair-pin {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(3rem, 10vw, 6rem);
	font-weight: 800;
	letter-spacing: 0.3em;
	padding-left: 0.3em;
	line-height: 1.1;
	color: var(--secondary-color);
	font-variant-numeric: tabular-nums;
}

.delta-pair-device {
	font-size: 0.85rem !important;
	word-break: break-all;
	opacity: 0.7;
}

.cfg-reset {
	align-self: flex-start;
	padding: 0.3rem 0.4rem;
	border: 0;
	border-radius: 0.3rem;
	background: transparent;
	color: var(--secondary-color);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.cfg-reset:hover {
	text-decoration: underline;
}

/* ---- Relación de aspecto (vídeo del reproductor) ---- */
.player-video.aspect-fit {
	object-fit: contain;
}

.player-video.aspect-fill {
	object-fit: cover;
}

.player-video.aspect-stretch {
	object-fit: fill;
}

.player-video.aspect-original {
	object-fit: none;
	object-position: center center;
}

.player-video.aspect-custom {
	inset: 0;
	margin: auto;
	width: auto;
	height: auto;
	aspect-ratio: var(--custom-aspect, 1.7778);
	max-width: 100%;
	max-height: 100%;
	object-fit: fill;
	transform: scaleX(var(--pixel-ratio, 1)) scaleY(var(--pixel-ratio-y, 1));
}

@media only screen and (min-width: 800px) {

	.main {
		flex-wrap: nowrap;
		justify-content: flex-start;
/*		overflow-y: hidden;*/
	}

	.panel-center {
		order: 2;
		min-width: 92.5vw;
		height: 100%;		
	}

	body.is-playing .panel-center .top {
		padding: 0;
		display: flex;
		justify-content: center;
		height: 90%;
		min-width: 4vw;
	}

	.panel-center .top .player-container {
		min-width: 4vw;
	}

	.info-header {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		border-radius: 0.625rem 0.625rem 0px 0;
		height: 8vh;
		background: linear-gradient(120deg, var(--primary-color), var(--primary-color-dark));
		text-shadow: 0.063rem 0px var(--text-shadow-color);
		transition: all 1s;
	}

	 /*Hide scrollbar for Chrome, Safari and Opera */
	
	/*.main-list::-webkit-scrollbar {
	  display: none;
	}*/

	.panel-channels {
		z-index: 10;
	}

	.panel-channels .icon {
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: rgba(0, 0, 0, 0.5);
/*		background-color: var(--primary-color);*/
		width: 4vw;
		height: 100vh;
		transition: .5s;
	}

	/*.panel-channels:hover {
		transform: translateX(50vw);
	}*/

	.panel-channels .main-list, .sub-list {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: center;
		align-content: flex-start;
/*		min-width: 650px;*/
		height: 100vh;
/*		background-color: var(--primary-color);*/
		background-color: rgba(18, 18, 20, 0.97);
		border-color: var(--primary-color);
		overflow-y: auto;
		overflow-x: hidden;
	}

	.sub-list {
		display: none;
	}

	.main-list li:hover img {
		transform: scale(110%);
	}

	.main-list li:hover {
/*		background-color: var(--hover-item-color);*/
		box-shadow: 0 2px 8px 4px var(--secondary-color);
		font-weight: bold;
	}

	.panel-channels .main-list li {
		cursor: pointer;
		border-radius:  10px 10px 10px 10px;
		display: flex;
		flex-wrap: wrap;
		flex-direction: column;
		text-align: center;
		align-items: center;
		justify-content: start;
/*		margin-top: 0;*/
/*		width: 80px;*/
		font-size: 0.65rem;
	}

	.panel-channels .logo {
/*		margin-right: 0.625rem;*/
		width: 48px;
		border-radius: 50%;
		transition: .5s;	
	}

}

/*-----------------------------------------------------------------------------------------------*/
/* Paneles deslizables (escritorio): se abren como capas superpuestas.
   Al estar fuera del flujo flex, el reproductor nunca se desplaza y queda
   siempre centrado, con la misma separacion a ambos lados. */
@media only screen and (min-width: 800px) {

	.panel-center {
		width: 100%;
		min-width: 0;
	}

	/* Encuadre del reproductor: el marco se ajusta al video y deja de
	   mostrar las franjas de color de depuracion. */
	.panel-center .top {
		align-items: center;
	}

	.panel-center .top .player-container {
		background-color: #0b0b0d;
		border-radius: 0.75rem;
		overflow: hidden;
		box-shadow:
			0 1.5rem 3rem rgba(0, 0, 0, 0.5),
			0 0 0 1px rgba(255, 255, 255, 0.07),
			0 0 70px rgba(255, 69, 0, 0.12);
	}

	/* Ambos paneles miden lo mismo (18vw = 4vw de tirador + 14vw de contenido).
	   El reproductor ocupa 60vw centrado (20vw a 80vw), asi que al abrirse
	   quedan 2vw de separacion a cada lado, siempre iguales. */
	.panel-channels {
		position: absolute;
		top: 0;
		left: 0;
		width: 18vw;
		height: 100vh;
		transform: translateX(-14vw);
		transition: transform 0.5s;
	}

	.panel-channels.is-open {
		transform: translateX(0);
	}

	.panel-channels .main-list {
		flex: 1 1 0;
		width: 0;
		min-width: 0;
		justify-content: center;
		align-content: flex-start;
		scrollbar-width: thin;
		scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
	}

	.panel-channels .main-list::-webkit-scrollbar {
		width: 6px;
	}

	.panel-channels .main-list::-webkit-scrollbar-thumb {
		background-color: rgba(255, 255, 255, 0.3);
		border-radius: 3px;
	}

	.panel-channels .main-list::-webkit-scrollbar-track {
		background-color: transparent;
	}

	.panel-channels .icon {
		flex: 0 0 4vw;
		transition: transform 0.5s, opacity 0.5s;
	}

	.panel-channels .main-list {
		box-shadow: 0.5rem 0 1.5rem rgba(0, 0, 0, 0.35);
	}

	.panel-right {
		position: absolute;
		top: 0;
		right: 0;
		width: 18vw;
		height: 100vh;
		transform: translateX(14vw);
		transition: transform 0.5s;
		z-index: 10;
	}

	.panel-right.is-open {
		transform: translateX(0);
	}

	.panel-right .icon-config {
		flex: 0 0 4vw;
		width: 4vw;
		min-width: 0;
		height: 100vh;
	}

	.panel-right .main-content-r {
		width: 14vw;
		min-width: 0;
		box-shadow: -0.5rem 0 1.5rem rgba(0, 0, 0, 0.35);
	}

	.panel-right .cfg-menu {
		max-width: 100%;
	}
}
/*-----------------------------------------------------------------------------------------------*/
/* Navegacion jerarquica del panel de canales (scraper LaMovie) */

/* Barra de navegacion / migas de pan */
.panel-channels .main-list .channel-nav {
	position: sticky;
	top: 0;
	z-index: 6;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.45rem 0.5rem;
	box-sizing: border-box;
	background: linear-gradient(180deg, rgba(18, 18, 22, 0.98) 72%, rgba(18, 18, 22, 0));
	border-radius: 0;
	text-align: left;
	cursor: pointer;
	outline: none;
}

.panel-channels .main-list .channel-nav:hover,
.panel-channels .main-list .channel-nav:focus-visible {
	background: linear-gradient(180deg, rgba(34, 34, 40, 0.98) 72%, rgba(34, 34, 40, 0));
}

.panel-channels .main-list .channel-nav:focus-visible {
	box-shadow: 0 0 0 2px var(--secondary-color, #ffaa00) inset;
}

.panel-channels .main-list.media-grid .channel-nav,
.panel-channels .main-list.menu-grid .channel-nav,
.panel-channels .main-list.links-grid .channel-nav {
	grid-column: 1 / -1;
}

.panel-channels .main-list:not(.media-grid):not(.menu-grid):not(.links-grid) .channel-nav {
	flex: 0 0 100%;
}

.channel-nav[hidden] {
	display: none;
}

.channel-nav .nav-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 0.35rem;
	height: 1.9rem;
	padding: 0 0.75rem 0 0.45rem;
	border: 0;
	border-radius: 9999px;
	background: var(--secondary-color, #ffaa00);
	color: #161616;
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.channel-nav .nav-back:hover {
	background: #ffc94d;
	transform: translateX(-3px);
	box-shadow: 0 0.35rem 0.9rem rgba(255, 170, 0, 0.35);
}

.channel-nav .nav-back:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px #161616, 0 0 0 5px var(--secondary-color, #ffaa00);
}

.channel-nav .nav-back .material-symbols-outlined {
	margin: 0;
	font-size: 1.05rem;
}

.channel-nav .nav-back-label {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.channel-nav .nav-title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
}

/* Listados de menu (LaMovie, generos, anos) */
.panel-channels .main-list.menu-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	align-content: start;
	padding: 0.75rem;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
}

.panel-channels .main-list.menu-grid .menu-item {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
	min-width: 0;
	margin: 0;
	padding: 0.6rem 0.5rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	text-align: left;
	cursor: pointer;
	transition: background 0.25s, transform 0.25s;
}

.panel-channels .main-list.menu-grid .menu-item:hover,
.panel-channels .main-list.menu-grid .menu-item:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	transform: translateX(2px);
	outline: none;
}

.panel-channels .main-list.menu-grid .menu-item:focus-visible {
	box-shadow: 0 0 0 2px var(--primary-color);
}

.panel-channels .main-list.menu-grid .menu-item .material-symbols-outlined {
	flex: 0 0 auto;
	margin: 0;
	font-size: 1.1rem;
}

.panel-channels .main-list.menu-grid .menu-item .menu-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.7rem;
	font-weight: 600;
}

.panel-channels .main-list.menu-grid .menu-item .menu-arrow {
	opacity: 0.5;
	font-size: 1rem;
}

/* Grilla de contenido (peliculas, series, animes, episodios) */
.panel-channels .main-list.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 0.75rem;
	align-content: start;
	justify-content: stretch;
	padding: 0.75rem;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
}

.panel-channels .main-list.media-grid .media-card {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0.35rem;
	min-width: 0;
	margin: 0;
	padding: 0.3rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.04);
	text-align: center;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.panel-channels .main-list.media-grid .media-card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.panel-channels .main-list.media-grid .media-card .poster {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 0.35rem;
	background: #111;
	transition: transform 0.35s;
}

.panel-channels .main-list.media-grid .media-card .poster.poster-missing {
	visibility: hidden;
}

.panel-channels .main-list.media-grid .media-card:hover .poster {
	transform: scale(1.04);
}

.panel-channels .main-list.media-grid .media-card .name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.6rem;
	line-height: 1.25;
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
}

.panel-channels .main-list.media-grid .media-card .meta {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.53rem;
	line-height: 1.2;
	text-align: center;
	color: rgba(255, 255, 255, 0.55);
}

/* Enlaces de servidores */
.panel-channels .main-list.links-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	align-content: start;
	padding: 0.75rem;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
}

.panel-channels .main-list.links-grid .link-item {
	display: block;
	min-width: 0;
	margin: 0;
	padding: 0;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	text-align: left;
	overflow: hidden;
}

.panel-channels .main-list.links-grid .link-item a {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.5rem;
	color: #fff;
	text-decoration: none;
}

.panel-channels .main-list.links-grid .link-item a:hover {
	background: rgba(255, 255, 255, 0.12);
}

.panel-channels .main-list.links-grid .link-server {
	flex: 0 0 auto;
	max-width: 45%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: capitalize;
}

.panel-channels .main-list.links-grid .link-meta {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.58rem;
	opacity: 0.7;
}

.panel-channels .main-list.links-grid .material-symbols-outlined {
	flex: 0 0 auto;
	margin: 0;
	font-size: 1rem;
	opacity: 0.8;
}

/* Buscador */
.panel-channels .main-list.menu-grid .search-box {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	min-width: 0;
	margin: 0;
	padding: 0.25rem 0;
	border-radius: 0;
	background: transparent;
	text-align: left;
}

.panel-channels .main-list.menu-grid .search-box input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.5rem 0.6rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.4rem;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font: inherit;
	font-size: 0.7rem;
	outline: none;
}

.panel-channels .main-list.menu-grid .search-box input:focus {
	border-color: var(--primary-color);
}

.panel-channels .main-list.menu-grid .search-box button {
	flex: 0 0 auto;
	padding: 0.5rem 0.7rem;
	border: 0;
	border-radius: 0.4rem;
	background: var(--primary-color);
	color: #fff;
	font: inherit;
	font-size: 0.7rem;
	font-weight: 700;
	cursor: pointer;
}

/* Mensajes y boton de paginacion */
.panel-channels .main-list .media-empty {
	display: block;
	grid-column: 1 / -1;
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	padding: 1rem 0.5rem;
	border-radius: 0;
	text-align: center;
	font-size: 0.7rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.6);
}

/* Loader inline para el panel lateral mientras se cargan filtros/menús */
.panel-channels .main-list .media-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	text-align: center;
	font-size: 0.72rem;
}

.panel-channels .main-list .media-loader-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
}

.panel-channels .main-list .media-loader .loading-spinner {
	width: 1.4rem;
	height: 1.4rem;
	border-width: 0.18rem;
}

.panel-channels .main-list .media-loader .loading-spinner[role="status"] {
	display: inline-block;
}

.panel-channels .main-list .load-more {
	grid-column: 1 / -1;
	flex: 0 0 100%;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	min-width: 0;
	margin: 0;
	padding: 0.25rem 0 0.5rem;
	border-radius: 0;
	background: transparent;
}

.panel-channels .main-list .load-more button {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0.4rem;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font: inherit;
	font-size: 0.68rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.25s;
}

.panel-channels .main-list .load-more button:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.14);
}

.panel-channels .main-list .load-more button:disabled {
	opacity: 0.6;
	cursor: default;
}

/*-----------------------------------------------------------------------------------------------*/
/* Panel central multi-usos: ocupa el hueco entre los paneles laterales (18vw por lado).
   Ficha superior con poster + Ver a la izquierda e informacion a la derecha,
   y debajo la grilla de contenido para seleccionar. */

.panel-center .bottom {
	display: none;
}

.panel-center .top {
	height: 100%;
}

/* Oscurece todo salvo el panel inferior cuando este está levantado.
   La página principal (panel cerrado o minimizado) no se oscurece. */
.content-dim {
	position: fixed;
	inset: 0;
	z-index: 25;
	background: rgba(0, 0, 0, 0.62);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.content-dimmed .content-dim {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.content-panel {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100vw - 36vw - 1rem);
	height: calc(100vh - 2rem);
	max-height: calc(100vh - 2rem);
	display: flex;
	flex-direction: column;
	background: rgba(14, 14, 18, 0.97);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.9rem;
	box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.65);
	overflow: hidden;
	z-index: 30;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.98);
	transition: top 0.35s ease, bottom 0.35s ease, height 0.35s ease, max-height 0.35s ease, transform 0.5s ease;
}

.content-panel.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}

/* Panel minimizado durante la reproducción: anclado abajo y totalmente contraído;
   solo sobresale la barra naranja del encabezado. Al elegir "Ver" el panel queda
   contraído; solo se despliega COMPLETO (si no sube del todo no se ve en TV):
     - hover con el ratón o foco visible en los botones de la cabecera,
     - pulsar ↓ desde el reproductor (web/Android TV), o
     - si fallan todos los enlaces (el JS restaura el panel). */
.content-panel.is-minimized {
	top: auto;
	bottom: 0;
	height: calc(100vh - 3.5rem);
	max-height: calc(100vh - 3.5rem);
	transform: translate(-50%, calc(100% - 3.5rem));
	border-radius: 0.9rem 0.9rem 0 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0;
	transition: transform .5s ease;
}

.content-panel.is-minimized .content-panel-header {
	flex: 0 0 auto;
	padding: 0.5rem 0.9rem;
	border-radius: 0.9rem 0.9rem 0 0;
}

/* Mientras el panel se desliza hacia afuera (tras elegir un enlace o al
   colapsar por hover), la barra desaparece; vuelve al llegar a su posición oculta. */
.content-panel.is-minimized.is-collapsing .content-panel-header {
	opacity: 0;
	pointer-events: none;
}

/* Durante la ventana de colapso/enfriamiento no se permite reabrir por hover,
   así el cursor que atraviesa el panel en movimiento no lo hace parpadear. */
.content-panel.is-minimized.is-collapsing:hover {
	transform: translate(-50%, calc(100% - 3.5rem));
	border-radius: 0.9rem 0.9rem 0 0;
}

/* En ratón: hover abre el panel. En teclado/mando: solo con ↓ explícita desde
   el reproductor (la clase .is-revealed) o foco visible en los botones de la
   cabecera. Nunca se despliega solo durante los intentos de reproducción.
   En cualquier caso el despliegue es TOTAL (100vh - barra naranja). */
.content-panel.is-minimized:not(.is-collapsing):hover,
.content-panel.is-minimized:not(.is-collapsing):has(.content-panel-header button:focus-visible),
.content-panel.is-minimized:not(.is-collapsing).is-revealed {
	bottom: 0;
	transform: translate(-50%, 0);
	border-radius: 0.9rem 0.9rem 0 0;
	overflow: hidden;
	visibility: visible;
	pointer-events: auto;
}

.content-panel-header {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex: 0 0 auto;
	padding: 0.7rem 1rem;
	background: linear-gradient(135deg, rgba(255, 69, 0, 0.95), rgba(197, 50, 0, 0.95));
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.content-panel-header button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	cursor: pointer;
	transition: background 0.25s, transform 0.25s;
}

.content-panel-header button:hover {
	background: rgba(0, 0, 0, 0.45);
	transform: scale(1.05);
}

.content-panel-header button[hidden] {
	display: none;
}

.content-panel-header .material-symbols-outlined {
	margin: 0;
	font-size: 1.2rem;
}

.content-panel-heading {
	flex: 1 1 auto;
	min-width: 0;
}

.content-panel-title {
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 1.1rem;
	font-style: italic;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.content-panel-subtitle {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
}

.content-panel-body {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

/* Flechas circulares para navegar la selección en móvil */
.content-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	border: 1px solid rgba(255, 170, 0, 0.45);
	border-radius: 50%;
	background: rgba(18, 16, 12, 0.82);
	color: #ffaa00;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
	transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}

.content-nav .material-symbols-outlined {
	margin: 0;
	font-size: 1.8rem;
	pointer-events: none;
}

.content-nav:hover,
.content-nav:focus-visible {
	outline: none;
	background: rgba(255, 170, 0, 0.18);
	border-color: #ffaa00;
	color: #ffc04d;
	transform: translateY(-50%) scale(1.06);
}

.content-nav--prev {
	left: 0.4rem;
}

.content-nav--next {
	right: 0.4rem;
}

@media only screen and (max-width: 799px),
	only screen and (pointer: coarse) {
	.content-nav {
		display: flex;
	}
}

/* Ficha del elemento seleccionado */
.content-feature {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 1.6vw, 1.6rem);
	flex: 0 0 auto;
	padding: clamp(0.8rem, 1.4vw, 1.3rem) clamp(0.9rem, 1.5vw, 1.4rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
	isolation: isolate;
}

.content-feature-backdrop {
	position: absolute;
	inset: 0;
	background-color: #0b0e14;
	background-position: center 22%;
	background-size: cover;
	pointer-events: none;
	z-index: 0;
}

.content-feature-media {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 0 0 auto;
	width: clamp(7.5rem, 9vw, 10rem);
	z-index: 1;
}

.content-feature-poster {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 0.55rem;
	background: #111;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

/* Stills de episodios: 16:9 y tamaño mayor para la ficha destacada */
.content-feature-media:has(.content-feature-poster.is-still) {
	width: clamp(16rem, 22vw, 24rem);
}

.content-feature-poster.is-still {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.content-feature-poster[hidden] {
	display: none;
}

.content-feature-info {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.45rem;
	flex: 1 1 auto;
	min-width: 0;
	z-index: 1;
}

.content-feature-title {
	margin: 0;
	font-size: clamp(1.5rem, 1.75vw, 2.1rem);
	font-weight: 800;
	line-height: 1.12;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	overflow-wrap: anywhere;
}

.content-feature-meta {
	font-size: clamp(0.8rem, 0.95vw, 1rem);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.62);
}

.content-feature-overview {
	margin: 0;
	display: block;
	max-height: clamp(4.5rem, 12vh, 10.5rem);
	overflow: hidden;
	font-size: clamp(0.9rem, 1.05vw, 1.1rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.content-overview-inner {
	display: block;
	will-change: transform;
}

/* Grilla de contenido */
/* El listado se oculta solo mientras se carga la vista destino (elegir
   Ver/Tráiler). El modal de acciones flotante NO oculta la grilla. */
.choice-open .content-grid {
	display: none;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: clamp(0.7rem, 1.2vw, 1rem);
	align-content: start;
	flex: 1 1 auto;
	min-height: 0;
	padding: clamp(0.8rem, 1.3vw, 1.2rem);
	overflow-x: hidden;
	overflow-y: auto;
	scroll-behavior: smooth;
	scroll-padding: 0.8rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.content-grid::-webkit-scrollbar {
	width: 8px;
}

.content-grid::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.25);
	border-radius: 4px;
}

.content-grid::-webkit-scrollbar-track {
	background-color: transparent;
}

.content-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
	padding: 0.35rem;
	border-radius: 0.55rem;
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	outline: none;
	transition:
		background 0.3s ease,
		transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
		box-shadow 0.3s ease,
		outline-color 0.3s ease;
}

.content-card:hover,
.content-card:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

.card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 0.4rem;
	background: #111;
}

.content-card .poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #111;
	transition: transform 0.35s;
}

/* Tarjetas de episodios: captura de escena (16:9) en lugar del póster vertical */
.content-card.kind-episode .card-media {
	aspect-ratio: 16 / 9;
	background: #0e0e12;
}

/* Sin póster: icono no_photography de Material Symbols, bien grande. */
.content-card .poster.poster-missing,
.content-feature-poster.poster-missing,
.content-actions-poster-img.poster-missing {
	display: none;
}

.poster-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 2 / 3;
	border-radius: inherit;
	background: linear-gradient(135deg, #1a2531, #111820);
	color: #7b8794;
	font-size: clamp(2.75rem, 9vw, 5rem);
	line-height: 1;
	user-select: none;
}

.content-feature-media .poster-placeholder {
	font-size: clamp(3rem, 7vw, 5.5rem);
	border-radius: 0.55rem;
}

.content-actions-poster .poster-placeholder {
	font-size: clamp(3.5rem, 10vw, 6.5rem);
	border-radius: 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-card.kind-episode .card-media.media-missing::after {
	content: "Sin captura del episodio";
}

.content-card:hover .poster {
	transform: scale(1.03);
}

.card-rating {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	display: flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.22rem 0.42rem;
	border-radius: 0.35rem;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: clamp(0.7rem, 0.8vw, 0.8rem);
	font-weight: 800;
	line-height: 1;
	pointer-events: none;
	z-index: 2;
}

.card-rating .material-symbols-outlined {
	font-size: 0.75rem;
	color: #ffd54a;
}

/* Chip de idioma/variante del contenido (Castellano, Latino, Sub...) en la
   esquina superior izquierda del póster. */
.card-variant {
	position: absolute;
	top: 0.35rem;
	left: 0.35rem;
	display: flex;
	gap: 0.1rem;
	padding: 0.22rem 0.3rem;
	border-radius: 0.35rem;
	background: rgba(0, 0, 0, 0.72);
	line-height: 1;
	z-index: 2;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.card-variant .material-symbols-outlined {
	font-size: 0.72rem;
	color: #fff;
}

.card-variant svg {
	display: block;
	width: 1.1rem;
	height: 0.73rem;
	border-radius: 1px;
}

.card-trailer-button {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 1.6rem 0.4rem 0.55rem;
	border: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 6, 9, 0.85) 55%);
	color: #fff;
	font: inherit;
	font-size: clamp(0.78rem, 0.9vw, 0.9rem);
	font-weight: 800;
	cursor: pointer;
	z-index: 2;
	transition: filter 0.2s;
}

.card-trailer-button:hover:not(:disabled) {
	filter: brightness(1.25);
}

.card-trailer-button:disabled {
	display: none;
}

.card-trailer-button .material-symbols-outlined {
	font-size: 1.15rem;
	line-height: 1;
}

.content-card .name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.55em;
	font-size: clamp(0.78rem, 0.85vw, 0.9rem);
	line-height: 1.28;
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
}

.content-card .meta {
	height: 1.3em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: clamp(0.68rem, 0.75vw, 0.8rem);
	line-height: 1.25;
	text-align: center;
	color: rgba(255, 255, 255, 0.55);
}

/* Vista de enlaces de reproduccion */
.content-grid.content-links {
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 0.65rem;
}

/* Enlaces de reproducción: 3 partes — bandera (idioma) a la izquierda en su
   contenedor con fondo que resalte; a la derecha, servidor arriba e info debajo. */
.content-link {
	display: flex;
	align-items: stretch;
	min-width: 0;
	min-height: 4rem;
	border-radius: 0.55rem;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: background 0.25s, transform 0.25s;
}

.content-link:hover,
.content-link:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	transform: translateX(2px);
	outline: none;
	box-shadow: 0 0 0 2px var(--primary-color);
}

.content-link .link-flag {
	flex: 0 0 auto;
	width: 4.15rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.18rem;
	padding: 0.5rem;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0;
	background-color: #20303a;
	background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.2));
}

.content-link .link-flag svg {
	display: block;
	width: 2.5rem;
	height: 1.67rem;
	border-radius: 0.18rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	object-fit: cover;
}

/* Fondo que ayude a identificar cada bandera (tono oscuro de sus colores) */
.content-link .link-flag--mx {
	background-color: #0b2e21;
}

.content-link .link-flag--es {
	background-color: #2e1608;
}

.content-link .link-flag--gb {
	background-color: #0b1a33;
}

.content-link .link-flag--jp {
	background-color: #2c0d0d;
}

.content-link .link-flag--dual {
	width: 4.6rem;
	background: linear-gradient(120deg, #0b2e21 0%, #0f2c2e 45%, #0b1a33 100%);
}

.content-link .link-flag--dual svg {
	width: 1.75rem;
	height: 1.17rem;
}

.content-link .link-flag--err {
	border-color: transparent;
}

.content-link .link-flag--err .material-symbols-outlined {
	font-size: 1.6rem;
	opacity: 0.5;
}

.content-link .link-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.14rem;
	padding: 0.5rem 0.7rem;
}

.content-link .server {
	font-size: clamp(0.9rem, 1.05vw, 1.05rem);
	font-weight: 800;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.content-link .meta {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	min-width: 0;
	font-size: clamp(0.68rem, 0.78vw, 0.8rem);
	opacity: 0.68;
}

.content-link .meta .meta-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.content-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	grid-column: 1 / -1;
	text-align: center;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.95rem;
	padding: 1.5rem 1rem 0.25rem;
}

/* Botón Volver en los estados vacíos: la navegación siempre tiene una salida. */
.empty-back-btn {
	margin: 0.5rem auto;
	grid-column: 1 / -1;
	justify-self: center;
	gap: 0.45rem;
}

.empty-back-btn .material-symbols-outlined {
	margin: 0;
	font-size: 1.15rem;
}

.empty-back-alt {
	margin-top: 0;
}
	grid-column: 1 / -1;
	padding: 2.5rem 1rem;
	text-align: center;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.6);
}

/* Cargando: anillo animado + texto mientras llegan los listados/enlaces */
/* En grid, alinear start dejaba la rueda arriba; con :has() centramos
   vertical y horizontalmente cuando el único contenido es el loader. */
.content-grid:has(.content-loader) {
	display: flex;
	align-items: center;
	justify-content: center;
}

.content-grid:has(.content-loader) .content-loader {
	min-height: 0;
	padding: 0;
}

.content-loader {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	min-height: 100%;
	padding: 2.5rem 1rem;
}

/* Pausa universal mientras se espera la vista destino: ocupa el mismo espacio
   que la grilla, con anillo + texto. Se muestra en .choice-open (flujo tras
   elegir Ver/Tráiler) y en cualquier otra espera (mismo markup). */
.content-viewport-loader {
	flex: 1 1 auto;
	min-height: 0;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.85rem;
	padding: 2.5rem 1rem;
}

.choice-open .content-viewport-loader,
.panel-loading .content-viewport-loader {
	display: flex;
}

.loading-spinner {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	border: 0.28rem solid rgba(255, 255, 255, 0.14);
	border-top-color: var(--secondary-color);
	border-right-color: rgba(255, 255, 255, 0.35);
	animation: loading-spin 0.8s linear infinite;
}

.loading-text {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.65);
}

@keyframes loading-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Pasarela de progreso mientras se prueban los enlaces automáticos */
.content-probing {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0.6rem 0.7rem 0;
	padding: 0.55rem 0.7rem;
	border-left: 3px solid #6ed2ff;
	border-radius: 0.45rem;
	background: rgba(110, 210, 255, 0.09);
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.8rem;
	line-height: 1.4;
}

/* Mismo anillo que .loading-spinner, en pequeño: la carga siempre se ve igual */
.content-probing .probing-spinner {
	width: 1.15rem;
	height: 1.15rem;
	border-width: 0.16rem;
	border-top-color: var(--secondary-color);
	border-right-color: rgba(255, 255, 255, 0.35);
	animation: loading-spin 0.8s linear infinite;
}

.content-probing .probing-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Aviso: ningún enlace se pudo reproducir automáticamente por Shaka */
.content-notice {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0.6rem 0.7rem 0;
	padding: 0.6rem 0.7rem;
	border-left: 3px solid #f5c518;
	border-radius: 0.45rem;
	background: rgba(245, 197, 24, 0.09);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.8rem;
	line-height: 1.4;
}

.content-notice .material-symbols-outlined {
	font-size: 1.25rem;
	color: #f5c518;
	flex: 0 0 auto;
}

/* Aviso flotante al abrir un enlace de la lista de reproducción. */
.delta-toast {
	position: fixed;
	left: 50%;
	bottom: 5rem;
	transform: translateX(-50%);
	z-index: 2147483000;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	max-width: min(46rem, 90vw);
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	border-left: 4px solid #f5c518;
	background: rgba(16, 16, 16, 0.96);
	box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.35;
}

.delta-toast[hidden] {
	display: none;
}

.delta-toast.is-error {
	border-left-color: #ff5a66;
}

.content-load-more {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	padding: 0.3rem 0 0.5rem;
}

.content-load-more button {
	width: 100%;
	padding: 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0.45rem;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.25s;
}

.content-load-more button:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.14);
}

.content-load-more button:disabled {
	opacity: 0.6;
	cursor: default;
}

@media only screen and (max-width: 1100px) {
	.content-feature {
		gap: 0.8rem;
		max-height: 34vh;
		overflow: hidden;
	}

	.content-feature-media {
		width: clamp(6rem, 12vw, 8.5rem);
		gap: 0.35rem;
	}

	.content-feature-poster {
		max-height: 28vh;
	}

	.content-feature-media:has(.content-feature-poster.is-still) {
		width: clamp(10rem, 24vw, 20rem);
	}

	.content-feature-title {
		font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	}

	.content-feature-overview {
		-webkit-line-clamp: 4;
	}
}

body.pane-small .content-panel {
		width: 100vw;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
	}

body.pane-small .content-panel-header {
		padding: 0.5rem 0.65rem;
	}

body.pane-small .content-feature {
		align-items: flex-start;
		gap: 0.6rem;
		padding: 0.55rem 0.65rem;
		max-height: 38vh;
		overflow: hidden;
	}

body.pane-small .content-feature-media {
		width: 5.5rem;
		gap: 0.3rem;
	}

body.pane-small .content-feature-poster {
		max-height: 32vh;
	}

body.pane-small .content-feature-media:has(.content-feature-poster.is-still) {
		width: clamp(9rem, 38vw, 15rem);
	}

body.pane-small .content-feature-title {
		font-size: 1.05rem;
		line-height: 1.15;
	}

body.pane-small .content-feature-meta {
		font-size: 0.7rem;
	}

body.pane-small .content-feature-overview {
		font-size: 0.74rem;
		line-height: 1.35;
		-webkit-line-clamp: 3;
	}

body.pane-small .content-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.35rem;
		padding: 0.35rem;
	}

@media only screen and (max-height: 700px) {
	.content-panel-header {
		padding: 0.4rem 0.7rem;
	}

	.content-feature {
		gap: 0.55rem;
		padding: 0.45rem 0.7rem;
		max-height: 32vh;
		overflow: hidden;
	}

	.content-feature-media {
		width: 5.5rem;
		gap: 0.3rem;
	}

	.content-feature-poster {
		max-height: 26vh;
	}

	.content-feature-media:has(.content-feature-poster.is-still) {
		width: clamp(8rem, 22vw, 18rem);
	}

	.content-feature-title {
		font-size: 1rem;
	}

	.content-feature-meta {
		font-size: 0.7rem;
	}

	.content-feature-overview {
		font-size: 0.74rem;
		line-height: 1.3;
		-webkit-line-clamp: 2;
	}

	.content-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.3rem;
		padding: 0.3rem;
	}
}

@media only screen and (max-height: 460px) {
	.content-feature {
		gap: 0.4rem;
		padding: 0.35rem 0.55rem;
		max-height: 34vh;
	}

	.content-feature-media {
		width: 4.5rem;
	}

	.content-feature-poster {
		max-height: 30vh;
	}

	.content-feature-title {
		font-size: 0.95rem;
	}

	.content-feature-meta {
		font-size: 0.62rem;
	}

	.content-feature-overview {
		font-size: 0.68rem;
		-webkit-line-clamp: 1;
	}

	.content-grid {
		grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	}
}

/*-----------------------------------------------------------------------------------------------*/
/* Reproductor central: Shaka Player, iframe embed o WebTorrent segun el tipo de enlace.
   Se mantiene centrado en el hueco entre los paneles laterales. */

.panel-center .top .player-container {
	position: relative;
	display: block;
	width: 60vw;
	height: 70vh;
	min-width: 300px;
	min-height: 220px;
	background-color: #0b0b0d;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow:
		0 1.5rem 3rem rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.07),
		0 0 70px rgba(255, 69, 0, 0.12);
}

.panel-center .top .player-container.is-active {
	box-shadow:
		0 0 0 1px rgba(255, 69, 0, 0.4),
		0 1.5rem 3rem rgba(0, 0, 0, 0.55);
}

.player-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
}

.player-viewport {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	background: #000;
}

.player-video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
}

.player-video[hidden] {
	display: none;
}

.player-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.5rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	background:
		radial-gradient(90% 120% at 50% 0%, rgba(255, 69, 0, 0.16), rgba(0, 0, 0, 0) 60%),
		#0b0b0d;
}

.player-placeholder[hidden] {
	display: none;
}

.player-placeholder .material-symbols-outlined {
	margin: 0;
	font-size: 3.2rem;
	color: rgba(255, 69, 0, 0.85);
}

.player-placeholder p {
	margin: 0;
	max-width: 28rem;
	font-size: clamp(0.8rem, 1vw, 0.95rem);
	line-height: 1.5;
}

.player-status {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	text-align: center;
	font-size: clamp(0.8rem, 1vw, 0.95rem);
	line-height: 1.5;
}

.player-status[hidden] {
	display: none;
}

.player-status.is-error {
	color: #ffd7d9;
}

.player-status.is-error .player-spinner {
	display: none;
}

.player-spinner {
	width: 2rem;
	height: 2rem;
	border: 0.24rem solid rgba(255, 255, 255, 0.14);
	border-top-color: var(--secondary-color);
	border-right-color: rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	animation: loading-spin 0.8s linear infinite;
}

.player-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex: 0 0 auto;
	padding: 0.4rem 0.8rem;
	background: rgba(0, 0, 0, 0.4);
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.55);
}

.player-source {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.player-stats {
	flex: 0 0 auto;
	max-width: 50%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.42);
}

body.pane-small .panel-center .top {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0.5rem;
	}

body.pane-small .panel-center .top .player-container {
		width: calc(100vw - 1.5rem);
		height: min(62vh, 26rem);
		min-width: 0;
	}

body.pane-small .player-footer {
		font-size: 0.62rem;
	}

/* Foco visible para navegacion por teclado / mando a distancia. */
.panel-channels .main-list > li:focus-visible,
.panel-channels .sub-list > li:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Trailer a pantalla completa dentro del panel de contenido: ocupa todo el
   área de la grilla, sin ficha ni loader genérico encima. */
.content-trailer {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	border-radius: 0.55rem;
	background: #000;
	margin: 0 clamp(0.8rem, 1.3vw, 1.2rem) clamp(0.8rem, 1.3vw, 1.2rem);
}

body.trailer-open .content-panel .content-feature,
body.trailer-open .content-grid,
body.trailer-open .content-viewport-loader {
	display: none !important;
}

body.trailer-open .content-trailer {
	margin: 0;
	border-radius: 0;
	height: 100%;
}

/* Pantalla completa dentro de la página: cubre toda la ventana sin usar el
   Fullscreen API nativo, para que el foco y las teclas sigan en la app. */
/* Botón "Gestionar" entre la ficha superior y la grilla (solo series seguidas). */
.content-manage-bar {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	/* Mismo padding horizontal que la grilla. El ancho del hueco se mide desde
	   la primera tarjeta (ver syncManageBarAlignment) para centrar el botón
	   exactamente sobre ella. */
	padding: 0.6rem clamp(0.8rem, 1.3vw, 1.2rem);
}

.content-manage-bar[hidden],
.choice-open .content-manage-bar,
body.trailer-open .content-manage-bar {
	display: none !important;
}

.content-manage-slot {
	display: flex;
	justify-content: center;
	width: var(--manage-slot-width, 132px);
	flex: 0 0 auto;
}

.content-manage-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.content-manage-btn:disabled {
	opacity: 0.5;
	cursor: wait;
}

.content-manage-btn {
	/* Misma geometría que Ver/Tráiler/Seguir/Guardar: icono a 6 px del borde,
	   separador de 2 px a 6 px del icono y texto centrado hasta el borde. */
	display: grid;
	grid-template-columns: auto 2px minmax(0, 1fr);
	align-items: center;
	column-gap: 6px;
	padding: 0.4rem 6px;
	border: 1px solid rgba(255, 170, 0, 0.35);
	border-radius: 9999px;
	background: rgba(7, 7, 10, 0.72);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.content-manage-icon {
	font-size: 1.45rem;
	line-height: 1;
	justify-self: start;
	flex: 0 0 auto;
	margin: 0;
}

.content-manage-label {
	display: block;
	width: 100%;
	text-align: center;
	white-space: nowrap;
}

.content-manage-btn:hover,
.content-manage-btn:focus-visible {
	background: rgba(255, 170, 0, 0.18);
	color: #ffca28;
	outline: none;
}

/* El transform del panel crea un bloque contenedor y desplaza el fixed. */
body.trailer-fullscreen .content-panel {
	transform: none !important;
	transition: none !important;
}

body.trailer-fullscreen .content-trailer {
	position: fixed;
	inset: 0;
	z-index: 200;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
}

body.trailer-fullscreen .content-trailer-controls {
	bottom: clamp(1rem, 3vh, 2.2rem);
}

.content-trailer[hidden] {
	display: none;
}

.content-trailer-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.content-trailer-frame:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: -2px;
}

.content-trailer-message {
	position: absolute;
	inset: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.8);
	background: rgba(0, 0, 0, 0.55);
}

.content-trailer-message[hidden] {
	display: none;
}

.content-trailer-close {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	cursor: pointer;
	z-index: 3;
	transition: background 0.2s, transform 0.2s;
}

.content-trailer-close:hover {
	background: rgba(0, 0, 0, 0.9);
	transform: rotate(90deg);
}

/* Controles propios del tráiler: funcionan con mando/teclado aunque el
   iframe de YouTube no reciba las teclas en WebView. */
.content-trailer-controls {
	position: absolute;
	left: 50%;
	bottom: clamp(0.5rem, 2vh, 1.2rem);
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: clamp(0.3rem, 1vw, 0.6rem);
	padding: 0.35rem 0.5rem;
	border-radius: 9999px;
	background: rgba(7, 7, 10, 0.7);
	backdrop-filter: blur(6px);
	z-index: 4;
}

.trailer-ctrl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(2rem, 5vw, 2.6rem);
	height: clamp(2rem, 5vw, 2.6rem);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.trailer-ctrl .material-symbols-outlined {
	font-size: clamp(1.1rem, 2.6vw, 1.4rem);
}

.trailer-ctrl:hover,
.trailer-ctrl:focus,
.trailer-ctrl:focus-visible {
	background: rgba(255, 170, 0, 0.22);
	color: #ffca28;
	outline: none;
	transform: scale(1.08);
}

/* La barra se resalta cuando el D-pad entra en ella (Abajo). */
.content-trailer[data-controls-focused="true"] .content-trailer-controls {
	background: rgba(7, 7, 10, 0.92);
	box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.45);
}

.content-trailer:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: -2px;
}

/* -------------------------------------------------------------------------
   Controles integrados de Shaka Player (play/pause, seek, volumen, calidad,
   audio/subtítulos, fullscreen). Se adaptan a la paleta de la app. */
.player-viewport {
	background: #050507;
}

.player-viewport .shaka-controls-container {
	background: linear-gradient(0deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0) 65%);
}

.player-viewport .shaka-bottom-controls {
	width: calc(100% - 1.5rem);
	padding: 0;
}

.player-viewport .shaka-controls-button-panel {
	opacity: 1 !important;
	gap: 0.15rem;
}

.player-viewport .shaka-controls-button-panel > * {
	height: 44px;
	opacity: 0.88;
}

.player-viewport .shaka-controls-button-panel > button {
	min-width: 44px;
	width: 44px;
}

.player-viewport .shaka-controls-button-panel > .shaka-current-time {
	width: auto !important;
	min-width: 44px;
	padding: 0 0.4rem;
	text-align: center;
	white-space: nowrap;
}

.player-viewport .shaka-range-container.shaka-volume-bar-container {
	width: 100px;
	height: 6px;
	background: rgba(255, 255, 255, 0.18);
}

.player-viewport .shaka-range-element::-webkit-slider-thumb,
.player-viewport .shaka-range-element::-moz-range-thumb {
	background: var(--primary-color);
	border: 0;
}

.player-viewport .shaka-seek-bar-container {
	background-clip: padding-box !important;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	height: 8px;
	margin-bottom: 0;
}

.player-viewport .shaka-seek-bar-container .shaka-seek-bar {
	border-radius: 2px;
}

.player-viewport .shaka-range-container.shaka-volume-bar-container {
	height: 6px;
	background: rgba(255, 255, 255, 0.18);
}

.player-viewport .shaka-current-time,
.player-viewport .shaka-duration,
.player-viewport .shaka-time-and-duration {
	color: rgba(255, 255, 255, 0.82);
}

.player-viewport .shaka-overflow-menu,
.player-viewport .shaka-settings-menu,
.player-viewport .shaka-context-menu {
	background: rgba(14, 14, 18, 0.96) !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.7rem !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.player-viewport .shaka-overflow-menu button,
.player-viewport .shaka-settings-menu button,
.player-viewport .shaka-context-menu button {
	color: rgba(255, 255, 255, 0.92) !important;
	text-shadow: none !important;
}

.player-viewport .shaka-overflow-menu button:hover,
.player-viewport .shaka-settings-menu button:hover,
.player-viewport .shaka-context-menu button:hover,
.player-viewport .shaka-keyboard-navigation .shaka-overflow-menu button:focus,
.player-viewport .shaka-keyboard-navigation .shaka-settings-menu button:focus,
.player-viewport .shaka-keyboard-navigation .shaka-context-menu button:focus {
	background: rgba(255, 69, 0, 0.18) !important;
}

.player-viewport .shaka-replay-button,
.player-viewport .shaka-fullscreen-button,
.player-viewport .shaka-mute-button,
.player-viewport .shaka-overflow-menu-button {
	border-radius: 0.45rem;
}

.player-viewport .shaka-replay-button:hover,
.player-viewport .shaka-fullscreen-button:hover,
.player-viewport .shaka-mute-button:hover,
.player-viewport .shaka-overflow-menu-button:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Botones reutilizables en los modales */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 0.75rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	cursor: pointer;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn .material-symbols-outlined {
	margin: 0;
	font-size: 1.25rem;
}

.btn-primary {
	background: var(--primary-color);
	box-shadow: 0 0.5rem 1.5rem rgba(255, 69, 0, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	outline: none;
	background: #ff6a1f;
	transform: translateY(-1px);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
	outline: none;
	background: rgba(255, 255, 255, 0.16);
}

.btn:focus-visible {
	outline: 2px solid var(--secondary-color);
	outline-offset: 2px;
}

/* Modal de acciones (Ver / Tráiler / Atrás) */
.content-modal {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background:
		radial-gradient(900px 500px at 50% -10%, rgba(255, 69, 0, 0.16), transparent 55%),
		linear-gradient(180deg, rgba(7, 7, 10, 0.35), rgba(7, 7, 10, 0.78));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.content-modal:not([hidden]) {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.content-modal-panel {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	width: min(34rem, 94vw);
	padding: 1.1rem;
	border: 1px solid rgba(255, 170, 0, 0.28);
	border-radius: 1rem;
	background: rgba(14, 14, 18, 0.97);
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	transform: translateY(12px);
}

.content-modal:not([hidden]) .content-modal-panel {
	transform: translateY(0);
}

/* Modal de reanudación: "Continuar viendo desde xx:xx" */
.content-resume-panel {
	flex-direction: column;
	align-items: stretch;
	gap: 0.9rem;
	width: min(26rem, 94vw);
	padding: clamp(1rem, 2.5vw, 1.6rem);
	text-align: center;
}

.content-resume-title {
	margin: 0;
}

.content-resume-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.content-resume-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.content-resume-btn {
	min-width: 8rem;
}

/* Auto Next: card abajo a la derecha del reproductor a pantalla completa.
   Estilo Delta TV: panel oscuro con borde naranja, texto a la izquierda,
   still con anillo y fila de botones. */
.content-auto-next {
	/* El still manda: todo el card se dimensiona a este ancho. */
	--auto-next-still-width: min(clamp(13rem, 26vw, 18rem), calc((50vh - 7rem) * 16 / 9));
	--auto-next-still-width: min(clamp(13rem, 26vw, 18rem), calc((50dvh - 7rem) * 16 / 9));
	position: absolute;
	inset: auto;
	right: clamp(.75rem, 2vw, 1.5rem);
	bottom: clamp(.75rem, 2vw, 1.5rem);
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	box-sizing: border-box;
	width: auto;
	max-width: calc(100% - 1.5rem);
	max-height: 50vh;
	max-height: 50dvh;
	padding: 0;
	background: none;
}

.content-auto-next-panel {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .35rem;
	width: var(--auto-next-still-width);
	max-width: 100%;
	max-height: 100%;
	box-sizing: border-box;
	padding: 0;
	border: 1px solid rgba(255, 170, 0, .28);
	border-radius: .6rem;
	background: rgba(10, 10, 12, .96);
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .6);
	text-align: left;
	overflow: hidden;
}

.content-auto-next-header {
	margin: 0;
	padding: .4rem .6rem;
	border-radius: .5rem .5rem 0 0;
}

.content-auto-next-header .content-panel-title {
	font-size: .85rem;
}

.content-auto-next-title {
	margin: 0 .6rem;
	color: #fff;
	font-size: clamp(.82rem, 2.4vw, 1rem);
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.content-auto-next-text {
	margin: 0 .6rem;
	color: rgba(255, 255, 255, .72);
	font-size: clamp(.7rem, 2.1vw, .78rem);
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Auto scroll solo cuando el texto desborda: se desplaza hacia la izquierda,
   hace una pausa y vuelve, para poder leerlo completo sin ensanchar la card. */
.content-auto-next-marquee {
	display: inline-block;
	white-space: nowrap;
	vertical-align: bottom;
	will-change: transform;
}

.content-auto-next-marquee.is-marquee {
	animation: auto-next-marquee var(--marquee-duration, 12s) linear infinite;
}

@keyframes auto-next-marquee {
	0%, 8% { transform: translateX(0); }
	55%, 65% { transform: translateX(calc(-1 * var(--marquee-distance, 0px))); }
	100% { transform: translateX(0); }
}

/* El card mide exactamente el ancho del still; la imagen entra completa y
   el texto/botones se recortan con elipsis si no caben. */
.content-auto-next-media {
	position: relative;
	align-self: stretch;
	width: 100%;
	height: auto;
	overflow: hidden;
}

.content-auto-next-still {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.content-auto-next-ring {
	position: absolute;
	top: .4rem;
	left: .4rem;
	z-index: 2;
	width: 2.75rem;
	height: 2.75rem;
	transform-origin: center;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .9));
}

.content-auto-next-ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.content-auto-next-ring circle {
	fill: none;
	stroke-width: 4;
}

.content-auto-next-ring-track {
	stroke: rgba(255, 255, 255, .28);
}

.content-auto-next-ring-value {
	stroke: var(--secondary-color, #ff9100);
	stroke-linecap: round;
	transition: stroke-dashoffset .12s linear, stroke .18s ease;
}

.content-auto-next-count {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
	transition: color .18s ease;
}

.content-auto-next-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	width: auto;
	margin: 0 .6rem .35rem;
}

.content-auto-next-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .25rem .35rem;
	border: 0;
	outline: none;
	background: none;
	color: rgba(255, 255, 255, .9);
	font-family: inherit;
	font-size: clamp(.68rem, 2.4vw, .78rem);
	font-weight: 700;
	letter-spacing: .06em;
	cursor: pointer;
}

.content-auto-next-btn:focus,
.content-auto-next-btn:focus-visible {
	outline: 1.5px solid var(--secondary-color, #ffaa00);
	outline-offset: -2px;
	border-radius: .25rem;
}

.content-auto-next-watch {
	color: var(--secondary-color, #ffaa00);
}

.content-auto-next-cancel {
	color: #fff;
}

.content-auto-next-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	box-sizing: border-box;
	font-size: .95rem;
	line-height: 1;
	padding: .1rem;
	border-radius: 50%;
	background: #e50914;
	color: #fff;
}

.player-container:fullscreen,
.player-container:-webkit-full-screen {
	width: 100vw;
	height: 100vh;
	border-radius: 0;
}

/* Entrada suave: el card se desliza desde la derecha hasta su posición. */
.content-auto-next-panel {
	transition:
		transform .85s cubic-bezier(.25, .8, .25, 1),
		opacity .85s cubic-bezier(.25, .8, .25, 1);
}

.content-auto-next.is-entering .content-auto-next-panel {
	opacity: 0;
	transform: translateX(3rem);
	transition: none;
}

/* Al quedar el 50 % de la cuenta regresiva: rojo y latido para llamar la atención. */
.content-auto-next.is-urgent .content-auto-next-count {
	color: #ff3b30;
}

.content-auto-next.is-urgent .content-auto-next-ring-value {
	stroke: #ff3b30;
}

.content-auto-next.is-urgent .content-auto-next-ring {
	animation: auto-next-pulse 1.1s ease-in-out infinite;
}

@keyframes auto-next-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
	.content-auto-next-panel {
		transition: none;
	}

	.content-auto-next.is-entering .content-auto-next-panel {
		opacity: 1;
		transform: none;
	}

	.content-auto-next.is-urgent .content-auto-next-ring {
		animation: none;
	}

	.content-auto-next-marquee.is-marquee {
		animation: none;
	}
}

/* Modal flotante de acciones: póster a la izquierda y botones a la derecha.
   Se superpone al panel; la grilla permanece visible debajo. */
.content-actions {
	padding: clamp(0.6rem, 2vw, 2rem);
}

.content-actions-panel {
	position: relative;
	flex-direction: row;
	align-items: stretch;
	gap: clamp(0.8rem, 2vw, 1.5rem);
	width: min(42rem, 94vw);
	max-width: 94vw;
	max-height: min(34rem, calc(100vh - 2rem));
	padding: clamp(0.8rem, 1.6vw, 1.25rem);
	overflow: auto;
}

.content-actions-close {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	width: 2.2rem;
	height: 2.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	z-index: 2;
}

.content-actions-close:hover,
.content-actions-close:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	outline: none;
}

.content-actions-poster {
	flex: 0 0 auto;
	width: clamp(7rem, 18vw, 12rem);
	max-height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.content-actions-poster-img {
	width: 100%;
	max-height: min(30rem, calc(100vh - 6rem));
	object-fit: cover;
	object-position: top center;
	border-radius: 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-actions-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(0.5rem, 1.2vw, 0.9rem);
	justify-content: center;
	padding-right: 1.5rem;
}

.content-actions-title {
	font-size: clamp(1.1rem, 1.4vw + 0.7rem, 1.6rem);
	line-height: 1.2;
}

.content-actions-meta {
	font-size: clamp(0.78rem, 0.5vw + 0.7rem, 0.95rem);
	color: rgba(255, 255, 255, 0.6);
}

.content-actions-list {
	display: flex;
	flex-direction: column;
	gap: clamp(0.45rem, 1vw, 0.7rem);
}

.content-actions-btn {
	/* Icono a 6 px del borde, separador de 2 px a 6 px del icono y texto
	   centrado en el espacio entre separador y borde derecho. */
	display: grid;
	grid-template-columns: auto 2px minmax(0, 1fr);
	align-items: center;
	column-gap: 6px;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	padding: clamp(0.6rem, 1.4vw, 0.85rem) 6px;
	border-radius: 0.75rem;
	min-width: 0;
	width: 100%;
	text-align: center;
}

.content-actions-btn .action-btn-icon {
	font-size: 1.45rem;
	line-height: 1;
	flex: 0 0 auto;
	justify-self: start;
}

.action-btn-separator {
	display: block;
	width: 2px;
	height: 1.35em;
	background: currentColor;
	opacity: 0.45;
	justify-self: center;
}

.content-actions-btn .action-btn-label {
	display: block;
	width: 100%;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

/* Modal de gestión de vistos (temporadas / episodios de una serie seguida). */
.content-manage-panel {
	position: relative;
	flex-direction: column;
	align-items: stretch;
	width: min(30rem, 94vw);
	max-height: min(38rem, calc(100vh - 3rem));
	padding: clamp(1rem, 2vw, 1.5rem);
	overflow: auto;
}

.content-manage-title {
	padding-right: 2.5rem;
	font-size: clamp(1.1rem, 1.4vw + 0.7rem, 1.5rem);
}

.content-manage-subtitle {
	margin-top: -0.5rem;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.6);
}

/* X del modal: área de toque amplia y por encima del contenido. El icono no
   captura el clic para que el golpe siempre llegue al botón (mando/táctil). */
.content-manage-close {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
}

.content-manage-close .material-symbols-outlined {
	font-size: 1.4rem;
	line-height: 1;
	pointer-events: none;
}

.content-manage-close:hover,
.content-manage-close:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	outline: none;
}

.content-manage-all,
.content-manage-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.6rem;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.content-manage-all {
	padding: 0.6rem 0.8rem;
}

.content-manage-check {
	font-size: 1.2rem;
	line-height: 1;
	flex: 0 0 auto;
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
}

.content-manage-all[aria-pressed="true"],
.content-manage-item[aria-pressed="true"] {
	border-color: rgba(76, 175, 80, 0.65);
	background: rgba(76, 175, 80, 0.12);
}

.content-manage-all[aria-pressed="true"] .content-manage-check,
.content-manage-item[aria-pressed="true"] .content-manage-check {
	color: #4caf50;
}

.content-manage-all:hover,
.content-manage-all:focus-visible,
.content-manage-item:hover,
.content-manage-item:focus-visible {
	border-color: var(--primary-color, #ff4500);
	background: rgba(255, 69, 0, 0.1);
	outline: none;
}

.content-manage-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	max-height: min(24rem, 55vh);
	overflow-y: auto;
}

.content-manage-item {
	padding: 0.55rem 0.7rem;
	font-weight: 500;
}

.content-manage-item-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.content-manage-item-meta {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.45);
}

.content-manage-unfollow {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.6rem;
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid rgba(255, 120, 90, 0.35);
	border-radius: 0.6rem;
	background: rgba(255, 69, 0, 0.07);
	color: #ffb199;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.content-manage-unfollow-icon {
	font-size: 1.15rem;
	line-height: 1;
	flex: 0 0 auto;
	margin: 0;
}

.content-manage-unfollow:hover,
.content-manage-unfollow:focus-visible {
	border-color: var(--primary-color, #ff4500);
	background: rgba(255, 69, 0, 0.16);
	color: #fff;
	outline: none;
}

.content-search-hint {
	font-size: 0.62rem;
	color: rgba(255, 255, 255, 0.45);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Modal de búsqueda central */
.content-search-panel {
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: min(30rem, 94vw);
}

.content-modal-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
}

.content-search-form {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.content-search-field {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.7rem;
	border: 1px solid rgba(255, 170, 0, 0.3);
	border-radius: 0.8rem;
	background: rgba(255, 255, 255, 0.05);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.content-search-field:focus-within {
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 3px rgba(255, 170, 0, 0.18);
}

.content-search-field .material-symbols-outlined {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.45);
}

.content-search-field input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	outline: none;
	padding: 0.25rem 0;
}

.content-search-field input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.content-search-actions {
	display: flex;
	gap: 0.5rem;
}

.content-search-actions .btn-primary {
	flex: 1 1 auto;
}

/* Pantallas estrechas o poco altas (móvil/TV): el póster se reduce y el
   modal se apila para que quepan siempre las tres opciones. */
@media only screen and (max-width: 620px), (max-height: 520px) {
	.content-actions {
		padding: 0.5rem;
	}

	.content-actions-panel {
		flex-direction: column;
		align-items: center;
		width: min(24rem, 96vw);
		max-height: calc(100vh - 1rem);
		gap: 0.6rem;
	}

	.content-actions-poster {
		width: auto;
		max-height: 26vh;
	}

	.content-actions-poster-img {
		max-height: 26vh;
	}

	.content-actions-info {
		width: 100%;
		padding-right: 0;
		gap: 0.5rem;
	}

	.content-actions-list {
		width: 100%;
	}
}

/* Botón principal de la ficha destacada: solo abre la reproducción */
.content-feature-watch {
	align-self: flex-start;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.25rem;
	padding: 0.42rem 0.95rem;
	border: 0;
	border-radius: 9999px;
	background: var(--primary-color);
	color: #fff;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(255, 69, 0, 0.35);
	transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.content-feature-watch:hover,
.content-feature-watch:focus-visible {
	outline: none;
	background: #ff6a1f;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(255, 69, 0, 0.45);
}

.content-feature-watch[hidden] {
	display: none;
}

.content-feature-watch .material-symbols-outlined {
	margin: 0;
	font-size: 1.2rem;
}

/* Selección visible de la tarjeta activa en móvil */
.content-card.is-selected {
	outline: 2px solid var(--primary-color);
	outline-offset: -2px;
	background: rgba(255, 69, 0, 0.14);
	box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.35), 0 10px 22px rgba(0, 0, 0, 0.5);
	transform: translateY(-2px) scale(1.015);
}

/* Mientras se gestiona, el contorno de la tarjeta elegida distrae: se oculta
   y sigue oculto al cerrar, hasta que el mando vuelve a la grilla. */
body.manage-open .content-card.is-selected,
body.manage-selection-hidden .content-card.is-selected {
	outline: none;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: none;
	transform: none;
	transition: none;
}

/* Ocultar flechas cuando los laterales están abiertos */
.main:has(.panel-channels.is-open) .content-nav,

/* El botón "Ver" solo aparece en pantallas pequeñas; la web/TV no lo usa */
.content-feature-watch {
	display: none;
}

body.pane-small .content-feature-watch {
		display: inline-flex;
	}

/* Layout en dos columnas para pantallas pequeñas (solo móvil) */
.content-feature-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: flex-start;
}

.content-feature-trailer {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	margin-top: 0.25rem;
	padding: 0.42rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.content-feature-trailer:hover,
.content-feature-trailer:focus-visible {
	outline: none;
	background: rgba(255, 255, 255, 0.16);
}

.content-feature-trailer .material-symbols-outlined {
	margin: 0;
	font-size: 1.1rem;
}

.content-feature-watch .label-mobile {
	display: none;
}

body.pane-small .content-panel-body {
		flex-direction: row;
		flex-wrap: nowrap;
	}

body.pane-small .content-feature {
		flex: 0 0 38%;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.28rem;
		padding: 0.35rem 0.4rem;
		max-height: none;
		overflow-x: hidden;
		overflow-y: auto;
		border-right: 1px solid rgba(255, 255, 255, 0.09);
		border-bottom: 0;
	}

body.pane-small .content-feature-media {
		flex: 0 0 auto;
		width: auto;
		max-width: 100%;
		gap: 0.2rem;
		align-items: flex-start;
	}

body.pane-small .content-feature-poster {
		height: clamp(6rem, 22vh, 15rem);
		width: auto;
		aspect-ratio: 2 / 3;
	}

body.pane-small .content-feature-media:has(.content-feature-poster.is-still) {
		width: 100%;
	}body.pane-small .content-feature-info {
		flex: 1 1 auto;
		min-width: 0;
		gap: 0.2rem;
		overflow: hidden;
		align-items: flex-start;
	}

body.pane-small .content-feature-title {
		font-size: 0.78rem;
		line-height: 1.18;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

body.pane-small .content-feature-meta {
		font-size: 0.52rem;
		line-height: 1.15;
	}

body.pane-small .content-feature-overview {
		font-size: 0.55rem;
		line-height: 1.28;
		max-height: clamp(3.5rem, 18vh, 9rem);
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
	}

body.pane-small .content-feature-actions {
		flex-direction: column;
		gap: 0.22rem;
		width: 100%;
		margin-top: 0.15rem;
	}

	.content-feature-watch,
body.pane-small .content-feature-trailer {
		width: 100%;
		align-items: center;
		justify-content: center;
		gap: 0.3rem;
		padding: 0.26rem 0.35rem;
		font-size: 0.66rem;
		border-radius: 0.35rem;
		box-shadow: none;
	}

body.pane-small .content-feature-trailer {
		display: inline-flex;
		font-size: 0.66rem;
		font-weight: 700;
	}

body.pane-small .content-feature-trailer .material-symbols-outlined {
		font-size: 0.95rem;
	}

body.pane-small .content-feature-watch .material-symbols-outlined {
		font-size: 1rem;
	}

body.pane-small .content-feature-watch .label-desktop {
		display: none;
	}

body.pane-small .content-feature-watch .label-mobile {
		display: inline;
	}

body.pane-small .content-grid {
		flex: 1 1 0;
		min-width: 0;
		align-content: start;
		grid-template-columns: repeat(4, 1fr);
		gap: 0.24rem;
		row-gap: 0.32rem;
		padding: 0.24rem;
	}

body.pane-small .content-card {
		padding: 0.2rem;
		border-radius: 0.35rem;
		gap: 0.16rem;
	}

body.pane-small .content-card .name {
		font-size: 0.58rem;
		line-height: 1.22;
	}

body.pane-small .content-card .meta {
		display: none;
	}

body.pane-small .card-rating {
		padding: 0.13rem 0.26rem;
		font-size: 0.54rem;
		top: 0.2rem;
		right: 0.2rem;
	}

body.pane-small .card-rating .material-symbols-outlined {
		font-size: 0.5rem;
	}

body.pane-small .card-trailer-button {
		display: none;
	}

body.pane-small .content-nav {
		display: none !important;
	}
body.pane-small .content-grid {
		grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
		gap: 0.45rem;
		padding: 0.45rem;
	}

body.pane-small .content-card {
		padding: 0.4rem;
		border-radius: 0.5rem;
		gap: 0.28rem;
	}

body.pane-small .content-card .name {
		font-size: 0.78rem;
		line-height: 1.24;
		min-height: 2.5em;
	}

body.pane-small .content-card .meta {
		font-size: 0.66rem;
		height: 1.1em;
	}

body.pane-small .card-rating {
		padding: 0.3rem 0.5rem;
		font-size: 0.72rem;
	}

body.pane-small .card-rating .material-symbols-outlined {
		font-size: 0.8rem;
	}

body.pane-small .card-trailer-button {
		font-size: 0.72rem;
		padding-top: 1.35rem;
	}

body.pane-small .card-trailer-button .material-symbols-outlined {
		font-size: 1.1rem;
	}

@media only screen and (max-height: 560px),
	only screen and (max-width: 799px) and (max-height: 640px) {
	.content-panel-header {
		padding: 0.2rem 0.45rem;
		gap: 0.3rem;
	}

	.content-panel-header button {
		width: 1.5rem;
		height: 1.5rem;
	}

	.content-panel-header .material-symbols-outlined {
		font-size: 0.85rem;
	}

	.content-panel-title {
		font-size: 0.78rem;
		font-style: normal;
	}

	.content-panel-subtitle {
		font-size: 0.58rem;
	}
}
@media only screen and (max-width: 799px),
	only screen and (max-height: 640px) {
	.content-panel-header {
		padding: 0.2rem 0.45rem;
		gap: 0.3rem;
	}

	.content-panel-header button {
		width: 1.5rem;
		height: 1.5rem;
	}

	.content-panel-header .material-symbols-outlined {
		font-size: 0.8rem;
	}

	.content-panel-title {
		font-size: 0.78rem;
		font-style: normal;
	}

	.content-panel-subtitle {
		font-size: 0.58rem;
	}

	.content-feature-watch {
		padding: 0.3rem 0.75rem;
		font-size: 0.72rem;
	}

	.content-feature-watch .material-symbols-outlined {
		font-size: 0.95rem;
	}
}
/* =============================================================================
   Delta Player Chrome — overlay de controles del reproductor (web y Android TV).
   Barra superior: ajustes a la izquierda, acciones básicas a la derecha.
   Barra inferior: tiempo transcurrido / barra de progreso / duración.
   Aparece con hover, toque u OK/Enter sobre el video; se oculta solo a los
   3,5 s sin interacción. En modo embed (iframe) no se muestra.
   ============================================================================= */
.player-chrome {
	position: absolute;
	inset: 0;
	z-index: 7;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.player-chrome.controls-bottom {
	justify-content: flex-end;
}

.player-chrome.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.player-chrome.is-visible .chrome-row,
.player-chrome.is-visible .chrome-menu {
	pointer-events: auto;
}

.chrome-scrim {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 9.5rem;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
	pointer-events: none;
}

.player-chrome.controls-bottom .chrome-scrim {
	top: auto;
	bottom: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
}

.chrome-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0.7rem;
}

.chrome-row-bottom {
	padding: 0.4rem 0.75rem 0.65rem;
}

.chrome-group {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.chrome-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 1.6rem;
	background: rgba(14, 14, 17, 0.62);
	backdrop-filter: blur(6px);
	color: #ffffff;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chrome-btn .material-symbols-outlined {
	font-size: 1.15rem;
}

.chrome-btn:hover {
	background: rgba(32, 32, 36, 0.78);
	border-color: rgba(255, 170, 0, 0.45);
}

.chrome-btn:focus-visible {
	outline: none;
	border-color: #ff4500;
	box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.65);
}

.chrome-btn[aria-expanded="true"] {
	border-color: #ff4500;
	background: rgba(255, 69, 0, 0.2);
}

.chrome-btn[disabled] {
	opacity: 0.38;
	display: none;
}

.chrome-group-playback .chrome-btn,
.chrome-group-settings .chrome-btn {
	padding: 0;
	width: 2.5rem;
	justify-content: center;
	border-radius: 50%;
	background: rgba(14, 14, 17, 0.62);
}

.chrome-playpause {
	background: linear-gradient(135deg, rgba(255, 69, 0, 0.9), rgba(197, 50, 0, 0.9)) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	width: 2.8rem !important;
	min-width: 2.8rem;
}

.chrome-playpause:hover {
	background: linear-gradient(135deg, #ff4500, #c53000) !important;
}

/* Botón dedicado de amplificación dentro del reproductor Shaka. */
.chrome-boost-btn {
	position: relative;
}

.chrome-boost-btn::after {
	content: attr(data-boost);
	position: absolute;
	top: -0.35rem;
	right: -0.45rem;
	min-width: 1.6rem;
	padding: 0.08rem 0.25rem;
	border-radius: 0.7rem;
	background: #ff4500;
	color: #ffffff;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.55rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.01em;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
	pointer-events: none;
}

.chrome-boost-btn[data-boost="0 dB"]::after {
	display: none;
}

.chrome-volume-slider {
	flex: 0 0 auto;
	width: 5.5rem;
	height: 0.32rem;
	border-radius: 0.2rem;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(90deg, rgba(255, 170, 0, 0.85) 0%, rgba(255, 170, 0, 0.85) var(--fill, 100%), rgba(255, 255, 255, 0.22) var(--fill, 100%), rgba(255, 255, 255, 0.22) 100%);
	outline-offset: 3px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.chrome-volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 50%;
	background: #ffa000;
	border: 2px solid #ff4500;
	box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.55);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.chrome-volume-slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.chrome-volume-slider::-moz-range-thumb {
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: #ffa000;
	border: 2px solid #ff4500;
	box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.55);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.chrome-volume-slider::-moz-range-track {
	height: 0.32rem;
	border-radius: 0.2rem;
	background: transparent;
}

.chrome-volume-slider:focus {
	outline: 2px solid var(--secondary-color);
	outline-offset: 3px;
}

.chrome-volume-slider.is-adjusting {
	outline: 2px solid var(--secondary-color);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px rgba(255, 170, 0, 0.22);
}

.chrome-volume-slider.is-adjusting::-webkit-slider-thumb {
	transform: scale(1.2);
	background: #ffc14d;
}

.chrome-volume-slider.is-adjusting::-moz-range-thumb {
	transform: scale(1.2);
	background: #ffc14d;
}

.chrome-slider-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.6rem 0.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.45rem;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.chrome-slider-row:focus-within,
.chrome-slider-row.tv-focus,
.chrome-slider-row:focus {
	background: rgba(255, 255, 255, 0.08);
	outline: 2px solid var(--secondary-color) !important;
	outline-offset: 2px !important;
	box-shadow: inset 0 0 0 2px var(--secondary-color);
}

.chrome-slider-label {
	font-size: 0.65rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.chrome-slider-input {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	min-width: 0;
	height: 0.3rem;
	border-radius: 0.2rem;
	background: linear-gradient(90deg, rgba(255, 170, 0, 0.18) 0%, rgba(255, 170, 0, 0.55) 50%, rgba(255, 170, 0, 0.18) 100%);
	outline: none;
	cursor: pointer;
}

.chrome-slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 50%;
	background: var(--secondary-color);
	border: 2px solid #0b0b0b;
	box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.6);
	cursor: pointer;
}

.chrome-slider-input::-moz-range-thumb {
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: var(--secondary-color);
	border: 2px solid #0b0b0b;
	box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.6);
	cursor: pointer;
}

.chrome-slider-value {
	flex: 0 0 auto;
	min-width: 2.4rem;
	text-align: right;
	font-size: 0.78rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--secondary-color);
}

.chrome-time {
	min-width: 2.7rem;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.74rem;
	font-weight: 600;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.chrome-seek {
	flex: 1 1 auto;
	appearance: none;
	-webkit-appearance: none;
	height: 0.32rem;
	border-radius: 0.2rem;
	background: rgba(255, 255, 255, 0.18);
	cursor: pointer;
	outline-offset: 3px;
}

.chrome-seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 0.82rem;
	height: 0.82rem;
	border-radius: 50%;
	background: #ffa000;
	border: 2px solid #ff4500;
	box-shadow: 0 0 6px rgba(255, 170, 0, 0.5);
}

.chrome-seek::-moz-range-thumb {
	width: 0.82rem;
	height: 0.82rem;
	border-radius: 50%;
	background: #ffa000;
	border: 2px solid #ff4500;
}

.chrome-seek:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.65);
}

.chrome-menu {
	position: absolute;
	top: 3.35rem;
	left: 0.7rem;
	min-width: 12.5rem;
	max-width: 20rem;
	max-height: 62%;
	overflow-y: auto;
	padding: 0.35rem;
	border-radius: 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(14, 14, 17, 0.94);
	backdrop-filter: blur(10px);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.55);
	z-index: 9;
}

.player-chrome.controls-bottom .chrome-menu {
	top: auto;
	bottom: 6.5rem;
}

.chrome-menu-title {
	padding: 0.35rem 0.55rem 0.25rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.chrome-menu-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 0;
	border-radius: 0.45rem;
	background: transparent;
	color: #ededed;
	text-align: left;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
}

.chrome-menu-item:hover {
	background: rgba(255, 255, 255, 0.09);
}

.chrome-menu-item:focus,
.chrome-menu-item:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	outline: 2px solid var(--secondary-color);
	outline-offset: -2px;
}

.chrome-menu-item .material-symbols-outlined {
	font-size: 1.05rem;
	color: #ffa000;
	opacity: 0;
}

.chrome-menu-item[aria-checked="true"] {
	background: transparent;
	box-shadow: inset 0 0 0 1.6px var(--secondary-color);
}

.chrome-menu-item[aria-checked="true"] .material-symbols-outlined {
	opacity: 1;
	color: var(--secondary-color);
}

.chrome-menu-item[aria-checked="true"]:focus,
.chrome-menu-item[aria-checked="true"]:focus-visible {
	background: transparent;
	box-shadow: inset 0 0 0 1.6px var(--secondary-color);
	outline: 2px solid var(--secondary-color);
	outline-offset: 2px;
}

.player-viewport.chrome-idle,
.player-viewport.chrome-idle video {
	cursor: none;
}

.chrome-btn.is-hidden {
	display: none;
}

.player-video:focus,
.player-video:focus-visible {
	outline: none;
}

.player-viewport:fullscreen {
	background: #000;
}

.player-viewport:-webkit-full-screen {
	background: #000;
}

/* En pantalla completa el overlay de controles debe quedar por encima del
   video y seguir recibiendo clics/OK del mando. */
.player-viewport:fullscreen .player-chrome,
.player-viewport:-webkit-full-screen .player-chrome {
	z-index: 10;
}

/* El aviso se eleva para no tapar la barra inferior de controles. */
.player-viewport:fullscreen .content-auto-next,
.player-viewport:-webkit-full-screen .content-auto-next {
	bottom: 4.5rem;
}

/* Modo alternativo: la API de Fullscreen se rechaza cuando el comando llega
   por polling del remoto (sin gesto del usuario). Este bloque reproduce el
   mismo resultado visual usando el propio contenedor del reproductor. */
body.player-fullscreen .player-container {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
	z-index: 9999 !important;
	background: #000 !important;
}

body.player-fullscreen .player-viewport {
	background: #000 !important;
}

body.player-fullscreen .player-chrome {
	z-index: 10 !important;
}

body.player-fullscreen .content-auto-next {
	bottom: 4.5rem !important;
}

@media (max-width: 780px) {
	.chrome-group-playback .chrome-btn,
	.chrome-group-settings .chrome-btn {
		width: 2.35rem;
		height: 2.35rem;
	}

	.chrome-volume-slider {
		width: 3.6rem;
	}
}

@media (max-width: 520px) {
	.chrome-volume-slider {
		width: 2.6rem;
	}
}
/* Inputs de búsqueda bloqueados hasta OK/Enter (evita el teclado de Android al enfocar). */
#search-hero-input[data-locked="true"],
#content-search-input[data-locked="true"] {
	cursor: pointer;
	caret-color: transparent;
}

#search-hero-input[data-locked="true"]::placeholder,
#content-search-input[data-locked="true"]::placeholder {
	color: rgba(255, 255, 255, 0.45);
}
/* Menu de aspecto (y resto de menus del reproductor): mas legible en movil. */
@media (max-width: 780px) {
  .chrome-menu {
    min-width: 17rem;
    max-width: 28rem;
  }
  .chrome-menu-item {
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
  }
  .chrome-menu-title {
    font-size: 0.78rem;
  }
  .chrome-slider-label {
    font-size: 0.78rem;
  }
  .chrome-slider-value {
    font-size: 0.78rem;
  }
}

/* ---------------------------------------------------------------------------
   Listados del usuario, arriba del buscador: Siguiendo, Pendientes y
   Seguir viendo. Las tendencias JustWatch quedan debajo del buscador.
   --------------------------------------------------------------------------- */
.search-trending-btn.library-trending {
  border-color: rgba(255, 69, 0, 0.42);
  background: rgba(255, 69, 0, 0.12);
}

.search-trending-btn.library-trending .material-symbols-outlined {
  color: var(--primary-color, #ff4500);
}

.search-trending-btn.library-trending:hover {
  background: rgba(255, 69, 0, 0.24);
  border-color: var(--primary-color, #ff4500);
}

.search-trending-btn.pending-trending {
  border-color: rgba(255, 170, 0, 0.42);
  background: rgba(255, 170, 0, 0.12);
}

.search-trending-btn.pending-trending .material-symbols-outlined {
  color: var(--secondary-color, #ffaa00);
}

.search-trending-btn.pending-trending:hover {
  background: rgba(255, 170, 0, 0.24);
  border-color: var(--secondary-color, #ffaa00);
}

.search-trending-btn.continue-trending {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(96, 165, 250, 0.12);
}

.search-trending-btn.continue-trending .material-symbols-outlined {
  color: #93c5fd;
}

.search-trending-btn.continue-trending:hover {
  background: rgba(96, 165, 250, 0.24);
  border-color: #93c5fd;
}

/* Notificación de diagnóstico: flota sobre la portada sin desplazar nada ni
   bloquear el uso normal. Solo aparece si el informe detecta fallos o avisos. */
.diagnostics-notice {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2147482000;
  width: min(30rem, calc(100vw - 2.4rem));
  animation: diagnostics-notice-in 180ms ease-out;
}

.diagnostics-notice[hidden] {
  display: none !important;
}

.diagnostics-notice-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.2rem 0.75rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(255, 90, 60, 0.55);
  border-left: 0.35rem solid #ff5a3c;
  border-radius: 0.9rem;
  background: rgba(14, 14, 18, 0.98);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.65);
  color: #fff;
}

.diagnostics-notice.is-warning .diagnostics-notice-panel {
  border-color: rgba(255, 170, 0, 0.55);
  border-left-color: var(--secondary-color, #ffaa00);
}

.diagnostics-notice-icon {
  font-size: 1.55rem;
  line-height: 1;
  color: #ff8a70;
}

.diagnostics-notice.is-warning .diagnostics-notice-icon {
  color: var(--secondary-color, #ffaa00);
}

.diagnostics-notice-body {
  min-width: 0;
}

.diagnostics-notice-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}

.diagnostics-notice-text {
  margin: 0.2rem 0 0;
  color: #c9c9d1;
  font-size: 0.88rem;
  line-height: 1.35;
}

.diagnostics-notice-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.diagnostics-notice-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

@keyframes diagnostics-notice-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge global: total de episodios nuevos en series seguidas. */
.search-trending-btn .library-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.search-trending-btn .library-count[hidden] {
  display: none;
}

.content-actions-btn.is-icon[hidden] {
  display: none !important;
}

/* Seguir / Guardar usan exactamente la misma cuadrícula que Ver/Tráiler. */
.content-actions-btn.is-icon {
  min-width: 0;
  line-height: 1.05;
}

.content-actions-btn.is-icon .action-btn-icon {
  font-size: 1.45rem;
}

.content-actions-btn.is-icon .action-btn-label {
  font-size: 1rem;
  white-space: nowrap;
}

.content-actions-btn.is-icon.is-active {
  border-color: var(--primary-color, #ff4500);
  color: var(--primary-color, #ff4500);
}

/* Insignias sobre el póster: serie seguida / temporada o episodio visto. */
.library-status-badge {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.82);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.library-status-badge .material-symbols-outlined {
  font-size: 1.15rem;
}

.library-status-badge.is-following {
  color: #ffca28;
}

.library-status-badge.is-seen {
  color: #4caf50;
}

/* Círculo rojo con el número de episodios nuevos de esa serie. */
.library-new-badge {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

/* Accesibilidad: si el sistema pide menos movimiento, la grilla responde
   igual de rápido pero sin desplazamientos animados. */
@media (prefers-reduced-motion: reduce) {
  .content-grid {
    scroll-behavior: auto;
  }

  .content-card,
  .content-card.is-selected {
    transition: none;
    transform: none;
  }
}

/* -----------------------------------------------------------------------------
   Foco visible para navegación con mando / Android TV.
   El remoto mueve el foco de forma programática (polling HTTP), así que en el
   WebView no siempre se activa :focus-visible. La clase `tv-focus` la pone el
   propio script en `focusin` y garantiza el contorno en TODOS los elementos
   navegables: buscador, tendencias, géneros, canales, tarjetas y "Cargar más".
   -------------------------------------------------------------------------- */
.tv-focus,
.tv-focus:focus,
.tv-focus:focus-visible {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
}

/* Los campos de texto ya se destacan con el resplandor de
   `.search-hero-form:focus-within`: un borde extra dentro del fieldset queda
   como un recuadro superpuesto. */
input.tv-focus,
textarea.tv-focus,
.search-hero-form.tv-focus,
.search-hero-form .tv-focus {
  outline: none !important;
  outline-offset: 0 !important;
}

.search-hero-form.tv-focus,
.search-hero-form.tv-focus:focus-within {
  border-color: rgba(255, 170, 0, 0.95);
  box-shadow:
    0 0 0 3px rgba(255, 170, 0, 0.28),
    0 24px 70px rgba(255, 69, 0, 0.32);
}

/* Geometría única para TODO botón con icono y texto: icono a 6 px del borde
   exterior, separador de 2 px a 6 px del icono y texto centrado entre el
   separador y el borde derecho. Aplica a Ver/Tráiler/Seguir/Guardar, al botón
   raíz de Siguiendo y a cualquier otro botón con icono y etiqueta. */
.content-actions-btn,
.content-manage-btn,
.icon-labelled {
	display: grid;
	grid-template-columns: auto 2px minmax(0, 1fr);
	align-items: center;
	column-gap: 6px;
	padding-left: 6px;
	padding-right: 6px;
	font-size: 1rem;
	min-width: 0;
}

.icon-labelled.has-count {
	grid-template-columns: auto 2px minmax(0, 1fr) auto;
}

.content-actions-btn > .action-btn-icon,
.content-manage-btn > .content-manage-icon,
.icon-labelled > .material-symbols-outlined {
	font-size: 1.45rem;
	line-height: 1;
	justify-self: start;
}

.content-actions-btn > .action-btn-separator,
.content-manage-btn > .action-btn-separator,
.icon-labelled > .action-btn-separator {
	display: block;
	width: 2px;
	height: 1.35em;
	background: currentColor;
	opacity: 0.45;
	justify-self: center;
}

.content-actions-btn > span:nth-child(3),
.content-manage-btn > span:nth-child(3),
.icon-labelled > span:nth-child(3) {
	display: block;
	width: 100%;
	text-align: center;
	white-space: nowrap;
}
