/* V3: responsive reference layout for the independent staging frontend.
   New page classes deliberately isolate these rules from playback and account UI. */
.consumer.v3-layout {
  --v3-bg: #0f0f0f;
  --v3-header: #282828;
  --v3-pink: #ec237f;
  --v3-muted: rgba(255,255,255,.55);
  --v3-gutter: 60px;
  --v3-header-height: clamp(68px, 4.722222vw, 90px);
  --accent: #ec237f;
  --juhe-accent: #ec237f;
  --juhe-canvas: #0f0f0f;
  --juhe-surface: #1b1b1b;
  --juhe-muted: rgba(255,255,255,.55);
  width: 100%;
  max-width: none;
  background: var(--v3-bg);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(.consumer.v3-layout > .home) { padding-bottom: 0 !important; background: #0f0f0f; }
/* The account page already presents quota; keep browsing surfaces unobstructed. */
body:has(.consumer.v3-layout > .home) > #hg-entitlement,
body:has(.v3-entry-modal) > #hg-entitlement { display: none !important; }
.consumer.v3-layout:not(.is-watching) { padding-top: 0 !important; }
.consumer.v3-layout > .home {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--v3-bg);
}
.consumer.v3-layout > .home > .v3-home {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.consumer.v3-layout :is(.v3-home,.v3-category-page) :is(button,a):focus-visible,
.consumer.v3-layout .v3-header :is(button,a):focus-visible {
  outline: 2px solid var(--v3-pink);
  outline-offset: 3px;
}

/* Navigation remains in normal flow; no duplicate fixed-header spacer. */
.consumer.v3-layout:not(.is-watching) > .topbar.v3-header {
  position: sticky !important;
  top: 0;
  z-index: 70;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  width: 100%;
  height: var(--v3-header-height) !important;
  min-height: var(--v3-header-height) !important;
  padding: 0 var(--v3-gutter) !important;
  border: 0 !important;
  background: var(--v3-header) !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
.consumer.v3-layout .v3-header .brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
}
.consumer.v3-layout .v3-header .brand > span:not(.b2-home-brand) {
  font-size: 23px !important;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.5px;
  color: #fff;
}
.consumer.v3-layout .v3-header .brand small { display: none !important; }
.consumer.v3-layout .v3-header .b2-home-brand {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
.consumer.v3-layout .v3-header .b2-home-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.consumer.v3-layout:not(.is-watching) .v3-header > nav {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  height: auto;
  margin: 0;
}
.consumer.v3-layout .v3-header > nav button {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 23px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: transparent;
  box-shadow: none !important;
  color: #ddd !important;
  font-size: 16px !important;
  line-height: 24px;
  font-weight: 400;
}
.consumer.v3-layout .v3-header > nav button.active {
  background: var(--v3-pink) !important;
  color: #fff !important;
  font-weight: 600;
}
.consumer.v3-layout .v3-header > nav button::after { content: none !important; }
.consumer.v3-layout:not(.is-watching) .v3-header .header-end {
  display: flex !important;
  align-items: center;
  gap: 22px;
  min-width: 0;
  margin-left: auto;
}
.consumer.v3-layout .v3-header .search-wrap { min-width: 0; }
.consumer.v3-layout .v3-header .search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(190px, 20.486vw, 320px);
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: #ffffff09;
  box-shadow: none;
}
.consumer.v3-layout .v3-header .search input {
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: #eee;
  font-size: 13px;
  background: transparent;
}
.consumer.v3-layout .v3-header .search svg { flex: 0 0 18px; width: 18px; height: 18px; color: #aaa; }
.consumer.v3-layout .v3-header .account { gap: 9px; min-height: 40px; padding: 0; color: #c7c5c9; }
.consumer.v3-layout .v3-header .account i { width: 32px; height: 32px; border: 0; background: #49454b; color: #e4e0e6; }
.consumer.v3-layout .v3-header .account span { display: block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.consumer.v3-layout .v3-header :is(.v2-mobile-menu-toggle,.v2-mobile-actions) { display: none !important; }
.consumer.v3-layout > .v2-mobile-menu { display: none; }

/* Home: edge-to-edge hero, then independent modules at the common content edge. */
.consumer.v3-layout .v3-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: auto;
  aspect-ratio: 2.7 / 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #191919;
}
.consumer.v3-layout .v3-hero-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.consumer.v3-layout .v3-hero-blur { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(24px); opacity: .38; pointer-events: none; }
.consumer.v3-layout .v3-hero.is-portrait-fallback .v3-hero-art {
  object-fit: contain;
  object-position: 76% center;
  background: transparent;
}
.consumer.v3-layout .v3-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,#080b0eb3 0%,#080b0e3d 42%,transparent 72%),linear-gradient(0deg,#0f0f0f 0%,#0f0f0fb8 8%,#0f0f0f0d 62%);
}
.consumer.v3-layout .v3-hero-content {
  position: absolute;
  z-index: 2;
  left: var(--v3-gutter);
  bottom: 64px;
  width: min(43%, 640px);
  max-width: none;
  padding: 0;
  text-align: left;
}
.consumer.v3-layout .v3-hero-content > :is(small,.v3-hero-kicker) {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 11px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: var(--v3-pink);
  color: #fff;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
}
.consumer.v3-layout .v3-hero-content :is(h1,strong) {
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(34px,3.263889vw,58px);
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: 1px;
  text-shadow: 0 3px 16px #0005;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.consumer.v3-layout .v3-hero-content > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 13px 0 24px;
  color: #ffffffbf;
  font-size: 16px;
  line-height: 26px;
  max-width: 550px;
}
.consumer.v3-layout .v3-hero-content > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 132px;
  min-height: 42px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid #ffffff3d;
  border-radius: 24px;
  background: #232024b3;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.consumer.v3-layout .v3-hero-thumbs {
  position: absolute;
  right: calc(var(--v3-gutter) + 38px);
  bottom: 55px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.consumer.v3-layout .v3-hero-thumbs > button:not(.v3-hero-arrow) {
  position: relative;
  flex: 0 0 70px;
  width: 70px;
  height: 102px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff29;
  border-radius: 8px;
  background: #242424;
  opacity: .65;
  transition: opacity .18s, border-color .18s;
}
.consumer.v3-layout .v3-hero-thumbs > button:is(.active,.selected,.is-active) { border: 2px solid #fff; opacity: 1; }
.consumer.v3-layout .v3-hero-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.consumer.v3-layout .v3-hero-thumbs :is(span,small) { position: absolute; inset: auto 0 0; padding: 9px 4px 3px; color: #fff; font-size: 10px; line-height: 15px; background: linear-gradient(transparent,#070707e6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consumer.v3-layout .v3-hero-arrow { display: grid; place-items: center; flex: 0 0 30px; width: 30px; min-height: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #e8e6e9; font-size: 29px; line-height: 1; }
.consumer.v3-layout .v3-hero > .v3-hero-arrow { position: absolute; top: auto; bottom: 84px; z-index: 4; transform: none; }
.consumer.v3-layout .v3-hero > .v3-hero-arrow.prev { left: auto; right: calc(var(--v3-gutter) + 438px); }
.consumer.v3-layout .v3-hero > .v3-hero-arrow.next { right: var(--v3-gutter); }
.consumer.v3-layout .v3-hero-dots { display: none; }
.consumer.v3-layout .v3-home-section {
  margin: 34px var(--v3-gutter) 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.consumer.v3-layout .v3-home-section > .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 32px;
  margin: 0 0 22px;
  padding: 0;
}
.consumer.v3-layout .v3-home-section > .section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #f8f8fa;
  font-size: 24px;
  line-height: 32px;
  font-weight: 650;
  letter-spacing: 0;
}
.consumer.v3-layout .v3-home-section > .section-head h2::before { position: static; content: ""; flex: 0 0 4px; width: 4px; height: 21px; border-radius: 2px; background: var(--v3-pink); }
.consumer.v3-layout .v3-home-section > .section-head button { min-height: 28px; padding: 2px 12px; border-radius: 16px; background: #ffffff0c; color: #aaa6ad; font-size: 12px; line-height: 24px; white-space: nowrap; }
.consumer.v3-layout .v3-home-section > .section-head .eyebrow { display: none; }

/* Shared semantic card markup; home and category have distinct desktop geometry. */
.consumer.v3-layout .v3-card-grid {
  display: grid !important;
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  gap: 20px 18px !important;
  width: 100%;
  margin: 0;
  padding: 0;
}
.consumer.v3-layout .v3-card {
  position: relative;
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 21px;
  background: #1b1b1b;
  text-align: left;
}
.consumer.v3-layout .v3-card > .v3-card-link { display: block; width: 100%; min-width: 0; height: 100%; padding: 0; margin: 0; text-align: left; background: transparent; border-radius: inherit; }
.consumer.v3-layout .v3-card:hover { box-shadow: inset 0 0 0 1px #ffffff16; }
.consumer.v3-layout .v3-card-poster { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 5/7; overflow: hidden; border: 0; border-radius: 0; background: #222; }
.consumer.v3-layout .v3-card-poster > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: none !important; }
.consumer.v3-layout .v3-card-poster::after { position: absolute; content: ""; inset: 65% 0 0; pointer-events: none; background: linear-gradient(transparent,#0006); }
.consumer.v3-layout .v3-card-poster .poster-name { display: none !important; }
.consumer.v3-layout .v3-card-poster :is(.poster-badge,.v3-poster-badge,.membership-cover-badge) { position: absolute; z-index: 2; top: 0; right: 0; bottom: auto; left: auto; width: auto; max-width: 85%; margin: 0; padding: 5px 9px; border: 0; border-radius: 0 0 0 9px; background: var(--v3-pink); color: #fff; font-size: 11px; font-style: normal; font-weight: 500; line-height: 16px; white-space: nowrap; }
.consumer.v3-layout .v3-card-poster .membership-cover-badge { top: auto; right: auto; left: 8px; bottom: 9px; border-radius: 3px; background: #18131bbf; font-size: 10px; padding: 2px 5px; }
.consumer.v3-layout .v3-card-poster :is(.episode-count,.v3-episode-count) { position: absolute; z-index: 2; top: auto; bottom: 10px; right: 10px; left: auto; padding: 2px 5px; border-radius: 3px; color: #fff; background: #08080870; font-size: 12px; line-height: 18px; text-shadow: 0 1px 4px #000; }
.consumer.v3-layout .v3-card-info { display: block; min-width: 0; padding: 14px 12px; color: #fff; }
.consumer.v3-layout .v3-card-info > :is(strong,h3) { display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f7f7f8; font-size: 19px; font-weight: 600; line-height: 26px; letter-spacing: 0; }
.consumer.v3-layout .v3-card-info > :is(small,p) { display: block; min-height: 23px; margin: 4px 0 8px; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--v3-muted); font-size: 16px; line-height: 23px; }
.consumer.v3-layout .v3-card-tags { display: flex; gap: 5px; min-height: 21px; overflow: hidden; white-space: nowrap; }
.consumer.v3-layout .v3-card-tags > :is(i,span) { display: inline-block; flex: 0 0 auto; padding: 2px 6px; border-radius: 3px; background: #ec237f0c; color: #e36b9c; font-size: 11px; font-style: normal; font-weight: 400; line-height: 17px; }
.consumer.v3-layout .v3-card > .v3-recommend-dismiss { position: absolute; z-index: 4; top: 6px; left: 6px; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: #08080880; color: #fff; font-size: 20px; line-height: 1; }
.consumer.v3-layout .v3-section-actions { display: flex; align-items: center; gap: 8px; }

/* A01 is a real horizontal rail: no item-count clipping or hidden tail. */
.consumer.v3-layout .v3-icon-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: auto;
  max-width: none;
  margin: 36px var(--v3-gutter) 18px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: 0;
}
.consumer.v3-layout .v3-icon-strip::-webkit-scrollbar { height: 0; }
.consumer.v3-layout .v3-icon-ad { display: flex !important; flex: 0 0 60px; flex-direction: column; gap: 3px; align-items: center; width: 60px; min-width: 60px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; text-align: center; }
.consumer.v3-layout .v3-icon-ad > button { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; min-height: 0; padding: 0; margin: 0; background: transparent; }
.consumer.v3-layout .v3-icon-ad img { display: block; flex: 0 0 60px; width: 60px; height: 60px; object-fit: cover; border-radius: 12px; background: #252525; }
.consumer.v3-layout .v3-icon-ad > button > span { display: block; width: 100%; min-height: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b6b1ba; font-size: 13.5px; line-height: 13.5px; font-weight: 400; }
.consumer.v3-layout .v3-icon-strip + .v3-home-section { margin-top: 18px; }

/* A02/A03/A04: independent groups, never inserted among content cards. */
.consumer.v3-layout .v3-banner-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; margin: 32px var(--v3-gutter) 28px; padding: 0; }
.consumer.v3-layout .v3-banner-group + .v3-home-section { margin-top: 28px; }
.consumer.v3-layout .v3-banner-ad { position: relative; display: block; min-width: 0; width: 100%; min-height: 0; height: auto; aspect-ratio: 642/94; padding: 0; margin: 0; overflow: hidden; border: 0; border-radius: 12px; background: #242424; }
.consumer.v3-layout .v3-banner-link,.consumer.v3-layout .v3-banner-link > picture { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; }
.consumer.v3-layout .v3-banner-ad :is(img,picture > img) { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.consumer.v3-layout :is(.v3-banner-ad,.v3-icon-ad) .v3-ad-label { position: absolute; z-index: 1; top: 5px; right: 6px; padding: 0 4px; color: #fff9; background: #0008; border-radius: 3px; font-size: 9px; line-height: 15px; }
.consumer.v3-layout .v3-banner-ad .v3-ad-label { right: auto; left: 6px; }
.consumer.v3-layout .v3-ad-close { position: absolute; z-index: 2; top: 1px; right: 1px; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; background: #0008; color: #fff; font-size: 20px; line-height: 32px; }
.consumer.v3-layout .v3-ad-pagination { grid-column: 1/-1; display: flex; justify-content: center; align-items: center; gap: 12px; margin: -20px 0 0; color: #99929f; font-size: 11px; }
.consumer.v3-layout .v3-ad-pagination button { min-width: 32px; min-height: 32px; padding: 0 8px; border-radius: 6px; background: #ffffff09; font-size: 20px; }
.consumer.v3-layout .v3-banner-group:empty, .consumer.v3-layout .v3-icon-strip:empty { display: none; margin: 0; padding: 0; }

/* Category rhythm: at 1440 px the first cover starts at y=269;
   at 390 px the compact hierarchy starts covers at y=222. */
.consumer.v3-layout > .home > .catalog.v3-category-page {
  width: auto;
  max-width: none;
  margin: 0 var(--v3-gutter) !important;
  padding: 27px 0 0 !important;
}
.consumer.v3-layout .v3-breadcrumb { display: flex; align-items: center; gap: 10px; min-height: 18px; height: 18px; margin: 0 0 18px; padding: 0; color: #77747b; font-size: 12px; line-height: 18px; }
.consumer.v3-layout .v3-breadcrumb :is(button,a) { min-height: 18px; height: 18px; padding: 0; font-size: inherit; line-height: 18px; color: inherit; }
.consumer.v3-layout .v3-breadcrumb > :last-child { color: #aaa6ae; }
.consumer.v3-layout .v3-catalog-heading { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 24px; height: 24px; margin: 0 0 18px; padding: 0; gap: 12px; }
.consumer.v3-layout .v3-catalog-heading :is(h1,h2),.consumer.v3-layout h1.v3-catalog-heading { margin: 0; padding: 0; color: #f2f1f4; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.consumer.v3-layout .v3-catalog-heading :is(h1,h2)::before { content: none !important; }
.consumer.v3-layout .v3-sort-tabs { display: flex; align-items: flex-start; gap: 34px; min-height: 36px; height: 36px; margin: 0 0 18px; padding: 0; border: 0; border-bottom: 1px solid #ffffff0d; }
.consumer.v3-layout .v3-sort-tabs > button { position: relative; display: inline-flex; align-items: flex-start; flex: 0 0 auto; min-height: 36px; height: 36px; padding: 0 0 12px; border: 0; border-radius: 0; background: transparent; color: #928d97; font-size: 14px; font-weight: 400; line-height: 24px; white-space: nowrap; }
.consumer.v3-layout .v3-sort-tabs > button:is(.active,.selected) { color: var(--v3-pink); background: transparent; font-weight: 600; }
.consumer.v3-layout .v3-sort-tabs > button:is(.active,.selected)::after { position: absolute; content: ""; left: 50%; bottom: 0; width: 23px; height: 2px; border-radius: 2px; background: var(--v3-pink); transform: translateX(-50%); }
.consumer.v3-layout .v3-sort-row { display: flex; align-items: flex-start; gap: 16px; height: 36px; margin: 0 0 18px; border-bottom: 1px solid #ffffff0d; }
.consumer.v3-layout .v3-sort-row > .v3-sort-tabs { flex: 1; min-width: 0; margin: 0; border: 0; }
.consumer.v3-layout .v3-filter-toggle { margin-left: auto; padding: 0 !important; color: #aaa5ae; font-size: 12px; white-space: nowrap; }
.consumer.v3-layout .v3-sort-row > .v3-filter-toggle { flex: 0 0 auto; min-height: 30px; height: 30px; }
.consumer.v3-layout .v3-filters { margin: 0 0 18px; padding: 16px; border: 1px solid #ffffff12; border-radius: 10px; background: #191919; }
.consumer.v3-layout .v3-filters > summary { cursor: pointer; color: #c5bfc9; font-size: 12px; }
.consumer.v3-layout .v3-filters :is(.v3-category-options,.v3-status-options,.desktop-discovery-taxonomy,.mobile-discovery-taxonomy,.content-state-filters) { display: flex !important; flex-wrap: wrap; gap: 8px; height: auto; max-height: none; margin: 12px 0 0; padding: 0; overflow: visible; }
.consumer.v3-layout .v3-filters .v3-category-options { margin-top: 0; }
.consumer.v3-layout .v3-filters .mobile-discovery-taxonomy { display: none !important; }
.consumer.v3-layout .v3-filters :is(nav,.v3-status-options,.content-state-filters) button { min-height: 32px; height: auto; padding: 5px 11px; border: 1px solid #ffffff14; border-radius: 6px; background: #ffffff05; color: #aaa4ae; font-size: 12px; line-height: 20px; }
.consumer.v3-layout .v3-filters :is(nav,.v3-status-options,.content-state-filters) button.selected { border-color: #ec237f66; background: #ec237f14; color: #f27cad; }
.consumer.v3-layout .v3-category-page > .browse-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 24px; height: 24px; margin: 0 0 18px; padding: 0; border: 0; gap: 12px; }
.consumer.v3-layout .v3-category-page > .browse-toolbar > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.consumer.v3-layout .v3-category-page .browse-indicator { flex: 0 0 3px; width: 3px; height: 16px; border-radius: 2px; background: var(--v3-pink); }
.consumer.v3-layout .v3-category-page > .browse-toolbar strong { font-size: 18px; font-weight: 600; line-height: 24px; white-space: nowrap; }
.consumer.v3-layout .v3-category-page > .browse-toolbar strong::before { content: ""; display: inline-block; width: 3px; height: 16px; margin-right: 9px; border-radius: 2px; background: var(--v3-pink); vertical-align: -1px; }
.consumer.v3-layout .v3-category-page > .browse-toolbar > div > span:last-child:not(.browse-indicator) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #777079; font-size: 11px; line-height: 20px; }
.consumer.v3-layout .v3-category-page > .browse-toolbar :is(label,select) { font-size: 11px; }
.consumer.v3-layout .v3-category-page .clear-filter { min-height: 24px; padding: 0; color: #d26998; font-size: 11px; white-space: nowrap; }
.consumer.v3-layout .v3-category-grid { gap: 18px 14px !important; }
.consumer.v3-layout .v3-category-grid .v3-card { border-radius: 14px; }
.consumer.v3-layout .v3-category-grid .v3-card-poster { height: 21.180556vw; aspect-ratio: auto; }
.consumer.v3-layout .v3-category-grid .v3-card-info { min-height: 84px; height: 84px; padding: 10px 10px 9px; }
.consumer.v3-layout .v3-category-grid .v3-card-info > :is(strong,h3) { font-size: 13px; line-height: 19px; }
.consumer.v3-layout .v3-category-grid .v3-card-info > :is(small,p) { min-height: 17px; font-size: 11px; line-height: 17px; margin: 3px 0 5px; }
.consumer.v3-layout .v3-category-grid .v3-card-tags { min-height: 16px; }
.consumer.v3-layout .v3-category-grid .v3-card-tags > :is(i,span) { padding: 1px 5px; font-size: 10px; line-height: 14px; }
.consumer.v3-layout .v3-category-page .catalog-more { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; min-height: 36px; color: #85808b; font-size: 12px; }
.consumer.v3-layout .v3-category-page .catalog-more button { min-height: 36px; padding: 5px 16px; border: 1px solid #ffffff1c; border-radius: 7px; color: #c0b9c5; background: #ffffff06; font-size: 12px; }
.consumer.v3-layout .v3-category-page .v3-banner-group { margin: 18px 0 0; }
.consumer.v3-layout .v3-category-page .catalog-skeleton { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px 14px; }
.consumer.v3-layout .v3-category-page .catalog-skeleton i { height: calc(21.180556vw + 84px); border-radius: 14px; background: linear-gradient(100deg,#1d1d1d 20%,#262626 45%,#1d1d1d 70%); }
.consumer.v3-layout > .home > footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin: 36px var(--v3-gutter) 0 !important; padding: 24px 0 27px; border-top: 1px solid #ffffff0d; background: transparent; color: #777079; text-align: center; }
.consumer.v3-layout > .home > footer :is(a,p,button) { color: #777079; font-size: 12px; font-weight: 400; line-height: 20px; }
.consumer.v3-layout > .home > footer .footer-logo { color: #aaa2ae; font-weight: 600; }

/* A05 lives outside .consumer, since it is an independent modal surface. */
.v3-entry-modal {
  --v3-entry-gap: 20px;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--v3-entry-gap);
  width: 100%;
  height: 100dvh;
  padding: max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));
  background: #000c;
  backdrop-filter: blur(3px);
}
.v3-entry-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--v3-entry-gap); width: 100%; max-width: 400px; min-height: 0; max-height: 100%; }
.v3-entry-creative { display: flex; flex: 0 1 auto; align-items: center; justify-content: center; width: min(400px,100%); height: auto; min-height: 0; max-height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: transparent; }
.v3-entry-creative { position: relative; }
.v3-entry-creative picture { display: flex; justify-content: center; min-height: 0; width: 100%; }
.v3-entry-creative .v3-ad-label { position: absolute; top: 6px; right: 6px; padding: 0 4px; border-radius: 3px; background: #0008; color: #fffb; font-size: 10px; line-height: 16px; }
.v3-entry-creative img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); object-fit: contain; border-radius: 12px; }
.v3-entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; width: min(400px,100%); max-height: calc(100dvh - 100px); overflow: auto; }
.v3-entry-grid button { min-height: 0; padding: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.v3-entry-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }
.v3-entry-close { position: relative; flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font: 300 28px/1 Arial,sans-serif; }
.v3-entry-close::before { position: absolute; content: ""; inset: 4px; border: 1px solid #ffffffb3; border-radius: 50%; background: #0002; pointer-events: none; }
.v3-entry-close:focus-visible { outline: 2px solid #ec237f; outline-offset: 3px; }

/* Compact desktop/tablet, with genuine columns instead of scaled canvases. */
@media (min-width:768px) and (max-width:1199px) {
  .consumer.v3-layout { --v3-gutter: 32px; --v3-header-height: 68px; }
  .consumer.v3-layout:not(.is-watching) > .topbar.v3-header { gap: 24px; }
  .consumer.v3-layout .v3-header .brand > span:not(.b2-home-brand) { font-size: 20px !important; }
  .consumer.v3-layout .v3-header > nav { gap: 3px; }
  .consumer.v3-layout .v3-header > nav button { padding: 0 14px !important; font-size: 14px !important; }
  .consumer.v3-layout .v3-header .search { width: 180px; }
  .consumer.v3-layout .v3-header .account span { display: none; }
  .consumer.v3-layout .v3-card-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 18px 14px !important; }
  .consumer.v3-layout .v3-card-info > :is(strong,h3) { font-size: 16px; line-height: 23px; }
  .consumer.v3-layout .v3-card-info > :is(small,p) { font-size: 13px; line-height: 20px; min-height: 20px; }
  .consumer.v3-layout .v3-category-grid .v3-card-poster { height: auto; aspect-ratio: 251/305; }
  .consumer.v3-layout .v3-hero-content { bottom: 38px; width: 45%; }
  .consumer.v3-layout .v3-hero-content > p { font-size: 13px; line-height: 21px; margin: 9px 0 16px; }
  .consumer.v3-layout .v3-hero-thumbs { gap: 7px; bottom: 32px; }
  .consumer.v3-layout .v3-hero-thumbs > button:not(.v3-hero-arrow) { width: 48px; flex-basis: 48px; height: 72px; }
  .consumer.v3-layout .v3-hero > .v3-hero-arrow { bottom: 46px; }
  .consumer.v3-layout .v3-hero > .v3-hero-arrow.prev { right: calc(var(--v3-gutter) + 316px); }
  .consumer.v3-layout .v3-category-page .catalog-skeleton { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width:768px) and (max-width:899px) {
  .consumer.v3-layout .v3-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  .consumer.v3-layout .v3-category-page .catalog-skeleton { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* At 900 and below, menu and search move into the established mobile controls. */
@media (max-width:900px) {
  .consumer.v3-layout { --v3-header-height: 48px; }
  .consumer.v3-layout:not(.is-watching) > .topbar.v3-header { display: grid !important; grid-template-columns: 88px minmax(0,1fr) 88px; gap: 0; height: calc(48px + env(safe-area-inset-top)) !important; min-height: calc(48px + env(safe-area-inset-top)) !important; padding: env(safe-area-inset-top) 10px 0 !important; }
  .consumer.v3-layout:not(.is-watching) .v3-header > nav,.consumer.v3-layout:not(.is-watching) .v3-header .header-end { display: none !important; }
  .consumer.v3-layout .v3-header .brand { justify-self: center; gap: 5px; }
  .consumer.v3-layout .v3-header .brand > span:not(.b2-home-brand) { font-size: 17px !important; letter-spacing: -.5px; }
  .consumer.v3-layout .v3-header .b2-home-brand { width: 24px; height: 24px; flex-basis: 24px; border-radius: 7px; }
  .consumer.v3-layout .v3-header .v2-mobile-menu-toggle { display: grid !important; place-items: center; justify-self: start; width: 40px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #e6e2e8; }
  .consumer.v3-layout .v3-header .v2-mobile-menu-toggle svg { width: 21px; height: 21px; }
  .consumer.v3-layout .v3-header .v2-mobile-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 0; }
  .consumer.v3-layout .v3-header .v2-mobile-actions > button { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; color: #d0c9d4; background: transparent; }
  .consumer.v3-layout .v3-header .v2-mobile-actions svg { width: 20px; height: 20px; }
  .consumer.v3-layout .v3-header .v2-mobile-actions .v2-mobile-avatar { width: 44px; height: 44px; min-height: 44px; margin: 0; background: radial-gradient(circle, #4b464d 13px, transparent 13.5px); color: #e3dce7; font-size: 12px; border-radius: 50%; }
  .consumer.v3-layout > .v2-mobile-menu { position: fixed; top: calc(48px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 69; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0; padding: 12px 16px; border-bottom: 1px solid #ffffff12; background: #242424; box-shadow: 0 12px 24px #0006; }
  .consumer.v3-layout > .v2-mobile-menu button { min-height: 44px; padding: 8px; border-radius: 8px; color: #c5bfc9; font-size: 14px; }
  .consumer.v3-layout > .v2-mobile-menu button.selected { background: #ec237f19; color: #f174ab; }
  .consumer.v3-layout > .mobile-search-dock { position: fixed; top: calc(48px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 69; width: auto; display: flex; margin: 0; padding: 12px 16px; gap: 10px; border: 0; border-bottom: 1px solid #ffffff12; border-radius: 0; background: #242424; }
  .consumer.v3-layout > .mobile-search-dock input { min-width: 0; flex: 1; height: 40px; padding: 0 12px; border-color: #ffffff24; border-radius: 8px; background: #ffffff09; font-size: 16px; }
  .consumer.v3-layout > .mobile-search-dock button { flex: 0 0 auto; padding: 0 10px; font-size: 13px; color: #eee; }
  .consumer.v3-layout:has(> .home) > .mobile-nav { display: none !important; }
}

@media (max-width:767px) {
  .consumer.v3-layout { --v3-gutter: 16px; }
  .consumer.v3-layout .v3-hero { aspect-ratio: 39/14; min-height: 0; }
  .consumer.v3-layout .v3-hero-shade { background: linear-gradient(90deg,#080b0e80,#080b0e26 60%,transparent),linear-gradient(0deg,#0f0f0f 0%,#0f0f0f80 12%,transparent 65%); }
  .consumer.v3-layout .v3-hero-content { left: 16px; bottom: 22px; width: 62%; }
  .consumer.v3-layout .v3-hero-content > :is(small,.v3-hero-kicker) { min-height: 15px; padding: 2px 5px; margin: 0 0 4px; border-radius: 3px; font-size: 8px; line-height: 11px; }
  .consumer.v3-layout .v3-hero-content :is(h1,strong) { font-size: clamp(19px,5.64vw,30px); line-height: 1.25; letter-spacing: .5px; }
  .consumer.v3-layout .v3-hero-content > p { display: none; }
  .consumer.v3-layout .v3-hero-content > button { min-width: 82px; min-height: 28px; height: 28px; padding: 0 10px; margin-top: 7px; font-size: 10px; line-height: 16px; gap: 5px; }
  .consumer.v3-layout .v3-hero-thumbs,.consumer.v3-layout .v3-hero > .v3-hero-arrow { display: none; }
  .consumer.v3-layout .v3-hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 2px; display: flex; gap: 0; transform: translateX(-50%); }
  .consumer.v3-layout .v3-hero-dots button { position: relative; width: 20px; height: 20px; min-height: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .consumer.v3-layout .v3-hero-dots button::after { content: ""; position: absolute; left: 8px; top: 8px; width: 4px; height: 4px; border-radius: 4px; background: #ffffff55; }
  .consumer.v3-layout .v3-hero-dots button:is(.active,.selected,.is-active)::after { width: 12px; left: 4px; background: var(--v3-pink); }
  .consumer.v3-layout .v3-home-section { margin-top: 26px; }
  .consumer.v3-layout .v3-home-section > .section-head { min-height: 24px; margin-bottom: 15px; gap: 8px; }
  .consumer.v3-layout .v3-home-section > .section-head h2 { gap: 7px; font-size: 16px; line-height: 22px; font-weight: 600; }
  .consumer.v3-layout .v3-home-section > .section-head h2::before { flex-basis: 3px; width: 3px; height: 14px; }
  .consumer.v3-layout .v3-home-section > .section-head button { min-height: 24px; padding: 0 9px; font-size: 10px; line-height: 23px; }
  .consumer.v3-layout .v3-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px 8px !important; }
  .consumer.v3-layout .v3-card,.consumer.v3-layout .v3-category-grid .v3-card { border-radius: 0; overflow: visible; background: transparent; }
  .consumer.v3-layout .v3-card:hover { box-shadow: none; }
  .consumer.v3-layout .v3-card-poster,.consumer.v3-layout .v3-category-grid .v3-card-poster { height: auto; aspect-ratio: 3/4; border-radius: 12px; }
  .consumer.v3-layout .v3-card-poster :is(.poster-badge,.v3-poster-badge) { padding: 3px 6px 4px; border-radius: 0 0 0 7px; font-size: 9px; line-height: 13px; }
  .consumer.v3-layout .v3-card-poster .membership-cover-badge { bottom: 7px; left: 6px; padding: 1px 3px; font-size: 8px; line-height: 14px; }
  .consumer.v3-layout .v3-card-poster :is(.episode-count,.v3-episode-count) { bottom: 6px; right: 5px; padding: 1px 3px; font-size: 10px; line-height: 15px; }
  .consumer.v3-layout .v3-card-info,.consumer.v3-layout .v3-category-grid .v3-card-info { min-height: 80px; height: 80px; padding: 8px 0 0; background: transparent; }
  .consumer.v3-layout .v3-card-info > :is(strong,h3),.consumer.v3-layout .v3-category-grid .v3-card-info > :is(strong,h3) { font-size: 14px; font-weight: 500; line-height: 20px; }
  .consumer.v3-layout .v3-card-info > :is(small,p),.consumer.v3-layout .v3-category-grid .v3-card-info > :is(small,p) { min-height: 18px; margin: 2px 0 5px; font-size: 12px; line-height: 18px; color: #ffffff8c; }
  .consumer.v3-layout .v3-card-tags,.consumer.v3-layout .v3-category-grid .v3-card-tags { gap: 4px; min-height: 15px; }
  .consumer.v3-layout .v3-card-tags > :is(i,span),.consumer.v3-layout .v3-category-grid .v3-card-tags > :is(i,span) { padding: 0 4px; font-size: 9px; line-height: 15px; }
  .consumer.v3-layout .v3-icon-strip { gap: 12px; margin-top: 18px; margin-bottom: 18px; }
  .consumer.v3-layout .v3-icon-ad { flex-basis: 56px; min-width: 56px; width: 56px; gap: 4px; }
  .consumer.v3-layout .v3-icon-ad img { flex-basis: 56px; width: 56px; height: 56px; border-radius: 11px; }
  .consumer.v3-layout .v3-icon-ad > button { gap: 4px; }
  .consumer.v3-layout .v3-icon-ad > button > span { min-height: 18px; font-size: 11px; line-height: 18px; }
  .consumer.v3-layout .v3-banner-group { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 25px; margin-bottom: 22px; }
  .consumer.v3-layout .v3-banner-group + .v3-home-section { margin-top: 22px; }
  .consumer.v3-layout .v3-banner-ad { aspect-ratio: 358/43; border-radius: 8px; }
  .consumer.v3-layout .v3-ad-pagination { margin-top: 0; }
  .consumer.v3-layout > .home > .catalog.v3-category-page { padding-top: 12px !important; }
  .consumer.v3-layout .v3-breadcrumb { gap: 8px; font-size: 10px; }
  .consumer.v3-layout .v3-catalog-heading { min-height: 22px; height: 22px; }
  .consumer.v3-layout .v3-catalog-heading :is(h1,h2),.consumer.v3-layout h1.v3-catalog-heading { font-size: 16px; line-height: 22px; }
  .consumer.v3-layout .v3-sort-row { height: 30px; gap: 10px; }
  .consumer.v3-layout .v3-sort-tabs { min-height: 30px; height: 30px; gap: clamp(10px,3.59vw,18px); }
  .consumer.v3-layout .v3-sort-tabs > button { min-height: 30px; height: 30px; padding: 0 0 10px; font-size: 12px; line-height: 20px; }
  .consumer.v3-layout .v3-sort-tabs > button:is(.active,.selected)::after { width: 19px; }
  .consumer.v3-layout .v3-category-page > .browse-toolbar { min-height: 20px; height: 20px; gap: 8px; }
  .consumer.v3-layout .v3-category-page > .browse-toolbar strong { font-size: 14px; line-height: 20px; }
  .consumer.v3-layout .v3-category-page .browse-indicator { height: 13px; }
  .consumer.v3-layout .v3-category-page > .browse-toolbar strong::before { height: 13px; margin-right: 7px; }
  .consumer.v3-layout .v3-category-page > .browse-toolbar > div > span:last-child:not(.browse-indicator) { font-size: 9px; }
  .consumer.v3-layout .v3-category-page .clear-filter { font-size: 10px; min-height: 20px; }
  .consumer.v3-layout .v3-category-page .catalog-more { margin-top: 23px; min-height: 32px; font-size: 11px; }
  .consumer.v3-layout .v3-category-page .catalog-more button { min-height: 32px; font-size: 11px; }
  .consumer.v3-layout .v3-category-page .v3-banner-group { margin-top: 18px; }
  .consumer.v3-layout .v3-category-page .catalog-skeleton { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 8px; }
  .consumer.v3-layout .v3-category-page .catalog-skeleton i { height: calc((100vw - 40px)*.666667 + 80px); border-radius: 12px; }
  .consumer.v3-layout > .home > footer { gap: 5px 12px; margin-top: 24px !important; padding: 19px 0 22px; }
  .consumer.v3-layout > .home > footer :is(a,p,button) { font-size: 10px; line-height: 17px; }
  .v3-entry-modal { --v3-entry-gap: 32px; }
  .v3-entry-body { max-width: 300px; }
  .v3-entry-creative { width: min(300px,100%); max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 10px; }
  .v3-entry-creative img { max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .consumer.v3-layout :is(.v3-home,.v3-category-page) *, .v3-entry-modal * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Ordinary operations placements; non-floating and closed groups occupy no space. */
.ordinary-announcements{margin:16px var(--v3-gutter,16px);padding:12px 16px;border:1px solid #ec237f33;border-radius:9px;background:#ec237f0b;color:#d8c9d1;font-size:13px}.ordinary-announcements p{display:flex;gap:14px;margin:0;line-height:1.6}.ordinary-announcements strong{color:#f18bb8;flex:none}.ordinary-announcements span{white-space:pre-wrap;overflow-wrap:anywhere}.ordinary-feed-ad{position:relative}.ordinary-feed-ad picture{display:block;width:100%;height:100%}.ordinary-feed-ad .v3-ad-label{left:8px;right:auto;bottom:8px;top:auto}.ordinary-feed-ad .v3-ad-close{top:6px;right:6px;z-index:5}.ordinary-feed-ad .v3-card-poster{background:#18151a}.ordinary-footer-ads{margin-top:28px;margin-bottom:28px}.sidebar-ad-card picture{display:block;width:100%}.sidebar-ad-card picture img{display:block;width:100%;max-height:240px}.ordinary-announcements+.network-status-banner{margin-top:0}@media(max-width:767px){.ordinary-announcements{font-size:12px;padding:10px 12px}.ordinary-announcements p{gap:10px}}
