/* Video demo — TikTok-style vertical feed, mobile-first */

@font-face {
  font-family: 'VelaSans';
  src: url('https://maybesmart.ru/assets/fonts/VelaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VelaSans';
  src: url('https://maybesmart.ru/assets/fonts/VelaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VelaSans';
  src: url('https://maybesmart.ru/assets/fonts/VelaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --vd-bg: #0b0d12;
  --vd-text: #eef0f6;
  --vd-muted: rgba(238, 240, 246, 0.62);
  --vd-accent: #8b7cff;
  --vd-accent-2: #5c4fd4;
  --vd-border: rgba(255, 255, 255, 0.12);
  --vd-dock: 108px;
  --vd-sidebar: 400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.video-demo-body {
  margin: 0;
  height: 100%;
  background: var(--vd-bg);
  color: var(--vd-text);
  font-family: VelaSans, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body.video-demo-body {
  overflow: hidden;
  min-height: 100dvh;
}

.vd-shell,
.vd-phone,
.vd-app,
.vd-stage {
  height: 100%;
}

.vd-phone {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: #05060a;
  overflow: hidden;
}

.vd-app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #05060a;
  user-select: none;
  -webkit-user-select: none;
}

.vd-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.vd-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: block;
  padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.88) 0%, rgba(5, 6, 10, 0.4) 72%, transparent 100%);
  pointer-events: none;
}

.vd-top__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.vd-back,
.vd-more,
.vd-cart-launch,
.vd-menu,
.vd-add {
  pointer-events: auto;
}

.vd-back {
  display: inline-flex;
  align-items: center;
  grid-column: 1;
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 21, 29, 0.78);
  border: 1px solid var(--vd-border);
  color: var(--vd-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.vd-now {
  min-width: 0;
  text-align: center;
  grid-column: 2;
}

@media (max-width: 1099px), (orientation: portrait) {
  .vd-now {
    display: none;
  }
}

.vd-now__cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b8ff;
  line-height: 1.2;
}

.vd-now__title {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd-more-wrap {
  position: relative;
  pointer-events: auto;
  grid-column: 3;
  justify-self: end;
}

.vd-cart-launch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18, 21, 29, 0.78);
  border: 1px solid var(--vd-border);
  color: var(--vd-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  white-space: nowrap;
}

.vd-more {
  position: relative;
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--vd-border);
  border-radius: 12px;
  background: rgba(18, 21, 29, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  padding: 0;
}

.vd-more span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.vd-more__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--vd-accent);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.vd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(18, 21, 29, 0.96);
  border: 1px solid var(--vd-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vd-menu__item {
  appearance: none;
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--vd-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

.vd-menu__item:hover,
.vd-menu__item:focus {
  background: rgba(139, 124, 255, 0.18);
}

.vd-feed {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
}

.vd-feed::-webkit-scrollbar {
  display: none;
}

.vd-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.vd-slide.is-hidden,
.vd-chip.is-hidden {
  display: none !important;
}

.vd-media,
.vd-scene,
.vd-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vd-video {
  object-fit: cover;
  background: #05060a;
  z-index: 2;
}

.vd-slide.has-video .vd-scene {
  display: none;
}

.vd-scene {
  --amb: 0.28;
  --warm: 0.45;
  --ceil: 0.22;
  --spot: 0.12;
  --accent: 0.12;
  --day: 0;
  --drape-l: 8%;
  --drape-r: 8%;
  z-index: 1;
  overflow: hidden;
}

.vd-scene__photo {
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, calc(0.62 - var(--amb) * 0.45)), rgba(8, 10, 16, calc(0.28 - var(--amb) * 0.2))),
    var(--photo) center / cover no-repeat;
  filter:
    brightness(calc(0.42 + var(--amb) * 0.7 + var(--day) * 0.25))
    saturate(calc(0.78 + var(--warm) * 0.35))
    contrast(calc(1.02 + var(--amb) * 0.08));
  transform: scale(1.08);
  transition: filter 0.7s ease;
}

.vd-slide.is-current .vd-scene__photo {
  animation: vd-drift 18s ease-in-out infinite;
}

@keyframes vd-drift {
  0%,
  100% { transform: scale(1.08) translate(0, 0); }
  50% { transform: scale(1.16) translate(-1.6%, 1.2%); }
}

.vd-scene__grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 22%, transparent 48%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 214, 160, calc(var(--warm) * 0.18)), transparent 70%);
  pointer-events: none;
}

