/* El Canal De X — estilos del tema */
:root {
	--ecx-bg: #121016;
	--ecx-surface: #1b1822;
	--ecx-surface-2: #231f2c;
	--ecx-border: #2e2a3a;
	--ecx-border-2: #463f57;
	--ecx-text: #ece9f2;
	--ecx-muted: #a8a1b8;
	--ecx-accent: #ff3d8b;
	--ecx-accent-2: #b98cff;
	--ecx-accent-hover: #ff7fb2;
	--ecx-discord: #4752c4;
	--ecx-gold: #f2c14b;
	--ecx-silver: #c9d3db;
	--ecx-bronze: #d68b52;
	--ecx-radius: 12px;
	--ecx-display: 'Chakra Petch', system-ui, sans-serif;
	--ecx-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ecx-bg);
	color: var(--ecx-text);
	font-family: var(--ecx-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ecx-accent); text-decoration: none; }
a:hover { color: var(--ecx-accent-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ecx-accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--ecx-display); font-weight: 700; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.ecx-video__title, .ecx-news__title, .ecx-rank__name, .ecx-hero__text p { overflow-wrap: anywhere; }

.ecx-skip { position: absolute; left: -9999px; top: 8px; background: var(--ecx-accent); color: #121016; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.ecx-skip:focus { left: 8px; }

.ecx-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ecx-muted { color: var(--ecx-muted); }
.ecx-small { font-size: 14px; }
.ecx-strong { font-weight: 600; }
.ecx-hint { padding: 12px 16px; border: 1px dashed var(--ecx-border-2); border-radius: 8px; color: var(--ecx-muted); font-size: 14px; }

/* ---------- Cabecera ---------- */
.ecx-header { border-bottom: 1px solid var(--ecx-border); background: var(--ecx-bg); position: sticky; top: 0; z-index: 50; }
.admin-bar .ecx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ecx-header { top: 0; position: relative; } }
.ecx-header__row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.ecx-brand { display: flex; align-items: center; gap: 12px; color: var(--ecx-text); }
.ecx-brand:hover { color: var(--ecx-text); }
.ecx-brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.ecx-brand span { font-family: var(--ecx-display); font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.ecx-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.ecx-nav a { display: block; padding: 10px 14px; color: var(--ecx-text); font-weight: 500; border-radius: 8px; white-space: nowrap; }
.ecx-nav a:hover, .ecx-nav a.is-current, .ecx-nav .current-menu-item > a { background: var(--ecx-surface); color: var(--ecx-text); }

[id] { scroll-margin-top: 96px; }
.ecx-page-title { font-size: clamp(30px, 5vw, 44px); }
.ecx-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .ecx-grid--two { grid-template-columns: minmax(0, 1fr); } }
.ecx-center { align-self: center; }
.ecx-nav a.is-current { color: var(--ecx-accent); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Botones ---------- */
.ecx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: 8px; font-weight: 700; border: 0; cursor: pointer; font-family: var(--ecx-body); font-size: 16px; }
.ecx-btn--primary { background: var(--ecx-accent); color: #121016; }
.ecx-btn--primary:hover { background: var(--ecx-accent-hover); color: #121016; }
.ecx-btn--ghost { background: transparent; border: 1px solid var(--ecx-border-2); color: var(--ecx-text); font-weight: 600; }
.ecx-btn--ghost:hover { border-color: var(--ecx-accent); color: var(--ecx-text); }
.ecx-btn--discord { background: var(--ecx-discord); color: #fff; font-weight: 600; }
.ecx-btn--discord:hover { background: #3c45a5; color: #fff; }
.ecx-btn--white { background: #fff; color: #2b2f8f; font-size: 17px; padding: 16px 28px; border-radius: 10px; }
.ecx-btn--white:hover { background: #eef0ff; color: #2b2f8f; }
.ecx-btn--block { width: 100%; }
.ecx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Estructura ---------- */
.ecx-main { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }
.ecx-block { display: flex; flex-direction: column; gap: 20px; }
.ecx-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.ecx-block__head a { font-weight: 600; }
.ecx-block h2, .ecx-block__intro h2 { font-size: 28px; }
.ecx-block__intro { display: flex; flex-direction: column; gap: 6px; }
.ecx-kicker { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--ecx-accent); text-transform: uppercase; }
.ecx-kicker--light { color: #fff; font-weight: 700; }

.ecx-grid { display: grid; gap: 20px; }
.ecx-grid--videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ecx-grid--news { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.ecx-card { border-radius: var(--ecx-radius); background: var(--ecx-surface); border: 1px solid var(--ecx-border); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ecx-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ecx-card__head > .ecx-small { white-space: nowrap; }
.ecx-card__title { font-size: 20px; }

/* ---------- Último vídeo ---------- */
.ecx-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.ecx-hero__media { flex: 999 1 480px; min-width: 0; aspect-ratio: 16 / 9; border-radius: var(--ecx-radius); background: var(--ecx-surface); border: 1px solid var(--ecx-border); position: relative; overflow: hidden; }
.ecx-hero__media img, .ecx-hero__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ecx-hero__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(236, 233, 242, .95); color: #121016; display: flex; align-items: center; justify-content: center; cursor: pointer; padding-left: 6px; transition: transform .15s ease; }
.ecx-hero__play:hover { transform: scale(1.06); }
.ecx-badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 12px; border-radius: 6px; background: var(--ecx-accent-2); color: #121016; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.ecx-hero__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ecx-hero__title { font-size: clamp(28px, 5vw, 40px); }

/* ---------- Únete al Discord ---------- */
.ecx-discord-cta { border-radius: 16px; background: var(--ecx-discord); color: #fff; padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.ecx-discord-cta__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ecx-discord-cta h2 { font-size: clamp(26px, 4vw, 36px); color: #fff; }
.ecx-discord-cta p { margin: 0; }
.ecx-discord-cta__stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; font-size: 15px; }
.ecx-discord-cta__stats span { display: flex; align-items: center; gap: 8px; }
.ecx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #57f287; margin-right: 6px; vertical-align: middle; }
.ecx-discord-cta .ecx-dot { width: 10px; height: 10px; margin-right: 0; }
.ecx-dot--white { background: #fff; }
.ecx-dot--green { background: #57f287; }

/* Franja animada con el top 10 */
.ecx-ticker { flex: 1 1 100%; overflow: hidden; margin: -12px 0 0; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.ecx-ticker__track { display: flex; width: max-content; animation: ecx-ticker 40s linear infinite; }
.ecx-ticker:hover .ecx-ticker__track, .ecx-ticker:focus-within .ecx-ticker__track { animation-play-state: paused; }
.ecx-ticker__set { display: flex; flex: none; }
.ecx-ticker__group { display: flex; align-items: center; gap: 22px; padding-right: 44px; white-space: nowrap; font-size: 15px; }
.ecx-ticker__group strong { font-family: var(--ecx-display); letter-spacing: 1px; background: #fff; color: #2b2f8f; padding: 2px 10px; border-radius: 4px; }
.ecx-ticker__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ecx-ticker__pos { font-family: var(--ecx-display); opacity: .8; }
@keyframes ecx-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ecx-ticker { overflow-x: auto; }
	.ecx-ticker__track { animation: none; }
	.ecx-ticker__set[aria-hidden="true"] { display: none; }
}

/* ---------- Servidor hermano de Once Human ---------- */
.ecx-btn--outline { border: 1px solid var(--ecx-accent); color: var(--ecx-accent); font-weight: 700; }
.ecx-btn--outline:hover { background: rgba(255, 61, 139, .1); color: var(--ecx-accent-hover); }
.ecx-oh { margin-top: -32px; border-radius: 16px; background: var(--ecx-surface); border: 1px solid var(--ecx-border); padding: 28px 36px; display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; }
.ecx-oh__main { flex: 1 1 420px; min-width: 0; display: flex; gap: 22px; align-items: center; }
.ecx-oh__badge { width: 64px; height: 64px; flex: none; border-radius: 14px; object-fit: cover; display: block; }
.ecx-oh__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ecx-oh__text p { margin: 0; }
.ecx-oh__title { font-size: clamp(20px, 3vw, 26px); }
.ecx-oh__stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 4px; }
.ecx-oh__stats .ecx-dot { margin-right: 8px; }
.ecx-oh-link { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 14px; border-radius: 10px; background: #2a1622; border: 1px solid #5a2a44; color: var(--ecx-text); }
.ecx-oh-link:hover { color: var(--ecx-text); border-color: var(--ecx-accent); }
.ecx-oh-link > svg { color: var(--ecx-accent); flex: none; }
.ecx-oh-link__icon { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; display: block; }
.ecx-oh-link__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ecx-servers { align-items: stretch; }
.ecx-server .ecx-ticker { flex: none; margin: -12px -32px 0; padding: 10px 32px; width: auto; }
@media (max-width: 760px) { .ecx-server .ecx-ticker { margin: -4px -24px 0; padding: 10px 24px; } }
.ecx-server { border-radius: 16px; background: var(--ecx-surface); border: 1px solid var(--ecx-border); padding: 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ecx-server p { margin: 0; }
.ecx-server--main { background: var(--ecx-discord); border-color: var(--ecx-discord); color: #fff; }
.ecx-server__tag { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: #fff; color: #2b2f8f; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.ecx-server__tag--oh { background: #2a1622; border: 1px solid #5a2a44; color: var(--ecx-accent); }
.ecx-server__title { font-size: 28px; }
.ecx-server__head { display: flex; align-items: center; gap: 14px; }
.ecx-server__logo { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; }
.ecx-server--main .ecx-server__title { color: #fff; }
.ecx-server__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ecx-server__list li { display: flex; gap: 10px; align-items: center; }
.ecx-server__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ecx-accent); flex: none; }
.ecx-server--main .ecx-server__list li::before { background: #fff; }
.ecx-server__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; }
@media (max-width: 760px) {
	.ecx-oh { margin-top: -24px; padding: 22px; }
	.ecx-oh__main { flex-direction: column; align-items: flex-start; gap: 14px; }
	.ecx-oh .ecx-btn { width: 100%; }
	.ecx-server { padding: 24px; }
}

/* ---------- Vídeos ---------- */
.ecx-video { display: flex; flex-direction: column; gap: 10px; color: var(--ecx-text); min-width: 0; }
.ecx-video:hover { color: var(--ecx-text); }
.ecx-video__thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--ecx-surface); border: 1px solid var(--ecx-border); overflow: hidden; }
.ecx-video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.ecx-video:hover .ecx-video__thumb img { transform: scale(1.04); }
.ecx-video__title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Noticias + lateral ---------- */
.ecx-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ecx-split__main { flex: 999 1 560px; min-width: 0; }
.ecx-split__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ecx-news { display: flex; align-items: flex-start; gap: 12px; padding-top: 12px; border-top: 1px solid var(--ecx-border); color: var(--ecx-text); }
.ecx-news__img { flex: none; width: 76px; height: 57px; border-radius: 6px; object-fit: cover; background: var(--ecx-surface-2); }
.ecx-news__img--cover { object-position: left bottom; }
.ecx-news__img--empty { display: flex; align-items: center; justify-content: center; font: 700 18px var(--ecx-display); letter-spacing: 1px; border: 1px solid var(--ecx-border); }
.ecx-news__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ecx-news:hover { color: var(--ecx-accent-hover); }
.ecx-news__title { font-weight: 600; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ecx-news--own .ecx-news__title { color: var(--ecx-text); }
.ecx-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--ecx-accent); color: #121016; }
.ecx-aviso { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 8px; background: var(--ecx-surface-2); font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Pestañas y ranking ---------- */
.ecx-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 8px; background: var(--ecx-bg); }
.ecx-tabs--scroll { display: flex; overflow-x: auto; scrollbar-width: thin; align-self: flex-start; max-width: 100%; }
.ecx-tab { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 6px; background: transparent; color: var(--ecx-text); font: 600 15px var(--ecx-body); cursor: pointer; white-space: nowrap; }
.ecx-tab:hover { background: var(--ecx-surface-2); }
.ecx-tab.is-active { background: var(--ecx-accent); color: #121016; }
.ecx-panel { display: flex; flex-direction: column; gap: 10px; }
.ecx-panel[hidden] { display: none; }
.ecx-rank { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ecx-rank li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--ecx-surface-2); }
.ecx-rank__pos { width: 28px; height: 28px; flex: none; border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 700 14px var(--ecx-display); background: var(--ecx-border); }
.ecx-rank__pos--1 { background: var(--ecx-gold); color: #121016; }
.ecx-rank__pos--2 { background: var(--ecx-silver); color: #121016; }
.ecx-rank__pos--3 { background: var(--ecx-bronze); color: #121016; }
.ecx-rank__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ecx-border-2); flex: none; object-fit: cover; }
.ecx-rank__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Indicador "En directo" */
.ecx-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ecx-muted); white-space: nowrap; }
.ecx-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #57f287; box-shadow: 0 0 0 0 rgba(87, 242, 135, .6); animation: ecx-pulse 2s infinite; }
@keyframes ecx-pulse { 70% { box-shadow: 0 0 0 6px rgba(87, 242, 135, 0); } 100% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0); } }
@media (prefers-reduced-motion: reduce) { .ecx-live::before { animation: none; } }
.ecx-avisos { display: flex; flex-direction: column; gap: 14px; }
.ecx-ticker[hidden] { display: none; }

/* Aviso de novedades */
.ecx-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 12px; background: var(--ecx-surface-2); border: 1px solid var(--ecx-border-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); max-width: calc(100% - 32px); font-weight: 600; }
.ecx-toast[hidden] { display: none; }
.ecx-toast__close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ecx-muted); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 8px; }
.ecx-toast__close:hover { color: var(--ecx-text); }
@media (max-width: 760px) { .ecx-toast { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; padding-left: 14px; gap: 8px; font-size: 15px; } .ecx-toast > span { flex: 1; min-width: 0; } }
.ecx-toast > span { white-space: normal; }

/* Coronas del top 3 */
.ecx-crown { flex: none; vertical-align: -3px; margin-right: 6px; }
.ecx-crown--gold { color: var(--ecx-gold); }
.ecx-crown--silver { color: var(--ecx-silver); }
.ecx-crown--bronze { color: var(--ecx-bronze); }
.ecx-rank__name .ecx-crown { margin-right: 6px; }
.ecx-ticker .ecx-crown { margin-right: 2px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.ecx-ticker .ecx-crown--silver { color: #eef2f6; }

/* Histórico del top (página del plugin) */
.ecx-history h2 { margin: 1.2em 0 .6em; }
.ecx-history__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.ecx-history .ecx-rank { margin: 0; padding: 0; }
.ecx-history .ecx-card h3 { margin: 0; font-size: 18px; }

/* ---------- Entradas y páginas ---------- */
.ecx-article { max-width: 780px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.ecx-article__head { display: flex; flex-direction: column; gap: 10px; }
.ecx-article__title { font-size: clamp(30px, 5vw, 44px); }
.ecx-article__image img { border-radius: var(--ecx-radius); width: 100%; }
.ecx-content { font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.ecx-content h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.ecx-content h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.ecx-content img, .ecx-content iframe, .ecx-content video { max-width: 100%; border-radius: 10px; }
.ecx-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.ecx-content th, .ecx-content td { border: 1px solid var(--ecx-border); padding: 8px 12px; text-align: left; }
.ecx-content blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 3px solid var(--ecx-accent); color: var(--ecx-muted); }
.ecx-content pre { background: var(--ecx-surface); padding: 16px; border-radius: 10px; overflow-x: auto; }
.ecx-postcard { color: var(--ecx-text); }
.ecx-postcard:hover { color: var(--ecx-text); border-color: var(--ecx-border-2); }
.ecx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ecx-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; background: var(--ecx-surface); color: var(--ecx-text); }
.ecx-pagination .page-numbers.current { background: var(--ecx-accent); color: #121016; }

/* Comentarios y formularios */
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea, .search-form input[type="search"] {
	width: 100%; background: var(--ecx-surface); color: var(--ecx-text); border: 1px solid var(--ecx-border-2); border-radius: 8px; padding: 12px; font: inherit;
}
.comment-respond input[type="submit"] { background: var(--ecx-accent); color: #121016; border: 0; border-radius: 8px; padding: 12px 20px; font: 700 16px var(--ecx-body); cursor: pointer; min-height: 44px; }

/* ---------- Pie ---------- */
.ecx-footer { border-top: 1px solid var(--ecx-border); }
.ecx-footer__row { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ecx-muted); }
.ecx-footer__links { display: flex; gap: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.ecx-main { gap: 44px; }
	.ecx-nav { order: 3; flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 0 20px; width: calc(100% + 48px); scrollbar-width: none; }
	.ecx-nav::-webkit-scrollbar { display: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
	.ecx-wrap { padding-left: 16px; padding-right: 16px; }
	.ecx-header__row { padding-top: 10px; padding-bottom: 10px; }
	.ecx-nav { margin: 0 -16px; padding: 0 12px; width: calc(100% + 32px); }
	.ecx-hide-sm { display: none; }
	.ecx-btn--discord:not(.ecx-btn--block) { padding: 12px; width: 44px; }
	.ecx-main { padding-top: 24px; padding-bottom: 48px; gap: 40px; }
	.ecx-discord-cta { padding: 24px; }
	.ecx-btn--white { width: 100%; }
	.ecx-block h2, .ecx-block__intro h2 { font-size: 24px; }
	.ecx-hero__play { width: 68px; height: 68px; }
	.ecx-grid--videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.ecx-grid--videos .ecx-video__title { font-size: 14px; }
}

/* =========================================================================
   Animación de entrada con el logo
   Funciona solo con CSS: aunque falle el JavaScript, desaparece sola.
   ========================================================================= */
.ecx-intro { display: none; }
.ecx-intro-on .ecx-intro {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
	background: radial-gradient(circle at 50% 46%, #241a33 0%, #121016 62%);
	animation: ecx-intro-out .55s ease-in 1.55s forwards;
	cursor: pointer;
}
.ecx-intro__glow {
	position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; max-width: 120vw; max-height: 120vw;
	transform: translate(-50%, -50%) scale(.2); border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 61, 139, .45) 0%, rgba(155, 92, 255, .25) 38%, rgba(18, 16, 22, 0) 70%);
	opacity: 0; animation: ecx-intro-glow 1.4s cubic-bezier(.2, .8, .2, 1) .15s forwards;
}
.ecx-intro__logo { position: relative; width: min(220px, 52vw); aspect-ratio: 1; overflow: hidden; }
.ecx-intro__logo img {
	width: 100%; height: 100%; display: block;
	opacity: 0; transform: scale(.45) rotate(-18deg); filter: blur(10px);
	animation: ecx-intro-logo .75s cubic-bezier(.18, 1.25, .4, 1) .1s forwards;
}
/* Destello que cruza la X en diagonal, siguiendo su forma. */
.ecx-intro__shine {
	position: absolute; inset: 0; pointer-events: none;
	-webkit-mask: url("logo-x.webp") center / contain no-repeat; mask: url("logo-x.webp") center / contain no-repeat;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%; background-position: 150% 0;
	animation: ecx-intro-shine .7s ease-in-out .8s forwards;
}
.ecx-intro__name {
	position: relative; font-family: var(--ecx-display); font-weight: 700; color: var(--ecx-text);
	font-size: clamp(18px, 4vw, 24px); letter-spacing: 6px; text-transform: uppercase; padding-left: 6px;
	opacity: 0; transform: translateY(12px); animation: ecx-intro-name .5s ease-out .65s forwards;
}
.ecx-intro.is-skipped { animation: ecx-intro-out .3s ease-in forwards; }

@keyframes ecx-intro-logo {
	60% { opacity: 1; filter: blur(0); }
	to { opacity: 1; transform: scale(1) rotate(0); filter: blur(0) drop-shadow(0 0 24px rgba(255, 61, 139, .45)); }
}
@keyframes ecx-intro-glow {
	40% { opacity: 1; }
	to { opacity: .8; transform: translate(-50%, -50%) scale(1); }
}
@keyframes ecx-intro-shine { to { background-position: -50% 0; } }
@keyframes ecx-intro-name { to { opacity: 1; transform: none; letter-spacing: 3px; } }
@keyframes ecx-intro-out {
	to { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
}
@media (min-width: 1024px) {
	.ecx-intro-on .ecx-intro { gap: 28px; }
	.ecx-intro__logo { width: 300px; }
	.ecx-intro__glow { width: 780px; height: 780px; }
	.ecx-intro__name { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ecx-intro { display: none !important; } }

/* =========================================================================
   Podio animado de la página Ranking (4 segundos)
   ========================================================================= */
.ecx-podium { position: fixed; inset: 0; z-index: 9998; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px 16px; background: radial-gradient(circle at 50% 55%, #241a33 0%, #121016 65%); cursor: pointer; opacity: 0; transition: opacity .3s ease; }
.ecx-podium[hidden] { display: none; }
.ecx-podium.is-playing { opacity: 1; }
.ecx-podium.is-leaving { opacity: 0; transition-duration: .45s; }
.ecx-podium__glow { position: absolute; left: 50%; top: 58%; width: 700px; height: 700px; max-width: 140vw; max-height: 140vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 193, 75, .28) 0%, rgba(255, 61, 139, .16) 40%, rgba(18, 16, 22, 0) 70%); pointer-events: none; opacity: 0; }
.ecx-podium__kicker { position: relative; margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ecx-accent); opacity: 0; }
.ecx-podium__title { position: relative; margin: 0 0 28px; font: 700 clamp(30px, 6vw, 48px)/1.1 var(--ecx-display); color: var(--ecx-text); opacity: 0; }
.ecx-podium__stage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 2vw, 24px); width: min(760px, 100%); }
.ecx-podium__col { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; opacity: 0; transform: translateY(60px); }
.ecx-podium__col.is-empty { visibility: hidden; }
.ecx-podium__crown { display: block; opacity: 0; transform: translateY(-70px) rotate(-14deg); height: 48px; }
.ecx-podium__col--1 .ecx-podium__crown { height: 64px; }
.ecx-podium__crown .ecx-crown { margin: 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.ecx-podium__avatar { width: clamp(64px, 14vw, 96px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ecx-border-2); display: flex; align-items: center; justify-content: center; font: 700 clamp(26px, 5vw, 38px) var(--ecx-display); color: var(--ecx-text); border: 3px solid var(--ecx-border-2); }
.ecx-podium__col--1 .ecx-podium__avatar { width: clamp(84px, 18vw, 124px); border-color: var(--ecx-gold); box-shadow: 0 0 30px rgba(242, 193, 75, .45); }
.ecx-podium__col--2 .ecx-podium__avatar { border-color: var(--ecx-silver); }
.ecx-podium__col--3 .ecx-podium__avatar { border-color: var(--ecx-bronze); }
.ecx-podium__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecx-podium__name { max-width: 100%; font: 700 clamp(15px, 2.6vw, 20px) var(--ecx-display); color: var(--ecx-text); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecx-podium__pts { font-size: clamp(13px, 2.2vw, 15px); color: var(--ecx-muted); }
.ecx-podium__block { width: 100%; margin-top: 6px; border-radius: 12px 12px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 14px; font: 700 clamp(28px, 6vw, 44px) var(--ecx-display); color: #121016; }
.ecx-podium__col--1 .ecx-podium__block { height: clamp(120px, 22vw, 170px); background: linear-gradient(180deg, #f6d27a, var(--ecx-gold)); }
.ecx-podium__col--2 .ecx-podium__block { height: clamp(90px, 16vw, 125px); background: linear-gradient(180deg, #e4eaef, var(--ecx-silver)); }
.ecx-podium__col--3 .ecx-podium__block { height: clamp(70px, 12vw, 95px); background: linear-gradient(180deg, #e8a777, var(--ecx-bronze)); }
.ecx-podium__skip { position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--ecx-border-2); background: rgba(18, 16, 22, .6); color: var(--ecx-muted); font: 600 15px var(--ecx-body); cursor: pointer; }
.ecx-podium__skip:hover { color: var(--ecx-text); border-color: var(--ecx-text); }

.ecx-podium.is-playing .ecx-podium__glow { animation: ecx-pod-fade .8s ease-out .2s forwards, ecx-pod-pulse 2s ease-in-out 1s infinite; }
.ecx-podium.is-playing .ecx-podium__kicker { animation: ecx-pod-up .45s ease-out .1s forwards; }
.ecx-podium.is-playing .ecx-podium__title { animation: ecx-pod-up .45s ease-out .2s forwards; }
.ecx-podium.is-playing .ecx-podium__col--3 { animation: ecx-pod-rise .6s cubic-bezier(.2, .9, .3, 1.15) .4s forwards; }
.ecx-podium.is-playing .ecx-podium__col--2 { animation: ecx-pod-rise .6s cubic-bezier(.2, .9, .3, 1.15) .65s forwards; }
.ecx-podium.is-playing .ecx-podium__col--1 { animation: ecx-pod-rise .7s cubic-bezier(.2, .9, .3, 1.15) .9s forwards; }
.ecx-podium.is-playing .ecx-podium__col--3 .ecx-podium__crown { animation: ecx-pod-crown .55s cubic-bezier(.3, 1.6, .5, 1) 1.5s forwards; }
.ecx-podium.is-playing .ecx-podium__col--2 .ecx-podium__crown { animation: ecx-pod-crown .55s cubic-bezier(.3, 1.6, .5, 1) 1.7s forwards; }
.ecx-podium.is-playing .ecx-podium__col--1 .ecx-podium__crown { animation: ecx-pod-crown .65s cubic-bezier(.3, 1.6, .5, 1) 1.95s forwards, ecx-pod-shine 1.4s ease-in-out 2.6s infinite; }

@keyframes ecx-pod-fade { to { opacity: 1; } }
@keyframes ecx-pod-pulse { 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes ecx-pod-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ecx-pod-rise { to { opacity: 1; transform: none; } }
@keyframes ecx-pod-crown { to { opacity: 1; transform: none; } }
@keyframes ecx-pod-shine { 50% { filter: drop-shadow(0 0 14px rgba(242, 193, 75, .9)); } }
@media (prefers-reduced-motion: reduce) { .ecx-podium { display: none !important; } }
@media (max-width: 760px) { .ecx-podium__title { margin-bottom: 18px; } .ecx-podium__skip { left: 16px; right: 16px; } }

/* =========================================================================
   Menú: desplegable de Noticias
   ========================================================================= */
.ecx-nav__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ecx-text); font: 500 16px var(--ecx-body); cursor: pointer; white-space: nowrap; }
.ecx-nav__btn:hover, .ecx-nav__btn[aria-expanded="true"] { background: var(--ecx-surface); }
.ecx-nav__btn.is-current { color: var(--ecx-accent); }
.ecx-nav__btn svg { transition: transform .2s ease; }
.ecx-nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ecx-dropdown { position: absolute; top: calc(100% - 4px); left: 0; z-index: 60; width: 330px; padding: 8px; border-radius: 12px; background: var(--ecx-surface-2); border: 1px solid var(--ecx-border-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 2px; }
.ecx-dropdown[hidden] { display: none; }
.ecx-dropdown a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--ecx-text); font-weight: 500; }
.ecx-dropdown a:hover, .ecx-dropdown a:focus-visible { background: var(--ecx-border); color: var(--ecx-text); }
.ecx-dropdown a[aria-current="page"] { color: var(--ecx-accent); font-weight: 700; }
.ecx-dropdown a:first-child { border-bottom: 1px solid var(--ecx-border); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.ecx-dropdown__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
@media (max-width: 1024px) {
	.ecx-dropdown { left: 12px !important; right: 12px; width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ecx-dropdown[hidden] { display: none; }
	.ecx-dropdown a:first-child { grid-column: 1 / -1; }
}

/* =========================================================================
   Página de noticias: selector de juego y noticias en grande
   ========================================================================= */
.ecx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ecx-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--ecx-surface); border: 1px solid var(--ecx-border); color: var(--ecx-text); font-weight: 600; font-size: 15px; }
.ecx-chip:hover { border-color: var(--ecx-border-2); color: var(--ecx-text); }
.ecx-chip[aria-current="page"] { background: var(--ecx-accent); border-color: var(--ecx-accent); color: #121016; }
.ecx-chip__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ecx-chip[aria-current="page"] .ecx-chip__dot { background: #121016 !important; }
@media (max-width: 760px) {
	.ecx-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.ecx-chips::-webkit-scrollbar { display: none; }
	.ecx-chip { flex: none; }
}

.ecx-grid--big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .ecx-grid--big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ecx-grid--big { grid-template-columns: minmax(0, 1fr); } }

.ecx-bignews { display: flex; flex-direction: column; border-radius: var(--ecx-radius); overflow: hidden; background: var(--ecx-surface); border: 1px solid var(--ecx-border); color: var(--ecx-text); min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.ecx-bignews:hover { color: var(--ecx-text); border-color: var(--ecx-border-2); transform: translateY(-2px); }
.ecx-bignews__media { display: block; aspect-ratio: 16 / 9; background: var(--ecx-surface-2); overflow: hidden; }
.ecx-bignews__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ecx-bignews:hover .ecx-bignews__media img { transform: scale(1.04); }
.ecx-bignews__empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 700 clamp(36px, 6vw, 64px) var(--ecx-display); letter-spacing: 2px; }
.ecx-bignews__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; min-width: 0; }
.ecx-bignews__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.ecx-bignews__source { font-weight: 700; color: var(--ecx-accent-2); }
.ecx-bignews__title { font: 700 19px/1.3 var(--ecx-display); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ecx-bignews__excerpt { font-size: 15px; color: var(--ecx-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ecx-bignews__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ecx-accent); }

/* La primera, destacada a lo ancho */
.ecx-bignews--feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.ecx-bignews--feature .ecx-bignews__media { aspect-ratio: auto; min-height: 320px; height: 100%; }
.ecx-bignews--feature .ecx-bignews__body { padding: 32px; justify-content: center; gap: 14px; }
.ecx-bignews--feature .ecx-bignews__title { font-size: clamp(24px, 3vw, 34px); -webkit-line-clamp: 4; }
.ecx-bignews--feature .ecx-bignews__excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.ecx-bignews--feature .ecx-bignews__more { margin-top: 8px; }
@media (max-width: 860px) {
	.ecx-bignews--feature { display: flex; }
	.ecx-bignews--feature .ecx-bignews__media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
	.ecx-bignews--feature .ecx-bignews__body { padding: 20px; }
}
.ecx-block > .ecx-oh { margin-top: 12px; }

/* Vídeos relacionados del canal (páginas de cada juego y tus noticias) */
.ecx-related { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 16px; background: linear-gradient(180deg, var(--ecx-surface), var(--ecx-bg)); border: 1px solid var(--ecx-border); }
.ecx-related .ecx-block__head > a { font-weight: 600; }
.ecx-related__title { font-size: clamp(22px, 3vw, 28px); }
.ecx-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ecx-related__sub { align-self: flex-start; }
@media (max-width: 1024px) { .ecx-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ecx-related { padding: 20px; } .ecx-related__sub { align-self: stretch; } }
.ecx-article .ecx-related { margin-top: 12px; }
.ecx-article .ecx-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Comentarios */
.ecx-comments { max-width: 780px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.ecx-comments__title { font-size: 24px; }
.ecx-comments__list, .ecx-comments__list .children { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ecx-comments__list .children { margin: 14px 0 0 24px; }
.ecx-comments .comment-body { padding: 16px; border-radius: 12px; background: var(--ecx-surface); border: 1px solid var(--ecx-border); }
.ecx-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ecx-comments .comment-author img { border-radius: 50%; }
.ecx-comments .comment-metadata, .ecx-comments .comment-metadata a { font-size: 13px; color: var(--ecx-muted); }
.ecx-comments .reply a { font-size: 14px; font-weight: 600; }
.ecx-comments .comment-respond { display: flex; flex-direction: column; gap: 12px; }
.ecx-comments .comment-respond label { display: block; margin-bottom: 6px; font-weight: 600; }
.ecx-comments .comment-respond p { margin: 0 0 12px; }
.ecx-comments .comment-reply-title { font: 700 22px var(--ecx-display); margin: 0; }

/* Vídeo del canal dentro de cada sección de noticias */
.ecx-secvideo { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px; border-radius: 10px; background: var(--ecx-surface-2); border: 1px solid var(--ecx-border-2); color: var(--ecx-text); }
.ecx-secvideo:hover { color: var(--ecx-text); border-color: var(--ecx-accent); }
.ecx-secvideo__thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ecx-border); }
.ecx-secvideo__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecx-secvideo__play { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 61, 139, .95); color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 2px; }
.ecx-secvideo__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ecx-secvideo__label { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ecx-accent); }
.ecx-secvideo__title { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ecx-related__count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 .45em; margin-left: .35em; border-radius: 999px; background: var(--ecx-accent); color: #fff; font-size: .55em; vertical-align: middle; }
.ecx-grid--related[hidden] { display: none; }
.ecx-related__more { align-self: center; }
.ecx-tab__n { display: inline-flex; min-width: 1.5em; justify-content: center; margin-left: 4px; padding: 0 .4em; border-radius: 999px; background: var(--ecx-border); font-size: .8em; }
.ecx-tab.is-active .ecx-tab__n { background: rgba(0,0,0,.28); color: inherit; }

/* ---------- Buscar jugadores (Once Human) ---------- */
.ecx-finder { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 16px; background: linear-gradient(180deg, var(--ecx-surface), var(--ecx-bg)); border: 1px solid var(--ecx-border); scroll-margin-top: 90px; }
.ecx-finder__head { display: flex; flex-direction: column; gap: 6px; }
.ecx-finder__head p { margin: 0; }
.ecx-finder__title { font-size: clamp(22px, 3vw, 28px); }
.ecx-finder__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ecx-finder__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ecx-finder__step { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ecx-muted); }
.ecx-finder select { appearance: none; width: 100%; min-height: 48px; padding: 12px 44px 12px 14px; border-radius: 10px; border: 1px solid var(--ecx-border-2); background: var(--ecx-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a1b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ecx-text); font: 500 16px var(--ecx-body); cursor: pointer; }
.ecx-finder select:hover:not(:disabled) { border-color: var(--ecx-accent); }
.ecx-finder select:focus-visible { outline: 2px solid var(--ecx-accent); outline-offset: 2px; }
.ecx-finder select:disabled { opacity: .55; cursor: not-allowed; }
.ecx-finder select option { background: var(--ecx-surface); color: var(--ecx-text); }
.ecx-finder__result { min-height: 120px; border-radius: 12px; border: 1px dashed var(--ecx-border-2); padding: 20px; }
.ecx-finder__result.is-filled { border-style: solid; border-color: var(--ecx-border); background: var(--ecx-surface); }
.ecx-finder__empty { margin: 0; color: var(--ecx-muted); text-align: center; padding: 26px 0; }
.ecx-finder__where { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ecx-muted); margin: 0 0 12px; }
.ecx-finder__best { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: 12px; background: #2a1622; border: 1px solid #5a2a44; }
.ecx-finder__best-label { display: block; font-size: 13px; color: var(--ecx-accent-hover); font-weight: 600; margin-bottom: 4px; }
.ecx-finder__best-name { font-family: var(--ecx-display); font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; overflow-wrap: anywhere; }
.ecx-finder__copy { background: transparent; border: 1px solid var(--ecx-border-2); color: var(--ecx-text); font-weight: 600; }
.ecx-finder__copy:hover { border-color: var(--ecx-accent); }
.ecx-finder__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.ecx-finder__list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--ecx-bg); min-width: 0; }
.ecx-finder__pos { flex: none; width: 26px; text-align: center; font-weight: 700; color: var(--ecx-muted); }
.ecx-finder__srv { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.ecx-finder__n { margin-left: auto; color: var(--ecx-muted); font-size: 13px; flex: none; }
.ecx-finder__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ecx-finder__chips span { padding: 6px 12px; border-radius: 999px; background: var(--ecx-bg); border: 1px solid var(--ecx-border-2); font-weight: 600; font-size: 14px; }
.ecx-finder__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.ecx-finder__foot p { margin: 0; flex: 1 1 320px; }
@media (max-width: 760px) {
	.ecx-finder { padding: 20px; }
	.ecx-finder__controls, .ecx-finder__list { grid-template-columns: 1fr; }
	.ecx-finder__best .ecx-btn, .ecx-finder__foot .ecx-btn { width: 100%; }
}

/* ---------- Casas de la comunidad ---------- */
.ecx-casas-bar { display: flex; flex-direction: column; gap: 14px; }
.ecx-casas-sort { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.ecx-seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: 12px; background: var(--ecx-surface); border: 1px solid var(--ecx-border); }
.ecx-seg a { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--ecx-muted); font-weight: 600; font-size: 14px; }
.ecx-seg a:hover { color: var(--ecx-text); }
.ecx-seg a[aria-current="true"] { background: var(--ecx-bg); color: var(--ecx-text); box-shadow: inset 0 0 0 1px var(--ecx-border-2); }
.ecx-casas { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.ecx-casa { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--ecx-surface); border: 1px solid var(--ecx-border); color: var(--ecx-text); min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.ecx-casa:hover { color: var(--ecx-text); border-color: var(--ecx-border-2); transform: translateY(-2px); }
.ecx-casa__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ecx-bg); overflow: hidden; }
.ecx-casa__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ecx-casa:hover .ecx-casa__media img { transform: scale(1.04); }
.ecx-casa__count { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(18, 16, 22, .82); font-size: 13px; font-weight: 600; }
.ecx-casa__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.ecx-casa__title { font-weight: 700; font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ecx-casa__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.ecx-casa__author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ecx-muted); overflow-wrap: anywhere; }
.ecx-casa__author img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.ecx-casa__likes { flex: none; font-weight: 600; }
.ecx-casa__origin { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--ecx-bg); border: 1px solid var(--ecx-border-2); color: var(--ecx-muted); }
.ecx-casas-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--ecx-border-2); border-radius: 14px; }
.ecx-casas-empty p { margin: 0 0 6px; }
.ecx-casas-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 22px; border-radius: 14px; background: var(--ecx-surface); border: 1px solid var(--ecx-border); }
.ecx-casas-cta > div { flex: 1 1 340px; }
.ecx-casas-cta p { margin: 4px 0 0; }
.ecx-pager { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.ecx-casa-page { gap: 24px; }
.ecx-back { font-weight: 600; font-size: 14px; }
.ecx-casa-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ecx-casa-page__meta .ecx-casa__author { color: var(--ecx-text); }
.ecx-casa-page__meta .ecx-casa__author img { width: 32px; height: 32px; }
.ecx-casa-page__meta .ecx-casa__origin { align-self: center; }
.ecx-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ecx-gallery__item { display: block; border-radius: 10px; overflow: hidden; background: var(--ecx-surface); aspect-ratio: 4 / 3; cursor: zoom-in; }
.ecx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
.ecx-gallery__item:hover img { opacity: .88; }
.ecx-gallery__item--main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ecx-gallery--one .ecx-gallery__item--main { aspect-ratio: auto; max-height: 78vh; }
.ecx-gallery--one .ecx-gallery__item--main img { object-fit: contain; }
.ecx-casa-page__body { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.ecx-prose { line-height: 1.7; overflow-wrap: anywhere; }
.ecx-prose p { margin: 0 0 12px; }
.ecx-casa-page__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ecx-casa-page__body .ecx-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.ecx-casas--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ecx-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 7, 10, .94); }
.ecx-lightbox[open] { display: grid; place-items: center; }
.ecx-lightbox::backdrop { background: rgba(8, 7, 10, .94); }
.ecx-lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); object-fit: contain; border-radius: 8px; }
.ecx-lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(27, 24, 34, .8); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.ecx-lightbox button:hover { border-color: var(--ecx-accent); }
.ecx-lightbox button:focus-visible { outline: 2px solid var(--ecx-accent); outline-offset: 2px; }
.ecx-lightbox__close { top: 16px; right: 16px; font-size: 20px !important; }
.ecx-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ecx-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.ecx-lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; }

@media (max-width: 760px) {
	.ecx-casas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ecx-casas--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ecx-casa__body { padding: 10px 12px 12px; gap: 8px; }
	.ecx-casa__title { font-size: 15px; }
	.ecx-casa__meta { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
	.ecx-casa__count { right: 6px; top: 6px; font-size: 12px; }
	.ecx-seg { width: 100%; }
	.ecx-seg a { flex: 1 1 auto; justify-content: center; padding: 8px 10px; }
	.ecx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ecx-casas-cta .ecx-btn, .ecx-casa-page__actions .ecx-btn { width: 100%; justify-content: center; }
	.ecx-lightbox__nav { top: auto !important; bottom: 12px; transform: none !important; }
	.ecx-lightbox__count { bottom: 26px; }
}
@media (max-width: 380px) {
	.ecx-casas, .ecx-casas--three { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ecx-casa, .ecx-casa__media img { transition: none; }
}
.ecx-dropdown a.ecx-dropdown__sub { margin-left: 22px; min-height: 40px; font-size: 14px; color: var(--ecx-muted); border-left: 2px solid var(--ecx-border-2); border-radius: 0 8px 8px 0; gap: 8px; }
.ecx-dropdown a.ecx-dropdown__sub:hover { color: var(--ecx-text); }
.ecx-dropdown a.ecx-dropdown__sub[aria-current="page"] { color: var(--ecx-accent); }
.ecx-casas--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ecx-back a { font-weight: 600; }
.ecx-back { color: var(--ecx-muted); }
.ecx-kicker a { color: inherit; }
@media (max-width: 1100px) { .ecx-casas--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ecx-dropdown a.ecx-dropdown__sub { margin-left: 0; } }
@media (max-width: 380px) { .ecx-casas--four { grid-template-columns: 1fr; } }
.ecx-dropdown a.ecx-dropdown__sub img { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.ecx-dropdown__ext { margin-left: auto; flex: none; opacity: .7; }
@media (max-width: 760px) {
	/* En el móvil, una sola columna: así «Casas» y el Discord quedan justo debajo de Once Human. */
	.ecx-dropdown { grid-template-columns: 1fr; gap: 0; max-height: calc(100vh - 140px); overflow-y: auto; }
	.ecx-dropdown a { min-height: 42px; padding: 8px 12px; }
	.ecx-dropdown a.ecx-dropdown__sub { margin-left: 22px; min-height: 38px; }
}
