/* ==========================================================================
   Sugar Reel — main stylesheet
   Colors marked "Customizer" are overridden inline from Appearance → Customize.
   ========================================================================== */

:root {
  --sr-primary: #f2668b;   /* Customizer */
  --sr-primary-2: #ff8a76; /* Customizer */
  --sr-accent: #8b7bff;    /* Customizer */
  --sr-bg: #0f0e12;        /* Customizer */
  --sr-surface: #18161d;   /* Customizer */
  --sr-surface-2: #211e27;
  --sr-surface-3: #2a2731;
  --sr-border: #2b2832;
  --sr-border-strong: #3b3744;
  --sr-text: #f5f3f8;
  --sr-muted: #aaa5b5;
  --sr-faint: #7b7686;
  --sr-success: #3ecf8e;
  --sr-danger: #ff5f6d;
  --sr-gold: #ffc65c;
  --sr-grad: linear-gradient(135deg, var(--sr-primary), var(--sr-primary-2));
  --sr-glow: 0 10px 30px -10px color-mix(in srgb, var(--sr-primary) 70%, transparent);
  --sr-radius: 14px;
  --sr-radius-sm: 10px;
  --sr-radius-lg: 22px;
  --sr-sidebar-w: 272px;
  --sr-topbar-h: 64px;
  --sr-font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sr-topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--sr-bg);
  color: var(--sr-text);
  font-family: var(--sr-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sr-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sr-primary); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--sr-primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.i { width: 1.15em; height: 1.15em; flex: none; }

/* App shell -------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sr-sidebar-w);
  background: var(--sr-surface);
  border-right: 1px solid var(--sr-border);
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.sidebar__head {
  height: var(--sr-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--sr-border);
  flex: none;
}
.sidebar__scroll { flex: 1; overflow-y: auto; padding: 14px 12px 18px; scrollbar-width: thin; scrollbar-color: var(--sr-surface-3) transparent; }
.sidebar__foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--sr-border); color: var(--sr-faint); font-size: 12px; }
.icon-btn.sidebar__close { display: none; }
.sidebar__widgets { margin-top: 18px; color: var(--sr-muted); font-size: 14px; }
.sidebar__widgets .widget__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sr-faint); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--sr-text); }
.logo:hover { color: var(--sr-text); }
.logo__mark { width: 34px; height: 34px; display: block; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--sr-primary) 45%, transparent)); }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; font-weight: 800; font-size: 16px; line-height: 1.05; letter-spacing: -.01em; }
.logo__text small { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sr-primary); margin-top: 3px; }
.custom-logo { max-height: 40px; width: auto; }

/* Sidebar navigation */
.side-nav__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.side-nav__list li { position: relative; min-width: 0; }
.side-nav__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--sr-radius-sm);
  color: var(--sr-muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: background .15s, color .15s;
}
.side-nav__list a:hover { background: var(--sr-surface-2); color: var(--sr-text); }
.side-nav__list .nav-icon { width: 20px; height: 20px; color: var(--sr-faint); transition: color .15s; }
.side-nav__list a:hover .nav-icon { color: var(--sr-text); }
.side-nav__list .current-menu-item > a,
.side-nav__list .current_page_item > a,
.side-nav__list .current-menu-ancestor > a,
.side-nav__list .current-page-ancestor > a {
  background: color-mix(in srgb, var(--sr-primary) 14%, transparent);
  color: var(--sr-text);
}
.side-nav__list .current-menu-item > a .nav-icon,
.side-nav__list .current-menu-ancestor > a .nav-icon { color: var(--sr-primary); }
.side-nav__list .current-menu-item > a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sr-grad);
}
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--sr-surface-3);
  color: var(--sr-muted);
}
.side-nav__list .menu-item-has-children > a { padding-right: 40px; }
.nav-sub-toggle {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--sr-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nav-sub-toggle:hover { background: var(--sr-surface-3); color: var(--sr-text); }
.nav-sub-toggle .i { transition: transform .2s; }
.side-nav .sub-menu { list-style: none; margin: 2px 0 6px 22px; padding: 0 0 0 12px; border-left: 1px solid var(--sr-border); display: none; }
.side-nav .is-open > .sub-menu,
.side-nav .current-menu-ancestor > .sub-menu,
.side-nav .current-menu-parent > .sub-menu { display: grid; gap: 1px; }
.side-nav .is-open > .nav-sub-toggle .i,
.side-nav .current-menu-ancestor > .nav-sub-toggle .i { transform: rotate(180deg); }
.side-nav .sub-menu a { padding: 7px 10px; font-size: 13.5px; font-weight: 500; }
.side-nav .sub-menu .nav-icon { width: 16px; height: 16px; }
.side-nav .sub-menu .current-menu-item > a::before { display: none; }
.side-nav--secondary { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sr-border); }
.side-nav__label { margin: 0 0 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sr-faint); }
.side-nav--secondary .side-nav__list a { padding: 8px 12px; font-size: 13.5px; }

