/* Раздел /video/: вертикальные ролики 9:16. Токены темы, без новых цветов. */

.vreels {
  color: var(--text);
}

.vreels :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vreels-hero {
  padding: 8px 0 20px;
}

.vreels-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #45454b);
}

.vreels-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.15;
}

.vreels-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text);
}

.vreels-meta {
  margin: 8px 0 0;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--muted, #45454b);
}

.vreels-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.vreels-actions .btn,
.vreel-links .btn,
.vreels-soft .btn,
.vplayer__end .btn {
  white-space: normal;
  max-width: 100%;
  height: auto;
  line-height: 1.25;
}

.vreels-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vreels-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.vreels-author img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius, 6px);
  border: 1px solid var(--panel-border);
}

.vreels-author p {
  margin: 0;
  font-size: 14px;
}

.vreels-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg, 10px);
  background: var(--panel-bg);
}

.vreels-feature .vreel-card__title,
.vreels-feature .vreel-card__pdfname {
  display: none;
}

.vreels-feature__poster {
  flex: 0 0 42%;
  max-width: 140px;
}

.vreels-feature h2 {
  margin: 4px 0;
  font-size: 1rem;
  line-height: 1.3;
}

.vreels-feature p {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #45454b);
}

.vreels-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #45454b);
}

