/* ============================================================================
   MTing — Official Brand Profile App & System Nameplate
   Palette: Ink #141414 · Acid Yellow #DFFF00 · Paper #F0EDE5 · Pure White #FFFFFF
   ============================================================================ */

.mst-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #F0EDE5;
  color: #141414;
  overflow: hidden;
  position: relative;
}
html[data-appearance="dark"] .mst-app {
  background: #141414;
  color: #F5F4F0;
}

/* ---------- 1A. macOS 27 Tahoe Native Window Header ---------- */
.mst-mac-bar {
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(240, 237, 229, 0.86);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 0.5px solid rgba(20, 20, 20, 0.10);
  flex-shrink: 0;
  user-select: none;
}
html[data-appearance="dark"] .mst-mac-bar {
  background: rgba(24, 24, 26, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
.mst-win-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mst-seg-nav {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(20, 20, 20, 0.06);
}
html[data-appearance="dark"] .mst-seg-nav {
  background: rgba(255, 255, 255, 0.08);
}
.mst-seg-btn {
  height: 24px;
  padding: 0 10px;
  border-radius: 6.5px;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.72;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.mst-seg-btn:hover {
  opacity: 1;
  background: rgba(128, 128, 128, 0.14);
}
.mst-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mst-icon-pill {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  border: 0.5px solid rgba(20, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
html[data-appearance="dark"] .mst-icon-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.mst-icon-pill:hover {
  filter: brightness(0.96);
}

/* ---------- 1B. Windows 11 Native Fluent Titlebar ---------- */
.mst-win-bar {
  height: 42px;
  padding: 0 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EAE6DC;
  border-bottom: 1px solid rgba(20, 20, 20, 0.09);
  flex-shrink: 0;
  user-select: none;
}
html[data-appearance="dark"] .mst-win-bar {
  background: #1B1B1E;
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.mst-win-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
}
.mst-win-brand img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

/* ---------- 1C. iOS 26 & Android 16 Native Mobile Top Bars ---------- */
.mst-ios-top {
  position: absolute;
  top: 46px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 25;
  pointer-events: none;
}
.mst-ios-orb {
  pointer-events: auto;
  height: 36px;
  min-width: 36px;
  padding: 0 11px;
  border-radius: 18px;
  border: 0.5px solid rgba(20, 20, 20, 0.10);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
html[data-appearance="dark"] .mst-ios-orb {
  background: rgba(34, 34, 38, 0.84);
  border-color: rgba(255, 255, 255, 0.14);
}

.mst-and-top {
  padding: 46px 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F0EDE5;
  border-bottom: 0.5px solid rgba(20, 20, 20, 0.08);
  flex-shrink: 0;
}
html[data-appearance="dark"] .mst-and-top {
  background: #141414;
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.mst-and-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ---------- 2. Editorial Canvas (`#F0EDE5` Paper / `#141414` Ink) ---------- */
.mst-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 26px 28px 42px;
}
.mst-scroll.ios {
  padding: 92px 16px calc(var(--sys-bottom, 20px) + 28px);
}
.mst-scroll.android {
  padding: 18px 16px calc(var(--sys-bottom, 20px) + 28px);
}

.mst-wrap {
  max-width: 856px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Card with Official MTing Master Lockup */
.mst-hero {
  border-radius: 22px;
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.04);
}
html[data-appearance="dark"] .mst-hero {
  background: #1C1C1F;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.40);
}
.mst-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
/* Theme-aware Official Horizontal Bilingual Lockup (`MTing` + `From Dreaming to Doing.`) */
.mst-lockup-img {
  height: 54px;
  width: auto;
  max-width: 100%;
  display: block;
}
.mst-scroll.ios .mst-lockup-img,
.mst-scroll.android .mst-lockup-img {
  height: 44px;
}
.mst-only-dark {
  display: none !important;
}
html[data-appearance="dark"] .mst-only-light {
  display: none !important;
}
html[data-appearance="dark"] .mst-only-dark {
  display: block !important;
}

.mst-origin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #DFFF00;
  color: #141414;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
}
.mst-origin-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #141414;
}

.mst-hero-copy p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(20, 20, 20, 0.86);
}
html[data-appearance="dark"] .mst-hero-copy p {
  color: rgba(245, 244, 240, 0.86);
}
.mst-hero-copy p:last-child {
  margin-bottom: 0;
}

.mst-stats-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(128, 128, 128, 0.16);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mst-scroll.ios .mst-stats-strip,
.mst-scroll.android .mst-stats-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mst-stat {
  padding: 11px 13px;
  border-radius: 13px;
  background: #F6F4EE;
}
html[data-appearance="dark"] .mst-stat {
  background: rgba(255, 255, 255, 0.05);
}
.mst-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.mst-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  opacity: 0.66;
}

/* Section Headings */
.mst-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.mst-sec-head h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 780;
  letter-spacing: -0.015em;
}
.mst-sec-head span {
  font-size: 12px;
  opacity: 0.56;
}

/* Five Studio Production Lines */
.mst-lines-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mst-scroll.ios .mst-lines-grid,
.mst-scroll.android .mst-lines-grid {
  grid-template-columns: minmax(0, 1fr);
}
.mst-line-card {
  border-radius: 18px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(20, 20, 20, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
html[data-appearance="dark"] .mst-line-card {
  background: #1C1C1F;
  border-color: rgba(255, 255, 255, 0.09);
}
.mst-line-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  border-color: rgba(20, 20, 20, 0.28);
}
html[data-appearance="dark"] .mst-line-card:hover {
  border-color: #DFFF00;
}
.mst-line-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.mst-scroll.ios .mst-line-card.wide,
.mst-scroll.android .mst-line-card.wide {
  flex-direction: column;
  align-items: stretch;
}
.mst-line-duo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mst-line-duo img {
  width: 68px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.mst-line-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mst-line-thumb {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F6F4EE;
}
html[data-appearance="dark"] .mst-line-thumb {
  background: rgba(255, 255, 255, 0.07);
}
.mst-line-thumb.contain {
  object-fit: contain;
  padding: 4px;
}
.mst-line-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #F0EDE5;
  color: #141414;
  margin-bottom: 5px;
}
html[data-appearance="dark"] .mst-line-tag {
  background: rgba(223, 255, 0, 0.16);
  color: #DFFF00;
}
.mst-line-body h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 760;
}
.mst-line-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.58;
  opacity: 0.76;
}
.mst-line-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 0.5px solid rgba(128, 128, 128, 0.16);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 3. "关于 TA 们" — MTing Characters & Courtyard Ensemble ---------- */
.mst-cast-card {
  border-radius: 22px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(20, 20, 20, 0.08);
}
html[data-appearance="dark"] .mst-cast-card {
  background: #1C1C1F;
  border-color: rgba(255, 255, 255, 0.10);
}
.mst-ensemble-frame {
  position: relative;
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  background: #141414;
}
.mst-ensemble-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}
.mst-scroll.ios .mst-ensemble-frame img,
.mst-scroll.android .mst-ensemble-frame img {
  height: 240px;
}
.mst-ensemble-cap {
  padding: 9px 18px;
  font-size: 12px;
  opacity: 0.62;
  text-align: center;
  border-bottom: 0.5px solid rgba(128, 128, 128, 0.14);
}
.mst-cast-grid {
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mst-scroll.ios .mst-cast-grid,
.mst-scroll.android .mst-cast-grid {
  grid-template-columns: minmax(0, 1fr);
}
.mst-char-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.mst-char-item img {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
}
.mst-char-item b {
  display: block;
  font-size: 14px;
  font-weight: 750;
}
.mst-char-item small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 4px;
}
.mst-char-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.56;
  opacity: 0.78;
}
.mst-cast-actions {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mst-btn {
  height: 33px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
html[data-appearance="dark"] .mst-btn {
  border-color: rgba(255, 255, 255, 0.20);
}
.mst-btn.acid {
  background: #DFFF00;
  border-color: #DFFF00;
  color: #141414;
}
.mst-btn:hover {
  filter: brightness(0.95);
}

/* ---------- 4. Official Horizontal Sign-off & Channels Footer ---------- */
.mst-signoff {
  padding-top: 18px;
  border-top: 1px solid rgba(128, 128, 128, 0.20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mst-signoff-logo {
  height: 40px;
  width: auto;
}
.mst-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mst-social-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 0.5px solid rgba(20, 20, 20, 0.12);
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
html[data-appearance="dark"] .mst-social-pill {
  background: #1C1C1F;
  border-color: rgba(255, 255, 255, 0.14);
}

/* ---------- 5. Official System `About` Nameplate (`设置 › 关于 MTing`) ---------- */
.abt-plate-hero {
  border-radius: 16px;
  padding: 16px 18px;
  background: #141414;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
html[data-appearance="dark"] .abt-plate-hero {
  background: #1E1E22;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.abt-plate-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.abt-plate-title {
  flex: 1;
  min-width: 0;
}
.abt-plate-title h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
.abt-plate-title p {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}
.abt-open-btn {
  height: 31px;
  padding: 0 13px;
  border-radius: 999px;
  border: none;
  background: #DFFF00;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.abt-open-btn:hover {
  filter: brightness(0.95);
}
.abt-bio-box {
  font-size: 12.5px;
  line-height: 1.66;
  opacity: 0.86;
  padding: 2px 0 4px;
}
.abt-click-row {
  cursor: pointer;
}
.abt-click-row:hover {
  background: rgba(128, 128, 136, 0.08);
}
