/* Nesign creator video hosting. Refined motion, centered on small screens. */
.nv-player,
.bx-videos-entity-video .bx-player-plyr,
.bx-videos-entity-video iframe,
.nv-status {
  display: block;
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.bx-videos-entity-video .bx-player-plyr,
.bx-videos-entity-video video.nv-player,
.bx-videos-entity-video .plyr,
.bx-videos-entity-video iframe {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 18px 40px rgba(8, 16, 32, 0.28);
}
.bx-videos-entity-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.bx-videos-entity-video iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 12rem;
  border: 0;
}
.bx-videos-entity-video .not-prose {
  margin: 0 auto 1.25rem;
  text-align: center;
}
.bx-videos-entity-video h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

/* View counts stay off the page visually; JS also removes the nodes. */
.bx-videos .bx-view-counter-holder,
.bx-view-counter-holder.sys-action-counter-holder,
#bx-content-main .bx-view-counter-holder,
.bx-base-text-unit .bx-view-counter-holder {
  display: none !important;
}

.nv-meter,
.nv-post-to,
.nv-create,
.nv-status,
.nv-strip {
  max-width: 40rem;
  margin: 1.25rem auto;
  text-align: left;
}
.nv-meter,
.nv-post-to,
.nv-status,
.nv-strip-in {
  background: rgba(15, 23, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 28px rgba(8, 16, 32, 0.18);
}
.nv-meter-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  opacity: 0.72;
}
.nv-meter-line {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
.nv-meter-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.nv-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa6dc, #9b7bde);
  transition: width 0.4s ease;
}
.nv-meter-sub,
.nv-meter-note,
.nv-post-to-hint,
.nv-strip-empty,
.nv-strip-more,
.nv-status {
  line-height: 1.5;
}
.nv-meter-sub,
.nv-post-to-hint,
.nv-strip-empty {
  margin: 0.7rem 0 0;
  opacity: 0.86;
}
.nv-meter-note {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  opacity: 0.9;
}
.nv-meter-links {
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.nv-meter-links a,
.nv-strip-more a,
.nv-btn {
  color: #9ec4ef;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.nv-btn,
.nv-meter-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(158, 196, 239, 0.28);
}
.nv-btn:hover,
.nv-meter-links a:hover,
.nv-strip-list a:hover {
  box-shadow: 0 0 0 4px rgba(122, 166, 220, 0.18);
  background: rgba(122, 166, 220, 0.12);
}
.nv-post-to label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.nv-post-to select {
  width: 100%;
  max-width: 24rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 24, 0.7);
  color: inherit;
  padding: 0.55rem 0.7rem;
}
.nv-status {
  text-align: center;
  max-width: 36rem;
}
.nv-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.nv-strip-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.nv-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.nv-strip-list a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}
.nv-strip-more {
  margin: 0.75rem 0 0;
}

