/* Vie 固定页面接入：抖音只保留应用自身的黑色内容层，全局状态栏由 core 唯一提供。 */
#douyin-app { background: #000; color: #fff; transition: transform 0.4s cubic-bezier(0.32,0.72,0,1), visibility 0s linear 0.4s; }
#douyin-app.is-open { transition-delay: 0s; }
.vie-viewport.douyin-active { background: #000; }
.vie-viewport.douyin-active::before { background-color: #000; background-image: none; }
.vie-viewport.douyin-active .star-field { opacity: 0; visibility: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================= 抖音 APP 专有样式 ================= */
/* 状态栏在抖音打开时强制变白 */
.dy-tab-layer {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  animation: fadeIn 0.3s ease;
}
.dy-tab-layer.active {
  display: block;
}
.dy-scroll-content {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: calc(var(--vie-safe-bottom) + 54px);
}
.dy-scroll-content::-webkit-scrollbar {
  display: none;
}
.dy-pt-header {
  padding-top: 54px;
}

.dy-home-feed {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #000;
}
.dy-home-feed::-webkit-scrollbar { display: none; }
.dy-feed-post {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
}
.dy-feed-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 80px 34px 120px;
  color: rgba(255,255,255,.9);
  background: #000;
  text-align: center;
}
.dy-feed-state > i { font-size: 28px; color: rgba(255,255,255,.76); }
.dy-feed-state strong { font-size:calc(17px * var(--vie-font-scale)); line-height: 1.35; }
.dy-feed-state p { max-width: 280px; margin: 0; color: rgba(255,255,255,.48); font-size:calc(13px * var(--vie-font-scale)); line-height: 1.65; }

.dy-feed-loading-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(var(--vie-safe-bottom) + 76px);
  z-index: 30;
  display: none;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 40px);
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.58);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
  transform: translateX(-50%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  pointer-events: none;
}
.dy-feed-loading-indicator.active { display: flex; }
.dy-feed-loading-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dyFeedLoading .75s linear infinite;
}
.dy-feed-loading-indicator span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size:calc(12px * var(--vie-font-scale)); }
@keyframes dyFeedLoading { to { transform: rotate(360deg); } }
.dy-static-placeholder,
.dy-list-placeholder,
.dy-profile-empty,
.dy-overlay-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  padding: 80px 32px 110px;
  color: rgba(255,255,255,.82);
  text-align: center;
}
.dy-static-placeholder-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--vie-placeholder-glyph);
  background: var(--vie-placeholder-bg);
  font-size: 20px;
}
.dy-list-placeholder-avatar,
.dy-avatar-placeholder {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--logo-color);
  background: transparent;
}
.dy-list-placeholder { min-height: 320px; }
.dy-list-placeholder-avatar { width: 48px; height: 48px; font-size:calc(17px * var(--vie-font-scale)); }
.dy-static-placeholder strong,
.dy-list-placeholder strong,
.dy-overlay-placeholder strong { font-size:calc(15px * var(--vie-font-scale)); }
.dy-static-placeholder p,
.dy-list-placeholder p,
.dy-overlay-placeholder p { margin: 0; color: rgba(255,255,255,.42); font-size:calc(12px * var(--vie-font-scale)); line-height: 1.6; }
.dy-profile-cover-placeholder {
  overflow: hidden;
  color: var(--logo-color);
  background-color: var(--vie-placeholder-bg);
  background-image: radial-gradient(circle, var(--vie-placeholder-dot) 0 6.5px, transparent 7px);
  background-size: 56px 56px;
  background-position: 18px 18px;
}
.dy-profile-cover-placeholder::after { content: none; }
.dy-profile-cover-placeholder > .dy-image-placeholder-icon { position:absolute; inset:0; z-index:0; display:flex; align-items:center; justify-content:center; color:var(--logo-color); font-size:20px; font-style:normal; line-height:1; }
.dy-profile-cover-placeholder > .dy-profile-nav { z-index:2; }
.dy-avatar-placeholder { width: 80px; height: 80px; }
.dy-list-placeholder-avatar > .dy-avatar-placeholder-svg,
.dy-avatar-placeholder > .dy-avatar-placeholder-svg,
.dy-generated-avatar > .dy-avatar-placeholder-svg,
.dy-comment-avatar-text > .dy-avatar-placeholder-svg,
.dy-settings-choice-avatar > .dy-avatar-placeholder-svg,
.dy-user-card-avatar > .dy-avatar-placeholder-svg {
  width:100%;
  height:100%;
  display:block;
}
.dy-profile-empty { min-height: 220px; padding: 40px 20px; color: rgba(255,255,255,.4); }
.dy-profile-empty i { font-size: 25px; }
.dy-overlay-placeholder { min-height: 100%; color: rgba(255,255,255,.72); }

