/* SubXXX — hoja propia de la web filial. No comparte nada con styles.css a
   propósito: otra paleta, otra rejilla y otros nombres de clase. */

:root {
  color-scheme: dark;
  --bg: #0c0c10;
  --surface: #15151c;
  --surface-2: #1d1d26;
  --line: #2a2a35;
  --text: #f1f1f4;
  --muted: #9b9bab;
  --accent: #e8132d;
  --accent-2: #ff5468;
  --radius: 10px;
  --gutter: clamp(16px, 3vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: "Outfit", "Inter", sans-serif; letter-spacing: -0.01em; }

/* Cabecera */
.sx-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sx-top__row {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}
.sx-logo { flex: none; display: block; line-height: 0; }
.sx-logo img { width: auto; height: 56px; }
.sx-find {
  flex: 1;
  display: flex;
  max-width: 560px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.sx-find:focus-within { border-color: var(--accent); }
.sx-find input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}
.sx-find button {
  flex: none;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.sx-find button:hover { color: var(--accent); }

.sx-nav {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter) 10px;
  display: flex;
  gap: 6px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.sx-nav::-webkit-scrollbar { display: none; }
.sx-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.sx-nav a:hover { color: var(--accent); }

/* Contenido */
.sx-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px var(--gutter) 40px;
}
.sx-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 14px;
}
.sx-bar h1,
.sx-bar h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
.sx-bar small { margin-left: 8px; color: var(--muted); font: 500 14px "Inter", sans-serif; }
.sx-sort { display: flex; gap: 6px; }
.sx-sort a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.sx-sort a[aria-current] { background: var(--accent); color: #fff; }
.sx-empty { padding: 60px 0; color: var(--muted); text-align: center; }
.sx-empty a { color: var(--accent); }

/* Rejilla */
.sx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px 16px;
}
.sx-grid__break { grid-column: 1 / -1; }
.sx-tile { min-width: 0; }
.sx-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.sx-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.sx-tile__media:hover img { transform: scale(1.05); }
.sx-tile__blank {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--line);
  font: 800 24px "Outfit", sans-serif;
}
.sx-tile__cc {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sx-tile__text h3 {
  margin: 9px 0 3px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sx-tile__text p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Paginación */
.sx-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 34px 0 10px;
}
.sx-pager a,
.sx-pager span {
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  font-weight: 600;
}
.sx-pager .sx-pager__now { background: var(--accent); color: #fff; }
.sx-pager .sx-pager__gap { background: none; color: var(--muted); }

/* Ficha */
.sx-watch { max-width: 1100px; margin: 0 auto; }
.sx-stage__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.sx-stage__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sx-stage__note {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.sx-servers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.sx-servers button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 600 13px "Inter", sans-serif;
  cursor: pointer;
}
.sx-servers button[aria-selected="true"] { border-color: var(--accent); color: var(--accent); }
.sx-watch__head h1 { margin: 18px 0 6px; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; }
.sx-watch__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sx-watch__desc { color: #c9c9d3; white-space: pre-line; }
.sx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.sx-chips a {
  display: block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}
.sx-chips a:hover { background: var(--accent); color: #fff; }

/* Anuncios */
.sx-ad {
  --sx-ad-scale: 1;
  width: 100%;
  height: calc(90px * var(--sx-ad-scale));
  margin: 16px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.sx-ad__fit {
  flex: none;
  width: 728px;
  height: 90px;
  transform: scale(var(--sx-ad-scale));
  transform-origin: top center;
}
.exo-banner {
  width: 100%;
  margin: 16px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.exo-banner-inner { flex: none; transform-origin: top left; }

.sx-tile__text p a:hover { color: var(--accent-2); }

/* Directorios (actrices, productoras, categorías) */
.sx-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sx-directory a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
}
.sx-directory a:hover { background: var(--surface-2); color: var(--text); }
.sx-directory img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.sx-directory__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.sx-directory__count { flex: none; color: var(--muted); font-size: 12px; }

/* Ficha de actriz / productora / categoría */
.sx-crumbs { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.sx-crumbs a:hover { color: var(--accent); }
.sx-entity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 14px 0 18px;
}
.sx-entity > div { flex: 1; min-width: 220px; }
.sx-entity h1 { margin: 0; font-size: clamp(22px, 3vw, 32px); }
.sx-entity h1 small { display: block; color: var(--muted); font: 500 15px "Inter", sans-serif; }
.sx-entity p { margin: 6px 0 0; color: #c9c9d3; }
.sx-entity__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* Legal y pie */
.sx-legal { max-width: 760px; margin: 0 auto; color: #d4d4dc; }
.sx-legal h2 { margin-top: 28px; font-size: 19px; color: var(--text); }
.sx-foot {
  padding: 26px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.sx-foot p { margin: 4px 0; }
.sx-foot a { color: var(--accent-2); }

@media (max-width: 640px) {
  .sx-top__row { gap: 12px; }
  .sx-logo img { height: 40px; }
  .sx-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 10px; }
  .sx-tile__text h3 { font-size: 14px; }
}
