/* Nesign space design. Applies only inside the profile or space content area (#main-content).
   The Nesign header, menus and footer are never touched. Values come from safe presets only. */

html.nk-custom #main-content {
  background: var(--nk-bg);
  background-color: var(--nk-bgc);
  color: var(--nk-text);
  font-family: var(--nk-font);
}
html.nk-custom #main-content :is(h1,h2,h3,h4,h5,h6,p,li,span,div,small,strong,b,em,label,td,th,dt,dd,legend,time):not(.bx-btn *):not(.bx-btn):not([class*=" bg-"]):not([class^="bg-"]):not([class*=" bg-"] *):not(svg *) {
  color: var(--nk-text);
}
html.nk-custom #main-content a:not(.bx-btn):not([class*=" bg-"]):not([class^="bg-"]):not([class*=" bg-"] *) {
  color: var(--nk-accent);
}
html.nk-custom #main-content .bx-def-color-bg-block {
  background-color: var(--nk-panel);
  transition: box-shadow .35s ease, border-color .35s ease;
}
html.nk-custom #main-content .bx-def-border-block {
  border-color: var(--nk-border);
}
html.nk-custom #main-content .bx-def-color-bg-block:hover {
  box-shadow: 0 0 0 1px var(--nk-glow), 0 12px 36px -14px var(--nk-glow);
}
html.nk-custom #main-content .bx-btn-primary,
html.nk-custom #main-content a.bx-btn-primary,
html.nk-custom #main-content button.bx-btn-primary {
  background-color: var(--nk-accent);
  border-color: var(--nk-accent);
  color: var(--nk-accent-fg);
  transition: box-shadow .3s ease;
}
html.nk-custom #main-content .bx-btn:not(.bx-btn-primary) {
  color: var(--nk-text);
  border-color: var(--nk-border);
  transition: box-shadow .3s ease, border-color .3s ease;
}
html.nk-custom #main-content .bx-btn:hover {
  box-shadow: 0 0 0 1px var(--nk-glow), 0 8px 24px -10px var(--nk-glow);
}
html.nk-custom #main-content input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.nk-custom #main-content textarea,
html.nk-custom #main-content select {
  background-color: var(--nk-field);
  color: var(--nk-text);
  border-color: var(--nk-border);
}

/* Top friends */
.nk-tf { margin-bottom: 1rem; }
.nk-tf-in { padding: 1rem 1.25rem 1.25rem; }
.nk-tf-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nk-text);
}
.nk-tf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem .75rem;
}
.nk-tf-item { flex: 0 0 calc(25% - .75rem); min-width: 0; display: flex; justify-content: center; }
.nk-tf-item a { display: flex; flex-direction: column; align-items: center; gap: .45rem; max-width: 100%; text-decoration: none; }
.nk-tf-av {
  display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--nk-field);
  box-shadow: 0 0 0 2px var(--nk-border);
  transition: box-shadow .3s ease;
}
.nk-tf-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nk-tf-ini { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; color: var(--nk-text); }
.nk-tf-item a:hover .nk-tf-av, .nk-tf-item a:focus-visible .nk-tf-av {
  box-shadow: 0 0 0 2px var(--nk-accent), 0 8px 24px -8px var(--nk-glow);
}
.nk-tf-name { max-width: 100%; font-size: .8125rem; line-height: 1.25; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nk-muted) !important; }
@media (max-width: 640px) {
  .nk-tf-in { padding: .9rem .75rem 1.1rem; }
  .nk-tf-list { gap: .9rem .25rem; }
  .nk-tf-item { flex-basis: calc(25% - .25rem); }
  .nk-tf-av { width: 56px; height: 56px; }
}
@media (max-width: 380px) { .nk-tf-av { width: 48px; height: 48px; } .nk-tf-name { font-size: .75rem; } }

@media (prefers-reduced-motion: reduce) {
  html.nk-custom #main-content *, .nk-tf *, .nk-card, .nk-card * { transition: none !important; animation: none !important; }
}

