/* ==========================================================================
   Emperor Theme
   Las variables --emp-* llegan desde el panel (inc/setup.php).
   ========================================================================== */

:root {
	--emp-primary: #FE3D4E;
	--emp-secondary: #FCA13D;
	--emp-grad: linear-gradient(135deg, var(--emp-primary), var(--emp-secondary));
	/* Fondos con texto blanco pequeño: versiones más intensas de los colores de marca. */
	--emp-primary-ink: color-mix(in srgb, var(--emp-primary) 84%, #000);
	--emp-grad-ink: linear-gradient(135deg, var(--emp-primary-ink), color-mix(in srgb, var(--emp-secondary) 72%, #8a1d0d));
	--emp-radius: 12px;
	--emp-btn-radius: 8px;
	--emp-container: 1320px;
	--emp-font: 'Poppins', system-ui, sans-serif;
	--emp-font-head: 'Poppins', system-ui, sans-serif;
	--emp-font-size: 15px;
	--emp-head-case: uppercase;
	--emp-cols-d: 6; --emp-cols-t: 4; --emp-cols-m: 2;
	--emp-ep-cols-d: 4; --emp-ep-cols-m: 2;
	--emp-lines: 2;
	--emp-gap: 18px;
	--emp-shadow: 0 10px 30px rgba(5, 6, 20, .35);
	--emp-ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-theme="dark"] { --emp-primary-text: color-mix(in srgb, var(--emp-primary) 78%, #fff); --emp-secondary-text: var(--emp-secondary); --emp-bg: #1B1C34; --emp-surface: #21242C; --emp-surface2: #2B2F3D; --emp-text: #ECEDF6; --emp-muted: #A2A5C0; --emp-border: #33374D; color-scheme: dark; }
html[data-theme="light"] { --emp-primary-text: color-mix(in srgb, var(--emp-primary) 80%, #000); --emp-secondary-text: color-mix(in srgb, var(--emp-secondary) 50%, #2a1400); --emp-bg: #F2F3F8; --emp-surface: #FFFFFF; --emp-surface2: #E9EBF3; --emp-text: #1B1C34; --emp-muted: #5E6280; --emp-border: #DADDE8; --emp-shadow: 0 10px 30px rgba(27, 28, 52, .12); color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--emp-bg); color: var(--emp-text); font: 400 var(--emp-font-size)/1.6 var(--emp-font); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .25s; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--emp-primary-text); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--emp-font-head); font-weight: 700; line-height: 1.2; color: var(--emp-text); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--emp-secondary); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.emp-skip:focus { position: fixed !important; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; padding: 10px 16px; clip: auto; background: var(--emp-primary); color: #fff; border-radius: 8px; }
.emp-icon { flex: none; width: 1.25em; height: 1.25em; }
.emp-container { width: 100%; max-width: var(--emp-container); margin: 0 auto; padding: 0 16px; }
.emp-main { min-height: 60vh; }
.emp-section { padding-top: 34px; padding-bottom: 6px; }
.emp-muted { color: var(--emp-muted); }
.emp-box { padding: 22px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: var(--emp-radius); }
.emp-box + .emp-box, .emp-box + .emp-section, .emp-section + .emp-box { margin-top: 22px; }
.emp-box-title { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; font-size: 1.15rem; }
.emp-box-title .emp-icon { color: var(--emp-primary); }
@media (min-width: 768px) { .emp-container { padding: 0 24px; } }

/* ---------- Botones ---------- */
.emp-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap; background: var(--emp-grad); border: 0; border-radius: var(--emp-btn-radius); box-shadow: 0 6px 18px color-mix(in srgb, var(--emp-primary) 35%, transparent); transition: transform .15s, box-shadow .15s, filter .15s; }
.emp-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); }
.emp-btn .emp-icon { width: 18px; height: 18px; }
.emp-btn-ghost { color: var(--emp-text); background: var(--emp-surface2); border: 1px solid var(--emp-border); box-shadow: none; }
.emp-btn-ghost:hover { color: var(--emp-text); background: color-mix(in srgb, var(--emp-surface2) 80%, var(--emp-primary)); }
.emp-btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; }
.emp-btn-sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.emp-btn-block { width: 100%; }
.emp-btn.is-disabled { opacity: .4; pointer-events: none; }
.emp-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--emp-header-text, var(--emp-text)); background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 50%; transition: background .15s, color .15s; }
.emp-icon-btn:hover { color: #fff; background: var(--emp-primary); border-color: var(--emp-primary); }
.emp-icon-btn .emp-icon { width: 20px; height: 20px; }

/* ---------- Etiquetas ---------- */
.emp-badges { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 60px); }
.emp-badge { display: inline-flex; align-items: center; padding: 3px 8px; color: var(--emp-badge-text, #fff); font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; background: var(--emp-badge-type, #1B1C34); border-radius: 5px; }
.emp-badge-lang { background: var(--emp-badge-lang, var(--emp-primary)); }
.emp-badge-ep { background: var(--emp-badge-ep, var(--emp-secondary)); }
.emp-badge-type { background: color-mix(in srgb, var(--emp-badge-type, #1B1C34) 88%, transparent); backdrop-filter: blur(4px); }
.emp-badge-status.is-emision { background: #16b364; }
.emp-badge-status.is-proximamente { background: #6d5dfc; }
.emp-pill { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; color: #fff; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; backdrop-filter: blur(6px); }
.emp-pill .emp-icon { width: 15px; height: 15px; }
.emp-pill-star .emp-icon { color: var(--emp-star, var(--emp-secondary)); }
.emp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.emp-chips-center { justify-content: center; }
.emp-chips-label { color: var(--emp-muted); font-size: .9rem; }
.emp-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 13px; color: var(--emp-text); font-size: .85rem; font-weight: 500; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 99px; transition: all .15s; }
.emp-chip small { color: var(--emp-muted); }
.emp-chip:hover, .emp-chip.is-active { color: #fff; background: var(--emp-primary); border-color: var(--emp-primary); }
.emp-chip:hover small, .emp-chip.is-active small { color: rgba(255, 255, 255, .8); }
.emp-live-dot { display: inline-flex; gap: 6px; align-items: center; color: #22c55e; }
.emp-live-dot::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 0 currentColor; animation: emp-pulse 1.8s infinite; }
@keyframes emp-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.emp-stars { position: relative; display: inline-block; color: var(--emp-border); font-size: 18px; line-height: 1; letter-spacing: 2px; }
.emp-stars::before, .emp-stars-fill::before { content: "★★★★★"; }
.emp-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--emp-star, var(--emp-secondary)); white-space: nowrap; }

/* ---------- Cabecera ---------- */
.emp-header { position: relative; z-index: 100; border-bottom: 1px solid var(--emp-border); }
/* El desenfoque va en un pseudo-elemento: en la cabecera misma encerraría al menú lateral (position: fixed). */
.emp-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--emp-header-bg, var(--emp-surface)) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.emp-sticky .emp-header { position: sticky; top: 0; }
.admin-bar.emp-sticky .emp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.emp-sticky .emp-header { top: 0; } }
.emp-header-inner { display: flex; gap: 14px; align-items: center; height: 70px; }
.emp-logo { display: inline-flex; flex: none; gap: 10px; align-items: center; color: var(--emp-header-text, var(--emp-text)); }
.emp-logo:hover { color: var(--emp-header-text, var(--emp-text)); }
.emp-logo img { width: auto; height: var(--emp-logo-h, 40px); }
.emp-logo-mark { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--emp-grad); border-radius: 11px; box-shadow: 0 6px 18px color-mix(in srgb, var(--emp-primary) 45%, transparent); transform: rotate(-6deg); }
.emp-logo-mark .emp-icon { width: 24px; height: 24px; }
.emp-logo-text { font-family: var(--emp-font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; }
.emp-logo-text b { margin-left: 2px; font-weight: 800; background: var(--emp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emp-header-tools { display: flex; gap: 8px; margin-left: auto; }
.emp-mode .emp-mode-light, html[data-theme="light"] .emp-mode .emp-mode-dark { display: none; }
html[data-theme="light"] .emp-mode .emp-mode-light { display: grid; }
.emp-mode span { display: grid; }

.emp-nav { display: flex; }
.emp-menu, .emp-menu ul { margin: 0; padding: 0; list-style: none; }
.emp-menu > li { position: relative; }
.emp-menu a { display: flex; gap: 6px; align-items: center; padding: 10px 14px; color: var(--emp-header-text, var(--emp-text)); font-size: .92rem; font-weight: 600; letter-spacing: .02em; border-radius: 8px; }
.emp-menu > li > a { text-transform: uppercase; font-size: .84rem; }
.emp-menu a:hover, .emp-menu .current-menu-item > a, .emp-menu .current-menu-ancestor > a { color: var(--emp-primary-text); }
.emp-menu .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.emp-nav-head, .emp-burger { display: none; }
.emp-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(5, 6, 20, .6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }

@media (min-width: 1025px) {
	.emp-nav { margin-left: 18px; }
	.emp-menu { display: flex; gap: 2px; align-items: center; }
	.emp-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 220px; padding: 8px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 12px; box-shadow: var(--emp-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--emp-ease); }
	.emp-menu .sub-menu .sub-menu { top: -9px; left: 100%; }
	.emp-menu li:hover > .sub-menu, .emp-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.emp-menu .sub-menu a { justify-content: space-between; text-transform: none; font-weight: 500; }
	.emp-menu .sub-menu a:hover { background: var(--emp-surface2); }
	.emp-menu .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); }
}
@media (max-width: 1024px) {
	.emp-burger { display: inline-grid; }
	.emp-nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 110; flex-direction: column; width: min(330px, 86vw); padding: 16px; overflow-y: auto; background: var(--emp-surface); border-right: 1px solid var(--emp-border); transform: translateX(-102%); transition: transform .3s var(--emp-ease); }
	.emp-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--emp-border); }
	.emp-menu a { padding: 12px; }
	.emp-menu .sub-menu { display: none; padding-left: 14px; border-left: 2px solid var(--emp-border); margin-left: 12px; }
	.emp-menu li.is-open > .sub-menu { display: block; }
	.emp-menu li.is-open > a::after { transform: rotate(-135deg); }
	body.emp-menu-open .emp-nav { transform: none; }
	body.emp-menu-open .emp-overlay { opacity: 1; visibility: visible; }
	body.emp-menu-open { overflow: hidden; }
	.emp-header > .emp-container > .emp-logo { margin-right: auto; }
	.emp-header-tools { margin-left: 0; }
}
/* Logo que sobresale de la cabecera (General > Identidad > Estilo del logo).
   El enlace mide lo mismo que la cabecera; la imagen se sale por abajo sin empujar nada. */
.emp-logo-out {
	--emp-lo-h: min(var(--emp-logo-out-d, 150px), calc(62px + (100vw - 1025px) * .5));
	--emp-lo-top: max(0px, calc(70px - var(--emp-lo-h) * (1 - var(--emp-logo-out-p, .5))));
	--emp-lo-pad: max(0px, calc(var(--emp-lo-top) + var(--emp-lo-h) - 70px));
}
.emp-logo-out .emp-header-inner > .emp-logo { position: relative; z-index: 5; align-items: flex-start; height: 70px; }
.emp-logo-out .emp-header-inner > .emp-logo img { flex: none; max-width: none; height: var(--emp-lo-h); margin-top: var(--emp-lo-top); transition: height .28s var(--emp-ease), margin-top .28s var(--emp-ease); }
.emp-logo-out.emp-logo-shrink.is-scrolled .emp-header-inner > .emp-logo img,
.emp-logo-out .emp-header:has(.emp-search-panel:not([hidden])) .emp-header-inner > .emp-logo img { height: 62px; margin-top: 4px; }
/* Hueco para que el logo no tape las migas de pan, el anuncio ni el slider. */
.emp-logo-out .emp-ad-header { margin-top: calc(var(--emp-lo-pad) + 10px); }
.emp-logo-out .emp-ad-header.emp-ad-on-all ~ .emp-main { --emp-lo-pad: 0px; }
.emp-logo-out .emp-main > .emp-page-head:first-child, .emp-logo-out .emp-main > .emp-hero:first-child, .emp-logo-out .emp-main > .emp-ep-head:first-child, .emp-logo-out .emp-main > .emp-acc:first-child { padding-top: calc(var(--emp-lo-pad) + 12px); }
.emp-logo-out .emp-main > .emp-welcome:first-child { padding-top: calc(var(--emp-lo-pad) + 30px); }
.emp-logo-out .emp-slide-inner { padding-top: calc(var(--emp-lo-pad) * .6); }
@media (max-width: 1024px) {
	.emp-logo-out { --emp-lo-h: min(var(--emp-logo-out-m, 96px), calc(50vw - 92px)); }
}

@media (max-width: 480px) { .emp-logo-text { font-size: 1.1rem; } .emp-logo-mark { width: 34px; height: 34px; } .emp-header-tools .emp-icon-btn { width: 38px; height: 38px; } }

.emp-search-panel { padding: 16px 0 18px; background: var(--emp-surface); border-top: 1px solid var(--emp-border); box-shadow: var(--emp-shadow); animation: emp-drop .2s var(--emp-ease); }
@keyframes emp-drop { from { opacity: 0; transform: translateY(-8px); } }
.emp-searchform { position: relative; display: flex; gap: 8px; align-items: center; max-width: 760px; margin: 0 auto; padding: 6px; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.emp-searchform:focus-within { border-color: var(--emp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--emp-primary) 20%, transparent); }
.emp-searchform-icon { display: grid; padding-left: 10px; color: var(--emp-muted); }
.emp-searchform input { flex: 1; min-width: 0; padding: 10px 4px; background: none; border: 0; outline: 0; }
.emp-searchform input::-webkit-search-cancel-button { filter: grayscale(1); }
.emp-live { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 50; max-height: 70vh; overflow-y: auto; padding: 6px; text-align: left; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 14px; box-shadow: var(--emp-shadow); }
.emp-live a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.emp-live a:hover, .emp-live a.is-focus { color: var(--emp-text); background: var(--emp-surface2); }
.emp-live img { width: 44px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--emp-surface2); }
.emp-live img.is-wide { width: 80px; height: 45px; }
.emp-live strong { display: block; font-size: .92rem; line-height: 1.3; }
.emp-live small { color: var(--emp-muted); }
.emp-live .emp-live-all { justify-content: center; color: var(--emp-primary-text); font-weight: 600; }
.emp-live p { margin: 0; padding: 12px; color: var(--emp-muted); text-align: center; }

