/*
Theme Name: LaMovie
Theme URI: https://lamovie.org/
Author: LaMovie Theme Architecture
Description: Clon exacto de WordPress optimizado en español para películas, series, animes, novelas, WWE y colecciones. Incluye CPTs exactos, taxonomías, importador multi-fuente (TMDB es-MX/es-ES + Jikan MAL), seeder demo y paridad total de diseño.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lamovie
*/

/* ==========================================================================
   BASE RESET & CRITICAL INLINE OVERRIDES (Parity with LaMovie Live)
   ========================================================================== */
body {
	font-size: 13px;
	background: #03090f;
	overflow-x: hidden;
	line-height: 1;
	font-family: "Work Sans", sans-serif;
	font-weight: 600;
}

::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-track {
	background: #00000000;
}

::-webkit-scrollbar-thumb {
	background: #ff4343 !important;
	height: 150px;
	border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
	background: #ff4343;
}

body::-webkit-scrollbar {
	width: 5px;
}

body::-webkit-scrollbar-track {
	background: #03090f;
}

body::-webkit-scrollbar-thumb {
	background: #ff4343;
	height: 150px;
	border-radius: 5px;
}

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote,
canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em,
embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6,
header, hgroup, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav,
object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike,
strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt,
u, ul, var, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:after, blockquote:before, q:after, q:before {
	content: "";
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

h1 { font-size: 21px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

button, input, select, textarea {
	border: 0;
	outline: 0;
	background: 0;
}

a:focus, button:focus, select:focus, span:focus {
	outline: 0;
	border: 0;
	text-decoration: none;
}

a:hover, button:hover, select:hover, span:hover {
	outline: 0;
	text-decoration: none;
}

/* WordPress Body / Profile / Overlap Parity */
body.-t .--sh3bm {
	background: #242731;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

body.-t .myprofile.--open {
	background: #242731;
	border-bottom: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	z-index: 99999;
}

.mlist.section .popular-card #toogle-menu {
	bottom: 0px !important;
	background: #242731 !important;
}

body #root .--overlap {
	background: #242731 !important;
}

.movies-full__inside-rates.--stand .--imdb-r {
	display: none;
}

.--rv-s3b {
	z-index: 1;
}

.movies-full#movies-full .-x39.relative {
	z-index: 9999;
}

.movies-full__inside-title.--f.--r {
	position: relative;
	z-index: 9999;
}

/* ==========================================================================
   RESPONSIVE SHELL VISIBILITY (Desktop vs Tablet vs Mobile)
   ========================================================================== */
.-header {
	display: none;
}

.sruliadis-slaideir-0 {
	display: none;
}

.lm-mob-genres {
	display: none;
}

@media only screen and (max-width: 1024px) {
	body.-t .footer:before,
	body.-t .movies-full:after,
	body.-t .content {
		background: #111416 !important;
	}

	.hero-desktop-wrap {
		display: none !important;
	}

	.sruliadis-slaideir-0 {
		display: block !important;
	}

	.lm-mob-genres {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 10px 15px 14px;
		scrollbar-width: none;
	}

	.lm-mob-genres::-webkit-scrollbar {
		display: none;
	}

	.lm-mob-genres a {
		flex: 0 0 auto;
		background: #242731;
		color: #fff;
		padding: 10px 18px;
		border-radius: 6px;
		font-size: 13px;
		font-weight: 600;
		transition: background 0.2s ease;
	}

	.lm-mob-genres a:hover {
		background: #ff4343;
	}
}

@media only screen and (max-width: 768px) {
	.header {
		display: none !important;
	}

	.-header {
		display: flex !important;
		position: relative;
		z-index: 60;
	}

	.sidebar {
		display: none;
	}

	body.lm-drawer-open .sidebar {
		display: flex !important;
		position: fixed !important;
		top: 0;
		left: 0;
		bottom: 0;
		width: 260px !important;
		height: 100vh !important;
		z-index: 99999 !important;
		flex-direction: column !important;
		background: #15181b !important;
		padding-top: 15px;
		overflow-y: auto;
	}

	body.lm-drawer-open .sidebar ul.navbar-nav {
		flex-direction: column !important;
		justify-content: flex-start !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
	}

	body.lm-drawer-open .sidebar ul li.nav-item {
		width: 100%;
		min-width: 100% !important;
		border-bottom: 1px solid #242627 !important;
	}

	body.lm-drawer-open .sidebar ul li a {
		justify-content: flex-start !important;
		padding: 14px 20px !important;
	}

	body.lm-drawer-open .sidebar ul li a .pt-xl-2 {
		display: block !important;
	}
}

