:root {
  color-scheme: dark;
  --bg: #050509;
  --panel: rgba(12, 12, 20, 0.48);
  --panel-strong: rgba(12, 12, 20, 0.82);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.16);
  --pink: #ff2fab;
  --hot: #ff0f7b;
  --violet: #8f4dff;
  --cyan: #76f7ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 47, 171, 0.22), transparent 36%),
    radial-gradient(circle at 92% 28%, rgba(143, 77, 255, 0.28), transparent 34%),
    linear-gradient(165deg, #050509 0%, #111018 46%, #050509 100%);
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 56vmin;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-a {
  left: -20vmin;
  bottom: 18%;
  background: rgba(255, 47, 171, 0.44);
  animation: drift 8s ease-in-out infinite;
}

.ambient-b {
  right: -22vmin;
  top: 14%;
  background: rgba(118, 247, 255, 0.22);
  animation: drift 10s ease-in-out infinite reverse;
}

@keyframes drift {
  50% {
    transform: translate3d(8vmin, -5vmin, 0) scale(1.1);
  }
}

.top-ui {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: calc(var(--safe-top) + 12px) 14px 10px;
  pointer-events: none;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  pointer-events: auto;
}

.app-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 16, 0.84);
  color: #fff;
  box-shadow: 0 0 26px rgba(255, 47, 171, 0.14);
}

.app-logo:active {
  box-shadow: 0 0 30px rgba(255, 47, 171, 0.44);
  transform: translateY(1px);
}

.app-logo span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--hot), var(--violet));
  box-shadow: 0 0 18px rgba(255, 47, 171, 0.5);
  font-size: 15px;
  font-weight: 950;
}

.app-logo span svg {
  width: 17px;
  height: 17px;
}

.app-logo strong {
  font-size: 11px;
  letter-spacing: 0;
}

.brand-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
}

.search-bar,
.control-row,
.segmented,
select,
.top-actions,
.icon-button,
.action-button,
.primary-cta,
.ghost-link {
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.search-bar {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 22px 1fr 34px;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 14px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 26px rgba(255, 47, 171, 0.12);
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(10, 10, 16, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 47, 171, 0.18);
  backdrop-filter: blur(24px);
}

.search-suggest.hidden {
  display: none;
}

.suggest-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.suggest-item:last-child {
  border-bottom: 0;
}

.suggest-item:active {
  background: rgba(255, 47, 171, 0.2);
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  pointer-events: auto;
}

.top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.segmented {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.segmented button,
select {
  color: var(--text);
}

.segmented button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.segmented button.active {
  background: linear-gradient(135deg, rgba(255, 47, 171, 0.92), rgba(143, 77, 255, 0.8));
  box-shadow: 0 0 22px rgba(255, 47, 171, 0.4);
}

select {
  height: 36px;
  width: 86px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.reel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reel::-webkit-scrollbar,
.image-track::-webkit-scrollbar,
.sheet-scroll::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #08080d;
  isolation: isolate;
}

.image-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.image-frame {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  overflow: hidden;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-img) center / cover no-repeat;
  filter: blur(26px) saturate(1.12);
  transform: scale(1.12);
  opacity: 0.42;
}

.product-image {
  width: 100%;
  height: 100%;
  padding: 62px 0 96px;
  object-fit: contain;
  object-position: center;
  animation: imageIn 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-image.landscape-rotate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100dvh - 158px);
  height: 100vw;
  padding: 0;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

.product-image.contain {
  object-fit: contain;
  padding: 74px 0 124px;
}

@keyframes imageIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, transparent 23%, transparent 48%, rgba(0, 0, 0, 0.86) 100%),
    radial-gradient(circle at 78% 72%, rgba(255, 47, 171, 0.24), transparent 28%);
}

.side-actions {
  position: absolute;
  right: 12px;
  bottom: calc(var(--safe-bottom) + 124px);
  z-index: 5;
  display: grid;
  gap: 14px;
}

.action-button,
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.action-button {
  width: 52px;
  height: 52px;
}

.icon-button {
  width: 44px;
  height: 44px;
}

.icon-button.compact {
  width: 34px;
  height: 34px;
  background: rgba(255, 47, 171, 0.24);
}