.vd-scene__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.vd-scene__glow--ceil {
  left: 6%;
  right: 6%;
  top: -18%;
  height: 52%;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 236, 200, calc(var(--ceil) * 0.7)), transparent 72%);
  opacity: var(--ceil);
}

.vd-scene__glow--spot {
  left: 8%;
  width: 46%;
  bottom: 8%;
  height: 48%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255, 210, 150, calc(var(--spot) * 0.55)), transparent 70%);
  opacity: var(--spot);
}

.vd-scene__glow--accent {
  right: 4%;
  width: 42%;
  top: 22%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 50%, rgba(180, 160, 255, calc(var(--accent) * 0.5)), transparent 70%);
  opacity: var(--accent);
}

.vd-scene__drapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(18, 14, 24, 0.96) 0%,
      rgba(18, 14, 24, 0.96) var(--drape-l),
      rgba(18, 14, 24, 0.15) calc(var(--drape-l) + 4%),
      transparent calc(var(--drape-l) + 10%),
      transparent calc(100% - var(--drape-r) - 10%),
      rgba(18, 14, 24, 0.15) calc(100% - var(--drape-r) - 4%),
      rgba(18, 14, 24, 0.96) calc(100% - var(--drape-r)),
      rgba(18, 14, 24, 0.96) 100%
    );
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
  transition: background 0.7s ease;
}

/* Lighting — corridor */
.vd-slide[data-section="light-corridor"][data-mood="off"] .vd-scene {
  --amb: 0.06; --warm: 0.2; --ceil: 0.04; --spot: 0.05; --accent: 0.08;
}
.vd-slide[data-section="light-corridor"][data-mood="night"] .vd-scene {
  --amb: 0.22; --warm: 0.85; --ceil: 0.18; --spot: 0.42; --accent: 0.12;
}
.vd-slide[data-section="light-corridor"][data-mood="welcome"] .vd-scene {
  --amb: 0.62; --warm: 0.78; --ceil: 0.7; --spot: 0.45; --accent: 0.2;
}
.vd-slide[data-section="light-corridor"][data-mood="bright"] .vd-scene {
  --amb: 0.92; --warm: 0.45; --ceil: 0.95; --spot: 0.55; --accent: 0.28; --day: 0.15;
}

/* Lighting — living */
.vd-slide[data-section="light-living"][data-mood="off"] .vd-scene {
  --amb: 0.05; --warm: 0.18; --ceil: 0.03; --spot: 0.04; --accent: 0.06;
}
.vd-slide[data-section="light-living"][data-mood="evening"] .vd-scene {
  --amb: 0.5; --warm: 0.95; --ceil: 0.42; --spot: 0.72; --accent: 0.4;
}
.vd-slide[data-section="light-living"][data-mood="cinema"] .vd-scene {
  --amb: 0.12; --warm: 0.35; --ceil: 0.06; --spot: 0.1; --accent: 0.78;
}
.vd-slide[data-section="light-living"][data-mood="guests"] .vd-scene {
  --amb: 0.9; --warm: 0.5; --ceil: 0.92; --spot: 0.55; --accent: 0.35; --day: 0.12;
}
.vd-slide[data-section="light-living"][data-mood="work"] .vd-scene {
  --amb: 0.72; --warm: 0.25; --ceil: 0.65; --spot: 0.82; --accent: 0.55; --day: 0.08;
}

/* Lighting — kitchen */
.vd-slide[data-section="light-kitchen"][data-mood="off"] .vd-scene {
  --amb: 0.06; --warm: 0.2; --ceil: 0.04; --spot: 0.04; --accent: 0.05;
}
.vd-slide[data-section="light-kitchen"][data-mood="work"] .vd-scene {
  --amb: 0.38; --warm: 0.4; --ceil: 0.18; --spot: 0.88; --accent: 0.12;
}
.vd-slide[data-section="light-kitchen"][data-mood="dinner"] .vd-scene {
  --amb: 0.42; --warm: 0.92; --ceil: 0.22; --spot: 0.28; --accent: 0.55;
}
.vd-slide[data-section="light-kitchen"][data-mood="cook"] .vd-scene {
  --amb: 0.88; --warm: 0.48; --ceil: 0.85; --spot: 0.9; --accent: 0.4; --day: 0.08;
}