/* Sidebar promo */
.promo {
  position: relative;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--sr-radius);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--sr-primary) 30%, transparent), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--sr-accent) 22%, transparent), transparent 60%),
    var(--sr-surface-2);
  border: 1px solid var(--sr-border-strong);
  overflow: hidden;
}
.promo__badge { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--sr-grad); color: #fff; }
.promo__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-right: 54px; font-weight: 800; }
.promo__title .i { color: var(--sr-gold); }
.promo__text { margin: 0 0 6px; font-size: 13px; color: var(--sr-muted); line-height: 1.45; }
.promo__price { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--sr-text); }

.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1.5px solid var(--sr-danger);
  color: var(--sr-danger);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
}

.main-wrap { flex: 1; min-width: 0; margin-left: var(--sr-sidebar-w); display: flex; flex-direction: column; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--sr-topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--sr-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sr-border);
}
.icon-btn.topbar__menu, .topbar__logo { display: none; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sr-search {
  position: relative;
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
}
.sr-search .i { position: absolute; left: 14px; color: var(--sr-faint); pointer-events: none; }
.sr-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--sr-border);
  background: var(--sr-surface);
  color: var(--sr-text);
  transition: border-color .15s, background .15s;
}
.sr-search input::placeholder { color: var(--sr-faint); }
.sr-search input:focus { outline: none; border-color: var(--sr-primary); background: var(--sr-surface-2); }
.sr-search--sidebar { display: none; margin-bottom: 14px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--sr-border);
  background: var(--sr-surface);
  color: var(--sr-text);
  cursor: pointer;
}
.icon-btn .i { width: 20px; height: 20px; }

.main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 32px 64px; flex: 1; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--sr-grad); color: #fff; box-shadow: var(--sr-glow); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--sr-primary) 85%, transparent); }
.btn--ghost { background: var(--sr-surface); border-color: var(--sr-border-strong); color: var(--sr-text); }
.btn--ghost:hover { color: var(--sr-text); border-color: var(--sr-primary); background: var(--sr-surface-2); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn__count { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--sr-surface-3); color: var(--sr-muted); }

/* Badges & chips ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(15, 14, 18, .78);
  backdrop-filter: blur(6px);
  color: #fff;
  white-space: nowrap;
}
.badge .i { width: 12px; height: 12px; }
.badge--new { background: color-mix(in srgb, var(--sr-accent) 88%, black); }
.badge--spicy { background: linear-gradient(135deg, #ff4d5e, #ff8a3d); }
.badge--free { background: color-mix(in srgb, var(--sr-success) 80%, black); }
.badge--creator { background: linear-gradient(135deg, #e6a93a, #ffcf6e); color: #2a1b00; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sr-border);
  background: var(--sr-surface);
  color: var(--sr-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.chip span { font-size: 12px; color: var(--sr-faint); }
.chip:hover { color: var(--sr-text); border-color: var(--sr-border-strong); }
.chip.is-active { background: color-mix(in srgb, var(--sr-primary) 16%, var(--sr-surface)); border-color: var(--sr-primary); color: var(--sr-text); }
.chip.is-active span { color: var(--sr-primary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--sr-border-strong);
  background: var(--sr-surface);
  color: var(--sr-muted);
  font-size: 13px;
  font-weight: 600;
}
.eyebrow .i { color: var(--sr-primary); }
.kicker { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sr-primary); }

/* Sections ---------------------------------------------------------------- */
.section { margin-top: 52px; }
.section--narrow { max-width: 860px; }
.section--panel { padding: 32px; border-radius: var(--sr-radius-lg); border: 1px solid var(--sr-border); background: var(--sr-surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.section-title--sm { font-size: 18px; margin-bottom: 14px; }
.section-sub { margin: 8px 0 0; color: var(--sr-muted); max-width: 720px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--sr-primary); white-space: nowrap; }
.link-more .i { width: 16px; height: 16px; transition: transform .15s; }
.link-more:hover .i { transform: translateX(3px); }

/* Grids & rails */
.grid { display: grid; gap: 18px; }
.grid--posters { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid--tools { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 176px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--sr-surface-3) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail--twins { grid-auto-columns: 200px; }

/* Cards ------------------------------------------------------------------- */
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--sr-text); }
.card__link:hover { color: var(--sr-text); }
.card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--sr-radius);
  overflow: hidden;
  background: var(--sr-surface-2);
  border: 1px solid var(--sr-border);
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card__poster::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.card__link:hover .card__poster img { transform: scale(1.05); }
.card__badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; }
.card__play {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sr-grad);
  color: #fff;
  box-shadow: var(--sr-glow);
  opacity: 0;
  transform: translateY(6px);
  transition: all .2s;
}
.card__play .i { width: 16px; height: 16px; fill: currentColor; }
.card__link:hover .card__play, .card__link:focus-visible .card__play { opacity: 1; transform: none; }
.card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 2px 0; }
.card__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card__link:hover .card__title { color: var(--sr-primary); }
.card__meta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--sr-faint); }
.card__meta .i { width: 14px; height: 14px; }
.card__text { font-size: 14px; color: var(--sr-muted); line-height: 1.5; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sr-faint); background: linear-gradient(160deg, var(--sr-surface-2), var(--sr-surface-3)); }
.poster-fallback .i { width: 42px; height: 42px; }

