:root {
  --bg: #050506;
  --panel: #101011;
  --panel-soft: #171719;
  --panel-hover: #232326;
  --border: #303034;
  --text: #f5f5f7;
  --muted: #a5a5ae;
  --purple: #a855f7;
  --pink: #f14bd3;
  --blue: #178dfc;
  --sidebar-width: 232px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.uiIcon { display: inline-block; width: 18px; height: 18px; object-fit: contain; vertical-align: middle; filter: invert(1) brightness(1.35); pointer-events: none; }
.darkIcon { filter: none; }

.appShell { min-height: 100vh; background: radial-gradient(circle at 72% -15%, #08192f 0, transparent 31%), #050506; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 50; display: flex; flex-direction: column; background: #171718; border-right: 1px solid #27272a; transition: width .24s ease, transform .24s ease; }
.sidebarHeader { height: 62px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid #2b2b2e; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brandLogo { display: block; width: 82px; height: 56px; object-fit: contain; }
.footerBrand .brandLogo { width: 112px; height: auto; }
.signInModal > .brand .brandLogo { width: 112px; height: auto; }
.iconButton { border: 0; background: none; cursor: pointer; }
.sidebarToggle { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; font-size: 25px; color: #b8b8c0; }
.sidebarToggle:hover { background: #2b2b2f; color: white; }
.mobileClose { display: none; margin-left: auto; font-size: 26px; }
.sideNav { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #6a6a70 transparent; padding: 8px 10px 16px; }
.navSection { padding: 4px 0 10px; border-bottom: 1px solid #2a2a2d; margin-bottom: 8px; }
.navHeading { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 9px; color: #dddde3; font-size: 14px; font-weight: 700; }
.navHeading b { font-size: 12px; color: #9a9aa2; }
.navItem { min-height: 38px; display: flex; align-items: center; gap: 10px; border-radius: 7px; padding: 0 10px; color: #e5e5e8; font-size: 14px; transition: background .15s ease; }
.navItem:hover, .navItem.active { background: #29292c; }
.navItem.active { box-shadow: inset 2px 0 #fff; }
.navIcon { width: 18px; display: inline-grid; place-items: center; text-align: center; color: #e7e7ed; font-size: 17px; }
.navIcon .uiIcon { width: 17px; height: 17px; }
.navHeading .uiIcon { width: 14px; height: 14px; }
.navItem em { margin-left: auto; border-radius: 5px; padding: 3px 6px; background: #071d3d; color: #2c91ff; font-size: 10px; font-style: normal; }
.sidebarBottom { padding: 10px 16px 14px; }
.sideSignIn { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; background: #f6f6f7; color: #151518; cursor: pointer; font-weight: 700; }
.sideSignIn:hover { background: white; transform: translateY(-1px); }
.socials { display: flex; gap: 9px; padding: 13px 3px 9px; color: #b5b5bd; font-size: 11px; font-weight: 800; }
.socials a { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #44444a; border-radius: 50%; }
.socials a:hover { color: white; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #91919a; font-size: 11px; line-height: 1.4; }
.legal a:hover { color: #dadade; }
.storeBadge { display: block; width: 99px; margin-top: 13px; }
.version { margin: 12px 0 0; color: #777780; font-size: 11px; }

.pageColumn { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .24s ease; }
.topbar { position: sticky; top: 0; z-index: 30; height: 62px; display: flex; align-items: center; justify-content: flex-end; padding: 0 24px; background: linear-gradient(180deg, rgba(0,23,49,.96), rgba(5,5,6,.94)); border-bottom: 1px solid #152237; backdrop-filter: blur(16px); }
.topActions { display: flex; align-items: center; gap: 12px; }
.premiumButton { height: 39px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 21px; padding: 0 19px; background: linear-gradient(110deg, #b54aec, #078ffd); box-shadow: 0 0 20px rgba(91,70,246,.25); cursor: pointer; font-size: 14px; }
.premiumButton:hover { filter: brightness(1.12); }
.premiumButton span { margin-right: 6px; font-size: 18px; }
.topIcon { position: relative; min-width: 32px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; font-size: 22px; }
.topIcon small { position: absolute; top: -2px; right: -1px; font-size: 9px; }
.loginButton { height: 39px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 7px; padding: 0 15px; background: #f7f7f8; color: #101014; cursor: pointer; }
.mobileMenu, .mobileBrand { display: none; }

.mainContent { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 14px 18px 42px; }
.filters { position: sticky; top: 76px; height: calc(100vh - 90px); overflow-y: auto; scrollbar-width: none; }
.filterPanel, .collapsedFilter { border: 1px solid #39393d; background: #1b1b1d; border-radius: 8px; overflow: hidden; }
.filterPanelTitle { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: #252527; font-size: 13px; }
.filterPanelTitle span { font-size: 20px; }
.filterPanelTitle button { display: none; margin-left: auto; border: 0; background: none; font-size: 25px; }
.filterInner { padding: 10px; }
.miniSearch { height: 37px; display: flex; align-items: center; gap: 8px; border: 1px solid #4b4b50; border-radius: 7px; padding: 0 10px; background: #09090a; }
.miniSearch input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 13px; }
.tagList { margin-top: 8px; }
.filterCheck { display: flex; align-items: center; gap: 8px; min-height: 33px; cursor: pointer; font-size: 13px; }
.filterCheck:hover span { color: #fff; }
.filterCheck input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #35353a; border-radius: 4px; background: #0d0d0f; }
.filterCheck input:checked { border-color: #b44ff2; background: #9c3cdb; box-shadow: inset 0 0 0 3px #0d0d0f; }
.filterCheck span { flex: 1; color: #ededf0; }
.filterCheck small { color: #a0a0a8; font-size: 11px; font-style: italic; }
.collapsedFilter { width: 100%; height: 45px; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 13px; cursor: pointer; color: #e9e9ed; font-size: 12px; text-align: left; }
.collapsedFilter:hover { background: #27272a; }
.collapsedFilter span { font-size: 22px; }

.discovery { min-width: 0; }
.heroBanner { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3.86 / 1; min-height: 145px; max-height: 235px; border: 1px solid #39245f; border-radius: 14px; background: #150a33; box-shadow: 0 18px 46px rgba(52,10,117,.18); }
.heroBanner::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 40px rgba(4,2,13,.45); border-radius: inherit; }
.heroBanner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.heroCta { position: absolute; left: 50%; bottom: 8%; z-index: 2; transform: translateX(-50%); width: 28%; min-width: 176px; height: 18%; min-height: 33px; border: 0; border-radius: 999px; background: rgba(255,255,255,.01); color: transparent; cursor: pointer; }
.heroCta:focus-visible { outline: 3px solid white; outline-offset: 2px; }

.searchToolbar { display: grid; grid-template-columns: 44px minmax(220px, 1fr) auto 120px; align-items: center; gap: 10px; margin: 15px 0 10px; }
.filterButton { height: 42px; display: grid; place-items: center; border: 1px solid #1681ff; border-radius: 8px; background: #090b10; color: white; cursor: pointer; font-size: 22px; box-shadow: inset 0 0 0 1px #1b2740; }
.filterButton:hover { background: #14203a; }
.searchBox { height: 42px; display: flex; align-items: center; gap: 10px; border: 1px solid #49494f; border-radius: 8px; padding: 0 13px; background: #070708; }
.searchBox:focus-within { border-color: #8f43d7; box-shadow: 0 0 0 3px rgba(153,66,220,.12); }
.searchBox span { font-size: 25px; }
.searchBox input { width: 100%; border: 0; outline: 0; background: transparent; color: #f5f5f7; font-size: 14px; }
.searchBox button { border: 0; background: none; color: #aaaab3; cursor: pointer; font-size: 20px; }
.switchLabel { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.switch { width: 43px; height: 24px; border: 0; border-radius: 99px; padding: 3px; background: #65656b; cursor: pointer; transition: background .2s ease; }
.switch span { display: block; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s ease; }
.switch.on { background: linear-gradient(90deg, #a744e7, #1c87fb); }
.switch.on span { transform: translateX(19px); }
.searchToolbar select { height: 42px; border: 1px solid #3f3f43; border-radius: 8px; padding: 0 12px; outline: 0; background: #09090a; color: white; cursor: pointer; font-size: 13px; }
.resultsMeta { min-height: 28px; display: flex; align-items: center; justify-content: space-between; color: #b1b1b8; font-size: 11px; }
.resultsMeta button { border: 0; background: none; color: #bf67ff; cursor: pointer; font-size: 12px; }

.characterGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.characterCard { min-width: 0; overflow: hidden; border: 1px solid #2f2f33; border-radius: 12px; background: #18181a; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.characterCard:hover { transform: translateY(-3px); border-color: #595960; box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.portraitLink { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #222; }
.portrait { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.characterCard:hover .portrait { transform: scale(1.035); }
.portraitLink::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, rgba(24,24,26,.96)); }
.ageBadge { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(18,18,20,.78); border: 1px solid rgba(255,255,255,.7); font-size: 9px; font-weight: 700; }
.ageBadge .uiIcon { width: 17px; height: 17px; }
.recommendBadge { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); min-width: 74px; padding: 4px 10px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #b54aea, #7f44dd); color: white; font-size: 9px; font-weight: 700; text-align: center; white-space: nowrap; }
.cardBody { margin-top: -12px; position: relative; z-index: 2; padding: 0 9px 9px; }
.cardTitleRow { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
.cardTitleRow h3 { margin: 0; overflow: hidden; color: #fff; font-size: 15px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.creator { display: block; margin-top: 2px; color: #2792e9; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.creator:hover { text-decoration: underline; }
.heartButton { flex: 0 0 auto; width: 25px; height: 26px; display: grid; place-items: center; border: 0; background: transparent; color: #bdbdc5; cursor: pointer; font-size: 20px; }
.heartButton .uiIcon { width: 17px; height: 17px; opacity: .75; }
.heartButton.liked { color: #f151c6; }
.heartButton.liked .uiIcon { filter: invert(49%) sepia(94%) saturate(2427%) hue-rotate(285deg) brightness(101%); opacity: 1; }
.description { height: 34px; margin: 7px 0 8px; overflow: hidden; color: #ededf0; font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tagRow { height: 21px; display: flex; gap: 4px; overflow: hidden; }
.tagChip { max-width: 92px; height: 20px; overflow: hidden; border: 0; border-radius: 4px; padding: 0 5px; background: #333337; color: #e5e5ea; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.tagChip:first-child { background: #7e329f; }
.stats { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; color: #8d8d96; font-size: 9px; white-space: nowrap; }
.stats span { display: inline-flex; align-items: center; gap: 3px; }
.stats .uiIcon { width: 11px; height: 11px; opacity: .6; }
.emptyState { min-height: 360px; display: grid; place-content: center; justify-items: center; border: 1px dashed #3b3b40; border-radius: 15px; text-align: center; color: #aaaab4; }
.emptyState > span .uiIcon { width: 48px; height: 48px; opacity: .65; }
.emptyState h2 { margin: 8px 0; color: white; }
.emptyState p { margin: 0 0 18px; }
.emptyState button { border: 0; border-radius: 8px; padding: 10px 16px; background: linear-gradient(100deg, #a548e7, #178dfc); cursor: pointer; }

.createPromo { position: relative; min-height: 190px; overflow: hidden; margin: 16px 0 12px; border: 1px solid #3d2a68; border-radius: 12px; background: #17102a; }
.createPromo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.createPromo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,13,45,.94) 0%, rgba(24,13,45,.76) 45%, rgba(24,13,45,.08) 78%); }
.createPromoContent { position: relative; z-index: 2; min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px; }
.createPromo h2 { margin: 0; font-size: clamp(22px, 2.25vw, 34px); font-weight: 900; }
.createPromo p { margin: 8px 0 22px; color: #eee2fb; font-size: 15px; }
.createPromo button { border: 0; border-radius: 999px; padding: 10px 19px; background: #f0b7ff; color: #24102e; cursor: pointer; font-weight: 800; }
.createPromo button:hover { background: #fff; }
.moreCharacterGrid { margin-top: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 58px 0 70px; }
.pagination button { min-width: 32px; height: 32px; border: 1px solid #38383e; border-radius: 6px; background: #09090a; color: #d3d3da; cursor: pointer; font-size: 12px; }
.pagination button:hover { border-color: #61616a; background: #202024; }
.pagination button.active { border-color: #168bfa; background: #147ee7; color: white; }
.pagination span { color: #787882; }

.longread { max-width: 980px; margin: 0 auto 84px; color: #c9c9d0; font-size: 16px; line-height: 1.78; }
.longread h1 { margin: 0 0 24px; color: #f7f7f9; font-size: clamp(30px, 4vw, 48px); line-height: 1.13; letter-spacing: -.035em; }
.longread h2 { margin: 54px 0 18px; color: #f1f1f4; font-size: clamp(23px, 2.8vw, 32px); line-height: 1.22; letter-spacing: -.02em; }
.longread p { margin: 0 0 18px; }
.longread .articleMeta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: -10px 0 24px; color: #92919b; font-size: 13px; line-height: 1.5; }
.longreadIntro { color: #e3e3e8; font-size: 19px; line-height: 1.68; }
.longread strong { color: #f2f2f5; font-weight: 700; }
.longread ul { margin: 24px 0; padding-left: 24px; }
.longread li { margin-bottom: 10px; padding-left: 5px; }
.longread li::marker { color: #aa52ee; }

.siteFooter { padding: 0 28px 20px; background: #050506; border-top: 1px solid #171719; }
.footerMain { display: grid; grid-template-columns: minmax(290px, 1.25fr) minmax(470px, 1fr); gap: 64px; padding: 48px 0 30px; }
.footerIdentity { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footerBrand { margin-bottom: 14px; }
.footerIdentity p { margin: 0 0 4px; color: #b9b9c0; font-size: 11px; }
.footerIdentity > span { color: #686871; font-size: 10px; line-height: 1.5; }
.footerLinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.footerLinks > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footerLinks h3 { margin: 0 0 4px; color: #f0f0f3; font-size: 13px; }
.footerLinks a { color: #9d9da6; font-size: 11px; }
.footerLinks a:hover { color: white; }
.footerStore { padding-bottom: 34px; }
.footerStore img { width: 112px; }
.footerBottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid #202023; color: #62626c; font-size: 9px; }
.footerBottom div { display: flex; gap: 16px; }
.footerBottom a { color: #237fd5; }

.sidebarCollapsed .sidebar { width: 72px; }
.sidebarCollapsed .pageColumn { margin-left: 72px; }
.sidebarCollapsed .sidebarHeader { padding: 0 14px; }
.sidebarCollapsed .brandLogo { width: 44px; height: 50px; }
.sidebarCollapsed .sidebarToggle { position: absolute; right: -14px; background: #29292d; transform: rotate(180deg); }
.sidebarCollapsed .sideNav { padding-inline: 8px; }
.sidebarCollapsed .navHeading, .sidebarCollapsed .navLabel, .sidebarCollapsed .navItem em { display: none; }
.sidebarCollapsed .navItem { justify-content: center; padding: 0; }
.sidebarCollapsed .navIcon { width: auto; }
.sidebarCollapsed .sidebarBottom { padding-inline: 10px; }
.sidebarCollapsed .sideSignIn span:first-child { font-size: 19px; }
.sidebarCollapsed .sidebarDetails { display: none; }

.scrim { display: none; }
.modalBackdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.signInModal { position: relative; width: min(440px, 100%); border: 1px solid #45454b; border-radius: 18px; padding: 28px; background: radial-gradient(circle at 50% -15%, #2a1551, transparent 45%), #171719; box-shadow: 0 25px 80px rgba(0,0,0,.65); }
.modalClose { position: absolute; top: 13px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #2c2c31; cursor: pointer; font-size: 23px; }
.signInModal h2 { margin: 25px 0 6px; font-size: 28px; }
.signInModal > p { margin: 0 0 22px; color: #aaaab3; line-height: 1.5; }
.providerButton, .continueButton { width: 100%; height: 46px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; }
.providerButton { background: white; color: #151518; }
.continueButton { margin-top: 14px; background: linear-gradient(100deg, #a847e5, #168dfc); }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #777780; font-size: 12px; }
.or span { flex: 1; height: 1px; background: #38383e; }
.emailLabel { display: grid; gap: 7px; color: #cfcfd6; font-size: 12px; }
.emailLabel input { height: 44px; border: 1px solid #45454b; border-radius: 8px; padding: 0 12px; outline: 0; background: #0b0b0d; color: white; }
.emailLabel input:focus { border-color: #a44ae0; }
.signInModal > small { display: block; margin-top: 15px; color: #7f7f89; font-size: 10px; line-height: 1.5; text-align: center; }

@media (max-width: 1380px) {
  .characterGrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 1120px) {
  :root { --sidebar-width: 205px; }
  .mainContent { grid-template-columns: 215px minmax(0, 1fr); gap: 13px; padding-inline: 13px; }
  .characterGrid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .footerMain { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .sidebar, .sidebarCollapsed .sidebar { width: min(290px, 86vw); transform: translateX(-105%); }
  .sidebar.mobileOpen { transform: translateX(0); }
  .sidebarCollapsed .navHeading, .sidebarCollapsed .navLabel, .sidebarCollapsed .navItem em { display: flex; }
  .sidebarCollapsed .navItem { justify-content: flex-start; padding: 0 10px; }
  .sidebarCollapsed .sidebarBottom { padding-inline: 16px; }
  .sidebarToggle { display: none; }
  .mobileClose { display: block; }
  .pageColumn, .sidebarCollapsed .pageColumn { margin-left: 0; }
  .topbar { justify-content: space-between; height: 68px; padding: 0 14px; border-top: 2px solid #134269; }
  .mobileMenu { display: grid; place-items: center; width: 32px; padding: 0; font-size: 21px; }
  .mobileMenu .uiIcon { width: 24px; height: 24px; }
  .mobileBrand { display: none; }
  .topActions { margin-left: auto; gap: 10px; }
  .premiumButton { height: 43px; padding: 0 16px; border-radius: 24px; font-size: 14px; font-weight: 800; }
  .premiumButton .uiIcon { width: 22px; height: 22px; }
  .topIcon { min-width: 30px; font-size: 18px; }
  .topIcon .uiIcon { width: 22px; height: 22px; }
  .loginButton { width: 43px; height: 43px; padding: 0; border-radius: 8px; }
  .loginButton .uiIcon { width: 23px; height: 23px; }
  .loginButton span { display: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(0,0,0,.65); }
  .mainContent { display: block; padding: 12px 14px 35px; }
  .filters { position: fixed; inset: auto 0 0; z-index: 80; height: min(76vh, 650px); padding: 12px; background: #101012; border-radius: 18px 18px 0 0; transform: translateY(110%); transition: transform .25s ease; }
  .filters.filtersMobileOpen { transform: translateY(0); }
  .filterPanelTitle button { display: block; }
  .heroBanner { border-radius: 11px; }
  .searchToolbar { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .searchToolbar select { grid-column: 2 / 4; width: 100%; }
  .siteFooter { padding-inline: 18px; }
  .footerLinks { max-width: 600px; }
  .longread { max-width: 760px; }
}

@media (max-width: 580px) {
  .premiumButton { width: auto; padding: 0 15px; font-size: 14px; }
  .topActions { gap: 8px; }
  .heroBanner { min-height: 0; aspect-ratio: 1.54 / 1; border-radius: 12px; }
  .heroBanner img { object-position: center; }
  .heroCta { width: 48%; height: 15%; bottom: 9%; }
  .searchToolbar { grid-template-columns: minmax(0, 1fr) 55px 132px; grid-template-rows: 45px 44px; gap: 10px 8px; margin-top: 18px; }
  .searchBox { grid-column: 1 / 4; grid-row: 1; height: 45px; }
  .searchBox .uiIcon { width: 23px; height: 23px; }
  .switchLabel { grid-column: 1; grid-row: 2; justify-self: start; gap: 10px; font-size: 15px; font-weight: 700; }
  .switch { width: 50px; height: 28px; padding: 3px; }
  .switch span { width: 22px; height: 22px; }
  .switch.on span { transform: translateX(22px); }
  .filterButton { grid-column: 2; grid-row: 2; width: 55px; height: 44px; border-color: #4c4c53; }
  .filterButton .uiIcon { width: 24px; height: 24px; }
  .searchToolbar select { grid-column: 3; grid-row: 2; width: 132px; height: 44px; font-size: 14px; font-weight: 700; }
  .resultsMeta { margin: 16px 0 10px; font-size: 12px; }
  .characterGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portraitLink { aspect-ratio: 1 / 1; }
  .cardBody { min-height: 184px; padding: 10px 10px 11px; margin-top: 0; }
  .cardTitleRow h3 { font-size: 16px; }
  .creator { margin-top: 3px; font-size: 12px; }
  .description { height: 44px; margin: 12px 0 8px; font-size: 14px; line-height: 1.45; }
  .tagRow { height: 42px; flex-wrap: wrap; align-content: flex-start; }
  .tagChip { max-width: 105px; height: 19px; font-size: 11px; }
  .stats { margin-top: 7px; font-size: 10px; }
  .recommendBadge { min-width: 74px; padding-block: 6px; font-size: 11px; }
  .createPromo { min-height: 220px; }
  .createPromo::after { background: linear-gradient(90deg, rgba(24,13,45,.94), rgba(24,13,45,.58)); }
  .createPromoContent { min-height: 220px; padding: 18px; }
  .createPromo p { max-width: 80%; font-size: 12px; }
  .footerMain { padding-top: 36px; }
  .footerLinks { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footerBottom { align-items: flex-start; flex-direction: column; }
  .footerBottom div { flex-direction: column; gap: 6px; }
  .longread { margin-bottom: 58px; font-size: 15px; line-height: 1.72; }
  .longread h1 { margin-bottom: 20px; font-size: 29px; }
  .longread h2 { margin-top: 42px; font-size: 23px; }
  .longreadIntro { font-size: 17px; }
}

@media (max-width: 380px) {
  .topbar { padding-inline: 9px; }
  .topActions { gap: 4px; }
  .premiumButton { padding-inline: 9px; font-size: 11px; }
  .characterGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cardBody { min-height: 176px; padding-inline: 7px; }
  .cardTitleRow h3 { font-size: 14px; }
  .description { font-size: 12px; }
  .footerLinks { grid-template-columns: 1fr; }
}

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