.icon-button.mini {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

.action-button:active,
.icon-button:active,
.action-button.active {
  transform: scale(0.92);
  background: rgba(255, 47, 171, 0.34);
  box-shadow: 0 0 28px rgba(255, 47, 171, 0.72);
}

.reward-pop {
  animation: rewardPop 420ms cubic-bezier(0.2, 1.4, 0.3, 1);
}

.button-burst {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(255, 47, 171, 0.72);
  border-radius: inherit;
  pointer-events: none;
  animation: buttonBurst 620ms ease-out forwards;
}

@keyframes rewardPop {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 rgba(255, 47, 171, 0);
  }
  54% {
    transform: scale(1.12);
    background: rgba(255, 47, 171, 0.38);
    box-shadow: 0 0 34px rgba(255, 47, 171, 0.78), 0 0 58px rgba(143, 77, 255, 0.5);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes buttonBurst {
  to {
    inset: -24px;
    border-color: rgba(143, 77, 255, 0);
    opacity: 0;
  }
}

.heart-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  color: var(--pink);
  filter: drop-shadow(0 0 28px rgba(255, 47, 171, 0.86));
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: heartBurst 680ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.heart-burst svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.2;
}

@keyframes heartBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.48) rotate(-8deg);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(4deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42) rotate(0deg);
  }
}

.bottom-info {
  position: absolute;
  left: 0;
  right: 72px;
  bottom: 0;
  z-index: 5;
  padding: 0 8px calc(var(--safe-bottom) + 22px) 18px;
  pointer-events: auto;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.pill,
.price-label,
.rating-label,
.tag-button,
.actress-link,
.sheet-tags button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.tag-button,
.actress-link,
.sheet-tags button {
  cursor: pointer;
}

.tag-button:active,
.actress-link:active,
.sheet-tags button:active {
  background: rgba(255, 47, 171, 0.34);
  box-shadow: 0 0 18px rgba(255, 47, 171, 0.42);
}

.price-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.rating-label {
  color: #ffe9fb;
  box-shadow: inset 0 0 18px rgba(255, 47, 171, 0.14);
}

.title {
  display: -webkit-box;
  max-height: 104px;
  margin: 0 0 7px;
  overflow: hidden;
  font-size: clamp(18px, 5.7vw, 26px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.title-sm {
  max-height: 92px;
  font-size: clamp(16px, 4.8vw, 22px);
  line-height: 1.1;
}

.title-xs {
  max-height: 82px;
  font-size: clamp(14px, 4.2vw, 19px);
  line-height: 1.08;
  -webkit-line-clamp: 4;
}

.actress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 15px;
  font-weight: 900;
}

.actress-link {
  min-height: 25px;
  border-color: rgba(255, 47, 171, 0.32);
  color: #ffd8f2;
  background: rgba(255, 47, 171, 0.16);
}

.description {
  display: none;
  max-height: 44px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dots-wrap {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 10px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
}

.dots {
  display: flex;
  gap: 5px;
}

.image-counter {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 160ms ease, background 160ms ease;
}

.dot.active {
  width: 18px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 47, 171, 0.9);
}

.swipe-indicator {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 34px;
  height: 68px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  animation: pulseHint 2.4s ease-in-out infinite;
}

@keyframes pulseHint {
  50% {
    transform: translateX(6px);
    box-shadow: 0 0 22px rgba(143, 77, 255, 0.36);
  }
}

.fallback-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 32px;
  background:
    radial-gradient(circle at 35% 36%, rgba(255, 47, 171, 0.44), transparent 24%),
    radial-gradient(circle at 72% 62%, rgba(143, 77, 255, 0.36), transparent 30%),
    linear-gradient(150deg, #12101a, #050509);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-weight: 900;
}

.favorites-drawer,
.detail-sheet,
.settings-sheet,
.video-sheet,
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.favorites-drawer {
  top: auto;
  height: min(72dvh, 620px);
  padding: 10px 14px calc(var(--safe-bottom) + 18px);
  border-radius: 26px 26px 0 0;
  background: rgba(10, 10, 16, 0.9);
  box-shadow: 0 -22px 90px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  transform: translateY(105%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.favorites-drawer.open {
  transform: translateY(0);
}

.drawer-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 24px;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: calc(72dvh - 108px);
  overflow: auto;
}

.favorite-card {
  position: relative;
  min-height: 186px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.favorite-card img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.favorite-card p {
  margin: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.detail-sheet {
  display: none;
}

.detail-sheet.open,
.settings-sheet.open,
.video-sheet.open {
  display: block;
}

.settings-sheet,
.video-sheet {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.46);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 84dvh;
  margin: 0;
  padding: 10px 16px calc(var(--safe-bottom) + 18px);
  border-radius: 28px 28px 0 0;
  background: rgba(10, 10, 16, 0.94);
  box-shadow: 0 -24px 88px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(26px);
  animation: sheetUp 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
}

.settings-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88dvh;
  margin: 0;
  padding: 10px 16px calc(var(--safe-bottom) + 18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px 28px 0 0;
  background: rgba(10, 10, 16, 0.96);
  box-shadow: 0 -24px 88px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(26px);
  animation: sheetUp 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--safe-top) + 48px) 10px calc(var(--safe-bottom) + 14px);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 47, 171, 0.2), transparent 28%),
    rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(20px);
}