@media only screen and (max-width: 600px) {
	.mob-hero__slider-item,
	.mob-hero {
		height: 250px !important;
	}

	.mob-hero .mob-hero__slider .imdb {
		top: 20px !important;
		right: 20px !important;
	}

	.mob-hero .hero-details {
		bottom: 20px !important;
	}

	.sidebar ul.navbar-nav li.nav-item a {
		padding: 10px 10px !important;
	}

	.sidebar ul li {
		padding: 0 !important;
		margin-right: 10px !important;
	}

	#root .footer-copyright,
	#root .footer-top {
		width: 100%;
		display: flex;
		float: left;
		padding: 15px;
		margin-top: 0;
		padding-top: 0;
		justify-content: center !important;
	}

	#root .movies-full .movies-full__content,
	#root .movies-full__player#player {
		height: auto !important;
		aspect-ratio: 16 / 9 !important;
		padding-top: 15px !important;
	}

	#root .movies-full__player.playerse#player,
	#root .movies-full__player#player {
		padding-top: 0px !important;
	}

	#root .movies-full__inside {
		padding: 30px !important;
	}
}

@media only screen and (max-width: 800px) {
	.full-info-7 {
		gap: 12px;
		max-width: calc(100% - 140px);
	}
}

/* ==========================================================================
   AUTOCOMPLETE & SEARCH GHOST TEXT
   ========================================================================== */
.header-top__search .--autocomplete {
	position: relative;
	width: 100%;
	flex: 1;
}

.header-top__search .--autocomplete input.--foreground {
	position: absolute;
	inset: 0;
	color: rgba(255, 255, 255, 0.32);
	pointer-events: none;
	z-index: 1;
}

.header-top__search .--autocomplete input#search {
	position: relative;
	z-index: 2;
	background: transparent;
}

#search_autocomplete {
	z-index: 99999;
	height: auto !important;
	min-height: auto !important;
	max-height: 75vh;
	overflow-y: auto !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   LAZY LOAD FADE, READ MORE 3-LINE CLAMP & COLLAPSIBLE COMMENTS
   ========================================================================== */
img.lazy_load,
img.swiper-lazy {
	transition: opacity 0.4s ease;
}

img.lm-loading-img {
	opacity: 0;
}

.lm-desc-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	position: relative;
}

.lm-desc-clamp.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
}

.lm-readmore-btn {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ff4343;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	background: transparent;
	padding: 4px 0;
}

.lm-comments-toggle {
	background: #242731;
	color: #fff;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.2s ease;
}

.lm-comments-toggle:hover {
	background: #ff4343;
}

.lm-comments-collapsed #commnets_data {
	display: none;
}

/* ==========================================================================
   CUSTOM WORDPRESS MODALS (Download, Share, Report, Mi Lista) & TOASTS
   ========================================================================== */
.lm-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(5, 7, 10, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.lm-modal-backdrop.is-open {
	display: flex;
}

.lm-modal-box {
	width: 100%;
	max-width: 520px;
	background: #1a1c22;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
	color: #fff;
	animation: fadeIn 0.2s ease;
}

.lm-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #15181b;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lm-modal-head h3 {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

.lm-modal-close {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #242731;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lm-modal-close:hover {
	background: #ff4343;
}

.lm-modal-body {
	padding: 20px;
	max-height: 70vh;
	overflow-y: auto;
}

.lm-dl-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lm-dl-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #242731;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-dl-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lm-dl-meta strong {
	font-size: 14px;
	color: #fff;
}

.lm-dl-meta span {
	font-size: 12px;
	color: #a7b0bd;
}

.lm-dl-btn {
	background: #ff4343;
	color: #fff !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.lm-dl-btn:hover {
	background: #df2a2a;
}

.lm-share-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}