/* Profile header follows the chosen background */
html.nk-custom #main-content { --pl-ring: var(--nk-fade, #0f1724); }
html.nk-custom #main-content .pl-fade {
  background: linear-gradient(to top, var(--nk-fade) 0%, color-mix(in srgb, var(--nk-fade) 78%, transparent) 30%, color-mix(in srgb, var(--nk-fade) 28%, transparent) 62%, transparent 100%);
}

/* About me, Top friends and Featured video cards */
.nk-sections { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.nk-sections:empty, #nk-sections-wrap:has(> .nk-sections:empty) { display: none; margin: 0; }
.nk-sections .nk-tf { margin-bottom: 0; }
.nk-card { transition: box-shadow .35s ease, border-color .35s ease; }
#main-content .nk-card:hover, #main-content .nk-card:focus-within {
  box-shadow: 0 0 0 1px var(--nk-glow), 0 12px 36px -14px var(--nk-glow);
}
.nk-card-in { padding: 1rem 1.25rem 1.25rem; }
.nk-card-title { margin: 0 0 .85rem; text-align: center; font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--nk-text); }
.nk-card-sub { margin: 1.1rem 0 .6rem; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nk-muted); }
.nk-about .nk-card-title + .nk-about-p, .nk-about .nk-about-p { margin: 0 0 .7rem; line-height: 1.6; overflow-wrap: anywhere; }
.nk-about .nk-about-p:last-of-type { margin-bottom: 0; }
.nk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.nk-chips li {
  max-width: 100%; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--nk-border); background: var(--nk-field);
  font-size: .85rem; line-height: 1.3; overflow-wrap: anywhere; color: var(--nk-text);
}
.nk-vframe { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.nk-vplay { position: absolute; inset: 0; display: block; text-decoration: none; }
.nk-vplay img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nk-vbtn {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--nk-accent); color: var(--nk-accent-fg) !important;
  box-shadow: 0 10px 30px -8px var(--nk-glow); transition: box-shadow .3s ease;
}
.nk-vplay:hover .nk-vbtn, .nk-vplay:focus-visible .nk-vbtn { box-shadow: 0 0 0 4px var(--nk-glow), 0 14px 36px -8px var(--nk-glow); }
.nk-vplay:focus-visible { outline: 2px solid var(--nk-accent); outline-offset: -3px; }
.nk-vlabel { position: absolute; left: 0; right: 0; bottom: .6rem; text-align: center; font-size: .85rem; font-weight: 600; color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.nk-vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nk-vnote { margin: .7rem 0 0; text-align: center; font-size: .78rem; color: var(--nk-muted) !important; }
@media (max-width: 640px) { .nk-card-in { padding: .9rem .9rem 1.1rem; } }

/* Soft colored glow on hover for cards and buttons, in the member's accent */
#main-content .bx-tl-item-cnt { transition: box-shadow .35s ease; }
#main-content .bx-tl-item-cnt:hover { box-shadow: 0 0 0 1px var(--nk-glow), 0 12px 36px -14px var(--nk-glow); }
html.nk-custom #main-content .pl-btn:hover, html.nk-custom #main-content .pl-cta .nk-fab:hover { box-shadow: 0 8px 26px -10px var(--nk-glow); }
@media (prefers-reduced-motion: reduce) { #main-content .bx-tl-item-cnt { transition: none; } }

/* When a member has picked Top friends, those picks replace the long friends list in the side column */
html.nk-has-tf #bx-page-block-90 { display: none; }
html.nk-profile #main-content .bx-layout-row.nk-solo > .bx-layout-bar-right-bar { display: none; }
html.nk-profile #main-content .bx-layout-row.nk-solo > .bx-layout-bar-right-content { flex: 1 1 auto; width: 100% !important; max-width: 760px; margin-left: auto; margin-right: auto; }
