/* ============================================================
   Pingüino Senpai — sistema de diseño (propuesta v1)
   Paleta "Medianoche ártica + Sakura". Cambia solo los tokens.
   ============================================================ */
:root {
  --bg: #080d1b;
  --bg-2: #0d1426;
  --surface: #111a31;
  --surface-2: #18233f;
  --line: rgba(160, 185, 255, .14);
  --line-strong: rgba(160, 185, 255, .28);
  --ice: #eaf2ff;
  --muted: #8fa2c7;
  --dim: #7487b0;
  --sakura: #ff5c93;
  --sakura-2: #ff8fb5;
  --aurora: #4fd6e8;
  --violet: #9b7bff;
  --gold: #f6c85f;
  --ok: #5ee6a8;
  --danger: #ff6b6b;
  --on-accent: #220a16;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .75);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --topbar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 92, 147, .10), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(79, 214, 232, .08), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sakura); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
main { padding-bottom: 80px; outline: none; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.section-head .sub { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.link-more { color: var(--sakura-2); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.link-more:hover { color: var(--ice); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--aurora); font-weight: 700; }

/* ---------- barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); background: rgba(8, 13, 27, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-name b { color: var(--sakura); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ice); background: rgba(160, 185, 255, .08); }
.nav a.on { color: var(--ice); background: rgba(255, 92, 147, .16); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: .95rem; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-primary { background: linear-gradient(135deg, var(--sakura), #ff7aa6); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(255, 92, 147, .7); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(255, 92, 147, .9); transform: translateY(-1px); }
.btn-ghost { background: rgba(160, 185, 255, .06); border-color: var(--line-strong); color: var(--ice); }
.btn-ghost:hover { background: rgba(160, 185, 255, .14); }
.btn-danger { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .4); color: #ffb3b3; }
.btn.on { background: rgba(255, 92, 147, .18); border-color: var(--sakura); color: var(--sakura-2); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(160, 185, 255, .07); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; transition: all .15s; }
button.chip:hover, a.chip:hover { color: var(--ice); border-color: var(--line-strong); }
.chip.on { background: rgba(255, 92, 147, .18); border-color: var(--sakura); color: var(--sakura-2); }
.chip.static { cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: 28px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; min-height: 460px; display: grid; align-items: end; background: var(--surface); }
.hero-bg { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0; transform: rotate(-4deg) scale(1.25); opacity: .55; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 13, 27, .35) 0%, rgba(8, 13, 27, .88) 62%, var(--bg) 100%), linear-gradient(90deg, rgba(8, 13, 27, .85), transparent 70%); }
.hero-in { position: relative; z-index: 1; padding: clamp(24px, 5vw, 56px); max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; margin: 12px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--sakura), var(--violet) 40%, var(--aurora) 70%, var(--sakura)); background-size: 220% 100%; animation: shimmer 7s linear infinite; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shimmer { to { background-position: -220% 0; } }
.hero p.lead { color: #c4d1ee; font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-search { margin-top: 22px; display: flex; gap: 10px; max-width: 520px; }

.field, .select { width: 100%; background: rgba(8, 13, 27, .7); border: 1px solid var(--line-strong); color: var(--ice); border-radius: 999px; padding: 12px 18px; font: inherit; font-size: .95rem; }
.field::placeholder { color: var(--dim); }
.field:focus, .select:focus, textarea.field:focus { outline: none; border-color: var(--aurora); box-shadow: 0 0 0 3px rgba(79, 214, 232, .18); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238fa2c7' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
textarea.field { border-radius: var(--radius-sm); resize: vertical; min-height: 220px; line-height: 1.6; }
label.lbl { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 6px 4px; letter-spacing: .02em; }

/* ---------- tarjetas ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > * { scroll-snap-align: start; }
.rail.wide { grid-auto-columns: 300px; }

.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { --ty: -4px; border-color: var(--line-strong); box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 62%); transition: opacity .3s; }
.card:hover::after { opacity: 1; }
.card-link { display: block; }
.poster { position: relative; aspect-ratio: 2 / 3; background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); overflow: hidden; }
.poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .poster img { transform: scale(1.05); }
.poster.sq { aspect-ratio: 3 / 4; }
.poster .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; color: var(--dim); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(8, 13, 27, .78); backdrop-filter: blur(6px); border: 1px solid var(--line-strong); }
.badge.score { left: auto; right: 10px; color: var(--gold); }
.badge.live { background: rgba(94, 230, 168, .16); border-color: rgba(94, 230, 168, .5); color: var(--ok); }
.card-body { padding: 12px 14px 14px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.card-meta { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.heart { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(8, 13, 27, .78); backdrop-filter: blur(6px); transition: transform .15s, background .2s; z-index: 2; }
.card .heart { top: 8px; right: 8px; bottom: auto; }
.card .badge.score { right: auto; left: 10px; top: auto; bottom: 10px; }
.heart:hover { transform: scale(1.1); }
.heart svg { width: 18px; height: 18px; fill: none; stroke: var(--ice); stroke-width: 2; }
.heart.on { background: var(--sakura); border-color: var(--sakura); }
.heart.on svg { fill: var(--on-accent); stroke: var(--on-accent); }
.card.char .card-body { text-align: left; }
.card.char { cursor: pointer; }
.card.char:focus-visible { outline: 2px solid var(--aurora); }

/* ---------- hero de detalle ---------- */
.detail-hero { position: relative; margin-top: 0; min-height: 320px; background: var(--surface); overflow: hidden; isolation: isolate; }
.detail-hero .banner { position: absolute; left: 0; top: -30%; z-index: -2; width: 100%; height: 160%; object-fit: cover; opacity: .5; filter: saturate(1.1); will-change: transform; }
.detail-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 13, 27, .2), var(--bg) 96%); }
.detail-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin-top: -150px; position: relative; }
.detail-poster { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); aspect-ratio: 2 / 3; background: var(--surface); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding-top: 120px; }
.detail-info h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.native { color: var(--muted); margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 22px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.fact small { display: block; color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.fact b { font-family: var(--font-display); font-size: 1.15rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-size: 1.15rem; margin-bottom: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.tracker { display: grid; gap: 18px; }
.ep-row2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.stepper button { background: transparent; border: 0; width: 40px; height: 40px; font-size: 1.2rem; font-weight: 700; }
.stepper button:hover { background: rgba(160, 185, 255, .12); }
.stepper output { min-width: 78px; text-align: center; font-weight: 700; }
.bar { height: 8px; background: rgba(160, 185, 255, .12); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--sakura), var(--violet)); border-radius: 99px; transition: width .3s; }
.stars { display: flex; flex-wrap: wrap; gap: 6px; }
.stars button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; font-weight: 700; transition: all .15s; }
.stars button:hover { border-color: var(--gold); }
.stars button.on { background: var(--gold); border-color: var(--gold); color: #2a1d00; }
.trailer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.trailer iframe, .trailer button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer button { background: center/cover no-repeat; display: grid; place-items: center; border: 0; }
.trailer button span { width: 72px; height: 72px; border-radius: 50%; background: var(--sakura); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 92, 147, .25); }
.trailer button svg { width: 28px; fill: var(--on-accent); margin-left: 4px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }

/* ---------- filtros ---------- */
.toolbar { display: grid; gap: 12px; grid-template-columns: 2fr repeat(5, 1fr); margin: 18px 0 8px; }
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.tabs button.on { background: rgba(255, 92, 147, .2); color: var(--ice); }
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.page-head p { color: var(--muted); max-width: 62ch; margin-top: 10px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty b { display: block; color: var(--ice); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }
.empty .btn { display: flex; width: fit-content; margin: 18px auto 0; }
.toprow a { display: block; }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(4, 7, 16, .78); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: min(720px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: 260px 1fr; animation: rise .25s; }
.modal-img { background: var(--bg-2); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-body { padding: 26px; position: relative; }
.modal-body h3 { font-size: 1.7rem; font-weight: 800; padding-right: 30px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; font-size: 1.1rem; }
.modal-actions { display: grid; gap: 10px; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- mi espacio ---------- */
.profile-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, rgba(255, 92, 147, .14), rgba(79, 214, 232, .08)), var(--surface); border: 1px solid var(--line-strong); margin-top: 28px; }
.avatar { width: 92px; height: 92px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--sakura); display: grid; place-items: center; padding: 10px; }
.level { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; background: rgba(246, 200, 95, .14); color: var(--gold); border: 1px solid rgba(246, 200, 95, .4); }
.profile-card h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 8px; }
.xp { margin-top: 12px; max-width: 360px; }
.xp small { color: var(--muted); font-size: .78rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.stat small { color: var(--muted); font-size: .8rem; }
.toplist { display: grid; gap: 10px; counter-reset: rank; }
.toprow { display: grid; grid-template-columns: 34px 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toprow .n { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-align: center; color: var(--dim); }
.toprow img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--bg-2); }
.toprow b { font-family: var(--font-display); display: block; }
.toprow small { color: var(--muted); }
.row-actions { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; font-size: .9rem; }
.icon-btn:hover { background: rgba(160, 185, 255, .12); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.list-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.list-item img { width: 64px; height: 88px; object-fit: cover; border-radius: 8px; }
.list-item .bar { margin: 8px 0 4px; }

/* ---------- blog ---------- */
.posts { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-cover { aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--sakura), var(--violet) 55%, var(--aurora)); position: relative; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px; display: grid; gap: 10px; }
.post-card h3 { font-size: 1.25rem; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag-spoiler { color: var(--gold); font-weight: 700; }
.article { width: min(760px, 100% - 32px); margin: 0 auto; }
.article-cover { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7; margin-top: 28px; background: linear-gradient(135deg, var(--sakura), var(--violet) 55%, var(--aurora)); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 26px 0 12px; }
.prose { font-size: 1.08rem; line-height: 1.75; color: #d6e0f5; margin-top: 28px; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 .5em; color: var(--ice); }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; color: var(--ice); }
.prose p { margin: 0 0 1.1em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sakura); color: var(--sakura-2); font-family: var(--font-display); font-size: 1.25rem; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose strong { color: var(--ice); }
.spoiler { background: rgba(160, 185, 255, .22); color: transparent; border-radius: 4px; cursor: pointer; filter: blur(5px); transition: filter .25s; user-select: none; padding: 0 3px; }
.spoiler.shown { filter: none; color: inherit; background: rgba(255, 92, 147, .18); user-select: auto; }
.gate { text-align: center; padding: 22px; border: 1px solid rgba(246, 200, 95, .4); background: rgba(246, 200, 95, .07); border-radius: var(--radius); margin-top: 24px; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row.cols { grid-template-columns: 1fr 1fr; }
.help { font-size: .82rem; color: var(--dim); margin-top: 8px; }
.help code { background: rgba(160, 185, 255, .1); padding: 1px 6px; border-radius: 5px; color: var(--sakura-2); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { width: 20px; height: 20px; accent-color: var(--sakura); }
.sugg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); max-height: 260px; overflow: auto; z-index: 20; box-shadow: var(--shadow); }
.sugg button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; background: transparent; border: 0; }
.sugg button:hover { background: rgba(160, 185, 255, .1); }
.sugg img { width: 32px; height: 44px; object-fit: cover; border-radius: 4px; }
.rel { position: relative; }

/* ---------- marca ---------- */
.brand-hero { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; padding: 36px; border-radius: 28px; background: radial-gradient(500px 300px at 20% 30%, rgba(255, 92, 147, .18), transparent 70%), var(--surface); border: 1px solid var(--line-strong); margin-top: 28px; }
.brand-hero img { width: 100%; filter: drop-shadow(0 20px 40px rgba(255, 92, 147, .25)); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch i { display: block; height: 84px; }
.swatch div { padding: 12px 14px; }
.swatch b { display: block; font-family: var(--font-display); }
.swatch code { color: var(--muted); font-size: .8rem; }
.swatch small { display: block; color: var(--dim); font-size: .78rem; margin-top: 4px; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lvl { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.lvl .k { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.lvl.k1 .k { color: var(--aurora); } .lvl.k2 .k { color: var(--sakura); } .lvl.k3 .k { color: var(--gold); }
.type-spec { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.todo { padding: 18px 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--muted); }
.todo li { margin: 6px 0; }

/* ---------- pie, tabbar, toast ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 110px; background: var(--bg-2); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.credit { font-size: .8rem; color: var(--dim); max-width: 90ch; }
.credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tabbar { display: none; }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--surface-2); border: 1px solid var(--line-strong); padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; box-shadow: var(--shadow); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.loading { text-align: center; padding: 60px; color: var(--muted); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--sakura); animation: rot .8s linear infinite; margin: 0 auto 12px; }
@keyframes rot { to { transform: rotate(360deg); } }
.view { animation: viewIn .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .field { grid-column: 1 / -1; }
  .two-col, .editor { grid-template-columns: 1fr; }
  .brand-hero { grid-template-columns: 1fr; text-align: center; }
  .brand-hero img { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 60px; }
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(8, 13, 27, .9); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: .68rem; font-weight: 600; color: var(--muted); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--sakura-2); }
  .hero { min-height: 420px; border-radius: 22px; }
  .hero-bg { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; margin-top: -90px; gap: 16px; }
  .detail-poster { width: 150px; }
  .detail-info { padding-top: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .rail { grid-auto-columns: 140px; }
  .rail.wide { grid-auto-columns: 260px; }
  .modal { grid-template-columns: 1fr; }
  .modal-img img { min-height: 0; max-height: 280px; }
  .profile-card { grid-template-columns: auto 1fr; }
  .profile-card .btn { grid-column: 1 / -1; }
  .toprow { grid-template-columns: 26px 48px 1fr; }
  .toprow .row-actions { grid-column: 2 / -1; }
  .form-row.cols { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.05rem; }
  #toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   v2 — capítulos, comentarios, plataformas, ficha de personaje y efectos
   ============================================================ */

/* ---------- efectos globales ---------- */
body::before { content: ""; position: fixed; inset: -25% -10% auto -10%; height: 90vh; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 20% 30%, rgba(255, 92, 147, .15), transparent 70%), radial-gradient(35% 45% at 75% 20%, rgba(79, 214, 232, .13), transparent 70%), radial-gradient(40% 50% at 55% 70%, rgba(155, 123, 255, .11), transparent 70%); filter: blur(30px); animation: aurora 28s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(4%, 6%, 0) rotate(6deg) scale(1.08); } }
.topbar { transition: background .3s, box-shadow .3s, border-color .3s; }
.topbar.scrolled { background: rgba(8, 13, 27, .92); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .9); border-bottom-color: var(--line-strong); }
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: revealUp .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) backwards; }
@keyframes revealUp { from { opacity: 0; transform: translateY(22px); } }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s; }
.fx-p { position: fixed; z-index: 120; pointer-events: none; font-size: 18px; text-shadow: 0 0 10px currentColor; animation: fxpop .85s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes fxpop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s, 1)); } }
.fx-confetti { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; }
.readbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sakura), var(--violet), var(--aurora)); }
.chip.sm { padding: 3px 10px; font-size: .72rem; }
.chip.warn { color: var(--gold); border-color: rgba(246, 200, 95, .4); background: rgba(246, 200, 95, .08); }
.switch.sm { font-size: .82rem; font-weight: 600; color: var(--muted); }
.switch.sm input { width: 16px; height: 16px; }

/* ---------- capítulos ---------- */
.ep-top { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 18px; }
.ep-tabs { margin: 18px 0 14px; }
.eplist { display: grid; gap: 8px; }
.ep { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; transition: border-color .2s, background .2s; }
.ep:hover { border-color: var(--line-strong); }
.ep.seen { border-left: 3px solid var(--ok); }
.ep.open { border-color: var(--sakura); background: var(--surface-2); }
.ep-row { display: flex; align-items: stretch; }
.ep-check { width: 52px; flex: none; border: 0; border-right: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.ep-check svg { width: 22px; height: 22px; fill: none; stroke: var(--dim); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s, transform .2s; }
.ep-check:hover svg { stroke: var(--ice); transform: scale(1.15); }
.ep.seen .ep-check svg { stroke: var(--ok); }
.ep.seen .ep-n { color: var(--ok); }
.ep-head { flex: 1; min-width: 0; display: grid; grid-template-columns: 44px 1fr auto 24px; gap: 10px; align-items: center; text-align: left; padding: 12px 14px 12px 10px; background: transparent; border: 0; }
.ep-n { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-align: center; color: var(--muted); }
.ep-title { min-width: 0; }
.ep-title b { display: block; font-weight: 600; font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-title small { color: var(--dim); font-size: .76rem; }
.ep-badges { display: flex; gap: 8px; font-size: .8rem; font-weight: 700; }
.ep-star { color: var(--gold); }
.ep-com { color: var(--aurora); }
.ep-chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s; justify-self: center; margin-top: -4px; }
.ep.open .ep-chev { transform: rotate(-135deg); margin-top: 4px; }
.ep-body { padding: 6px 18px 20px; display: grid; gap: 18px; animation: epOpen .25s ease; }
@keyframes epOpen { from { opacity: 0; transform: translateY(-6px); } }
.ep-tools { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; }
.ep-links { display: flex; gap: 8px; flex-wrap: wrap; }
.stars.sm button { width: 32px; height: 32px; font-size: .85rem; border-radius: 8px; }
.ep-posts h4 { margin: 0 0 8px; font-size: 1rem; }
.post-mini { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--surface); transition: border-color .2s; }
.post-mini:hover { border-color: var(--sakura); }
.post-mini small { display: block; color: var(--muted); }