/* ---------- Slider ---------- */
.emp-slider { position: relative; height: var(--emp-slider-h-m, 460px); overflow: hidden; color: #fff; background: #0b0c1a; isolation: isolate; }
@media (min-width: 900px) { .emp-slider { height: var(--emp-slider-h, 560px); } }
.emp-slides, .emp-slide { position: absolute; inset: 0; }
.emp-slide { visibility: hidden; opacity: 0; transition: opacity .9s var(--emp-ease), transform .9s var(--emp-ease), visibility 0s .9s; }
.emp-slide.is-active { visibility: visible; opacity: 1; transition: opacity .9s var(--emp-ease), transform .9s var(--emp-ease), visibility 0s; z-index: 1; }
.emp-fx-slide .emp-slide { opacity: 1; transform: translateX(100%); }
.emp-fx-slide .emp-slide.is-prev { transform: translateX(-100%); }
.emp-fx-slide .emp-slide.is-active { transform: none; }
.emp-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emp-fx-zoom .emp-slide.is-active .emp-slide-bg, .emp-fx-fade .emp-slide.is-active .emp-slide-bg { animation: emp-kenburns 14s ease-out forwards; }
.emp-fx-fade .emp-slide.is-active .emp-slide-bg { animation-duration: 20s; }
@keyframes emp-kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.emp-slide::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.emp-ov-gradient .emp-slide::after { background: linear-gradient(90deg, rgba(10, 11, 26, .96) 0%, rgba(10, 11, 26, .78) 38%, rgba(10, 11, 26, .15) 75%), linear-gradient(0deg, var(--emp-bg) 0%, transparent 28%); }
.emp-ov-bottom .emp-slide::after { background: linear-gradient(0deg, var(--emp-bg) 0%, rgba(10, 11, 26, .75) 45%, rgba(10, 11, 26, .1) 100%); }
.emp-ov-dark .emp-slide::after { background: rgba(8, 9, 22, .62); }
.emp-ov-brand .emp-slide::after { background: linear-gradient(100deg, color-mix(in srgb, var(--emp-primary) 80%, #000) 0%, rgba(27, 28, 52, .7) 50%, rgba(27, 28, 52, .1) 100%); }
.emp-slide-inner { position: relative; z-index: 2; display: flex; gap: 40px; align-items: center; justify-content: space-between; height: 100%; padding-bottom: 46px; }
.emp-slide-content { max-width: 640px; }
.emp-slide-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.emp-slide-title { margin: 0 0 10px; font-family: var(--emp-font-head); color: #fff; font-size: clamp(1.8rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.emp-slide-title a:hover { color: #fff; }
.emp-slide-info { margin-bottom: 10px; color: var(--emp-secondary); font-size: .95rem; font-weight: 600; }
.emp-slide-text { display: -webkit-box; max-width: 560px; margin-bottom: 22px; overflow: hidden; color: rgba(255, 255, 255, .82); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.emp-slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.emp-slide .emp-btn-ghost { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.emp-slide-poster { display: none; flex: none; width: 250px; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); transform: perspective(900px) rotateY(-12deg) rotateX(3deg); transition: transform .5s var(--emp-ease); }
.emp-slide-poster:hover { transform: perspective(900px) rotateY(-4deg); }
.emp-slide.is-active .emp-slide-content > * { animation: emp-rise .8s var(--emp-ease) both; }
.emp-slide.is-active .emp-slide-content > :nth-child(2) { animation-delay: .08s; }
.emp-slide.is-active .emp-slide-content > :nth-child(3) { animation-delay: .16s; }
.emp-slide.is-active .emp-slide-content > :nth-child(4) { animation-delay: .24s; }
.emp-slide.is-active .emp-slide-content > :nth-child(5) { animation-delay: .32s; }
.emp-slide.is-active .emp-slide-poster { animation: emp-pop 1s var(--emp-ease) both .15s; }
@keyframes emp-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes emp-pop { from { opacity: 0; transform: perspective(900px) rotateY(-25deg) translateX(40px) scale(.92); } }
.emp-slider-arrow { position: absolute; top: 50%; z-index: 5; display: none; place-items: center; width: 48px; height: 48px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; transform: translateY(-50%); backdrop-filter: blur(8px); transition: background .2s; }
.emp-slider-arrow:hover { background: var(--emp-primary); border-color: var(--emp-primary); }
.emp-slider-prev { left: 18px; } .emp-slider-next { right: 18px; }
.emp-slider-dots { position: absolute; bottom: 22px; left: 50%; z-index: 5; display: flex; gap: 6px; transform: translateX(-50%); }
.emp-slider-dots button { width: 9px; height: 9px; padding: 0; background: rgba(255, 255, 255, .4); border: 0; border-radius: 99px; transition: all .3s; }
.emp-slider-dots button.is-active { width: 28px; background: var(--emp-grad); }
.emp-slider-thumbs { position: absolute; right: max(24px, calc((100% - var(--emp-container)) / 2 + 24px)); bottom: 26px; z-index: 5; display: none; gap: 10px; }
.emp-slider-thumbs button { width: 54px; height: 78px; padding: 0; overflow: hidden; background: #000; border: 2px solid rgba(255, 255, 255, .25); border-radius: 9px; opacity: .6; transition: all .25s; }
.emp-slider-thumbs button:hover { opacity: 1; }
.emp-slider-thumbs button.is-active { border-color: var(--emp-primary); opacity: 1; transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0, 0, 0, .5); }
.emp-slider-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.emp-slider-progress { position: absolute; right: 0; bottom: 0; left: 0; z-index: 6; height: 3px; background: rgba(255, 255, 255, .1); }
.emp-slider-progress span { display: block; width: 0; height: 100%; background: var(--emp-grad); }
.emp-slider-progress span.is-run { width: 100%; transition: width linear var(--emp-int, 6s); }
.emp-slider.is-paused .emp-slider-progress span { transition: none; }
@media (min-width: 900px) {
	.emp-slider-arrow { display: grid; }
	.emp-slider.has-poster .emp-slide-poster { display: block; width: 220px; margin-right: 60px; }
	.emp-slide-content { padding-left: 44px; }
	.emp-slider-prev { left: 14px; } .emp-slider-next { right: 14px; }
	.emp-slider-thumbs { display: flex; }
	.emp-slider:has(.emp-slider-thumbs) .emp-slider-dots { display: none; }
	.emp-slider.has-poster:has(.emp-slider-thumbs) .emp-slide-inner { padding-bottom: 110px; }

}
@media (min-width: 1200px) { .emp-slider.has-poster .emp-slide-poster { width: 250px; } }
@media (max-width: 899px) {
	.emp-slide-inner { align-items: flex-end; padding-bottom: 54px; }
	.emp-ov-gradient .emp-slide::after { background: linear-gradient(0deg, var(--emp-bg) 0%, rgba(10, 11, 26, .88) 42%, rgba(10, 11, 26, .25) 100%); }
	.emp-slide-text { -webkit-line-clamp: 2; font-size: .9rem; margin-bottom: 16px; }
	.emp-slide-badges { margin-bottom: 10px; }
	.emp-slide .emp-btn-lg { min-height: 44px; padding: 10px 18px; }
}

/* ---------- Bienvenida ---------- */
.emp-welcome { position: relative; padding: 42px 0 18px; text-align: center; }
.emp-welcome::before { content: ""; position: absolute; inset: -20px 0 0; z-index: -1; background: radial-gradient(500px 160px at 20% 30%, color-mix(in srgb, var(--emp-primary) 14%, transparent), transparent), radial-gradient(500px 160px at 80% 60%, color-mix(in srgb, var(--emp-secondary) 12%, transparent), transparent); pointer-events: none; }
.emp-welcome-inner { max-width: 900px; }
.emp-welcome-title { font-size: clamp(1.45rem, 3.2vw, 2.25rem); font-weight: 800; }
.emp-welcome-title::after { content: ""; display: block; width: 70px; height: 4px; margin: 14px auto 0; background: var(--emp-grad); border-radius: 4px; }
.emp-welcome-text { max-width: 760px; margin: 0 auto 22px; color: var(--emp-muted); }
.emp-welcome-search { margin-bottom: 16px; }

/* ---------- Encabezados de sección ---------- */
.emp-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.emp-head-title { display: flex; gap: 10px; align-items: center; margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 800; letter-spacing: .02em; text-transform: var(--emp-head-case); }
.emp-head-icon { display: none; }
.emp-head-bar .emp-head-title::before { content: ""; width: 5px; height: 1.25em; background: var(--emp-grad); border-radius: 4px; }
.emp-head-line .emp-head { padding-bottom: 12px; border-bottom: 2px solid var(--emp-border); position: relative; }
.emp-head-line .emp-head::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 90px; height: 2px; background: var(--emp-grad); }
.emp-head-icon .emp-head-icon { display: grid; width: 34px; height: 34px; padding: 7px; color: #fff; background: var(--emp-grad); border-radius: 9px; }
.emp-head-more { display: inline-flex; flex: none; gap: 4px; align-items: center; padding: 6px 12px; color: var(--emp-muted); font-size: .85rem; font-weight: 600; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 99px; }
.emp-head-more:hover { color: #fff; background: var(--emp-primary); border-color: var(--emp-primary); }
.emp-head-more .emp-icon { width: 16px; height: 16px; }

/* ---------- Grillas y filas ---------- */
.emp-grid { display: grid; gap: var(--emp-gap) 14px; }
.emp-grid-poster { grid-template-columns: repeat(var(--emp-cols-m), minmax(0, 1fr)); }
.emp-grid-ep { grid-template-columns: repeat(var(--emp-ep-cols-m), minmax(0, 1fr)); }
@media (min-width: 640px) { .emp-grid-poster { grid-template-columns: repeat(var(--emp-cols-t), minmax(0, 1fr)); } .emp-grid-ep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .emp-grid-ep { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .emp-grid { gap: 22px 18px; } .emp-grid-poster { grid-template-columns: repeat(var(--emp-cols-d), minmax(0, 1fr)); } .emp-grid-ep { grid-template-columns: repeat(var(--emp-ep-cols-d), minmax(0, 1fr)); } }

.emp-row { position: relative; }
.emp-row-track { display: grid; grid-auto-flow: column; grid-template-columns: none; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.emp-row-track::-webkit-scrollbar { display: none; }
.emp-row-track.emp-grid-poster { grid-auto-columns: calc((100% - 14px * (var(--emp-cols-m) - .6)) / (var(--emp-cols-m) + .4)); }
.emp-row-track.emp-grid-ep { grid-auto-columns: 78%; }
.emp-row-track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .emp-row-track.emp-grid-poster { grid-auto-columns: calc((100% - 14px * (var(--emp-cols-t) - 1)) / var(--emp-cols-t)); } .emp-row-track.emp-grid-ep { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (min-width: 1100px) { .emp-row-track { gap: 18px; } .emp-row-track.emp-grid-poster { grid-auto-columns: calc((100% - 18px * (var(--emp-cols-d) - 1)) / var(--emp-cols-d)); } .emp-row-track.emp-grid-ep { grid-auto-columns: calc((100% - 18px * (var(--emp-ep-cols-d) - 1)) / var(--emp-ep-cols-d)); } }
.emp-row-nav { position: absolute; top: 36%; z-index: 4; display: none; place-items: center; width: 42px; height: 42px; color: #fff; background: color-mix(in srgb, var(--emp-surface) 85%, transparent); border: 1px solid var(--emp-border); border-radius: 50%; box-shadow: var(--emp-shadow); backdrop-filter: blur(6px); transition: all .2s; }
.emp-row-nav:hover { background: var(--emp-primary); border-color: var(--emp-primary); }
html[data-theme="light"] .emp-row-nav { color: var(--emp-text); }
html[data-theme="light"] .emp-row-nav:hover { color: #fff; }
.emp-row-prev { left: -14px; } .emp-row-next { right: -14px; }
.emp-row-nav[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 900px) { .emp-row-nav { display: grid; } }

/* ---------- Tarjetas ---------- */
.emp-card { position: relative; min-width: 0; }
.emp-card-media { position: relative; display: block; overflow: hidden; background: var(--emp-surface2); border-radius: var(--emp-radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .3s var(--emp-ease), box-shadow .3s; isolation: isolate; }
.emp-card-poster .emp-card-media { aspect-ratio: 2 / 3; }
.emp-card-ep .emp-card-media { aspect-ratio: 16 / 9; }
.emp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--emp-ease), filter .3s; }
.emp-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, transparent 45%); pointer-events: none; }
.emp-card-rating { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; gap: 3px; align-items: center; padding: 3px 7px; color: #fff; font-size: 12px; font-weight: 700; background: rgba(10, 11, 26, .72); border-radius: 6px; backdrop-filter: blur(4px); }
.emp-card-rating .emp-icon { width: 13px; height: 13px; color: var(--emp-star, var(--emp-secondary)); }
.emp-card-bar { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 8px 10px; color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.emp-card-play { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 54px; height: 54px; color: #fff; background: var(--emp-grad); border-radius: 50%; box-shadow: 0 8px 26px color-mix(in srgb, var(--emp-primary) 60%, transparent); opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: all .3s var(--emp-ease); }
.emp-card-play .emp-icon { width: 22px; height: 22px; margin-left: 3px; }
.emp-card:hover .emp-card-play, .emp-card-media:focus-visible .emp-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.emp-card:hover .emp-card-media img { filter: brightness(.75); }
.emp-hover-lift .emp-card:hover .emp-card-media { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
.emp-hover-zoom .emp-card:hover .emp-card-media img { transform: scale(1.08); }
.emp-hover-glow .emp-card:hover .emp-card-media { box-shadow: 0 0 0 2px var(--emp-primary), 0 12px 34px color-mix(in srgb, var(--emp-primary) 45%, transparent); }
.emp-hover-none .emp-card:hover .emp-card-media img { filter: none; }
.emp-card-title { display: -webkit-box; margin: 10px 0 2px; overflow: hidden; font-family: var(--emp-font); font-size: .93rem; font-weight: 600; line-height: 1.35; -webkit-line-clamp: var(--emp-lines); -webkit-box-orient: vertical; }
.emp-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; margin: 0; color: var(--emp-muted); font-size: .8rem; }
.emp-card-ep .emp-card-meta { display: block; }
.emp-card-ep .emp-card-meta span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.emp-card-ep .emp-card-meta time { color: var(--emp-secondary-text); font-size: .75rem; font-weight: 500; }
.emp-card-ep .emp-badge-ep { position: absolute; top: 8px; right: 8px; z-index: 2; }
.emp-card-ep-season { position: absolute; bottom: 8px; left: 10px; z-index: 2; color: #fff; font-size: 12px; font-weight: 600; }
.emp-rank { position: absolute; bottom: -10px; left: 4px; z-index: 2; color: transparent; font: 900 4.6rem/1 var(--emp-font-head); -webkit-text-stroke: 2px rgba(255, 255, 255, .85); text-shadow: 0 6px 18px rgba(0, 0, 0, .6); pointer-events: none; }
.has-rank .emp-card-bar { padding-left: 50px; text-align: right; }

/* Mosaicos de categorías */
.emp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .emp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .emp-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.emp-tile { position: relative; display: flex; align-items: flex-end; min-height: 110px; padding: 14px; overflow: hidden; color: #fff; border-radius: var(--emp-radius); isolation: isolate; }
.emp-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--emp-ease); }
.emp-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, hsla(calc(var(--tile-h, 0) + 350), 90%, 58%, .85), rgba(20, 21, 40, .82)); }
.emp-tile:hover { color: #fff; }
.emp-tile:hover img { transform: scale(1.1); }
.emp-tile small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.emp-tile strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.emp-tile em { font-size: .78rem; font-style: normal; opacity: .85; }

/* Texto SEO plegable */
.emp-seo { position: relative; }
.emp-seo-title { font-size: 1.15rem; }
.emp-seo-body { position: relative; max-height: 9.5em; overflow: hidden; color: var(--emp-muted); transition: max-height .5s var(--emp-ease); }
.emp-seo-body::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 60px; background: linear-gradient(transparent, var(--emp-surface)); }
[data-emp-more].is-open .emp-seo-body { max-height: 2000px; }
[data-emp-more].is-open .emp-seo-body::after { display: none; }
[data-emp-more].is-open .emp-seo-more .emp-icon { transform: rotate(180deg); }
[data-emp-more].no-more .emp-seo-more, [data-emp-more].no-more .emp-seo-body::after { display: none; }
[data-emp-more].no-more .emp-seo-body { max-height: none; }
.emp-seo-more { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; padding: 0; color: var(--emp-primary-text); font-weight: 600; background: none; border: 0; }
.emp-seo-small p { margin: 0; color: var(--emp-muted); font-size: .92rem; }
.emp-section .emp-seo-small { margin-top: 30px; }

/* ---------- Cabecera de listados ---------- */
.emp-page-head { position: relative; padding: 26px 0 24px; overflow: hidden; background: var(--emp-surface); border-bottom: 1px solid var(--emp-border); }
.emp-page-head::before { content: ""; position: absolute; top: -120px; right: -80px; width: 420px; height: 300px; background: radial-gradient(closest-side, color-mix(in srgb, var(--emp-primary) 28%, transparent), transparent); pointer-events: none; }
.emp-page-head > .emp-container { position: relative; }
.emp-page-title { display: flex; gap: 12px; align-items: center; margin: 6px 0 4px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.emp-page-title > .emp-icon { width: 42px; height: 42px; padding: 9px; color: #fff; background: var(--emp-grad); border-radius: 12px; }
.emp-page-count { margin: 0 0 10px; color: var(--emp-secondary-text); font-weight: 600; font-size: .9rem; }
.emp-page-desc { max-width: 820px; margin-bottom: 14px; color: var(--emp-muted); }
.emp-page-desc p:last-child { margin: 0; }
.emp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--emp-muted); font-size: .82rem; }
.emp-crumbs li { display: inline-flex; align-items: center; }
.emp-crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.emp-crumbs a { display: inline-flex; gap: 5px; align-items: center; }
.emp-crumbs .emp-icon { width: 15px; height: 15px; }
.emp-crumbs [aria-current] { color: var(--emp-text); }

.emp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 24px; padding: 14px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: var(--emp-radius); }
.emp-filter { display: grid; flex: 1 1 150px; gap: 4px; max-width: 230px; }
.emp-filter span { color: var(--emp-muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.emp-filter select, .emp-ep-search input, .emp-prose input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]), .comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; color: var(--emp-text); padding: 9px 12px; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 8px; outline: 0; }
.emp-filter select:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--emp-primary); }
.emp-filters .emp-btn { min-height: 41px; }
@media (max-width: 600px) { .emp-filter { flex-basis: calc(50% - 5px); max-width: none; } .emp-filters .emp-btn { flex: 1 1 100%; } }

.emp-pages { margin-top: 34px; }
.emp-pages ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.emp-pages ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; min-width: 0; height: auto; margin: 0; padding: 0; list-style: none; background: none; border: 0; border-radius: 0; }
.emp-pages ul.page-numbers li { margin: 0; }
.emp-pages ul.page-numbers .emp-icon { width: 18px; height: 18px; }
.emp-pages :not(ul).page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; font-weight: 600; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 10px; }
.emp-pages span.page-numbers.current, .emp-pages a.page-numbers:hover { color: #fff; background: var(--emp-grad); border-color: transparent; }
.emp-pages .emp-icon { width: 18px; height: 18px; }

.emp-empty { display: grid; justify-items: center; padding: 50px 20px; text-align: center; background: var(--emp-surface); border: 1px dashed var(--emp-border); border-radius: var(--emp-radius); }
.emp-empty > .emp-icon { width: 56px; height: 56px; margin-bottom: 10px; padding: 12px; color: var(--emp-primary); background: color-mix(in srgb, var(--emp-primary) 14%, transparent); border-radius: 50%; }
.emp-empty p { color: var(--emp-muted); }
.emp-empty + .emp-head { margin-top: 34px; }

/* Búsqueda */
.emp-search-big { max-width: 760px; margin: 14px 0; }
.emp-search-big .emp-searchform { margin: 0; }
.emp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.emp-tabs a { padding: 7px 16px; color: var(--emp-muted); font-weight: 600; font-size: .9rem; background: var(--emp-surface2); border-radius: 99px; }
.emp-tabs a.is-active, .emp-tabs a:hover { color: #fff; background: var(--emp-grad); }
.emp-results { display: grid; gap: 14px; }
@media (min-width: 1000px) { .emp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.emp-result { display: flex; gap: 16px; padding: 14px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: var(--emp-radius); transition: border-color .2s, transform .2s; }
.emp-result:hover { border-color: var(--emp-primary); transform: translateY(-2px); }
.emp-result-media { position: relative; flex: none; width: 110px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; }
.emp-result.is-episode .emp-result-media { width: 180px; aspect-ratio: 16 / 9; align-self: flex-start; }
.emp-result-media img { width: 100%; height: 100%; object-fit: cover; }
.emp-result:hover .emp-card-play { opacity: 1; transform: translate(-50%, -50%) scale(.8); }
.emp-result-body { min-width: 0; }
.emp-result-body .emp-slide-badges { margin-bottom: 6px; }
.emp-result-body .emp-pill { color: var(--emp-text); background: var(--emp-surface2); border-color: var(--emp-border); }
.emp-result-title { margin: 0 0 2px; font-size: 1.05rem; }
.emp-result-meta { margin: 0 0 6px; color: var(--emp-secondary-text); font-size: .85rem; font-weight: 600; }
.emp-result-text { display: -webkit-box; margin-bottom: 8px; overflow: hidden; color: var(--emp-muted); font-size: .88rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 520px) { .emp-result { gap: 12px; padding: 10px; } .emp-result-media { width: 86px; } .emp-result.is-episode .emp-result-media { width: 120px; } .emp-result-text { display: none; } }

/* ---------- Ficha (serie y película) ---------- */
.emp-hero { position: relative; padding: 22px 0 40px; overflow: hidden; color: #fff; isolation: isolate; }
.emp-hero-bg { position: absolute; inset: 0; z-index: -1; }
.emp-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(1.1); transform: scale(1.04); }
.emp-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 30, .97) 0%, rgba(12, 13, 30, .84) 50%, rgba(12, 13, 30, .55) 100%), linear-gradient(0deg, var(--emp-bg) 0%, transparent 40%); }
.emp-hero .emp-crumbs ol, .emp-ep-head .emp-crumbs ol { color: rgba(255, 255, 255, .7); }
.emp-hero .emp-crumbs [aria-current], .emp-ep-head .emp-crumbs [aria-current] { color: #fff; }
.emp-hero-grid { display: grid; gap: 26px; margin-top: 22px; }
.emp-hero-poster { position: relative; width: min(240px, 60vw); margin: 0 auto; }
.emp-hero-poster img { width: 100%; border-radius: 16px; box-shadow: 0 25px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1); }
.emp-hero-live { position: absolute; right: 10px; bottom: -14px; left: 10px; display: flex; gap: 6px; justify-content: center; align-items: center; padding: 7px; font-size: 12px; font-weight: 700; background: rgba(10, 11, 26, .9); border: 1px solid rgba(34, 197, 94, .5); border-radius: 99px; color: #fff; }
.emp-hero-title { margin: 0 0 4px; color: #fff; font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.1; }
.emp-hero-alt { margin: 0 0 12px; color: rgba(255, 255, 255, .65); font-style: italic; }
.emp-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.emp-facts li { display: inline-flex; gap: 6px; align-items: center; }
.emp-facts .emp-icon { width: 17px; height: 17px; color: var(--emp-secondary); }
.emp-hero-rating { display: flex; gap: 8px; align-items: baseline; margin-bottom: 14px; }
.emp-hero-rating strong { font-size: 1.4rem; font-weight: 800; }
.emp-hero-rating > span:last-child { color: rgba(255, 255, 255, .6); }
.emp-hero-rating.is-small { margin: 4px 0; }
/* Estrellas de los visitantes */
.emp-ustars { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; width: fit-content; max-width: 100%; margin: -4px 0 16px; padding: 6px 14px 6px 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; transition: opacity .2s; }
.emp-ustars.is-busy { opacity: .6; pointer-events: none; }
.emp-ustars-label { color: rgba(255, 255, 255, .7); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.emp-ustars-pick { display: flex; }
.emp-ustars-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 3px; color: rgba(255, 255, 255, .28); background: none; border: 0; cursor: pointer; transition: color .12s, transform .15s; }
.emp-ustars-btn svg { width: 100%; height: 100%; fill: currentColor; }
.emp-ustars-btn.is-on { color: var(--emp-star, var(--emp-secondary)); }
.emp-ustars-pick:hover .emp-ustars-btn { color: var(--emp-star, var(--emp-secondary)); }
.emp-ustars-pick .emp-ustars-btn:hover ~ .emp-ustars-btn { color: rgba(255, 255, 255, .28); }
.emp-ustars-btn:hover { transform: scale(1.18); }
.emp-ustars-sum { color: rgba(255, 255, 255, .85); font-size: .85rem; font-weight: 600; }
.emp-ustars-msg { color: var(--emp-secondary); font-size: .8rem; font-weight: 600; }
.emp-ustars-msg:empty { display: none; }
@media (max-width: 600px) { .emp-ustars { border-radius: 14px; } .emp-ustars-btn { width: 34px; height: 34px; } }
.emp-ep-head .emp-ustars { margin: 12px 0 0; }
html[data-theme="light"] .emp-ep-head .emp-ustars { background: var(--emp-surface); border-color: var(--emp-border); }
html[data-theme="light"] .emp-ep-head .emp-ustars-label { color: var(--emp-muted); }
html[data-theme="light"] .emp-ep-head .emp-ustars-sum { color: var(--emp-text); }
html[data-theme="light"] .emp-ep-head .emp-ustars-btn:not(.is-on), html[data-theme="light"] .emp-ep-head .emp-ustars-pick .emp-ustars-btn:hover ~ .emp-ustars-btn { color: #cfd2df; }
html[data-theme="light"] .emp-ep-head .emp-ustars-pick:hover .emp-ustars-btn:not(:hover ~ .emp-ustars-btn) { color: var(--emp-star, var(--emp-secondary)); }
.emp-hero-rating.is-small strong { font-size: 1rem; }
.emp-hero .emp-stars { color: rgba(255, 255, 255, .25); }
.emp-hero .emp-chip { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }
.emp-hero .emp-chip:hover { background: var(--emp-primary); }
.emp-hero-text { margin: 16px 0 20px; max-width: 760px; }
.emp-hero-text .emp-seo-body { max-height: 6.6em; color: rgba(255, 255, 255, .82); }
.emp-hero-text .emp-seo-body::after { background: linear-gradient(transparent, rgba(16, 17, 36, .95)); }
.emp-hero-text .emp-seo-more { color: var(--emp-secondary); }
.emp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.emp-hero .emp-btn-ghost { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.emp-hero .emp-share span { color: rgba(255, 255, 255, .7); }
@media (min-width: 800px) {
	.emp-hero { padding: 26px 0 54px; }
	.emp-hero-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
	.emp-hero-poster { width: 100%; margin: 0; }
}

.emp-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.emp-share > span { display: inline-flex; gap: 6px; align-items: center; margin-right: 4px; color: var(--emp-muted); font-size: .85rem; font-weight: 600; }
.emp-share a { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; border-radius: 50%; transition: transform .15s; }
.emp-share a:hover { color: #fff; transform: translateY(-2px); }
.emp-share .emp-icon { width: 18px; height: 18px; }
.emp-share-facebook { background: #1877f2; } .emp-share-x { background: #111; } .emp-share-whatsapp { background: #25d366; } .emp-share-telegram { background: #229ed9; }

.emp-with-side { display: grid; gap: 24px; align-items: start; }
.emp-primary { min-width: 0; }
.emp-side { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 1024px) { .emp-with-side { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; } .emp-side { position: sticky; top: 96px; } }
.emp-narrow { max-width: 900px; }

.emp-info-list { display: grid; margin: 0; }
.emp-info-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--emp-border); }
.emp-info-list > div:last-child { border-bottom: 0; }
.emp-info-list dt { color: var(--emp-muted); font-size: .85rem; }
.emp-info-list dd { margin: 0; font-weight: 500; font-size: .9rem; }
.emp-link + .emp-link::before { content: ", "; color: var(--emp-muted); }
.emp-link { color: var(--emp-secondary-text); }
.emp-info-inline { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 16px; }
.emp-info-inline > div { display: block; padding: 10px 12px; background: var(--emp-surface2); border: 0; border-radius: 10px; }
.emp-info-inline dd { color: var(--emp-text); }

/* Lista de capítulos */
.emp-episodes-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.emp-episodes-head .emp-box-title { margin: 0; }
.emp-episodes-tools { display: flex; gap: 8px; }
.emp-ep-search { position: relative; display: flex; align-items: center; }
.emp-ep-search .emp-icon { position: absolute; left: 10px; width: 17px; color: var(--emp-muted); }
.emp-ep-search input { width: 200px; padding-left: 34px; }
.emp-episodes-tools .emp-icon-btn { border-radius: 8px; }
/* Selector de temporadas (Diseño › Estilos de bloques › Temporadas) */
.emp-season-nav { position: relative; display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.emp-season-tabs { display: flex; flex: 1; gap: 10px; min-width: 0; padding: 4px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.emp-season-tabs::-webkit-scrollbar { display: none; }
.emp-season-nav.has-more .emp-season-tabs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.emp-season-tab { position: relative; display: flex; flex: none; gap: 10px; align-items: center; color: var(--emp-muted); font: inherit; text-align: left; background: var(--emp-surface2); border: 1px solid var(--emp-border); cursor: pointer; transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s var(--emp-ease); }
.emp-season-tab:hover { color: var(--emp-text); border-color: color-mix(in srgb, var(--emp-primary) 55%, var(--emp-border)); }
.emp-season-tab:focus-visible { outline: 2px solid var(--emp-primary); outline-offset: 2px; }
.emp-season-label { display: block; color: var(--emp-text); font-weight: 700; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
.emp-season-sub { display: block; margin-top: 2px; font-size: .74rem; white-space: nowrap; }
.emp-season-count { padding: 1px 8px; font-size: .72rem; font-weight: 700; background: rgba(0, 0, 0, .18); border-radius: 99px; }
.emp-season-thumb { display: none; }
.emp-season-arrow { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--emp-text); background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 50%; cursor: pointer; transition: background .2s, color .2s; }
.emp-season-arrow:hover { color: #fff; background: var(--emp-grad); border-color: transparent; }
.emp-season-arrow .emp-icon { width: 16px; height: 16px; }
.emp-season-arrow[hidden] { display: none; }
.emp-season-select { position: relative; display: none; flex: 1; }
.emp-season-select select { width: 100%; padding: 12px 42px 12px 16px; color: var(--emp-text); font-weight: 700; font-size: .95rem; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: var(--emp-radius); outline: 0; appearance: none; cursor: pointer; }
.emp-season-select select:focus { border-color: var(--emp-primary); }
.emp-season-select .emp-icon { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; color: var(--emp-primary-text); transform: translateY(-50%); pointer-events: none; }

/* 1) Tarjetas con póster */
.emp-sea-cards .emp-season-tab { min-width: 178px; padding: 8px 14px 8px 8px; border-radius: var(--emp-radius); }
.emp-sea-cards .emp-season-thumb { display: grid; flex: none; place-items: center; width: 42px; height: 62px; overflow: hidden; color: #fff; font-weight: 800; font-size: 1.1rem; background: var(--emp-grad-ink); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.emp-sea-cards .emp-season-thumb img { width: 100%; height: 100%; object-fit: cover; }
.emp-sea-cards .emp-season-count { display: none; }
.emp-sea-cards .emp-season-tab.is-active { background: linear-gradient(var(--emp-surface2), var(--emp-surface2)) padding-box, var(--emp-grad) border-box; border: 2px solid transparent; box-shadow: 0 8px 22px color-mix(in srgb, var(--emp-primary) 28%, transparent); }
.emp-sea-cards .emp-season-tab.is-active .emp-season-sub { color: var(--emp-primary-text); font-weight: 600; }
.emp-sea-cards .emp-season-tab.is-active::after { content: ""; position: absolute; right: 10px; top: 10px; width: 8px; height: 8px; background: var(--emp-grad); border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--emp-primary) 22%, transparent); }
.emp-sea-cards .emp-season-tab:hover { transform: translateY(-2px); }

/* 2) Píldoras */
.emp-sea-pills .emp-season-tab { padding: 9px 10px 9px 18px; border-radius: 99px; }
.emp-sea-pills .emp-season-sub { display: none; }
.emp-sea-pills .emp-season-label { color: inherit; font-weight: 600; }
.emp-sea-pills .emp-season-tab.is-active { color: #fff; background: var(--emp-grad); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--emp-primary) 35%, transparent); }
.emp-sea-pills .emp-season-tab.is-active .emp-season-label { color: #fff; }
.emp-sea-pills .emp-season-tab.is-active .emp-season-count { background: rgba(255, 255, 255, .25); }

/* 3) Pestañas subrayadas */
.emp-sea-line .emp-season-nav { border-bottom: 1px solid var(--emp-border); }
.emp-sea-line .emp-season-tabs { gap: 4px; padding-bottom: 0; }
.emp-sea-line .emp-season-tab { padding: 12px 14px 13px; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; }
.emp-sea-line .emp-season-sub { display: none; }
.emp-sea-line .emp-season-label { color: inherit; font-weight: 600; }
.emp-sea-line .emp-season-count { color: var(--emp-muted); background: var(--emp-surface2); }
.emp-sea-line .emp-season-tab.is-active { color: var(--emp-text); border-bottom-color: var(--emp-primary); }
.emp-sea-line .emp-season-tab.is-active .emp-season-count { color: #fff; background: var(--emp-grad); }
.emp-sea-line .emp-season-arrow { width: 28px; height: 28px; }

/* 4) Menú desplegable */
.emp-sea-select .emp-season-tabs, .emp-sea-select .emp-season-arrow { display: none; }
.emp-sea-select .emp-season-select { display: block; max-width: 420px; }

@media (max-width: 600px) {
	.emp-sea-cards .emp-season-tab { min-width: 150px; }
	.emp-season-arrow { display: none; }
}
.emp-season-name { font-size: 1rem; }
.emp-season-name span { color: var(--emp-muted); font-weight: 400; }
.emp-ep-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
/* Un título muy largo no debe ensanchar la lista ni meterse debajo de la barra lateral. */
.emp-ep-list li, .emp-season, .emp-episodes { min-width: 0; }
.emp-ep-list.is-reversed { display: flex; flex-direction: column-reverse; }
.emp-ep-list a { display: flex; gap: 14px; align-items: center; padding: 8px; background: var(--emp-surface2); border: 1px solid transparent; border-radius: 12px; transition: all .2s; }
.emp-ep-list a:hover { color: var(--emp-text); border-color: var(--emp-primary); transform: translateX(4px); }
.emp-ep-thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.emp-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.emp-ep-thumb .emp-card-play { width: 34px; height: 34px; }
.emp-ep-thumb .emp-card-play .emp-icon { width: 15px; height: 15px; }
.emp-ep-list a:hover .emp-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.emp-ep-n { flex: none; width: 46px; font: 800 1.6rem/1 var(--emp-font-head); background: var(--emp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
.emp-ep-info { flex: 1; min-width: 0; }
.emp-ep-info strong { display: block; overflow: hidden; font-weight: 600; font-size: .93rem; white-space: nowrap; text-overflow: ellipsis; }
.emp-ep-info small { color: var(--emp-muted); }
.emp-ep-go { flex: none; padding: 6px 14px; color: #fff; font-size: .82rem; font-weight: 700; background: var(--emp-grad); border-radius: 8px; }
@media (max-width: 600px) { .emp-ep-thumb { width: 96px; } .emp-ep-n { display: none; } .emp-ep-go { display: none; } .emp-ep-search input { width: 150px; } }

/* ---------- Capítulo ---------- */
.emp-ep-head { position: relative; padding: 20px 0 26px; overflow: hidden; color: #fff; isolation: isolate; }
.emp-ep-head-bg { position: absolute; inset: 0; z-index: -1; }
.emp-ep-head-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(1.2); transform: scale(1.15); opacity: .55; }
.emp-ep-head-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--emp-bg), rgba(16, 17, 36, .7)); }
.emp-ep-kicker { display: flex; gap: 6px; margin: 16px 0 10px; }
.emp-ep-title { margin: 0 0 6px; color: #fff; font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 800; }
.emp-ep-sub { margin: 0 0 12px; color: var(--emp-secondary-text); font-weight: 600; }
html[data-theme="light"] .emp-ep-head { color: var(--emp-text); }
html[data-theme="light"] .emp-ep-head .emp-ep-title { color: var(--emp-text); }
html[data-theme="light"] .emp-ep-head .emp-facts, html[data-theme="light"] .emp-ep-head .emp-crumbs ol { color: var(--emp-muted); }
html[data-theme="light"] .emp-ep-head .emp-crumbs [aria-current] { color: var(--emp-text); }
html[data-theme="light"] .emp-ep-head-bg::after { background: linear-gradient(0deg, var(--emp-bg), rgba(242, 243, 248, .75)); }
.emp-ep-layout { padding-top: 10px; }
.emp-ep-about .emp-box-title { font-size: 1.05rem; }
.emp-seo-auto { margin: 14px 0 0; color: var(--emp-muted); font-size: .9rem; }

/* Reproductor */
.emp-player-wrap { margin-bottom: 22px; }
.emp-player-box { position: relative; padding: 12px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: calc(var(--emp-radius) + 4px); }
.emp-servers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.emp-servers-label { display: inline-flex; gap: 6px; align-items: center; margin-right: 4px; color: var(--emp-muted); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.emp-servers-label .emp-icon { width: 17px; color: var(--emp-primary); }
.emp-server { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; color: var(--emp-srv-text, var(--emp-text)); font-weight: 600; font-size: .88rem; line-height: 1.2; text-align: left; background: var(--emp-srv-bg, var(--emp-surface2)); border: 1px solid var(--emp-border); border-radius: 10px; transition: all .2s; }
.emp-server small { display: block; color: inherit; font-size: .7rem; font-weight: 500; opacity: .7; }
.emp-server-name + small { margin-left: -2px; }
.emp-server { flex-wrap: nowrap; }
.emp-server .emp-server-name { white-space: nowrap; }
.emp-server-icon { display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; }
.emp-server-icon .emp-icon { width: 12px; height: 12px; margin-left: 1px; }
.emp-langs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--emp-border); }
.emp-lang { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px 7px 7px; color: var(--emp-text); font-weight: 600; font-size: .88rem; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 99px; transition: all .2s; }
.emp-lang small { min-width: 20px; padding: 1px 6px; color: var(--emp-muted); font-size: .72rem; text-align: center; background: rgba(0, 0, 0, .18); border-radius: 99px; }
.emp-lang-code { display: grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; color: var(--emp-surface); font-size: .68rem; font-weight: 800; letter-spacing: .04em; background: var(--emp-text); border-radius: 99px; opacity: .85; }
.emp-lang:hover { border-color: var(--emp-secondary); }
.emp-lang.is-active { color: #fff; background: var(--emp-grad); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--emp-primary) 35%, transparent); }
.emp-lang.is-active .emp-lang-code { color: var(--emp-primary-text); background: #fff; opacity: 1; }
.emp-lang.is-active small { color: #fff; background: rgba(255, 255, 255, .22); }
.emp-server[hidden] { display: none; }
@media (max-width: 600px) {
	.emp-langs { flex-wrap: nowrap; margin-right: -12px; padding-right: 12px; overflow-x: auto; scrollbar-width: none; }
	.emp-langs::-webkit-scrollbar { display: none; }
	.emp-lang { flex: none; }
}
.emp-server-logo { flex: none; width: 28px; height: 28px; object-fit: contain; border-radius: 7px; background: rgba(255, 255, 255, .06); }
.emp-server.has-logo { padding-left: 8px; }
.emp-server[style*="--emp-srv-brand"]:not(.is-active) { box-shadow: inset 3px 0 0 var(--emp-srv-brand); }
.emp-srv-tabs .emp-server[style*="--emp-srv-brand"]:not(.is-active) { box-shadow: none; }
.emp-dl-server { display: flex; gap: 8px; align-items: center; }
.emp-dl-server img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.emp-server:hover { color: #fff; background: var(--emp-srv-hover, var(--emp-secondary)); border-color: transparent; }
.emp-server.is-active { color: var(--emp-srv-active-t, #fff); background: var(--emp-srv-active, var(--emp-primary)); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--emp-srv-active, var(--emp-primary)) 40%, transparent); }
.emp-server.is-active .emp-server-icon { background: rgba(255, 255, 255, .25); }
html[data-theme="light"] .emp-server-icon { color: var(--emp-srv-active, var(--emp-primary)); background: rgba(0, 0, 0, .06); }
html[data-theme="light"] .emp-server.is-active .emp-server-icon, html[data-theme="light"] .emp-server:hover .emp-server-icon { color: #fff; background: rgba(255, 255, 255, .25); }
.emp-srv-pill .emp-server { border-radius: 99px; }
.emp-srv-square .emp-server { border-radius: 0; }
.emp-srv-tabs .emp-player-box { padding-top: 0; }
.emp-srv-tabs .emp-servers { gap: 0; margin: 0 -12px 12px; padding: 0 12px; overflow-x: auto; flex-wrap: nowrap; border-bottom: 1px solid var(--emp-border); }
.emp-srv-tabs .emp-servers-label { display: none; }
.emp-srv-tabs .emp-server { flex: none; padding: 14px 16px 12px; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none; color: var(--emp-muted); }
.emp-srv-tabs .emp-server:hover { color: var(--emp-text); background: none; }
.emp-srv-tabs .emp-server.is-active { color: var(--emp-text); background: none; border-bottom-color: var(--emp-srv-active, var(--emp-primary)); }
.emp-srv-tabs .emp-server-icon { color: #fff; background: var(--emp-srv-active, var(--emp-primary)); }
@media (max-width: 600px) {
	.emp-servers { flex-wrap: nowrap; margin-right: -12px; padding-right: 12px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
	.emp-servers::-webkit-scrollbar { display: none; }
	.emp-servers-label { display: none; }
	.emp-server { flex: none; }
}
.emp-player { position: relative; aspect-ratio: var(--emp-player-ratio, 16/9); overflow: hidden; background: var(--emp-player-bg, #000); border-radius: var(--emp-radius); }
.emp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.emp-player-cover { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; color: #fff; background: #000; border: 0; }
.emp-player-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .6s var(--emp-ease); }
.emp-player-cover:hover img { opacity: .4; transform: scale(1.03); }
.emp-player-play { position: relative; display: grid; place-items: center; width: 86px; height: 86px; background: var(--emp-grad); border-radius: 50%; box-shadow: 0 0 0 12px rgba(255, 255, 255, .1), 0 18px 40px color-mix(in srgb, var(--emp-primary) 60%, transparent); transition: transform .25s; }
.emp-player-play::before { content: ""; position: absolute; inset: -12px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; animation: emp-ring 2s infinite; }
@keyframes emp-ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.emp-player-play .emp-icon { width: 34px; height: 34px; margin-left: 5px; }
.emp-player-cover:hover .emp-player-play { transform: scale(1.08); }
.emp-player-hint { position: absolute; bottom: 18px; left: 50%; padding: 6px 14px; font-size: .85rem; background: rgba(0, 0, 0, .55); border-radius: 99px; transform: translateX(-50%); white-space: nowrap; backdrop-filter: blur(6px); }
.emp-player-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 20px; color: #fff; text-align: center; background: radial-gradient(circle, #2a2d44, #0d0e1c); }
.emp-player-empty .emp-icon { width: 44px; height: 44px; color: var(--emp-secondary); }
.emp-player-empty span { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.emp-player-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }
.emp-player-notice { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--emp-muted); font-size: .85rem; }
.emp-player-notice .emp-icon { width: 17px; color: var(--emp-secondary); }
.emp-ep-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-top: 14px; }
.emp-ep-nav > :first-child { justify-self: start; }
.emp-ep-nav > :last-child { justify-self: end; }
.emp-ep-nav-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.emp-ep-nav-next .emp-ep-nav-txt { text-align: right; }
.emp-ep-nav-txt small { color: inherit; opacity: .85; font-size: .74rem; font-weight: 500; }
@media (max-width: 520px) { .emp-ep-nav .emp-btn { padding: 9px 12px; } .emp-ep-nav .emp-btn span { display: none; } .emp-ep-nav > a.emp-btn:not(.emp-btn-ghost) span { display: inline; } }
body.emp-cinema::after { content: ""; position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .93); animation: emp-fade .3s; }
body.emp-cinema .emp-player-box { position: relative; z-index: 201; }
@keyframes emp-fade { from { opacity: 0; } }
.emp-downloads { margin-top: 18px; }
.emp-table-wrap { overflow-x: auto; }
.emp-downloads table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.emp-downloads th { padding: 10px; color: var(--emp-muted); font-size: .75rem; letter-spacing: .05em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--emp-border); }
.emp-downloads td { padding: 10px; border-bottom: 1px dashed var(--emp-border); white-space: nowrap; }
.emp-downloads td { vertical-align: middle; }
.emp-downloads td:last-child { text-align: right; }
.emp-downloads tbody tr { transition: background .2s; }
.emp-downloads tbody tr:hover { background: color-mix(in srgb, var(--emp-primary) 5%, transparent); }
.emp-downloads tbody tr:last-child td { border-bottom: 0; }
/* Botón Descargar: pastilla suave del color del theme; se llena con el degradado al pasar el ratón. */
.emp-dl-btn { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; padding: 7px 16px; color: var(--emp-text); font-size: .85rem; font-weight: 600; line-height: 1; text-decoration: none; background: color-mix(in srgb, var(--emp-primary) 12%, transparent); border: 1px solid color-mix(in srgb, var(--emp-primary) 40%, var(--emp-border)); border-radius: 999px; transition: color .2s, background .2s, border-color .2s, box-shadow .2s; }
.emp-dl-btn .emp-icon { width: 16px; height: 16px; color: var(--emp-primary-text, var(--emp-primary)); transition: color .2s, transform .25s var(--emp-ease); }
.emp-dl-btn:hover, .emp-dl-btn:focus-visible { color: #fff; background: var(--emp-grad); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--emp-primary) 30%, transparent); }
.emp-dl-btn:hover .emp-icon, .emp-dl-btn:focus-visible .emp-icon { color: #fff; transform: translateY(2px); }

/* Barra lateral */
.emp-serie-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 14px; }
.emp-serie-card-media img { width: 96px; border-radius: 10px; }
.emp-serie-card h2 { margin: 6px 0 2px; font-size: 1.05rem; }
.emp-serie-card p { margin: 0; font-size: .82rem; }
.emp-serie-card-text, .emp-serie-card .emp-chips, .emp-serie-card .emp-btn { grid-column: 1 / -1; }
.emp-serie-card-text { color: var(--emp-muted); }
.emp-side-eplist { display: grid; gap: 6px; max-height: 470px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.emp-side-eplist a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.emp-side-eplist a:hover { color: var(--emp-text); background: var(--emp-surface2); }
.emp-side-eplist img { flex: none; width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.emp-side-eplist span { min-width: 0; flex: 1; }
.emp-side-eplist b { display: block; font-size: .85rem; }
.emp-side-eplist small { display: block; overflow: hidden; color: var(--emp-muted); font-size: .76rem; white-space: nowrap; text-overflow: ellipsis; }
.emp-side-eplist em { padding: 2px 8px; color: #fff; font-size: .68rem; font-style: normal; font-weight: 700; background: var(--emp-grad); border-radius: 99px; }
.emp-side-eplist .is-current a { background: color-mix(in srgb, var(--emp-primary) 14%, transparent); box-shadow: inset 3px 0 0 var(--emp-primary); }
.emp-widget-title { font-size: 1rem; }
.emp-side-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.emp-side-list a { display: flex; gap: 10px; align-items: center; }
.emp-side-list b { width: 22px; color: var(--emp-primary-text); font-size: 1.1rem; font-weight: 800; }
.emp-side-list img { width: 42px; height: 62px; object-fit: cover; border-radius: 6px; }
.emp-side-list span { font-weight: 600; font-size: .88rem; }
.emp-side-list small { display: block; color: var(--emp-muted); font-weight: 400; }
.emp-ad { margin: 18px auto; text-align: center; }
.emp-ad > * { margin-left: auto; margin-right: auto; }

/* Entradas, páginas y comentarios */
.emp-prose { line-height: 1.75; }
.emp-prose h2, .emp-prose h3 { margin-top: 1.4em; }
.emp-prose ul, .emp-prose ol { padding-left: 1.3em; }
.emp-prose a { color: var(--emp-primary-text); }
.emp-prose img { border-radius: 10px; }
.emp-prose > :last-child { margin-bottom: 0; }
.emp-post-hero { width: 100%; margin-bottom: 20px; border-radius: 12px; }
.emp-posts { display: grid; gap: 16px; }
.emp-post-card { display: grid; gap: 16px; }
@media (min-width: 640px) { .emp-post-card { grid-template-columns: 240px minmax(0, 1fr); } }
.emp-post-thumb img { border-radius: 10px; }
/* ---------- Comentarios (estilo foro) ---------- */
.emp-comments { margin-top: 22px; }
.emp-c-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--emp-border); }
.emp-c-count { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 1.1rem; text-transform: var(--emp-head-case); }
.emp-c-sort { display: flex; gap: 4px; padding: 3px; background: var(--emp-surface2); border-radius: 999px; }
.emp-c-sort button { padding: 5px 12px; white-space: nowrap; color: var(--emp-muted); font-size: .8rem; font-weight: 600; background: none; border: 0; border-radius: 999px; cursor: pointer; transition: color .15s, background .15s; }
.emp-c-sort button:hover { color: var(--emp-text); }
.emp-c-sort button[aria-selected="true"] { color: #fff; background: var(--emp-grad-ink); }
.emp-c-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; background: linear-gradient(135deg, hsl(var(--c-h) 62% 46%), hsl(calc(var(--c-h) + 40) 62% 38%)); border-radius: 50%; user-select: none; }
/* Escribir */
.emp-c-form { margin-bottom: 22px; }
.emp-c-compose { display: flex; gap: 12px; align-items: flex-start; }
.emp-c-compose .comment-form-comment { flex: 1; margin: 0; }
.comment-form .emp-c-compose textarea { min-height: 46px; padding: 11px 14px; line-height: 1.5; resize: vertical; border-radius: 12px; transition: min-height .2s var(--emp-ease), border-color .15s; }
.emp-c-form.is-open .emp-c-compose textarea, .emp-c-compose textarea:focus { min-height: 96px; }
.emp-c-form .comment-form-author, .emp-c-form .comment-form-email, .emp-c-form .comment-form-cookies-consent, .emp-c-form .form-submit, .emp-c-form .cf-turnstile { display: none; }
.emp-c-form.is-open .comment-form-author, .emp-c-form.is-open .comment-form-email, .emp-c-form.is-open .form-submit, .emp-c-form.is-open .cf-turnstile { display: block; }
.emp-c-form.is-open .comment-form-cookies-consent { display: flex; }
.emp-c-form.is-open > p, .emp-c-form.is-open > .cf-turnstile { margin: 10px 0 0 52px; }
@media (min-width: 640px) { .emp-c-form.is-open .comment-form-author, .emp-c-form.is-open .comment-form-email { display: inline-block; width: calc(50% - 30px); } .emp-c-form.is-open .comment-form-email { margin-left: 8px; } }
.emp-c-form .form-submit { text-align: right; }
.emp-c-form .form-submit .emp-btn { min-height: 38px; padding: 7px 20px; }
.comment-form .comment-form-cookies-consent { gap: 8px; align-items: center; font-size: .8rem; color: var(--emp-muted); }
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-size: .8rem; }
.comment-reply-title { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--emp-muted); text-transform: none; }
.comment-reply-title:empty, #comments > .comment-respond .comment-reply-title small { display: none; }
.comment-reply-title small a { color: var(--emp-primary-text); font-size: .8rem; }
.emp-c .comment-respond { margin: 12px 0 6px; }
.emp-c .emp-c-form { margin-bottom: 8px; }
/* Lista */
.emp-comment-list, .emp-comment-list .children { margin: 0; padding: 0; list-style: none; }
.emp-comment-list > .emp-c + .emp-c { margin-top: 6px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--emp-border) 60%, transparent); }
.emp-c-body { display: flex; gap: 12px; padding: 6px 0; }
.emp-c-main { flex: 1; min-width: 0; }
.emp-c-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .82rem; line-height: 1.4; }
.emp-c-name { color: var(--emp-text); font-weight: 700; font-size: .9rem; }
a.emp-c-name:hover { color: var(--emp-primary-text); }
.emp-c-badge { padding: 1px 7px; color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--emp-grad-ink); border-radius: 4px; }
.emp-c-time { color: var(--emp-muted); }
.emp-c-time::before { content: "\2022"; margin-right: 8px; opacity: .6; }
.emp-c-fold { margin-left: auto; width: 24px; height: 24px; padding: 0; color: var(--emp-muted); font-size: 1rem; line-height: 1; background: none; border: 1px solid var(--emp-border); border-radius: 6px; cursor: pointer; }
.emp-c-fold:hover { color: var(--emp-text); border-color: var(--emp-muted); }
.emp-c-text { margin-top: 4px; overflow-wrap: anywhere; font-size: .93rem; line-height: 1.6; }
.emp-c-text p { margin: 0 0 .6em; }
.emp-c-text p:last-child { margin-bottom: 0; }
.emp-c-wait { margin: 6px 0 0; padding: 6px 10px; font-size: .8rem; color: var(--emp-secondary-text); background: color-mix(in srgb, var(--emp-secondary) 12%, transparent); border-radius: 6px; }
.emp-c-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--emp-muted); }
.emp-c-actions a, .emp-c-actions button { padding: 0; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
.emp-c-actions a:hover, .emp-c-actions button:hover { color: var(--emp-primary-text); }
.emp-c-vote { display: inline-flex; gap: 2px; align-items: center; }
.emp-c-actions .emp-c-vote button { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 6px; }
.emp-c-actions .emp-c-vote button:hover { background: var(--emp-surface2); }
.emp-c-vote .emp-icon { width: 15px; height: 15px; stroke-width: 2.6; }
.emp-c-vote b { min-width: 10px; text-align: center; color: var(--emp-text); }
.emp-c-vote[data-voted="up"] [data-dir="up"], .emp-c-vote[data-voted="up"] b, .emp-c-vote[data-voted="down"] [data-dir="down"] { color: var(--emp-primary-text); }
.emp-c-actions .emp-c-vote[data-voted] button { cursor: default; }
/* Hilos: línea a la izquierda, plegables */
.emp-comment-list .children { margin-left: 19px; padding-left: 20px; border-left: 2px solid var(--emp-border); }
.emp-comment-list .children .children { margin-left: 15px; padding-left: 16px; }
.emp-c.is-folded > .children { display: none; }
.emp-c.is-folded > .emp-c-body .emp-c-text, .emp-c.is-folded > .emp-c-body .emp-c-actions { opacity: .55; }
.emp-c-more { display: none; margin: 2px 0 4px 52px; padding: 0; color: var(--emp-primary-text); font-size: .8rem; font-weight: 600; background: none; border: 0; cursor: pointer; }
.emp-c.is-folded > .emp-c-more { display: inline-block; }
.emp-c:target > .emp-c-body { margin: 0 -10px; padding: 8px 10px; background: color-mix(in srgb, var(--emp-primary) 8%, transparent); border-radius: 10px; }
.emp-c-empty { margin: 4px 0 0; color: var(--emp-muted); font-size: .9rem; text-align: center; }
.emp-comments .comment-navigation .nav-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: .85rem; font-weight: 600; }
@media (max-width: 639px) {
	.emp-comment-list .children { margin-left: 6px; padding-left: 12px; }
	.emp-comment-list .children .children { margin-left: 4px; padding-left: 10px; }
	.emp-c-form.is-open > p, .emp-c-form.is-open > .cf-turnstile { margin-left: 0; }
	.emp-c-actions { gap: 4px 12px; }
}

/* ---------- 404 ---------- */
.emp-404 { padding: 40px 0 10px; }
.emp-404-inner { display: grid; gap: 30px; align-items: center; }
.emp-404-art { width: min(520px, 100%); margin: 0 auto; animation: emp-float 6s ease-in-out infinite; }
@keyframes emp-float { 50% { transform: translateY(-10px); } }
.emp-404-code { display: inline-block; margin-bottom: 10px; padding: 4px 12px; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background: var(--emp-grad); border-radius: 99px; }
.emp-404 h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; }
.emp-404-body > p { color: var(--emp-muted); }
.emp-404-search { margin: 22px 0; }
.emp-404-search .emp-searchform { margin: 0; }
.emp-404-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .emp-404-inner { grid-template-columns: 1fr 1fr; gap: 50px; } }

/* ---------- Pie ---------- */
.emp-footer { margin-top: 60px; color: var(--emp-footer-text, var(--emp-muted)); background: var(--emp-footer-bg, var(--emp-surface)); border-top: 1px solid var(--emp-border); position: relative; }
.emp-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--emp-grad); }
.emp-footer-grid { display: grid; gap: 30px; padding-top: 44px; padding-bottom: 34px; }
@media (min-width: 700px) { .emp-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } .emp-footer-about { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .emp-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } .emp-footer-about { grid-column: auto; } }
.emp-footer h3, .emp-footer-title { margin: 0 0 14px; font-family: var(--emp-font-head); font-weight: 700; color: var(--emp-footer-text, var(--emp-text)); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.emp-footer-about p { margin: 14px 0; max-width: 380px; font-size: .9rem; }
.emp-footer .emp-logo { color: var(--emp-footer-text, var(--emp-text)); }
.emp-footer-links { margin: 0; padding: 0; list-style: none; }
.emp-footer-links li { margin-bottom: 8px; }
.emp-footer-links a:hover { color: var(--emp-primary-text); }
.emp-social { display: flex; flex-wrap: wrap; gap: 8px; }
.emp-social a { display: grid; place-items: center; width: 38px; height: 38px; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 10px; }
.emp-social a:hover { color: #fff; background: var(--emp-grad); border-color: transparent; }
.emp-social .emp-icon { width: 18px; height: 18px; }
.emp-footer-bottom { padding: 18px 0; font-size: .82rem; text-align: center; border-top: 1px solid var(--emp-border); }
.emp-footer-bottom p { margin: 0 0 4px; }
.emp-disclaimer { opacity: .75; }

/* ---------- Varios ---------- */
.emp-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: var(--emp-grad); border: 0; border-radius: 14px; box-shadow: var(--emp-shadow); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s var(--emp-ease); }
.emp-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.emp-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 20, .88); backdrop-filter: blur(6px); animation: emp-fade .25s; }
.emp-modal[hidden] { display: none; }
.emp-modal-box { position: relative; width: min(1000px, 100%); }
.emp-modal-frame { aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.emp-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.emp-modal-close { position: absolute; top: -54px; right: 0; color: #fff; background: rgba(255, 255, 255, .12); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== 1.7.1: contraste en modo claro y oscuro ===== */
html[data-theme="light"] { --emp-muted: #4F5370; }
.emp-btn { background: var(--emp-grad-ink); text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
/* Los botones secundarios también llevan el degradado: el texto va en blanco en ambos modos. */
.emp-btn-ghost, .emp-btn-ghost:hover { color: #fff; }
.emp-badge-lang { background: color-mix(in srgb, var(--emp-badge-lang, var(--emp-primary)) 84%, #000); }
.emp-badge-ep { color: #1B1C34; }
.emp-badge-status.is-emision { background: #0f8a4d; }
.emp-server.is-active { background: color-mix(in srgb, var(--emp-srv-active, var(--emp-primary)) 84%, #000); }
.emp-server.is-active small { opacity: .92; }
.emp-server small { opacity: .8; }
.emp-lang.is-active { background: var(--emp-grad-ink); }
.emp-lang.is-active .emp-lang-code { color: var(--emp-primary-ink); }
html[data-theme="light"] .emp-lang small, html[data-theme="light"] .emp-season-count { background: rgba(0, 0, 0, .07); color: var(--emp-muted); }
.emp-lang.is-active small, .emp-sea-pills .emp-season-tab.is-active .emp-season-count { color: #fff; background: rgba(0, 0, 0, .2); }
.emp-tabs a.is-active, .emp-tabs a:hover, .emp-pages .page-numbers.current, .emp-pages a.page-numbers:hover, .emp-ep-go, .emp-side-eplist em, .emp-404-code, .emp-head-more:hover { background: var(--emp-grad-ink); }
.emp-chip:hover, .emp-chip.is-active, .emp-head-more:hover, .emp-icon-btn:hover { background: var(--emp-primary-ink); border-color: var(--emp-primary-ink); }
.emp-disclaimer { opacity: 1; }
.emp-footer-bottom { color: var(--emp-muted); }
.emp-card-rating, .emp-card-ep-season { text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
html[data-theme="light"] .emp-side-eplist .is-current a { background: color-mix(in srgb, var(--emp-primary) 9%, var(--emp-surface)); }
.emp-ep-n { background: var(--emp-grad-ink); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .emp-live-dot { color: #15803d; }
.emp-badge-status.is-emision { background: #0b7a43; }
.emp-hero-live .emp-live-dot, .emp-hero .emp-live-dot { color: #4ade80; }
.emp-serie-card .emp-hero-rating strong { color: var(--emp-text); }
html[data-theme="light"] .emp-serie-card .emp-stars { color: #d4d6e2; }

/* ===== 1.8.0: anuncios ===== */
.emp-ad { position: relative; margin: 20px auto; text-align: center; }
.emp-ad-body { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.emp-ad-body img { max-width: 100%; height: auto; border-radius: 8px; }
.emp-ad-label { display: block; margin-bottom: 4px; color: var(--emp-muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 767px) { .emp-ad-on-desktop { display: none; } }
@media (min-width: 768px) { .emp-ad-on-mobile { display: none; } }
.emp-grid > .emp-ad { grid-column: 1 / -1; margin: 6px 0; }
.emp-results > .emp-ad { grid-column: 1 / -1; }
.emp-ad-mobile_sticky { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; margin: 0; padding: 6px 30px 6px 6px; background: var(--emp-surface); border-top: 1px solid var(--emp-border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25); }
.emp-ad-mobile_sticky.is-closed { display: none; }
.emp-ad-close { position: absolute; top: 4px; right: 6px; width: 24px; height: 24px; padding: 0; color: var(--emp-text); font-size: 18px; line-height: 1; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 50%; }
body:has(.emp-ad-mobile_sticky:not(.is-closed)) .emp-top { bottom: 90px; }

/* ===== 1.8.0: página intermedia de descarga ===== */
.emp-dl { max-width: 860px; }
.emp-dl-card { display: grid; gap: 22px; }
.emp-dl-info { display: flex; gap: 18px; align-items: center; }
.emp-dl-info > img { flex: none; width: 96px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--emp-shadow); }
.emp-dl-info > img.is-wide { width: 160px; aspect-ratio: 16 / 9; }
.emp-dl-kicker { margin: 0 0 2px; color: var(--emp-secondary-text); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.emp-dl-info h2 { margin: 0 0 8px; font-size: 1.25rem; }
.emp-dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.emp-dl-meta li { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; font-size: .85rem; font-weight: 600; background: var(--emp-surface2); border-radius: 99px; }
.emp-dl-meta img { border-radius: 5px; }
.emp-dl-meta .emp-icon { width: 16px; height: 16px; color: var(--emp-primary-text); }
.emp-dl-go { display: grid; justify-items: center; gap: 14px; padding: 26px 18px; text-align: center; background: var(--emp-surface2); border: 1px dashed var(--emp-border); border-radius: var(--emp-radius); }
.emp-dl-wait { display: grid; justify-items: center; gap: 10px; }
.emp-dl-wait[hidden], .emp-dl-button[hidden] { display: none; }
.emp-dl-wait p { margin: 0; color: var(--emp-muted); }
.emp-dl-ring { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(var(--emp-primary) calc(var(--p, 0) * 1%), var(--emp-border) 0); }
.emp-dl-ring::before { content: ""; position: absolute; inset: 7px; background: var(--emp-surface2); border-radius: 50%; }
.emp-dl-ring b { position: relative; font: 800 1.7rem/1 var(--emp-font-head); }
.emp-dl-button { min-width: 260px; animation: emp-rise .5s var(--emp-ease); }
.emp-dl-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.emp-dl-steps li { position: relative; padding: 10px 12px 10px 46px; background: var(--emp-surface2); border-radius: 10px; counter-increment: s; }
.emp-dl-steps li::before { content: counter(s); position: absolute; top: 50%; left: 10px; display: grid; place-items: center; width: 26px; height: 26px; color: #fff; font-weight: 700; font-size: .8rem; background: var(--emp-grad-ink); border-radius: 50%; transform: translateY(-50%); }
.emp-dl-back { display: inline-flex; gap: 4px; align-items: center; justify-self: start; color: var(--emp-muted); font-size: .9rem; }
.emp-dl-back .emp-icon { width: 16px; height: 16px; }
.emp-dl-content { margin-top: 22px; }
.emp-dl-note { margin-top: 18px; color: var(--emp-muted); font-size: .82rem; text-align: center; }
@media (max-width: 520px) { .emp-dl-info { align-items: flex-start; } .emp-dl-info > img { width: 72px; } .emp-dl-info > img.is-wide { width: 110px; } .emp-dl-button { min-width: 0; width: 100%; } }

/* 1.9.0: aviso de contenido protegido */
.emp-protect-toast { position: fixed; bottom: 24px; left: 50%; z-index: 400; max-width: calc(100% - 32px); padding: 10px 18px; color: #fff; font-size: .9rem; font-weight: 600; background: #1B1C34; border: 1px solid rgba(255, 255, 255, .15); border-radius: 99px; box-shadow: var(--emp-shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.emp-protect-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Datos de TMDB ---------- */
.emp-hero-tagline { margin: -4px 0 12px; color: rgba(255, 255, 255, .8); font-style: italic; }
.emp-season-text { margin: 0 0 14px; color: var(--emp-muted); font-size: .9rem; }
.emp-ep-text { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--emp-muted); font-size: .82rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.emp-provider-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.emp-provider-list li { display: flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 12px; }
.emp-provider-list img { width: 44px; height: 44px; border-radius: 9px; }
.emp-provider-list strong, .emp-provider-list small { display: block; line-height: 1.3; }
.emp-provider-list small { color: var(--emp-muted); }
.emp-cast-list { display: grid; grid-auto-columns: 104px; grid-auto-flow: column; gap: 14px; margin: 0; padding: 0 0 8px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.emp-cast-list img, .emp-cast-empty { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 4 / 5; margin-bottom: 8px; object-fit: cover; background: var(--emp-surface2); border-radius: 10px; }
.emp-cast-empty { color: var(--emp-muted); font-size: 1.8rem; font-weight: 700; }
.emp-cast-list strong, .emp-cast-list small { display: block; font-size: .82rem; line-height: 1.3; overflow-wrap: anywhere; }
.emp-cast-list small { color: var(--emp-muted); }
.emp-review { padding: 14px 0; border-top: 1px dashed var(--emp-border); }
.emp-review:first-of-type { padding-top: 0; border-top: 0; }
.emp-review header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.emp-review time { color: var(--emp-muted); font-size: .82rem; }
.emp-review-rating { display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; font-weight: 700; }
.emp-review-rating .emp-icon { width: 15px; height: 15px; color: var(--emp-secondary); }
.emp-review p { margin: 8px 0; font-size: .92rem; }
.emp-review a { color: var(--emp-primary-text); font-size: .85rem; }
.emp-tmdb-credit { margin: 0; padding: 12px 24px 20px; color: var(--emp-muted); font-size: .75rem; text-align: center; background: var(--emp-footer-bg, var(--emp-surface)); }

/* ---------- Más datos de TMDB (1.14) ---------- */
.emp-slide-title.has-logo img { display: block; width: auto; max-width: min(420px, 80%); max-height: 150px; object-fit: contain; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .55)); }
.emp-hero-title.has-logo img { display: block; width: auto; max-width: min(460px, 100%); max-height: 160px; object-fit: contain; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .5)); }
.emp-season-info { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; }
.emp-season-info img { flex: none; width: 72px; height: auto; border-radius: 8px; box-shadow: var(--emp-shadow); }
.emp-season-info .emp-season-text { margin: 0; }
.emp-season-meta { display: flex; gap: 10px; align-items: center; margin: 0 0 6px; font-weight: 600; font-size: .9rem; }
.emp-gallery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.emp-gallery-list a { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--emp-surface2); }
.emp-gallery-list img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--emp-ease); }
.emp-gallery-list a:hover img, .emp-gallery-list a:focus-visible img { transform: scale(1.05); }
.emp-modal.is-image .emp-modal-frame { aspect-ratio: auto; background: transparent; box-shadow: none; display: grid; place-items: center; }
.emp-modal.is-image .emp-modal-frame img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.emp-pic-prev, .emp-pic-next { position: absolute; top: 50%; color: #fff; font-size: 1.8rem; background: rgba(0, 0, 0, .45); transform: translateY(-50%); }
.emp-pic-prev { left: 8px; }
.emp-pic-next { right: 8px; }
.emp-ext-links { margin-top: 14px; }
.emp-ext .emp-icon { width: 15px; height: 15px; }
.emp-cast-list a { display: block; color: inherit; }
.emp-cast-list a:hover strong { color: var(--emp-primary-text); }
.emp-card-role { margin: -2px 0 2px; color: var(--emp-muted); font-size: .8rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.emp-person { display: flex; gap: 28px; align-items: flex-start; margin-top: 10px; }
.emp-person-photo { flex: none; width: 200px; overflow: hidden; aspect-ratio: 2 / 3; border-radius: var(--emp-radius); background: var(--emp-surface2); display: grid; place-items: center; box-shadow: var(--emp-shadow); }
.emp-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.emp-person-photo span { color: var(--emp-muted); font-size: 4rem; font-weight: 800; }
.emp-person-body { flex: 1; min-width: 0; }
.emp-person-body .emp-info-inline { margin: 12px 0; }
.emp-person-latin { margin: 4px 0 0; color: var(--emp-muted); font-size: 1.15rem; font-weight: 600; }
@media (max-width: 640px) {
	.emp-person { flex-direction: column; align-items: center; text-align: center; }
	.emp-person-photo { width: 160px; }
	.emp-person-body .emp-page-title { justify-content: center; }
	.emp-person-body .emp-info-inline { text-align: left; }
}
.emp-term-logo { width: 48px; height: 48px; padding: 4px; object-fit: contain; background: #fff; border-radius: 12px; }
.emp-provider-list a { display: flex; gap: 10px; align-items: center; color: inherit; }
.emp-provider-list a:hover strong { color: var(--emp-primary-text); }

/* ---------- Imagen del capítulo en su cabecera (1.23) ---------- */
.emp-ep-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; }
.emp-ep-head.has-shot .emp-ep-head-bg img { filter: blur(4px) saturate(1.15); transform: scale(1.05); opacity: .75; }
.emp-ep-head.has-shot .emp-ep-head-bg::after { background: linear-gradient(90deg, rgba(16, 17, 36, .92) 0%, rgba(16, 17, 36, .7) 55%, rgba(16, 17, 36, .45) 100%), linear-gradient(0deg, var(--emp-bg) 0%, transparent 45%); }
html[data-theme="light"] .emp-ep-head.has-shot .emp-ep-head-bg::after { background: linear-gradient(90deg, rgba(242, 243, 248, .94) 0%, rgba(242, 243, 248, .78) 55%, rgba(242, 243, 248, .5) 100%), linear-gradient(0deg, var(--emp-bg) 0%, transparent 45%); }
html[data-theme="light"] .emp-ep-head .emp-crumbs a { color: var(--emp-muted); }
.emp-ep-shot { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--emp-radius); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.emp-ep-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--emp-ease); }
.emp-ep-shot:hover img, .emp-ep-shot:focus-visible img { transform: scale(1.04); }
.emp-ep-shot .emp-player-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.emp-ep-shot-time { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; color: #fff; font-size: .8rem; font-weight: 700; background: rgba(0, 0, 0, .7); border-radius: 6px; }
@media (min-width: 900px) {
	.emp-ep-head.has-shot .emp-ep-head-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 36px; }
	.emp-ep-head.has-shot .emp-ep-shot { order: 2; }
}

/* ---------- Botones promocionales (1.24) ---------- */
.emp-promo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.emp-promo-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emp-promo-n1 { grid-template-columns: minmax(0, 1fr); }
.emp-promo-btn { position: relative; display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 7px 14px; overflow: hidden; color: #fff; text-decoration: none; background: var(--emp-promo-bg, var(--emp-grad)); border-radius: var(--emp-btn-radius, 10px); box-shadow: 0 10px 26px color-mix(in srgb, var(--emp-promo-bg, var(--emp-primary)) 40%, transparent); transition: transform .2s var(--emp-ease), box-shadow .2s, filter .2s; isolation: isolate; }
.emp-promo-btn:hover, .emp-promo-btn:focus-visible { color: #fff; filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--emp-promo-bg, var(--emp-primary)) 55%, transparent); }
.emp-promo-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.emp-promo-icon { display: grid; flex: none; place-items: center; width: 30px; height: 30px; background: rgba(255, 255, 255, .2); border-radius: 50%; }
.emp-promo-icon .emp-icon { width: 16px; height: 16px; }
.emp-promo-text { display: grid; min-width: 0; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.emp-promo-text strong { overflow: hidden; font-size: clamp(.76rem, .45rem + .45vw, .9rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; text-overflow: ellipsis; }
.emp-promo-text small { overflow: hidden; margin-top: 1px; font-size: .72rem; opacity: .9; white-space: nowrap; text-overflow: ellipsis; }
/* Pulso: el botón late y un halo se expande. */
.emp-promo-fx-pulse .emp-promo-btn { animation: emp-promo-pulse 2.4s ease-in-out infinite; animation-delay: var(--emp-promo-delay, 0s); }
.emp-promo-fx-pulse .emp-promo-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--emp-promo-bg, var(--emp-primary)) 70%, transparent); animation: emp-promo-ring 2.4s ease-out infinite; animation-delay: var(--emp-promo-delay, 0s); }
@keyframes emp-promo-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes emp-promo-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emp-promo-bg, var(--emp-primary)) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
/* Destello: una franja de luz cruza el botón. */
.emp-promo-fx-shine .emp-promo-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: emp-promo-shine 3s ease-in-out infinite; animation-delay: var(--emp-promo-delay, 0s); }
@keyframes emp-promo-shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
/* Sacudida cada pocos segundos. */
.emp-promo-fx-shake .emp-promo-btn { animation: emp-promo-shake 4s ease-in-out infinite; animation-delay: var(--emp-promo-delay, 0s); }
@keyframes emp-promo-shake { 0%, 84%, 100% { transform: none; } 86% { transform: rotate(-2deg) scale(1.02); } 89% { transform: rotate(2deg) scale(1.02); } 92% { transform: rotate(-1.5deg); } 95% { transform: rotate(1deg); } }
/* Rebote. */
.emp-promo-fx-bounce .emp-promo-btn { animation: emp-promo-bounce 2s ease-in-out infinite; animation-delay: var(--emp-promo-delay, 0s); }
@keyframes emp-promo-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } 45% { transform: translateY(-2px); } }
.emp-promo-btn:hover { animation-play-state: paused; }
@media (max-width: 760px) {
	.emp-promo, .emp-promo-n2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.emp-promo-btn { min-height: 44px; }
}

/* ---------- Video de relleno (1.25) ---------- */
.emp-filler-notice { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 10px 14px; color: var(--emp-text); font-size: .9rem; font-weight: 600; background: color-mix(in srgb, var(--emp-secondary) 14%, var(--emp-surface)); border: 1px solid color-mix(in srgb, var(--emp-secondary) 40%, transparent); border-radius: 10px; }
.emp-filler-notice .emp-icon { flex: none; width: 18px; height: 18px; color: var(--emp-secondary); }

/* ===== Próximo episodio, calendario y preguntas frecuentes (1.28) ===== */
.emp-next-ep { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0; padding: 10px 14px; font-size: .92rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; backdrop-filter: blur(6px); }
.emp-next-ep .emp-icon { flex: none; color: var(--emp-secondary); }
.emp-next-ep b { color: var(--emp-secondary); }
.emp-next-ep small { opacity: .75; }
.emp-next-ep a { margin-left: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.emp-next-ep.is-soon { border-color: color-mix(in srgb, var(--emp-primary) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emp-primary) 18%, transparent); }
html[data-theme="light"] .emp-next-ep { background: var(--emp-surface); border-color: var(--emp-border); }

.emp-cal { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.emp-cal-day { padding: 14px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: var(--emp-radius); }
.emp-cal-day.is-today { border-color: var(--emp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emp-primary) 18%, transparent); }
.emp-cal-day-title { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; margin: 0 0 10px; font-size: 1.05rem; }
.emp-cal-day-title small { color: var(--emp-muted); font-family: var(--emp-font); font-size: .8rem; font-weight: 500; }
.emp-cal-day.is-today .emp-cal-day-title span { color: var(--emp-primary-text, var(--emp-primary)); }
.emp-cal-empty { margin: 0; color: var(--emp-muted); font-size: .85rem; }
.emp-cal-list, .emp-cal-later { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.emp-cal-later { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.emp-cal-list a, .emp-cal-later a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; transition: background .2s; }
.emp-cal-later a { padding: 10px; background: var(--emp-surface); border: 1px solid var(--emp-border); }
.emp-cal-list a:hover, .emp-cal-later a:hover { background: var(--emp-surface2); }
.emp-cal-list img, .emp-cal-later img { flex: none; width: 46px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--emp-surface2); }
.emp-cal-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.emp-cal-name { display: -webkit-box; margin: 0; overflow: hidden; font-family: var(--emp-font); font-size: .88rem; font-weight: 600; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.emp-cal-ep, .emp-cal-info time { color: var(--emp-muted); font-size: .78rem; }
.emp-cal-tag { align-self: flex-start; padding: 1px 7px; color: var(--emp-muted); font-size: .68rem; font-weight: 600; border: 1px solid var(--emp-border); border-radius: 99px; }
.emp-cal-tag.is-ok { color: #fff; background: #1e9e5a; border-color: transparent; }

.emp-faq-item { border-top: 1px solid var(--emp-border); }
.emp-faq-item:first-of-type { border-top: 0; }
.emp-faq-item summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; cursor: pointer; list-style: none; }
.emp-faq-item summary::-webkit-details-marker { display: none; }
.emp-faq-item summary h3 { margin: 0; font-family: var(--emp-font); font-size: .98rem; font-weight: 600; }
.emp-faq-item summary .emp-icon { flex: none; transition: transform .2s; }
.emp-faq-item[open] summary .emp-icon { transform: rotate(180deg); }
.emp-faq-item p { margin: 0 0 14px; color: var(--emp-muted); }

/* ===== Seguir viendo, Mi lista y reportes (1.29) ===== */
.emp-ep-list li.is-seen .emp-ep-thumb::after, .emp-side-eplist li.is-seen a::after { content: "✓ Visto"; position: absolute; top: 6px; left: 6px; padding: 1px 6px; color: #fff; font-size: .66rem; font-weight: 700; background: rgba(30, 158, 90, .92); border-radius: 6px; }
.emp-ep-thumb, .emp-side-eplist li a { position: relative; }
.emp-ep-list li.is-seen .emp-ep-info strong, .emp-side-eplist li.is-seen b { opacity: .7; }
.emp-side-eplist li.is-current.is-seen a::after { content: none; }
.emp-card-meta .emp-card-remove { margin-left: auto; padding: 0 2px; color: var(--emp-muted); font-size: .75rem; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.emp-card-meta .emp-card-remove:hover { color: var(--emp-primary-text, var(--emp-primary)); }
.emp-btn-fav.is-on { color: #fff; background: var(--emp-primary); border-color: transparent; }
.emp-btn-fav.is-on .emp-icon path { fill: currentColor; }
.emp-report { display: grid; gap: 8px; margin-top: 14px; }
.emp-report[hidden] { display: none; }
.emp-report-title { margin: 0 0 4px; }
.emp-report label { display: flex; gap: 8px; align-items: center; font-size: .92rem; cursor: pointer; }
.emp-report textarea { width: 100%; padding: 8px 10px; color: var(--emp-text); font: inherit; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 10px; }
.emp-report-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 0; }
.emp-report-msg { color: var(--emp-muted); font-size: .88rem; }

.emp-card-meta:has(.emp-card-remove) { display: flex; gap: 8px; align-items: center; }
.emp-ep-list.is-loading { opacity: .55; transition: opacity .2s; }

/* ---------- Reacciones ---------- */
.emp-rx { margin-top: 18px; }
.emp-rx-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.emp-rx-title { margin: 0; font-size: 1.02rem; text-transform: none; }
.emp-rx-total { color: var(--emp-muted); font-size: .82rem; font-weight: 600; }
.emp-rx-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.emp-rx-btn { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 12px 4px 10px; color: var(--emp-muted); background: var(--emp-surface2); border: 1px solid transparent; border-radius: var(--emp-radius); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--emp-ease); }
.emp-rx-face { display: block; width: 46px; height: 46px; transition: transform .25s var(--emp-ease); }
.emp-rx-ico { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .22)); }
.emp-rx-label { font-size: .74rem; font-weight: 600; line-height: 1.2; text-align: center; }
.emp-rx-count { color: var(--emp-text); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.emp-rx-btn:hover { border-color: var(--emp-border); }
.emp-rx-btn:hover .emp-rx-face { transform: translateY(-4px) scale(1.12); }
.emp-rx-btn:focus-visible { outline: 2px solid var(--emp-primary); outline-offset: 2px; }
.emp-rx-btn[aria-pressed="true"] { color: var(--emp-primary-text); background: color-mix(in srgb, var(--emp-primary) 12%, var(--emp-surface2)); border-color: var(--emp-primary); }
.emp-rx-btn[aria-pressed="true"] .emp-rx-count { color: var(--emp-primary-text); }
.emp-rx-btn.is-pop .emp-rx-face { animation: emp-rx-pop .5s var(--emp-ease); }
.emp-rx.is-busy .emp-rx-btn { pointer-events: none; }
.emp-rx-msg { min-height: 0; margin: 8px 0 0; color: var(--emp-muted); font-size: .8rem; text-align: center; }
.emp-rx-msg:empty { display: none; }
@keyframes emp-rx-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-8deg); } 65% { transform: scale(.92) rotate(4deg); } 100% { transform: scale(1); } }
@media (max-width: 767px) {
	.emp-rx-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.emp-rx-face { width: 40px; height: 40px; }
}
@media (max-width: 379px) { .emp-rx-list { gap: 6px; } .emp-rx-label { font-size: .68rem; } }
@media (prefers-reduced-motion: reduce) { .emp-rx-face, .emp-rx-btn { transition: none; } .emp-rx-btn.is-pop .emp-rx-face { animation: none; } }

/* ---------- Estilos de bloques (Diseño › Estilos de bloques) ---------- */

/* Lista de capítulos: cuadrícula */
.emp-epl-grid .emp-ep-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.emp-epl-grid .emp-ep-list a { position: relative; flex-direction: column; gap: 0; align-items: stretch; height: 100%; padding: 0; overflow: hidden; border-radius: var(--emp-radius); }
.emp-epl-grid .emp-ep-list a:hover { transform: translateY(-3px); }
.emp-epl-grid .emp-ep-thumb { width: 100%; border-radius: 0; }
.emp-epl-grid .emp-ep-n { position: absolute; top: 8px; left: 8px; z-index: 1; width: auto; min-width: 34px; padding: 4px 8px; color: #fff; font-size: .9rem; background: var(--emp-grad-ink); -webkit-background-clip: border-box; background-clip: border-box; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.emp-epl-grid .emp-ep-info { padding: 10px 12px 12px; }
.emp-epl-grid .emp-ep-info strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.emp-epl-grid .emp-ep-text, .emp-epl-grid .emp-ep-go { display: none; }
.emp-epl-grid .emp-ep-list li:not(:has(.emp-ep-thumb)) .emp-ep-n { position: static; margin: 12px 12px 0; align-self: flex-start; }

/* Lista de capítulos: compacta (sin imágenes) */
.emp-epl-compact .emp-ep-list { gap: 6px; }
@media (min-width: 900px) { .emp-epl-compact .emp-ep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.emp-epl-compact .emp-ep-list li, .emp-epl-grid .emp-ep-list li { min-width: 0; }
.emp-epl-compact .emp-ep-list a { gap: 12px; padding: 10px 12px; }
.emp-epl-compact .emp-ep-thumb, .emp-epl-compact .emp-ep-text { display: none; }
.emp-epl-compact .emp-ep-n { display: grid; place-items: center; width: 38px; height: 38px; font-size: .95rem; color: #fff; background: var(--emp-grad-ink); -webkit-background-clip: border-box; background-clip: border-box; border-radius: 10px; }
.emp-epl-compact .emp-ep-go { padding: 5px 11px; font-size: .78rem; }
.emp-epl-compact .emp-ep-list li.is-seen .emp-ep-n { background: #1e9e5a; }

/* Cajas */
.emp-boxst-glow .emp-box { position: relative; }
.emp-boxst-glow .emp-box::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--emp-grad); border-radius: var(--emp-radius) var(--emp-radius) 0 0; pointer-events: none; }
.emp-boxst-outline .emp-box { background: transparent; border: 1px solid color-mix(in srgb, var(--emp-text) 16%, transparent); }
.emp-boxst-elevated .emp-box { background: linear-gradient(180deg, color-mix(in srgb, var(--emp-surface) 88%, #fff 12%) 0, var(--emp-surface) 120px); border-color: transparent; box-shadow: var(--emp-shadow); }
html[data-theme="light"] .emp-boxst-elevated .emp-box { background: var(--emp-surface); }

/* Botones de servidores: mejoras comunes */
.emp-server { position: relative; }
.emp-server:focus-visible { outline: 2px solid var(--emp-primary); outline-offset: 2px; }
.emp-server .emp-server-name { font-weight: 700; }
.emp-server-logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* Servidores: tarjetas */
.emp-srv-cards .emp-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.emp-srv-cards .emp-servers-label { grid-column: 1 / -1; }
.emp-srv-cards .emp-server { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-content: center; min-height: 58px; padding: 10px 34px 10px 10px; border-radius: var(--emp-radius); }
.emp-srv-cards .emp-server-logo, .emp-srv-cards .emp-server-icon { grid-row: 1 / 3; align-self: center; }
.emp-srv-cards .emp-server-name { grid-column: 2; align-self: end; }
.emp-srv-cards .emp-server-name:last-child { grid-row: 1 / 3; align-self: center; }
.emp-srv-cards .emp-server small { grid-column: 2; align-self: start; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-srv-cards .emp-server-logo { width: 36px; height: 36px; border-radius: 9px; }
.emp-srv-cards .emp-server-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--emp-grad-ink); }
.emp-srv-cards .emp-server-icon .emp-icon { width: 15px; height: 15px; }
.emp-srv-cards .emp-server small { opacity: .75; }
.emp-srv-cards .emp-server > span:not(.emp-server-icon):not(.emp-server-name), .emp-srv-cards .emp-server-name { display: block; overflow: hidden; text-overflow: ellipsis; }
.emp-srv-cards .emp-server::after { content: ""; position: absolute; top: 50%; right: 12px; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; opacity: .35; transform: translateY(-50%); }
.emp-srv-cards .emp-server:hover { color: var(--emp-text); background: var(--emp-srv-bg, var(--emp-surface2)); border-color: var(--emp-srv-hover, var(--emp-secondary)); transform: translateY(-2px); }
.emp-srv-cards .emp-server.is-active { color: var(--emp-srv-active-t, #fff); background: var(--emp-srv-active, var(--emp-primary)); border-color: transparent; }
.emp-srv-cards .emp-server.is-active::after { width: 16px; height: 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border: 0; opacity: 1; }
.emp-srv-cards .emp-server[style*="--emp-srv-brand"]:not(.is-active) { box-shadow: inset 0 -3px 0 var(--emp-srv-brand); }

/* Servidores: contorno */
.emp-srv-outline .emp-server { background: transparent; border: 1.5px solid var(--emp-srv-brand, var(--emp-border)); border-radius: 99px; }
.emp-srv-outline .emp-server[style*="--emp-srv-brand"]:not(.is-active) { box-shadow: none; }
.emp-srv-outline .emp-server:hover { color: var(--emp-text); background: color-mix(in srgb, var(--emp-srv-hover, var(--emp-secondary)) 14%, transparent); border-color: var(--emp-srv-hover, var(--emp-secondary)); }
.emp-srv-outline .emp-server.is-active { color: var(--emp-srv-active-t, #fff); background: var(--emp-srv-active, var(--emp-primary)); border-color: transparent; }
/* Modo claro: en contorno, el texto de los botones sin elegir va oscuro. */
html[data-theme="light"] .emp-srv-outline .emp-server:not(.is-active) { color: var(--emp-text); }

/* Servidores: cristal */
.emp-srv-glass .emp-server { background: color-mix(in srgb, var(--emp-text) 6%, transparent); border: 1px solid color-mix(in srgb, var(--emp-text) 12%, transparent); border-radius: 14px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.emp-srv-glass .emp-server[style*="--emp-srv-brand"]:not(.is-active) { box-shadow: inset 0 2px 0 var(--emp-srv-brand); }
.emp-srv-glass .emp-server:hover { color: var(--emp-text); background: color-mix(in srgb, var(--emp-text) 12%, transparent); border-color: color-mix(in srgb, var(--emp-text) 22%, transparent); }
.emp-srv-glass .emp-server.is-active { color: #fff; background: var(--emp-grad); border-color: transparent; }

@media (max-width: 767px) {
	.emp-srv-cards .emp-servers { display: grid; grid-template-columns: 1fr 1fr; margin-right: 0; padding-right: 0; overflow: visible; }
	.emp-srv-cards .emp-server { min-width: 0; }
}

/* ---------- Cuentas de usuario ---------- */
.emp-acc-btn { overflow: hidden; text-decoration: none; }
.emp-acc-btn.is-in { padding: 0; border-color: transparent; background: none; }
.emp-acc-btn .emp-c-avatar { width: 100% !important; height: 100% !important; font-size: .85rem; }
/* Me gusta / Guardar */
.emp-ubar { display: flex; flex-wrap: wrap; gap: 10px; }
.emp-ubar-ep { margin: 14px 0 0; }
.emp-ubar-hero { display: contents; }
.emp-ubtn { min-height: 42px; }
.emp-ubtn b { font-weight: 700; }
.emp-ubtn b:empty { display: none; }
.emp-ubtn.is-busy { opacity: .6; pointer-events: none; }
.emp-ubtn-like.is-on { color: #fff; background: #E0244A; border-color: #E0244A; }
.emp-ubtn-like.is-on .emp-icon, .emp-ubtn-save.is-on .emp-icon { fill: currentColor; }
.emp-ubtn-save.is-on { color: var(--emp-primary-text); border-color: var(--emp-primary); }
/* Comentarios */
.emp-c-login { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; padding: 14px 16px; color: var(--emp-muted); background: var(--emp-surface2); border: 1px dashed var(--emp-border); border-radius: var(--emp-radius); }
.emp-c-login .emp-icon { flex: none; color: var(--emp-primary-text); }
.emp-c-login a { color: var(--emp-primary-text); font-weight: 700; }
.emp-c-edited { margin: 2px 0 0; color: var(--emp-muted); font-size: .75rem; font-style: italic; }
.emp-c-actions .emp-c-del:hover { color: #E0244A; }
.emp-c-editor textarea { width: 100%; min-height: 80px; padding: 10px 12px; color: var(--emp-text); font: inherit; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 10px; resize: vertical; }
.emp-c-editor-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.emp-c-editor-bar .emp-btn { min-height: 34px; padding: 6px 14px; font-size: .85rem; }
.emp-c-editor-msg { color: var(--emp-muted); font-size: .8rem; }
/* Página /cuenta/ */
.emp-acc { max-width: 880px; }
.emp-acc-card { max-width: 440px; margin: 10px auto 40px; padding: 28px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: calc(var(--emp-radius) + 6px); box-shadow: var(--emp-shadow, 0 10px 30px rgba(0, 0, 0, .25)); }
.emp-acc-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 22px; padding: 4px; background: var(--emp-surface2); border-radius: 12px; }
.emp-acc-switch a { padding: 9px; color: var(--emp-muted); font-weight: 700; font-size: .9rem; text-align: center; text-decoration: none; border-radius: 9px; }
.emp-acc-switch a[aria-current] { color: #fff; background: var(--emp-grad); }
.emp-acc-title { margin: 0 0 4px; font-size: 1.5rem; }
.emp-acc-lead { margin: 0 0 18px; color: var(--emp-muted); font-size: .92rem; }
.emp-acc-form { display: grid; gap: 14px; }
.emp-acc-form > label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.emp-acc-form small { color: var(--emp-muted); font-weight: 500; }
.emp-acc-form input[type=text], .emp-acc-form input[type=email], .emp-acc-form input[type=password] { width: 100%; height: 46px; padding: 0 14px; color: var(--emp-text); font: inherit; font-size: 1rem; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 10px; }
.emp-acc-form input:focus { border-color: var(--emp-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--emp-primary) 25%, transparent); }
.emp-acc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: .85rem; }
.emp-acc-row a { color: var(--emp-primary-text); }
.emp-acc-check { display: inline-flex; gap: 6px; align-items: center; }
.emp-acc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.emp-acc-error { margin-bottom: 14px; padding: 10px 14px; color: #ffd6dc; font-size: .88rem; background: rgba(224, 36, 74, .16); border: 1px solid rgba(224, 36, 74, .45); border-radius: 10px; }
.emp-acc-error p { margin: 2px 0; }
html[data-theme=light] .emp-acc-error { color: #9b1230; }
.emp-acc-ok { padding: 10px 14px; color: #8ff0bb; background: rgba(30, 158, 90, .15); border: 1px solid rgba(30, 158, 90, .4); border-radius: 10px; }
html[data-theme=light] .emp-acc-ok { color: #0f6b3a; }
.emp-acc-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 6px 0 18px; }
.emp-acc-head .emp-c-avatar { font-size: 1.4rem; }
.emp-acc-who { flex: 1; min-width: 0; }
.emp-acc-who h1 { margin: 0; font-size: 1.5rem; overflow-wrap: anywhere; }
.emp-acc-who p { margin: 2px 0 0; color: var(--emp-muted); font-size: .9rem; overflow-wrap: anywhere; }
.emp-acc-tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--emp-border); }
.emp-acc-tabs a { display: inline-flex; gap: 8px; align-items: center; margin-bottom: -1px; padding: 10px 14px; color: var(--emp-muted); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.emp-acc-tabs a[aria-current] { color: var(--emp-text); border-bottom-color: var(--emp-primary); }
.emp-acc-tabs .emp-icon { width: 18px; height: 18px; }
.emp-acc-list, .emp-acc-comments { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.emp-acc-list li { display: flex; gap: 14px; align-items: center; padding: 8px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 12px; }
.emp-acc-list li > div { flex: 1; min-width: 0; }
.emp-acc-thumb { flex: none; width: 54px; height: 78px; overflow: hidden; background: var(--emp-surface2); border-radius: 8px; }
.emp-acc-thumb.is-ep { width: 112px; height: 63px; }
.emp-acc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.emp-acc-name { display: block; overflow: hidden; color: var(--emp-text); font-weight: 700; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.emp-acc-list small, .emp-acc-comments small { color: var(--emp-muted); font-size: .8rem; }
.emp-acc-remove { display: grid; flex: none; place-items: center; width: 36px; height: 36px; color: var(--emp-muted); background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 50%; cursor: pointer; }
.emp-acc-remove:hover { color: #fff; background: #E0244A; border-color: #E0244A; }
.emp-acc-remove .emp-icon { width: 16px; height: 16px; }
.emp-acc-comments li { padding: 12px 14px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 12px; }
.emp-acc-comments p { margin: 4px 0; overflow-wrap: anywhere; }
.emp-acc-c-post { color: var(--emp-primary-text); font-weight: 700; font-size: .9rem; text-decoration: none; }
.emp-acc-empty { padding: 30px 16px; color: var(--emp-muted); text-align: center; background: var(--emp-surface); border: 1px dashed var(--emp-border); border-radius: 12px; }
@media (max-width: 600px) { .emp-acc-card { padding: 20px; } .emp-acc-out { width: 100%; } }
/* Me gusta y Guardar junto a las herramientas del reproductor */
.emp-player-bar .emp-player-notice { flex: 1 1 240px; }
.emp-player-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.emp-ubar-tools { display: contents; }
.emp-ubar-tools .emp-ubtn { min-height: 0; }

/* ---------- Página de salida ---------- */
.emp-logo-out .emp-main > .emp-exit:first-child { padding-top: calc(var(--emp-lo-pad) + 12px); }
.emp-exit-card { display: grid; justify-items: center; gap: 6px; max-width: 560px; margin: 20px auto 30px; padding: 34px 28px; text-align: center; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: calc(var(--emp-radius) + 6px); box-shadow: var(--emp-shadow, 0 10px 30px rgba(0, 0, 0, .25)); }
.emp-exit-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; color: #fff; background: var(--emp-grad); border-radius: 50%; }
.emp-exit-icon .emp-icon { width: 30px; height: 30px; }
.emp-exit-card h1 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.emp-exit-card > p { margin: 4px 0; color: var(--emp-muted); }
.emp-exit-host { display: inline-flex; gap: 8px; align-items: center; margin: 10px 0 14px !important; padding: 8px 14px; color: var(--emp-text) !important; font-weight: 700; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 99px; overflow-wrap: anywhere; }
.emp-exit-host .emp-icon { flex: none; width: 18px; color: var(--emp-secondary); }
.emp-exit-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 600px) { .emp-exit-actions .emp-btn { width: 100%; } }
.emp-acc-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 18px; }
.emp-acc-data > div, .emp-acc-data > label { display: grid; gap: 4px; align-content: start; padding: 12px 14px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 12px; }
.emp-acc-data span { color: var(--emp-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.emp-acc-data strong { overflow-wrap: anywhere; }
.emp-acc-data > label { grid-template-columns: 1fr auto; }
.emp-acc-data > label > span { grid-column: 1 / -1; }
.emp-acc-select { width: 100%; height: 40px; padding: 0 10px; color: var(--emp-text); font: inherit; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 10px; }
.emp-acc-form .emp-acc-select { height: 46px; }
/* Texto SEO de la portada */
.emp-seo-home .emp-seo-body { max-height: 14em; }
.emp-seo-home.is-open .emp-seo-body { max-height: 9999px; }
.emp-seo-home h3 { margin: 1.2em 0 .4em; color: var(--emp-text); font-size: 1.05rem; }
.emp-seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin: .4em 0 1em; padding: 0; list-style: none; }
.emp-seo-links a { display: inline-block; padding: 5px 12px; color: var(--emp-text); font-size: .85rem; font-weight: 600; text-decoration: none; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 99px; }
.emp-seo-links a:hover { color: #fff; background: var(--emp-primary); border-color: var(--emp-primary); }
/* Avatares predeterminados */
img.emp-avatar-img { display: block; flex: none; align-self: flex-start; max-width: none; aspect-ratio: 1 / 1; object-fit: cover; background: var(--emp-surface2); border-radius: 50%; }
.emp-acc-avatars { margin: 0 0 18px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 12px; }
.emp-acc-avatars > summary { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; }
.emp-acc-avatars > summary::-webkit-details-marker { display: none; }
.emp-acc-avatars > summary .emp-icon { color: var(--emp-primary-text); }
.emp-acc-avatars > summary small { color: var(--emp-muted); font-weight: 500; }
.emp-acc-avatars > form { display: grid; gap: 14px; justify-items: start; padding: 0 14px 14px; }
/* Columnas fijas: cada grupo tiene 6 o 12 avatares, así todas las filas quedan completas. */
.emp-avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; width: 100%; }
@media (max-width: 640px) { .emp-avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .emp-avatar-opt img, .emp-avatar-opt .emp-c-avatar { width: 60px !important; height: 60px !important; } }
.emp-avatar-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px; text-align: center; background: var(--emp-surface2); border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.emp-avatar-opt:hover { transform: translateY(-2px); border-color: var(--emp-border); }
.emp-avatar-opt input { position: absolute; opacity: 0; pointer-events: none; }
.emp-avatar-opt img, .emp-avatar-opt .emp-c-avatar { width: 72px !important; height: 72px !important; border-radius: 50%; font-size: 1.3rem; }
.emp-avatar-opt span { display: grid; font-size: .82rem; font-weight: 700; line-height: 1.2; }
.emp-avatar-opt small { color: var(--emp-muted); font-size: .7rem; font-weight: 500; }
.emp-avatar-opt:has(input:checked) { border-color: var(--emp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emp-primary) 22%, transparent); }
.emp-avatar-opt:has(input:checked)::after { content: "\2713"; position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; color: #fff; font-size: 12px; font-weight: 700; background: var(--emp-primary); border-radius: 50%; }
.emp-avatar-opt:has(input:focus-visible) { outline: 2px solid var(--emp-secondary); outline-offset: 2px; }
.emp-acc-btn img.emp-avatar-img { width: 100% !important; height: 100% !important; }
.emp-avatar-group { grid-column: 1 / -1; margin: 6px 0 -2px; color: var(--emp-muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.emp-acc-avatars .emp-btn[type=submit] { position: sticky; bottom: 12px; }
.emp-acc-data button[hidden] { display: none; }

/* Menú de usuario en la cabecera */
.emp-acc-login { display: inline-flex; gap: 6px; align-items: center; height: 42px; padding: 0 14px 0 12px; color: var(--emp-header-text, var(--emp-text)); font-size: .88rem; font-weight: 700; text-decoration: none; background: var(--emp-surface2); border: 1px solid var(--emp-border); border-radius: 99px; }
.emp-acc-login:hover { color: #fff; background: var(--emp-primary); border-color: var(--emp-primary); }
.emp-acc-login .emp-icon { width: 18px; height: 18px; }
@media (max-width: 600px) { .emp-acc-login { width: 38px; height: 38px; padding: 0; justify-content: center; } .emp-acc-login span { display: none; } }
.emp-umenu { position: relative; }
.emp-umenu .emp-acc-btn { cursor: pointer; }
.emp-umenu.is-open .emp-acc-btn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--emp-primary) 45%, transparent); }
.emp-umenu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; width: 250px; padding: 8px; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.emp-umenu-panel[hidden] { display: none; }
.emp-umenu-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; padding: 8px 8px 12px; color: var(--emp-text); text-decoration: none; border-bottom: 1px solid var(--emp-border); }
.emp-umenu-head span { display: grid; min-width: 0; }
.emp-umenu-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-umenu-head small { color: var(--emp-muted); font-size: .78rem; }
.emp-umenu-panel nav { display: grid; gap: 2px; }
.emp-umenu-panel nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; color: var(--emp-text); font-size: .9rem; font-weight: 600; text-decoration: none; border-radius: 9px; }
.emp-umenu-panel nav a .emp-icon { width: 18px; height: 18px; color: var(--emp-muted); }
.emp-umenu-panel nav a:hover, .emp-umenu-panel nav a:focus-visible { background: var(--emp-surface2); }
.emp-umenu-panel nav a:hover .emp-icon { color: var(--emp-primary-text); }
.emp-umenu-panel nav a.is-out { margin-top: 4px; border-top: 1px solid var(--emp-border); border-radius: 0 0 9px 9px; }
.emp-umenu-panel nav a.is-out, .emp-umenu-panel nav a.is-out .emp-icon { color: #F43F5E; }
@media (max-width: 480px) { .emp-umenu-panel { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; } }
.emp-avatar-opt.emp-avatar-opt-ini { grid-column: 1 / -1; display: flex; gap: 12px; justify-content: flex-start; padding: 8px 12px; text-align: left; }
.emp-avatar-opt.emp-avatar-opt-ini .emp-c-avatar { width: 44px !important; height: 44px !important; font-size: .95rem; }
/* La barra lateral no puede crecer más que su columna (títulos largos de capítulos). */
.emp-side { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.emp-side > *, .emp-side-eplist li, .emp-side-eplist a, .emp-serie-card > div { min-width: 0; }
.emp-serie-card h2 { overflow-wrap: anywhere; }

/* ---------- Mascota ---------- */
.emp-mascot { --mascot-h: 160px; position: fixed; right: 14px; bottom: 0; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; opacity: 0; transform: translateY(30px); transition: opacity .35s var(--emp-ease), transform .35s var(--emp-ease); }
.emp-mascot.is-in { opacity: 1; transform: none; }
.emp-mascot > * { pointer-events: auto; }
.emp-mascot-char { display: block; padding: 0; background: none; border: 0; cursor: pointer; }
.emp-mascot-char img { display: block; width: auto; height: var(--mascot-h); max-width: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); transform-origin: bottom center; }
.emp-mascot.is-in .emp-mascot-char img { animation: emp-mascot-float 4s ease-in-out infinite; }
.emp-mascot.is-talking .emp-mascot-char img { animation: emp-mascot-talk .5s ease-in-out 3; }
/* Avatar (por defecto): redondo, con borde, apoyado sobre el borde inferior. */
.emp-mascot.is-avatar { bottom: 14px; }
.emp-mascot.is-avatar .emp-mascot-char img { width: calc(var(--mascot-h) * .75); height: calc(var(--mascot-h) * .75); border: 4px solid var(--emp-surface); border-radius: 50%; box-shadow: 0 0 0 3px var(--emp-primary), 0 10px 24px rgba(0, 0, 0, .4); filter: none; }
.emp-mascot-bubble { position: relative; max-width: 260px; margin: 0 10px 12px 0; padding: 10px 14px; color: var(--emp-text); font-size: .88rem; font-weight: 600; line-height: 1.4; background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 16px 16px 4px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: emp-mascot-pop .25s var(--emp-ease); }
.emp-mascot-bubble[hidden] { display: none; }
.emp-mascot-bubble::after { content: ""; position: absolute; right: 22px; bottom: -8px; width: 14px; height: 14px; background: inherit; border-right: 1px solid var(--emp-border); border-bottom: 1px solid var(--emp-border); transform: rotate(45deg); }
.emp-mascot-name { display: block; margin-bottom: 2px; color: var(--emp-primary-text); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.emp-mascot-close { position: absolute; top: auto; right: 0; bottom: calc(var(--mascot-h) - 26px); z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--emp-muted); background: var(--emp-surface); border: 1px solid var(--emp-border); border-radius: 50%; cursor: pointer; opacity: 0; transition: opacity .2s; }
.emp-mascot.is-avatar .emp-mascot-close { bottom: calc(var(--mascot-h) * .75 - 20px); }
.emp-mascot:hover .emp-mascot-close, .emp-mascot-close:focus-visible { opacity: 1; }
.emp-mascot-close .emp-icon { width: 14px; height: 14px; }
.emp-mascot-close:hover { color: #fff; background: var(--emp-primary); }
body.emp-has-mascot .emp-top { right: auto; left: 18px; }
@keyframes emp-mascot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes emp-mascot-talk { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
@keyframes emp-mascot-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (hover: none) { .emp-mascot-close { opacity: 1; } }
@media (max-width: 640px) {
	.emp-mascot { --mascot-h-m: calc(var(--mascot-h) * .6); right: 6px; }
	.emp-mascot.no-mobile { display: none; }
	.emp-mascot-char img { height: var(--mascot-h-m); }
	.emp-mascot.is-avatar .emp-mascot-char img { width: calc(var(--mascot-h-m) * .8); height: calc(var(--mascot-h-m) * .8); }
	.emp-mascot-close, .emp-mascot.is-avatar .emp-mascot-close { bottom: calc(var(--mascot-h-m) - 20px); }
	.emp-mascot-bubble { max-width: min(240px, calc(100vw - 40px)); font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { .emp-mascot, .emp-mascot-bubble, .emp-mascot-char img { animation: none !important; transition: none !important; } }

/* ---------- Panel del usuario: mensaje y recomendados ---------- */
.emp-acc { max-width: 1120px; }
.emp-acc-msg { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0 0 18px; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--emp-primary) 16%, var(--emp-surface)), color-mix(in srgb, var(--emp-secondary) 14%, var(--emp-surface))); border: 1px solid color-mix(in srgb, var(--emp-primary) 35%, var(--emp-border)); border-radius: 14px; }
.emp-acc-msg > div { flex: 1 1 260px; min-width: 0; }
.emp-acc-msg strong { display: block; font-size: 1rem; }
.emp-acc-msg p { margin: 2px 0 0; color: var(--emp-muted); font-size: .9rem; }
.emp-acc-msg-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--emp-grad); border-radius: 12px; }
.emp-acc-rec { margin: 6px 0 24px; }
.emp-acc-rec .emp-head { margin-bottom: 4px; }
.emp-acc-rec-sub { margin: 0 0 14px; color: var(--emp-muted); font-size: .9rem; }
.emp-acc-rec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .emp-acc-rec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .emp-acc-rec-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.emp-acc .emp-ad { margin: 0 0 20px; }

/* ---------- Herramientas del reproductor más discretas (1.49.1) ---------- */
/* Me gusta, Guardar, Reportar y Apagar luces: chips suaves; el color queda para los botones principales. */
.emp-player-tools .emp-btn.emp-btn-ghost { gap: 7px; min-height: 36px; padding: 7px 14px; color: var(--emp-muted); font-size: .85rem; font-weight: 600; background: transparent; background-image: none; border: 1px solid var(--emp-border); border-radius: 999px; box-shadow: none; text-shadow: none; animation: none; transform: none; }
.emp-player-tools .emp-btn.emp-btn-ghost .emp-icon { width: 16px; height: 16px; color: var(--emp-secondary-text, var(--emp-secondary)); }
.emp-player-tools .emp-btn.emp-btn-ghost:hover, .emp-player-tools .emp-btn.emp-btn-ghost:focus-visible { color: var(--emp-text); background: color-mix(in srgb, var(--emp-primary) 10%, transparent); border-color: color-mix(in srgb, var(--emp-primary) 45%, var(--emp-border)); transform: none; }
.emp-player-tools .emp-ubtn-like .emp-icon { color: #E0244A; }
.emp-player-tools .emp-ubtn-like.is-on { color: #fff; background: #E0244A; border-color: #E0244A; }
.emp-player-tools .emp-ubtn-like.is-on .emp-icon { color: #fff; }
.emp-player-tools .emp-ubtn-save.is-on { color: var(--emp-text); background: color-mix(in srgb, var(--emp-secondary) 18%, transparent); border-color: var(--emp-secondary); }
.emp-player-tools [data-emp-report-open][aria-expanded="true"] { color: var(--emp-text); border-color: var(--emp-primary); }
body.emp-cinema .emp-player-tools [data-emp-cinema] { color: #111; background: #FCD34D; border-color: #FCD34D; }
body.emp-cinema .emp-player-tools [data-emp-cinema] .emp-icon { color: #111; }