/* Curtains */
.vd-slide[data-kind="curtains"][data-mood="closed"] .vd-scene {
  --amb: 0.12; --warm: 0.35; --ceil: 0.08; --spot: 0.12; --accent: 0.08; --drape-l: 50%; --drape-r: 50%;
}
.vd-slide[data-kind="curtains"][data-mood="half"] .vd-scene {
  --amb: 0.48; --warm: 0.55; --ceil: 0.28; --spot: 0.22; --accent: 0.15; --day: 0.2; --drape-l: 28%; --drape-r: 28%;
}
.vd-slide[data-kind="curtains"][data-mood="open"] .vd-scene {
  --amb: 0.85; --warm: 0.4; --ceil: 0.35; --spot: 0.2; --accent: 0.12; --day: 0.45; --drape-l: 6%; --drape-r: 6%;
}

.vd-slide[data-section="blinds-bedroom"] .vd-scene__photo {
  background-position: 70% 40%;
}

.vd-scene__heat,
.vd-scene__air,
.vd-scene__alert,
.vd-scene__hazard {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.vd-scene__heat {
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 138, 76, 0.55), transparent 72%);
  mix-blend-mode: screen;
}

.vd-scene__air {
  inset: 8% 10% 18%;
  background:
    repeating-linear-gradient(
      105deg,
      transparent 0 18px,
      rgba(77, 184, 255, 0.12) 18px 20px
    );
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  animation: vd-air 4.5s linear infinite;
}

@keyframes vd-air {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

.vd-scene__alert {
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 92, 92, 0.42), transparent 58%);
  mix-blend-mode: screen;
}

.vd-scene__hazard {
  inset: auto 16px 28% 16px;
  height: 22%;
  border-radius: 40% 40% 50% 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(110, 200, 255, 0.35), transparent 70%);
  filter: blur(8px);
}

.vd-slide[data-kind="climate"][data-mood="off"] .vd-scene {
  --amb: 0.08; --warm: 0.2; --ceil: 0.05; --spot: 0.06; --accent: 0.06;
}

.vd-slide[data-section="floor-bath"][data-mood="warming"] .vd-scene {
  --amb: 0.38; --warm: 0.9; --ceil: 0.22; --spot: 0.55; --accent: 0.18;
}
.vd-slide[data-section="floor-bath"][data-mood="warming"] .vd-scene__heat,
.vd-slide[data-section="floor-bath"][data-mood="comfort"] .vd-scene__heat {
  opacity: 1;
}
.vd-slide[data-section="floor-bath"][data-mood="comfort"] .vd-scene {
  --amb: 0.52; --warm: 0.95; --ceil: 0.28; --spot: 0.7; --accent: 0.2;
}

.vd-slide[data-section="ac-living"][data-mood="cool"] .vd-scene {
  --amb: 0.55; --warm: 0.15; --ceil: 0.45; --spot: 0.2; --accent: 0.55;
}
.vd-slide[data-section="ac-living"][data-mood="cool"] .vd-scene__air,
.vd-slide[data-section="ac-living"][data-mood="auto"] .vd-scene__air,
.vd-slide[data-section="vent-kitchen"][data-mood="on"] .vd-scene__air,
.vd-slide[data-section="vent-kitchen"][data-mood="boost"] .vd-scene__air {
  opacity: 1;
}
.vd-slide[data-section="ac-living"][data-mood="auto"] .vd-scene {
  --amb: 0.48; --warm: 0.35; --ceil: 0.4; --spot: 0.25; --accent: 0.4;
}

.vd-slide[data-section="vent-kitchen"][data-mood="on"] .vd-scene {
  --amb: 0.42; --warm: 0.4; --ceil: 0.3; --spot: 0.35; --accent: 0.45;
}
.vd-slide[data-section="vent-kitchen"][data-mood="boost"] .vd-scene {
  --amb: 0.58; --warm: 0.35; --ceil: 0.45; --spot: 0.4; --accent: 0.7;
}
.vd-slide[data-section="vent-kitchen"][data-mood="boost"] .vd-scene__air {
  opacity: 0.9;
  animation-duration: 2.2s;
}

.vd-slide[data-kind="security"][data-mood="idle"] .vd-scene {
  --amb: 0.28; --warm: 0.35; --ceil: 0.18; --spot: 0.12; --accent: 0.1;
}