.video-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: min(74dvh, 720px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    var(--video-bg, radial-gradient(circle at 50% 35%, rgba(255, 47, 171, 0.28), transparent 28%)),
    #000;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 90px rgba(0, 0, 0, 0.72);
}

.video-stage iframe {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #000;
}

.video-stage iframe.landscape-rotate {
  position: absolute;
  width: min(74dvh, 720px);
  height: min(100vw - 20px, 420px);
  max-width: none;
  transform: rotate(90deg);
  transform-origin: center;
}

.video-close {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  right: 14px;
  z-index: 2;
}

.video-cta {
  align-self: stretch;
  margin-top: 14px;
}

.ghost-video-link {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-head p {
  margin: 0 0 2px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-head h2 {
  margin: 0;
  font-size: 25px;
}

.settings-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}

.settings-panel span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.settings-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
}

.settings-panel input:focus {
  border-color: rgba(255, 47, 171, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 47, 171, 0.16);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-note {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.settings-actions {
  display: grid;
  gap: 10px;
}

.ghost-button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
}

.api-status {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-bottom) + 12px);
  z-index: 30;
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 16, 0.76);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 30px rgba(143, 77, 255, 0.24);
  backdrop-filter: blur(22px);
  font-size: 13px;
  font-weight: 850;
  pointer-events: none;
}

.api-status.show {
  display: flex;
}

.system-slide {
  display: grid;
  place-items: center;
  padding: 104px 22px 28px;
  text-align: center;
}

.system-card {
  width: min(100%, 360px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.system-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
}

.system-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
}

.sheet-scroll {
  max-height: calc(84dvh - 46px);
  padding-top: 4px;
  overflow: auto;
}

.sheet-title {
  margin: 12px 0 12px;
  font-size: 22px;
  line-height: 1.18;
}

.detail-buy {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 10px;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sheet-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.sheet-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sheet-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
}

.primary-cta,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
}

.primary-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--hot), var(--violet));
  box-shadow: 0 0 34px rgba(255, 47, 171, 0.52);
}

.ghost-link {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.age-gate {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 47, 171, 0.32), transparent 26%),
    radial-gradient(circle at 72% 76%, rgba(143, 77, 255, 0.34), transparent 28%),
    rgba(5, 5, 9, 0.96);
}

.age-gate.hidden {
  display: none;
}

.age-card {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px);
}

.age-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--hot), var(--violet));
  box-shadow: 0 0 34px rgba(255, 47, 171, 0.5);
  font-size: 22px;
  font-weight: 950;
}

.age-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.12;
}

.age-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.age-actions {
  display: grid;
  gap: 10px;
}

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-top) + 18px) 18px calc(var(--safe-bottom) + 18px);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 47, 171, 0.26), transparent 30%),
    radial-gradient(circle at 76% 80%, rgba(143, 77, 255, 0.32), transparent 32%),
    rgba(3, 3, 8, 0.9);
  backdrop-filter: blur(20px);
}

.onboarding.hidden {
  display: none;
}

.onboarding-card {
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(12, 12, 20, 0.78);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58), 0 0 44px rgba(255, 47, 171, 0.18);
}

.tutorial-visual {
  display: grid;
  place-items: center;
  height: 178px;
  margin-bottom: 14px;
}

.tutorial-phone {
  position: relative;
  width: 118px;
  height: 164px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(circle at 52% 34%, rgba(255, 47, 171, 0.42), transparent 30%),
    #08080d;
}