.vreels-filters {
  position: sticky;
  top: var(--header-h, 56px);
  z-index: 20;
  padding: 10px 0;
  background: var(--bg, #f4f2ee);
  border-bottom: 1px solid var(--line);
}

.vreels-filters__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.vreels-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vreels-filter {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.vreels-filter[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.vreels-filter__n {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  color: var(--muted, #45454b);
}

.vreels-stage {
  padding: 18px 0 4px;
}

.vreels-stage h2 {
  margin: 0;
  font-size: 1.15rem;
}

.vreels-stage__sub {
  margin: 4px 0 12px;
  color: var(--muted, #45454b);
}

.vreels-grid,
.vreels-related__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vreel-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.vreel-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg, 10px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.vreel-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vreel-card__stage,
.vreel-card__play,
.vreel-card__badges {
  position: absolute;
}

.vreel-card__stage {
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vreel-card__play {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgba(10, 10, 10, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.vreel-card__badges {
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 12px;
}

.vreel-card__pdf,
.vreel-card__dur,
.vreel-card__myth {
  padding: 2px 6px;
  border-radius: 4px;
}

.vreel-card__pdf {
  background: var(--accent);
  color: #141418;
}

.vreel-card__dur,
.vreel-card__myth {
  background: rgba(10, 10, 10, 0.82);
  color: #fff;
}

.vreel-card__title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vreel-card__pdfname {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted, #45454b);
}

.vreels-soft,
.vreels-pdf,
.vreels-faq,
.vreels-showroom,
.vreels-long,
.vreel-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg, 10px);
  background: var(--panel-bg);
}

.vreels-soft h2,
.vreels-pdf h2,
.vreels-faq h2,
.vreels-long h2,
.vreel-panel h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.vreels-pdf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.vreels-pdf__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.vreels-pdf__list a {
  color: inherit;
}

.vreels-pdf__kb {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  color: var(--muted, #45454b);
  white-space: nowrap;
}

.vreels-showroom {
  background: var(--bg-2);
}

.vreels-faq details {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.vreels-faq summary {
  cursor: pointer;
  font-weight: 650;
}

.vreel-page__head h1 {
  margin: 6px 0;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  line-height: 1.2;
}

.vreel-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.vplayer {
  position: relative;
  margin: 0;
}

.vplayer--vertical video {
  aspect-ratio: 9 / 16;
  height: min(70svh, calc(100vw * 16 / 9));
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  display: block;
  background: #000;
  border-radius: var(--radius-lg, 10px);
}

.vplayer__hint,
.vplayer__ai {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted, #45454b);
}

.vplayer__end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-lg, 10px);
  background: rgba(10, 10, 10, 0.78);
  color: #fff;
}

.vplayer__end[hidden] {
  display: none;
}

.vplayer__end .btn {
  min-height: 44px;
}

.vreel-takeaways {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vreel-takeaways li {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.vreel-takeaways__n {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  color: var(--accent-ink, #9a3412);
  font-weight: 700;
}

.vreel-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted, #45454b);
}

.vreel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vreel-transcript p {
  margin: 8px 0 0;
  max-width: 72ch;
}

.vreel-next {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg, 10px);
  text-decoration: none;
  color: inherit;
  background: var(--panel-bg);
}

.vreel-next__poster {
  flex: 0 0 72px;
}

.vreel-more {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vreel-more a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.vreels-related {
  margin: 28px 0;
}

.vreels-related h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.vreels-related__more {
  margin: 12px 0 0;
}

.vreels-long .video-card {
  max-width: 420px;
}

.vreels .hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.vreels-leadform {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .vreels-hero .vreels-actions,
  .vreels-soft .vreels-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vreels-hero .vreels-actions .btn,
  .vreels-soft .vreels-actions .btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .vreels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vreels-related__row {
    grid-template-columns: repeat(3, minmax(0, 160px));
  }

  .vreels-pdf__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (min-width: 1024px) {
  .vreels-hero__grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .vreels-hero__copy {
    flex: 1 1 280px;
  }

  .vreels-feature {
    flex: 0 1 420px;
  }

  .vreels-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vreel-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .vreel-layout__player {
    flex: 0 0 380px;
    position: sticky;
    top: calc(var(--header-h, 56px) + 12px);
  }

  .vreel-layout__side {
    flex: 1 1 240px;
    min-width: 0;
  }

  .vplayer--vertical video {
    height: auto;
    width: 100%;
  }

  .vreels-pdf__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vreel-card__play {
    transition: none;
  }
}

html[data-theme="dark"] .vreel-takeaways__n {
  color: var(--accent-ink, #ff8f5c);
}

/* ===== Главная: лента роликов. Не влияет на .vreels-related других страниц. ===== */

body[data-page="landing"] .home-reels .section__tag {
  color: var(--accent-ink);
}

html:not([data-theme="dark"]) body[data-page="landing"] .home-reels.eng-section,
.home-reels {
  position: relative;
  background:
    radial-gradient(ellipse 100% 78% at 50% 0%, rgba(255, 107, 44, 0.28), transparent 56%),
    linear-gradient(180deg, #ffe4d4 0%, #f6efe8 62%, #f4f2ee 100%);
  border-block: 1px solid rgba(154, 52, 18, 0.28);
}

html[data-theme="dark"] body[data-page="landing"] .home-reels.eng-section,
[data-theme="dark"] .home-reels {
  background:
    radial-gradient(ellipse 110% 85% at 50% 0%, rgba(255, 107, 44, 0.42), transparent 50%),
    linear-gradient(180deg, #3a1c10 0%, #1c120e 46%, #111111 100%);
  border-block: 1px solid rgba(255, 143, 92, 0.5);
}

.home-reels .section__head {
  margin-bottom: clamp(16px, 3vw, 28px);
}

.home-reels .section__title {
  max-width: 22em;
  margin-inline: auto;
}

.home-reels__filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.home-reels__filters::-webkit-scrollbar {
  display: none;
}

.home-reels__chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.home-reels__chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #141418;
}

.home-reels__count {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.08);
  color: var(--muted);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.home-reels__chip[aria-pressed="true"] .home-reels__count {
  background: rgba(0, 0, 0, 0.14);
  color: inherit;
}

.home-reels__bleed {
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

.home-reels__hint {
  margin: 0 0 6px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.home-reels__viewport {
  position: relative;
}

.home-reels__scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  outline: none;
}

.home-reels__scroller::-webkit-scrollbar {
  display: none;
}

.home-reels__scroller:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.home-reels__track {
  --reels-visible: 1.45;
  --reels-gap: 12px;
  display: flex;
  gap: var(--reels-gap);
  list-style: none;
  margin: 0;
  padding: 6px 2px 18px;
}

.home-reels__item {
  flex: 0 0 calc((100% - (var(--reels-visible) - 1) * var(--reels-gap)) / var(--reels-visible));
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-reels__item[hidden] {
  display: none;
}

.home-reels .home-reels__card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
}

.home-reels .vreel-card__poster {
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  border: 0;
  box-shadow:
    0 14px 32px rgba(20, 20, 24, 0.18),
    0 0 0 1px rgba(255, 107, 44, 0.22);
}

[data-theme="dark"] .home-reels .vreel-card__poster {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 107, 44, 0.38);
}

.home-reels .vreel-card__poster img,
.home-reels__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-reels .vreel-card__poster::after {
  content: none;
}

.home-reels .vreel-card__title {
  position: static;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  height: calc(1.3em * 3);
  margin: 8px 2px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  text-shadow: none;
}

.home-reels .vreel-card__pdfname {
  display: none;
}

.home-reels .vreel-card__badges {
  z-index: 2;
  top: 8px;
  bottom: auto;
  left: auto;
  right: 8px;
  justify-content: flex-end;
}

.home-reels .vreel-card__pdf {
  letter-spacing: 0;
  text-transform: none;
}

.home-reels .vreel-card__play {
  z-index: 2;
  left: 10px;
  top: auto;
  bottom: 10px;
  transform: none;
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.home-reels__card.is-previewing .vreel-card__play {
  opacity: 0;
}

.home-reels__preview {
  z-index: 1;
  pointer-events: none;
}

.home-reels__seen {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--call, #1a7a3a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.home-reels__card.is-seen .vreel-card__play {
  opacity: 0;
}

.home-reels__seen[hidden] {
  display: none !important;
}

.home-reels__seen-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-reels__arrow {
  display: none;
}

.home-reels__progress {
  margin: 4px 0 8px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  min-height: 1.4em;
}

.home-reels__progress[hidden] {
  display: block !important;
  visibility: hidden;
}

.home-reels__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 4px;
}

.home-reels__foot .btn {
  white-space: normal;
  text-align: center;
  min-height: 48px;
  height: auto;
}

.home-reels__more {
  color: var(--accent-ink);
  font-weight: 650;
}

.home-reels__cta-note {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.upload-form__reel-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 44, 0.12);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.upload-form__file-ui.is-reel-target {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 107, 44, 0.18);
}

.home-reels__overlay[hidden] {
  display: none !important;
}

.home-reels__overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #050508;
  color: #fff;
}

.home-reels__sheet {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000;
}

.home-reels__close,
.home-reels__vnav,
.home-reels__sound,
.home-reels__arrow {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.home-reels__close,
.home-reels__sound {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  z-index: 4;
  height: 44px;
  border-radius: 999px;
}

.home-reels__close {
  right: calc(12px + env(safe-area-inset-right));
  width: 44px;
  font-size: 26px;
  line-height: 1;
}

.home-reels__sound {
  left: calc(12px + env(safe-area-inset-left));
  min-width: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}

.home-reels__vnav {
  display: none;
}

.home-reels__player {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.home-reels__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border-radius: 0;
}

.home-reels__meter {
  position: absolute;
  left: calc(12px + env(safe-area-inset-left));
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(54px + env(safe-area-inset-bottom));
  z-index: 4;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.home-reels__meter-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent, #ff6b2c);
}

.home-reels__dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 20px 16px calc(48px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78) 22%, rgba(0, 0, 0, 0.94) 48%);
  pointer-events: none;
}

.home-reels__dock-title,
.home-reels__ai,
.home-reels__dock-actions,
.home-reels__page {
  pointer-events: auto;
}

.home-reels__dock-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 2px 14px #000;
}

.home-reels__ai {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.home-reels__dock-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-reels__dock .btn {
  width: 100%;
  min-height: 44px;
  height: auto;
  white-space: normal;
  line-height: 1.25;
  font-size: 15px;
  padding: 10px 14px;
}

.home-reels__dock .btn--ghost {
  --btn-ghost-bg: rgba(255, 255, 255, 0.08);
  --btn-ghost-border: rgba(255, 255, 255, 0.32);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.16);
  --btn-ghost-hover-border: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.home-reels__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}

.home-reels__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.home-reels :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html.home-reels-lock,
html.home-reels-lock body {
  overflow: hidden;
}

@media (min-width: 700px) {
  .home-reels__track { --reels-visible: 3.15; --reels-gap: 14px; }
  .home-reels__hint { display: none; }

  .home-reels__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border-color: rgba(255, 107, 44, 0.55);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(20, 20, 24, 0.16);
  }

  .home-reels__arrow[hidden] {
    display: none !important;
  }

  .home-reels__arrow--prev { left: 8px; }
  .home-reels__arrow--next { right: 84px; }

  [data-theme="dark"] .home-reels__arrow {
    background: rgba(20, 20, 20, 0.88);
    color: #fff;
  }
}

@media (min-width: 900px) {
  .home-reels__filters {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  .home-reels__vnav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(16px + env(safe-area-inset-left));
    right: auto;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 18px;
  }

  .home-reels__vnav--prev { top: calc(50% - 50px); }
  .home-reels__vnav--next { top: calc(50% + 6px); }

  .home-reels__vnav:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .home-reels__sheet {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(240px, 320px);
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px 28px 24px 76px;
    background: transparent;
  }

  .home-reels__player {
    position: relative;
    inset: auto;
    height: 90vh;
    height: 90dvh;
    width: auto;
  }

  .home-reels__video {
    height: 90vh;
    height: 90dvh;
    width: auto;
    max-width: min(52vw, calc(90vh * 9 / 16));
    max-width: min(52vw, calc(90dvh * 9 / 16));
    object-fit: contain;
    border-radius: 16px;
  }

  .home-reels__dock {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-height: 90dvh;
    overflow: auto;
    padding: 0 4px 0 0;
    background: transparent;
    pointer-events: auto;
  }

  .home-reels__meter {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .home-reels__sound {
    top: 16px;
    left: 16px;
  }
}

@media (min-width: 1024px) {
  .home-reels__item {
    flex-basis: 248px;
    width: 248px;
  }
}

@media (hover: none), (pointer: coarse) {
  .home-reels__vnav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-reels__scroller { scroll-behavior: auto; }
  .home-reels__card,
  .home-reels__sheet,
  .home-reels__video,
  .home-reels__preview,
  .home-reels__meter-bar {
    transition: none;
    animation: none;
  }
}