.vd-slide[data-kind="security"][data-mood="alert"] .vd-scene {
  --amb: 0.22; --warm: 0.25; --ceil: 0.35; --spot: 0.2; --accent: 0.15;
}
.vd-slide[data-kind="security"][data-mood="alert"] .vd-scene__alert,
.vd-slide[data-kind="security"][data-mood="shut"] .vd-scene__alert,
.vd-slide[data-kind="security"][data-mood="path"] .vd-scene__alert {
  opacity: 1;
  animation: vd-alert 1.4s ease-in-out infinite;
}

.vd-slide[data-section="leak-bath"][data-mood="alert"] .vd-scene__hazard,
.vd-slide[data-section="leak-bath"][data-mood="shut"] .vd-scene__hazard,
.vd-slide[data-section="gas-kitchen"][data-mood="alert"] .vd-scene__hazard,
.vd-slide[data-section="gas-kitchen"][data-mood="shut"] .vd-scene__hazard {
  opacity: 0.85;
}

.vd-slide[data-kind="security"][data-mood="shut"] .vd-scene {
  --amb: 0.18; --warm: 0.2; --ceil: 0.12; --spot: 0.1; --accent: 0.08;
}

.vd-slide[data-section="smoke-kitchen"][data-mood="path"] .vd-scene {
  --amb: 0.7; --warm: 0.4; --ceil: 0.85; --spot: 0.45; --accent: 0.25;
}

@keyframes vd-alert {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.vd-caption {
  position: absolute;
  left: 0;
  right: 10px;
  bottom: calc(var(--vd-dock) + env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 8px 14px 16px;
  pointer-events: none;
}

.vd-caption__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.vd-caption__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b8ff;
}

.vd-caption__title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.vd-caption__text {
  margin: 0;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(238, 240, 246, 0.82);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

.vd-add {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--vd-accent), var(--vd-accent-2));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(92, 79, 212, 0.35);
}

.vd-add.is-added {
  background: linear-gradient(160deg, #6f63d8, #4a40b0);
}

.vd-add.is-idle {
  opacity: 0.45;
  cursor: default;
}

.vd-add .vd-add__icon--plus {
  display: block;
}

.vd-add .vd-add__icon--minus,
.vd-add.is-added .vd-add__icon--plus {
  display: none;
}

.vd-add.is-added .vd-add__icon--minus {
  display: block;
}

.vd-add[hidden] {
  display: none !important;
}

.vd-dots {
  position: absolute;
  right: 10px;
  top: 46%;
  transform: translateY(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.vd-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 0.2s ease, background 0.2s ease;
}

.vd-dot.is-on {
  height: 18px;
  background: #fff;
}

.vd-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--vd-dock) + 88px + env(safe-area-inset-bottom));
  z-index: 16;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.72);
  border: 1px solid var(--vd-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--vd-text);
  pointer-events: none;
  animation: vd-hint-pulse 2.4s ease-in-out infinite;
}

.vd-hint.is-gone {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

@keyframes vd-hint-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.vd-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.35) 0%, rgba(5, 6, 10, 0.72) 38%, rgba(5, 6, 10, 0.9) 100%);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.25);
}

.vd-dock__head,
.vd-group__title {
  display: none;
}

.vd-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
  padding-bottom: 2px;
}

.vd-cats::-webkit-scrollbar { display: none; }