.tutorial-target {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 28px rgba(255, 47, 171, 0.72);
}

.tutorial-glow {
  position: absolute;
  inset: auto 22px 22px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hot), var(--violet));
  opacity: 0.72;
}

.tutorial-visual[data-target="vertical"] .tutorial-target {
  left: 50%;
  top: 30px;
  width: 8px;
  height: 82px;
  transform: translateX(-50%);
}

.tutorial-visual[data-target="horizontal"] .tutorial-target {
  left: 18px;
  top: 70px;
  width: 82px;
  height: 8px;
}

.tutorial-visual[data-target="actions"] .tutorial-target {
  right: 12px;
  top: 46px;
  width: 30px;
  height: 92px;
}

.tutorial-step {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
}

.onboarding-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.onboarding-card p {
  color: var(--muted);
  line-height: 1.6;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  margin-top: 16px;
}

.onboarding-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.onboarding-options.hidden,
.onboarding-discovery.hidden {
  display: none;
}

.onboarding-option {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.onboarding-option.selected,
.onboarding-option:active {
  border-color: rgba(255, 47, 171, 0.68);
  background: rgba(255, 47, 171, 0.22);
  box-shadow: 0 0 22px rgba(255, 47, 171, 0.26);
}

.onboarding-discovery {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.discovery-group h3 {
  margin: 0 0 7px;
  color: #ffd8f2;
  font-size: 13px;
}

.discovery-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.discovery-group button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.skeleton-image,
.skeleton-line {
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-image {
  width: 100%;
  height: 100%;
}

.skeleton-line {
  width: 44%;
  height: 16px;
  margin-top: 10px;
}

.skeleton-line.wide {
  width: 82%;
  height: 32px;
}

.skeleton-line.mid {
  width: 58%;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (min-width: 560px) {
  body {
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 50% 15%, rgba(255, 47, 171, 0.16), transparent 28%),
      #020204;
  }

  .app-shell {
    width: min(100vw, 440px);
    height: min(100dvh, 920px);
    border-inline: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 90px rgba(255, 47, 171, 0.18);
  }

  .slide,
  .reel {
    width: 100%;
    height: 100%;
  }

  .top-ui,
  .favorites-drawer,
  .detail-sheet,
  .settings-sheet,
  .video-sheet,
  .onboarding,
  .api-status,
  .age-gate {
    left: 50%;
    width: min(100vw, 440px);
    transform: translateX(-50%);
  }

  .favorites-drawer {
    transform: translate(-50%, 105%);
  }

  .favorites-drawer.open {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 370px) {
  .top-ui {
    padding: calc(var(--safe-top) + 8px) 10px 8px;
  }

  .brand-row {
    gap: 6px;
    margin-bottom: 6px;
  }

  .app-logo {
    min-height: 32px;
    padding: 3px 7px 3px 4px;
  }

  .app-logo strong {
    display: none;
  }

  .brand-actions {
    gap: 5px;
  }

  .brand-row .segmented {
    height: 32px;
  }

  .search-bar {
    grid-template-columns: 19px 1fr 30px;
    gap: 5px;
    height: 36px;
    padding: 0 5px 0 10px;
  }

  .search-suggest {
    border-radius: 14px;
  }

  .search-bar input {
    font-size: 13px;
  }

  .control-row {
    gap: 6px;
  }

  .segmented button {
    padding: 0 6px;
    font-size: 11px;
  }

  select {
    width: 74px;
    font-size: 11px;
  }

  .icon-button.mini {
    width: 32px;
    height: 32px;
  }

  .side-actions {
    right: 8px;
    gap: 10px;
  }

  .action-button {
    width: 48px;
    height: 48px;
  }

  .bottom-info {
    padding-left: 14px;
    right: 60px;
    padding-right: 6px;
  }

  .title {
    font-size: 18px;
  }

  .onboarding-card {
    padding: 16px;
  }

  .tutorial-visual {
    height: 150px;
  }

  .description {
    display: none;
  }
}

@media (max-height: 680px) {
  .product-image {
    padding: 52px 0 82px;
  }

  .product-image.landscape-rotate {
    width: calc(100dvh - 134px);
    padding: 0;
  }

  .description {
    display: none;
  }

  .title {
    max-height: 78px;
    -webkit-line-clamp: 3;
  }

  .bottom-info {
    padding-bottom: calc(var(--safe-bottom) + 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
