/* HubReviews — sistema de diseño del sitio público.
   Los colores --brand y --accent llegan de cada tenant (ver base.html.twig). */

:root {
  --bg: #07080c;
  --bg-2: #0d0f15;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-solid: #12151d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f6f8;
  --muted: #a3a9b6;
  --dim: #6c7280;
  --good: #21d07a;
  --mid: #f2c94c;
  --bad: #ef4f5f;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { padding-top: calc(var(--header-h) + 24px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 8, 12, .85), rgba(7, 8, 12, 0));
}
.site-header.is-solid, body:not(.has-hero) .site-header {
  background: rgba(9, 10, 15, .78); backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; white-space: nowrap; }
.brand img { height: 34px; width: auto; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent)));
  box-shadow: 0 6px 20px -6px var(--brand);
}
.brand-mark svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .93rem;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-search { margin-left: auto; position: relative; }
.header-search input {
  width: 240px; height: 40px; padding: 0 16px 0 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); color: var(--text);
  font: inherit; font-size: .9rem; transition: width .3s var(--ease), background .2s, border-color .2s;
}
.header-search input::placeholder { color: var(--dim); }
.header-search input:focus { outline: none; width: 320px; background: rgba(255, 255, 255, .1); border-color: var(--brand); }
.header-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; stroke: var(--muted); pointer-events: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px var(--brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, #fff); box-shadow: 0 16px 36px -12px var(--brand); }
.btn-light { background: #fff; color: #0b0c10; }
.btn-light:hover { background: #e9eaee; }
.btn-glass { background: rgba(255, 255, 255, .12); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn-icon { width: 48px; padding: 0; }

/* ---------- Chips / meta ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.meta > * + *::before { content: "•"; margin-right: 14px; color: var(--dim); }
.meta .pill { border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; font-size: .78rem; font-weight: 700; color: var(--text); }
.meta .pill::before, .meta .no-dot::before { content: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .86rem; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip.is-active { background: var(--text); color: #0b0c10; border-color: var(--text); }
.badge-type { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Puntuación (anillo) ---------- */
.score {
  --v: 0; --c: var(--bad);
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .12) 0);
  position: relative; font-weight: 800; font-size: .82rem;
}
.score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0c0e13; }
.score span { position: relative; }
.score.is-good { --c: var(--good); }
.score.is-mid { --c: var(--mid); }
.score-lg { width: 64px; height: 64px; font-size: 1.1rem; }
.score-lg::before { inset: 5px; }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; height: min(92vh, 860px); min-height: 560px; overflow: hidden; isolation: isolate; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.06); transition: transform 9s linear; }
.hero-slide.is-active .hero-bg img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, .95) 0%, rgba(7, 8, 12, .7) 35%, rgba(7, 8, 12, .1) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 12, 0) 40%);
}
.hero-content { position: absolute; inset: auto 0 clamp(90px, 14vh, 150px) 0; }
.hero-content .inner { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 800;
  margin: 14px 0 16px; text-wrap: balance;
}
.hero p { color: #d3d6dd; font-size: clamp(.98rem, 1.2vw, 1.1rem); margin: 18px 0 28px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; bottom: 42px; right: var(--gutter); display: flex; gap: 8px; }
.hero-dot { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.hero-dot.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dot 8s linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Filas / carruseles ---------- */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -.025em; font-weight: 800; }
.section-head a { color: var(--muted); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.section-head a:hover { color: var(--text); }
.hero + .rows .section:first-child { margin-top: -60px; position: relative; z-index: 4; }

.row { position: relative; }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 200px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 6px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.row-btn {
  position: absolute; top: calc(50% - 30px); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(15, 17, 23, .88); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s, transform .2s; box-shadow: var(--shadow);
}
.row-btn svg { width: 20px; height: 20px; stroke: #fff; }
.row-btn.prev { left: -10px; } .row-btn.next { right: -10px; }
.row:hover .row-btn:not([disabled]) { opacity: 1; }
.row-btn:hover { transform: scale(1.08); }
.row-btn[disabled] { opacity: 0 !important; pointer-events: none; }

/* ---------- Tarjeta póster ---------- */
.card { position: relative; display: block; }
.card-poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #171a22, #0f1117); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-poster::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 45%); opacity: 0; transition: opacity .3s;
}
.card:hover .card-poster { transform: translateY(-6px); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2); }
.card:hover .card-poster img { transform: scale(1.05); }
.card:hover .card-poster::after { opacity: 1; }
.card .score { position: absolute; left: 10px; bottom: 10px; z-index: 2; width: 38px; height: 38px; font-size: .74rem; }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--dim); font-weight: 700; }
.card-play {
  position: absolute; inset: 0; margin: auto; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); opacity: 0; transform: scale(.8);
  transition: opacity .25s, transform .25s var(--ease);
}
.card-play svg { width: 18px; height: 18px; fill: #0b0c10; margin-left: 3px; }
.card:hover .card-play { opacity: 1; transform: scale(1); }
.card-title { margin: 10px 2px 0; font-weight: 700; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { margin: 2px 2px 0; color: var(--dim); font-size: .8rem; font-weight: 500; }

/* ---------- Ficha de título ---------- */
.title-page { position: relative; padding-top: calc(var(--header-h) + 20px); isolation: isolate; }
.ambient {
  position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; overflow: hidden; pointer-events: none;
}
.ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.5); opacity: .45; transform: scale(1.2); }
.ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 12, .3), var(--bg) 85%); }