.dy-generated-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: #000;
}
.dy-generated-media[data-dy-media-type="video"] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 62px 190px 28px;
}
.dy-generated-media[data-dy-media-type="images"] {
  touch-action: pan-y;
  outline: none;
  cursor: grab;
}
.dy-generated-media[data-dy-media-type="images"]:active { cursor: grabbing; }
.dy-image-carousel,
.dy-image-track,
.dy-image-slide {
  width: 100%;
  height: 100%;
}
.dy-image-carousel { overflow: hidden; }
.dy-image-track {
  display: flex;
  transform: translate3d(0,0,0);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.dy-image-slide {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 62px 190px 28px;
  color: #fff;
  background: #000;
}
.dy-image-scene {
  width: min(100%, 310px);
  display: grid;
  gap: 14px;
  text-align: center;
}
.dy-image-visual {
  margin: 0;
  color: rgba(255,255,255,.96);
  font-size: clamp(calc(18px * var(--vie-font-scale)), calc(5vw * var(--vie-font-scale)), calc(23px * var(--vie-font-scale)));
  line-height: 1.74;
  font-weight: 580;
  letter-spacing: .018em;
  text-wrap: balance;
}
.dy-image-subtitle {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size:calc(14px * var(--vie-font-scale));
  line-height: 1.65;
}
.dy-image-subtitle.is-empty { display: none; }
.dy-image-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--vie-safe-bottom) + 54px);
  z-index: 12;
  display: flex;
  gap: 2px;
  padding: 0 2px;
  pointer-events: none;
}
.dy-image-progress span {
  height: 2px;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255,255,255,.28);
  box-shadow: 0 -1px 3px rgba(0,0,0,.22);
  transition: background .18s ease;
}
.dy-image-progress span.active {
  background: rgba(255,255,255,.98);
}
.dy-scene-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 310px);
  display: grid;
  gap: 14px;
  text-align: center;
}
.dy-scene-visual {
  margin: 0;
  color: rgba(255,255,255,.96);
  font-size: clamp(calc(19px * var(--vie-font-scale)), calc(5.4vw * var(--vie-font-scale)), calc(25px * var(--vie-font-scale)));
  line-height: 1.72;
  font-weight: 620;
  letter-spacing: .025em;
  text-wrap: balance;
}
.dy-scene-subtitle {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size:calc(14px * var(--vie-font-scale));
  line-height: 1.65;
}
.dy-scene-subtitle.is-empty { display: none; }
.dy-feed-post .dy-action-item {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}
.dy-action-item.saved i { color: #ffd84d; }
.dy-generated-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  overflow: hidden;
  color: var(--logo-color);
  background: transparent;
}
.dy-published-at {
  margin-left: 5px;
  color: rgba(255,255,255,.48);
  font-size:calc(12px * var(--vie-font-scale));
  white-space: nowrap;
}

