body.app-mode {
  --bg: #101112;
  --panel: #202023;
  --panel-light: #29292d;
  --border: #333237;
  --text: #efedf0;
  --muted: #99959e;
  --accent: #f62594;
  --accent-dark: #ffffff;
  background:
    radial-gradient(ellipse 85% 320px at 100% 0, #35202c88, transparent),
    var(--bg);
  min-height: 100dvh;
}
.app-mode .app-workspace {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 100dvh;
}
.app-mode .app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px)) 12px
    max(16px, env(safe-area-inset-left, 0px));
  background: #171318f2;
  backdrop-filter: blur(16px);
}
.app-mode .app-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 22px;
  background: #ffffff0d;
  border: 1px solid #ffffff06;
}
.app-mode .app-search:focus-within {
  border-color: var(--accent);
}
.app-mode .app-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0 6px;
  outline: none;
  background: none;
  font-size: 14px;
}
.app-mode .app-search button {
  display: grid;
  place-items: center;
  height: 34px;
  width: 26px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
}
.app-mode .app-search .icon {
  width: 19px;
  height: 19px;
}
.app-mode .app-rank-link {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 38px;
  color: var(--muted);
}
.app-mode .app-rank-link.active {
  color: var(--accent);
}
.app-mode .app-rank-link .icon {
  width: 23px;
  height: 23px;
}
.app-mode .app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 760px;
  padding: 8px max(8px, env(safe-area-inset-right, 0px))
    calc(9px + env(safe-area-inset-bottom, 0px))
    max(8px, env(safe-area-inset-left, 0px));
  border-top: 1px solid #ffffff05;
  background: #202023f7;
  backdrop-filter: blur(16px);
}
.app-mode .app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 49px;
  color: #969399;
  font-size: 14px;
  line-height: 1.4;
}
.app-mode .app-tab .icon {
  width: 24px;
  height: 24px;
}
.app-mode .app-tab[href="/explore"] .icon rect {
  fill: currentColor;
  stroke: none;
}
.app-mode .app-tab[href="/urge"] .icon path:first-child {
  fill: currentColor;
}
.app-mode .app-tab.active {
  color: var(--accent);
}
.app-mode .app-tab:focus-visible,
.app-mode .app-rank-link:focus-visible,
.app-mode .app-mine-shortcuts a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 5px;
}
.app-mode #main {
  min-height: 80dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.app-mode .page-content,
.app-mode .home-content {
  padding: 16px;
  max-width: 100%;
}
.app-mode .page-heading {
  margin-bottom: 20px;
}
.app-mode .page-heading h1 {
  font-size: 24px;
}
.app-mode .page-heading p {
  font-size: 14px;
}
.app-mode .video-grid,
.app-mode .community-urge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 8px;
}
.app-mode .hero {
  min-height: 230px;
  height: 56vw;
  max-height: 360px;
  border-radius: 12px;
}
.app-mode .hero-copy {
  padding: 24px;
}
.app-mode .hero-copy h1 {
  font-size: 28px;
}
.app-mode .hero-copy p,
.app-mode .hero-bottom > span,
.app-mode .hero-meta {
  display: none;
}
.app-mode .hero-actions .button {
  padding: 10px 12px;
  font-size: 13px;
}
.app-mode .hero-bottom {
  padding: 14px 24px;
}
.app-mode .shelf {
  margin-bottom: 28px;
}
.app-mode .section-heading h2 {
  font-size: 19px;
}
.app-mode .section-heading span {
  font-size: 12px;
}
.app-mode .app-mine-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}
.app-mode .app-mine-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  background: var(--panel);
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}
.app-mode .app-mine-shortcuts .icon {
  color: var(--accent);
}
.app-mode #toast {
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}
.app-mode .player-shell:fullscreen .app-bottom-nav {
  display: none;
}
@media (min-width: 761px) {
  .app-mode .app-workspace {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
@media (max-width: 360px) {
  .app-mode .app-topbar {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app-mode .app-mine-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