.card.is-hidden { display: none; }

.card--tool .card__link {
  gap: 10px;
  padding: 20px;
  border-radius: var(--sr-radius);
  border: 1px solid var(--sr-border);
  background: var(--sr-surface-2);
  transition: border-color .15s, transform .15s, background .15s;
}
.section--panel .card--tool .card__link { background: var(--sr-bg); }
.card--tool .card__link:hover { border-color: color-mix(in srgb, var(--sr-primary) 60%, transparent); transform: translateY(-2px); }
.card--tool .card__title { font-size: 17px; }
.card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--sr-primary); }
.card__more .i { width: 15px; height: 15px; }
.tool-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--sr-primary) 16%, transparent);
  color: var(--sr-primary);
  border: 1px solid color-mix(in srgb, var(--sr-primary) 30%, transparent);
}
.tool-icon .i { width: 22px; height: 22px; }
.tool-icon--lg { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px; }
.tool-icon--lg .i { width: 28px; height: 28px; }

.card--post .card__link { border-radius: var(--sr-radius); border: 1px solid var(--sr-border); background: var(--sr-surface); overflow: hidden; transition: border-color .15s, transform .15s; }
.card--post .card__link:hover { border-color: var(--sr-border-strong); transform: translateY(-2px); }
.card--post .card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sr-surface-2); }
.card--post .card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card--post .card__body { padding: 18px 20px 20px; gap: 8px; flex: 1; }
.card--post .card__title { font-size: 17.5px; }
.card--post .card__meta { margin-top: auto; }
.card__kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sr-primary); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters__empty { color: var(--sr-muted); }

/* Stats */
.stats { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 18px; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); background: var(--sr-surface); }
.stat dt { font-size: 13px; color: var(--sr-faint); font-weight: 600; margin-bottom: 4px; }
.stat dd { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat dd small { font-size: 14px; font-weight: 600; color: var(--sr-muted); margin-left: 3px; }
.stat--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--sr-primary) 22%, var(--sr-surface)), var(--sr-surface)); border-color: color-mix(in srgb, var(--sr-primary) 40%, transparent); }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.pricing > .table-wrap { grid-row: span 3; }
.pricing > .checklist, .pricing > .plans__note { grid-column: 2; }
.pricing > .checklist--inline { grid-template-columns: 1fr; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  border-radius: var(--sr-radius);
  border: 1px solid var(--sr-border);
  background: var(--sr-surface);
  text-align: center;
}
.plan--featured { border-color: var(--sr-primary); background: linear-gradient(180deg, color-mix(in srgb, var(--sr-primary) 16%, var(--sr-surface)), var(--sr-surface)); box-shadow: var(--sr-glow); }
.plan__badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--sr-grad); color: #fff; }
.plan:not(.plan--featured) .plan__badge { background: var(--sr-surface-3); color: var(--sr-text); }
.plan__name { margin: 0 0 6px; font-weight: 700; color: var(--sr-muted); }
.plan__price { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.plan__price strong { font-size: 30px; letter-spacing: -.02em; }
.plan__price span { color: var(--sr-muted); font-size: 14px; }
.plan__billed { margin: 4px 0 16px; font-size: 12.5px; color: var(--sr-faint); min-height: 2.6em; }
.plan .btn { margin-top: auto; }
.plans__note { margin: 14px 0 0; font-size: 13px; color: var(--sr-faint); }

.table-wrap { overflow-x: auto; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); }
.compare { width: 100%; border-collapse: collapse; background: var(--sr-surface); font-size: 14.5px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--sr-border); }
.compare thead th { font-size: 13px; color: var(--sr-muted); background: var(--sr-surface-2); }
.compare tbody th { font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.compare td { color: var(--sr-muted); text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare__premium { background: color-mix(in srgb, var(--sr-primary) 7%, transparent); }
thead .compare__premium { color: var(--sr-text) !important; }
thead .compare__premium .i { display: inline; vertical-align: -3px; margin-right: 6px; color: var(--sr-gold); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.compare .yes { background: color-mix(in srgb, var(--sr-success) 18%, transparent); color: var(--sr-success); }
.compare .no { background: color-mix(in srgb, var(--sr-danger) 14%, transparent); color: var(--sr-danger); }
.compare .yes .i, .compare .no .i { width: 14px; height: 14px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .i { color: var(--sr-success); width: 18px; height: 18px; margin-top: 3px; }
.checklist--inline { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); font-size: 14px; color: var(--sr-muted); }

/* Final CTA */
.final-cta {
  margin-top: 60px;
  padding: 48px 32px;
  text-align: center;
  border-radius: var(--sr-radius-lg);
  border: 1px solid color-mix(in srgb, var(--sr-primary) 35%, transparent);
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--sr-primary) 28%, transparent), transparent 70%),
    var(--sr-surface);
}
.final-cta h2 { font-size: clamp(24px, 2.6vw, 34px); }
.final-cta p { max-width: 640px; margin: 0 auto 24px; color: var(--sr-muted); }

