:root {
  color-scheme: dark;
  --bg: #111013;
  --surface: #1b191b;
  --raised: #252224;
  --text: #fcf9f4;
  --muted: #bdb5ac;
  --subtle: #928980;
  --line: #ffffff13;
  --brand-gold: #ffc827;
  --brand-gold-soft: #ffe4a0;
  --brand-gold-grad: linear-gradient(105deg, var(--brand-gold), var(--brand-gold-soft));
  --brand-gold-ink: #432604;
  --brand-gold-line: #eebc6055;
  --brand-gold-panel: #312619;
  --accent: var(--brand-gold);
  --accent-dark: var(--brand-gold-panel);
  --gold: var(--brand-gold-soft);
  --width: 480px;
  --icon: 21px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-optical-sizing: auto;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0c0b0c;
  color: var(--text);
  min-height: 100dvh;
}

button,input,a,textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

button[disabled] {
  opacity: .55;
  cursor: default;
}

input {
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

svg {
  width: var(--icon);
  height: var(--icon);
  flex-shrink: 0;
}

h1,h2,h3,p {
  margin: 0;
}

[hidden] {
  display: none!important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.top {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #141115f5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  padding-top: env(safe-area-inset-top);
}

.top-inner {
  max-width: var(--width);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 25px;
  height: 76px;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex: none;
}

.brand-name {
  color: var(--brand-gold-soft);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: .015em;
  line-height: 1;
}

.search-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  height: 42px;
  border: 1px solid var(--line);
  background: #ffffff0a;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--muted);
  max-width: 440px;
  flex: 1;
  min-width: 0;
}

.search-entry span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.rank-entry {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 680;
  margin-left: auto;
  white-space: nowrap;
}

.rank-entry svg {
  --icon: 20px;
}

.content {
  max-width: var(--width);
  margin: auto;
  padding: 0 28px 116px;
  min-height: calc(100dvh - 76px);
}

.filters {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 12px;
  padding: 24px 0 20px;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #191922;
  border-radius: 999px;
  padding: 7px 15px;
  color: #bcb9c9;
  font-size: 13px;
  line-height: 1.4;
}

.filter.active {
  color: var(--brand-gold-ink);
  background: var(--brand-gold-grad);
  border-color: var(--brand-gold);
  font-weight: 760;
}

.announcement {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-dark);
  color: var(--brand-gold-soft);
  font-size: 13px;
  line-height: 1.55;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 370px;
  background: #211733;
  border-radius: 22px;
  box-shadow: 0 20px 42px #0005;
  border: 1px solid #ffffff13;
  display: flex;
  align-items: flex-end;
}

.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -3;
  width: 72%;
  height: 100%;
  object-position: center 18%;
}

.hero::after {
  content: '';
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#120f1c 0%,#120f1c 27%,#120f1c93 48%,transparent 86%),linear-gradient(0deg,#120f1cee 0%,transparent 70%);
}

.hero-body {
  padding: 42px;
  max-width: min(620px,80%);
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #e8cfba;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8b988;
  box-shadow: 0 0 10px #edbc8f80;
}

.hero h1 {
  font-size: clamp(29px,5.2vw,61px);
  line-height: 1.07;
  margin: 11px 0 11px;
  font-weight: 850;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: #f0dffc;
  font-size: 12px;
}

.hero-meta span,.tag {
  background: #ffffff16;
  border: 1px solid #ffffff21;
  border-radius: 5px;
  padding: 3px 6px;
}

.hero-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #d9cfdf;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 13px 0 18px;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 23px;
  display: flex;
  gap: 7px;
}

.dot {
  width: 9px;
  height: 9px;
  background: #ffffff66;
  border-radius: 8px;
}

.dot.active {
  width: 24px;
  background: #d8b8ff;
}

.hero-dots .dot::before {
  content: '';
  display: block;
  position: relative;
  inset: -6px;
  width: calc(100% + 12px);
  height: 21px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-gold-grad);
  color: var(--brand-gold-ink);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: .01em;
  white-space: nowrap;
}

.cta svg {
  --icon: 17px;
}

.cta.secondary {
  background: #ffffff0c;
  border: 1px solid var(--line);
  color: var(--text);
}

.cta.gold {
  background: var(--brand-gold-grad);
  color: var(--brand-gold-ink);
}

.small-button {
  font-size: 13px;
  color: var(--accent);
  font-weight: 680;
  padding: 6px 0;
}

.section {
  margin-top: 35px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.section-head h2,.page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .015em;
}

.section-head small {
  font-size: 12px;
  color: var(--muted);
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 22px 14px;
}

.poster-card {
  display: block;
  text-align: left;
  min-width: 0;
}

.poster-media {
  position: relative;
  display: block;
  aspect-ratio: 2/2.82;
  overflow: hidden;
  border-radius: 13px;
  background: #282034;
  isolation: isolate;
}

.poster-media img {
  width: 100%;
  height: 100%;
  transition: transform .22s ease;
}