/* ---------- curva de la temporada ---------- */
.curve { margin: 4px 0 8px; }
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve .grid { stroke: var(--line); stroke-width: 1; }
.curve text { fill: var(--dim); font-size: 10px; font-family: var(--font-body); }
.curve .line { fill: none; stroke: var(--sakura); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.curve .area { opacity: 0; animation: fade .8s ease 1.1s forwards; }
.curve .pt { fill: var(--bg); stroke: var(--sakura); stroke-width: 2.5; cursor: pointer; transition: r .15s; }
.curve .pt:hover, .curve .pt:focus-visible { r: 7; }
.curve .pt.best { fill: var(--gold); stroke: var(--gold); }
.curve .pt.worst { stroke: var(--aurora); }
.curve-sum { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.curve-sum b { color: var(--ice); }

/* ---------- comentarios (con censura anti-spoiler) ---------- */
.cbox h4 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.cbox .count { font-family: var(--font-body); font-size: .75rem; padding: 2px 9px; border-radius: 99px; background: rgba(160, 185, 255, .12); color: var(--muted); }
.cbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cform { display: grid; gap: 10px; margin-bottom: 16px; }
.cform textarea { min-height: 86px; border-radius: var(--radius-sm); }
.cform-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.cform-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cempty { font-size: .9rem; }
.clist { display: grid; gap: 12px; }
.comment { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(8, 13, 27, .4); animation: fade .3s; }
.c-av { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.c-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.c-meta b { color: var(--ice); }
.c-text { margin: 8px 0 0; color: #d6e0f5; word-break: break-word; }
.c-gate { position: relative; display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px dashed rgba(246, 200, 95, .5); border-radius: 10px; background: rgba(246, 200, 95, .06); text-align: left; overflow: hidden; }
.c-blur { display: block; filter: blur(7px); user-select: none; color: #d6e0f5; max-height: 4.2em; overflow: hidden; word-break: break-word; transition: filter .3s, max-height .3s; }
.c-lock { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 10px; text-align: center; font-weight: 700; font-size: .86rem; color: var(--gold); background: rgba(8, 13, 27, .4); transition: opacity .3s; }
.c-gate.shown .c-blur { filter: none; max-height: none; }
.c-gate.shown .c-lock { opacity: 0; pointer-events: none; }
.c-actions { display: flex; gap: 14px; margin-top: 8px; font-size: .82rem; }
.c-actions button, .c-actions a { background: none; border: 0; color: var(--muted); padding: 0; font-weight: 600; }
.c-actions button:hover, .c-actions a:hover { color: var(--sakura-2); }

/* ---------- plataformas legales ---------- */
.plats { display: flex; flex-wrap: wrap; gap: 8px; }
.plat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(160, 185, 255, .06); font-weight: 600; font-size: .9rem; transition: all .2s; }
.plat-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.plat-chip em { font-style: normal; color: var(--dim); }
.plat-chip:hover { border-color: var(--c); transform: translateY(-2px); }

/* ---------- ficha de personaje y chips con avatar ---------- */
.char-grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; margin-top: 20px; align-items: start; }
.char-pic .poster { border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.avchips { display: flex; flex-wrap: wrap; gap: 8px; }
.avchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(160, 185, 255, .07); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); transition: all .15s; }
.avchip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avchip:hover, .avchip.on { border-color: var(--sakura); color: var(--ice); }
.avchip.on { background: rgba(255, 92, 147, .16); }
.post-avatar { position: absolute; left: 14px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--sakura); background: var(--bg-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }

@media (max-width: 760px) {
  .char-grid { grid-template-columns: 1fr; gap: 20px; }
  .char-pic { max-width: 220px; }
  .ep-check { width: 44px; }
  .ep-head { grid-template-columns: 34px 1fr auto 18px; gap: 8px; padding-right: 10px; }
  .ep-body { padding: 4px 12px 16px; }
  .curve-sum { gap: 10px 16px; }
}

/* ============================================================
   v3 — pulido visual: podio, carruseles con flechas, imágenes con fundido, estados vacíos
   ============================================================ */

/* ---------- imágenes con fundido de entrada ---------- */
img.fi { opacity: 0; transition: opacity .55s ease, transform .5s; }
img.fi.ld { opacity: 1; }

/* ---------- estados vacíos con mascota ---------- */
.empty-logo { margin: 0 auto 12px; opacity: .55; filter: saturate(.7); animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* ---------- carruseles con flechas ---------- */
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-wrap { position: relative; }
.rail-wrap::before, .rail-wrap::after { content: ""; position: absolute; top: 0; bottom: 14px; width: 64px; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .25s; }
.rail-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.rail-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.rail-wrap.can-l::before, .rail-wrap.can-r::after { opacity: 1; }
.rail-btn { position: absolute; top: 38%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(8, 13, 27, .85); backdrop-filter: blur(8px); font-size: 1.6rem; line-height: 1; display: none; place-items: center; padding: 0 0 4px; box-shadow: var(--shadow); transition: background .2s, transform .2s, border-color .2s; }
.rail-btn:hover { background: var(--sakura); border-color: var(--sakura); color: var(--on-accent); transform: scale(1.08); }
.rail-btn.l { left: -10px; }
.rail-btn.r { right: -10px; }
.rail-wrap.can-l .rail-btn.l, .rail-wrap.can-r .rail-btn.r { display: grid; }

/* ---------- podio de favoritos ---------- */
.podium { display: grid; gap: 22px; padding-top: 22px; align-items: end; }
.podium.n1 { grid-template-columns: minmax(0, 380px); }
.podium.n2 { grid-template-columns: repeat(2, minmax(0, 380px)); }
.podium.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.podium.n3 .pod-1 { order: 2; }
.podium.n3 .pod-2 { order: 1; }
.podium.n3 .pod-3 { order: 3; }
.pod { --m: var(--gold); aspect-ratio: 1 / 1.25; border-color: color-mix(in srgb, var(--m) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--m) 18%, transparent), 0 24px 50px -24px color-mix(in srgb, var(--m) 70%, transparent); }
.pod-1 { --m: #f6c85f; --ty: -16px; }
.pod-2 { --m: #c9d4ee; }
.pod-3 { --m: #e0a070; }
.pod-1.card:hover { --ty: -20px; }
.podium.n3 .pod-2, .podium.n3 .pod-3 { aspect-ratio: 1 / 1.12; }
.pod-pic { position: absolute; inset: 0; background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.pod-pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; color: var(--dim); }
.pod-pic img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .6s, opacity .55s; }
.pod:hover .pod-pic img { transform: scale(1.06); }
.pod-link { position: absolute; inset: 0; z-index: 2; background: none; border: 0; cursor: pointer; }
.pod-rank { position: absolute; top: 10px; left: 10px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #1a1205; background: var(--m); box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--m) 80%, transparent); }
.pod-1 .pod-rank { width: 44px; height: 44px; font-size: 1.35rem; }
.pod-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 56px 14px 14px; background: linear-gradient(180deg, transparent, rgba(8, 13, 27, .94) 62%); pointer-events: none; }
.pod-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }
.pod-1 .pod-info b { font-size: 1.2rem; }
.pod-info small { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-actions { position: absolute; top: 10px; right: 10px; z-index: 5; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.pod:hover .pod-actions, .pod:focus-within .pod-actions { opacity: 1; transform: none; }
.pod-actions .icon-btn { background: rgba(8, 13, 27, .85); backdrop-filter: blur(6px); }
@media (hover: none) { .pod-actions { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .podium { gap: 8px; }
  .pod, .podium.n3 .pod-2, .podium.n3 .pod-3 { aspect-ratio: 3 / 4.2; }
  .pod-rank, .pod-1 .pod-rank { width: 30px; height: 30px; font-size: .95rem; top: 6px; left: 6px; }
  .pod-info { padding: 36px 8px 8px; }
  .pod-info b, .pod-1 .pod-info b { font-size: .8rem; }
  .pod-info small { display: none; }
  .pod-1 { --ty: -8px; }
  .pod-actions { top: 6px; right: 6px; gap: 4px; }
  .pod-actions .icon-btn { width: 26px; height: 26px; border-radius: 8px; font-size: .75rem; }
  .rail-btn { display: none !important; }
  .rail-wrap::before, .rail-wrap::after { width: 28px; }
}

/* ============================================================
   v4 — listas, temporadas, tops globales
   ============================================================ */
.link-btn { background: none; border: 0; padding: 0; color: var(--sakura-2); font-weight: 700; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ice); }
.badge.mine { top: auto; left: auto; right: 10px; bottom: 10px; color: var(--aurora); border-color: rgba(79, 214, 232, .5); }
.top10-badge { display: inline-block; vertical-align: middle; margin-right: 8px; padding: 4px 10px; border-radius: 8px; font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--on-accent); background: linear-gradient(135deg, var(--gold), #ffb35c); }

/* ---------- marcador de lista en las tarjetas ---------- */
.card .mark { position: absolute; top: 52px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(8, 13, 27, .78); backdrop-filter: blur(6px); transition: transform .15s, background .2s; }
.card .mark:hover { transform: scale(1.1); }
.card .mark svg { width: 17px; height: 17px; fill: none; stroke: var(--ice); stroke-width: 2; stroke-linejoin: round; }
.card .mark.on { background: var(--aurora); border-color: var(--aurora); }
.card .mark.on svg { fill: var(--on-accent); stroke: var(--on-accent); }
.lmenu { position: absolute; top: 96px; right: 8px; z-index: 8; min-width: 148px; padding: 6px; display: grid; gap: 2px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: epOpen .18s ease; }
.lmenu button { text-align: left; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; font-size: .86rem; font-weight: 600; color: var(--ice); }
.lmenu button:hover, .lmenu button:focus-visible { background: rgba(160, 185, 255, .14); }
.lmenu button.on { color: var(--aurora); }
.lmenu button.danger { color: #ffb3b3; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }

/* ---------- pestañas de listas (Mi espacio) ---------- */
.list-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.ltab { display: grid; gap: 2px; justify-items: start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.ltab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ltab b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.ltab span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.ltab.on { border-color: var(--sakura); background: linear-gradient(160deg, rgba(255, 92, 147, .16), var(--surface)); }
.ltab.on span { color: var(--sakura-2); }

/* ---------- temporadas y películas ---------- */
.seasons { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; scroll-snap-type: x proximity; }
.season { flex: none; width: 190px; scroll-snap-align: start; display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s, background .2s; }
.season:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.season.on { border-color: var(--sakura); background: linear-gradient(160deg, rgba(255, 92, 147, .16), var(--surface)); }
.season-k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--aurora); display: flex; align-items: center; gap: 6px; }
.season.on .season-k { color: var(--sakura-2); }
.season b { font-family: var(--font-display); font-size: .95rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.season small { color: var(--muted); font-size: .78rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- tops globales ---------- */
.srcbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.srcbar b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.srcbar span { color: var(--muted); font-size: .85rem; }
.srcmeter { min-width: 220px; }
.srcmeter small { color: var(--muted); font-size: .78rem; display: block; margin-top: 6px; }
.pod .heart { z-index: 5; }
.rail.nums { grid-auto-columns: 232px; gap: 6px; }
.ncard { position: relative; display: flex; align-items: flex-end; }
.ncard-n { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 9.5rem; line-height: .78; letter-spacing: -.09em; color: transparent; -webkit-text-stroke: 3px rgba(160, 185, 255, .32); margin-right: -30px; z-index: 0; transition: -webkit-text-stroke-color .3s; user-select: none; }
.ncard:hover .ncard-n { -webkit-text-stroke-color: var(--sakura); }
.ncard-col { position: relative; z-index: 1; width: 138px; flex: none; }
.ncard-pic { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); transition: transform .3s; }
.ncard-pic.sq { aspect-ratio: 3 / 4; }
.ncard:hover .ncard-pic { transform: translateY(-4px) scale(1.03); }
.ncard-pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; color: var(--dim); }
.ncard-pic img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ncard-pic .badge.mine { z-index: 2; right: 6px; bottom: 6px; font-size: .64rem; }
.ncard .heart { top: 8px; right: 8px; bottom: auto; width: 32px; height: 32px; z-index: 3; }
.ncard-t { display: block; margin-top: 8px; }
.ncard-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-display); font-size: .88rem; line-height: 1.2; }
.ncard-t small { color: var(--gold); font-weight: 700; font-size: .78rem; }
.rank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rank-row { position: relative; display: grid; grid-template-columns: 38px 46px 1fr auto auto auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.rank-row:hover { border-color: var(--line-strong); }
.rank-row .rk { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-align: center; color: var(--dim); }
.rank-row .rk-img { width: 46px; height: 60px; border-radius: 7px; overflow: hidden; background: var(--bg-2); }
.rank-row .rk-img img { width: 100%; height: 100%; object-fit: cover; }
.rank-row .rk-t { min-width: 0; }
.rank-row .rk-t b { display: block; font-family: var(--font-display); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rk-t small { color: var(--muted); font-size: .76rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rk-sc { color: var(--gold); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.rank-row .heart { position: static; width: 34px; height: 34px; }
.how { margin: 0; padding-left: 1.3em; color: var(--muted); display: grid; gap: 8px; }
.how b { color: var(--ice); }

@media (max-width: 980px) { .list-tabs { grid-template-columns: repeat(3, 1fr); } .rank-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .list-tabs { grid-template-columns: repeat(2, 1fr); }
  .ltab { padding: 12px 14px; }
  .ltab b { font-size: 1.5rem; }
  .card .mark { width: 32px; height: 32px; top: 46px; }
  .card .mark svg { width: 15px; height: 15px; }
  .lmenu { top: 84px; min-width: 132px; }
  .rail.nums { grid-auto-columns: 200px; }
  .ncard-n { font-size: 7.5rem; margin-right: -24px; }
  .ncard-col { width: 120px; }
  .rank-row { grid-template-columns: 30px 42px 1fr auto auto; gap: 8px; }
  .rank-row .chip { display: none; }
  .srcmeter { width: 100%; }
  .tabbar a { font-size: .62rem; }
}

/* v4.1 — número gigante alineado al póster; título sobre el póster */
.ncard-t { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 38px 9px 9px; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, transparent, rgba(8, 13, 27, .94) 70%); pointer-events: none; }
.ncard-t b { color: var(--ice); }
.ncard-pic .badge.mine { top: 6px; left: 6px; right: auto; bottom: auto; }
.ncard-n { margin-bottom: -4px; }
.ncard-t { z-index: 3; }
.ncard-pic { z-index: 0; }

/* ============================================================
   v5 — música, reproductor con luces, artistas, noticias, ficha
   ============================================================ */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field.sm { padding: 8px 14px; font-size: .85rem; }
.syn { color: #d6e0f5; font-size: 1.02rem; line-height: 1.7; margin: 0; }
.ep-desc { margin: 4px 0 0; color: #d6e0f5; line-height: 1.65; }

/* barra de navegación: más enlaces */
@media (max-width: 1180px) { .nav a[data-nav="marca"] { display: none; } .nav a { padding: 8px 11px; } }
@media (max-width: 760px) {
  .tabbar { display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar a { flex: 0 0 20%; min-width: 66px; }
}

/* ---------- música ---------- */
.music-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: 22px; border: 1px solid var(--line-strong); background: radial-gradient(500px 200px at 10% 0%, rgba(155, 123, 255, .22), transparent 70%), radial-gradient(500px 200px at 90% 100%, rgba(255, 92, 147, .2), transparent 70%), var(--surface); }
.music-hero b { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.music-hero span { color: var(--muted); font-size: .92rem; }
.toolbar-mini { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.toolbar-mini .field { max-width: 380px; }
.temas { display: grid; gap: 8px; }
.tema { position: relative; display: grid; grid-template-columns: 46px 46px 1fr auto auto auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.tema:hover { border-color: var(--line-strong); }
.tema.now { border-color: var(--sakura); background: linear-gradient(90deg, rgba(255, 92, 147, .14), var(--surface)); }
.tema-play { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--sakura), #ff7aa6); color: var(--on-accent); box-shadow: 0 8px 20px -8px rgba(255, 92, 147, .8); transition: transform .15s; }
.tema-play:hover { transform: scale(1.08); }
.tema-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.tema-play.sin { background: rgba(160, 185, 255, .1); color: var(--muted); box-shadow: none; border: 1px dashed var(--line-strong); font-size: 1.3rem; }
.tema-cov { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--bg-2); display: block; }
.tema-cov img { width: 100%; height: 100%; object-fit: cover; }
.tema-t { min-width: 0; }
.tema-t b { display: block; font-family: var(--font-display); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tema-t small { color: var(--muted); font-size: .8rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tema-t a:hover { color: var(--sakura-2); text-decoration: underline; }
.tema-k { font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap; }
.tema-k.op { color: var(--aurora); border-color: rgba(79, 214, 232, .4); }
.tema-k.ed { color: var(--violet); border-color: rgba(155, 123, 255, .4); }
.rate-sel { background: rgba(8, 13, 27, .7); border: 1px solid var(--line-strong); color: var(--gold); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .82rem; font-weight: 700; }
.tema-yt { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 4px 2px 56px; font-size: .85rem; color: var(--muted); }
.tema-yt .field { flex: 1; min-width: 200px; max-width: 360px; }
.tr-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); position: relative; }
.pmenu { position: absolute; top: 48px; right: 8px; z-index: 9; min-width: 200px; padding: 6px; display: grid; gap: 2px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: epOpen .18s ease; }
.pmenu button { text-align: left; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; font-size: .86rem; font-weight: 600; color: var(--ice); }
.pmenu button:hover, .pmenu button:focus-visible { background: rgba(160, 185, 255, .14); }
.pmenu .nuevo { color: var(--sakura-2); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.plgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.plcard { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plcard .btn, .plcard > span { grid-column: 1 / -1; justify-self: start; }
.plcard-cov { position: relative; height: 72px; }
.plcard-cov img { position: absolute; top: 0; width: 52px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--surface); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.plcard-cov img:nth-child(1) { left: 0; z-index: 3; } .plcard-cov img:nth-child(2) { left: 22px; z-index: 2; } .plcard-cov img:nth-child(3) { left: 44px; z-index: 1; }
.plcard-t b { display: block; font-family: var(--font-display); }
.plcard-t small { color: var(--muted); }
.plpanel { margin-top: 16px; }
.plhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.plhead h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.plhead .count { font-family: var(--font-body); font-size: .75rem; padding: 2px 9px; border-radius: 99px; background: rgba(160, 185, 255, .12); color: var(--muted); }

/* artistas */
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.artist-card { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.artist-card:hover { transform: translateY(-4px); border-color: var(--sakura); }
.artist-cov { position: relative; height: 96px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); display: flex; }
.artist-cov img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.artist-t b { display: block; font-family: var(--font-display); }
.artist-t small { color: var(--muted); font-size: .8rem; }
.artist-hero { --h: 330; display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; margin-top: 18px; padding: 30px; border-radius: 26px; border: 1px solid var(--line-strong); background: radial-gradient(520px 260px at 0% 0%, hsla(var(--h), 90%, 60%, .22), transparent 70%), var(--surface); }
.artist-avatar { width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h), 85%, 58%), hsl(calc(var(--h) + 50), 80%, 45%)); box-shadow: 0 20px 50px -18px hsla(var(--h), 90%, 60%, .8); }
.bio { color: #d6e0f5; line-height: 1.75; max-width: 70ch; margin: 12px 0 18px; }

/* noticias */
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, border-color .25s; }
.news:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.news.big { grid-column: 1 / -1; flex-direction: row; }
.news-cov { --c: var(--sakura); position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--c), var(--violet) 70%, var(--bg-2)); overflow: hidden; }
.news.big .news-cov { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }
.news-cov img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.news-ico { position: absolute; left: 14px; bottom: 10px; font-size: 1.8rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.news-cat { position: absolute; top: 12px; left: 12px; background: rgba(8, 13, 27, .8); backdrop-filter: blur(6px); }
.news-b { display: grid; gap: 10px; padding: 16px 18px 18px; align-content: start; }
.news.big .news-b { padding: 26px; align-content: center; }
.news-b h3 { font-size: 1.15rem; line-height: 1.25; }
.news.big h3 { font-size: 1.7rem; }
.news-b p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.news-f { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: .78rem; color: var(--dim); }
.news-an { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rail.wide .news { height: 100%; }

/* ---------- reproductor con luces ---------- */
.pl { --glow: #ff5c93; position: fixed; right: 18px; bottom: 18px; z-index: 65; width: min(392px, calc(100vw - 24px)); border-radius: 22px; border: 1px solid var(--line-strong); background: rgba(10, 16, 32, .92); backdrop-filter: blur(18px); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -20px var(--glow); }
.pl[hidden] { display: none; }
.pl-bg { display: none; }
.pl-wrap { position: relative; padding: 12px; display: grid; gap: 10px; }
.pl-stage { position: relative; }
.pl-glow { position: absolute; inset: -22px; border-radius: 40px; background: center / cover no-repeat; filter: blur(34px) saturate(2) brightness(1.15); opacity: .7; z-index: 0; pointer-events: none; transition: background-image .6s; }
.pl-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 60% at 50% 50%, var(--glow), transparent 75%); mix-blend-mode: screen; opacity: .55; }
.pl.playing .pl-glow { animation: glow 3.2s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; transform: scale(1); } to { opacity: .95; transform: scale(1.06); } }
.pl-screen { position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.pl-screen iframe, .pl-screen #pl-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-side { display: grid; gap: 10px; position: relative; z-index: 1; }
.pl-meta { display: grid; gap: 2px; position: relative; padding-right: 54px; }
.pl-tag { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--aurora); }
.pl-title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-sub { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq { position: absolute; right: 0; top: 6px; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.eq i { width: 4px; height: 6px; border-radius: 2px; background: var(--glow); opacity: .5; }
.pl.playing .eq i { opacity: 1; animation: eq 0.9s ease-in-out infinite alternate; }
.pl.playing .eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; } .pl.playing .eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.1s; } .pl.playing .eq i:nth-child(4) { animation-delay: -.2s; animation-duration: .8s; } .pl.playing .eq i:nth-child(5) { animation-delay: -.5s; }
@keyframes eq { from { height: 4px; } to { height: 22px; } }
.pl-seek { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl input[type="range"] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 99px; background: rgba(160, 185, 255, .2); outline-offset: 4px; width: 100%; }
.pl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 50%, transparent); cursor: pointer; }
.pl input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ice); cursor: pointer; }
.pl-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pl-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ice); transition: background .2s, transform .15s, color .2s; }
.pl-ctrl button:hover { background: rgba(160, 185, 255, .14); }
.pl-ctrl button svg { width: 18px; height: 18px; fill: currentColor; }
.pl-ctrl button svg.st { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-ctrl button.on { color: var(--glow); }
.pl-ctrl .pl-play { width: 48px; height: 48px; background: var(--ice); color: #0a1020; box-shadow: 0 8px 24px -6px var(--glow); }
.pl-ctrl .pl-play:hover { transform: scale(1.08); background: #fff; }
.pl-ctrl .pl-play svg { width: 22px; height: 22px; }
.pl-vol { width: 70px; }
.pl-queue { display: none; margin: 0; padding: 0; list-style: none; max-height: 40vh; overflow: auto; }
.pl-queue button { display: grid; grid-template-columns: 40px 1fr; gap: 10px; width: 100%; text-align: left; padding: 6px; border-radius: 10px; border: 0; background: transparent; align-items: center; }
.pl-queue button:hover { background: rgba(160, 185, 255, .1); }
.pl-queue button.on { background: color-mix(in srgb, var(--glow) 22%, transparent); }
.pl-queue img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.pl-queue b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-queue small { color: var(--muted); font-size: .74rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.has-player main { padding-bottom: 300px; }

/* modo teatro: pantalla completa con luz ambiental sobre todo el fondo */
.pl.theater { inset: 0; right: 0; bottom: 0; width: auto; border-radius: 0; z-index: 85; background: #05070f; border: 0; overflow: auto; }
.pl.theater .pl-bg { display: block; position: fixed; inset: -10%; background: center / cover no-repeat; filter: blur(70px) saturate(2) brightness(.55); opacity: .9; z-index: 0; }
.pl.theater.playing .pl-bg { animation: bgPulse 5s ease-in-out infinite alternate; }
@keyframes bgPulse { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.05); } }
.pl.theater .pl-wrap { position: relative; z-index: 1; width: min(1280px, 100%); margin: 0 auto; min-height: 100%; padding: 28px 24px; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); align-content: center; gap: 28px; }
.pl.theater .pl-glow { inset: -40px; filter: blur(60px) saturate(2.2) brightness(1.2); opacity: .8; }
.pl.theater .pl-screen { border-radius: 18px; }
.pl.theater .pl-side { align-content: start; }
.pl.theater .pl-title { font-size: 1.5rem; white-space: normal; }
.pl.theater .pl-queue { display: block; }
body.theater-on { overflow: hidden; }

@media (max-width: 980px) { .pl.theater .pl-wrap { grid-template-columns: 1fr; align-content: start; } .artist-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .news.big { flex-direction: column; } .news.big .news-cov { flex: none; aspect-ratio: 16 / 8; min-height: 0; } }
@media (max-width: 760px) {
  .tema { grid-template-columns: 40px 1fr auto auto; gap: 8px; padding-right: 8px; }
  .tema-cov, .tema-k { display: none; }
  .tema-play { width: 38px; height: 38px; }
  .tema-yt { padding-left: 4px; }
  .pl { right: 0; left: 0; bottom: 64px; width: 100%; border-radius: 20px 20px 0 0; }
  .pl.theater { bottom: 0; border-radius: 0; }
  .pl-vol { display: none; }
  .artist-avatar { width: 130px; height: 130px; font-size: 3.6rem; }
  body.has-player main { padding-bottom: 380px; }
}

/* v5.1 — el formulario de enlace de YouTube se abre solo al tocar ＋ */
.tema-yt { display: none; }
.tema.open-yt .tema-yt { display: flex; }
.tema-play.sin { transition: transform .15s, background .2s; }
.tema.open-yt .tema-play.sin { background: rgba(255, 92, 147, .18); border-color: var(--sakura); color: var(--sakura-2); transform: rotate(45deg); }

/* v5.2 — modo teatro sin desbordes */
.pl.theater { overflow-x: hidden; overflow-y: auto; }
.pl.theater .pl-wrap { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); }
.pl-side, .pl-meta, .pl-seek { min-width: 0; }
.pl-ctrl { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.pl-queue { overflow-x: hidden; }
@media (max-width: 980px) { .pl.theater .pl-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   v6 — estrenos, tráilers nuevos, noticias con imagen/video, versión de canción
   ============================================================ */
.dur { font-variant-numeric: tabular-nums; font-weight: 700; }
.dur.full { color: var(--ok); }
.dur.tv { color: var(--gold); }
.badge.soon { color: var(--aurora); border-color: rgba(79, 214, 232, .5); }

/* noticias */
.news-cov { background: linear-gradient(135deg, hsl(var(--h, 330) 85% 58%), hsl(calc(var(--h, 330) + 55) 75% 42%) 70%, var(--bg-2)); }
.news-wm { position: absolute; right: -6%; bottom: -14%; width: 62%; opacity: .28; filter: grayscale(.2); pointer-events: none; }
.news-play { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 13, 27, .78); backdrop-filter: blur(8px); color: var(--ice); transition: transform .15s, background .2s; }
.news-play:hover { transform: scale(1.05); background: rgba(255, 92, 147, .85); }
.news-play span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sakura); color: var(--on-accent); }
.news-play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.news-play em { font-style: normal; font-size: .78rem; font-weight: 700; }
.news-src { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; }
.news-cov img.fi { position: relative; z-index: 1; }
.news-ico { z-index: 2; }
.news-cat { z-index: 3; }

/* estrenos */
.airlist { display: grid; gap: 8px; }
.air { display: grid; grid-template-columns: 46px 1fr auto 150px; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.air:hover { border-color: var(--sakura); transform: translateX(3px); }
.air img { width: 46px; height: 62px; object-fit: cover; border-radius: 7px; background: var(--bg-2); }
.air b { display: block; font-family: var(--font-display); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.air small { color: var(--muted); font-size: .78rem; }
.air-ep { font-weight: 800; color: var(--aurora); font-size: .85rem; }
.air-t { color: var(--gold); font-weight: 700; font-size: .85rem; text-align: right; white-space: nowrap; }
.trgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.trcard { display: grid; gap: 4px; text-align: left; padding: 0; background: none; border: 0; }
.tr-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.trcard:hover .tr-thumb { transform: translateY(-4px); border-color: var(--sakura); box-shadow: 0 18px 40px -18px rgba(255, 92, 147, .6); }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-play { position: absolute; inset: 0; display: grid; place-items: center; }
.tr-play svg { width: 54px; height: 54px; padding: 15px 12px 15px 18px; border-radius: 50%; background: rgba(8, 13, 27, .72); fill: var(--ice); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.trcard:hover .tr-play svg { background: var(--sakura); fill: var(--on-accent); transform: scale(1.1); }
.trcard b { font-family: var(--font-display); font-size: .98rem; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trcard small { color: var(--muted); font-size: .8rem; }

@media (max-width: 1180px) { .nav a[data-nav="personajes"] { display: none; } }
@media (max-width: 760px) {
  .air { grid-template-columns: 40px 1fr auto; gap: 10px; }
  .air-t { grid-column: 2 / -1; text-align: left; }
  .trgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-play em { display: none; }
  .news-play { padding: 6px; }
}

/* ============================================================
   v7 — "Recién salidos" (episodios de las últimas 72 h) y canciones de artistas
   ============================================================ */
.recien { margin-top: 38px; }
.recien .section-head h2 { display: flex; align-items: center; gap: 10px; }
.recirail { grid-auto-columns: 292px; }
.recigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.reci { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.reci:hover { transform: translateY(-4px); border-color: var(--sakura); box-shadow: 0 18px 40px -20px rgba(255, 92, 147, .5); }
.reci-cov { --c: var(--sakura); position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c), var(--bg-2)); overflow: hidden; }
.reci-cov img { width: 100%; height: 100%; object-fit: cover; }
.reci-live { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(8, 13, 27, .82); backdrop-filter: blur(6px); border: 1px solid rgba(94, 230, 168, .5); font-size: .78rem; font-weight: 700; }
.reci-b { display: grid; gap: 10px; padding: 12px 14px 14px; }
.reci-b > a b { font-family: var(--font-display); font-size: 1rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.reacc { display: flex; gap: 6px; }
.reacc button { flex: 1; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(160, 185, 255, .06); font-size: 1.05rem; transition: transform .15s, background .2s, border-color .2s; }
.reacc button:hover { transform: translateY(-2px) scale(1.06); background: rgba(160, 185, 255, .16); }
.reacc button.on { background: rgba(255, 92, 147, .22); border-color: var(--sakura); }
.reci-act { display: flex; gap: 8px; flex-wrap: wrap; }
.reci-act .btn { flex: 1; padding-inline: 12px; white-space: nowrap; }

/* canciones de artistas: portada horizontal */
.tema.cancion { grid-template-columns: 46px 86px 1fr auto auto auto; }
.tema-cov.wide { width: 86px; height: 48px; border-radius: 8px; }
@media (max-width: 760px) {
  .recirail { grid-auto-columns: 250px; }
  .tema.cancion { grid-template-columns: 40px 1fr auto auto; }
  .tema-cov.wide { display: none; }
}

/* ============================================================
   v8 — imágenes: artistas, capítulos, temporadas, avatar de perfil, portadas de respaldo
   ============================================================ */
/* artistas */
.artist-cov { position: relative; height: 130px; }
.artist-cov .artist-ph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; object-fit: cover; object-position: center 25%; }
.artist-cov::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(8, 13, 27, .55)); }
.artist-avatar { position: relative; overflow: hidden; }
.artist-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* capítulos: miniatura en la fila y fotograma al abrir */
.ep-head { display: flex; align-items: center; gap: 12px; }
.ep-head .ep-n { flex: none; width: 36px; }
.ep-head .ep-title { flex: 1; }
.ep-head .ep-badges { flex: none; }
.ep-head .ep-chev { flex: none; width: 9px; }
.ep-th { flex: none; width: 74px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.ep-th img { width: 100%; height: 100%; object-fit: cover; }
.ep-still { width: min(380px, 100%); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-strong); }
.ep-still img { width: 100%; height: 100%; object-fit: cover; }

/* temporadas con portada */
.season { position: relative; padding-right: 74px; }
.season-cov { position: absolute; right: 10px; top: 10px; width: 50px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.season-cov img { width: 100%; height: 100%; object-fit: cover; }

/* blog sin portada: degradado con la marca */
.post-cover, .article-cover { position: relative; }
.post-cover .news-wm, .article-cover .news-wm { width: 44%; right: 4%; bottom: -10%; }

/* avatar de perfil */
.avatar { overflow: hidden; }
.avatar:has(.av-img) { padding: 0; }
.av-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.c-av { overflow: hidden; }
.c-av .av-img { width: 100%; height: 100%; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 4px; margin-bottom: 10px; }
.av-op { aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--bg-2); transition: transform .15s, border-color .15s; }
.av-op:hover { transform: scale(1.08); }
.av-op.on { border-color: var(--sakura); box-shadow: 0 0 0 3px rgba(255, 92, 147, .3); }
.av-op img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .ep-th { width: 56px; } .season { padding-right: 70px; } }

/* ============================================================
   v9 — Tienda (afiliados Amazon México y Mercado Libre)
   ============================================================ */
.nav a.nav-tienda { color: var(--on-accent); background: linear-gradient(135deg, var(--sakura), #ff7aa6); font-weight: 700; }
.nav a.nav-tienda:hover { background: linear-gradient(135deg, #ff7aa6, var(--sakura)); color: var(--on-accent); }
.nav a.nav-tienda.on { box-shadow: 0 0 0 2px rgba(255, 92, 147, .4); }
.shop-teaser { background: radial-gradient(500px 220px at 90% 0%, rgba(246, 200, 95, .2), transparent 70%), radial-gradient(500px 220px at 0% 100%, rgba(255, 92, 147, .22), transparent 70%), var(--surface); }

.shop-hero { position: relative; margin-top: 26px; padding: clamp(24px, 5vw, 54px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; background: radial-gradient(700px 340px at 100% 0%, rgba(255, 92, 147, .28), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(79, 214, 232, .16), transparent 70%), var(--surface); }
.shop-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 10px 0 14px; }
.shop-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--sakura), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.shop-search .field { flex: 1; min-width: 220px; }
.shop-cats { margin-top: 18px; }
.shop-hero-art { position: relative; height: 320px; }
.sh-pic { position: absolute; width: 150px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); animation: floaty 6s ease-in-out infinite; background: var(--bg-2); }
.sh-pic img { width: 100%; height: 100%; object-fit: cover; }
.sh-pic.p0 { left: 6%; top: 10%; transform: rotate(-7deg); } .sh-pic.p1 { left: 34%; top: 0; transform: rotate(4deg); animation-delay: -1.5s; } .sh-pic.p2 { left: 58%; top: 22%; transform: rotate(-3deg); animation-delay: -3s; } .sh-pic.p3 { left: 22%; top: 46%; transform: rotate(8deg); animation-delay: -4.5s; }

.shopbtns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.shopbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; border: 1px solid var(--line-strong); background: rgba(160, 185, 255, .07); transition: transform .15s, border-color .2s, background .2s; }
.shopbtn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.shopbtn.amz { --c: #ff9900; } .shopbtn.ml { --c: #ffe600; }
.shopbtn:hover { transform: translateY(-2px); border-color: var(--c); background: rgba(160, 185, 255, .14); }
.shopbtns.mini .shopbtn { padding: 6px 12px; font-size: .78rem; }
.shopbtns.mini .shopbtn::before { width: 7px; height: 7px; }

.aff-note { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .82rem; color: var(--muted); background: rgba(160, 185, 255, .06); border: 1px solid var(--line); }
.aff-note b { color: var(--ice); }
.aff-note.demo { border-color: rgba(246, 200, 95, .5); background: rgba(246, 200, 95, .07); color: #ecd9a4; }
.aff-note code { background: rgba(160, 185, 255, .12); padding: 1px 6px; border-radius: 5px; color: var(--gold); }

.colgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.colcard { --h: 330; position: relative; display: grid; gap: 4px; align-content: end; min-height: 170px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(260px 160px at 90% 0%, hsla(var(--h), 90%, 60%, .38), transparent 70%), var(--surface); transition: transform .25s, border-color .25s, box-shadow .25s; }
.colcard:hover { transform: translateY(-5px); border-color: hsl(var(--h), 85%, 62%); box-shadow: 0 22px 44px -22px hsla(var(--h), 90%, 60%, .7); }
.colcard-brand { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--h), 90%, 72%); }
.colcard b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.colcard small { color: var(--muted); }
.colcard-go { margin-top: 8px; font-weight: 700; font-size: .85rem; color: var(--ice); }
.colbig { --h: 335; position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; padding: clamp(22px, 4vw, 42px); border-radius: 26px; overflow: hidden; border: 1px solid hsla(var(--h), 85%, 62%, .5); background: radial-gradient(600px 300px at 100% 50%, hsla(var(--h), 90%, 60%, .3), transparent 70%), var(--surface); transition: box-shadow .3s; }
.colbig:hover { box-shadow: 0 30px 70px -30px hsla(var(--h), 90%, 60%, .7); }
.colbig h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; margin: 6px 0 10px; }
.colbig p { color: #c4d1ee; max-width: 46ch; margin-bottom: 18px; }
.colbig-art, .colhero-art { position: relative; height: 240px; }
.cb { position: absolute; width: 120px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); background: var(--bg-2); }
.cb img { width: 100%; height: 100%; object-fit: cover; }
.cb.p0 { left: 4%; top: 14%; transform: rotate(-8deg); } .cb.p1 { left: 24%; top: 2%; transform: rotate(3deg); } .cb.p2 { left: 45%; top: 16%; transform: rotate(-3deg); } .cb.p3 { left: 64%; top: 4%; transform: rotate(7deg); } .cb.p4 { left: 80%; top: 22%; transform: rotate(-5deg); }
.colhero { --h: 335; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; margin-top: 18px; padding: clamp(22px, 4vw, 44px); border-radius: 26px; overflow: hidden; border: 1px solid hsla(var(--h), 85%, 62%, .5); background: radial-gradient(640px 300px at 100% 0%, hsla(var(--h), 90%, 60%, .32), transparent 70%), var(--surface); }
.colhero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; margin: 8px 0; }
.colhero .eyebrow { color: hsl(var(--h), 90%, 72%); }
.datos { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.datos dt { color: var(--dim); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.datos dd { margin: 0; font-weight: 600; }
.tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tips li { padding: 12px 16px 12px 44px; position: relative; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.tips li::before { content: "✓"; position: absolute; left: 16px; top: 12px; color: var(--ok); font-weight: 800; }
.rail-h { font-family: var(--font-display); font-size: 1.05rem; margin: 18px 0 8px; color: var(--muted); }
.charshop { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.cs { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.cs .shopbtns { grid-column: 1 / -1; }
.cs-img { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.cs-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.cs-t b { display: block; font-family: var(--font-display); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-t small { color: var(--muted); font-size: .78rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile-ico { font-size: 1.8rem; line-height: 1; }
.tile b { font-family: var(--font-display); font-size: 1.05rem; }
.linegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.line { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.line > a { --h: 330; display: grid; border-left: 3px solid hsl(var(--h), 85%, 62%); padding-left: 10px; }
.line > a b { font-family: var(--font-display); } .line > a small { color: var(--muted); font-size: .78rem; }
.shopcard .badge { color: var(--gold); border-color: rgba(246, 200, 95, .5); }
.guias { display: grid; gap: 10px; }
.guia { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); padding: 4px 18px; }
.guia summary { cursor: pointer; padding: 14px 0; font-family: var(--font-display); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.guia summary::-webkit-details-marker { display: none; }
.guia summary::after { content: "+"; font-size: 1.3rem; color: var(--sakura-2); transition: transform .2s; }
.guia[open] summary::after { transform: rotate(45deg); }
.guia p { margin: 0 0 16px; color: #d6e0f5; line-height: 1.7; }

@media (max-width: 980px) { .shop-hero, .colbig, .colhero { grid-template-columns: 1fr; } .shop-hero-art, .colbig-art, .colhero-art { height: 200px; } .sh-pic { width: 110px; } .cb { width: 96px; } }
@media (max-width: 760px) { .charshop { grid-template-columns: 1fr; } .shopbtn { padding: 10px 14px; } }

/* ============================================================
   v10 — Espacios publicitarios (AdSense)
   ============================================================ */
.ad { display: block; margin: 0 auto; max-width: 970px; text-align: center; }
.ad > small { display: block; margin-bottom: 6px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ad ins.adsbygoogle { min-height: 100px; width: 100%; }  /* reserva altura: evita saltos de diseño (CLS) */
.ad-sec { margin-top: 34px; }
.ad-row { grid-column: 1 / -1; padding: 6px 0; }
.ad-row:empty { display: none; }
.ad-box { display: grid; gap: 4px; place-content: center; min-height: 110px; padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: repeating-linear-gradient(135deg, rgba(160, 185, 255, .05) 0 12px, transparent 12px 24px); color: var(--muted); }
.ad-box b { color: var(--ice); font-family: var(--font-display); }
.ad-box span { font-size: .8rem; }
@media (max-width: 760px) { .ad-box { min-height: 90px; } }

/* ============================================================
   v11 — Logo animado de la cabecera: pingüino·senpai → PSenpai
   ============================================================ */
.brand-anim { display: inline-block; text-align: left; }
.logoanim { display: inline-flex; align-items: baseline; font: 500 1.5rem/1.1 var(--font-display); letter-spacing: -.04em; white-space: nowrap; color: var(--ice); }
.logoanim .ini { display: inline-block; font-weight: 800; color: var(--ice); transition: color .25s; }
.logoanim.up .ini { text-transform: uppercase; color: var(--sakura); }
.logoanim.pop .ini { animation: lg-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.logoanim .lp, .logoanim .ls { display: inline-flex; align-items: baseline; transition: transform .35s cubic-bezier(.5, 0, 1, .6); }
.logoanim.lunge .lp { transform: translateX(.16em); }
.logoanim.lunge .ls { transform: translateX(-.16em); }
.logoanim.hit .lp, .logoanim.hit .ls { transform: none; transition: transform .45s cubic-bezier(.2, 1.5, .4, 1); }
.logoanim .mid { display: inline-block; overflow-x: clip; overflow-y: visible; max-width: var(--w, 6em); transition: max-width .6s cubic-bezier(.7, 0, .2, 1), opacity .4s; }
.logoanim.collapse .mid { max-width: 0; opacity: 0; }
.logoanim .dot { display: inline-block; align-self: baseline; position: relative; top: -.12em; width: .3em; height: .3em; margin: 0 .16em; border-radius: 50%; background: var(--sakura); box-shadow: 0 0 12px rgba(255, 92, 147, .7); transition: margin .6s cubic-bezier(.7, 0, .2, 1), width .6s cubic-bezier(.7, 0, .2, 1); animation: lg-bob 1.6s ease-in-out infinite; }
.logoanim.lunge .dot { animation: lg-squash .35s ease-in forwards; }
.logoanim.hit .dot { animation: lg-burst .5s ease-out forwards; }
.logoanim.collapse .dot { margin: 0; width: 0; }
@keyframes lg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.1em); } }
@keyframes lg-squash { to { transform: scale(.7, 1.5); } }
@keyframes lg-burst { 0% { transform: scale(.7, 1.5); box-shadow: 0 0 0 0 rgba(255, 92, 147, .9); } 45% { transform: scale(2.2); box-shadow: 0 0 0 .5em rgba(255, 92, 147, 0); } 100% { transform: scale(0); box-shadow: 0 0 0 .8em rgba(255, 92, 147, 0); } }
@keyframes lg-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
@media (max-width: 760px) { .logoanim { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .logoanim .dot { animation: none; } }
.topbar .btn { white-space: nowrap; flex: none; }
.brand { flex: none; }
body { overflow-x: clip; } /* algo dentro de los carruseles ensanchaba la página: evita el scroll horizontal */

/* ============================================================
   v12 — Mi espacio por secciones, listas estilo MyAnimeList y compartir
   ============================================================ */
.space-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; margin-top: 26px; align-items: start; }
.spacenav { position: sticky; top: 84px; display: grid; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.spgroup { margin: 12px 8px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.spgroup:first-of-type { margin-top: 4px; }
.spitem { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.spitem:hover { background: rgba(160, 185, 255, .08); color: var(--ice); }
.spitem.on { background: rgba(255, 92, 147, .16); color: var(--ice); box-shadow: inset 3px 0 0 var(--sakura); }
.spitem .spico { width: 22px; text-align: center; }
.spitem .spt { flex: 1; }
.spitem b { font-size: .75rem; min-width: 24px; text-align: center; padding: 2px 8px; border-radius: 999px; background: rgba(160, 185, 255, .12); color: var(--ice); }
.spitem.on b { background: var(--sakura); color: var(--on-accent); }
.space-main { min-width: 0; }
.sp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sp-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 6px 0 4px; }
.sp-head .sub { margin: 0; color: var(--muted); }
.pc-act { display: flex; gap: 8px; flex-wrap: wrap; }

.lv-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lv-tools .field { flex: 1; min-width: 200px; }
.lv-tools .select { width: auto; flex: none; }
.lv-vista { display: inline-flex; gap: 6px; }
.alist { display: grid; gap: 10px; }
.arow { display: grid; grid-template-columns: 30px 70px minmax(0, 1fr) 124px 140px; grid-template-areas: "n pic main score prog" "n pic act act act"; gap: 8px 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.arow:hover { border-color: var(--line-strong); background: var(--surface-2, var(--surface)); }
.arow-n { grid-area: n; text-align: center; font: 800 1rem var(--font-display); color: var(--dim); }
.arow-main { grid-area: main; } .arow-score { grid-area: score; } .arow-prog { grid-area: prog; } .arow-act { grid-area: act; }
.arow-pic { grid-area: pic; position: relative; display: block; width: 70px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.arow-pic img, .arow-pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arow-pic .ph { display: grid; place-items: center; font: 800 1.6rem var(--font-display); color: var(--dim); }
.arow-main { min-width: 0; display: grid; gap: 4px; }
.arow-t { font: 700 1.05rem/1.25 var(--font-display); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.arow-t:hover { color: var(--sakura-2); }
.arow-meta { color: var(--muted); font-size: .82rem; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.arow-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.gtag { font-size: .72rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.arow-sep { color: var(--dim); }
.arow-col { display: grid; gap: 3px; align-content: center; text-align: center; }
.arow-col small { color: var(--dim); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.arow-col b { font: 800 1.05rem var(--font-display); }
.arow-score b { color: var(--gold); }
.arow-score small { white-space: nowrap; text-transform: none; letter-spacing: 0; }
.arow-score small:first-child { text-transform: uppercase; letter-spacing: .06em; }
.arow-prog { text-align: left; }
.arow-prog .bar { height: 6px; }
.arow-prog b { font-size: .85rem; }
.arow-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.select.sm { padding: 6px 10px; font-size: .8rem; width: auto; }
.badge.live { color: var(--ok); border-color: rgba(120, 220, 160, .5); }
.alist.compact .arow { grid-template-columns: 26px 44px minmax(0, 1fr) 90px 130px auto; grid-template-areas: "n pic main score prog act"; gap: 12px; padding: 7px 12px 7px 8px; }
.alist.compact .arow-act { justify-content: flex-end; }
.alist.compact .arow-pic { width: 44px; border-radius: 8px; }
.alist.compact .arow-tags, .alist.compact .arow-meta { display: none; }
.alist.compact .arow-t { font-size: .95rem; -webkit-line-clamp: 1; }

.spcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.spcard { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.spcard:hover { transform: translateY(-3px); border-color: var(--sakura); }
.spcard-pics { display: flex; height: 76px; }
.mini { width: 54px; height: 76px; margin-right: -14px; border-radius: 9px; overflow: hidden; border: 2px solid var(--surface); background: var(--bg-2); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .7); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini.empty { display: grid; place-items: center; color: var(--dim); font-size: 1.4rem; border-style: dashed; border-color: var(--line-strong); }
.spcard-t { display: flex; align-items: center; gap: 8px; }
.spcard-t b { flex: 1; font-family: var(--font-display); }
.spcard-t em { font-style: normal; font-weight: 800; color: var(--sakura-2); }

.shared-hero { margin: 30px 0 10px; padding: clamp(22px, 4vw, 40px); border-radius: 26px; border: 1px solid var(--line-strong); background: radial-gradient(520px 260px at 100% 0%, rgba(255, 92, 147, .26), transparent 70%), var(--surface); }
.shared-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); font-weight: 800; margin: 8px 0; }
.shared-hero .lead { color: var(--muted); max-width: 60ch; }
.ro .row-actions { display: none; }

.share .sharelink { display: flex; gap: 8px; margin-bottom: 14px; }
.share .sharelink .field { flex: 1; min-width: 0; font-size: .85rem; }
.sharebtns { display: flex; gap: 8px; flex-wrap: wrap; }
.sb { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; font: 700 .85rem var(--font-body, inherit); color: var(--ice); background: rgba(160, 185, 255, .08); border: 1px solid var(--line-strong); cursor: pointer; transition: transform .15s, border-color .2s; }
.sb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--c, var(--sakura)); }
.sb:hover { transform: translateY(-2px); border-color: var(--c, var(--sakura)); }
.sb.wa { --c: #25d366; } .sb.fb { --c: #1877f2; } .sb.ms { --c: #a334fa; } .sb.xx { --c: #e7e9ea; } .sb.tg { --c: #2aabee; } .sb.ml { --c: #f6c85f; }
.sh-h { margin: 22px 0 8px; font-family: var(--font-display); }
.sh-fmt { margin-bottom: 12px; }
.sh-cvwrap { display: grid; place-items: center; padding: 12px; border-radius: var(--radius); background: rgba(0, 0, 0, .25); margin-bottom: 14px; }
.sh-cvwrap canvas { max-width: 100%; max-height: 56vh; width: auto; height: auto; border-radius: 12px; }

@media (max-width: 980px) {
  .space-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .spacenav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .spacenav::-webkit-scrollbar { display: none; }
  .spgroup { display: none; }
  .spitem { flex: none; white-space: nowrap; padding: 8px 12px; }
}
@media (max-width: 760px) {
  .arow, .alist.compact .arow { grid-template-columns: 56px auto minmax(0, 1fr); grid-template-areas: "pic main main" "score score prog" "act act act"; gap: 10px 14px; }
  .arow-n { display: none; }
  .arow-pic, .alist.compact .arow-pic { width: 56px; }
  .arow-score { text-align: left; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 2px 12px; }
  .arow-score small:first-child { display: none; }
  .alist.compact .arow-act { justify-content: flex-start; }
  .alist.compact .arow-tags, .alist.compact .arow-meta { display: flex; }
}

/* ============================================================
   v13 — Cuenta y nube (Supabase)
   ============================================================ */
.cuenta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: radial-gradient(420px 160px at 100% 0%, rgba(79, 214, 232, .14), transparent 70%), var(--surface); }
.cuenta.on { border-style: solid; border-color: rgba(94, 230, 168, .4); }
.cuenta b { font-family: var(--font-display); font-size: 1.05rem; }
.cuenta p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; max-width: 60ch; }
.cu-st.ok { color: var(--ok); } .cu-st.err { color: #ff8a8a; }

/* ============================================================
   v14 — Mascota en el hero (animación de poder) y logo con la mascota
   ============================================================ */
.brand img { filter: drop-shadow(0 0 8px rgba(155, 123, 255, .35)); transition: transform .3s; }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.hero-mascot { position: absolute; z-index: 1; right: clamp(-10px, 1vw, 24px); bottom: -6px; width: min(34%, 430px); aspect-ratio: 803 / 576; cursor: pointer; outline-offset: 4px; -webkit-tap-highlight-color: transparent; }
.hero.has-mascot .hero-in { max-width: min(760px, 64%); }
.hm-wrap { position: absolute; inset: 0; animation: hm-float 5s ease-in-out infinite; }
.hm-l { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.hm-base { opacity: 1; animation: hm-glow 3.2s ease-in-out infinite; }
.hm-power { opacity: 0; filter: drop-shadow(0 0 26px rgba(79, 214, 232, .6)); }
.hm-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(circle at 56% 46%, #fff 0, rgba(79, 214, 232, .95) 18%, rgba(155, 123, 255, .5) 38%, transparent 62%); }
.hm-ring { position: absolute; left: 56%; top: 46%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%; border: 3px solid var(--aurora); box-shadow: 0 0 24px var(--aurora), inset 0 0 24px var(--aurora); opacity: 0; transform: scale(.2); pointer-events: none; }
@keyframes hm-float { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-1.6%) rotate(.4deg); } }
@keyframes hm-glow { 0%, 100% { filter: drop-shadow(0 0 10px rgba(79, 214, 232, .18)); } 50% { filter: drop-shadow(0 0 22px rgba(79, 214, 232, .5)); } }
.hero-mascot.go .hm-base { animation: hm-b 2.2s both; }
.hero-mascot.go .hm-power { animation: hm-p 2.2s both; }
.hero-mascot.go .hm-flash { animation: hm-f 2.2s both; }
.hero-mascot.go .hm-ring { animation: hm-r 2.2s ease-out both; }
.hero-mascot.go .hm-wrap { animation: hm-shake 2.2s both; }
@keyframes hm-b { 0%, 15% { opacity: 1; } 18%, 80% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes hm-p { 0%, 15% { opacity: 0; } 18%, 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes hm-f { 0%, 10% { opacity: 0; } 16% { opacity: 1; } 30% { opacity: 0; } 78% { opacity: 0; } 82% { opacity: .55; } 92%, 100% { opacity: 0; } }
@keyframes hm-r { 0%, 12% { opacity: 0; transform: scale(.2); } 16% { opacity: 1; } 45%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes hm-shake { 0%, 8% { transform: none; } 10% { transform: translate(-1.2%, .4%) scale(1.03); } 12% { transform: translate(1.2%, -.4%) scale(1.04); } 14% { transform: translate(-.8%, .6%) scale(1.05); } 16% { transform: translate(.6%, -.4%) scale(1.04); } 20%, 100% { transform: translateY(-.8%) scale(1.01); } }
@media (max-width: 900px) {
  .hero.has-mascot { align-items: start; }
  .hero-mascot { position: relative; right: auto; bottom: auto; width: min(56%, 250px); margin: 14px auto -22px; }
  .hero.has-mascot .hero-in { max-width: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-wrap, .hm-base { animation: none !important; }
  .hero-mascot.go .hm-wrap, .hero-mascot.go .hm-flash, .hero-mascot.go .hm-ring { animation: none !important; }
  .hero-mascot.go .hm-base { animation: hm-rb 1.6s both !important; } .hero-mascot.go .hm-power { animation: hm-rp 1.6s both !important; }
}
@keyframes hm-rb { 0% { opacity: 1; } 20%, 70% { opacity: 0; } 100% { opacity: 1; } } @keyframes hm-rp { 0% { opacity: 0; } 20%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Cabecera con tu foto y nombre al iniciar sesión */
.topbar .btn.has-user { display: inline-flex; align-items: center; gap: 9px; padding: 4px 16px 4px 4px; max-width: 220px; }
.hd-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg-2); border: 2px solid rgba(255, 255, 255, .55); flex: none; }
.hd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a.has-user .tb-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--bg-2); border: 2px solid var(--sakura); }
@media (max-width: 760px) { .topbar .btn.has-user { padding: 3px; } .topbar .btn.has-user .hd-name { display: none; } }

/* Entrar / cuenta: pestañas, mensajes y sección "Tu cuenta" del perfil */
.nube-tabs { display: flex; gap: 6px; margin: 12px 0 4px; }
.nube-msg { margin: 0; } .nube-msg.ok { color: var(--ok); } .nube-msg.err { color: #ff9a9a; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--aurora); text-decoration: underline; cursor: pointer; }
.cuenta-box { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(160, 185, 255, .05); }
.cuenta-box h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.05rem; }
.cuenta-box details { border-top: 1px solid var(--line); padding: 10px 0; }
.cuenta-box summary { cursor: pointer; font-weight: 700; font-size: .92rem; }
.cuenta-box .stack { display: grid; gap: 8px; margin-top: 10px; }
.cuenta-box .stack .field { border-radius: var(--radius-sm); }
.cuenta-box .stack .btn { justify-self: start; }
.cuenta-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ============================================================
   v15 — Los ojos de Sasuke (WebGL): banner del inicio y página #/ojos
   ============================================================ */
.ob-card { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); background: #0b0b10; box-shadow: 0 30px 80px -40px rgba(155, 123, 255, .55), 0 0 0 1px rgba(255, 92, 147, .12); }
.ob-card::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; padding: 1px; background: linear-gradient(120deg, var(--sakura), var(--violet), var(--aurora), var(--sakura)); background-size: 300% 100%; animation: ob-borde 9s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
@keyframes ob-borde { to { background-position: 300% 0; } }
.ob-stage { position: relative; height: clamp(250px, 32vw, 440px); background: radial-gradient(500px 240px at 50% 40%, rgba(155, 123, 255, .14), transparent 70%), #0b0b10; }
.ob-stage canvas, .ojos-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s; }
.ob-stage canvas.lista, .ojos-hero canvas.lista { opacity: 1; }
.ojos-hero { position: relative; height: calc(100vh - 72px); min-height: 420px; background: #0b0b10; overflow: hidden; }
.ojos-info { max-width: 820px; padding-bottom: 60px; }
.ojos-info h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; margin: 6px 0 10px; }
.ojos-info .lead { color: #c4d1ee; }
.ojos-opts { margin-top: 18px; }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; font-weight: 600; }
.switch input { width: 20px; height: 20px; accent-color: var(--sakura); }
.switch small { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .ojos-hero { height: calc(100svh - 72px - 66px); }
}
@media (prefers-reduced-motion: reduce) { .ob-card::before { animation: none; } }

/* Pista de la página #/ojos */
.ojos-hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .5); opacity: .8; transition: opacity 1s; pointer-events: none; white-space: nowrap; backdrop-filter: blur(6px); }
.ojos-hint.off { opacity: 0; }

/* Pestañas bajo el banner de los ojos (sin texto): hoy Sasuke → Naruto */
.ob-tabs { display: flex; gap: 12px; padding: 0 clamp(18px, 4vw, 36px); margin-top: -2px; position: relative; z-index: 2; }
.ob-tab { position: relative; display: block; width: clamp(112px, 15vw, 150px); height: clamp(70px, 9vw, 92px); border-radius: 0 0 22px 22px; background: radial-gradient(90px 70px at 50% 85%, rgba(255, 255, 255, .28), transparent 70%), linear-gradient(165deg, #8b5cf6, #4c2bb8 55%, #1d1250); box-shadow: 0 16px 34px -14px rgba(139, 92, 246, .8), inset 0 -2px 0 rgba(255, 255, 255, .18); transition: transform .28s cubic-bezier(.2, 1.4, .4, 1), box-shadow .28s; outline-offset: 4px; }
.ob-tab img { position: absolute; left: 50%; bottom: 0; height: 175%; width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .28s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); pointer-events: none; user-select: none; }
.ob-tab:hover { transform: translateY(8px); box-shadow: 0 22px 40px -14px rgba(139, 92, 246, .95), inset 0 -2px 0 rgba(255, 255, 255, .25); }
.ob-tab:hover img, .ob-tab:focus-visible img { transform: translateX(-50%) scale(1.07) rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .ob-tab, .ob-tab img { transition: none; } .ob-tab:hover { transform: none; } }

/* ============================================================
   v16 — Top 10: corona al primero, podio de colores, tarjetas más juntas y números más visibles
   ============================================================ */
.rail.nums { grid-auto-columns: max-content; gap: 0; }
.rail.nums:has(.crown) { padding-top: 48px; }
.rail.nums.auto-run { scroll-snap-type: none; }
.ncard { padding-right: 16px; }
.ncard-n { color: rgba(160, 185, 255, .08); -webkit-text-stroke: 3px rgba(160, 185, 255, .62); }
.ncard:hover .ncard-n { -webkit-text-stroke-color: var(--sakura); }
.ncard.top .ncard-pic { border-width: 2px; }
.ncard.top-1 .ncard-col { width: 164px; }
.ncard.top-2 .ncard-col, .ncard.top-3 .ncard-col { width: 148px; }
.ncard.top-1 .ncard-n { color: rgba(255, 211, 77, .2); -webkit-text-stroke: 3.5px #ffd34d; filter: drop-shadow(0 0 16px rgba(255, 200, 60, .5)); }
.ncard.top-2 .ncard-n { color: rgba(223, 231, 245, .14); -webkit-text-stroke: 3px #dfe7f5; filter: drop-shadow(0 0 12px rgba(223, 231, 245, .3)); }
.ncard.top-3 .ncard-n { color: rgba(224, 146, 90, .16); -webkit-text-stroke: 3px #e0925a; filter: drop-shadow(0 0 12px rgba(224, 146, 90, .35)); }
.ncard.top-1 .ncard-pic { border-color: #ffd34d; box-shadow: 0 0 0 3px rgba(255, 211, 77, .22), 0 24px 54px -18px rgba(255, 200, 60, .7); }
.ncard.top-2 .ncard-pic { border-color: #dfe7f5; box-shadow: 0 0 0 2px rgba(223, 231, 245, .2), 0 18px 40px -18px rgba(223, 231, 245, .5); }
.ncard.top-3 .ncard-pic { border-color: #e0925a; box-shadow: 0 0 0 2px rgba(224, 146, 90, .22), 0 18px 40px -18px rgba(224, 146, 90, .55); }
.crown { position: absolute; z-index: 6; left: 50%; top: -42px; transform: translateX(-50%); width: 72px; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(255, 190, 40, .55)); animation: crown-flota 3.4s ease-in-out infinite; }
.crown svg { display: block; width: 100%; height: auto; }
.crown::after { content: ""; position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px rgba(255, 255, 255, .9); animation: crown-brillo 3.4s ease-in-out infinite; }
@keyframes crown-flota { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); } 50% { transform: translateX(-50%) translateY(-5px) rotate(2deg); } }
@keyframes crown-brillo { 0%, 70%, 100% { opacity: 0; transform: scale(.4); } 82% { opacity: 1; transform: scale(1); } }
/* las flechas de los lados solo aparecen al poner el cursor encima del carrusel que se mueve solo */
.rail-wrap.rail-auto .rail-btn { opacity: 0; transition: opacity .25s, background .2s, transform .2s; }
.rail-wrap.rail-auto:hover .rail-btn, .rail-wrap.rail-auto:focus-within .rail-btn { opacity: 1; }
@media (max-width: 760px) {
  .rail.nums:has(.crown) { padding-top: 44px; }
  .ncard { padding-right: 10px; }
  .ncard.top-1 .ncard-col { width: 134px; }
  .ncard.top-2 .ncard-col, .ncard.top-3 .ncard-col { width: 118px; }
  .crown { width: 60px; top: -36px; }
}
@media (prefers-reduced-motion: reduce) { .crown, .crown::after { animation: none; } .crown::after { display: none; } }
/* el número de los puestos de un solo dígito (sobre todo el 1, que es muy angosto) no se esconde detrás de la portada */
.ncard-n { min-width: 84px; text-align: center; margin-right: -22px; }
@media (max-width: 760px) { .ncard-n { min-width: 66px; margin-right: -18px; } }

/* ============================================================
   v17 — Tiendas locales de Tijuana, editoriales, Crunchyroll y página de alianzas
   ============================================================ */
.chip.chip-hl { border-color: rgba(255, 92, 147, .55); background: rgba(255, 92, 147, .1); color: var(--ice); font-weight: 700; }
.chip.chip-hl.cr { border-color: rgba(248, 139, 36, .7); background: rgba(248, 139, 36, .12); }
.tl-landing { margin-top: 26px; padding: clamp(24px, 5vw, 48px); border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(600px 280px at 100% 0%, rgba(255, 92, 147, .24), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(79, 214, 232, .14), transparent 70%), var(--surface); }
.tl-landing h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; margin: 10px 0 12px; }
.tl-landing h1 em { font-style: normal; background: linear-gradient(120deg, var(--sakura), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-landing .lead { color: #c4d1ee; max-width: 62ch; }
.tl-filtros { margin-top: 16px; }
.tlgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tlcard { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .25s, border-color .25s, box-shadow .25s; }
.tlcard:hover { transform: translateY(-4px); border-color: var(--sakura); box-shadow: 0 20px 40px -22px rgba(255, 92, 147, .6); }
.tlcard.dest { border-color: rgba(246, 200, 95, .55); background: radial-gradient(300px 140px at 100% 0%, rgba(246, 200, 95, .16), transparent 70%), var(--surface); }
.tl-logo { flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--sakura), var(--violet)); color: #fff; font: 800 1.8rem var(--font-display); }
.tl-logo.big { width: 110px; height: 110px; border-radius: 26px; font-size: 3.2rem; }
.tl-logo img { width: 100%; height: 100%; object-fit: cover; }
.tl-body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.tl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-top b { font-family: var(--font-display); font-size: 1.05rem; }
.tl-body small { color: var(--muted); } .tl-body p { margin: 2px 0; color: #c4d1ee; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge.gold { color: var(--gold); border-color: rgba(246, 200, 95, .6); } .badge.ok { color: var(--ok); border-color: rgba(94, 230, 168, .5); }
.tl-hero { display: flex; gap: 22px; align-items: center; margin-top: 18px; padding: clamp(20px, 4vw, 38px); border-radius: 26px; border: 1px solid var(--line-strong); background: radial-gradient(500px 240px at 100% 0%, rgba(255, 92, 147, .22), transparent 70%), var(--surface); flex-wrap: wrap; }
.tl-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 6px 0; }
.tlgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tlprod { display: grid; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.tlprod-img { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); overflow: hidden; }
.tlprod-img img { width: 100%; height: 100%; object-fit: cover; }
.tlprod-b { display: grid; gap: 6px; padding: 14px; } .tlprod-b b { font-family: var(--font-display); } .tlprod-b small { color: var(--muted); }
.tlprod-f { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .tlprod-f strong { color: var(--gold); font-size: 1.1rem; } .tlprod-f em { font-style: normal; color: var(--muted); font-size: .8rem; }
.pasos { counter-reset: p; display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.pasos li { counter-increment: p; position: relative; padding: 4px 0 4px 40px; color: #d6e0f5; }
.pasos li::before { content: counter(p); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem var(--font-display); color: var(--on-accent); background: var(--sakura); }
.pasos.grandes { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; } .pasos.grandes li { padding: 16px 16px 16px 52px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); } .pasos.grandes li::before { left: 14px; top: 14px; }
.tl-vacio { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 40px 20px; } .tl-vacio b { font: 800 1.3rem var(--font-display); } .tl-vacio span { color: var(--muted); max-width: 54ch; }
.tl-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tl-teaser { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius); border: 1px dashed rgba(255, 92, 147, .5); background: radial-gradient(400px 140px at 100% 0%, rgba(255, 92, 147, .16), transparent 70%), var(--surface); }
.tl-teaser b { display: block; font: 800 1.1rem var(--font-display); } .tl-teaser span:not(.btn) { color: var(--muted); }
.espacios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.espacio { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); } .espacio > span { font-size: 1.6rem; } .espacio b { display: block; margin: 6px 0 4px; font-family: var(--font-display); } .espacio p { margin: 0; color: var(--muted); font-size: .9rem; }
.colhero.cr-hero, .colbig.cr { border-color: rgba(248, 139, 36, .6); }
@media (max-width: 760px) { .tl-hero { flex-direction: column; align-items: flex-start; } .tl-logo.big { width: 84px; height: 84px; font-size: 2.4rem; } }