/* Disclosure */
.disclosure { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: var(--sr-radius-sm); background: var(--sr-surface); border: 1px dashed var(--sr-border-strong); font-size: 13px; color: var(--sr-faint); }
.disclosure .i { color: var(--sr-muted); margin-top: 2px; }
.disclosure--footer { margin: 0 0 12px; background: transparent; }

/* Page heads & breadcrumbs ------------------------------------------------ */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--sr-faint); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--sr-border-strong); }
.crumbs a { color: var(--sr-muted); }
.crumbs a:hover { color: var(--sr-primary); }
.page-head { max-width: 860px; }
.page-title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; margin-bottom: 14px; }
.page-lead { font-size: 18px; color: var(--sr-muted); margin-bottom: 16px; }
.page-intro { color: var(--sr-muted); font-size: 17px; }

/* Guides */
.guide-head { max-width: 860px; margin-bottom: 26px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 14px; color: var(--sr-faint); }
.guide-meta span { display: inline-flex; align-items: center; gap: 6px; }
.guide-meta .i { width: 16px; height: 16px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 780px); gap: 48px; }
.content-layout--toc { grid-template-columns: minmax(0, 780px) 280px; }
.content-aside__sticky { position: sticky; top: calc(var(--sr-topbar-h) + 20px); display: grid; gap: 16px; }
.toc { padding: 18px; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); background: var(--sr-surface); font-size: 14px; }
.toc__title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.toc__title .i { color: var(--sr-primary); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: var(--sr-faint); }
.toc a { color: var(--sr-muted); }
.toc a:hover, .toc a.is-active { color: var(--sr-primary); }
.toc-mobile { display: none; margin-bottom: 24px; }
.aside-cta { padding: 18px; border-radius: var(--sr-radius); border: 1px solid color-mix(in srgb, var(--sr-primary) 40%, transparent); background: linear-gradient(170deg, color-mix(in srgb, var(--sr-primary) 16%, var(--sr-surface)), var(--sr-surface)); font-size: 14px; color: var(--sr-muted); }
.aside-cta__title { display: flex; align-items: center; gap: 8px; color: var(--sr-text); font-weight: 800; margin-bottom: 6px; }
.aside-cta__title .i { color: var(--sr-primary); }

/* Short answer box */
.answer-box {
  position: relative;
  margin: 24px 0 28px;
  padding: 20px 22px;
  border-radius: var(--sr-radius);
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  overflow: hidden;
}
.answer-box::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sr-grad); }
.answer-box__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sr-primary); }
.answer-box__head span { display: inline-flex; align-items: center; gap: 6px; }
.answer-box__date { color: var(--sr-faint); font-weight: 600; letter-spacing: 0; text-transform: none; }
.answer-box p { margin: 0; font-size: 16.5px; line-height: 1.65; }
.answer-box .checklist { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sr-border); font-size: 15px; color: var(--sr-muted); }

/* Prose ------------------------------------------------------------------- */
.prose { font-size: 17px; line-height: 1.75; color: #dedbe4; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 1.8em 0 .6em; color: var(--sr-text); }
.prose h3 { font-size: 20px; margin: 1.5em 0 .5em; color: var(--sr-text); }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--sr-primary); }
.prose strong { color: var(--sr-text); }
.prose a { color: var(--sr-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--sr-primary-2); }
.prose a.btn { text-decoration: none; color: #fff; }
.prose blockquote { padding: 14px 20px; border-left: 3px solid var(--sr-accent); background: var(--sr-surface); border-radius: 0 var(--sr-radius-sm) var(--sr-radius-sm) 0; color: var(--sr-muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; border-radius: var(--sr-radius-sm); border-style: hidden; box-shadow: 0 0 0 1px var(--sr-border); }
.prose thead { background: var(--sr-surface-2); }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--sr-border); text-align: left; vertical-align: top; }
.prose th { color: var(--sr-text); font-size: 14px; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--sr-surface) 60%, transparent); }
.prose tr:last-child td { border-bottom: 0; }
.prose img { border-radius: var(--sr-radius); }
.prose--home { max-width: 860px; }
.aff-link { font-weight: 700; }