.poster-card:hover img {
  transform: scale(1.035);
}

.poster-media::after {
  content: '';
  z-index: 0;
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent,#09080eaf);
}

.poster-badge,.poster-ep {
  position: absolute;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.poster-badge {
  top: 8px;
  left: 8px;
  border-radius: 5px;
  background: #2b153de6;
  color: #efdcff;
  padding: 4px 6px;
}

.poster-badge.gold {
  background: #302214ed;
  color: #ffda88;
}

.poster-ep {
  bottom: 8px;
  right: 8px;
  font-weight: 650;
  color: #f8f4ff;
}

.poster-title {
  font-size: 14px;
  font-weight: 720;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-category {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-title,.poster-category {
  display: block;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #171721;
}

.page-header {
  padding-top: 32px;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.page-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.empty .cta {
  margin-top: 14px;
}

.error {
  color: #ffb6a9;
  line-height: 1.6;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.topic-card {
  aspect-ratio: 2/1;
  position: relative;
  isolation: isolate;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  background: #2d2340;
}

.topic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-position: 50% 46%;
}

.topic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#120d1de8,transparent),linear-gradient(70deg,#2113317a,#0002);
  z-index: -1;
}

.topic-card h2 {
  font-size: 21px;
}

.topic-card small {
  color: #ddd2e7;
  font-size: 12px;
  margin-top: 5px;
}

.bottom {
  position: fixed;
  inset: auto max(0px,calc((100% - var(--width)) / 2)) 0;
  z-index: 6;
  border-top: 1px solid var(--line);
  background: #12121bea;
  backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: center;
}

.nav-inner {
  width: min(100%,570px);
  display: grid;
  grid-template-columns: repeat(4,1fr);
  height: 65px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #8f8b9f;
  position: relative;
}

.nav-link.active {
  color: var(--brand-gold);
  font-weight: 740;
}

.nav-link svg {
  --icon: 22px;
}

.nav-link.active svg {
  filter: drop-shadow(0 0 8px #ffc82745);
}

.profile {
  max-width: 720px;
  margin: auto;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(115deg,#2c2040,#191823 65%);
  position: relative;
}

.avatar {
  flex: none;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #372950;
  border: 1px solid #ffffff18;
  color: #e9c9ff;
  font-weight: 800;
  font-size: 20px;
}

.profile-head h2 {
  font-size: 19px;
}

.profile-head p {
  margin-top: 5px;
  color: #bdb1c9;
  font-size: 12px;
}

.profile-head .cta {
  margin-left: auto;
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.wallet-card {
  min-width: 0;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 18px 15px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #201a2b;
}

.wallet-card.gold {
  background: linear-gradient(130deg,#2e261b,#211d1e 65%);
  color: #ffdf9d;
}

.wallet-card.violet {
  color: #dbb8fc;
  background: linear-gradient(130deg,#2d2144,#211b2e);
}

.wallet-card small {
  font-size: 12px;
  opacity: .88;
}

.wallet-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.wallet-card span {
  color: #d5cbdc;
  font-size: 12px;
  margin-top: 4px;
}

.menu-list {
  margin-top: 16px;
  padding: 2px 14px;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 16px 4px;
  font-size: 14px;
  color: #efebf6;
}

.menu-row+ .menu-row {
  border-top: 1px solid var(--line);
}

.menu-row svg {
  color: var(--accent);
  --icon: 18px;
}

.menu-row .arrow {
  margin-left: auto;
  color: var(--subtle);
  --icon: 15px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.product {
  display: flex;
  align-items: start;
  flex-direction: column;
  text-align: left;
  gap: 9px;
  min-width: 0;
}

.product strong {
  font-size: 18px;
}

.product span {
  color: var(--muted);
  font-size: 12px;
}

.product b {
  font-size: 16px;
  color: var(--accent);
}

.orders {
  margin-top: 19px;
}

.order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.order+.order {
  border-top: 1px solid var(--line);
}

.order strong {
  display: block;
  font-size: 14px;
}

.order small {
  color: var(--muted);
  font-size: 11px;
}

.order-status {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.order-status.paid {
  color: #9ce2ba;
}

.watch-wrap {
  max-width: 850px;
  margin: 0 auto;
}

.watch-stage {
  position: relative;
  min-height: 250px;
  height: min(70dvh,570px);
  background: #09080d;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.watch-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.watch-stage .watch-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .44;
}

.watch-gate {
  z-index: 2;
  text-align: center;
  padding: 22px;
  display: grid;
  justify-items: center;
  gap: 11px;
  max-width: 100%;
}

.watch-gate p {
  color: #ddd0e8;
  line-height: 1.5;
  font-size: 14px;
}

.watch-gate-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.watch-title {
  font-size: 24px;
  margin: 19px 0 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.watch-title button {
  color: var(--accent);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.watch-title button svg {
  --icon: 18px;
}

.synopsis {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(84px,1fr));
  gap: 8px;
  margin-top: 13px;
}

.episode {
  border: 1px solid var(--line);
  background: #1c1b26;
  border-radius: 8px;
  text-align: center;
  padding: 9px 5px;
  min-width: 0;
}

.episode strong,.episode small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode strong {
  font-size: 13px;
}

.episode small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

.episode.active {
  border-color: #a873f0;
  background: #302342;
}

.episode.active small {
  color: #e2c5fc;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.field {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 1px solid var(--line);
  background: #22212e;
  border-radius: 9px;
  padding: 0 12px;
}

.field::placeholder {
  color: #8e8a9e;
}

.overlay {
  max-height: calc(100dvh - 24px);
  width: min(420px,calc(100% - 26px));
  border: 1px solid #ffffff2b;
  border-radius: 17px;
  background: #191821;
  color: var(--text);
  padding: 22px;
  box-shadow: 0 25px 75px #000a;
}

.overlay::backdrop {
  background: #09060eba;
  backdrop-filter: blur(5px);
}

.overlay h2 {
  font-size: 20px;
  padding-right: 32px;
  margin-bottom: 10px;
}

.overlay .close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.overlay p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
  margin-bottom: 13px;
}

.overlay .field {
  margin: 3px 0 9px;
}

.overlay .form-error {
  min-height: 18px;
  color: #ffb6a9;
  font-size: 12px;
  margin: 0 0 7px;
}

.overlay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: calc(77px + env(safe-area-inset-bottom));
  z-index: 11;
  left: 50%;
  transform: translateX(-50%);
  max-width: 88vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #30273d;
  color: #f8ecff;
  border: 1px solid #ffffff26;
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 13px;
  box-shadow: 0 10px 25px #0008;
}

.top-inner {
  height: 60px;
  padding: 0 15px;
  gap: 12px;
}
.content {
  padding: 0 15px 94px;
  min-height: calc(100dvh - 60px);
}
.brand {
  gap: 7px;
}
.brand-name {
  font-size: 17px;
}
.search-entry {
  height: 35px;
  padding: 0 8px;
  gap: 5px;
  border-radius: 9px;
}
.search-entry svg {
  --icon: 17px;
}
.search-entry span {
  font-size: 11px;
}
.rank-entry {
  font-size: 12px;
  gap: 3px;
}
.rank-entry svg {
  --icon: 17px;
}
.filters {
  padding: 16px 0 14px;
  gap: 7px;
}
.filter {
  font-size: 12px;
  padding: 5px 10px;
}
.hero {
  min-height: 260px;
  border-radius: 14px;
}
.hero-image {
  width: 100%;
  object-position: center 23%;
}
.hero::after {
  background: linear-gradient(0deg,#120f1cf5 0%,#120f1c7a 42%,transparent 91%);
}
.hero-body {
  padding: 22px 15px 21px;
  max-width: 88%;
}
.hero-summary {
  font-size: 12px;
  margin: 8px 0 12px;
}
.hero-meta {
  font-size: 10px;
  gap: 5px;
}
.hero h1 {
  margin: 7px 0 9px;
}
.eyebrow {
  font-size: 10px;
}
.cta {
  height: 37px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
}
.hero-dots {
  right: 13px;
  bottom: 15px;
  gap: 5px;
}
.dot {
  width: 6px;
  height: 6px;
}
.dot.active {
  width: 16px;
}
.section {
  margin-top: 23px;
}
.section-head {
  margin-bottom: 11px;
}
.section-head h2,.page-title {
  font-size: 18px;
}
.poster-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px 8px;
}
.poster-media {
  border-radius: 9px;
}
.poster-badge,.poster-ep {
  font-size: 8px;
}
.poster-badge {
  top: 5px;
  left: 5px;
  padding: 3px 5px;
}
.poster-ep {
  bottom: 6px;
  right: 6px;
}
.poster-title {
  margin-top: 5px;
  font-size: 12px;
}
.poster-category {
  margin-top: 3px;
  font-size: 10px;
}
.nav-inner {
  height: 57px;
}
.nav-link {
  gap: 4px;
}
.nav-link svg {
  --icon: 19px;
}
.page-header {
  padding-top: 21px;
  margin-bottom: 15px;
}
.topic-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.topic-card {
  padding: 8px;
  min-height: 100px;
}
.topic-card h2 {
  font-size: 15px;
}
.profile-head .cta {
  height: 33px;
}
.products {
  gap: 8px;
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.product {
  padding: 12px;
}
.watch-stage {
  height: min(58dvh,520px);
  border-radius: 12px;
}
.watch-title {
  font-size: 19px;
}
.episodes {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

@media(max-width:360px) {
  .brand-name {
    font-size: 15px;
  }
  .top-inner {
    gap: 8px;
  }
  .search-entry span {
    font-size: 10px;
  }
  .profile-head {
    padding: 13px;
  }
  .avatar {
    width: 41px;
    height: 41px;
  }
}

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

.history-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.history-meta strong {
  font-weight: 660;
}

.player-hint {
  color: var(--muted);
}

.shell {
  width: min(100%, var(--width));
  min-height: 100dvh;
  margin-inline: auto;
  background: radial-gradient(100% 380px at 92% 0%, #2a2118, transparent 85%), var(--bg);
}

@media (min-width: 481px) {
  .shell {
    box-shadow: 0 0 0 1px #ffffff0d, 0 16px 55px #0008;
  }
}

.brand-logo {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 9px;
  object-fit: contain;
}

.brand-name {
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-entry {
  border-radius: 999px;
  background: #1a181b;
}

.filters {
  margin-inline: -15px;
  padding-inline: 15px;
  overscroll-behavior-inline: contain;
}

.hero {
  min-height: 282px;
  margin-top: 1px;
  touch-action: pan-y;
}

.hero h1 {
  font-size: clamp(29px, 8.5vw, 37px);
}

.hero-body {
  max-width: 92%;
}

.hero-body .cta {
  padding-inline: 16px;
}

.section-head h2,
.page-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.27;
  letter-spacing: .015em;
}

.section-head small,
.small-button,
.page-header p {
  line-height: 1.45;
}

.page-header p {
  margin-top: 6px;
  font-size: 13px;
}

.poster-grid {
  gap: 18px 9px;
}

.poster-title {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 715;
  line-height: 1.38;
}

.poster-category {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.42;
}

.poster-ep,
.poster-heat {
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.bottom {
  background: #151316f5;
}

.nav-inner {
  width: 100%;
  height: 60px;
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.18;
  gap: 5px;
}

.profile-head {
  min-height: 86px;
  margin: 0 0 14px;
  padding: 9px 0 13px;
  border: 0;
  background: transparent;
}

.profile-account {
  min-width: 0;
}

.profile-head h2 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
}

.profile-head p {
  color: var(--muted);
}

.profile-head .cta {
  flex: none;
  border-color: var(--brand-gold-line);
  color: var(--brand-gold-soft);
  background: var(--brand-gold-panel);
}

.avatar {
  width: 51px;
  height: 51px;
  border-color: var(--brand-gold-line);
  background: linear-gradient(140deg, #4b3724, #2b2420);
}

.member-banner,
.balance-card {
  display: flex;
  align-items: center;
  min-height: 83px;
  gap: 12px;
  padding: 13px;
  border-radius: 13px;
}

.member-banner {
  color: #3d2818;
  border: 1px solid #f3dbb6b5;
  background: linear-gradient(117deg, #f6dcb0 1%, #e4b57a 73%, #eebd7b 100%);
  box-shadow: 0 8px 28px #0002;
}

.member-emblem,
.balance-emblem {
  display: grid;
  flex: 0 0 39px;
  align-items: center;
  justify-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
}

.member-emblem {
  color: #6f4825;
  border: 1px solid #ffffff73;
  background: #fff7e04d;
}

.member-copy strong,
.member-copy small,
.balance-card small,
.balance-card strong {
  display: block;
}

.member-copy strong {
  font-size: 18px;
  font-weight: 850;
}

.member-copy small {
  margin-top: 4px;
  color: #694b36;
  font-size: 11px;
}

.member-action,
.balance-action {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.member-action {
  padding: 7px 8px;
  border-radius: 999px;
  background: #fff1d470;
}

.member-action svg,
.balance-action svg {
  --icon: 13px;
}

.balance-card {
  margin-top: 11px;
  border: 1px solid var(--line);
  background: #1a1923;
}

.balance-emblem {
  color: #ffd587;
  background: #392e26;
}

.balance-card small {
  font-size: 11px;
  color: var(--muted);
}

.balance-card strong {
  margin-top: 3px;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.balance-card em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.balance-action {
  color: var(--accent);
}

.watch-actions {
  display: flex;
  gap: 13px;
  flex: none;
}

.watch-title h1 {
  min-width: 0;
  font-size: 20px;
}

.watch-actions button {
  gap: 4px;
  font-size: 11px;
}

.watch-actions button svg {
  --icon: 15px;
}

.field-caption {
  display: block;
  margin: 10px 0 4px;
  color: #dfd8ed;
  font-size: 12px;
  font-weight: 690;
}

.account-prompt-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: 12px 0;
  border: 1px solid var(--brand-gold-line);
  border-radius: 13px;
  background: var(--brand-gold-panel);
  color: var(--brand-gold-soft);
}

.account-prompt-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 9px;
  margin-top: 19px;
}

.overlay[data-kind='account'] {
  bottom: 0;
  align-self: end;
  width: min(100%, var(--width));
  margin: auto auto 0;
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
}

@media (max-width: 360px) {
  .brand-name { max-width: 5.6em; }
  .brand-logo { width: 31px; height: 31px; flex-basis: 31px; }
  .profile-head { padding-inline: 0; }
  .member-action { padding-inline: 5px; }
  .hero { min-height: 255px; }
}

/* Account, checkout, and the dedicated portrait player. */
.profile-overview {
  padding-top: calc(23px + env(safe-area-inset-top));
}

.profile-overview .profile-head {
  min-height: 72px;
  padding: 0;
  gap: 11px;
  margin-bottom: 18px;
}

.profile-overview .avatar,
.recharge-avatar {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid #ebc59045;
  background: #322c42;
}

.avatar img {
  width: 100%;
  height: 100%;
}

.profile-account h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 790;
  line-height: 1.25;
}

.profile-id {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.profile-shortcuts {
  display: flex;
  flex: none;
  gap: 4px;
  margin-left: auto;
}

.profile-shortcuts > * {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #23212e;
  color: #efe8fc;
}

.profile-shortcuts svg { --icon: 17px; }

.profile-bind {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  margin-top: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #1b1a24;
  text-align: left;
}

.profile-bind > svg:first-child { --icon: 19px; color: #ecbd84; }
.profile-bind .arrow { --icon: 14px; margin-left: auto; color: var(--subtle); }
.profile-bind strong,.profile-bind small { display: block; }
.profile-bind strong { margin-bottom: 3px; font-size: 14px; font-weight: 730; line-height: 1.3; }
.profile-bind small { color: var(--muted); font-size: 11px; line-height: 1.36; }

.profile-library { margin-top: 17px; }
.profile-tabs {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.profile-tabs a {
  position: relative;
  padding: 10px 8px 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.profile-tabs a.active { color: #f9f0dc; font-weight: 790; }
.profile-tabs a.active::after,
.recharge-tabs a.active::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: #ffd287;
  content: '';
  transform: translateX(-50%);
}

.profile-empty { padding: 47px 0; color: var(--muted); text-align: center; font-size: 13px; }

.commerce-page {
  padding: 0 0 calc(101px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  background: #111018;
}

.recharge-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 66px minmax(0,1fr) 66px;
  align-items: center;
  min-height: 49px;
  padding: env(safe-area-inset-top) 9px 0;
  border-bottom: 1px solid var(--line);
  background: #12111a;
}

.page-back {
  display: grid;
  place-items: center;
  width: 39px;
  min-height: 39px;
  color: #fff;
}

.page-back svg { --icon: 22px; }
.recharge-tabs { display: flex; justify-content: center; gap: clamp(10px, 4.5vw, 24px); }
.recharge-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  height: 47px;
  color: #b6aebb;
  font-size: 15px;
  font-weight: 660;
  line-height: 1.2;
  white-space: nowrap;
}

.recharge-tabs a.active { color: #fff3d6; font-weight: 820; }
.recharge-records { color: #e2d9e8; font-size: 12px; font-weight: 620; text-align: right; white-space: nowrap; }
.recharge-body { padding: 13px 15px 0; }
.recharge-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 151px;
  padding: 19px;
  border-radius: 14px;
  background-color: #2e231e;
  background-size: cover;
  background-position: center;
}

.recharge-banner.coin {
  min-height: 0;
  aspect-ratio: 45 / 17;
  border: 1px solid #f1cc86;
  color: #30200a;
  background-image: linear-gradient(90deg, #ffdf95e8 0%, #ffdf957f 42%, transparent 72%), url('/media/coin-balance.jpg'), linear-gradient(130deg, #fddd99, #e7a959);
}

.recharge-banner.vip {
  min-height: 146px;
  border: 1px solid #c9997148;
  color: #ffdb9b;
  background-image: linear-gradient(90deg, #2c1913e8, #2c19135c 55%, transparent 90%), url('/media/vip-balance.jpg'), linear-gradient(130deg, #2c1913, #60432d);
}

.recharge-banner strong,.recharge-banner small { display: block; }
.recharge-banner small { font-size: 13px; font-weight: 625; line-height: 1.36; }
.recharge-banner strong { margin: 6px 0; font-size: 32px; line-height: 1.12; font-weight: 850; font-variant-numeric: tabular-nums; }
.recharge-banner.vip strong { font-size: 23px; }
.recharge-account { display: flex; align-items: center; gap: 7px; }
.recharge-account img { width: 35px; height: 35px; border-radius: 50%; }
.recharge-banner.coin strong { font-size: clamp(21px, 6vw, 30px); }
.recharge-avatar.avatar { flex: 0 0 48px; width: 48px; height: 48px; }
.recharge-benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 1px;
  padding: 17px 0 3px;
}

.recharge-benefits span { display: grid; justify-items: center; gap: 6px; color: #efd8b0; }
.recharge-benefits svg { --icon: 19px; color: #dcb673; }
.recharge-benefits small { font-size: 11px; line-height: 1.3; white-space: nowrap; }
.recharge-options,.recharge-methods { margin-top: 22px; }
.recharge-options h1,.recharge-methods h2 { margin-bottom: 12px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.recharge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.recharge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 144 / 153;
  min-height: 116px;
  padding: 11px 0 0;
  overflow: hidden;
  border: 1px solid var(--brand-gold-line);
  border-radius: 11px;
  background: #29231d;
  text-align: center;
}
.recharge-card.coin { background: #24201c; }
.recharge-card.active { border-color: var(--brand-gold); background: linear-gradient(145deg, #392a1b, #5c3c20); box-shadow: inset 0 0 0 1px #edbd762b; }
.recharge-card strong { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; font-size: 13px; font-weight: 730; line-height: 1.24; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.recharge-card strong svg { width: 16px; height: 16px; color: #ffcc72; }
.recharge-card b { font-size: clamp(20px, 6.2vw, 30px); font-weight: 810; line-height: 1.1; color: #fff0d5; font-variant-numeric: tabular-nums; }
.recharge-card span { align-self: stretch; padding: 7px 2px; background: #ffffff0e; color: #e1d5e1; font-size: 11px; line-height: 1.2; }
.recharge-card.active span { color: var(--brand-gold-ink); background: var(--brand-gold-grad); font-weight: 740; }
.recharge-methods > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recharge-methods button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d1b28;
  font-size: 14px;
  font-weight: 675;
}

.recharge-methods button.active { border-color: #e9bc72; }
.pay-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: white; font-weight: 850; }
.pay-icon.alipay { background: #187df0; }
.pay-icon.wechat { background: #239d53; }
.pay-icon svg { --icon: 16px; }
.recharge-checkout,
.show-detail-footer {
  position: fixed;
  z-index: 6;
  inset: auto max(0px, calc((100% - var(--width)) / 2)) 0;
  padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #15131de8;
  backdrop-filter: blur(15px);
}

.recharge-checkout .cta {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: var(--brand-gold-grad);
  color: var(--brand-gold-ink);
  font-size: 15px;
}

.recharge-checkout small { display: block; margin-top: 4px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.3; }

.show-page { padding-bottom: calc(101px + env(safe-area-inset-bottom)); }
.show-detail h1 { margin: 1px 0 13px; font-size: clamp(23px, 6.2vw, 27px); font-weight: 820; line-height: 1.22; text-wrap: balance; }
.show-detail-header { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: start; gap: 13px; }
.show-detail-poster { aspect-ratio: 118/158; overflow: hidden; border-radius: 9px; background: var(--raised); }
.show-detail-poster img { width: 100%; height: 100%; }
.show-detail-copy > p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.show-detail-copy .synopsis {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.58;
  color: #dad3e1;
}

.show-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 15px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #201d2a;
  color: #cec5d6;
  font-size: 11px;
  line-height: 1.3;
}

.show-detail-summary span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.show-detail-summary svg { --icon: 13px; }
.show-detail-episodes { margin-top: 21px; }
.show-detail-episodes .section-head { margin-bottom: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.show-detail-footer { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.show-detail-footer .cta {
  flex: 1;
  height: 43px;
  border-radius: 999px;
  background: linear-gradient(100deg, #ffdfa0, #eebb68);
  font-size: 14px;
}

.show-detail-actions { display: flex; gap: 12px; }
.show-detail-actions button,.player-side-actions button {
  display: grid;
  min-width: 32px;
  justify-items: center;
  gap: 3px;
  color: #eee5f3;
  font-size: 10px;
  white-space: nowrap;
}

.show-detail-actions button[aria-pressed='true'],.player-side-actions button[aria-pressed='true'] { color: #ffd389; }
.show-detail-actions svg { --icon: 19px; }
.show-page .episodes,.overlay[data-kind='episodes'] .episodes {
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 6px;
}

.show-page .episode,.overlay[data-kind='episodes'] .episode {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 57px;
  padding: 15px 3px 7px;
  border-radius: 7px;
}

.show-page .episode strong,.overlay[data-kind='episodes'] .episode strong { max-width: 100%; font-size: 12px; font-weight: 730; line-height: 1.2; }
.show-page .episode small,.overlay[data-kind='episodes'] .episode small { max-width: 100%; color: #edc095; font-size: 9px; line-height: 1.25; }

.player-page { height: 100dvh; min-height: 100dvh; padding: 0; overflow: hidden; background: #08080c; }
.portrait-player {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow: hidden;
  background: #08080c;
  --picker-height: calc(65px + env(safe-area-inset-bottom));
}

.portrait-video,
.player-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--picker-height));
  object-fit: contain;
}

.player-poster { opacity: .27; filter: blur(4px); }
.portrait-player:has(.portrait-video:not([hidden])) .player-poster { display: none; }
.player-top {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg,#0007,transparent);
  pointer-events: none;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
  text-shadow: 0 1px 3px #000, 0 4px 9px #000b;
}

.player-top .page-back { pointer-events: auto; width: 33px; }
.portrait-player .watch-gate {
  position: absolute;
  z-index: 4;
  top: calc((100% - var(--picker-height)) / 2);
  left: 50%;
  width: min(83%, 315px);
  transform: translate(-50%,-50%);
  border-radius: 15px;
  background: #17141ddb;
  backdrop-filter: blur(10px);
}

.portrait-player .watch-gate p { color: #f6ecff; font-size: 14px; line-height: 1.5; }
.player-start {
  position: absolute;
  z-index: 3;
  top: calc((100% - var(--picker-height)) / 2);
  left: 50%;
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  transform: translate(-50%,-50%);
  border: 1px solid #ffffff64;
  border-radius: 50%;
  background: #10101772;
  backdrop-filter: blur(5px);
}

.player-start svg { --icon: 37px; }
.player-side-actions {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: calc(var(--picker-height) + 67px);
  display: grid;
  gap: 14px;
  filter: drop-shadow(0 2px 4px #000d);
}

.player-side-actions button { font-size: 11px; font-weight: 690; line-height: 1.2; }
.player-side-actions button svg { --icon: 24px; }
.player-footer {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  background: linear-gradient(0deg,#101019 49%,#0505089c 50%,transparent 100%);
  padding-top: 20px;
  pointer-events: none;
}

.player-footer h1 {
  margin: 0 53px 7px 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px #000, 0 4px 10px #000b;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.3;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 9px 5px;
  color: #eee7f4;
  pointer-events: auto;
}

.player-controls button,.player-fullscreen { display: grid; place-items: center; flex: 0 0 31px; min-height: 34px; }
.player-controls svg { --icon: 20px; }
.player-controls time { flex: none; font-size: 11px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.player-controls input {
  flex: 1;
  appearance: none;
  min-width: 0;
  height: 4px;
  margin: 0 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-gold) var(--progress,0%),#ffffff43 var(--progress,0%));
  cursor: pointer;
}

.player-controls input::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff6db;
}

.player-controls input::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff6db; }
.player-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
  height: var(--picker-height);
  padding: 0 11px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: #16151e;
  pointer-events: auto;
}

.player-picker {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
  min-height: 43px;
  color: #f7eef9;
  text-align: left;
  font-size: 14px;
  font-weight: 690;
  line-height: 1.25;
}

.player-picker svg { --icon: 17px; }
.player-picker svg:last-child { margin-left: auto; color: var(--muted); --icon: 14px; }
.player-fullscreen svg { --icon: 18px; }
.player-unavailable { display: grid; align-items: center; min-height: 100%; padding: 15px; }
.overlay[data-kind='episodes'] {
  width: min(100%,var(--width));
  max-height: min(65dvh, 560px);
  margin: auto auto 0;
  bottom: 0;
  border-radius: 19px 19px 0 0;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

@media (max-width: 360px) {
  .profile-overview .avatar { width: 54px; height: 54px; }
  .recharge-header { grid-template-columns: 53px minmax(0,1fr) 53px; }
  .show-detail-header { grid-template-columns: 92px minmax(0,1fr); }
  .show-page .episodes,.overlay[data-kind='episodes'] .episodes { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

.show-detail-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.show-detail-tabs a {
  position: relative;
  padding: 7px 5px 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
}

.show-detail-tabs a[aria-current='page'] { color: #fff1de; }
.show-detail-tabs a[aria-current='page']::after {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: 2px;
  content: '';
  border-radius: 5px;
  background: #f5bd77;
}

.show-detail-tabs small { margin-left: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.discussion-item { display: flex; gap: 9px; padding: 13px 0 11px; border-bottom: 1px solid var(--line); }
.discussion-avatar { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 50%; overflow: hidden; background: #2c2338; }
.discussion-avatar img { width: 100%; height: 100%; }
.discussion-avatar svg { --icon: 16px; }
.discussion-item h3 { color: #eee4f4; font-size: 13px; font-weight: 720; }
.discussion-item p { margin: 4px 0; color: #e1d8e8; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.discussion-item time { color: var(--muted); font-size: 11px; }
.discussion-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 7px; align-items: center; margin-top: 12px; }
.discussion-form label { grid-column: 1/-1; color: var(--muted); font-size: 11px; }
.discussion-form textarea { display: block; height: auto; min-height: 46px; padding: 7px 9px; resize: vertical; color: var(--text); font: inherit; font-size: 13px; }
.player-side-actions a { display: grid; min-width: 32px; justify-items: center; gap: 3px; color: #eee5f3; font-size: 11px; font-weight: 690; line-height: 1.2; white-space: nowrap; }
.player-side-actions a svg { --icon: 24px; }
.portrait-player:fullscreen { width: 100%; height: 100%; }
.portrait-video { cursor: pointer; }

.profile-overview .profile-shortcuts > * {
  border: 1px solid #ffffff16;
  background: #17161e57;
  color: #ddd5e7;
}

.profile-community-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.profile-entry {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 7px;
  min-height: 61px;
  padding: 8px;
  border: 1px solid #ffffff0e;
  border-radius: 10px;
  background: linear-gradient(120deg, #1f3439, #222a35 80%);
}

.profile-entry-creators { background: linear-gradient(120deg, #233732, #262e32 80%); }
.profile-entry-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #91ffec33;
  border-radius: 8px;
  color: #b4fff0;
  background: linear-gradient(137deg, #398d88, #254c54 90%);
  box-shadow: 0 4px 10px #111b2780;
}

.profile-entry-creators .profile-entry-icon {
  border-color: #a8ffc32c;
  color: #cbffdf;
  background: linear-gradient(137deg, #3e9367, #24574b 90%);
}

.profile-entry-icon svg { --icon: 17px; }
.profile-entry strong,.profile-entry small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-entry strong { color: #f2f5f5; font-size: 13px; font-weight: 730; line-height: 1.28; }
.profile-entry small { margin-top: 4px; color: #bacccc; font-size: 11px; line-height: 1.31; }
.profile-entry-arrow { color: #91aaa8; --icon: 11px; }
.profile-overview .profile-tabs { color: #aca9b8; }

.community-page {
  padding-inline: 15px;
  min-height: 100dvh;
  background:
    radial-gradient(88% 275px at 9% 0, #65401b63, transparent 95%),
    radial-gradient(90% 265px at 100% 0, #8b61232e, transparent 95%),
    var(--bg);
}

.community-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  min-height: calc(55px + env(safe-area-inset-top));
  margin-inline: -10px;
  padding-top: env(safe-area-inset-top);
}

.community-header h1 { text-align: center; font-size: 17px; font-weight: 800; line-height: 1.25; }
.community-content { display: grid; gap: 11px; }
.community-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 134px;
  padding: 18px;
  border: 1px solid var(--brand-gold-line);
  border-radius: 15px;
  background: linear-gradient(125deg, #554021, #33291d 65%, #262220);
  color: var(--brand-gold-soft);
}

.community-banner::after {
  position: absolute;
  z-index: -1;
  top: -29px;
  right: -21px;
  width: 169px;
  height: 151px;
  border: 1px solid #ffe4a032;
  border-radius: 64px;
  transform: rotate(-33deg);
  background: linear-gradient(90deg,#ffc82720,transparent);
  content: '';
}

.creator-banner {
  background: linear-gradient(125deg, #50402d, #302720 70%, #211e1d);
}

.community-emblem {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border: 1px solid var(--brand-gold-line);
  border-radius: 10px;
  color: var(--brand-gold-soft);
  background: #ffc82721;
}

.community-banner h2 { margin-bottom: 4px; font-size: 22px; font-weight: 820; line-height: 1.25; }
.community-banner p { max-width: 320px; color: #ebddc6; font-size: 13px; line-height: 1.57; overflow-wrap: anywhere; }
.community-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #242330;
  text-align: center;
}

.community-stats div + div { border-left: 1px solid var(--line); }
.community-stats strong,.community-stats small { display: block; }
.community-stats strong { color: #f2fff9; font-size: 20px; font-weight: 790; line-height: 1.2; font-variant-numeric: tabular-nums; }
.community-stats small { margin-top: 4px; color: #b9c1ce; font-size: 11px; }
.community-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1f1e2a;
}

.community-card h2 { font-size: 16px; font-weight: 735; line-height: 1.28; }
.community-card p,.community-rules li { color: #d1cad9; font-size: 13px; line-height: 1.58; overflow-wrap: anywhere; }
.community-card p b { margin-left: 5px; color: #b9f9e5; letter-spacing: .06em; }
.community-invite { height: 37px; color: #ddf0e9; font-size: 12px; }
.community-actions { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 6px; }
.community-actions svg { --icon: 15px; }
.community-rules ul { display: grid; gap: 3px; margin: 0; padding-left: 17px; }
.creator-status > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.creator-state { padding: 4px 7px; border-radius: 6px; background: #473d2b; color: #ffe1a9; font-size: 11px; white-space: nowrap; }
.creator-state.approved { background: #263e35; color: #a4f3c8; }
.creator-state.rejected { background: #442d3c; color: #ffd1e9; }
.creator-form { gap: 6px; }
.creator-form h2 { margin-bottom: 4px; }
.creator-form label { margin-top: 4px; color: #e0dce6; font-size: 12px; }
.creator-form label small { margin-left: 3px; color: var(--muted); font-size: 10px; }
.creator-form textarea { height: auto; min-height: 86px; padding: 9px 12px; color: var(--text); resize: vertical; font: inherit; font-size: 13px; }
.creator-form .field { font-size: 13px; }
.creator-form .creator-error { min-height: 15px; color: #ffadaf; }

@media (pointer: coarse) {
  .search-form .field,
  #auth-form .field,
  .creator-form .field,
  .discussion-form textarea {
    font-size: 16px;
  }
}
