/* Home preview mirrors HomeScreen, HomeVlogTile and FloatingBottomNav.
   Only Following/Explore and the scrollable feed are interactive here. */
.hero-art.home-preview-art {
  min-width: 380px;
  width: auto;
  height: auto;
  flex: 1;
  align-items: center;
  padding: 12px 0;
}

.home-preview-wrap {
  width: min(360px, 100%);
  min-width: 0;
  position: relative;
}

.home-preview-wrap > .demo-label {
  margin: 0 8px 14px;
  font: 500 11px/1.4 var(--body);
  letter-spacing: .4px;
}

.home-phone {
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 34px;
  background: #100f15;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .4);
}

.home-preview {
  --home-bg: #100f15;
  --home-surface: #1a1822;
  --home-surface-2: #26232f;
  --home-text: #f5f3f9;
  --home-muted: #9c99a6;
  --home-line: rgba(255, 255, 255, .09);
  --home-accent: #7c5cff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 660px;
  display: flex;
  flex-direction: column;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: var(--body);
  text-align: left;
}

/* The app keeps this ambient wash still; website scroll motion is separate. */
.home-preview::before,
.home-preview::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.home-preview::before {
  left: -16%;
  top: -10%;
  width: 62%;
  height: 34%;
  background: radial-gradient(circle, rgba(124, 92, 255, .3), transparent 68%);
  filter: blur(46px);
  transform: translate(-8%, -6%);
}

.home-preview::after {
  left: 54%;
  top: 36%;
  width: 68%;
  height: 38%;
  background: radial-gradient(circle, rgba(47, 208, 166, .22), transparent 68%);
  filter: blur(50px);
  transform: translate(10%, 14%) scale(1.1);
}

.home-preview-header {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 20px 20px 6px;
}

.home-preview-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-preview-tab {
  min-width: 48px;
  min-height: 48px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--home-muted);
  font: 700 15px/1 var(--display);
  letter-spacing: .2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease;
}

.home-preview-tab[aria-selected="true"] {
  border-bottom-color: var(--home-accent);
  color: var(--home-text);
}

.home-preview-tab:focus-visible {
  outline: 2px solid #c9bcff;
  outline-offset: 3px;
}

.home-preview-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-left: auto;
}

.home-preview-chain {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(124, 92, 255, .22);
  color: var(--home-accent);
}

.home-preview-chain svg {
  display: block;
  width: 16px;
  height: 16px;
}

.home-preview-chain b {
  font: 700 17px/1 var(--display);
  letter-spacing: -.5px;
}

.home-preview-bell {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  background: var(--home-surface);
  color: var(--home-muted);
}

.home-preview-bell svg {
  display: block;
  width: 20px;
  height: 20px;
}

.home-preview-scroll {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-preview-scroll::-webkit-scrollbar { display: none; }
.home-preview-scroll:focus-visible {
  outline: 2px solid #c9bcff;
  outline-offset: -3px;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 16px 120px;
}

.home-preview-tile {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: var(--home-surface-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.home-cover-art,
.home-cover-art > svg,
.home-tile-scrim {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-cover-art { z-index: -2; }
.home-cover-art > svg { overflow: hidden; }
.home-tile-scrim {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 46%);
}

.home-preview-tile.is-watched::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, .4);
}

.home-tile-avatar {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--home-surface-2);
  color: var(--home-muted);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .28);
  font: 700 13px/1 var(--display);
}

.home-tile-duration {
  position: absolute;
  top: 11px;
  right: 9px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 11px/1 var(--body);
  font-variant-numeric: tabular-nums;
}

.home-tile-caption {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  line-height: 1.1;
  color: #fff;
}

.home-tile-caption strong {
  font: 700 13px/1.1 var(--body);
}

.home-tile-caption small {
  margin-left: 5px;
  color: rgba(255, 255, 255, .72);
  font: 400 11px/1.1 var(--body);
  white-space: nowrap;
}

.home-tile-caption p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .9);
  font: 400 12px/1.28 var(--body);
}

.home-preview-nav {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px 20px;
  background: linear-gradient(to top, var(--home-bg) 62%, transparent);
  pointer-events: none;
}

.home-nav-home,
.home-nav-profile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.home-nav-home { color: var(--home-accent); }
.home-nav-profile { color: var(--home-muted); }
.home-nav-home svg,
.home-nav-profile svg { display: block; width: 26px; height: 26px; }

.home-nav-record {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 5px solid var(--home-accent);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(124, 92, 255, .42);
  transform: translateY(-5px);
}

.home-preview-hint {
  margin: 16px 8px 0;
  color: #a4a0b3;
  font: 400 11px/1.5 var(--body);
  text-align: center;
}

@media (max-width: 768px) {
  .hero-art.home-preview-art { min-width: 0; width: 100%; }
}

@media (max-width: 420px) {
  .hero-art.home-preview-art { flex-basis: 100%; }
  .home-preview { height: 640px; }
}

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