.lm-share-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 8px;
	background: #242731;
	border-radius: 10px;
	color: #fff !important;
	font-size: 12px;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.lm-share-btn:hover {
	background: #ff4343;
	transform: translateY(-2px);
}

.lm-copy-row {
	display: flex;
	gap: 8px;
}

.lm-copy-row input {
	flex: 1;
	background: #15181b;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 10px 12px;
	color: #fff;
	font-size: 13px;
}

.lm-copy-row button {
	background: #ff4343;
	color: #fff;
	padding: 0 16px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

#lm-toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999999;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.lm-toast {
	background: #1f222a;
	color: #fff;
	padding: 12px 18px;
	border-radius: 10px;
	border-left: 4px solid #ff4343;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
	font-size: 13px;
	font-weight: 600;
	pointer-events: auto;
	animation: fadeIn 0.25s ease;
}

/* Card 3-dot quick menu */
.--rv-portal-menu {
	position: absolute;
	right: 0;
	bottom: 36px;
	min-width: 190px;
	background: #1a1c22;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 6px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
	z-index: 999;
	display: none;
}

.--rv-portal-menu.is-open {
	display: block;
}

.--rv-portal-menu button {
	width: 100%;
	text-align: left;
	padding: 9px 12px;
	color: #eaeef4;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.--rv-portal-menu button:hover {
	background: #ff4343;
	color: #fff;
}

/* Player iframe active state & Language dropdown */
.--player-selector-langs {
	display: none;
	z-index: 9999;
}

.--player-selector-langs.is-open {
	display: block;
}

.--player iframe.--main {
	border: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Filter Dropdown active toggle */
.filter-item .dropdown-menu.show {
	display: block;
}

.--so-dropdown-wrapper {
	position: relative;
}

.--so-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	background: #242731;
	border: 1px solid #363839;
	border-radius: 6px;
	padding: 6px;
	z-index: 999999;
	margin-top: 6px;
}

.--so-menu.show {
	display: block;
}

.--so-option {
	display: block;
	width: 100%;
	text-align: left;
	padding: 9px 12px;
	color: #fff;
	font-size: 13px;
	border-radius: 4px;
	cursor: pointer;
}

.--so-option:hover,
.--so-option.active {
	background: #ff4343;
}

/* Star Rating Hover/Active */
.rating-stars ul:is(#stars,.lm-stars) li.star {
	cursor: pointer;
	color: #555a66;
	transition: color 0.15s ease;
}

.rating-stars ul:is(#stars,.lm-stars) li.star.hover,
.rating-stars ul:is(#stars,.lm-stars) li.star.active {
	color: #f5b50a;
}

/* Action menu active state */
#action_menu li .--xb-f.is-active {
	color: #ff4343 !important;
}

/* Series episode drawer closed/open state */
.playerse__layout.is-drawer-closed .playerse__sidebar {
	display: none;
}

.playerse__layout.is-drawer-closed .playerse__content {
	width: 100% !important;
}

/* 1.1.0: compact metadata only; original card proportions retained. */
.movie-card__img,.popular-card__img{position:relative}
.lm-card-language,.lm-card-episode{position:absolute;z-index:3;padding:3px 6px;background:rgba(3,9,15,.86);color:#fff;font-size:10px;font-weight:600;line-height:1.3;border-radius:4px;pointer-events:none;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lm-card-language{top:6px;right:6px}.lm-card-episode{bottom:6px;left:6px}
.lm-home-h1{font-size:clamp(16px,2vw,20px);font-weight:600;max-width:1640px;margin:16px auto;padding:0 16px;color:inherit}
.lm-episode-nav{display:flex;gap:8px;flex-wrap:wrap}.episode-title,.ss-menu a{color:inherit;text-decoration:none}.ss-menu a{display:block;padding:6px 8px}
@media(max-width:767px){.playerse__content{width:100%!important;min-width:0}.playerse .--player-selector{max-width:100%;overflow-wrap:anywhere}.lm-card-language,.lm-card-episode{font-size:9px;padding:3px 4px}}

.lm-card-release{position:absolute;bottom:6px;left:6px;z-index:3;padding:3px 6px;background:rgba(3,9,15,.86);color:#fff;font-size:10px;border-radius:4px;pointer-events:none}