/* 沉浸式视频层 (首页 & 朋友) */
.dy-media-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.dy-media-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dy-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 15%, transparent 60%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}
.dy-top-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  font-size:calc(17px * var(--vie-font-scale));
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.dy-top-nav i,
.dy-top-nav .dy-line-nav-icon {
  font-size: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 4px;
}
.dy-top-nav .dy-line-nav-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #fff;
}
.dy-tabs {
  display: flex;
  gap: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.dy-tabs span,
.dy-tabs button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.dy-tabs span.active,
.dy-tabs button.active {
  color: #fff;
  font-weight: 600;
  position: relative;
}
.dy-tabs span.active::after,
.dy-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
}
.dy-right-actions {
  position: absolute;
  right: 12px;
  bottom: calc(var(--vie-safe-bottom) + 72px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.dy-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.dy-action-item i {
  font-size: 32px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.2s, color 0.2s;
}
.dy-action-item span {
  font-size:calc(12px * var(--vie-font-scale));
  font-weight: 500;
}
/* 点赞特效 */
.dy-action-item.liked i {
  color: #FE2C55;
  animation: dyHeartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes dyHeartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.dy-avatar-wrap {
  position: relative;
  margin-bottom: 12px;
}
.dy-avatar-wrap .dy-add-follow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: #FE2C55;
  font-size:calc(20px * var(--vie-font-scale));
  background: #fff;
  border-radius: 50%;
  line-height: 1;
}
.dy-record {
  margin-top: 10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dySpin 4s linear infinite;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.1);
}
.dy-record i {
  font-size: 18px;
  color: #fff;
}
@keyframes dySpin {
  100% { transform: rotate(360deg); }
}
.dy-bottom-info {
  position: absolute;
  left: 16px;
  right: 80px;
  bottom: calc(var(--vie-safe-bottom) + 64px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.dy-username {
  font-size:calc(17px * var(--vie-font-scale));
  font-weight: 600;
}
.dy-caption {
  font-size:calc(15px * var(--vie-font-scale));
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dy-music {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size:calc(14px * var(--vie-font-scale));
  margin-top: 2px;
}
.dy-music i {
  font-size: 13px;
}
.dy-music-scroll {
  width: 140px;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.dy-music-scroll span {
  display: inline-block;
  animation: dyMarquee 6s linear infinite;
}
@keyframes dyMarquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 消息 & 我 实体背景头部 */
.dy-header-solid {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 8px 16px 12px;
  background: #161823;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.dy-friend-add { font-size:calc(18px * var(--vie-font-scale)); }
.dy-header-solid .dy-title {
  font-size:calc(17px * var(--vie-font-scale));
  font-weight: 600;
}
.dy-header-solid i {
  font-size: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
}

/* 消息页内容 */
.dy-msg-shortcuts {
  display: flex;
  justify-content: space-around;
  padding: 20px 10px;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.dy-msg-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dy-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.dy-icon-circle.blue { background: #24F6F0; color: #fff; }
.dy-icon-circle.pink { background: #FE2C55; color: #fff; }
.dy-icon-circle.yellow { background: #FFB300; color: #fff; }
.dy-msg-icon-item span {
  font-size: calc(13px * var(--vie-font-scale));
  color: rgba(255,255,255,0.9);
}

/* 个人主页内容 */
.dy-profile-cover {
  width: 100%;
  height: 180px;
  position: relative;
}
.dy-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dy-profile-nav {
  position: absolute;
  top: calc(var(--status-bar-space) + 8px);
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
}
.dy-profile-nav-spacer { width: 20px; }
.dy-profile-nav-right {
  display: flex;
  gap: 16px;
}
.dy-profile-nav i {
  font-size: 20px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  cursor: pointer;
}
.dy-profile-main {
  padding: 0 16px;
  margin-top: -24px;
  position: relative;
  z-index: 10;
}
.dy-profile-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.dy-profile-avatar-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid #161823;
  object-fit: cover;
  background: #333;
}
.dy-profile-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.dy-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 4px;
  padding: 8px 16px;
  font-size:calc(14px * var(--vie-font-scale));
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dy-btn-icon {
  padding: 8px 12px;
}
.dy-profile-name {
  font-size:calc(22px * var(--vie-font-scale));
  font-weight: 700;
  margin-bottom: 4px;
}
.dy-profile-id {
  font-size:calc(12px * var(--vie-font-scale));
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.dy-profile-desc {
  font-size:calc(14px * var(--vie-font-scale));
  line-height: 1.5;
  margin-bottom: 12px;
}
.dy-profile-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.dy-stat {
  font-size:calc(13px * var(--vie-font-scale));
  color: rgba(255,255,255,0.6);
}
.dy-stat-num {
  font-size:calc(16px * var(--vie-font-scale));
  font-weight: 600;
  color: #fff;
  margin-right: 4px;
}
.dy-profile-tabs-wrap {
  display: flex;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  margin-bottom: 2px;
}
.dy-p-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size:calc(15px * var(--vie-font-scale));
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  position: relative;
  cursor: pointer;
}
.dy-p-tab.active {
  color: #fff;
  font-weight: 600;
}
.dy-p-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #FFDF00;
}

/* 底部导航栏 */
.dy-bottom-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--vie-safe-bottom) + 54px);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 14px;
  z-index: 50;
  transition: background 0.3s;
}
.dy-bottom-tabbar.solid {
  background: #161823;
  border-top: 0.5px solid rgba(255,255,255,0.05);
}
.dy-tab-item {
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  color: rgba(255,255,255,0.6);
  font: inherit;
  font-size:calc(15px * var(--vie-font-scale));
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 4px 8px;
}
.dy-tab-item.active {
  color: #fff;
  font-weight: 600;
}
.dy-create-btn {
  padding: 0;
  margin-top: -2px;
}
.dy-create-inner {
  width: 44px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dy-create-inner::before {
  content: '';
  position: absolute;
  top: 0; left: -3px; bottom: 0; width: 10px;
  background: #24F6F0;
  border-radius: 8px 0 0 8px;
  z-index: -1;
}
.dy-create-inner::after {
  content: '';
  position: absolute;
  top: 0; right: -3px; bottom: 0; width: 10px;
  background: #FE2C55;
  border-radius: 0 8px 8px 0;
  z-index: -1;
}
.dy-create-inner i {
  color: #000;
  font-size: 16px;
}

/* 评论区面板 */
.dy-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.dy-mask.active {
  display: block;
  opacity: 1;
}
.dy-comments-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: #161823;
  border-radius: 16px 16px 0 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
}
.dy-comments-sheet.active {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.dy-sheet-header {
  padding: 16px;
  text-align: center;
  font-size:calc(15px * var(--vie-font-scale));
  font-weight: 600;
  position: relative;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.dy-sheet-header i {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dy-sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
}
.dy-sheet-content::-webkit-scrollbar { display: none; }
.dy-comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.dy-comment-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
}
.dy-comment-avatar-text {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--logo-color);
  background: transparent;
}
.dy-comment-main { flex: 1; }
.dy-comment-name {
  font-size:calc(13px * var(--vie-font-scale));
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.dy-comment-text {
  font-size:calc(14px * var(--vie-font-scale));
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  margin-bottom: 6px;
}
.dy-comment-time {
  font-size:calc(12px * var(--vie-font-scale));
  color: rgba(255,255,255,0.3);
}
.dy-comment-replies {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
}
.dy-comment-reply { display: grid; gap: 3px; }
.dy-comment-reply strong {
  color: rgba(255,255,255,.66);
  font-size:calc(12px * var(--vie-font-scale));
  font-weight: 600;
}
.dy-comment-reply span {
  color: rgba(255,255,255,.86);
  font-size:calc(13px * var(--vie-font-scale));
  line-height: 1.45;
}
.dy-comment-reply small {
  color: rgba(255,255,255,.28);
  font-size:calc(10px * var(--vie-font-scale));
}
.dy-comments-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.38);
  font-size:calc(13px * var(--vie-font-scale));
  text-align: center;
}
.dy-comment-like {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
}
.dy-comment-like i { font-size: 14px; }
.dy-comment-like.liked i { color: #FE2C55; }
.dy-comment-like span { font-size:calc(11px * var(--vie-font-scale)); }
.dy-sheet-footer {
  padding: 12px 16px calc(var(--vie-safe-bottom) + 12px);
  background: #161823;
  border-top: 0.5px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dy-sheet-footer input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  color: #fff;
  font-size: calc(14px * var(--vie-font-scale));
  outline: none;
}
.dy-sheet-footer input::placeholder { color: rgba(255,255,255,0.4); }
.dy-comment-submit {
  min-width: 52px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #FE2C55;
  font-size:calc(13px * var(--vie-font-scale));
  font-weight: 650;
  cursor: pointer;
}
.dy-comment-submit:active { transform: scale(.97); }


/* 抖音设置侧边栏：视觉与控件统一复用 Vie 全局 UI 变量 */
.dy-profile-nav-button,
.dy-settings-save-button,
.dy-settings-row,
.dy-settings-choice,
.dy-settings-button-row button,
.dy-settings-inline-actions button,
.dy-settings-secret button,
.dy-user-card-actions button,
.dy-sound-categories button,
.dy-sound-upload-row button,
.dy-sound-item button {
  border: 0;
  font: inherit;
}
.dy-profile-nav-button {
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.dy-settings-scrim {
  position: absolute;
  inset: 0;
  z-index: 220;
  background: var(--modal-backdrop-color);
  -webkit-backdrop-filter: var(--modal-backdrop-filter);
  backdrop-filter: var(--modal-backdrop-filter);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.dy-settings-scrim.dy-settings-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.dy-settings-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 230;
  width: min(92%, 420px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--vie-text-primary);
  background-color: var(--vie-page-background-color);
  background-image: var(--vie-page-wallpaper-image);
  background-position: var(--vie-page-wallpaper-position);
  background-size: var(--vie-page-wallpaper-size);
  background-repeat: var(--vie-page-wallpaper-repeat);
  box-shadow: -16px 0 38px rgba(0,0,0,.17), -2px 0 8px rgba(0,0,0,.06);
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(100%,0,0);
  transition: transform .32s cubic-bezier(.22,.82,.26,1), visibility 0s linear .32s;
}
.dy-settings-drawer.dy-settings-visible {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0,0,0);
  transition-delay: 0s;
}
.dy-settings-header.vie-app-navbar,
.dy-settings-detail-header.vie-app-navbar {
  width: 100%;
  margin: 0;
  padding: var(--app-page-top-inset) var(--app-inline-inset) 0;
  border: 0;
  background: transparent;
}
.dy-settings-title-block { min-width: 0; }
.dy-settings-header h2,
.dy-settings-detail-header h3 {
  margin: 0;
  color: var(--vie-text-primary);
  font-size: var(--vie-nav-title-size);
  line-height: var(--vie-nav-title-line-height);
  font-weight: 600;
}
.dy-settings-detail-header h3 {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-settings-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--vie-text-muted);
  font-size:calc(9px * var(--vie-font-scale));
  line-height: 12px;
  font-weight: 650;
  letter-spacing: .13em;
}
.dy-settings-nav-icon i,
.dy-settings-nav-icon svg {
  display: block;
  color: inherit;
  font-size: var(--vie-nav-action-icon-size);
  line-height: 1;
}
.dy-settings-nav-icon svg {
  width: var(--vie-nav-action-icon-size);
  height: var(--vie-nav-action-icon-size);
}
.dy-settings-owner {
  flex: 0 0 auto;
  margin: 4px var(--app-inline-inset) 8px;
  padding: 0;
}
.dy-settings-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--app-inline-inset) 28px;
  scrollbar-width: none;
}
.dy-settings-menu::-webkit-scrollbar,
.dy-settings-detail-body::-webkit-scrollbar { display: none; }
.dy-settings-menu .settings-group { margin-bottom: 0; }
.dy-settings-row-icon i {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}
.dy-settings-row .vie-global-list-detail {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-settings-detail {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--vie-text-primary);
  background-color: var(--vie-page-background-color);
  background-image: var(--vie-page-wallpaper-image);
  background-position: var(--vie-page-wallpaper-position);
  background-size: var(--vie-page-wallpaper-size);
  background-repeat: var(--vie-page-wallpaper-repeat);
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(100%,0,0);
  transition: transform .28s cubic-bezier(.22,.82,.26,1), visibility 0s linear .28s;
}
.dy-settings-detail.dy-settings-detail-visible {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0,0,0);
  transition-delay: 0s;
}
.dy-settings-save-button { color: var(--vie-nav-icon-color); }
.dy-settings-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 var(--app-inline-inset) calc(30px + var(--vie-safe-bottom));
  scrollbar-width: none;
}
.dy-settings-section-note,
.dy-settings-form > p {
  margin: 0 13px 12px;
  color: var(--vie-text-muted);
  font-size:calc(11px * var(--vie-font-scale));
  line-height: 1.6;
}
.dy-settings-form { display: grid; gap: 0; }
.dy-settings-form-card { margin-bottom: 16px; }
.dy-settings-field {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 14px 13px;
  color: var(--vie-text-secondary);
  font-size:calc(12px * var(--vie-font-scale));
  line-height: 17px;
  font-weight: 550;
}
.dy-settings-field + .dy-settings-field::before,
.dy-settings-inline-actions + .dy-settings-field::before,
.dy-settings-field + .dy-settings-inline-actions::before,
.dy-sound-upload-row::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: .5px;
  background: var(--vie-page-divider);
}
.dy-settings-field output {
  float: right;
  color: var(--vie-text-muted);
  font-weight: 500;
}
.dy-generation-count-field small {
  color: var(--vie-text-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 1.5;
  font-weight: 450;
}
.dy-generation-count-field .vie-global-range { width: 100%; }
.dy-settings-input.global-input-field {
  height: 34px;
  min-height: 34px;
  padding: 0 0 3px;
  color: var(--vie-text-primary);
  font-size:calc(13px * var(--vie-font-scale));
  line-height: 30px;
}
textarea.dy-settings-input.global-input-field {
  min-height: 86px;
  padding: 7px 0 9px;
  line-height: 1.6;
  resize: vertical;
}
select.dy-settings-input.global-input-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 16px;
  cursor: pointer;
}
.dy-settings-choice-list { display: grid; gap: 10px; }
.dy-settings-choice {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  color: var(--vie-text-primary);
  background: var(--vie-page-surface-strong);
  box-shadow: 0 7px 20px rgba(0,0,0,.045), 0 2px 5px rgba(0,0,0,.025);
  text-align: left;
  cursor: pointer;
}
.dy-settings-choice.dy-settings-choice-selected {
  border-color: var(--vie-page-divider-strong);
  box-shadow: inset 0 0 0 1px var(--logo-color), 0 7px 20px rgba(0,0,0,.045);
}
.dy-settings-choice-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--logo-color);
  background: transparent;
}
.dy-settings-choice-avatar img,
.dy-user-card-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.dy-settings-choice-copy { flex: 1; min-width: 0; }
.dy-settings-choice-copy strong,
.dy-settings-choice-copy small { display: block; }
.dy-settings-choice-copy strong { font-size:calc(14px * var(--vie-font-scale)); line-height: 19px; font-weight: 600; }
.dy-settings-choice-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--vie-text-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-settings-choice > i { color: var(--vie-text-faint); }
.dy-settings-choice.dy-settings-choice-selected > i { color: var(--logo-color); }
.dy-settings-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--vie-text-muted);
  font-size:calc(12px * var(--vie-font-scale));
  text-align: center;
}
.dy-settings-empty > i { font-size: 20px; }
.dy-settings-empty-compact { min-height: 110px; }
.dy-settings-button-row,
.dy-settings-inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}
.dy-settings-button-row-top { margin: 0 0 14px; }
.dy-settings-button-row button,
.dy-settings-inline-actions button,
.dy-sound-upload-row button,
.dy-user-card-actions button {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--vie-text-secondary);
  background: var(--vie-page-soft-surface);
  box-shadow: inset 0 0 0 .5px var(--vie-page-divider-strong);
  cursor: pointer;
}
.dy-settings-button-row button i,
.dy-settings-inline-actions button i,
.dy-sound-upload-row button i,
.dy-user-card-actions button i { margin-right: 6px; }
.dy-settings-inline-actions {
  position: relative;
  padding: 12px 14px;
}
.dy-settings-secret { display: flex; align-items: stretch; gap: 8px; }
.dy-settings-secret input { flex: 1 1 auto; min-width: 0; }
.dy-settings-secret button {
  width: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  color: var(--vie-text-secondary);
  background: var(--vie-page-soft-surface);
  cursor: pointer;
}
.dy-user-list,
.dy-sound-list { display: grid; gap: 10px; }
.dy-user-card,
.dy-sound-item {
  overflow: hidden;
  border: .5px solid var(--vie-page-divider-soft);
  border-radius: 14px;
  background: var(--vie-page-surface-strong);
  box-shadow: 0 7px 20px rgba(0,0,0,.045), 0 2px 5px rgba(0,0,0,.025);
}
.dy-user-card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
}
.dy-user-card-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--logo-color);
  background: transparent;
}
.dy-user-card-copy { min-width: 0; flex: 1; }
.dy-user-card-copy strong,
.dy-user-card-copy small,
.dy-user-card-copy em { display: block; }
.dy-user-card-copy strong { font-size:calc(14px * var(--vie-font-scale)); line-height: 19px; }
.dy-user-card-copy small { margin-top: 2px; color: var(--vie-text-muted); font-size:calc(10px * var(--vie-font-scale)); line-height: 15px; }
.dy-user-card-copy em {
  margin-top: 6px;
  overflow: hidden;
  color: var(--vie-text-secondary);
  font-size:calc(11px * var(--vie-font-scale));
  line-height: 16px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-user-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: .5px solid var(--vie-page-divider);
}
.dy-sound-categories {
  display: flex;
  gap: 7px;
  margin: 0 0 14px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dy-sound-categories::-webkit-scrollbar { display: none; }
.dy-sound-categories button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--vie-text-muted);
  background: var(--vie-page-soft-surface);
  box-shadow: inset 0 0 0 .5px var(--vie-page-divider-strong);
  font-size:calc(11px * var(--vie-font-scale));
  cursor: pointer;
}
.dy-sound-categories button.is-active {
  color: var(--vie-text-primary);
  background: var(--vie-page-surface-strong);
  box-shadow: inset 0 0 0 1px var(--logo-color), 0 3px 8px rgba(0,0,0,.055);
  font-weight: 600;
}
.dy-sound-upload-row {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.dy-sound-upload-row > span { min-width: 0; flex: 1; }
.dy-sound-upload-row strong,
.dy-sound-upload-row small { display: block; }
.dy-sound-upload-row strong { font-size:calc(13px * var(--vie-font-scale)); line-height: 18px; }
.dy-sound-upload-row small { margin-top: 3px; color: var(--vie-text-muted); font-size:calc(10px * var(--vie-font-scale)); line-height: 15px; }
.dy-sound-upload-row button { min-width: 82px; flex: 0 0 auto; }
.dy-sound-item {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
}
.dy-sound-item-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--logo-color);
}
.dy-sound-item-copy { min-width: 0; flex: 1; }
.dy-sound-item-copy strong,
.dy-sound-item-copy small { display: block; }
.dy-sound-item-copy strong { font-size:calc(13px * var(--vie-font-scale)); line-height: 18px; }
.dy-sound-item-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--vie-text-muted);
  font-size:calc(10px * var(--vie-font-scale));
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dy-sound-item > button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  color: #d85d59;
  background: var(--vie-page-soft-surface);
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .dy-settings-scrim,
  .dy-settings-drawer,
  .dy-settings-detail { transition: none; }
}

/* 搜索页全屏浮层 */
.dy-overlay-page {
  position: absolute;
  inset: 0;
  background: #161823;
  z-index: 150;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
}
.dy-overlay-page.active {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}
/* 搜索页 */
.dy-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
}
.dy-search-header > i,
.dy-search-header > .dy-line-nav-icon {
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}
.dy-search-header > .dy-line-nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.dy-search-input-box {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 8px;
}
.dy-search-input-box i {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.dy-search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: calc(14px * var(--vie-font-scale));
  outline: none;
}
.dy-search-input-box input::placeholder { color: rgba(255,255,255,0.4); }
.dy-search-btn {
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  font: inherit;
  font-size:calc(15px * var(--vie-font-scale));
  color: #FE2C55;
  font-weight: 500;
  cursor: pointer;
}