/* CTA box (shortcode) */
.cta-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: var(--sr-radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--sr-surface), var(--sr-surface)) padding-box,
    var(--sr-grad) border-box;
}
.cta-box__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--sr-primary) 18%, transparent); color: var(--sr-primary); }
.cta-box__icon .i { width: 20px; height: 20px; fill: currentColor; }
.cta-box__text { flex: 1; min-width: 0; }
.prose .cta-box__title, .cta-box__title { margin: 0 0 2px; font-weight: 800; font-size: 17px; color: var(--sr-text); line-height: 1.35; }
.prose .cta-box__note, .cta-box__note { margin: 0; font-size: 13px; color: var(--sr-faint); line-height: 1.4; }

/* FAQ */
.faq { margin-top: 40px; }
.faq .section-title { margin-bottom: 16px; }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: var(--sr-radius); border: 1px solid var(--sr-border); background: var(--sr-surface); transition: border-color .15s; }
.faq__item[open] { border-color: var(--sr-border-strong); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { color: var(--sr-faint); transition: transform .2s; }
.faq__item[open] summary .i { transform: rotate(180deg); color: var(--sr-primary); }
.faq__a { padding: 0 20px 16px; color: var(--sr-muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* Genre links, 404, empty */
.genre-links { margin-top: 40px; }
.notfound { text-align: center; max-width: 620px; margin-inline: auto; }
.notfound__code { font-size: 96px; font-weight: 900; line-height: 1; margin: 0 0 8px; background: var(--sr-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-form { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.search-form .search-field { height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--sr-border); background: var(--sr-surface); min-width: 0; flex: 1; max-width: 360px; }
.search-form .search-submit { height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--sr-grad); color: #fff; font-weight: 700; cursor: pointer; }
.empty { padding: 32px; text-align: center; border-radius: var(--sr-radius); border: 1px dashed var(--sr-border-strong); color: var(--sr-muted); }

/* Pagination */
.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--sr-border); background: var(--sr-surface); font-weight: 700; }
.page-numbers.current { background: var(--sr-grad); border-color: transparent; color: #fff; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--sr-border); background: var(--sr-surface); padding: 40px 32px 28px; }
.site-footer__grid { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.site-footer__about p { margin: 14px 0 18px; color: var(--sr-muted); font-size: 14px; max-width: 420px; }
.site-footer__title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sr-faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer ul a { color: var(--sr-muted); }
.site-footer ul a:hover { color: var(--sr-primary); }
.site-footer__bottom { max-width: 1260px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--sr-border); }
.site-footer__copy { margin: 0; font-size: 12.5px; color: var(--sr-faint); }


/* Age gate ---------------------------------------------------------------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 7, 10, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html.age-ok .age-gate { display: none; }
html:not(.age-ok) body.has-age-gate { overflow: hidden; }
.age-gate__box { width: 100%; max-width: 440px; padding: 32px 28px 26px; border-radius: var(--sr-radius-lg); background: var(--sr-surface); border: 1px solid var(--sr-border-strong); text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.age-gate__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--sr-danger); color: var(--sr-danger); font-weight: 900; font-size: 20px; margin-bottom: 16px; }
.age-gate__title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.age-gate__text { color: var(--sr-muted); font-size: 15px; }
.age-gate__actions { display: grid; gap: 10px; margin-top: 20px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1280px) {
  .content-layout--toc { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
  .pricing { grid-template-columns: 1fr; }
  .pricing > .checklist, .pricing > .plans__note { grid-column: auto; }
  .pricing > .table-wrap { grid-row: auto; }
  .pricing > .checklist--inline { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

@media (max-width: 1100px) {
  .content-layout--toc { grid-template-columns: minmax(0, 1fr); }
  .content-aside { display: none; }
  .toc-mobile { display: block; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: none; width: min(300px, 86vw); }
  .is-sidebar-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  .icon-btn.sidebar__close { display: grid; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); }
  .sidebar-overlay[hidden] { display: none; }
  .is-sidebar-open { overflow: hidden; }
  .main-wrap { margin-left: 0; }
  .topbar { padding: 0 16px; gap: 12px; }
  .icon-btn.topbar__menu { display: grid; }
  .topbar__logo { display: block; }
  .topbar__logo .logo__text small { display: none; }
  .sr-search { max-width: none; }
  .main { padding: 22px 20px 56px; }
}

@media (max-width: 760px) {
  .topbar .sr-search { display: none; }
  .sr-search--sidebar { display: flex; }
  .topbar__logo { flex: 1; }
  .topbar__actions .age-badge { display: none; }
  .main { padding: 18px 16px 90px; }
  .section { margin-top: 40px; }
  .section--panel { padding: 20px 16px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid--posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid--posts { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 148px; margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  .rail--twins { grid-auto-columns: 160px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat dd { font-size: 24px; }
  .plans { grid-template-columns: 1fr; gap: 18px; }
  .plan__billed { min-height: 0; }
  .cta-box { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-box__icon { margin: 0 auto; }
  .cta-box .btn { white-space: normal; height: auto; min-height: 46px; padding: 12px 18px; line-height: 1.25; }
  .prose { font-size: 16.5px; }
  .prose table { display: block; overflow-x: auto; }
  .site-footer { padding: 32px 16px 96px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }

}

@media (max-width: 420px) {
  .topbar__cta { padding: 0 12px; font-size: 13px; }
  .topbar__cta .i { display: none; }
  .logo__text { font-size: 15px; }
}

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

/* Logged-in editors: keep the shell below the WordPress admin bar */
.admin-bar .sidebar, .admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .sidebar, .admin-bar .topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } .admin-bar .sidebar { top: 0; } }

/* ==========================================================================
   Mobile-first components (hero, item body, tab bar)
   Base rules target phones; min-width queries add the desktop layout.
   ========================================================================== */

/* Sidebar icons: never shrink, never overlap the label */
.side-nav__list a > .i { flex: 0 0 auto; }
.side-nav__list .nav-label { display: block; }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "media" "cta";
  gap: 18px;
  padding: 18px 16px 20px;
  border-radius: var(--sr-radius-lg);
  border: 1px solid var(--sr-border);
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--sr-primary) 24%, transparent), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, color-mix(in srgb, var(--sr-accent) 16%, transparent), transparent 70%),
    var(--sr-surface);
  overflow: hidden;
}
.hero--noimg { grid-template-areas: "top" "cta"; }
.hero__top { grid-area: top; min-width: 0; }
.hero__media { grid-area: media; }
.hero__cta { grid-area: cta; min-width: 0; }
.hero .crumbs ol { margin-bottom: 12px; font-size: 13px; }
.hero__kicker { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero__kicker .eyebrow, .hero__kicker .kicker { margin: 0; }
.hero__kicker .item-badges { margin: 0; }
.hero__kicker .tool-icon { width: 44px; height: 44px; }
.hero__title { font-size: clamp(26px, 7.2vw, 34px); line-height: 1.12; margin: 0 0 10px; letter-spacing: -.015em; }
.hero__lead { font-size: 15.5px; line-height: 1.55; color: var(--sr-muted); margin: 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 13px; color: var(--sr-faint); }
.hero__meta span, .hero__meta { align-items: center; }
.hero__meta span { display: inline-flex; gap: 6px; }
.hero__meta .i { width: 15px; height: 15px; }
.hero__actions { display: grid; gap: 10px; }
.hero__btn { width: 100%; }
.hero__btn2 { width: 100%; height: 46px; font-size: 15px; }
.hero__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--sr-faint); text-align: center; }
.hero__note .i { width: 14px; height: 14px; flex: none; }
.hero__chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--sr-muted); }
.hero__chips li { display: inline-flex; align-items: center; gap: 5px; }
.hero__chips .i { width: 15px; height: 15px; color: var(--sr-success); }
.notfound__code { font-size: 44px; font-weight: 900; line-height: 1; background: var(--sr-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero images: fanned posters */
.hero__media { position: relative; height: 210px; }
.hero__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--sr-surface-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .85);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--0 { z-index: 5; width: 35%; transform: translate(-50%, -50%); }
.hero__img--1 { z-index: 4; transform: translate(-106%, -47%) rotate(-7deg); }
.hero__img--2 { z-index: 4; transform: translate(6%, -47%) rotate(7deg); }
.hero__img--3 { z-index: 3; transform: translate(-146%, -42%) rotate(-13deg) scale(.86); opacity: .7; }
.hero__img--4 { z-index: 3; transform: translate(46%, -42%) rotate(13deg) scale(.86); opacity: .7; }
.hero__media[data-count="1"] { height: 250px; }
.hero__media[data-count="1"] .hero__img--0 { width: auto; height: 100%; transform: translate(-50%, -50%) rotate(-2deg); }
.hero__media[data-count="2"] .hero__img--0 { transform: translate(-90%, -50%) rotate(-5deg); width: 33%; }
.hero__media[data-count="2"] .hero__img--1 { transform: translate(-8%, -50%) rotate(5deg); width: 33%; }

/* Facts list (series / AI twin details) */
.facts { margin: 0; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); overflow: hidden; }
.facts > div { display: flex; }
.facts dt { color: var(--sr-faint); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd a { color: var(--sr-primary); }

/* Item body (series, twins, tools): facts first on phones, sidebar on desktop */
.item-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.item-aside__sticky { display: grid; gap: 14px; }
.aside-cta--desktop { display: none; }
.item-main { min-width: 0; }
.item-main > .answer-box:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--sr-border); }
.facts > div { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 10px 12px; border: 0; background: var(--sr-surface); }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.facts dd { text-align: left; font-size: 14px; }
.feature-card { padding: 18px; border-radius: var(--sr-radius); border: 1px solid var(--sr-border-strong); background: var(--sr-surface); }
.feature-card__title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 12px; }
.feature-card__title .i { color: var(--sr-primary); }
.item-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.item-badges .badge { height: 26px; padding: 0 10px; font-size: 12px; }

