body.app-mode.app-feed-mode {
  overflow: hidden;
}
.app-mode.app-feed-mode #main {
  min-height: 0;
  padding: 0;
}
.app-mode.app-feed-mode .app-workspace {
  min-height: 100dvh;
}
.app-mode .app-feed-topbar {
  justify-content: center;
  height: calc(60px + env(safe-area-inset-top, 0px));
  position: relative;
  background: #141416;
}
.app-mode .app-feed-top-tabs {
  display: flex;
  gap: 26px;
  align-items: center;
}
.app-mode .app-feed-top-tabs a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  position: relative;
}
.app-mode .app-feed-top-tabs a.active {
  color: var(--text);
}
.app-mode .app-feed-top-tabs a.active::after {
  content: "";
  width: 13px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.app-mode .app-feed-search-link {
  position: absolute;
  right: max(18px, env(safe-area-inset-right, 0px));
  color: var(--accent);
  padding: 6px;
}
.app-mode .app-feed {
  height: calc(
    100dvh - 128px - env(safe-area-inset-top, 0px) -
      env(safe-area-inset-bottom, 0px)
  );
  min-height: 250px;
  display: flex;
  flex-direction: column;
  background: #101112;
  position: relative;
}
.app-mode .app-feed-stage.video-stage {
  flex: 1;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  background: #27282d;
  overflow: hidden;
  position: relative;
}
.app-mode .app-feed-stage #video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #17181b;
}
.app-mode .app-feed-tap {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: #ffffffb0;
  display: grid;
  place-items: center;
  touch-action: pan-x;
  z-index: 2;
}
.app-mode .app-feed-play-symbol .icon {
  width: 56px;
  height: 56px;
  fill: #ffffff55;
}
.app-mode .app-feed-playing .app-feed-play-symbol,
.app-mode .app-feed-blocked .app-feed-play-symbol {
  visibility: hidden;
}
.app-mode .app-feed-shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, #101112a0 72%, #101112fa 100%);
  z-index: 3;
}
.app-mode .app-feed-actions {
  position: absolute;
  right: max(10px, env(safe-area-inset-right, 0px));
  top: 24%;
  bottom: 115px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 12px;
  z-index: 5;
}
.app-mode .app-feed-action {
  background: transparent;
  color: white;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  font-size: 13px;
  min-width: 38px;
}
.app-mode .app-feed-action .icon {
  width: 27px;
  height: 27px;
}
.app-mode .app-feed-action[data-action="app-feed-like"] .icon,
.app-mode .app-feed-action[data-action="app-feed-bookmark"] .icon {
  fill: currentColor;
}
.app-mode
  .app-feed-action[aria-pressed="true"]:not([data-action="app-feed-mute"]) {
  color: var(--accent);
}
.app-mode
  .app-feed-action[aria-pressed="true"]:not([data-action="app-feed-mute"])
  .icon {
  fill: var(--accent);
}
.app-mode .app-feed-info {
  position: absolute;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: 46px;
  right: 62px;
  z-index: 5;
  font-size: 13px;
}
.app-mode .app-feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.app-mode .app-feed-title a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-mode .app-feed-title button {
  font-size: 11px;
  color: #ddd;
  background: #ffffff15;
  border-radius: 5px;
  padding: 5px 7px;
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}
.app-mode .app-feed-title button .icon {
  width: 12px;
  height: 12px;
}
.app-mode .app-feed-tags {
  display: flex;
  gap: 5px;
  overflow: hidden;
  flex-wrap: nowrap;
  margin-bottom: 5px;
}
.app-mode .app-feed-tags a {
  padding: 1px 5px;
  border: 1px solid #73717766;
  border-radius: 2px;
  font-size: 11px;
  color: #b9b5bd;
  white-space: nowrap;
}
.app-mode .app-feed-episode-caption {
  color: #b9b5bd;
  margin-bottom: 4px;
}
.app-mode .app-feed-description {
  font-size: 12px;
  color: #c5c1c8;
}
.app-mode .app-feed-description summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}
.app-mode .app-feed-description summary::after {
  content: " 展开";
  color: var(--accent);
}
.app-mode .app-feed-description[open] summary {
  -webkit-line-clamp: 1;
  color: var(--accent);
}
.app-mode .app-feed-description[open] summary::after {
  content: " 收起";
}
.app-mode .app-feed-description p {
  max-height: 25dvh;
  overflow: auto;
  background: #17171bea;
  padding: 10px;
  border-radius: 6px;
  margin: 4px 0 0;
}
.app-mode .app-feed-timeline {
  position: absolute;
  bottom: 8px;
  left: max(14px, env(safe-area-inset-left, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 28px;
}
.app-mode .app-feed-time {
  font-size: 11px;
  color: #aaa6af;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.app-mode .app-feed-timeline input {
  min-width: 0;
  flex: 1;
  padding: 0;
  height: 18px;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}
.app-mode .app-feed-timeline input {
  appearance: none;
  -webkit-appearance: none;
}
.app-mode .app-feed-timeline input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: #ffffff55;
}
.app-mode .app-feed-timeline input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-radius: 50%;
  background: #aaa6af;
}
.app-mode .app-feed-timeline input::-moz-range-track {
  height: 2px;
  background: #ffffff55;
}
.app-mode .app-feed-timeline input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #aaa6af;
}
.app-mode .app-feed-timeline button {
  background: transparent;
  padding: 4px;
  color: #e7e4e9;
}
.app-mode .app-feed-timeline .icon {
  width: 19px;
  height: 19px;
}
.app-mode .app-feed-episodes {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 0;
  background: #0b0b0d;
  color: var(--text);
  padding: 9px max(14px, env(safe-area-inset-right, 0px)) 9px
    max(14px, env(safe-area-inset-left, 0px));
  font-size: 13px;
  text-align: left;
}
.app-mode .app-feed-episodes .muted {
  margin-left: auto;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-mode .app-feed-episodes .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.app-mode .app-feed .player-enhancements {
  display: none;
}
.app-mode .app-feed .player-error {
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  inset: 28% 18% auto;
  min-height: 160px;
  padding: 25px 20px;
  border: 1px solid #ffffff24;
  border-radius: 18px;
  background: #202023f2;
  text-align: center;
}
.app-mode .app-feed .player-error[hidden] {
  display: none;
}
.app-mode .app-feed .player-error p {
  font-size: 14px;
}
.app-mode .app-feed .player-error button {
  background: var(--accent);
  color: white;
  border-radius: 24px;
}
.app-mode .app-feed .play-gate,
.app-mode .app-feed .media-ad {
  z-index: 10;
  overflow-y: auto;
}
.app-mode .app-feed .danmaku-stage {
  z-index: 4;
  pointer-events: none;
}
.app-mode .app-feed-sheet {
  width: min(760px, 100vw);
  max-width: 100vw;
  max-height: 78dvh;
  margin: auto auto 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  background: #202023;
  color: var(--text);
}
.app-mode .app-feed-sheet::backdrop {
  background: #0008;
}
.app-mode .app-feed-sheet > header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #202023;
  z-index: 2;
  border-bottom: 1px solid var(--border);
}
.app-mode .app-feed-sheet h2 {
  font-size: 17px;
  margin: 0;
}
.app-mode .app-feed-sheet > header button {
  background: transparent;
  padding: 4px 8px;
  font-size: 25px;
  color: #ddd;
}
.app-mode .app-feed-sheet-content {
  padding: 16px;
}
.app-mode .app-feed-sheet .community-video {
  padding: 0;
  margin: 0;
  border: 0;
}
.app-mode .app-feed-sheet .episode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.app-mode .app-feed-speeds {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-height: 600px) {
  .app-mode.app-feed-mode {
    overflow-y: auto;
  }
  .app-mode .app-feed {
    min-height: 460px;
  }
  .app-mode .app-feed-actions {
    top: 12px;
    bottom: 120px;
    gap: 5px;
  }
  .app-mode .app-feed-action .icon {
    width: 23px;
    height: 23px;
  }
  .app-mode.app-feed-mode #main {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}