@media (max-width: 700px) {
  .nv-meter,
  .nv-post-to,
  .nv-create,
  .nv-status,
  .nv-strip,
  .bx-videos-entity-video h1,
  .bx-videos-entity-video .bx-player-plyr,
  .bx-videos-entity-video iframe {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .nv-post-to,
  .nv-meter,
  .nv-strip-in {
    text-align: center;
  }
  .nv-post-to select,
  .nv-meter-links,
  .nv-strip-head {
    justify-content: center;
  }
  .nv-post-to select {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-meter-bar span,
  .nv-btn,
  .nv-meter-links a,
  .nv-strip-list a {
    transition: none;
  }
}

.nv-frame {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0b1220;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 40px rgba(8, 16, 32, 0.28);
}
.nv-frame video,
.nv-frame iframe,
.nv-frame .plyr {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* The Watch page tabs for Popular and Top are turned off. */
.bx-menu-item-videos-popular,
.bx-menu-item-videos-top,
a[href="videos-popular"],
a[href="videos-top"],
a[href*="page.php?i=videos-popular"],
a[href*="page.php?i=videos-top"] {
  display: none !important;
}

/* Video category chips: one compact row, no tall card or counts. */
#bx-page-videos-home .bx-page-block-container:has(.bx-category-list) .bx-db-header {
  display: none;
}
#bx-page-videos-home .bx-page-block-container:has(.bx-category-list) .bx-db-container {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
#bx-page-videos-home .bx-page-block-container:has(.bx-category-list) .bx-db-content,
#bx-page-videos-home .bx-page-block-container:has(.bx-category-list) .bx-content-padding-block {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
#bx-page-videos-home .bx-category-list,
.nv-cats-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  margin: 0 auto;
  padding: 0.2rem 0.35rem;
  list-style: none;
}
#bx-page-videos-home .bx-category-list {
  /* fallback if the card is still in the markup */
}
.nv-cats,
#bx-page-videos-home .bx-page-block-container:has(.bx-category-list) .bx-db-content {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 0.9rem;
}
.nv-cats::-webkit-scrollbar,
#bx-page-videos-home .bx-page-block-container:has(.bx-category-list) .bx-db-content::-webkit-scrollbar {
  display: none;
  height: 0;
}
#bx-page-videos-home .bx-category-list-item,
.nv-cats-item {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
#bx-page-videos-home .bx-category-list-item a,
.nv-cats-item a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.2;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
#bx-page-videos-home .bx-category-list-item a:hover,
#bx-page-videos-home .bx-category-list-item a:focus-visible,
.nv-cats-item a:hover,
.nv-cats-item a:focus-visible {
  background: rgba(122, 166, 220, 0.16);
  border-color: rgba(158, 196, 239, 0.45);
  box-shadow: 0 0 0 4px rgba(122, 166, 220, 0.18), 0 0 18px rgba(155, 123, 222, 0.16);
}
#bx-page-videos-home .bx-category-list-item.is-on a,
.nv-cats-item.is-on a,
.nv-cats-item a[aria-current="page"] {
  background: rgba(122, 166, 220, 0.22);
  border-color: rgba(158, 196, 239, 0.55);
  box-shadow: 0 0 0 3px rgba(122, 166, 220, 0.16);
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  #bx-page-videos-home .bx-category-list-item a,
  .nv-cats-item a {
    transition: none;
  }
}

/* Video pages share the home frame, tiles, type, and background, at a quieter level. */
html:not(.nk-x) body.nv-page.np .ns-main {
  background-image: none;
  background-color: #0f1724;
}
html:not(.nk-x) body.nv-page.np .ns-main::before,
html:not(.nk-x) body.nv-page.np .ns-main::after {
  content: none;
  display: none;
  animation: none;
}
.nv-page .nf-bg.nv-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.nv-page .nv-bg .nf-gridbg {
  background-image: linear-gradient(rgba(122,166,220,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(122,166,220,.05) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.45) 120px, rgba(0,0,0,.32) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.45) 120px, rgba(0,0,0,.32) 55%, transparent 100%);
}
.nv-page .nv-bg .nf-o1 { opacity: .55; }
.nv-page .nv-bg .nf-o2 { top: 46%; right: -240px; opacity: .5; }
.nv-page .nv-bg .nf-o3 { top: auto; bottom: -160px; left: -160px; opacity: .45; }
.nv-page .nv-bg .nf-grain { opacity: .04; }
.nv-page .nv-bg .nf-orb {
  animation-name: nv-float;
  animation-duration: 38s;
}
.nv-page .nv-bg .nf-o2 { animation-duration: 46s; }
.nv-page .nv-bg .nf-o3 { animation-duration: 42s; }
@keyframes nv-float {
  from { transform: translate3d(0, var(--py, 0px), 0) scale(1); }
  to { transform: translate3d(28px, calc(var(--py, 0px) + 16px), 0) scale(1.04); }
}

