/* Night Bloom · the complete, local-only visual system for 星幕短剧.
   Loaded after the legacy styles; all artwork stays in local HTML assets. */
:root {
  color-scheme: dark;
  --bg: #080c18;
  --panel: #121829;
  --text: #f5f3ff;
  --muted: #939ab4;
  --brand: #ff79b0;
  --accent: #ff5c9b;
  --gold: #c7b6ff;
  --violet: #9a82ff;
  --mint: #67e4cc;
  --line: #b7c0fa14;
  --ui-border: #b7c0fa24;
  --ui-quiet: #ffffff05;
  --radius: 18px;
  --gutter: clamp(24px, 4.2vw, 72px);
}

html { background: var(--bg); scroll-padding-top: 104px; }
body {
  background: radial-gradient(ellipse at 95% 4%, #6543b315, transparent 30%),
    radial-gradient(ellipse at 0% 30%, #b2396f08, transparent 28%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: #9a82ff65; }
* { scrollbar-color: #586080 #101523; scrollbar-width: thin; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a, button { transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
button, .button {
  min-height: 40px;
  padding: 10px 17px;
  gap: 8px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #1b2238;
  color: #eceafa;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}
button:hover, .button:hover { background: #252d48; border-color: #b5a6f75c; color: #fff; }
button:disabled, .button[aria-disabled="true"] { opacity: .42; cursor: default; }
.primary {
  background: linear-gradient(120deg, #ff609f, #ed4e91);
  border-color: #ff73ad;
  color: #fff;
  box-shadow: 0 6px 24px #ed4e9125, inset 0 1px 0 #ffffff16;
  font-weight: 700;
}
.primary:hover { background: #ff80b5; color: #fff; border-color: #ff94c0; box-shadow: 0 7px 28px #ed4e9138; }
.quiet { background: #11162a94; border-color: #d3c5ff35; }
.danger { color: #ff9db9; }
.small { min-height: 33px; padding: 7px 12px; font-size: 12px; }
.actions { gap: 10px; }
input, textarea, select {
  border: 1px solid #b7c0fa28;
  background: #0d1324;
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 13px;
}
input:hover, textarea:hover, select:hover { border-color: #b7c0fa52; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); }
input::placeholder, textarea::placeholder { color: #747d9a; }
input[type="checkbox"] { accent-color: var(--violet); }
label { color: #c5c9dd; }
:focus-visible { outline: 2px solid #bba9ff; outline-offset: 4px; }
button[aria-pressed="true"]:not(.primary):not(.selected):not(.favorite) { color: #ff94be; border-color: #ff5c9b6b; background: #ff5c9b13; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--text); }
h1 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 750; line-height: 1.3; letter-spacing: -1px; }
h2 { font-weight: 700; letter-spacing: -.4px; }
h3 { font-weight: 650; }
p, .muted { color: var(--muted); }
.eyebrow { color: #b5a4f6; font-size: 10px; letter-spacing: 2.1px; font-weight: 650; }
.page, .topbar { width: min(calc(100% - var(--gutter) * 2), 1440px); max-width: 1440px; }
.page { padding: 25px 0 60px; }
.main-shell, .page, .home-plaza, .home-lead, .hero-content { min-width: 0; }
.skip { background: #bba9ff; color: #111525; border-radius: 8px; }

/* A quiet, continuous header leaves the illustrations in charge. */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid #b7c0fa0e;
  background: #080c18ed;
  backdrop-filter: blur(20px);
}
.topbar {
  min-height: 80px;
  grid-template-columns: auto auto minmax(130px, 1fr) auto;
  gap: clamp(16px, 2vw, 30px);
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.brand { width: auto; gap: 11px; font-size: 21px; font-weight: 800; letter-spacing: -.7px; color: #faf7ff; }
.brand-mark {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 11px 11px 12px 5px;
  color: #fff;
  background: linear-gradient(135deg, #ff77b2 3%, #e54c9d 56%, #9a82ff);
  box-shadow: 0 4px 18px #ff5c9b24;
}
.brand-mark:before { display: none; content: none; }
.brand-mark:after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  background: #c5b6ff;
  clip-path: polygon(50% 0, 63% 36%, 100% 50%, 63% 63%, 50% 100%, 36% 63%, 0 50%, 36% 36%);
}
.brand-mark .ui-icon { width: 19px; height: 19px; transform: translateX(1px); fill: currentColor; stroke-width: 1; }
.brand-logo { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.site-header .brand { width: 186px; max-width: 100%; min-width: 0; min-height: 40px; }
.header-login .ui-icon { display: none; }
.modal .auth-brand { width: min(100%, 240px); margin: 0 0 18px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .site-header .brand { width: 156px; }
}
@media (max-width: 899px) {
  .site-header .brand { width: 138px; }
  .modal .auth-brand { width: min(100%, 216px); }
}
@media (max-width: 380px) {
  .site-header .brand { width: 120px; }
}
@media (max-width: 599px) {
  .site-header .header-account .header-login { width: 32px; height: 32px; min-height: 32px; padding: 6px; border-radius: 50%; }
  .header-login .ui-icon { display: block; width: 18px; height: 18px; }
  .header-login-label { display: none; }
}
.nav-main { gap: 4px; }
.nav a { padding: 10px 13px; font-size: 14px; font-weight: 600; color: #a3abc5; border-radius: 9px; }
.nav a:hover { background: #ffffff05; color: #f5f3ff; }
.nav a.active, .nav a[aria-current="page"] { color: #ff83b6; background: transparent; }
.nav a.active:after, .nav a[aria-current="page"]:after {
  display: block;
  content: "";
  position: absolute;
  bottom: 2px;
  left: calc(50% - 8px);
  width: 16px;
  height: 3px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 0 0 12px #ff5c9b45;
}
.search { height: 42px; border-radius: 22px; background: #141b2b; border-color: #d3c5ff13; padding-left: 16px; }
.search input { background: transparent; font-size: 12px; color: #d9dcee; padding: 7px 0; }
.search:focus-within { border-color: #9a82ff85; background: #1b2238; }
.search button { color: #b3bbd7; background: transparent; min-height: 30px; }
.search button:hover { color: #ff8abb; background: transparent; }
.topbar { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.nav-main { min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.header-search { position: relative; justify-self: end; width: 42px; min-width: 0; }
.header-search.is-open { width: clamp(220px, 26vw, 360px); }
#header-search [hidden] { display: none !important; }
.header-search .search-trigger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; min-height: 42px; padding: 10px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #b3bbd7; }
.header-search .search-trigger:hover, .header-search .search-trigger:focus-visible { color: #ff8abb; background: #c3a1ff12; border-color: #c3a1ff66; }
.header-search .search-trigger .ui-icon { width: 20px; height: 20px; }
#header-search .search { position: relative; width: 100%; min-width: 0; margin: 0; transition: border-color .18s, box-shadow .18s, background .18s; }
#header-search .search:hover, #header-search .search:focus-within { border-color: #c3a1ff; background: #1b2238; box-shadow: 0 0 0 3px #a78bfa18; }
#header-search .search input { flex: 1; min-width: 0; width: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; }
#header-search .search > button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; min-width: 28px; height: 30px; min-height: 30px; padding: 5px; border: 0; border-radius: 50%; }
#header-search .search-close { color: #7f8baa; }
#search-assist { position: absolute; top: calc(100% + 8px); left: -1px; width: calc(100% + 2px); max-width: none; max-height: min(60vh, 430px); box-sizing: border-box; margin: 0; padding: 14px; overflow-x: hidden; overflow-y: auto; z-index: 40; border: 1px solid #c3a1ff40; border-radius: 16px; background: #151b2d; box-shadow: 0 14px 36px #03061170; }
#search-assist > small { display: block; margin: 4px 0 7px; padding-right: 38px; font-size: 11px; color: #9ca8c8; }
#search-assist > button[data-action="search-clear"] { position: absolute; right: 10px; top: 10px; width: auto; min-height: 26px; padding: 4px 7px; color: #c4b5fd; font-size: 11px; }
#search-assist .list-row { display: block; margin: 0; padding: 9px 4px; border-color: #b7c0fa14; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#search-assist .list-row:hover { color: #ff9bc6; background: #c3a1ff0b; }
.header-account, .top-actions { gap: 12px; }
.top-actions .primary { padding: 8px 15px; min-height: 36px; border-radius: 9px; font-size: 12px; }
.notify-link { color: #b0b7d1; }
.notify-link:hover { color: #ff8abb; }
.avatar { background: linear-gradient(135deg, #cbb3ff, #8b72dc); color: #1c133d; font-weight: 750; }
.avatar.green { background: linear-gradient(135deg, #a0f2dc, #4fbba9); color: #102e2c; }
.avatar.orange { background: linear-gradient(135deg, #ffb7cc, #f07d9f); color: #3d1630; }
.badge { background: var(--accent); color: #fff; }
.personal-menu summary { color: #bec4dc; font-size: 12px; }
.personal-menu .icon-chevron { color: #737d9b; }
.personal-popover { background: #161e31; border-color: #c1b1ff30; border-radius: 14px; padding: 9px; box-shadow: 0 20px 60px #0008; }
.personal-popover .nav a { color: #c3cae2; border-radius: 8px; }
.personal-popover .nav a.active { background: #9a82ff1c; color: #c7b6ff; }
.personal-popover .nav a:after { display: none; }
.sync-label { color: #7f89a7; border-color: var(--line); }

/* Full-width, cinematic lead. Text has its own calm half of the picture. */
.home-lead { display: block; }
.hero, .hero.night-hero {
  height: clamp(440px, 40vw, 580px);
  min-height: 0;
  aspect-ratio: auto;
  isolation: isolate;
  border: 1px solid #b7a2ff20;
  border-radius: 24px;
  background: #14142a;
  box-shadow: 0 18px 60px #0003;
  container-type: normal;
}

.hero .hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero:after {
  z-index: -1;
  background: linear-gradient(90deg, #0b1022f5 0%, #101429e8 25%, #11152aa3 43%, #11152a14 67%, #11152a00 100%),
    linear-gradient(0deg, #080d2070, transparent 38%);
}
.hero-content {
  position: absolute;
  left: clamp(32px, 4.3vw, 68px);
  bottom: 62px;
  width: 49%;
  max-width: 610px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c8b8ff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2.5px;
  line-height: 1.5;
}
.hero-kicker:before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ff86b9;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 15px #ff86b95c;
}
.hero h1 { margin: 18px 0 15px; color: #fff9ff; font-size: clamp(39px, 4.25vw, 65px); font-weight: 800; line-height: 1.21; letter-spacing: -1.9px; text-shadow: 0 2px 28px #11122b50; }
.hero p.hero-subtitle, .hero .hero-subtitle {
  display: block;
  max-width: 380px;
  margin: 0 0 25px;
  font-size: 13px;
  line-height: 1.9;
  color: #afb4d0;
  -webkit-line-clamp: unset;
}
.hero-featured-title { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 500; color: #a69cc3; }
.hero-featured-title strong { margin-left: 7px; font-size: 17px; font-weight: 650; color: #ede6ff; }
.hero-sparkle { display: inline-block; color: #ff98c5; font-size: .43em; vertical-align: top; margin: .13em 0 0 .25em; text-shadow: 0 0 20px #ff5c9b50; }
.hero-content > p:not(.hero-subtitle) { display: none; }
.hero-featured-title a { color: inherit; }
.hero-featured-title a:hover { color: #ff91bf; }
.hero .pills { gap: 7px; margin: 10px 0 22px; }
.pill { color: #c6cce3; border-color: #c6bcf229; background: #20223c8c; border-radius: 5px; padding: 3px 8px; font-size: 10px; }
.pill .ui-icon { width: 12px; height: 12px; color: #c6adff; }
.type-badge { color: #b9a6fb; background: #9a82ff15; border-color: #ac96ff3c; padding: 3px 7px; font-size: 10px; border-radius: 5px; }
.hero .actions { gap: 10px; }
.hero .actions .button, .hero .actions button { min-height: 45px; height: auto; padding: 12px 19px; border-radius: 10px; font-size: 13px; }
.hero .actions .primary { min-width: 160px; }
.hero .actions .quiet { color: #e6dcfc; background: #1c203970; border-color: #cbc0ef46; }
.hero .actions .quiet:hover { border-color: #ff8abb; background: #ff5c9b14; }
.hero .actions [aria-pressed="true"] { color: #ff98c2; border-color: #ff82b36b; background: #ff5c9b1c; }
.hero-bottom { right: 34px; bottom: 28px; gap: 7px; }
.hero-bottom button { position: relative; width: 18px; height: 20px; min-height: 20px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-bottom button:before { content: ""; width: 6px; height: 6px; border-radius: 8px; background: #e9e1ff70; transition: width .18s ease; }
.hero-bottom button.selected { width: 30px; height: 20px; background: transparent; }
.hero-bottom button.selected:before { width: 28px; background: #ff83b6; }
.hero-bottom button:hover { background: transparent; }

/* Poster atlas: each square asset contains three columns and two rows.
   These geometry rules deliberately outrank legacy img crop rules. */
.art-frame { position: relative; display: block; overflow: hidden; isolation: isolate; background: #1c233a; border-radius: 10px; }
.art-frame > img:not(.poster-atlas) { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-artwork { display: block; position: absolute; inset: 0; overflow: hidden; isolation: isolate; border-radius: inherit; transition: transform .4s ease; }
.poster-artwork > img.poster-atlas {
  position: absolute !important;
  inset: auto !important;
  left: calc(var(--art-col, 0) * -100%) !important;
  top: calc(var(--art-row, 0) * -100%) !important;
  width: 300% !important;
  height: 200% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
  object-position: initial !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  pointer-events: none;
}
.poster-art-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #090d2110 18%, transparent 40%, #0c102337 65%, #090e23d9); pointer-events: none; }
.poster-art-edition { position: absolute; top: 13px; left: 12px; color: #fffaf5d4; font-size: 8px; font-weight: 650; line-height: 1; letter-spacing: 2.2px; text-shadow: 0 1px 7px #0009; }
.poster-art-title { position: absolute; left: 12px; right: 12px; bottom: 39px; font-size: clamp(18px, 1.8vw, 27px); font-weight: 850; letter-spacing: -.6px; line-height: 1.2; color: #fff8fa; text-wrap: balance; text-shadow: 0 2px 8px #0009, 0 0 25px #0004; }
.grid, .grid--home, .grid--channel, .grid--manga { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 19px; row-gap: 28px; }
.card { position: relative; min-width: 0; }
.poster, .grid .poster { display: block; position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid #c6b1ff13; border-radius: 13px; background: #171e32; box-shadow: 0 4px 20px #00000020; }
.poster > a { display: block; position: absolute; inset: 0; border-radius: inherit; }
.poster img:not(.poster-atlas) { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.poster:after { inset: 78% 0 0; background: linear-gradient(transparent, #07101a55); }
.card:hover .poster { border-color: #c5a4ff60; box-shadow: 0 8px 24px #0004; }
.card:hover .poster-artwork { transform: scale(1.035); }
.card:hover .poster img:not(.poster-atlas) { transform: scale(1.035); filter: brightness(1.04); }
.card-copy, .grid .card-copy { display: grid; gap: 3px; padding: 12px 1px 0; border: 0; border-radius: 0; background: transparent; }
.card h3, .grid .card h3 { color: #eaeafa; font-size: 14px; line-height: 1.6; font-weight: 650; }
.card:hover h3 { color: #ff9bc4; }
.card p, .grid .card p { color: #8e98b4; font-size: 11px; line-height: 1.65; }
.card p:last-child, .grid .card .release-meta { color: #66728f; font-size: 10px; }
.favorite { z-index: 3; top: 9px; right: 9px; width: 29px; height: 29px; min-height: 29px; padding: 6px; border: 1px solid #fff4; border-radius: 50%; color: #fff; background: #14203880; backdrop-filter: blur(8px); box-shadow: none; }
.favorite:hover { color: #ffc0db; border-color: #ffbddb; background: #a62d6480; }
.favorite.active, .favorite[aria-pressed="true"] { color: #ff8dbb; border-color: #ff90bc85; background: #50213bba; }
.favorite .ui-icon { width: 15px; height: 15px; }
.episode-count { z-index: 2; top: auto; left: auto; right: 9px; bottom: 10px; padding: 3px 5px; color: #f2ecff; border-radius: 4px; background: #10162c9c; font-size: 9px; }
.score, .grid .score { z-index: 2; left: 9px; bottom: 10px; gap: 3px; color: #ead6ff; background: #10162c9c; padding: 3px 5px; border-radius: 4px; font-weight: 600; font-size: 10px; }
.score .ui-icon { color: #c4b0ff; width: 11px; height: 11px; }

/* The five small stories form a single editorial rail below the lead. */
.tonight { display: block; margin: 28px 0 31px; }
.tonight-heading, .tonight .section-head { margin: 0 0 14px; min-height: 31px; padding: 0; }
.tonight-heading h2 { font-size: 20px; color: #f5f0ff; font-weight: 700; }
.tonight-heading h2:before { content: ""; display: inline-block; width: 5px; height: 17px; margin-right: 10px; border-radius: 3px; vertical-align: -2px; background: linear-gradient(#ff7aaf, #a38bff); }
.tonight-heading a { font-size: 11px; color: #929dbb; }
.tonight-grid { display: grid; height: auto; min-height: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.tonight-stack { display: contents; }
.tonight-card { position: relative; min-height: 172px; aspect-ratio: 1.48; border: 1px solid #c5b6ff1c; border-radius: 13px; background: #161d32; isolation: isolate; }
.tonight-art { position: absolute; inset: 0; overflow: hidden; }
.tonight-art .poster-artwork { inset: auto; top: -20%; right: -4%; width: 83%; height: auto; aspect-ratio: 2 / 3; }
.tonight-card img:not(.poster-atlas) { top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.tonight-card:after { z-index: 0; inset: 0; background: linear-gradient(0deg, #10152cf5 0%, #11172b55 60%, #11172b00), linear-gradient(90deg, #11172a83, transparent 70%); }
.tonight-card:hover { border-color: #bda3ff69; }
.tonight-card:hover .poster-artwork { transform: scale(1.045); }
.tonight-art .poster-art-title, .tonight-art .poster-art-edition { display: none; }
.tonight-copy, .tonight-card.featured .tonight-copy { z-index: 1; left: 14px; right: 12px; bottom: 14px; }
.tonight-copy strong, .tonight-card.featured strong { margin-bottom: 6px; color: #f9f4ff; font-size: 14px; font-weight: 700; line-height: 1.45; }
.tonight-copy span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: #b7b9d5; font-size: 10px; }
.tonight-copy .type-badge { color: #c9b5ff; background: #9a82ff20; border-color: #ad98fc42; font-size: 8px; padding: 2px 4px; }
.tonight-copy .ui-icon { color: #b8a0f7; }
.tonight-index, .tonight-number { position: absolute; z-index: 1; top: 11px; left: 13px; font-size: 11px; letter-spacing: 1px; color: #faf3ffc2; }

/* Browsing rhythm: a few editorial details, generous art, small metadata. */
.section-head { gap: 18px; padding: 0; margin: 29px 0 19px; min-height: 34px; }
.section-head h2, .home-catalog h2 { color: #f3efff; font-size: 22px; font-weight: 750; letter-spacing: -.5px; }
.section-head a { color: #939fbc; font-size: 11px; }
.section-head a:hover { color: #ff94be; }
.catalog-section-kicker { display: block; color: #9e89df; font-size: 9px; letter-spacing: 2.7px; font-weight: 650; margin: 0 0 4px; }
.home-catalog { margin-top: 34px; }
.home-catalog .section-head { margin: 0 0 18px; padding: 0; }
.home-manga { margin-top: 42px; }
.home-manga .section-head { margin-top: 0; }
.tabs { gap: 5px; }
.tabs button, .tabs .button { background: transparent; color: #8f9bb8; border: 1px solid transparent; border-radius: 7px; min-height: 32px; font-size: 12px; padding: 6px 13px; box-shadow: none; }
.tabs button:hover, .tabs .button:hover { color: #e0d5ff; background: #9a82ff0d; }
.tabs .selected, .tabs button.selected, .tabs .button.primary { color: #d3c1ff; background: #9a82ff1c; border-color: #9a82ff25; }
.home-announcements { margin: 18px 0 24px; padding: 11px 14px; gap: 15px; min-height: 44px; border: 1px solid #b7c0fa12; border-radius: 10px; background: #11182a; }
.announcement-label { color: #b7a4f2; border-color: #b7a4f22d; font-size: 12px; }
.announcement-label .ui-icon { width: 16px; height: 16px; }
.announcement-item { color: #8e99b5; font-size: 11px; }
.announcement-item a { color: #d2c3ff; }
.announcement-item a:hover { color: #ff96bf; }
.announcement-separator { color: #6a7393; }
.announcement-toggle { min-height: 28px; color: #8894b1; border: 0; background: transparent; font-size: 10px; }
.announcement-toggle:hover { background: #9a82ff12; }
.home-popular-tags { margin-bottom: 25px; }
.popular-tags-heading { margin-bottom: 13px; }
.popular-tags-heading h2 { font-size: 17px; font-weight: 650; color: #dfe1f3; }
.popular-tag-list { gap: 9px; }
.popular-tag-list a { padding: 7px 19px; border-radius: 20px; font-size: 12px; color: #aab3cd; background: #151d30; border-color: #b7c0fa14; }
.popular-tag-list a:nth-child(4n+1) { color: #d4b0d7; background: #ff5c9b0b; border-color: #ff5c9b18; }
.popular-tag-list a:nth-child(4n+2) { color: #b6a7e8; background: #9a82ff0e; border-color: #9a82ff1b; }
.popular-tag-list a:hover { color: #f0e9ff; border-color: #c9b2ff65; background: #9a82ff19; }
.home-resume { margin: 18px 0 24px; }
.home-resume.is-guest { padding: 12px 14px; border: 1px solid #b7c0fa0f; border-radius: 10px; background: #111827; font-size: 11px; color: #8b96b4; }
.home-resume.is-guest .resume-prompt > .ui-icon { color: #9e87e3; }
.home-resume.is-guest button { min-height: 29px; padding: 5px 12px; border-radius: 7px; font-size: 10px; background: #9a82ff13; border-color: #9a82ff2c; color: #c5b3fa; }
.home-shortcuts { gap: 23px; border-color: #b7c0fa13; margin-top: 36px; padding: 24px 0 3px; }
.home-shortcuts a { color: #8490ae; font-size: 12px; }
.home-shortcuts a:hover { color: #d0b9ff; }
.home-shortcuts .ui-icon { margin-right: 5px; width: 15px; height: 15px; }
.home-topic-feature, .banner { border: 1px solid #a48aff30; border-radius: 16px; background: radial-gradient(ellipse at 95% 90%, #ff5c9b11, transparent 60%), linear-gradient(100deg, #211c38, #141b2e); }
.home-topic-feature { position: relative; overflow: hidden; padding: 25px 30px; margin: 27px 0; }
.home-topic-feature h2 { margin: 6px 0 5px; font-size: 24px; font-weight: 750; }
.home-topic-feature p { color: #929bb8; font-size: 12px; }
.home-topic-feature > .button { background: #9a82ff1a; border-color: #a68cff42; color: #d6c7ff; font-size: 12px; }
.home-topic-feature > .button:hover { background: #9a82ff32; }
.banner { padding: 26px 30px; }
.banner h3 { color: #eee8ff; }
.genre-chip { border-color: #b7c0fa1c; background: #141b2d; color: #a6b0cd; border-radius: 9px; }
.genre-chip:hover { border-color: #a890ef70; background: #9a82ff17; color: #d6c8fc; }

/* Topic collections combine miniature book jackets and a strong title. */
.topic-spotlight { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; overflow: hidden; position: relative; isolation: isolate; min-height: 390px; padding: 40px 54px; margin: 0 0 35px; border: 1px solid #b8a1ff2e; border-radius: 24px; background: radial-gradient(ellipse at 75% 40%, #7b4aac3b, transparent 62%), #15172c; }
.topic-spotlight:after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; right: 7%; top: 9%; border: 1px solid #c9b3ff1b; border-radius: 50%; box-shadow: 0 0 0 45px #c9b3ff05, 0 0 0 90px #c9b3ff04; }
.topic-spotlight h1 { margin: 13px 0 17px; max-width: 490px; font-size: clamp(30px, 3.4vw, 49px); line-height: 1.2; }
.topic-spotlight p { max-width: 430px; font-size: 13px; line-height: 1.95; }
.topic-spotlight .button { margin-top: 12px; }
.topic-cover-stack { display: flex; align-items: center; justify-content: center; min-width: 0; height: 305px; padding-right: 7px; }
.topic-cover-stack > .art-frame { width: clamp(100px, 12vw, 180px); aspect-ratio: 2 / 3; flex: 0 0 auto; border: 3px solid #e9deff65; border-radius: 11px; box-shadow: 0 18px 45px #0006; }
.topic-cover-stack > .art-frame:nth-child(1) { transform: rotate(-12deg) translate(20px, 12px); }
.topic-cover-stack > .art-frame:nth-child(2) { z-index: 2; transform: translateY(-9px); }
.topic-cover-stack > .art-frame:nth-child(3) { transform: rotate(12deg) translate(-20px, 12px); }
.topic-cover-stack .poster-art-title { font-size: 20px; bottom: 15px; }
.topic-cover-stack .poster-art-edition { font-size: 6px; top: 12px; }
.topic-curation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.topic-curation-card { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 24px; border: 1px solid #b9b1f724; border-radius: 19px; background: linear-gradient(160deg, #28203b72, transparent 70%), #121a2c; }
.topic-curation-card:nth-child(3n+2) { background: linear-gradient(160deg, #233c4580, transparent 70%), #121a2c; }
.topic-curation-card:nth-child(3n+3) { background: linear-gradient(160deg, #43243e73, transparent 70%), #121a2c; }
.topic-curation-card:hover { border-color: #bca3ff5c; }
.topic-curation-card h2 { margin: 9px 0; font-size: 22px; }
.topic-curation-card p { margin-bottom: 19px; font-size: 12px; line-height: 1.9; }
.topic-mini-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: auto 0 21px; }
.topic-mini-covers .art-frame { aspect-ratio: 2 / 3; border: 1px solid #ffffff18; border-radius: 8px; }
.topic-mini-covers .poster-art-title { font-size: 14px; left: 7px; right: 6px; bottom: 10px; }
.topic-mini-covers .poster-art-edition { display: none; }
.topic-curation-card > a.button { align-self: flex-start; min-height: 35px; font-size: 11px; color: #cebdff; border-color: #b29af540; background: #9a82ff13; }
.topic-card { border-color: #b7c0fa24; background: #121a2c; border-radius: 17px; }
.topic-card h3 { color: #eee9ff; }
.topic-card p { color: #939fbd; }

/* Filters: lavender selection is distinct even without its text label. */
.channel-tabs { column-gap: 27px; border-bottom-color: #b7c0fa18; margin: 25px 0 24px; }
.channel-tabs .button { min-height: 44px; padding: 10px 1px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 14px; color: #929eb9; }
.channel-tabs .button:hover { background: transparent; color: #d4c2ff; }
.channel-tabs .button.primary { color: #ff8cba; border-color: #ff79ad; background: transparent; box-shadow: none; }
.filter-list { gap: 8px; }
.filter-list a { background: #121a2b; color: #99a5c1; border-color: #b7c0fa1b; border-radius: 7px; padding: 7px 14px; font-size: 12px; }
.filter-list a:hover { border-color: #a78de966; color: #d7c7ff; }
.filter-list a.selected { background: #9a82ff20; color: #d3c2ff; border-color: #ad94f36e; }
.channel-filter-panel { background: var(--bg); border-color: #b7c0fa24; border-radius: 17px; color: #bdc7df; }
.channel-filter-panel > summary { top: 14px; right: 18px; min-height: 34px; border-color: #b7c0fa2b; background: #1a2338; color: #aab7d5; border-radius: 8px; padding: 6px 10px; }
.channel-filter-panel > summary span { gap: 6px; }
.channel-filter-panel > summary:hover { color: #d7c7ff; border-color: #a990ec65; }
.channel-filter-panel:not([open]) { min-height: 64px; }
.channel-filter-panel:not([open]):before { padding: 20px 22px; color: #c9bcf3; font-size: 13px; }
.channel-filter-row { padding: 16px 22px; gap: 14px; }
.channel-filter-row:first-child { padding-right: 148px; }
.channel-filter-row + .channel-filter-row { border-color: #b7c0fa13; }
.channel-filter-row > strong { padding: 6px 0; color: #b2bbd6; font-size: 13px; }
.channel-filter-options { gap: 6px 8px; }
.channel-filter-chip { min-height: 34px; min-width: 70px; padding: 6px 14px; border-radius: 8px; border-color: #b7c0fa1e; color: #9eacca; background: #151f33; font-size: 13px; }
.channel-filter-chip:hover { border-color: #a48af075; color: #ddd0ff; background: #9a82ff13; }
.channel-filter-chip.selected { color: #eee5ff; background: #7960ba48; border-color: #b59aff; box-shadow: inset 0 0 0 1px #b59aff17; font-weight: 650; }
.channel-filter-chip:focus-visible, .channel-filter-panel > summary:focus-visible { outline-color: #c7b1ff; }
@media (max-width: 700px) {
  .channel-filter-panel { border-radius: 13px; margin-bottom: 23px; }
  .channel-filter-row { padding: 12px 14px; grid-template-columns: 1fr; gap: 8px; }
  .channel-filter-row:first-child { padding: 16px 14px 12px; }
  .channel-filter-row > strong { padding: 0 112px 0 0; min-height: 26px; font-size: 12px; }
  .channel-filter-panel > summary { top: 10px; right: 10px; min-height: 32px; padding: 6px 10px; font-size: 11px; }
  .channel-filter-chip { min-width: 58px; min-height: 32px; padding: 6px 10px; font-size: 11px; border-radius: 7px; }
  .channel-filter-options { gap: 6px; }
  .channel-filter-panel:not([open]):before { padding: 20px 14px; font-size: 13px; }
}
.filters, form[data-form="filters"] { padding: 16px 0; gap: 11px; border-color: #b7c0fa12; }
.filters input, .filters select, .filters button { min-height: 43px; }
.notice { background: #151c32; color: #a5b0cc; border-color: #b49cfc26; border-radius: 10px; font-size: 12px; line-height: 1.9; }
.notice.error, .error { background: #351c36; color: #ffc4d6; border-color: #f77fa340; }
.empty { border-color: #b7a2fa33; background: #12192980; color: #94a0bd; border-radius: 17px; padding: 55px 24px; }
.empty h3 { color: #d8def2; }
.empty p { color: #94a0bd; }
.loading { color: #a798d6; }

/* Ranking podium and the complete, readable table beneath it. */
.ranking-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 20px; margin: 32px 0 36px; }
.podium-card { display: flex; align-items: center; position: relative; min-width: 0; min-height: 237px; overflow: hidden; gap: 20px; padding: 26px 22px; border: 1px solid #b3a2ef30; border-radius: 19px; background: radial-gradient(ellipse at 100% 0, #a58bff18, transparent 70%), #141d31; }
.podium-card.is-first { min-height: 268px; border-color: #ff79af55; background: radial-gradient(ellipse at 100% 0, #c6427830, transparent 75%), #211b32; }
.podium-card:after { content: ""; position: absolute; right: -45px; top: -65px; width: 200px; height: 200px; border: 1px solid #b4a5ef11; border-radius: 50%; }
.podium-number { position: absolute; right: 17px; top: 5px; color: #b5a0f31f; font-size: 85px; font-weight: 850; font-style: italic; line-height: 1.2; }
.is-first .podium-number { color: #ff82b126; }
.podium-art { z-index: 1; width: 111px; aspect-ratio: 2 / 3; flex: 0 0 auto; border: 1px solid #d3c6ff37; border-radius: 9px; box-shadow: 0 8px 22px #0005; }
.podium-art .poster-art-title, .podium-art .poster-art-edition { display: none; }
.podium-copy { min-width: 0; position: relative; z-index: 1; }
.podium-copy h2, .podium-copy h3 { margin: 8px 0; font-size: 20px; line-height: 1.5; letter-spacing: -.5px; }
.podium-copy p { color: #969fbe; font-size: 11px; margin: 7px 0 15px; }
.podium-copy > strong { display: block; color: #c4b1f4; font-size: 11px; font-weight: 600; margin: 0 0 15px; }
.is-first .podium-copy > strong { color: #ff9bc5; }
.podium-copy > .eyebrow, .podium-copy > small { color: #bdabf2; font-size: 10px; }
.is-first .podium-copy > .eyebrow, .is-first .podium-copy > small { color: #ff8fbb; }
.podium-copy .button { color: #ded2ff; border-color: #a68bdf4d; background: #9a82ff16; padding: 8px 12px; min-height: 34px; font-size: 11px; }
.is-first .podium-copy .button { color: #ffc0dc; border-color: #ff79b04d; background: #ff5c9b18; }
.ranking-table-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 0 0 14px; margin-top: 20px; border-bottom: 1px solid #b7c0fa23; color: #74819f; font-size: 11px; letter-spacing: .5px; }
.ranking-table-header h2, .ranking-table-header strong { margin: 0; font-size: 17px; color: #d3d9ee; letter-spacing: 0; }
.ranking-row { grid-template-columns: 35px 77px minmax(0, 1fr) 160px; gap: 24px; padding: 21px 10px; margin: 0; background: transparent; border: 0; border-bottom: 1px solid #b7c0fa13; border-radius: 0; }
.ranking-top { background: linear-gradient(90deg, #9a82ff06, transparent 55%); border-color: #b7c0fa16; }
.ranking-row:hover { background: #141b2c80; }
.ranking-row > a { position: relative; display: block; width: 77px; height: 115.5px; border-radius: 8px; }
.ranking-row .ranking-cover.art-frame { position: relative; inset: auto; width: 100%; height: 100%; aspect-ratio: 2 / 3; border-radius: 8px; }
.ranking-cover .poster-art-title, .ranking-cover .poster-art-edition { display: none; }
.ranking-copy h2 { color: #e6e4f6; font-size: 18px; font-weight: 650; }
.ranking-copy a:hover h2 { color: #ff99c2; }
.ranking-copy p { margin: 7px 0; color: #8b98b6; font-size: 12px; }
.ranking-description { color: #75839f; }
.ranking-metric { color: #b8a4ef; gap: 13px; font-size: 12px; }
.ranking-metric strong { font-weight: 600; }
.ranking-metric .button { background: transparent; color: #ccc4e5; border-color: #b7a6e936; }
.ranking-metric .button:hover { border-color: #ff82b374; color: #ffb6d7; background: #ff5c9b10; }
.ranking-row .rank-num { width: 35px; color: #616f90; font-size: 24px; font-weight: 600; }
.ranking-top .rank-num { color: #b69bea; }
.ranking-row:first-of-type .rank-num { color: #ff89b8; }

/* Story details, personal pages and player controls share one panel system. */
.panel { border: 1px solid #b7c0fa1b; background: #121a2b; border-radius: 18px; padding: 26px; box-shadow: none; }
.panel h2 { font-size: 20px; }
.panel h3 { font-size: 16px; font-weight: 650; }
.two-col { grid-template-columns: minmax(0, 2.15fr) minmax(270px, 1fr); gap: 25px; }
.two-col > *, .three-col > * { min-width: 0; }
.detail-intro { align-items: center; gap: 28px; margin: 0 0 30px; }
.detail-cover, .detail-cover.art-frame { width: clamp(140px, 17vw, 205px); height: auto; aspect-ratio: 2 / 3; flex: 0 0 auto; border-radius: 14px; border: 1px solid #c6b2ff29; box-shadow: 0 13px 28px #0004; }
.detail-heading { display: block; }
.detail-heading h1 { color: #f7f0ff; margin: 12px 0; font-size: 32px; font-weight: 750; }
.detail-heading p { color: #95a2c0; font-size: 12px; }
.detail-heading p a { color: #c0a7f5; }
.detail-heading .actions { gap: 9px; margin-top: 20px; }
.detail-heading .actions .button, .detail-heading .actions button { min-height: 38px; padding: 9px 13px; font-size: 12px; }
.work-metadata { gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.work-metadata dt { color: #75839f; font-size: 11px; }
.work-metadata dd { color: #bdc7e0; font-size: 13px; }
.detail-page .panel > p { font-size: 13px; line-height: 1.95; }
.list-row { border-color: #b7c0fa12; gap: 14px; }
.list-body h3 { font-size: 14px; font-weight: 600; }
.list-body p { color: #8795b3; font-size: 11px; }
.list-art-thumb { width: 54px; height: 81px; aspect-ratio: 2 / 3; border-radius: 7px; flex: 0 0 auto; }
.list-art-thumb .poster-art-title, .list-art-thumb .poster-art-edition { display: none; }
.home-resume .list-art-thumb { width: 42px; height: 63px; }
.list-row > img:not(.poster-atlas) { width: 54px; height: 81px; border-radius: 7px; }
.player { background: #050916; border-color: #b7c0fa24; border-radius: 17px; box-shadow: 0 8px 35px #0003; }
.player video { background: #050713; }
.player-tools { background: #151d30; color: #929fbd; border-color: #b7c0fa15; font-size: 12px; }
.player-tools select { background: #0e1627; }
.episode-navigation { background: #131c2e; border-color: #b7c0fa1f; border-radius: 12px; }
.episode-position { color: #e1ddf6; font-size: 13px; }
.episode-grid { gap: 8px; }
.episode-grid a { padding: 11px 7px; background: #19233a; color: #a4b0cd; border: 1px solid #b7c0fa1a; border-radius: 7px; font-size: 12px; }
.episode-grid a:hover { color: #dfcfff; border-color: #b49aef70; background: #9a82ff1b; }
.episode-grid a.selected, .episode-grid a.active { background: #9a82ff28; border-color: #b09aef; color: #e4d7ff; }
.episode-jump { color: #94a1bf; }
.episode-grid-bounded { scrollbar-color: #6d5c9d #151d30; }
.profile-heading .avatar { width: 74px; height: 74px; border: 3px solid #d7c5ff25; box-shadow: 0 0 0 5px #9a82ff08; }
.profile-heading h1 { color: #f4edff; font-weight: 750; margin: 5px 0; }
.profile-nav { border-color: #b7c0fa1b; gap: 5px; }
.profile-nav a { color: #8e9bb9; border-bottom: 2px solid transparent; font-size: 12px; padding: 12px 13px; }
.profile-nav a.active { color: #cbb8ff; border-color: #ad92f5; background: transparent; }
.profile-nav a:hover { color: #ff9dc6; }
.stats { gap: 44px; }
.stats strong { color: #e7dcff; font-size: 28px; font-weight: 750; font-variant-numeric: tabular-nums; }
.stats span { color: #8694b3; font-size: 11px; }
.notification-dot { background: #535f7c; }
.notification-dot.is-unread { background: #ff70a5; box-shadow: 0 0 0 3px #ff5c9b14; }

/* Community reads as a magazine, with the same illustrated world. */
.community-blog-header { margin: 8px 0 30px; }
.community-blog-header h1 { color: #f6f0ff; font-size: 37px; font-weight: 750; }
.community-blog-header p { color: #929fbd; font-size: 13px; }
.community-toolbar { border-color: #b7c0fa1b; padding-bottom: 12px; }
.community-categories { gap: 25px; }
.community-categories a { font-size: 14px; color: #8d9bb8; }
.community-categories a.selected { color: #d3bfff; border-color: #b298f5; }
.community-categories a:hover { color: #ff9cc6; }
.community-result-count { color: #74829f; font-size: 11px; }
.community-blog-grid { gap: 24px; }
.community-article-card { border: 1px solid #b7c0fa1d; border-radius: 17px; background: #131b2d; }
.community-article-card:hover { background: #172137; border-color: #bda3f65c; }
.community-card-image { height: 218px; background: #222341; }
.community-card-image > .community-blog-cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; transform: none; }
.community-blog-cover .poster-artwork { inset: auto 0; top: 50%; width: 100%; height: auto; aspect-ratio: 2 / 3; transform: translateY(-38%); }
.community-blog-cover .poster-art-title, .community-blog-cover .poster-art-edition { display: none; }
.community-blog-cover .poster-art-shade { background: linear-gradient(0deg, #101a3580, #0d122520); }
.community-card-image:after { background: linear-gradient(0deg, #131b2d80, transparent 65%); }
.community-card-image > span:not(.community-blog-cover) { color: #e7d7ff; background: #161830c9; border-color: #c1a9f545; border-radius: 5px; font-size: 10px; }
.community-card-copy { padding: 25px; }
.community-byline { color: #8492b1; }
.community-byline .avatar { border-color: #c9b3f32c; }
.community-card-copy h2 { color: #eae6fa; font-size: 21px; margin: 16px 0 12px; line-height: 1.6; font-weight: 650; }
.community-card-copy > p { color: #8e9cba; font-size: 13px; line-height: 1.9; }
.community-card-meta { color: #6e7e9e; }
.community-card-meta span:last-child { color: #b7a0ec; }
.community-pagination .primary { background: #9a82ff2e; border-color: #ac91f5; color: #e5d8ff; box-shadow: none; }
.community-page-jump label { color: #8796b7; }
.community-faq { border-color: #b7c0fa1a; }
.community-faq details { border-color: #b7c0fa15; color: #9daac7; }
.community-faq summary { color: #c5cce3; }
.community-faq p { color: #8c9aba; }
.community-breadcrumb { color: #7d8cab; }
.community-category-badge { color: #c8b2ff; background: #9a82ff12; border-color: #ad91eb40; border-radius: 6px; }
.community-article h1 { color: #f1eaff; font-weight: 750; }
.community-article-lead { color: #b4bdd7; border-color: #bd9ffba0; background: #9a82ff06; padding: 13px 20px; }
.community-article-body h2 { color: #e5dff7; }
.community-article-body p { color: #9facc9; }
.community-related-work { background: #151d32; border-color: #b99cee2c; border-radius: 15px; }
.community-related-work > .art-frame { width: 88px; height: 132px; flex: 0 0 auto; border-radius: 8px; }
.community-related-work .poster-art-title, .community-related-work .poster-art-edition { display: none; }
.community-related-work h2 { color: #e4d7ff; }
.community-article-neighbors, .community-related-articles { border-color: #b7c0fa19; }
.community-article-neighbors small { color: #7584a5; }
.community-article-neighbors strong { color: #c2b7de; }
.community-related-articles .community-card-image { height: 165px; }
.post { border-color: #b7c0fa1d; background: #131c2f; border-radius: 16px; padding: 24px; }
.post-header strong { color: #e0dcf3; }
.post-header time { color: #7584a4; }
.post-body { color: #bdc6df; line-height: 1.9; }
.post-image { border-radius: 10px; }
.post .actions button { border-color: #b7c0fa26; color: #aebbd8; background: transparent; }
.post .actions [data-action="post-like"][aria-pressed="true"] { color: #ff96c0; border-color: #ff5c9b55; background: #ff5c9b17; }
.comment { border-color: #b7c0fa16; }
.comment p { color: #a6b4d0; }
.comment strong { color: #cfc3eb; }

/* Dialogs and feedback keep the same soft, precise contrast. */
.modal-backdrop { background: #040816b8; backdrop-filter: blur(12px); }
.modal { background: radial-gradient(ellipse at 90% 0, #9a82ff12, transparent 65%), #151d31; border: 1px solid #bda4f949; border-radius: 22px; padding: 32px; box-shadow: 0 25px 100px #0009; }
.modal h2 { color: #f3eaff; font-weight: 750; }
.modal .brand-mark { margin-bottom: 0; }
.modal button[data-action="modal-close"] { min-height: 32px; color: #8492b2; border-radius: 8px; }
.modal button[data-action="modal-close"]:hover { background: #a38bee1c; color: #e6d8ff; }
.modal .tabs { background: #0d1426; padding: 5px; border-radius: 10px; margin: 24px 0; }
.modal .tabs button { flex: 1; }
.form-error { color: #ffafca; }
.toast { color: #e3d5ff; background: #24203c; border-color: #bd9cf96b; border-radius: 11px; box-shadow: 0 10px 35px #0007; }
.footer { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 0; margin-top: 42px; border-top: 1px solid #b7c0fa12; color: #62708f; gap: 20px; font-size: 11px; }
.footer a { color: #8795b4; }
.footer a:hover { color: #c8b4f7; }
.footer-note { display: block; color: #a69bc4; font-size: 12px; letter-spacing: .7px; margin: 0 0 5px; }
.footer .ui-icon { color: #9c85cb; }

@media (min-width: 900px) and (max-width: 1199px) {
  :root { --gutter: 30px; }
  .topbar { gap: 15px; }
  .brand { width: auto; font-size: 18px; gap: 8px; }
  .brand-mark { width: 29px; height: 31px; }
  .nav-main { gap: 1px; }
  .nav-main a { font-size: 13px; padding: 10px 9px; }
  .personal-menu .menu-label, .personal-menu .icon-chevron { display: none; }
  .personal-menu .icon-menu { display: inline-block; }
  .header-account, .top-actions { gap: 8px; }
  .search button { display: inline-flex; }
  .grid, .grid--home, .grid--channel, .grid--manga { gap: 24px 15px; }
  .hero-content { bottom: 48px; left: 38px; width: 50%; }
  .hero h1 { font-size: 46px; }
  .tonight-card { min-height: 146px; }
  .tonight-copy, .tonight-card.featured .tonight-copy { left: 11px; right: 9px; bottom: 12px; }
  .tonight-copy strong, .tonight-card.featured strong { font-size: 12px; }
  .tonight-copy span { font-size: 9px; }
  .podium-card { padding: 23px 15px; gap: 13px; }
  .podium-art { width: 90px; }
  .podium-copy h2, .podium-copy h3 { font-size: 17px; }
  .topic-spotlight { padding: 35px; }
  .topic-curation-card { padding: 20px; }
}

@media (max-width: 899px) {
  :root { --gutter: 24px; --bg: #080c18; --panel: #121829; --text: #f5f3ff; --muted: #939ab4; --brand: #ff79b0; }
  body { background: var(--bg); font-size: 13px; }
  html { scroll-padding-top: 170px; }
  .site-header { background: #080c18f5; }
  .topbar { width: calc(100% - var(--gutter) * 2); grid-template-columns: minmax(0, 1fr) auto; padding: 13px 0 9px; min-height: 0; gap: 12px; row-gap: 11px; background: transparent; }
  .brand { width: auto; font-size: 20px; gap: 10px; }
  .brand-mark { width: 30px; height: 32px; border-radius: 10px 10px 11px 5px; }
  .brand-mark .ui-icon { width: 17px; height: 17px; }
  .header-account { gap: 13px; }
  .top-actions { gap: 10px; }
  .top-actions .primary { min-height: 33px; font-size: 11px; padding: 8px 12px; }
  .avatar { width: 32px; height: 32px; }
  .personal-menu summary { font-size: 11px; }
  .personal-menu .menu-label, .personal-menu .icon-chevron { display: inline-block; }
  .personal-menu .icon-menu { display: none; }
  .search { height: 39px; border-radius: 20px; grid-column: 1 / -1; grid-row: 2; }
  .search button { display: inline-flex; }
  .topbar { grid-template-columns: minmax(0, 1fr) 36px auto; }
  .header-account { grid-column: 3; grid-row: 1; }
  .header-search { grid-column: 2; grid-row: 1; width: 36px; }
  .header-search .search-trigger { width: 36px; height: 36px; min-height: 36px; padding: 8px; }
  .header-search.is-open { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .topbar .nav-main { grid-row: 2; }
  .topbar:has(.header-search.is-open) .nav-main { grid-row: 3; }
  .nav-main { grid-column: 1 / -1; grid-row: 3; gap: 10px; padding-bottom: 3px; margin: 0; scrollbar-width: none; }
  .nav-main a { font-size: 13px; padding: 7px 10px 10px; border-radius: 0; color: #929eba; }
  .nav-main a.active, .nav-main a[aria-current="page"] { background: transparent; color: #ff84b5; }
  .nav-main a.active:after, .nav-main a[aria-current="page"]:after { display: block; bottom: 0; }
  .page { padding-top: 20px; padding-bottom: 105px; }
  .hero, .hero.night-hero { height: 460px; border-radius: 20px; }
  .hero-content { width: 55%; max-width: none; left: 30px; bottom: 48px; }
  .hero h1 { font-size: 44px; line-height: 1.2; letter-spacing: -1.2px; }
  .hero-kicker { font-size: 9px; letter-spacing: 1.8px; }
  .hero p.hero-subtitle, .hero .hero-subtitle { display: block; font-size: 12px; margin-bottom: 19px; }
  .hero .pills { margin: 9px 0 20px; }
  .hero .actions .button, .hero .actions button { min-height: 42px; height: auto; font-size: 12px; padding: 11px 16px; }
  .hero .actions .primary { min-width: 138px; }
  .hero-bottom { right: 25px; bottom: 19px; }
  .hero-featured-title { font-size: 10px; }
  .hero-featured-title strong { font-size: 16px; }
  .tonight { margin: 26px 0; }
  .tonight-heading h2 { font-size: 18px; }
  .tonight-grid { gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); height: auto; }
  .tonight-card { aspect-ratio: .86; min-height: 0; border-radius: 10px; }
  .tonight-art .poster-artwork { width: 118%; right: -13%; top: 0; }
  .tonight-copy, .tonight-card.featured .tonight-copy { left: 9px; right: 7px; bottom: 10px; }
  .tonight-copy strong, .tonight-card.featured strong { font-size: 11px; white-space: normal; }
  .tonight-copy span { font-size: 9px; gap: 2px; }
  .tonight-copy .type-badge { font-size: 7px; padding: 2px 3px; }
  .grid, .grid--home, .grid--channel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px 14px; }
  .grid--manga { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .poster, .grid .poster { border-radius: 11px; }
  .poster-art-title { font-size: 22px; left: 11px; right: 10px; bottom: 37px; }
  .poster-art-edition { font-size: 7px; letter-spacing: 1.7px; }
  .card h3, .grid .card h3 { font-size: 13px; }
  .card p, .grid .card p { font-size: 10px; }
  .card-copy, .grid .card-copy { padding-top: 10px; }
  .section-head h2, .home-catalog h2 { font-size: 21px; }
  .section-head { gap: 12px; margin: 25px 0 16px; }
  .home-catalog .section-head { gap: 12px; margin-bottom: 16px; }
  .home-catalog .section-head .tabs { margin-left: auto; }
  .home-manga { margin-top: 34px; }
  .home-topic-feature { padding: 23px; }
  .home-topic-feature h2 { font-size: 22px; }
  .home-resume.is-guest { font-size: 10px; padding: 10px 12px; }
  .popular-tag-list a { padding: 7px 15px; font-size: 11px; }
  .home-shortcuts { margin-top: 28px; padding-top: 20px; gap: 22px; }
  .two-col, .three-col { display: block; }
  .panel { padding: 23px; border-radius: 16px; }
  .detail-heading h1 { font-size: 28px; }
  .detail-cover, .detail-cover.art-frame { width: 180px; }
  .detail-intro { margin-bottom: 25px; gap: 24px; }
  .detail-page > aside { margin-top: 24px; }
  .list-row { flex-wrap: nowrap; }
  .list-row .actions { width: auto; padding-left: 0; flex-wrap: wrap; }
  .list-body { min-width: 0; }
  .filters, form[data-form="filters"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-tabs { margin: 21px 0; }
  .profile-nav { margin: 22px 0; gap: 4px; }
  .profile-nav a { font-size: 11px; padding: 10px 11px; }
  .ranking-podium { gap: 14px; }
  .podium-card { flex-direction: column; gap: 15px; padding: 25px 16px 20px; min-height: 336px; text-align: center; }
  .podium-card.is-first { min-height: 367px; }
  .podium-art { width: 112px; }
  .podium-copy { width: 100%; }
  .podium-copy h2, .podium-copy h3 { font-size: 17px; }
  .podium-copy p { margin-bottom: 11px; }
  .podium-copy .button { min-height: 34px; font-size: 11px; }
  .podium-number { font-size: 51px; right: 9px; top: 7px; }
  .ranking-row { grid-template-columns: 29px 68px minmax(0, 1fr) 125px; gap: 15px; padding: 18px 5px; }
  .ranking-row > a { width: 68px; height: 102px; }
  .ranking-copy h2 { font-size: 16px; }
  .ranking-copy p { font-size: 11px; }
  .ranking-metric { grid-column: auto; text-align: right; }
  .topic-spotlight { padding: 30px; gap: 17px; min-height: 340px; border-radius: 20px; }
  .topic-spotlight h1 { font-size: 34px; }
  .topic-cover-stack { height: 270px; }
  .topic-cover-stack > .art-frame { width: 115px; border-width: 2px; }
  .topic-cover-stack .poster-art-title { font-size: 16px; left: 8px; right: 8px; }
  .topic-curation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .topic-curation-card { padding: 22px; }
  .community-blog-header { align-items: flex-start; gap: 17px; flex-direction: column; }
  .community-blog-header h1 { font-size: 31px; }
  .community-card-image { height: 185px; }
  .community-card-copy { padding: 21px; }
  .community-card-copy h2 { font-size: 18px; }
  .community-card-copy > p { font-size: 12px; }
  .community-related-articles .community-card-image { height: 150px; }
  .post { padding: 21px; }
  .modal { padding: 30px 25px; }
  .mobile-bottom { height: 65px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: 14px; right: 14px; border: 1px solid #b7b0f32e; border-radius: 22px; background: #141d31f5; backdrop-filter: blur(16px); box-shadow: 0 0 30px #0005; padding: 9px 5px; }
  .mobile-bottom a { position: relative; color: #8190b2; font-size: 10px; }
  .mobile-bottom a.active, .mobile-bottom a[aria-current="page"] { color: #ff85b6; }
  .mobile-bottom a.active:before { content: ""; position: absolute; left: calc(50% - 15px); top: -4px; width: 30px; height: 2px; border-radius: 2px; background: #ff80b1; }
  .mobile-bottom a .nav-icon { margin: 0; }
  .mobile-bottom a .nav-icon .ui-icon { width: 21px; height: 21px; }
  .mobile-bottom a .nav-label { font-size: 10px; }
  .toast-wrap { bottom: 95px; }
  .footer { margin-top: 34px; padding-top: 25px; font-size: 10px; }
}

@media (max-width: 599px) {
  :root { --gutter: 17px; }
  .topbar { padding-top: 12px; row-gap: 10px; }
  .brand { font-size: 19px; gap: 9px; }
  .header-account { gap: 10px; }
  .top-actions { gap: 7px; }
  .notify-link { width: 25px; }
  .personal-menu summary { gap: 3px; }
  .nav-main { justify-content: space-between; gap: 0; }
  .nav-main a { padding-left: 10px; padding-right: 10px; font-size: 12px; }
  .search { height: 38px; }
  .page { padding-top: 15px; }
  .hero, .hero.night-hero { height: 538px; border-radius: 17px; }
  .hero .hero-art, .hero-art img { object-position: 68% center; }
  .hero:after { background: linear-gradient(0deg, #10142cfb 0%, #10142ce8 22%, #10142c93 47%, #10142c12 78%), linear-gradient(90deg, #0e132666, transparent 85%); }
  .hero-content { left: 24px; right: 22px; bottom: 48px; width: auto; max-width: none; }
  .hero h1 { max-width: 290px; font-size: 37px; letter-spacing: -1.1px; line-height: 1.22; margin: 13px 0 11px; }
  .hero-kicker { font-size: 8px; letter-spacing: 1.8px; gap: 7px; }
  .hero-kicker:before { width: 6px; height: 6px; }
  .hero p.hero-subtitle, .hero .hero-subtitle { max-width: 270px; margin: 0 0 17px; font-size: 11px; line-height: 1.75; }
  .hero-featured-title { font-size: 9px; margin-bottom: 7px; }
  .hero-featured-title strong { font-size: 14px; }
  .hero .pills { gap: 5px; margin: 8px 0 18px; }
  .hero .pill, .hero .type-badge { font-size: 9px; padding: 3px 6px; }
  .hero .actions { gap: 8px; }
  .hero .actions .button, .hero .actions button { min-height: 41px; height: auto; padding: 11px 14px; font-size: 12px; }
  .hero .actions .primary { min-width: 145px; }
  .hero-bottom { right: 23px; bottom: 13px; gap: 4px; }
  .hero-bottom button { width: 14px; }
  .hero-bottom button:before { width: 5px; height: 5px; }
  .hero-bottom button.selected { width: 23px; }
  .hero-bottom button.selected:before { width: 22px; }
  .home-announcements { margin: 15px 0 22px; padding: 8px 10px; gap: 9px; border-radius: 9px; }
  .announcement-label { font-size: 10px; gap: 5px; padding-right: 9px; }
  .announcement-label .ui-icon { width: 14px; height: 14px; }
  .announcement-item { font-size: 10px; }
  .announcement-toggle { font-size: 9px; padding: 5px 2px; }
  .tonight { margin: 22px 0 25px; }
  .tonight-heading { margin-bottom: 12px; }
  .tonight-heading h2 { font-size: 18px; }
  .tonight-heading a { font-size: 10px; }
  .tonight-grid { grid-template-columns: repeat(5, 137px); gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 0 0 8px; scrollbar-width: none; }
  .tonight-card { aspect-ratio: .91; scroll-snap-align: start; }
  .tonight-copy strong, .tonight-card.featured strong { font-size: 12px; }
  .tonight-copy span { font-size: 8px; }
  .tonight-copy .type-badge { font-size: 7px; }
  .popular-tags-heading h2 { font-size: 16px; }
  .popular-tags-heading > a { font-size: 10px; }
  .popular-tag-list { gap: 8px; }
  .popular-tag-list a { flex: 0 0 calc((100% - 24px) / 4); padding: 7px 4px; font-size: 11px; border-radius: 8px; text-align: center; }
  .home-topic-feature { padding: 20px; gap: 15px; border-radius: 14px; align-items: flex-start; flex-direction: column; }
  .home-topic-feature h2 { font-size: 23px; }
  .home-topic-feature p { font-size: 11px; }
  .home-topic-feature .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .home-topic-feature > .button { min-height: 34px; padding: 8px 12px; font-size: 11px; }
  .home-resume.is-guest { padding: 10px; }
  .home-resume .resume-prompt { gap: 7px; font-size: 9px; }
  .home-resume .resume-prompt > button { flex: 0 0 auto; min-height: 28px; padding: 5px 9px; font-size: 9px; }
  .home-catalog { margin-top: 29px; }
  .home-catalog .section-head { gap: 7px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
  .section-head h2, .home-catalog h2 { font-size: 20px; }
  .section-head a { font-size: 10px; }
  .catalog-section-kicker { font-size: 8px; letter-spacing: 2px; margin-bottom: 2px; }
  .home-catalog .tabs { gap: 1px; }
  .tabs button, .tabs .button { min-height: 29px; padding: 6px 8px; font-size: 10px; border-radius: 6px; }
  .home-catalog .section-head > a { margin-left: auto; }
  .grid, .grid--home, .grid--channel, .grid--manga { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; row-gap: 21px; }
  .poster, .grid .poster { border-radius: 9px; }
  .poster-art-title { left: 8px; right: 7px; bottom: 31px; font-size: 18px; line-height: 1.15; letter-spacing: -.8px; }
  .poster-art-edition { top: 11px; left: 8px; font-size: 5px; letter-spacing: 1.1px; }
  .card-copy, .grid .card-copy { gap: 2px; padding-top: 8px; }
  .card h3, .grid .card h3 { font-size: 12px; font-weight: 650; }
  .card p, .grid .card p { font-size: 9px; }
  .card p:last-child, .grid .card .release-meta { font-size: 8px; }
  .favorite { width: 25px; height: 25px; min-height: 25px; padding: 5px; right: 6px; top: 6px; }
  .favorite .ui-icon { width: 13px; height: 13px; }
  .score, .grid .score { left: 6px; bottom: 7px; font-size: 8px; padding: 2px 4px; gap: 2px; }
  .score .ui-icon { width: 9px; height: 9px; }
  .episode-count { right: 6px; bottom: 7px; font-size: 7px; padding: 2px 4px; }
  .home-shortcuts { gap: 20px; padding-top: 19px; margin-top: 29px; }
  .home-shortcuts a { font-size: 10px; }
  .home-shortcuts .ui-icon { width: 14px; height: 14px; }
  .section-head { margin: 22px 0 16px; }
  .section-head h1 { font-size: 28px; }
  .channel-tabs { gap: 22px; margin: 19px 0; }
  .channel-tabs .button { min-height: 37px; padding: 9px 1px 12px; font-size: 13px; }
  .filters, form[data-form="filters"] { gap: 8px; }
  .filters input, .filters select, .filters button { font-size: 11px; min-height: 41px; }
  .filter-list { gap: 7px; }
  .filter-list a { padding: 6px 11px; font-size: 11px; }
  .panel { padding: 19px; border-radius: 14px; }
  .panel h2 { font-size: 18px; }
  .notice { font-size: 11px; padding: 12px 14px; }
  .banner { padding: 21px; border-radius: 14px; }
  .banner .button { flex-shrink: 0; }
  .detail-intro { gap: 17px; align-items: flex-start; }
  .detail-cover, .detail-cover.art-frame { width: 110px; border-radius: 10px; }
  .detail-cover .poster-art-title { font-size: 16px; bottom: 16px; }
  .detail-cover .poster-art-edition { font-size: 5px; }
  .detail-heading h1 { font-size: 24px; margin: 9px 0; }
  .detail-heading p { font-size: 10px; margin-bottom: 8px; line-height: 1.8; }
  .detail-heading .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .detail-heading .actions { padding-top: 4px; margin-top: 8px; gap: 7px; }
  .detail-heading .actions button, .detail-heading .actions .button { min-height: 34px; padding: 8px 10px; font-size: 10px; }
  .detail-heading .actions .primary { flex-basis: 100%; }
  .detail-heading .actions .ui-icon { width: 13px; height: 13px; }
  .work-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .work-metadata dd { font-size: 11px; }
  .work-metadata dt { font-size: 10px; }
  .list-row { gap: 11px; flex-wrap: wrap; }
  .list-art-thumb, .list-row > img:not(.poster-atlas) { width: 47px; height: 70.5px; }
  .list-row .list-body { flex: 1; min-width: 140px; }
  .list-row .actions { width: 100%; padding-left: 58px; }
  .home-resume .list-row .actions { width: auto; padding-left: 0; }
  .list-row .actions button, .list-row .actions .button { font-size: 10px; padding: 7px 9px; }
  .list-body h3 { font-size: 13px; }
  .player { border-radius: 12px; }
  .player video { aspect-ratio: 16 / 10; }
  .player-tools { padding: 10px; gap: 9px; font-size: 10px; }
  .player-tools .actions { gap: 6px; }
  .player-tools select { width: 103px; font-size: 10px; }
  .player-tools .small { font-size: 10px; }
  .episode-position { font-size: 11px; }
  .episode-position .muted { font-size: 9px; }
  .episode-navigation .small { padding: 8px 9px; font-size: 10px; }
  .episode-grid { grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 7px; }
  .episode-grid a { font-size: 11px; padding: 10px 6px; }
  .profile-heading { gap: 14px; }
  .profile-heading .avatar { width: 60px; height: 60px; font-size: 24px; }
  .profile-heading h1 { font-size: 23px; }
  .profile-nav { column-gap: 0; }
  .profile-nav a { padding: 10px 8px; font-size: 10px; }
  .profile-nav .nav-icon { margin-right: 4px; }
  .profile-nav .nav-icon .ui-icon { width: 16px; height: 16px; }
  .stats { gap: 32px; }
  .stats strong { font-size: 24px; }
  .stats span { font-size: 10px; }
  .ranking-podium { gap: 9px; margin: 25px 0; }
  .podium-card { padding: 22px 9px 13px; gap: 10px; min-height: 265px; border-radius: 12px; }
  .podium-card.is-first { min-height: 291px; }
  .podium-art { width: 100%; max-width: 94px; border-radius: 6px; }
  .podium-number { font-size: 34px; top: 0; right: 5px; z-index: 2; color: #f2deff8c; text-shadow: 0 2px 12px #0008; }
  .is-first .podium-number { color: #ffb4d5a6; }
  .podium-copy h2, .podium-copy h3 { margin: 4px 0 6px; font-size: 12px; line-height: 1.5; letter-spacing: -.4px; }
  .podium-copy p { font-size: 8px; margin: 5px 0 10px; line-height: 1.7; }
  .podium-copy > strong { font-size: 8px; margin-bottom: 10px; line-height: 1.7; }
  .podium-copy > .eyebrow, .podium-copy > small { font-size: 7px; letter-spacing: .4px; }
  .podium-copy .button { width: 100%; min-height: 31px; padding: 7px 4px; font-size: 9px; gap: 3px; border-radius: 6px; }
  .podium-copy .button .ui-icon { width: 11px; height: 11px; }
  .ranking-table-header { font-size: 9px; }
  .ranking-table-header h2, .ranking-table-header strong { font-size: 15px; }
  .ranking-row { grid-template-columns: 24px 60px minmax(0, 1fr); padding: 17px 0; gap: 11px; }
  .ranking-row > a { width: 60px; height: 90px; grid-row: span 2; }
  .ranking-row .rank-num { width: 24px; align-self: center; font-size: 21px; grid-row: span 2; }
  .ranking-copy h2 { font-size: 15px; }
  .ranking-copy p { font-size: 10px; margin: 6px 0; }
  .ranking-description { -webkit-line-clamp: 2; }
  .ranking-metric { display: flex; flex-wrap: wrap; grid-column: 3; gap: 7px; align-items: center; justify-content: space-between; text-align: left; font-size: 9px; }
  .ranking-metric .button { min-height: 29px; font-size: 9px; padding: 6px 8px; }
  .topic-spotlight { grid-template-columns: 1fr; gap: 8px; padding: 27px 24px 25px; min-height: 0; margin-bottom: 25px; border-radius: 18px; }
  .topic-spotlight h1 { margin: 12px 0 13px; font-size: 34px; }
  .topic-spotlight p { font-size: 12px; margin-bottom: 12px; }
  .topic-spotlight .button { min-height: 37px; font-size: 11px; }
  .topic-cover-stack { height: 224px; margin-top: 12px; padding: 0; }
  .topic-cover-stack > .art-frame { width: 103px; }
  .topic-cover-stack > .art-frame:nth-child(1) { transform: rotate(-11deg) translate(18px, 11px); }
  .topic-cover-stack > .art-frame:nth-child(3) { transform: rotate(11deg) translate(-18px, 11px); }
  .topic-curation-grid { grid-template-columns: 1fr; gap: 18px; }
  .topic-curation-card { padding: 23px; border-radius: 16px; }
  .topic-curation-card h2 { font-size: 24px; }
  .topic-curation-card p { font-size: 12px; }
  .topic-mini-covers { gap: 10px; }
  .topic-mini-covers .poster-art-title { font-size: 16px; }
  .community-blog-header { margin-bottom: 24px; }
  .community-blog-header h1 { font-size: 30px; }
  .community-blog-header p { font-size: 12px; }
  .community-blog-header .button { min-height: 36px; font-size: 11px; }
  .community-toolbar { gap: 13px; }
  .community-categories { gap: 19px; }
  .community-categories a { padding: 9px 0; font-size: 12px; }
  .community-article-search { gap: 7px; }
  .community-article-search button { min-height: 38px; font-size: 11px; padding: 9px 13px; }
  .community-blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .community-card-image { height: 195px; }
  .community-card-copy { padding: 21px; }
  .community-card-copy h2 { font-size: 20px; margin: 14px 0 11px; }
  .community-card-copy > p { font-size: 12px; margin-bottom: 21px; }
  .community-byline { font-size: 10px; }
  .community-card-meta { font-size: 10px; }
  .community-card-image > span:not(.community-blog-cover) { left: 20px; }
  .community-related-articles .community-card-image { height: 170px; }
  .community-reading-actions { gap: 8px; }
  .community-reading-actions .button { font-size: 10px; }
  .community-breadcrumb { gap: 8px; font-size: 10px; margin-bottom: 21px; }
  .community-article h1 { font-size: 27px; line-height: 1.5; }
  .community-article-lead { font-size: 13px; padding: 12px 15px; }
  .community-article-body h2 { font-size: 21px; }
  .community-article-body p { font-size: 14px; line-height: 2; }
  .community-related-work { gap: 15px; padding: 17px; }
  .community-related-work > .art-frame { width: 72px; height: 108px; }
  .community-related-work h2 { font-size: 20px; }
  .community-related-work p { font-size: 10px; }
  .community-article-neighbors strong { font-size: 12px; }
  .post { padding: 19px; border-radius: 14px; }
  .post-body { font-size: 13px; }
  .modal { padding: 28px 23px; border-radius: 18px; }
  .modal .brand { margin-bottom: 22px; }
  .modal h2 { font-size: 23px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 32px; }
  .footer-note { font-size: 11px; }
}

@media (max-width: 359px) {
  :root { --gutter: 13px; }
  .brand { font-size: 17px; }
  .header-account { gap: 7px; }
  .hero-content { left: 20px; right: 18px; }
  .hero h1 { font-size: 33px; }
  .hero .actions .button, .hero .actions button { padding-left: 11px; padding-right: 11px; }
  .hero .actions .primary { min-width: 134px; }
  .home-catalog .section-head .tabs { margin-left: 0; }
  .grid, .grid--home, .grid--channel, .grid--manga { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-art-title { font-size: 21px; }
  .episode-count { font-size: 8px; }
  .filters, form[data-form="filters"] { grid-template-columns: 1fr; }
  .podium-card { padding-left: 7px; padding-right: 7px; }
  .podium-copy h2, .podium-copy h3 { font-size: 11px; }
  .podium-copy .button { font-size: 8px; }
  .detail-cover, .detail-cover.art-frame { width: 95px; }
  .detail-heading h1 { font-size: 21px; }
  .topic-cover-stack > .art-frame { width: 94px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover .poster-artwork, .tonight-card:hover .poster-artwork { transform: none; }
  .announcement-track { animation: none; transform: none; }
  .announcement-window { overflow-x: auto; }
  .announcement-items[aria-hidden="true"], .announcement-toggle { display: none; }
}

/* 首页主推与今晚推荐并排；手机继续使用推荐横排。 */
.community-blog > .community-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.community-blog .community-card-image { height: 132px; }
.community-blog .community-card-copy { padding: 14px 16px; }
.community-blog .community-byline { font-size: 10px; gap: 6px; }
.community-blog .community-byline .avatar { width: 20px; height: 20px; font-size: 10px; }
.community-blog .community-card-copy h2 { margin: 9px 0 7px; font-size: 16px; line-height: 1.45; }
.community-blog .community-card-copy > p { margin: 0 0 13px; font-size: 11.5px; line-height: 1.65; -webkit-line-clamp: 2; }
.community-blog .community-card-meta { font-size: 10px; line-height: 1.5; }
.community-blog .community-card-meta .ui-icon { width: 13px; height: 13px; }
.community-blog .community-card-image > span:not(.community-blog-cover) { left: 16px; bottom: 10px; font-size: 9px; padding: 2px 7px; }
@media(max-width:1100px) { .community-blog > .community-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:700px) { .community-blog > .community-blog-grid { grid-template-columns: 1fr; gap: 16px; } .community-blog .community-card-image { height: 132px; } .community-blog .community-card-copy h2 { font-size: 17px; } }
.ai-channel-header, .manga-channel-header { margin: 0; }
.ai-channel-header h1, .manga-channel-header h1 { margin: 0 0 12px; color: #f5f3ff; font-size: clamp(28px, 3vw, 38px); font-weight: 750; line-height: 1.3; letter-spacing: -.8px; }
.ai-channel-header p, .manga-channel-header p { margin: 0; color: #939ab4; font-size: 13px; line-height: 1.7; }
.ai-channel-page > .channel-tabs, .manga-channel-page > .channel-tabs { margin: 24px 0; }
.ai-channel-page > .channel-filter-panel, .manga-channel-page > .channel-filter-panel { margin: 0 0 26px; }
@media(max-width:700px) { .ai-channel-header h1, .manga-channel-header h1 { font-size: 28px; margin-bottom: 10px; } .ai-channel-page > .channel-tabs, .manga-channel-page > .channel-tabs { margin: 18px 0 20px; } }
@media (min-width: 1100px) {
  .home-lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 24px; align-items: stretch; }
  .home-lead .hero, .home-lead .hero.night-hero { height: 520px; }
  .home-lead .hero-content { left: 32px; bottom: 47px; width: 57%; max-width: none; }
  .home-lead .hero h1 { font-size: clamp(36px, 3vw, 48px); letter-spacing: -1.4px; }
  .home-lead .hero-kicker { font-size: 10px; letter-spacing: 1.5px; }
  .home-lead .hero-subtitle { font-size: 12px; }
  .home-lead .tonight { display: flex; flex-direction: column; margin: 0; height: 520px; min-width: 0; }
  .home-lead .tonight-heading { flex: 0 0 auto; margin: 0 0 14px; }
  .home-lead .tonight-grid { flex: 1; min-height: 0; height: auto; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr); gap: 12px; }
  .home-lead .tonight-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; min-height: 0; }
  .home-lead .tonight-card { min-height: 0; aspect-ratio: auto; overflow: hidden; }
  .home-lead .tonight-art .poster-artwork { inset: auto; top: 0; left: 50%; width: auto; height: 100%; aspect-ratio: 2 / 3; translate: -50% 0; }
  .home-lead .tonight-copy { left: 10px; right: 8px; bottom: 12px; }
  .home-lead .tonight-copy strong { font-size: 12px; }
  .home-lead .tonight-copy span { font-size: 9px; gap: 3px; }
  .home-lead .tonight-card.featured .tonight-copy { left: 14px; right: 12px; bottom: 18px; }
  .home-lead .tonight-card.featured strong { font-size: 18px; }
  .home-lead .tonight-card.featured .tonight-copy span { font-size: 10px; }
}

/* 小手机为图标保留独立空间，避免压住站点名称。 */
@media (max-width: 380px) {
  .topbar { grid-template-columns: minmax(0, 1fr) 32px auto; column-gap: 8px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-mark { width: 26px; height: 28px; }
  .header-account { gap: 8px; }
  .top-actions { gap: 6px; }
  .personal-menu .menu-label, .personal-menu .icon-chevron { display: none; }
  .personal-menu .icon-menu { display: inline-block; width: 18px; }
  .header-search { width: 32px; }
  .header-search .search-trigger { width: 32px; height: 34px; min-height: 34px; padding: 6px; }
}

/* Shared bottom-right pagination. */
.pagination {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 28px 0 4px;
  padding: 4px 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pagination-summary {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  line-height: 34px;
  overflow-wrap: normal;
}
.pagination-divider { color: #727b99; }
.pagination-nav, .pagination-jump {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 6px;
  margin: 0;
}
.pagination .pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #11182a;
  color: #b8c2dc;
  font-size: 12px;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
}
.pagination .pagination-button:hover { background: #252d48; border-color: #b5a6f75c; color: #fff; }
.pagination .pagination-button[aria-current="page"] { border-color: #ff79b075; background: #ff5c9b20; color: #ff98c3; font-weight: 700; }
.pagination .pagination-button:disabled { opacity: .38; cursor: default; background: #11182a; border-color: var(--ui-border); color: #b8c2dc; }
.pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 18px; height: 34px; color: var(--muted); }
.pagination-jump label { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; margin: 0; font-size: 12px; color: var(--muted); }
.pagination-jump input[type="number"] { flex: 0 0 auto; width: 54px; min-width: 54px; height: 34px; padding: 5px 4px; border-radius: 8px; font-size: 12px; line-height: 1; text-align: center; }
.pagination .pagination-submit { color: #e6dafa; background: #9a82ff1e; border-color: #ac91f54d; }
@media (max-width: 700px) {
  .pagination { margin-top: 22px; }
  .pagination-row { gap: 10px; font-size: 11px; }
  .pagination-summary { gap: 5px; line-height: 32px; }
  .pagination-nav, .pagination-jump { gap: 4px; }
  .pagination .pagination-button { min-width: 30px; min-height: 32px; height: 32px; padding: 5px 8px; font-size: 11px; }
  .pagination-ellipsis { min-width: 14px; height: 32px; }
  .pagination-jump label { gap: 4px; font-size: 11px; }
  .pagination-jump input[type="number"] { width: 46px; min-width: 46px; height: 32px; font-size: 11px; }
}
.home-floaters { position: fixed; right: 18px; bottom: 28px; z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; pointer-events: none; }
.home-floaters > * { pointer-events: auto; }
.member-float { position: relative; width: 120px; text-align: center; }
.member-float-link { position: relative; display: flex; flex-direction: column; align-items: center; padding: 7px 0 9px; color: #ffe2f1; filter: drop-shadow(0 8px 18px #a4377760); animation: member-bob 3.8s ease-in-out infinite; }
.member-float-orbit { position: absolute; top: 7px; width: 100px; height: 100px; border: 1px solid #ffb8e284; border-radius: 50%; box-shadow: 0 0 0 6px #c59cff12, 0 0 24px #f578bb38; transform: rotate(-18deg) scaleY(.78); }
.member-float-portrait { width: 88px; height: 88px; border: 2px solid #e2baf6; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #5f37569c; background: #211a40; }
.member-float-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.member-float-spark { position: absolute; top: -1px; left: 10px; color: #f8d88a; transform: rotate(-12deg); }
.member-float-spark .ui-icon { width: 24px; height: 24px; fill: #f8d88a24; }
.member-float-vip { z-index: 1; margin-top: -13px; padding: 1px 16px; border: 1px solid #ffe8aa; border-radius: 14px; background: linear-gradient(120deg,#ffe9b7,#dca264); color: #5d3268; font-size: 13px; font-weight: 850; letter-spacing: 2px; box-shadow: 0 3px 12px #0004; }
.member-float-link > strong { margin-top: 4px; color: #ffe4f6; font-size: 17px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 3px #2f0c51; }
.member-float-link > small { color: #cdb7df; font-size: 10px; }
.home-floaters .float-close { position: absolute; right: -2px; top: -6px; z-index: 2; display: grid; place-items: center; min-width: 19px; min-height: 19px; width: 19px; height: 19px; padding: 3px; border: 1px solid #b2a5c642; border-radius: 50%; background: #12182be8; color: #a49ab6; }
.home-floaters .float-close .ui-icon { width: 11px; height: 11px; }
.app-promo-dock { position: relative; width: 108px; padding: 12px 9px 8px; border: 1px solid #bea5f144; border-radius: 22px; background: linear-gradient(145deg,#242039f2,#10182bf5); box-shadow: 0 8px 25px #0005; backdrop-filter: blur(15px); }
.app-float-ball { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #f3eafa; }
.app-float-ball > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffb4d380; border-radius: 50%; background: linear-gradient(145deg,#ec6ca4,#926ddd); box-shadow: 0 5px 16px #d567b42b; }
.app-float-ball .ui-icon { width: 23px; height: 23px; }
.app-float-ball > strong { font-size: 12px; }
.app-float-home { display: flex; justify-content: center; align-items: center; gap: 4px; padding-top: 9px; margin-top: 9px; border-top: 1px solid #bca2ed24; color: #b9afd2; font-size: 10px; white-space: nowrap; }
.app-float-home .ui-icon { width: 13px; height: 13px; }
.membership-hero { display: flex; align-items: center; gap: 35px; padding: clamp(28px,5vw,64px); border: 1px solid #d49ed03b; border-radius: 24px; background: radial-gradient(ellipse at 0 0,#a8609d35,transparent 60%),linear-gradient(120deg,#241b39,#121b30); }
.membership-hero h2 { margin: 12px 0; color: #fff0fb; font-size: clamp(26px,4vw,42px); }
.membership-hero p { max-width: 600px; color: #b9accb; }
.membership-emblem { display: grid; place-items: center; width: 120px; height: 120px; flex: 0 0 auto; border: 1px solid #e8ba8750; border-radius: 50%; background: #e4b17b13; color: #f0cfa0; }
.membership-emblem .ui-icon { width: 65px; height: 65px; }
.membership-services { margin-top: 26px; }
.membership-services > .panel { display: block; margin-bottom: 16px; }
.membership-services > .panel > .ui-icon { width: 25px; height: 25px; color: #dd9cc8; }
.membership-services h2 { margin: 13px 0 7px; font-size: 19px; }
.membership-note { color: #8991ae; font-size: 12px; }
@keyframes member-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media(max-width:700px) { .home-floaters { right: 9px; bottom: 91px; gap: 12px; } .member-float { width: 90px; } .member-float-portrait { width: 62px; height: 62px; } .member-float-orbit { width: 75px; height: 75px; } .member-float-spark { left: 4px; } .member-float-vip { padding: 0 11px; font-size: 10px; } .member-float-link > strong { font-size: 13px; } .member-float-link > small { font-size: 8px; } .app-promo-dock { width: 78px; padding: 9px 5px 7px; border-radius: 18px; } .app-float-ball > span { width: 37px; height: 37px; } .app-float-ball > strong { font-size: 10px; } .app-float-home { font-size: 9px; gap: 3px; padding-top: 7px; margin-top: 7px; } .membership-hero { display: block; } .membership-emblem { width: 70px; height: 70px; margin-bottom: 22px; } .membership-emblem .ui-icon { width: 40px; height: 40px; } }
@media(prefers-reduced-motion:reduce) { .member-float-link { animation: none; } }


/* Community: a quiet left rail and a readable, single-column conversation stream. */
.community-home-layout { display:grid; grid-template-columns:204px minmax(0,1fr); align-items:start; gap:30px; padding-top:8px; }
.community-home-sidebar { position:sticky; top:118px; min-width:0; padding:22px 14px 18px; background:#11172a; border:1px solid var(--ui-border); border-radius:16px; }
.community-side-brand { display:block; padding:0 10px 20px; border-bottom:1px solid var(--line); margin-bottom:15px; }
.community-side-brand .eyebrow { font-size:8px; letter-spacing:1.3px; color:#a99bcf; }
.community-side-brand strong { display:block; margin-top:7px; font-size:14px; font-weight:650; color:#e7e1fb; }
.community-side-nav { display:grid; gap:5px; }
.community-side-nav a { display:flex; align-items:center; gap:11px; min-height:43px; border-radius:9px; padding:10px 12px; color:#a9b3cc; font-size:13px; }
.community-side-nav .ui-icon { width:17px; height:17px; color:#8794b2; }
.community-side-nav a:hover { background:#ffffff06; color:#ede7ff; }
.community-side-nav a.active { color:#ff94c1; background:#ff5c9b16; }
.community-side-nav a.active .ui-icon { color:#ff8bb9; }
.community-side-note { padding:21px 10px 0; margin-top:16px; border-top:1px solid var(--line); }
.community-side-note strong { font-size:11px; color:#b6b8d1; font-weight:550; }
.community-side-note p { font-size:11px; line-height:1.9; margin:7px 0 0; color:#7783a1; }
.community-home-main { min-width:0; width:100%; max-width:1040px; }
.community-home-heading { margin:1px 0 25px; }
.community-home-heading .eyebrow { color:#a091c2; font-size:9px; letter-spacing:1.7px; }
.community-home-heading h1 { font-size:32px; margin:11px 0 10px; letter-spacing:-.5px; }
.community-home-heading p { margin:0; font-size:13px; color:#929cb8; }
.community-composer { padding:24px 26px 20px; margin:0 0 25px; border:1px solid #b7c0fa24; border-radius:16px; background:linear-gradient(120deg,#9a82ff06,transparent 70%),#11182a; }
.community-composer-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:17px; }
.community-composer-heading .eyebrow { font-size:8px; color:#a394c8; letter-spacing:1.4px; }
.community-composer-heading h2 { font-size:17px; margin:6px 0 0; font-weight:650; }
.community-composer-heading>span { color:#72809f; font-size:11px; }
.community-composer .community-field-label { display:block; color:#b7c0d6; font-size:12px; margin:13px 0 7px; }
.community-composer input, .community-composer textarea, .community-composer select { background:#0b1222; border-color:#b7c0fa20; font-size:12px; border-radius:9px; padding:11px 12px; }
.community-composer textarea { min-height:126px; line-height:1.9; }
.community-composer-tools { display:flex; justify-content:space-between; gap:12px; margin:8px 1px 12px; color:#667694; font-size:10px; }
.community-composer-extras { border-top:1px solid var(--line); padding-top:13px; }
.community-composer-extras>summary { display:flex; align-items:center; gap:7px; width:fit-content; color:#a69dcd; cursor:pointer; font-size:11px; list-style:none; }
.community-composer-extras>summary::-webkit-details-marker { display:none; }
.community-composer-extras>summary .ui-icon { width:13px; height:13px; }
.community-composer-extras[open]>summary .ui-icon { transform:rotate(180deg); }
.community-work-picks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; border:0; padding:0; margin:17px 0 10px; min-width:0; }
.community-work-picks legend { font-size:12px; color:#b7c0d6; margin-bottom:4px; padding:0; }
.community-work-picks legend span { margin-left:5px; font-size:10px; color:#7784a0; }
.community-work-picks label, .community-composer-pair label { font-size:11px; color:#8796b3; min-width:0; margin:8px 0 0; }
.community-work-picks select, .community-composer-pair select, .community-composer-pair input { display:block; margin-top:6px; max-width:100%; }
.community-composer-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; margin:10px 0; }
.community-composer-pair small { display:block; font-size:10px; color:#657590; margin-top:5px; }
.community-composer input[type=file] { padding:8px; font-size:10px; }
.community-composer input[type=file]::file-selector-button { padding:4px 7px; margin-right:7px; border:1px solid #b7c0fa26; border-radius:5px; background:#1b2340; color:#bfc5e5; font-size:10px; cursor:pointer; }
.community-composer-submit { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; }
.community-composer-submit p { margin:0; font-size:10px; color:#6d7d99; }
.community-composer-submit .primary { min-height:35px; padding:8px 15px; font-size:12px; flex-shrink:0; }
.community-composer-submit .ui-icon { width:14px; height:14px; }
.community-composer-guest { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:25px 26px; }
.community-composer-guest strong { font-size:15px; font-weight:550; }
.community-composer-guest p { margin:6px 0 0; font-size:12px; color:#8592ae; }
.community-composer-guest button { flex-shrink:0; }
.community-feed-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #b7c0fa20; margin:8px 0 19px; }
.community-feed-tabs { display:flex; align-items:center; gap:25px; flex-wrap:nowrap; white-space:nowrap; }
.community-feed-tabs a { position:relative; padding:14px 0 17px; font-size:13px; font-weight:550; color:#8490ae; }
.community-feed-tabs a:hover { color:#c8bfdc; }
.community-feed-tabs a.selected { color:#ff91be; }
.community-feed-tabs a.selected:after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:2px; border-radius:2px; background:#ff79b0; }
.community-feed-search { display:flex; align-items:center; flex:0 1 252px; min-width:120px; height:35px; border:1px solid #b7c0fa20; background:#0c1424; border-radius:9px; margin:0 0 7px; }
.community-feed-search input { border:0; background:transparent; padding:7px 10px; font-size:11px; height:33px; }
.community-feed-search button { min-width:33px; min-height:33px; padding:6px; border:0; background:transparent; color:#8796b6; }
.community-feed-search .ui-icon { width:16px; height:16px; }
.community-feed-context { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:-3px 0 18px; color:#bbafd4; font-size:11px; }
.community-feed-context>span { padding:4px 9px; border:1px solid #9a82ff28; border-radius:6px; background:#9a82ff0d; }
.community-feed-context>a { display:inline-flex; align-items:center; gap:4px; color:#7e8caa; }
.community-feed-context .ui-icon { width:12px; height:12px; }
.community-feed-list { display:grid; gap:17px; min-width:0; }
.community-feed-post { min-width:0; padding:23px 26px 5px; border:1px solid #b7c0fa20; border-radius:15px; background:#101728; }
.community-post-header { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:17px; }
.community-post-author { display:flex; gap:10px; align-items:center; min-width:0; }
.community-post-author .avatar { width:37px; height:37px; font-size:14px; flex-shrink:0; }
.community-post-author>span { min-width:0; }
.community-post-author strong { display:block; font-size:12px; color:#d9def0; font-weight:600; overflow-wrap:anywhere; }
.community-post-author time { display:block; font-size:10px; color:#667897; margin-top:2px; }
.community-post-badges { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.community-featured-badge { padding:2px 6px; border-radius:4px; border:1px solid #b5a0ff32; color:#b5a0ff; background:#9a82ff0c; font-size:9px; }
.community-home-main .community-follow { min-height:28px; padding:5px 10px; border-color:#ff79b036; background:#ff5c9b0b; color:#ed8eb8; font-size:10px; border-radius:7px; }
.community-home-main .community-follow.is-following { color:#9babc7; background:transparent; border-color:#b7c0fa24; }
.community-own-badge { color:#687a99; font-size:10px; }
.community-post-title { font-size:18px; margin:0 0 11px; font-weight:650; letter-spacing:0; line-height:1.6; }
.community-post-title a:hover { color:#ff98c3; }
.community-post-copy { color:#aeb8cf; font-size:13px; line-height:1.95; white-space:pre-wrap; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:6; overflow:hidden; }
.community-post-copy.is-expanded { display:block; overflow:visible; }
.community-read-more { display:flex; align-items:center; gap:5px; font-size:11px; margin-top:8px; color:#b8a4de; }
.community-read-more .ui-icon { width:12px; height:12px; }
.community-post-media { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; max-width:660px; margin:17px 0 13px; }
.community-post-media[data-media-count="1"] { grid-template-columns:minmax(0,1fr); max-width:520px; }
.community-post-media[data-media-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.community-media-image { display:block; min-width:0; border-radius:10px; overflow:hidden; background:#080e1c; border:1px solid #b7c0fa12; }
.community-post-media img { display:block; width:100%; height:190px; object-fit:cover; }
.community-post-media[data-media-count="1"] img { height:auto; max-height:380px; object-fit:contain; }
.community-post-media video { display:block; width:100%; min-width:0; height:190px; object-fit:contain; border-radius:10px; background:#060b13; }
.community-post-media[data-media-count="1"] video { height:auto; max-height:380px; aspect-ratio:16/9; }
.community-post-works { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 13px; }
.community-post-works a { display:flex; align-items:center; gap:6px; min-width:0; max-width:100%; padding:7px 10px; background:#9a82ff0a; border:1px solid #9a82ff24; border-radius:7px; font-size:11px; color:#b9afd8; }
.community-post-works a span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.community-post-works .ui-icon { width:12px; height:12px; flex-shrink:0; }
.community-post-works small { color:#6d7f9d; font-size:9px; white-space:nowrap; }
.community-post-tags { display:flex; flex-wrap:wrap; gap:8px 13px; margin:15px 0; font-size:11px; color:#8494b9; }
.community-post-tags .community-topic-tag { color:#b7a0e5; }
.community-post-actions { display:flex; align-items:center; gap:23px; border-top:1px solid #b7c0fa13; margin-top:17px; padding:11px 0; }
.community-post-actions>button, .community-post-owner-actions button { display:flex; align-items:center; gap:6px; min-height:29px; padding:3px 0; border:0; border-radius:4px; color:#7b8bad; font-size:11px; background:transparent; box-shadow:none; }
.community-post-actions>button .ui-icon { width:16px; height:16px; }
.community-post-actions>button:hover, .community-post-actions>button[aria-pressed="true"] { color:#f291bf; background:transparent; }
.community-post-owner-actions { display:flex; gap:14px; margin-left:auto; }
.community-post-owner-actions .danger { color:#b9859e; }
.community-post-comments { border-top:1px solid #b7c0fa12; padding:9px 0 12px; }
.community-post-comments>summary { display:flex; align-items:center; gap:5px; cursor:pointer; list-style:none; color:#7788aa; font-size:10px; }
.community-post-comments>summary::-webkit-details-marker { display:none; }
.community-post-comments>summary .ui-icon { width:12px; height:12px; }
.community-post-comments[open]>summary .ui-icon { transform:rotate(180deg); }
.community-post-comments .comment { padding:14px 0 10px; border-color:#b7c0fa10; }
.community-comments-list:empty { display:none; }
.community-comment-author { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:11px; color:#bec5de; }
.community-comment-author time { color:#697d9f; font-size:10px; }
.community-post-comments .comment p { font-size:12px; line-height:1.9; color:#9eacc9; }
.community-post-comments .comment-form { flex-wrap:wrap; margin-top:14px; }
.community-post-comments .comment-form input { flex:1 1 150px; font-size:11px; padding:9px 11px; }
.community-post-comments .comment-form>.form-error { flex-basis:100%; }
.community-comment-login { margin:14px 0 0; }
.community-comment-login button { min-height:30px; font-size:11px; }
.community-topic-square { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.community-square-topic { padding:23px; border:1px solid #b7c0fa23; border-radius:14px; background:linear-gradient(125deg,#9a82ff0a,transparent),#101728; }
.community-square-topic:hover { border-color:#ac91f561; background-color:#151d31; }
.community-square-icon { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:9px; color:#b49aea; background:#9a82ff17; }
.community-square-icon .ui-icon { width:18px; height:18px; }
.community-square-topic h2 { font-size:16px; margin:14px 0 9px; }
.community-square-topic p { color:#8595b4; font-size:12px; line-height:1.9; margin-bottom:18px; }
.community-square-topic>span:last-child { display:flex; align-items:center; gap:6px; color:#b39bd7; font-size:11px; }
.community-square-topic>span:last-child .ui-icon { width:13px; height:13px; }
.community-author-heading { display:flex; align-items:center; gap:18px; padding:24px; border:1px solid #b7c0fa23; border-radius:15px; background:#11182a; margin-bottom:22px; }
.community-author-heading>.avatar { width:58px; height:58px; font-size:20px; }
.community-author-heading>div { min-width:0; flex:1; }
.community-author-heading h1 { font-size:23px; margin:5px 0 8px; }
.community-author-heading p { font-size:11px; color:#8293b3; margin:0; }
.community-author-heading+ .community-feed-post { margin-top:17px; }
.community-home-main>.community-feed-post { margin-bottom:17px; }
.community-back-link { display:flex; align-items:center; gap:7px; margin:0 0 20px; font-size:12px; color:#9e91bc; }
.community-back-link .ui-icon { width:14px; height:14px; transform:rotate(180deg); }
.community-existing-media { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.community-existing-media>[hidden] { display:none; }
.community-post-media.is-preview { max-width:100%; }
.community-post-media.is-preview img, .community-post-media.is-preview video { height:100px; max-height:100px; object-fit:cover; }
.community-existing-media button, [data-community-upload-preview]>button { min-height:27px; font-size:10px; padding:5px 8px; }
.modal:has(.community-composer) { width:min(760px,100%); padding:18px; }
.modal .community-composer { border:0; padding:16px 7px 2px; margin:0; background:transparent; }
/* Community discussions keep their own topics, publisher and supporting rail. */
.community-home-layout.has-right-rail { grid-template-columns:180px minmax(0,1fr) 252px; gap:24px; }
.has-right-rail .community-home-sidebar { padding:20px 10px; }
.has-right-rail .community-side-brand { padding-left:8px; padding-right:8px; }
.has-right-rail .community-side-brand strong { font-size:12px; }
.has-right-rail .community-home-heading { margin-bottom:20px; }
.has-right-rail .community-home-heading h1 { margin-top:7px; font-size:28px; }
.community-hot-topics { position:sticky; top:118px; min-width:0; padding:21px 17px 18px; border:1px solid #b7c0fa23; border-radius:16px; background:#11172a; }
.community-hot-topics>header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:9px; padding-bottom:17px; border-bottom:1px solid var(--line); }
.community-hot-topics h2 { margin:0; color:#e5e4f5; font-size:15px; }
.community-hot-topics>header>a { display:inline-flex; align-items:center; gap:4px; color:#a998cd; font-size:10px; }
.community-hot-topics>header .ui-icon { width:12px; height:12px; }
.community-hot-topics ol { list-style:none; padding:0; margin:9px 0 0; }
.community-hot-topic { display:grid; grid-template-columns:20px minmax(0,1fr) 12px; align-items:start; gap:8px; padding:15px 0; border-bottom:1px solid #b7c0fa0d; }
.community-hot-topic>span:nth-child(2) { min-width:0; }
.community-topic-rank { display:flex; align-items:center; justify-content:center; width:19px; height:20px; border-radius:5px; background:#ffffff06; color:#7e8daa; font-size:11px; }
.community-hot-topics li:nth-child(-n+3) .community-topic-rank { color:#ffa0c7; background:#ff6da41a; }
.community-hot-topic strong { display:block; color:#bec7df; font-size:12px; font-weight:550; overflow-wrap:anywhere; line-height:1.6; }
.community-hot-topic:hover strong { color:#f4c0db; }
.community-hot-topic small { display:block; color:#697d9f; font-size:10px; margin-top:4px; }
.community-hot-topic>.ui-icon { width:12px; height:12px; margin-top:4px; color:#647595; }
.community-hot-topics>p { margin:16px 0 0; color:#6d7e9d; font-size:10px; line-height:1.8; }
.community-composer-title-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.community-composer-title-row>[data-community-title-count] { color:#6f809d; font-size:10px; }
.community-composer-title-row .community-field-label { margin-top:0; }
.community-composer textarea { min-height:152px; font-size:13px; }
.community-composer-tools { align-items:center; margin:9px 0 16px; }
.community-composer-tools>button { padding:4px 0; min-height:28px; font-size:11px; color:#b09acf; background:transparent; border:0; }
.community-composer-tools .ui-icon { width:14px; height:14px; }
.community-association-buttons { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.community-association-buttons>button { min-height:34px; padding:7px 10px; gap:5px; font-size:11px; color:#9caacc; border-color:#b7c0fa24; background:#151e33; }
.community-association-buttons>button:hover, .community-association-buttons>button[aria-expanded="true"] { color:#dac4ef; border-color:#b599f166; background:#9a82ff13; }
.community-association-buttons .ui-icon { width:13px; height:13px; }
.community-association-buttons [data-community-count] { font-size:10px; color:#7489aa; margin-left:2px; }
.community-association-picker { margin:12px 0; padding:14px; border:1px solid #b59bf23a; border-radius:11px; background:#0c1426; }
.community-association-picker [role="tablist"] { display:flex; gap:19px; border-bottom:1px solid var(--line); margin:0 0 12px; }
.community-association-picker [role="tab"] { padding:5px 0 10px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:#7f91b2; font-size:12px; }
.community-association-picker [role="tab"][aria-selected="true"] { color:#f19bc1; border-bottom-color:#ed8ab9; }
.community-association-picker [role="tabpanel"]>p { margin:10px 0; color:#7c8eaf; font-size:11px; }
.community-picker-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:230px; overflow-y:auto; overscroll-behavior:contain; padding:7px 2px 3px; margin-top:6px; }
.community-picker-choice { display:flex; align-items:center; gap:8px; margin:0; min-height:39px; padding:8px; border:1px solid #b7c0fa12; border-radius:6px; color:#a4b2ce; background:#121d31; cursor:pointer; font-size:11px; line-height:1.6; }
.community-picker-choice input { flex:0 0 auto; width:15px; height:15px; padding:0; margin:0; accent-color:#d69ed9; }
.community-picker-choice:has(input:checked) { border-color:#bfa0e767; color:#e5c7ec; background:#a180ed14; }
.community-picker-collection { display:flex; align-items:center; justify-content:flex-start; gap:7px; padding:8px; min-height:40px; color:#a5b2d1; background:#121d31; border-color:#b7c0fa18; text-align:left; font-size:11px; }
.community-picker-collection .ui-icon { flex:0 0 auto; width:14px; height:14px; }
.community-picker-collection[aria-pressed="true"] { color:#e5c7ec; border-color:#bfa0e767; background:#a180ed14; }
.community-picker-done { display:flex; margin:14px 0 0 auto; min-height:32px; }
.community-topic-picker { display:flex; align-items:center; gap:13px; padding:12px; border:1px solid #b7c0fa24; border-radius:9px; margin:0 0 14px; background:#0d1528; }
.community-topic-picker>label { flex:0 0 auto; margin:0; font-size:11px; color:#a9b1d0; }
.community-topic-picker>select { min-width:0; padding:8px; }
.community-composer-attachment-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:16px 0; margin-top:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.community-cover-control { display:flex; align-items:center; gap:8px; }
.community-cover-pick { padding:0; border:0; background:transparent; font-size:11px; color:#a5b1cd; gap:8px; }
.community-cover-pick:hover { background:transparent; color:#e4c4ed; }
.community-cover-pick [data-community-cover-preview] { display:flex; align-items:center; justify-content:center; width:48px; height:37px; overflow:hidden; border:1px dashed #a497c95a; border-radius:6px; background:#172038; }
.community-cover-pick [data-community-cover-preview]>.ui-icon { width:19px; height:19px; color:#a598c6; }
.community-cover-pick img { width:100%; height:100%; object-fit:cover; }
.community-cover-control>.small { font-size:10px; min-height:28px; padding:5px 7px; }
.community-media-picks { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.community-media-picks>button { display:flex; min-height:32px; padding:5px 0; gap:5px; border:0; border-radius:5px; background:transparent; color:#99a8c8; font-size:11px; }
.community-media-picks>button:hover { color:#e3c2eb; }
.community-media-picks .ui-icon { width:16px; height:16px; }
.community-media-picks>small { flex-basis:100%; color:#697d9d; font-size:9px; }
.community-association-picker[hidden], .community-topic-picker[hidden], [data-community-picker-panel][hidden], .community-picker-choice[hidden], .community-picker-collection[hidden], .community-cover-control button[hidden] { display:none; }
.community-post-cover { display:block; width:min(100%,520px); margin:17px 0 13px; padding:0; border:1px solid #b7c0fa1a; border-radius:10px; overflow:hidden; background:#080e1c; }
.community-post-cover img { display:block; width:100%; max-height:280px; object-fit:cover; }
.community-post-collection { display:flex; align-items:center; gap:8px; width:fit-content; max-width:100%; padding:8px 10px; margin:14px 0; border:1px solid #9a82ff24; border-radius:7px; color:#ac9dcd; background:#9a82ff0a; font-size:11px; }
.community-post-collection .ui-icon { flex:0 0 auto; width:13px; height:13px; }
.community-topic-square-toolbar, .community-following-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 20px; }
.community-topic-square-toolbar>.community-feed-search, .community-following-toolbar>.community-feed-search { flex-basis:300px; margin:0; }
.community-topic-square-toolbar>span, .community-following-toolbar>span { flex:0 0 auto; color:#7386a6; font-size:11px; }
.has-right-rail .community-topic-square { grid-template-columns:minmax(0,1fr); gap:13px; }
.has-right-rail .community-square-topic { display:grid; grid-template-columns:72px minmax(0,1fr) 16px; align-items:center; gap:17px; padding:18px; }
.has-right-rail .community-square-topic>img { width:72px; height:72px; object-fit:cover; border:1px solid #b7c0fa24; border-radius:10px; }
.has-right-rail .community-square-topic h2 { margin:0 0 7px; font-size:16px; line-height:1.6; }
.community-square-topic h2>small { display:inline-block; margin-left:9px; color:#e7a3c1; background:#ed81ae13; border:1px solid #e899b72a; border-radius:4px; padding:1px 5px; font-size:9px; vertical-align:middle; font-weight:500; }
.has-right-rail .community-square-topic p { margin:0 0 8px; line-height:1.8; font-size:11px; }
.has-right-rail .community-square-topic>div>span { color:#7d8faf; font-size:10px; }
.has-right-rail .community-square-topic>.ui-icon { width:15px; height:15px; color:#ac92ce; }
.community-topic-heading { display:flex; align-items:flex-start; gap:20px; padding:24px; margin-bottom:22px; border:1px solid #b7c0fa24; border-radius:15px; background:#11182a; }
.community-topic-heading>img { flex:0 0 auto; width:85px; height:85px; object-fit:cover; border-radius:12px; }
.community-topic-heading>div { min-width:0; }
.community-topic-heading h1 { margin:6px 0 10px; font-size:25px; }
.community-topic-heading p { margin:0 0 10px; color:#91a0be; font-size:12px; }
.community-topic-heading small { color:#788dad; font-size:11px; }
.community-topic-heading .actions { margin-top:14px; }
.community-topic-heading .actions>button { min-height:33px; font-size:11px; }
.community-topic-follow[aria-pressed="true"] { background:transparent; color:#a5b0ca; border-color:#b7c0fa2a; }
.community-author-list { display:grid; gap:14px; }
.community-author-card { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:21px; border:1px solid #b7c0fa23; border-radius:14px; background:#11182a; }
.community-author-card-link { display:flex; align-items:center; gap:14px; min-width:0; }
.community-author-card-link>.avatar { flex:0 0 auto; width:49px; height:49px; font-size:18px; }
.community-author-card-link>div { min-width:0; }
.community-author-card h2 { margin:0 0 5px; font-size:16px; }
.community-author-card p { margin:0 0 7px; color:#92a0bd; font-size:12px; line-height:1.7; }
.community-author-card small { color:#6e82a3; font-size:10px; }
.community-author-card>.community-follow { flex:0 0 auto; min-height:32px; }
@media(max-width:1240px) {
  .community-home-layout.has-right-rail { grid-template-columns:180px minmax(0,1fr); gap:23px; }
  .community-hot-topics { display:none; }
}
@media(max-width:1100px) {
  .community-home-layout { grid-template-columns:180px minmax(0,1fr); gap:21px; }
  .community-home-sidebar { padding:18px 10px; }
  .community-side-brand { padding-left:8px; padding-right:8px; }
  .community-side-brand strong { font-size:12px; }
  .community-feed-tabs { gap:19px; }
  .community-post-media img, .community-post-media video { height:155px; }
}
@media(max-width:899px) {
  .community-home-layout { display:block; padding-top:0; }
  .community-home-layout.has-right-rail { display:block; }
  .community-home-sidebar { position:static; padding:0; border:0; background:transparent; margin:0 0 22px; }
  .community-side-brand, .community-side-note { display:none; }
  .community-side-nav { display:flex; gap:7px; overflow-x:auto; flex-wrap:nowrap; padding:2px 0 9px; scrollbar-width:thin; }
  .community-side-nav a { flex:0 0 auto; min-height:36px; font-size:12px; padding:8px 11px; gap:7px; border:1px solid #b7c0fa1a; background:#11182a; }
  .community-side-nav a.active { border-color:#ff79b038; }
  .community-side-nav .ui-icon { width:14px; height:14px; }
  .community-home-main { max-width:none; }
  .community-home-heading h1 { font-size:28px; }
  .community-composer { padding:21px 22px 18px; }
}
@media(max-width:600px) {
  .community-picker-options { grid-template-columns:minmax(0,1fr); }
  .community-association-buttons { gap:6px; }
  .community-association-buttons>button { padding:7px 8px; font-size:11px; }
  .community-association-buttons .ui-icon { width:12px; height:12px; }
  .community-association-picker { padding:11px; }
  .community-composer-attachment-bar { gap:14px 20px; }
  .community-composer textarea { min-height:140px; }
  .community-media-picks { gap:13px; }
  .community-topic-square-toolbar, .community-following-toolbar { flex-wrap:wrap; gap:10px; }
  .community-topic-square-toolbar>.community-feed-search, .community-following-toolbar>.community-feed-search { flex:1 1 200px; margin:0; }
  .has-right-rail .community-square-topic { grid-template-columns:55px minmax(0,1fr) 13px; padding:15px; gap:12px; }
  .has-right-rail .community-square-topic>img { width:55px; height:64px; border-radius:8px; }
  .has-right-rail .community-square-topic h2 { font-size:14px; }
  .community-topic-heading { padding:18px 15px; gap:13px; }
  .community-topic-heading>img { width:55px; height:65px; border-radius:8px; }
  .community-topic-heading h1 { font-size:21px; }
  .community-topic-heading p { font-size:11px; line-height:1.8; }
  .community-topic-heading small { font-size:10px; }
  .community-topic-heading .actions { gap:7px; }
  .community-author-card { padding:16px 14px; gap:11px; align-items:flex-start; }
  .community-author-card-link { align-items:flex-start; gap:10px; }
  .community-author-card-link>.avatar { width:39px; height:39px; font-size:15px; }
  .community-author-card h2 { font-size:14px; }
  .community-author-card p { font-size:11px; }
  .community-author-card small { display:block; font-size:9px; line-height:1.8; }
  .community-home-heading { margin-bottom:21px; }
  .community-home-heading h1 { font-size:26px; }
  .community-home-heading p { font-size:12px; line-height:1.8; }
  .community-composer { padding:17px 15px; border-radius:13px; margin-bottom:19px; }
  .community-composer-heading h2 { font-size:16px; }
  .community-composer-heading>span { display:none; }
  .community-composer textarea { min-height:140px; }
  .community-composer-submit { align-items:flex-end; }
  .community-composer-submit p { max-width:160px; font-size:9px; line-height:1.8; }
  .community-composer-submit .primary { padding:8px 11px; font-size:11px; }
  .community-work-picks { grid-template-columns:minmax(0,1fr); gap:1px; }
  .community-work-picks label { display:grid; grid-template-columns:45px minmax(0,1fr); align-items:center; gap:4px; }
  .community-work-picks select { margin-top:0; }
  .community-composer-pair { grid-template-columns:minmax(0,1fr); gap:1px; }
  .community-composer-guest { align-items:flex-start; gap:12px; }
  .community-composer-guest strong { font-size:13px; }
  .community-composer-guest p { font-size:11px; }
  .community-composer-guest button { font-size:10px; padding:7px 9px; }
  .community-feed-toolbar { align-items:stretch; flex-direction:column; gap:8px; margin-bottom:15px; }
  .community-feed-tabs { justify-content:space-between; gap:14px; padding:0 3px; }
  .community-feed-tabs a { padding:12px 0 13px; font-size:12px; }
  .community-feed-tabs a.selected:after { bottom:0; }
  .community-feed-search { flex-basis:auto; width:100%; height:34px; margin-bottom:12px; }
  .community-feed-search input { height:32px; }
  .community-feed-list { gap:13px; }
  .community-feed-post { padding:18px 15px 3px; border-radius:13px; }
  .community-post-header { margin-bottom:14px; gap:9px; }
  .community-post-author { gap:8px; }
  .community-post-author .avatar { width:32px; height:32px; font-size:12px; }
  .community-post-author strong { font-size:11px; }
  .community-post-title { font-size:16px; margin-bottom:9px; }
  .community-post-copy { font-size:12px; }
  .community-post-media { gap:5px; margin-top:13px; }
  .community-post-media img, .community-post-media video { height:105px; border-radius:7px; }
  .community-post-media[data-media-count="1"] img { max-height:310px; }
  .community-post-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; padding:10px 0; }
  .community-post-actions>button { justify-content:center; font-size:10px; gap:5px; }
  .community-post-actions>button .ui-icon { width:15px; height:15px; }
  .community-post-owner-actions { grid-column:1/-1; justify-self:end; gap:14px; margin-left:0; }
  .community-post-owner-actions button { font-size:10px; }
  .community-topic-square { grid-template-columns:minmax(0,1fr); gap:12px; }
  .community-square-topic { padding:20px; }
  .community-author-heading { padding:18px 14px; gap:12px; }
  .community-author-heading>.avatar { width:44px; height:44px; font-size:16px; }
  .community-author-heading h1 { font-size:19px; }
  .community-author-heading p { font-size:10px; line-height:1.8; }
  .community-author-heading .small { padding:6px 8px; min-height:30px; font-size:10px; }
  .community-existing-media { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* Keep the original illustration close enough to read inside the small member portrait. */
.member-float-portrait { position: relative; }
.member-float-portrait img { width: 260%; height: 150%; max-width: none; object-fit: cover; object-position: 70% 5%; transform: translate(-43%,-8%); }

.community-media-zoom { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: inherit; overflow: hidden; background: transparent; cursor: zoom-in; }
.community-media-zoom:hover { padding: 0; border: 0; background: transparent; }
.community-media-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; }
.modal:has(.community-image-lightbox) { width: min(960px,calc(100vw - 32px)); max-width: min(960px,calc(100vw - 32px)); }
.community-image-lightbox { margin: 0; }
.community-image-lightbox img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.community-image-lightbox figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }

/* Topic square: featured collages followed by a separate compact directory. */
.community-square-shortcuts { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 23px; }
.community-square-shortcuts>a { display:inline-flex; align-items:center; gap:8px; min-height:35px; padding:7px 11px; color:#bca9de; background:#9a82ff0a; border:1px solid #b6a0e42b; border-radius:8px; font-size:12px; }
.community-square-shortcuts .ui-icon { width:14px; height:14px; }
.community-topic-section { margin:27px 0 32px; }
.community-topic-section>header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }
.community-topic-section>header h2 { margin:0; color:#e3def4; font-size:19px; }
.community-topic-section>header>span { color:#7387a6; font-size:11px; }
.has-right-rail .community-hot-topic-grid, .has-right-rail .community-more-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.has-right-rail .community-hot-topic-grid .community-square-topic { display:block; padding:0; min-width:0; overflow:hidden; border-radius:13px; background:#111a2d; }
.community-topic-collage { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:3px; height:144px; overflow:hidden; background:#0d1425; }
.community-topic-collage>img { display:block; width:100%; height:100%; min-width:0; object-fit:cover; }
.community-topic-collage>img:nth-child(2) { object-position:55% 35%; }
.community-topic-collage>img:nth-child(3) { object-position:45% 60%; }
.community-topic-collage>.ui-icon { align-self:center; justify-self:center; width:40px; height:40px; color:#aa96ce; }
.community-hot-topic-grid .community-square-topic>div { padding:14px 16px 16px; }
.community-square-topic h3 { margin:0 0 7px; font-size:15px; color:#dcd4f0; line-height:1.65; overflow-wrap:anywhere; }
.community-square-topic>div>span { color:#8596b7; font-size:11px; }
.community-hot-topic-grid .community-square-topic>.ui-icon { display:none; }
.has-right-rail .community-more-topic-grid .community-square-topic { display:grid; grid-template-columns:48px minmax(0,1fr) 12px; align-items:center; gap:11px; padding:12px; min-width:0; border-radius:10px; }
.has-right-rail .community-more-topic-grid .community-square-topic>img { width:48px; height:52px; object-fit:cover; border-radius:7px; }
.community-more-topic-grid .community-square-topic>div { min-width:0; }
.community-more-topic-grid .community-square-topic h3 { margin-bottom:3px; font-size:13px; }
.community-more-topic-grid .community-square-topic>.ui-icon { width:12px; height:12px; color:#8e7bad; }
.community-guide-rail { position:sticky; top:118px; min-width:0; padding:21px 17px 18px; border:1px solid #b7c0fa23; border-radius:16px; background:#11172a; }
.community-guide-rail>h2 { margin:0 0 19px; padding-bottom:15px; border-bottom:1px solid var(--line); color:#e5e4f5; font-size:15px; }
.community-guide-rail>strong, .community-mobile-guide>strong { display:block; color:#c6bfdb; font-size:12px; line-height:1.8; font-weight:550; }
.community-guide-rail>p, .community-mobile-guide>p { margin:9px 0 16px; color:#7e8fad; font-size:11px; line-height:1.95; }
.community-guide-rail>a, .community-mobile-guide>a, .community-more-topics-link { display:inline-flex; align-items:center; gap:6px; color:#b39bda; font-size:11px; }
.community-guide-rail>a>.ui-icon, .community-mobile-guide>a>.ui-icon, .community-more-topics-link>.ui-icon { width:13px; height:13px; }
.community-more-topics-link { margin:17px 0 0; }
.community-home-sidebar>.ad-slot { margin-top:20px; }
.community-mobile-guide { display:none; }
.community-topic-composer[hidden] { display:none; }
.community-topic-compose-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 17px; margin:0 0 -1px; border:1px solid #b7c0fa24; border-radius:12px 12px 0 0; background:#131c30; color:#bca9d9; font-size:12px; }
.community-topic-compose-toolbar>button { min-height:30px; padding:5px 10px; font-size:11px; }
.community-topic-composer .community-composer { border-top-left-radius:0; border-top-right-radius:0; }
.community-topic-feed-title { margin:25px 0 4px; color:#d3c8e9; font-size:17px; line-height:1.7; }
.community-guidelines-page { max-width:930px; padding:6px 4px 22px; }
.community-guidelines-page>header { margin-bottom:28px; }
.community-guidelines-page h1 { margin:11px 0 12px; font-size:clamp(25px,3vw,34px); }
.community-guidelines-page>header>p { color:#8e9fbd; font-size:12px; line-height:1.9; }
.community-guidelines-page>section { padding:21px 0; border-top:1px solid var(--line); }
.community-guidelines-page>section>h2 { margin:0 0 10px; color:#c9bfdf; font-size:17px; }
.community-guidelines-page>section>p { margin:0; color:#98a8c5; font-size:13px; line-height:2; }
.community-guidelines-page>nav { margin-top:25px; flex-wrap:wrap; }
@media(max-width:1240px) {
  .community-guide-rail { display:none; }
  .community-mobile-guide { display:block; padding:17px; margin:29px 0 12px; border:1px solid #b7c0fa23; border-radius:12px; background:#11182a; }
  .community-mobile-guide>summary { display:flex; align-items:center; justify-content:space-between; min-height:30px; color:#b9abd5; font-size:12px; cursor:pointer; list-style:none; }
  .community-mobile-guide>summary::-webkit-details-marker { display:none; }
  .community-mobile-guide>summary>.ui-icon { width:14px; height:14px; }
  .community-mobile-guide[open]>summary { margin-bottom:16px; }
}
@media(max-width:899px) { .community-home-sidebar>.ad-slot { display:none; } }
@media(max-width:600px) {
  .has-right-rail .community-hot-topic-grid { grid-template-columns:minmax(0,1fr); gap:13px; }
  .has-right-rail .community-more-topic-grid { gap:10px; }
  .community-topic-collage { height:174px; }
  .community-topic-section { margin-top:23px; margin-bottom:27px; }
  .community-topic-section>header h2 { font-size:17px; }
  .has-right-rail .community-more-topic-grid .community-square-topic { grid-template-columns:36px minmax(0,1fr); gap:8px; padding:10px; }
  .has-right-rail .community-more-topic-grid .community-square-topic>img { width:36px; height:45px; }
  .community-more-topic-grid .community-square-topic h3 { font-size:12px; }
  .community-more-topic-grid .community-square-topic>.ui-icon { display:none; }
  .community-more-topic-grid .community-square-topic>div>span { font-size:10px; }
}
@media(max-width:379px) { .has-right-rail .community-more-topic-grid { grid-template-columns:minmax(0,1fr); } }

/* Compact rhythm shared by community composers and the collection directory. */
.community-home-layout { padding-top:0; }
.community-home-heading, .has-right-rail .community-home-heading { margin-bottom:14px; }
.community-home-heading h1, .has-right-rail .community-home-heading h1 { margin:5px 0 6px; }
.community-home-sidebar { padding:14px 10px; }
.community-side-nav { gap:3px; }
.community-side-nav a { min-height:38px; padding:8px 12px; }
.community-composer { padding:18px 20px 16px; margin-bottom:16px; }
.community-composer-heading { margin-bottom:10px; }
.community-composer-heading .eyebrow { display:block; line-height:1.4; }
.community-composer-heading h2 { margin-top:3px; line-height:1.4; }
.community-composer .community-field-label { margin:10px 0 6px; line-height:1.5; }
.community-composer-title-row .community-field-label { margin-top:0; }
.community-composer input, .community-composer textarea, .community-composer select { padding:8px 11px; }
.community-composer input[name="title"], .community-composer textarea { display:block; }
.community-composer textarea { min-height:100px; line-height:1.7; resize:vertical; }
.community-composer-tools { margin:5px 0 9px; }
.community-composer-attachment-bar { margin-top:10px; padding:10px 0; gap:10px 16px; }
.community-media-picks { gap:6px 12px; }
.community-media-picks>small { flex-basis:auto; }
.community-cover-pick [data-community-cover-preview] { width:42px; height:32px; }
.community-composer-submit { margin-top:12px; }
.community-composer .form-error:empty { display:none; }
.modal .community-composer { padding:10px 5px 2px; }
.modal .community-composer-submit .primary { width:auto; margin-top:0; }
.community-feed-toolbar { margin-top:4px; margin-bottom:14px; }
.community-feed-tabs a { padding:10px 0 12px; }
.community-feed-post { padding:18px 20px 4px; }
.community-hot-topics { padding:16px 16px 14px; }
.community-hot-topics>header { padding-bottom:12px; }
.community-hot-topics ol { margin-top:5px; }
.community-hot-topic { padding:10px 0; }
.community-hot-topic small { margin-top:2px; }
.community-hot-topics>p { margin-top:12px; }
.community-home-layout .ad-slot--rail { margin-top:14px; padding:12px; gap:6px; }
.community-home-layout .ad-slot--rail .ad-slot-copy>strong { margin:7px 0 4px; }
.community-home-layout .ad-slot--rail .ad-slot-art { width:110px; height:64px; }

.topic-spotlight { min-height:280px; padding:24px 36px; gap:24px; margin-bottom:22px; }
.topic-spotlight h1 { margin:9px 0 10px; font-size:clamp(28px,2.8vw,38px); }
.topic-spotlight p { margin:8px 0; line-height:1.75; }
.topic-spotlight .button { min-height:38px; margin-top:8px; padding:8px 16px; }
.topic-cover-stack { height:220px; }
.topic-cover-stack>.art-frame { width:clamp(85px,9vw,132px); }
.topic-cover-stack .poster-art-title { font-size:16px; bottom:10px; }
.topic-spotlight+.section-head { margin:0 0 18px; }
.topic-spotlight+.section-head h1 { font-size:30px; }
.topic-curation-grid { gap:16px; }
.topic-curation-card { padding:18px; border-radius:16px; }
.topic-curation-card h2 { font-size:19px; margin:6px 0; }
.topic-curation-card p { margin:5px 0 12px; line-height:1.7; }
.topic-mini-covers { gap:7px; margin:auto 0 14px; }
.topic-mini-covers .art-frame { aspect-ratio:4/5; max-height:160px; }
.topic-mini-covers .poster-art-title { font-size:13px; bottom:8px; }

@media(max-width:899px) {
  .community-home-sidebar { padding:0; margin-bottom:14px; }
  .community-side-nav { gap:7px; padding-bottom:6px; }
  .community-side-nav a { min-height:38px; padding:8px 11px; }
  .topic-spotlight { padding:22px 24px; gap:16px; }
}
@media(max-width:600px) {
  .community-composer { padding:14px; margin-bottom:14px; }
  .community-composer textarea { min-height:104px; }
  .community-association-buttons { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .community-association-buttons>button { min-width:0; min-height:38px; padding:7px 4px; gap:3px; font-size:10px; white-space:nowrap; }
  .community-association-buttons>button>span { font-size:9px; }
  .community-composer-tools>button { min-height:36px; }
  .community-composer-attachment-bar { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 12px; padding:8px 0; }
  .community-cover-pick, .community-media-picks>button { min-height:38px; }
  .community-cover-control { flex-wrap:wrap; max-width:106px; }
  .community-media-picks { min-width:0; gap:4px 12px; }
  .community-media-picks>small { flex-basis:100%; }
  .community-composer-submit { align-items:center; }
  .community-composer-submit .primary { min-height:38px; }
  .community-feed-post { padding:15px 14px 3px; }
  .topic-spotlight { min-height:0; padding:20px; gap:4px; margin-bottom:18px; }
  .topic-spotlight h1 { font-size:28px; }
  .topic-spotlight p { font-size:12px; }
  .topic-cover-stack { height:130px; margin-top:6px; }
  .topic-cover-stack>.art-frame { width:72px; }
  .topic-cover-stack .poster-art-title { font-size:12px; }
  .topic-spotlight+.section-head { margin-bottom:14px; }
  .topic-spotlight+.section-head h1 { font-size:26px; }
  .topic-curation-grid { gap:14px; }
  .topic-curation-card { padding:16px; }
  .topic-curation-card h2 { font-size:20px; }
  .topic-mini-covers { gap:7px; margin-bottom:12px; }
  .topic-mini-covers .poster-art-title { font-size:12px; }
  .topic-curation-card>a.button { min-height:38px; }
}

/* Compact reading cards and account sections without reducing media controls. */
.community-feed-post { padding:16px 18px 3px; }
.community-post-header { gap:10px; margin-bottom:10px; }
.community-post-title { margin-bottom:7px; line-height:1.5; }
.community-post-copy { line-height:1.7; }
.community-post-copy.is-expanded { line-height:1.8; }
.community-read-more { margin-top:5px; }
.community-post-cover { width:min(100%,440px); margin:12px 0 10px; }
.community-post-cover img { height:180px; max-height:180px; object-fit:cover; }
.community-post-media:not(.is-preview) { max-width:560px; gap:7px; margin:12px 0 10px; }
.community-post-media:not(.is-preview) img { height:140px; max-height:140px; object-fit:cover; }
.community-post-media:not(.is-preview) video { height:160px; max-height:230px; object-fit:contain; }
.community-post-media[data-media-count="1"]:not(.is-preview) { max-width:440px; }
.community-post-media[data-media-count="1"]:not(.is-preview) img { height:180px; max-height:180px; }
.community-post-media[data-media-count="1"]:not(.is-preview) video { height:auto; max-height:230px; aspect-ratio:16/9; }
.community-feed-post:has(.community-post-copy.is-expanded) .community-post-cover img { height:auto; max-height:230px; }
.community-feed-post:has(.community-post-copy.is-expanded) .community-post-media[data-media-count="1"] img { height:auto; max-height:230px; object-fit:contain; }
.community-post-works, .community-post-tags { margin:10px 0; }
.community-post-works a { padding:6px 9px; }
.community-post-collection { padding:7px 9px; margin:10px 0; }
.community-post-actions { margin-top:12px; padding:8px 0; }
.community-post-comments { padding:7px 0 9px; }
.community-post-comments .comment { padding:10px 0 8px; }
.community-author-heading { gap:12px; padding:16px 18px; margin-bottom:16px; }
.community-author-heading>.avatar { width:48px; height:48px; font-size:18px; }
.community-author-heading h1 { margin:3px 0 5px; font-size:21px; }
.community-author-heading p { line-height:1.65; }
.community-author-heading+.community-feed-post { margin-top:12px; }

.panel:has(>.profile-heading) { padding:18px 20px; margin-bottom:14px; }
.panel:has(>.profile-heading) .profile-heading { gap:13px; }
.panel:has(>.profile-heading) .profile-heading>.avatar { width:58px; height:58px; font-size:24px; }
.panel:has(>.profile-heading) .profile-heading h1 { font-size:24px; margin:3px 0; }
.panel:has(>.profile-heading) .stats { gap:32px; margin:14px 0; }
.panel:has(>.profile-heading) .stats strong { font-size:24px; line-height:1.3; }
.panel:has(>.profile-heading) .profile-nav { margin:12px 0 0; padding-bottom:0; }
.panel:has(>.profile-heading) .profile-nav a { min-height:36px; padding:8px 11px; }
.two-col:has(form[data-form="profile"]) { gap:18px; }
.two-col:has(form[data-form="profile"])>.panel { padding:18px 20px; margin-bottom:14px; }
.two-col:has(form[data-form="profile"])>.panel>h2 { margin-bottom:10px; font-size:20px; }
form[data-form="profile"]>label { margin:10px 0 5px; }
form[data-form="profile"]>input { min-height:38px; padding:8px 11px; }
form[data-form="profile"]>.form-error:empty { display:none; }
form[data-form="profile"]>.primary { min-height:38px; margin-top:12px !important; }
.two-col:has(form[data-form="profile"]) .list-row { padding:11px 0; gap:12px; }
.two-col:has(form[data-form="profile"]) .list-art-thumb { width:42px; height:62px; }

@media(max-width:600px) {
  .community-feed-post { padding:13px 14px 2px; }
  .community-post-header { margin-bottom:9px; }
  .community-post-title { margin-bottom:6px; }
  .community-post-cover img { height:150px; max-height:150px; }
  .community-post-media:not(.is-preview) { gap:5px; margin:10px 0 8px; }
  .community-post-media:not(.is-preview) img { height:100px; max-height:100px; }
  .community-post-media:not(.is-preview) video { height:140px; object-fit:contain; }
  .community-post-media[data-media-count="1"]:not(.is-preview) img { height:160px; max-height:160px; }
  .community-post-media[data-media-count="1"]:not(.is-preview) video { height:auto; max-height:200px; }
  .community-feed-post:has(.community-post-copy.is-expanded) .community-post-cover img,
  .community-feed-post:has(.community-post-copy.is-expanded) .community-post-media[data-media-count="1"] img { max-height:200px; }
  .community-post-works, .community-post-tags { margin:8px 0; }
  .community-post-actions { margin-top:9px; padding:5px 0; }
  .community-post-actions>button, .community-post-owner-actions button { min-height:36px; }
  .community-home-main .community-follow { min-height:36px; }
  .community-author-heading { flex-wrap:wrap; padding:12px 14px; gap:10px; margin-bottom:13px; }
  .community-author-heading>.avatar { width:40px; height:40px; font-size:16px; }
  .community-author-heading>div { min-width:120px; }
  .community-author-heading h1 { font-size:18px; }
  .community-author-heading .small { min-height:36px; padding:7px 9px; }
  .panel:has(>.profile-heading) { padding:14px 15px; }
  .panel:has(>.profile-heading) .profile-heading>.avatar { width:48px; height:48px; font-size:21px; }
  .panel:has(>.profile-heading) .profile-heading h1 { font-size:22px; }
  .panel:has(>.profile-heading) .stats { gap:28px; margin:12px 0; }
  .panel:has(>.profile-heading) .stats strong { font-size:22px; }
  .panel:has(>.profile-heading) .profile-nav { gap:0; margin-top:9px; }
  .panel:has(>.profile-heading) .profile-nav a { min-height:38px; padding:8px; }
  .two-col:has(form[data-form="profile"])>.panel { padding:14px 15px; }
  .two-col:has(form[data-form="profile"])>.panel>h2 { font-size:18px; }
}


/* Readable primary navigation and focused member entry. */
.topbar .nav-main a{font-size:16px;line-height:1.5;padding-inline:12px}
.economy-page .economy-heading>a[href="/welfare"]{font-size:16px;font-weight:650;padding:10px 16px}
.channel-filter-chip small{font-size:10px;opacity:.72;margin-left:5px;font-variant-numeric:tabular-nums}
.channel-filter-chip.is-empty{opacity:.4;cursor:default}
.browse-return{margin:0 0 14px;font-size:13px}
@media(max-width:1199px){.topbar .nav-main a{font-size:15px;padding-inline:9px}}
@media(max-width:899px){.topbar .nav-main a{font-size:14px}.economy-page .economy-heading>a[href="/welfare"]{font-size:15px}}
@media(max-width:420px){.topbar .nav-main a{font-size:13px}}

.pagination-step-icon,.pagination-mobile-position{display:none}
@media(max-width:600px){
 .pagination{overflow:visible;width:100%;max-width:100%;padding:10px 0}
 .pagination-row{width:100%;min-width:0;justify-content:flex-end;gap:8px}
 .pagination-summary,.pagination-jump,.pagination-nav>.pagination-button:not(.pagination-step),.pagination-ellipsis,.pagination-step-text{display:none}
 .pagination-nav{gap:8px}.pagination-nav .pagination-step:first-child{order:0}.pagination-nav .pagination-step:last-child{order:2}
 .pagination-nav:after{content:attr(data-position)}
 .pagination .pagination-step{min-width:36px;padding:5px 10px}
 .pagination-step-icon{display:inline;font-size:22px;line-height:1}.pagination-mobile-position{display:block;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted);order:0}
}
.homecoming-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.homecoming-panels .panel { display: grid; align-content: start; justify-items: start; gap: 14px; min-width: 0; }
.homecoming-panels .result { margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.homecoming-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.homecoming-destinations .button { gap: 6px; justify-content: center; }
@media (max-width: 760px) {
  .homecoming-panels { grid-template-columns: 1fr; gap: 12px; }
  .homecoming-destinations { grid-template-columns: repeat(2,minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .mobile-bottom#mobile-nav { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0,1fr); }
}
/* Compact the mobile homepage feature so discovery remains above the fold. */
@media(max-width:760px){
 .home-lead .hero,.home-lead .hero.night-hero{height:clamp(280px,40svh,330px);min-height:0;aspect-ratio:auto;border-radius:16px}
 .home-lead .hero .hero-art{object-position:66% 36%}
 .home-lead .hero .hero-content{left:18px;right:18px;bottom:35px;width:auto;max-width:none}
 .home-lead .hero .hero-kicker,.home-lead .hero p.hero-subtitle{display:none}
 .home-lead .hero h1{font-size:26px;line-height:1.2;letter-spacing:-.7px;max-width:285px;margin:0 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
 .home-lead .hero .hero-featured-title{font-size:9px;line-height:1.4;margin:0 0 5px}
 .home-lead .hero .hero-featured-title strong{display:inline-block;vertical-align:middle;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
 .home-lead .hero .pills{gap:5px;margin:6px 0 12px}
 .home-lead .hero .pill,.home-lead .hero .type-badge{font-size:9px;line-height:1.3;padding:3px 6px}
 .home-lead .hero .actions{gap:8px;margin:0}
 .home-lead .hero .actions .button,.home-lead .hero .actions button{min-height:36px;height:36px;padding:8px 13px;font-size:12px;border-radius:10px}
 .home-lead .hero .actions .ui-icon{width:15px;height:15px}
 .home-lead .hero .hero-dots{bottom:12px}
}

/* Anchor H5 navigation to the physical viewport edge and condense story metadata. */
@media(max-width:760px){
 body:not(.h5-watch) #mobile-nav.mobile-bottom{position:fixed;left:0;right:0;bottom:0;height:calc(58px + env(safe-area-inset-bottom,0px));padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));box-sizing:border-box;border-radius:0;border-width:1px 0 0;background:#151828f5}
 body:not(.h5-watch){padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 .detail-page .detail-intro{margin-bottom:16px}
 .detail-page section>.story-summary-panel{padding:14px;border-radius:12px;margin-bottom:14px}
 .detail-page .story-summary-panel h2{font-size:17px;line-height:1.35;margin:0 0 12px}
 .detail-page .story-summary-panel .work-metadata{margin:0 0 10px;padding-bottom:10px;gap:8px 12px}
 .detail-page .story-summary-panel .work-metadata dt{font-size:10px;line-height:1.3}
 .detail-page .story-summary-panel .work-metadata dd{font-size:11px;line-height:1.4;margin:3px 0 0}
 .detail-page .story-summary-panel>p{font-size:12px;line-height:1.65;margin:0 0 10px}
 .detail-page .story-summary-panel .filter-list{margin:0;gap:6px}
 .detail-page .story-summary-panel .filter-list a{font-size:10px;padding:5px 8px;border-radius:7px;line-height:1.3}
}

/* Dense H5 cards: shorten the content containers, not just their outer margins. */
.home-topic-secondary,.community-nav-toggle{display:none}
@media(max-width:760px){
 .home-lead .hero,.home-lead .hero.night-hero{height:clamp(250px,34svh,290px)}
 .home-topic-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
 .home-topic-pair.is-single{grid-template-columns:1fr}
 .home-topic-pair .home-topic-feature{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;box-sizing:border-box;height:148px;min-height:0;margin:0;padding:10px;gap:6px;border-radius:12px}
 .home-topic-pair .home-topic-feature>div{min-width:0}
 .home-topic-pair .home-topic-feature .eyebrow{display:block;font-size:8px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
 .home-topic-pair .home-topic-feature h2{font-size:16px;line-height:1.25;margin:6px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .home-topic-pair .home-topic-feature p{font-size:10px;line-height:1.5;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .home-topic-pair .home-topic-feature>.button{min-height:30px;height:30px;padding:6px 8px;font-size:10px;align-self:flex-start;border-radius:8px}
 .home-topic-pair .home-topic-feature>.button .ui-icon{width:12px;height:12px}
 .home-plaza .announcement-bar{margin-block:12px}
 .detail-page>.panel{padding:14px;border-radius:12px;margin-top:10px}
 .detail-page>aside.panel>h2{font-size:17px;line-height:1.35;margin:0 0 8px}
 .detail-page>aside.panel .list-row{min-height:0;padding:6px 0;gap:10px;flex-wrap:nowrap;align-items:center;margin:0}
 .detail-page>aside.panel .list-row:last-child{padding-bottom:0}
 .detail-page>aside.panel .list-art-thumb,.detail-page>aside.panel .list-row>img:not(.poster-atlas){width:32px;height:48px;flex:0 0 32px;border-radius:5px}
 .detail-page>aside.panel .list-body{min-width:0}
 .detail-page>aside.panel .list-body h3{font-size:12px;line-height:1.4;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .detail-page>aside.panel .list-body p{font-size:10px;line-height:1.4;margin:0}
 .detail-page section>.story-summary-panel{padding:12px}
 .detail-page .story-summary-panel h2{font-size:16px;margin-bottom:8px}
 .detail-page .story-summary-panel .work-metadata{gap:6px 12px;padding-bottom:8px;margin-bottom:8px}
 .detail-page .story-summary-panel>p{line-height:1.5;margin-bottom:8px}
 .detail-page .story-summary-panel .filter-list a{padding:4px 6px}
 .ranking-podium{gap:8px;margin:14px 0 18px;align-items:stretch}
 .ranking-podium .podium-card,.ranking-podium .podium-card.is-first{box-sizing:border-box;min-height:0;height:224px;padding:10px 7px;gap:6px;border-radius:12px;justify-content:flex-start;flex-direction:column;text-align:center}
 .ranking-podium .podium-art{height:92px;width:100%;max-width:72px;aspect-ratio:auto;border-radius:6px}
 .ranking-podium .podium-number{font-size:31px;right:6px;top:2px}
 .ranking-podium .podium-copy{width:100%;min-width:0}
 .ranking-podium .podium-copy>.eyebrow{display:none}
 .ranking-podium .podium-copy h2,.ranking-podium .podium-copy h3{font-size:11px;line-height:1.25;letter-spacing:0;margin:3px 0 4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .ranking-podium .podium-copy p{font-size:8px;line-height:1.4;margin:3px 0 5px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 .ranking-podium .podium-copy>strong{display:inline;font-size:10px;line-height:1.4;margin:0}
 .ranking-podium .podium-copy>small{display:inline;font-size:8px;letter-spacing:0;line-height:1.4;margin-left:3px}
 .ranking-podium .podium-copy .button{display:flex;width:100%;height:30px;min-height:30px;margin-top:7px;padding:5px 3px;font-size:9px}
 .ranking-podium .podium-copy .button .ui-icon{width:10px;height:10px}
 .community-side-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible;flex-wrap:unset;padding:0;margin:0}
 .community-side-nav a,.community-side-nav .community-nav-toggle{display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;height:36px;box-sizing:border-box;padding:6px 4px;gap:4px;border:1px solid #b7c0fa1a;border-radius:9px;background:#11182a;color:#a9b3cc;font-size:11px;white-space:nowrap}
 .community-side-nav .ui-icon{width:12px;height:12px;flex:0 0 12px}
 .community-side-nav:not(.is-expanded) a:nth-of-type(n+4):not(.active){display:none}
 .community-side-nav:not(.is-expanded):has(a:nth-of-type(n+4).active) a:nth-of-type(3){display:none}
 .community-side-nav .community-nav-toggle{grid-column:4;grid-row:1;color:#dfb5e6;cursor:pointer}
 .community-side-nav.is-expanded .community-nav-toggle{grid-row:2}
}

@media(min-width:540px) and (max-width:760px){.community-side-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.community-side-nav:not(.is-expanded) a:nth-of-type(n+4):not(.active),.community-side-nav:not(.is-expanded):has(a:nth-of-type(n+4).active) a:nth-of-type(3){display:flex}.community-side-nav .community-nav-toggle{display:none}}

/* H5 directory navigation and compact collection/service cards. */
.main-nav-toggle{display:none}
@media(max-width:760px){
 .topbar #main-nav.nav-main{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;width:100%;overflow:visible;white-space:normal;padding:3px 0 5px;min-width:0;align-items:stretch}
 .topbar #main-nav.nav-main>a{min-width:0;justify-content:center;padding:9px 1px;font-size:13px;line-height:1.4;text-align:center;white-space:nowrap}
 .topbar #main-nav.nav-main:not(.is-expanded)>a:nth-of-type(n+5){display:none}
 .topbar #main-nav.nav-main.is-expanded{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:4px}
 .topbar #main-nav .main-nav-toggle{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:38px;padding:6px 2px;border:0;background:transparent;color:var(--muted);font-size:13px;box-shadow:none}
 .main-nav-toggle .ui-icon{width:12px;height:12px}
 #main-nav:has(>a.active:nth-of-type(n+5)) .main-nav-toggle{color:var(--brand);background:#db68a314;border-radius:8px}
 #main-nav.is-expanded .main-nav-toggle .ui-icon{transform:rotate(180deg)}
 .topic-spotlight{grid-template-columns:minmax(0,1fr) 100px;gap:8px;min-height:0;padding:16px;margin-bottom:14px}
 .topic-spotlight h1{font-size:23px;margin:6px 0;line-height:1.25}
 .topic-spotlight p{font-size:11px;line-height:1.55;margin:6px 0}
 .topic-spotlight .eyebrow{font-size:8px;letter-spacing:1px}
 .topic-spotlight .button{min-height:32px;margin-top:5px;padding:6px 8px;font-size:11px;white-space:normal;text-align:left}
 .topic-cover-stack{height:115px;margin:0;min-width:0}
 .topic-cover-stack>.art-frame{width:65px}
 .topic-cover-stack .poster-art-title{font-size:9px}
 .topic-curation-grid{gap:10px}
 .topic-curation-card{padding:12px;gap:0;min-height:0}
 .topic-curation-card h2{font-size:17px;margin:5px 0;line-height:1.35}
 .topic-curation-card p{font-size:12px;line-height:1.5;margin:4px 0 8px}
 .topic-curation-card .eyebrow{font-size:9px;letter-spacing:1px}
 .topic-mini-covers{margin:0 0 9px;gap:6px}
 .topic-mini-covers .art-frame{height:90px;max-height:90px;aspect-ratio:auto}
 .topic-mini-covers .poster-art-title{font-size:10px;bottom:6px}
 .topic-curation-card>a.button{min-height:32px;padding:6px 10px;font-size:11px}
 .homecoming-panels{gap:10px}
 .homecoming-panels .panel{padding:14px;gap:9px;margin:0;min-height:0}
 .homecoming-panels h2{font-size:17px;line-height:1.4;margin:0}
 .homecoming-panels p{font-size:12px;line-height:1.6;margin:0}
 .homecoming-panels .notice{padding:8px 10px;font-size:12px}
 .homecoming-panels button,.homecoming-destinations .button{min-height:36px;padding:7px 10px;font-size:13px}
 .homecoming-destinations{gap:6px}
}
@media(max-width:760px){
 /* Long names, URLs and uploaded content must not stretch their cards. */
 .page h1,.page h2,.page h3,.page .list-body,.community-feed-post p,.community-post-body,.community-comment-body,.work-metadata dd,.profile-heading>div,.community-author-copy{min-width:0;overflow-wrap:anywhere}
 .page .two-col>*,.community-composer form,.community-composer-heading>div,.detail-heading,.profile-heading>div{min-width:0}
 .page input,.page select,.page textarea,.page fieldset{max-width:100%;min-width:0}
 .page input[type=file]{width:100%;font-size:12px}
 .modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
 .toast-wrap{max-width:calc(100vw - 24px)}
 .toast-wrap>*{overflow-wrap:anywhere}
 .topic-cover-stack{padding:0}
 .topic-cover-stack>.art-frame{width:52px;border-width:2px}
 .topic-cover-stack>.art-frame:first-child{transform:rotate(-12deg) translate(28px,8px)}
 .topic-cover-stack>.art-frame:last-child{transform:rotate(12deg) translate(-28px,8px)}
 .topic-cover-stack .poster-art-title{font-size:8px;left:3px;right:3px}
}
@media(max-width:360px){
 .topic-spotlight{grid-template-columns:minmax(0,1fr) 70px;padding:14px;gap:8px}
 .topic-spotlight h1{font-size:21px}
 .topic-spotlight p{font-size:10px}
 .topic-cover-stack>.art-frame:first-child,.topic-cover-stack>.art-frame:last-child{display:none}
 .topic-cover-stack>.art-frame:nth-child(2){width:66px;transform:rotate(6deg)}
}