.theater { max-width: 1180px; margin: 0 auto; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-facade { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.player-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.player-facade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0, 0, 0, .1), rgba(0, 0, 0, .6)); }
.player-facade:hover img { transform: scale(1.03); filter: brightness(1.08); }
.player-btn {
  position: absolute; inset: 0; margin: auto; z-index: 2; width: clamp(68px, 9vw, 96px); height: clamp(68px, 9vw, 96px);
  border-radius: 50%; display: grid; place-items: center; background: var(--brand);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 30%, transparent), 0 20px 50px -10px var(--brand);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.player-btn svg { width: 34%; height: 34%; fill: #fff; margin-left: 6%; }
.player-facade:hover .player-btn { transform: scale(1.08); box-shadow: 0 0 0 16px color-mix(in srgb, var(--brand) 25%, transparent), 0 20px 50px -10px var(--brand); }
.player-label { position: absolute; z-index: 2; left: 24px; bottom: 20px; font-weight: 700; font-size: .95rem; display: flex; gap: 10px; align-items: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }
.video-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 0; padding-bottom: 4px; }
.video-tabs .chip { cursor: pointer; }

.title-main { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: clamp(24px, 3vw, 48px); margin-top: 40px; align-items: start; }
.title-main.no-aside { grid-template-columns: 260px minmax(0, 1fr); }
.title-poster { position: sticky; top: calc(var(--header-h) + 20px); }
.title-poster .card-poster { box-shadow: var(--shadow); }
.title-poster .card-poster:hover { transform: none; }
.title-info h1 { margin: 10px 0 6px; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.title-info .original { color: var(--dim); font-weight: 500; margin: 0 0 14px; }
.tagline { font-style: italic; color: var(--muted); margin: 22px 0 6px; font-size: 1.02rem; }
.overview { color: #d4d7de; font-size: 1.02rem; line-height: 1.75; max-width: 75ch; }
.scores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.score-card { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.score-card strong { display: block; font-size: .95rem; }
.score-card small { color: var(--dim); font-size: .8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 24px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--dim); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.title-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }

.providers { display: grid; gap: 14px; }
.providers h3, .block-title { margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.provider-group small { display: block; color: var(--dim); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.provider-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-logos img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }

.cast-track { grid-auto-columns: 128px; }
.person { text-align: center; }
.person-photo { width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person strong { display: block; margin-top: 10px; font-size: .86rem; line-height: 1.3; }
.person small { color: var(--dim); font-size: .78rem; line-height: 1.3; display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

/* ---------- Catálogo ---------- */
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.04em; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.filters { position: sticky; top: var(--header-h); z-index: 20; margin: 24px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter); background: rgba(7, 8, 12, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filters-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; padding-bottom: 2px; }
.select { height: 38px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a3a9b6' stroke-width='2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; appearance: none; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.segmented a { padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.segmented a.is-active { background: var(--surface-2); color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 28px 18px; margin-top: 28px; }
.grid > .ad { grid-column: 1 / -1; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 48px 0 0; color: var(--muted); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 80px 20px; }
.empty strong { display: block; color: var(--text); font-size: 1.2rem; margin-bottom: 6px; }

.search-hero input {
  width: 100%; height: 64px; padding: 0 24px; border-radius: 20px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1.2rem; font-weight: 600;
}
.search-hero input:focus { outline: none; border-color: var(--brand); background: var(--surface-2); }

/* ---------- Anuncios ---------- */
.ad { display: flex; justify-content: center; align-items: center; margin: 28px auto; max-width: 100%; overflow: hidden; }
.ad:empty { display: none; }
.language-switch { flex-shrink:0; margin-left:auto; }
.language-switch select { max-width:165px; padding:8px; color:var(--text); background:var(--surface-solid); border:1px solid var(--line); border-radius:8px; font:inherit; font-size:.75rem; }
@media(min-width:900px) and (max-width:1400px) { .site-header .wrap{gap:14px}.nav a{padding:8px}.header-search input,.header-search input:focus{width:175px}.language-switch select{max-width:120px} }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); margin-bottom:24px; font-size:.85rem; }
.breadcrumbs a:hover,.facts a:hover { color:var(--brand); }
.profile-layout { display:grid; grid-template-columns:240px 1fr; gap:40px; }
.profile-portrait { width:100%; border-radius:var(--radius-lg); }
.portrait-gallery { display:flex; gap:12px; overflow-x:auto; padding:16px 0; }
.portrait-gallery img { width:140px; height:210px; object-fit:cover; border-radius:12px; }
.season-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.season-card { display:flex; gap:16px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px; }
.season-card img { width:95px; height:142px; object-fit:cover; border-radius:8px; }
.season-card h3 { font-size:1rem; margin:0 0 8px; }
.season-card p { font-size:.8rem; color:var(--muted); margin-top:8px; }
.season-card small { color:var(--muted); }
.season-heading { display:flex; gap:28px; align-items:flex-start; }
.season-poster { width:160px; border-radius:12px; }
.episode-list { display:grid; gap:20px; }
.episode-card { display:grid; grid-template-columns:260px 1fr; gap:24px; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.episode-card:hover,.season-card:hover { border-color:var(--brand); }
.episode-card h3 { margin:8px 0; font-size:1.1rem; }
.episode-card p { color:var(--muted); font-size:.9rem; }
.episode-card small { color:var(--dim); }
.episode-image { aspect-ratio:16/9; background:var(--surface-solid); border-radius:10px; overflow:hidden; display:grid; place-items:center; }
.episode-image img { width:100%;height:100%;object-fit:cover; }
.episode-cover { width:100%; max-height:65vh; object-fit:contain; border-radius:16px; }
.episode-navigation { display:flex; flex-wrap:wrap; gap:12px; margin:28px 0; }
.person { text-decoration:none; }
@media(max-width:700px) { .profile-layout{grid-template-columns:1fr;gap:24px}.profile-portrait{max-width:200px}.episode-card{grid-template-columns:1fr;gap:12px}.season-poster{width:95px}.season-heading{gap:16px}.language-switch select{max-width:100px} }
.ad--sticky_footer { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0; background: rgba(7, 8, 12, .92); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.ad--title_sidebar { margin: 0; }
@media (max-width: 899px) { .ad--dev-desktop { display: none !important; } }
@media (min-width: 900px) { .ad--dev-mobile, .ad--sticky_footer.ad--dev-all { display: none !important; } }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3, 4, 6, .86); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { width: min(1180px, 100%); position: relative; transform: scale(.96); transition: transform .35s var(--ease); }
.modal.is-open .modal-box { transform: none; }
.modal-close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; stroke: #fff; }
.gate-box { width: min(560px, 100%); background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.gate-ad { min-height: 120px; display: grid; place-items: center; margin: 0 0 20px; }
.gate-box .btn { width: 100%; }
.gate-box .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Pie y navegación móvil ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--dim); font-size: .86rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.attribution { display: flex; gap: 12px; align-items: center; max-width: 720px; line-height: 1.5; }
.attribution img { height: 14px; width: auto; opacity: .8; }

.tabbar { display: none; }
@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .nav, .header-search { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 55; inset: auto 0 0 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(9, 10, 15, .9);
    backdrop-filter: blur(18px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--dim); padding: 4px 0; }
  .tabbar a[aria-current="page"] { color: var(--text); }
  .tabbar svg { width: 22px; height: 22px; stroke: currentColor; }
  body { padding-bottom: 72px; }
  .ad--sticky_footer { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .hero { height: 78vh; min-height: 520px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(7, 8, 12, .55) 55%, rgba(7, 8, 12, .2)); }
  .hero-dots { left: var(--gutter); right: auto; bottom: 28px; }
  .hero-content { bottom: 64px; }
  .row-btn { display: none; }
  .title-main, .title-main.no-aside { grid-template-columns: 1fr; margin-top: 28px; }
  .title-poster { position: static; display: none; }
  .title-aside { position: static; }
  .player { border-radius: var(--radius); margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .title-main { grid-template-columns: 220px minmax(0, 1fr); }
  .title-aside { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

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