/* Collapsible TOC on phones */
details.toc-mobile { margin: 0 0 22px; border-radius: var(--sr-radius); border: 1px solid var(--sr-border); background: var(--sr-surface); }
details.toc-mobile summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 800; }
details.toc-mobile summary::-webkit-details-marker { display: none; }
details.toc-mobile summary > .i:first-child { color: var(--sr-primary); }
details.toc-mobile summary span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--sr-surface-3); color: var(--sr-muted); }
details.toc-mobile summary > .i:last-child { margin-left: auto; color: var(--sr-faint); transition: transform .2s; }
details.toc-mobile[open] summary > .i:last-child { transform: rotate(180deg); }
details.toc-mobile .toc { border: 0; background: transparent; padding-top: 0; }
details.toc-mobile .toc__title { display: none; }

/* Bottom tab bar (phones & tablets) */
.tabbar { display: none; }
.topbar__search { display: none; }

@media (max-width: 1024px) {
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 58;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--sr-surface) 94%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--sr-border);
  }
  .tabbar a { -webkit-tap-highlight-color: transparent; }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 62px; font-size: 11px; font-weight: 700; color: var(--sr-faint); }
  .tabbar__item .i { width: 22px; height: 22px; }
  .tabbar__item.is-active { color: var(--sr-text); }
  .tabbar__item.is-active .i { color: var(--sr-primary); }
  .tabbar__cta { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 62px; padding-bottom: 7px; font-size: 11px; font-weight: 800; color: var(--sr-text); }
  .tabbar__cta:hover { color: var(--sr-text); }
  .tabbar__cta-icon { width: 54px; height: 54px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; background: var(--sr-grad); color: #fff; box-shadow: var(--sr-glow), 0 0 0 4px var(--sr-bg); }
  .tabbar__cta-icon .i { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
  .main-wrap { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .topbar { height: 56px; }
  :root { --sr-topbar-h: 56px; }
  .topbar__cta { display: none; }
  .topbar__actions .age-badge { display: inline-grid; }
  .icon-btn.topbar__search { display: grid; }
  .topbar__logo .logo__text { font-size: 15px; white-space: nowrap; }
  .topbar__logo .logo__mark { width: 30px; height: 30px; }
  .icon-btn { width: 40px; height: 40px; }
  .site-footer { padding-bottom: 32px; }
  .chip { height: 40px; }
}

@media (max-width: 760px) {
  .main { padding: 14px 12px 40px; }
  .hero { gap: 14px; padding: 16px 14px 18px; }
  .hero .eyebrow { font-size: 12px; padding: 5px 10px; }
  .hero__lead { font-size: 15px; }
  .hero__media { height: 186px; }
  .hero__media[data-count="1"] { height: 236px; }
  .hero__btn2 { height: 40px; font-size: 14px; border-color: var(--sr-border); }
  .hero .crumbs li:last-child { display: none; }
  .hero .crumbs li:nth-last-child(2)::after { display: none; }
  .hero { border-radius: var(--sr-radius); margin-inline: -2px; }
  .section { margin-top: 36px; }
  .faq__item summary { padding: 15px 16px; font-size: 15.5px; }
  .faq__a { padding: 0 16px 14px; }
}

@media (min-width: 761px) {
  .hero__media { height: 260px; }
  .hero__media[data-count="1"] { height: 300px; }
}

@media (min-width: 1025px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    grid-template-areas: "top media" "cta media";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    row-gap: 24px;
    padding: 36px 40px;
  }
  .hero--noimg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "cta"; }
  .hero__title { font-size: clamp(30px, 3vw, 44px); }
  .hero--home .hero__title { font-size: clamp(32px, 3.5vw, 50px); }
  .hero__lead { font-size: 17px; max-width: 640px; }
  .hero__media { align-self: center; height: 340px; }
  .hero__media[data-count="1"] { height: 380px; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__btn, .hero__btn2 { width: auto; }
  .hero__btn2 { height: 52px; font-size: 16px; }
  .hero__note, .hero__chips { justify-content: flex-start; text-align: left; }
  .item-body { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main aside"; gap: 44px; margin-top: 32px; }
  .item-aside { grid-area: aside; }
  .item-main { grid-area: main; max-width: 780px; }
  .item-aside__sticky { position: sticky; top: calc(var(--sr-topbar-h) + 20px); }
  .aside-cta--desktop { display: block; padding: 0; border: 0; background: none; }
  .facts { display: block; background: var(--sr-surface); }
  .facts > div { flex-direction: row; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--sr-border); }
  .facts > div:last-child { border-bottom: 0; }
  .facts dt { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .facts dd { text-align: right; }
}

/* Search results page */
.hero__after { margin-top: 16px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; }
.hero-search > .i { position: absolute; left: 16px; color: var(--sr-faint); pointer-events: none; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px 0 46px;
  border-radius: 999px;
  border: 1px solid var(--sr-border-strong);
  background: var(--sr-bg);
  color: var(--sr-text);
  font-size: 16px; /* 16px prevents iOS zoom on focus */
}
.hero-search input:focus { outline: none; border-color: var(--sr-primary); }
.hero-search .btn { height: 50px; flex: none; }
.search-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
@media (max-width: 760px) {
  .hero-search .btn { padding: 0 14px; }
  .search-jump { overflow-x: auto; flex-wrap: nowrap; margin-inline: -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .search-jump .chip { flex: none; }
}

/* Right sidebar (wide screens) -------------------------------------------- */
.content-wrap { display: flex; align-items: flex-start; flex: 1; min-width: 0; }
.content-wrap > .main { flex: 1; min-width: 0; }
.rightbar { display: none; }

@media (min-width: 1480px) {
  .rightbar {
    display: block;
    flex: none;
    width: 300px;
    position: sticky;
    top: var(--sr-topbar-h);
    max-height: calc(100vh - var(--sr-topbar-h));
    overflow-y: auto;
    padding: 22px 16px 28px;
    border-left: 1px solid var(--sr-border);
    background: color-mix(in srgb, var(--sr-surface) 55%, transparent);
    scrollbar-width: thin;
    scrollbar-color: var(--sr-surface-3) transparent;
  }
  .admin-bar .rightbar { top: calc(var(--sr-topbar-h) + 32px); max-height: calc(100vh - var(--sr-topbar-h) - 32px); }
  .content-wrap > .main { padding-inline: 28px; }
}

.rb-block + .rb-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sr-border); }
.rb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rb-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sr-faint); }
.rb-title .i { width: 16px; height: 16px; color: var(--sr-primary); }
.rb-more { font-size: 13px; font-weight: 700; color: var(--sr-primary); }
.rb-twins, .rb-series { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rb-twins li { display: flex; align-items: center; gap: 6px; }
.rb-twin, .rb-serie { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: var(--sr-radius-sm); color: var(--sr-text); transition: background .15s; }
.rb-twin:hover, .rb-serie:hover { background: var(--sr-surface-2); color: var(--sr-text); }
.rb-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--sr-surface-3); box-shadow: 0 0 0 2px var(--sr-bg), 0 0 0 4px color-mix(in srgb, var(--sr-primary) 70%, transparent); }
.rb-avatar img, .rb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rb-thumb { flex: none; width: 42px; height: 63px; border-radius: 8px; overflow: hidden; background: var(--sr-surface-3); border: 1px solid var(--sr-border); }
.rb-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rb-text strong { font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-serie .rb-text strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rb-text small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--sr-faint); }
.rb-twin:hover strong, .rb-serie:hover strong { color: var(--sr-primary); }
.rb-tag { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--sr-accent) 88%, black); }
.rb-tag--eps { background: var(--sr-grad); }
.rb-tag--spicy { background: linear-gradient(135deg, #ff4d5e, #ff8a3d); }
.rb-chat { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--sr-primary); background: color-mix(in srgb, var(--sr-primary) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sr-primary) 35%, transparent); transition: background .15s, color .15s; }
.rb-chat:hover { background: var(--sr-grad); color: #fff; }
.rb-chat .i { width: 16px; height: 16px; }