.vd-cat,
.vd-chip {
  appearance: none;
  cursor: pointer;
  color: var(--vd-text);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.vd-cat {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--vd-border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}

.vd-cat__full { display: none; }

.vd-cat.is-active {
  background: linear-gradient(160deg, rgba(139, 124, 255, 0.42), rgba(92, 79, 212, 0.22));
  border-color: rgba(139, 124, 255, 0.75);
  box-shadow: 0 0 16px rgba(139, 124, 255, 0.22);
}

.vd-groups {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.vd-groups::-webkit-scrollbar { display: none; }

.vd-group,
.vd-group .vd-sections {
  display: contents;
}

.vd-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--vd-border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.vd-chip.is-active {
  background: #fff;
  color: #12141c;
  border-color: #fff;
  font-weight: 700;
}

@media (min-width: 1100px) and (orientation: landscape) {
  body.video-demo-body {
    background:
      radial-gradient(ellipse 50% 40% at 18% 0%, rgba(139, 124, 255, 0.12), transparent 55%),
      #07080c;
  }

  .vd-shell,
  .vd-phone,
  .vd-app {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .vd-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--vd-sidebar);
    grid-template-rows: 100%;
  }

  .vd-stage {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }

  .vd-top {
    padding: 16px 18px 14px;
  }

  .vd-now__title {
    font-size: 15px;
  }

  .vd-now {
    display: block;
  }

  .vd-caption {
    bottom: 28px;
    right: 16px;
    padding: 0 8px 18px 24px;
  }

  .vd-caption__title {
    font-size: 28px;
  }

  .vd-caption__text {
    font-size: 15px;
    max-width: 42ch;
  }

  .vd-hint {
    bottom: 120px;
  }

  .vd-dock {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 28px 22px 24px;
    border-left: 1px solid var(--vd-border);
    background:
      linear-gradient(180deg, rgba(14, 16, 24, 0.96), rgba(10, 12, 18, 0.94));
    overflow: hidden;
  }

  .vd-dock__head {
    display: block;
    flex: 0 0 auto;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .vd-dock__brand {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c4b8ff;
  }

  .vd-dock__title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
  }

  .vd-dock__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--vd-muted);
  }

  .vd-cats {
    display: flex;
    flex: 0 0 auto;
    margin: 0 0 16px;
  }

  .vd-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 124, 255, 0.35) transparent;
  }

  .vd-group,
  .vd-group .vd-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .vd-group__title {
    display: block;
    margin: 0;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(196, 184, 255, 0.85);
  }

  .vd-group.is-active .vd-group__title {
    color: #c4b8ff;
  }

  .vd-chip {
    width: 100%;
    flex: 0 0 auto;
    min-height: 48px;
    border-radius: 12px;
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 14px;
  }

  .vd-chip.is-hidden,
  .vd-chip[hidden] {
    display: none !important;
  }
}

.vd-cart {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(139, 124, 255, 0.12), transparent 55%),
    #0b0d12;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
}

.vd-cart[hidden] {
  display: none !important;
}

.vd-cart__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.vd-cart__back {
  appearance: none;
  border: 1px solid var(--vd-border);
  background: rgba(18, 21, 29, 0.78);
  color: var(--vd-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.vd-cart__title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.vd-cart__spacer {
  width: 88px;
}

.vd-cart__empty {
  margin: 48px 8px 0;
  text-align: center;
  color: var(--vd-muted);
  font-size: 14px;
}

.vd-cart__empty[hidden] {
  display: none;
}

.vd-cart__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

.vd-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-cart__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--vd-border);
  background: rgba(255, 255, 255, 0.03);
}

.vd-cart__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.vd-cart__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--vd-muted);
}

.vd-cart__line {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.vd-cart__controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vd-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--vd-border);
  border-radius: 10px;
  overflow: hidden;
}

.vd-qty button {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.vd-qty span,
.vd-qty__input {
  min-width: 44px;
  width: 44px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 0;
  -moz-appearance: textfield;
}

.vd-qty__input:focus {
  outline: none;
}

.vd-qty__input::-webkit-outer-spin-button,
.vd-qty__input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.vd-cart__remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(238, 240, 246, 0.5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}

.vd-cart__total {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 4px 4px;
  border-top: 1px solid var(--vd-border);
  font-size: 16px;
  font-weight: 700;
}

.vd-cart__total[hidden] {
  display: none;
}

.vd-cart__total strong {
  font-size: 20px;
  color: #c4b8ff;
}

.vd-cart__save {
  flex: 0 0 auto;
  margin-top: 12px;
}

.vd-cart__save[hidden] {
  display: none;
}

.vd-cart__save-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-cart__save-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--vd-border);
  background: rgba(8, 10, 16, 0.7);
  color: var(--vd-text);
  font-family: inherit;
  font-size: 14px;
}

.vd-cart__save-form button,
.vd-cart__login {
  appearance: none;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--vd-accent), var(--vd-accent-2));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vd-cart__user {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--vd-muted);
}

.vd-cart__guest {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-cart__guest p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--vd-muted);
}

.vd-cart__msg {
  margin: 0;
  font-size: 13px;
  color: #c4b8ff;
}

.vd-cart__msg.is-error {
  color: #ff9aa2;
}

.vd-toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--vd-dock) + 24px + env(safe-area-inset-bottom));
  z-index: 45;
  transform: translateX(-50%) translateY(8px);
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 21, 29, 0.92);
  border: 1px solid rgba(139, 124, 255, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vd-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1100px) and (orientation: landscape) {
  .vd-cart {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .vd-toast {
    bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vd-slide.is-current .vd-scene__photo,
  .vd-hint,
  .vd-scene__air,
  .vd-scene__alert {
    animation: none;
  }

  .vd-feed {
    scroll-behavior: auto;
  }
}