/* Gallery lists sit on the grid like home sections; each video is a glass tile. */
html:not(.nk-x) body.nv-page.np.bx-artificer .bx-db-container:has(.bx-videos-wrapper),
html:not(.nk-x) body.nv-page.np.bx-artificer .bx-db-container:has(.bx-base-text-unit-gallery-wrapper) {
  background: none;
  background-image: none;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
html:not(.nk-x) body.nv-page.np.bx-artificer .bx-db-container:has(.bx-videos-wrapper):hover,
html:not(.nk-x) body.nv-page.np.bx-artificer .bx-db-container:has(.bx-base-text-unit-gallery-wrapper):hover {
  background: none;
  background-color: transparent;
  border: 0;
  box-shadow: none;
}
.nv-page .bx-db-container:has(.bx-videos-wrapper) .bx-db-header,
.nv-page .bx-db-container:has(.bx-base-text-unit-gallery-wrapper) .bx-db-header {
  justify-content: center;
  text-align: center;
}
.nv-page .bx-db-container:has(.bx-videos-wrapper) .bx-dbt-ttl,
.nv-page .bx-db-container:has(.bx-base-text-unit-gallery-wrapper) .bx-dbt-ttl {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--dn-text, #f3f6fb);
}
.nv-page .bx-base-text-unit-cnt.nf-tile,
.nv-page .bx-videos-wrapper .bx-base-text-unit-cnt {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(36,52,78,.55), rgba(20,30,47,.55));
  border: 1px solid rgba(122,166,220,.2);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 30px -22px rgba(0,0,0,.8);
  transition: box-shadow .45s ease, border-color .45s ease;
  --glow: #5b8fd0;
  transform: none;
}
.nv-page .bx-base-text-unit-cnt.nf-tile::after {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--glow, #5b8fd0) 18%, transparent), transparent 70%);
}
.nv-page .bx-base-text-unit-cnt.nf-tile:hover,
.nv-page .bx-base-text-unit-cnt.nf-tile:focus-within,
.nv-page .bx-videos-wrapper .bx-base-text-unit-cnt:hover,
.nv-page .bx-videos-wrapper .bx-base-text-unit-cnt:focus-within {
  border-color: color-mix(in srgb, var(--glow, #5b8fd0) 65%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px color-mix(in srgb, var(--glow, #5b8fd0) 28%, transparent), 0 14px 36px -16px rgba(91,143,208,.32);
  transform: none;
}
.nv-page .bx-base-text-unit-text {
  padding: 12px 14px 14px;
  text-align: center;
}
.nv-page .bx-base-text-unit-text h2,
.nv-page .bx-base-text-unit-text h2 a {
  color: var(--dn-text, #f3f6fb);
  font-weight: 650;
  letter-spacing: -.01em;
}
.nv-page .bx-base-text-unit-info,
.nv-page .bx-base-text-unit-info a,
.nv-page .bx-def-font-meta {
  color: var(--dn-mut, #b8c4d6);
}
.nv-page .bx-base-text-unit-info a:hover,
.nv-page .bx-base-text-unit-text h2 a:hover {
  color: var(--dn-link, #7aa6dc);
}
.nv-page .bx-base-text-unit,
.nv-page .bx-base-text-unit-cnt,
.nv-page .bx-base-text-unit-thumb {
  transform: none;
}

/* Player, info, forms, and notices use the same glass card recipe, quieter. */
.nv-page .bx-db-container:not(:has(.bx-videos-wrapper)):not(:has(.bx-base-text-unit-gallery-wrapper)):not(:has(.bx-category-list)),
.nv-page .nv-meter,
.nv-page .nv-post-to,
.nv-page .nv-status,
.nv-page .nv-strip-in {
  background: linear-gradient(160deg, rgba(36,52,78,.55), rgba(20,30,47,.55));
  background-image: linear-gradient(160deg, rgba(36,52,78,.55), rgba(20,30,47,.55));
  border: 1px solid rgba(122,166,220,.2);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 30px -22px rgba(0,0,0,.8);
  transition: box-shadow .45s ease, border-color .45s ease;
  --glow: #5b8fd0;
}
.nv-page .bx-db-container:not(:has(.bx-videos-wrapper)):not(:has(.bx-base-text-unit-gallery-wrapper)):not(:has(.bx-category-list)):hover,
.nv-page .nv-meter:hover,
.nv-page .nv-post-to:hover,
.nv-page .nv-strip-in:hover {
  border-color: color-mix(in srgb, var(--glow, #5b8fd0) 55%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 0 28px -16px rgba(91,143,208,.32);
}
.nv-page .bx-videos-entity-video h1,
.nv-page .bx-cover-empty .bx-cover-title > div {
  color: var(--dn-text, #f3f6fb);
  letter-spacing: -.02em;
}
.nv-page .nv-frame,
.nv-page .bx-videos-entity-video .bx-player-plyr,
.nv-page .bx-videos-entity-video iframe {
  border: 1px solid rgba(122,166,220,.16);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 16px 36px -20px rgba(0,0,0,.7);
}

@media (max-width: 700px) {
  .nv-page .bx-db-container:has(.bx-videos-wrapper) .bx-db-header,
  .nv-page .bx-db-container:has(.bx-base-text-unit-gallery-wrapper) .bx-db-header,
  .nv-page .bx-base-text-unit-text {
    text-align: center;
    justify-content: center;
  }
  .nv-page .bx-base-text-unit-cnt.nf-tile,
  .nv-page .bx-videos-wrapper .bx-base-text-unit-cnt {
    padding: 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-page .nv-bg .nf-orb { animation: none !important; }
  .nv-page .bx-base-text-unit-cnt.nf-tile,
  .nv-page .bx-db-container,
  .nv-page .nv-meter,
  .nv-page .nv-post-to,
  .nv-page .nv-strip-in {
    transition: none;
  }
}

/* Hosted video cards in the feed and timelines: poster fills a 16:9 frame, play is centered. */
.bx-tl-item-content .bx-player-plyr-wrapper,
.bx-tl-item .bx-player-plyr-wrapper,
.bx-base-general-attachment .bx-player-plyr-wrapper,
.nv-feed-player {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #152033;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px -22px rgba(0,0,0,.7);
}
.bx-tl-item-content .bx-player-plyr-wrapper .plyr,
.bx-tl-item .bx-player-plyr-wrapper .plyr,
.bx-base-general-attachment .bx-player-plyr-wrapper .plyr,
.nv-feed-player .plyr,
.bx-tl-item-content .bx-player-plyr-wrapper video,
.bx-tl-item .bx-player-plyr-wrapper video,
.bx-base-general-attachment .bx-player-plyr-wrapper video,
.nv-feed-player video,
.bx-tl-item-content .plyr__video-wrapper,
.bx-tl-item .plyr__video-wrapper,
.bx-base-general-attachment .plyr__video-wrapper,
.nv-feed-player .plyr__video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: inherit;
  background: #152033;
}
.bx-tl-item-content video.bx-player-plyr,
.bx-tl-item video.bx-player-plyr,
.bx-base-general-attachment video.bx-player-plyr,
.nv-feed-player video {
  object-fit: cover;
  object-position: center;
}
.bx-tl-item-content .plyr--playing video,
.bx-tl-item .plyr--playing video,
.bx-base-general-attachment .plyr--playing video,
.nv-feed-player.is-on video,
.nv-feed-player .plyr--playing video {
  object-fit: contain;
  background: #0b1220;
}
.bx-tl-item-content .plyr__poster,
.bx-tl-item .plyr__poster,
.bx-base-general-attachment .plyr__poster,
.nv-feed-player .plyr__poster {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #152033;
  opacity: 1;
  pointer-events: none;
}
.bx-tl-item-content .plyr--playing .plyr__poster,
.bx-tl-item .plyr--playing .plyr__poster,
.bx-base-general-attachment .plyr--playing .plyr__poster,
.nv-feed-player.is-on .plyr__poster,
.nv-feed-player .plyr--playing .plyr__poster,
.nv-feed-player.is-on video::-webkit-media-controls-overlay-play-button {
  opacity: 0 !important;
  visibility: hidden;
}
.bx-tl-item-content .plyr__control--overlaid,
.bx-tl-item .plyr__control--overlaid,
.bx-base-general-attachment .plyr__control--overlaid,
.nv-feed-player .plyr__control--overlaid {
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(15, 23, 36, 0.72);
  border: 1px solid rgba(158, 196, 239, 0.35);
  box-shadow: 0 0 0 4px rgba(122, 166, 220, 0.12), 0 0 18px rgba(91, 143, 208, 0.2);
  color: #f3f6fb;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  text-indent: -999px;
}
.bx-tl-item-content .plyr__control--overlaid svg,
.bx-tl-item .plyr__control--overlaid svg,
.bx-base-general-attachment .plyr__control--overlaid svg,
.nv-feed-player .plyr__control--overlaid svg,
.bx-tl-item-content .plyr__control--overlaid .icon,
.nv-feed-player .plyr__control--overlaid .icon {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  text-indent: 0;
  overflow: visible;
}
.nv-feed-fallback::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: 0;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #f3f6fb;
  z-index: 2;
  pointer-events: none;
}
.nv-feed-player.is-on.nv-feed-fallback::after,
.nv-feed-player.plyr--playing.nv-feed-fallback::after,
.nv-feed-fallback:has(.plyr__control--overlaid)::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .bx-tl-item-content .plyr__poster,
  .nv-feed-player .plyr__poster,
  .bx-tl-item-content .plyr__control--overlaid,
  .nv-feed-player .plyr__control--overlaid {
    transition: none;
  }
}
