/* Extra profile look. Applies only inside #main-content. */

html.nk-tex #main-content {
  position: relative;
  isolation: isolate;
}
/* #main-content is also .ns-main. Other kit CSS hides .ns-main::before
   on body.nv-page, and profiles use that class, so display and content
   must be set here or the member texture never paints. */
html.nk-tex #main-content::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background-image: var(--nk-tx-image);
  background-size: var(--nk-tx-size);
  background-repeat: repeat;
  background-position: 0 0;
  opacity: var(--nk-tx-opacity, 1);
  filter: var(--nk-tx-filter, none);
  pointer-events: none;
  z-index: -1;
  animation-name: nk-tx-drift;
  animation-duration: var(--nk-tx-dur, 72s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
html.nk-tex.nk-tx-still #main-content::before,
html.nk-tx-still #main-content .nk-card::after,
html.nk-tx-still #main-content #nk-song::after,
html.nk-tx-still #main-content #nk-shop::after {
  animation: none;
}
@keyframes nk-tx-drift {
  from { background-position: 0 0; }
  to { background-position: var(--nk-tx-to, var(--nk-tx-size, 160px 160px)); }
}
@media (prefers-reduced-motion: reduce) {
  html.nk-tex #main-content::before,
  #main-content .nk-card::after,
  #main-content #nk-song::after,
  #main-content #nk-shop::after {
    animation: none !important;
  }
}
html.nk-tex #main-content > .nf-bg .nf-grain,
html.nk-tex #main-content > .nf-bg .nf-gridbg {
  opacity: 0 !important;
}

html.nk-custom #main-content :is(h1,h2,h3,h4,h5,h6),
html.nk-custom #main-content .pl-name,
html.nk-custom #main-content .nk-card-title,
html.nk-custom #main-content .nk-tf-title {
  font-family: var(--nk-font-head, var(--nk-font, inherit));
}

html.nk-custom #main-content .bx-def-border-radius-block,
html.nk-custom #main-content .nk-vframe,
html.nk-custom #main-content .nk-gal img,
html.nk-custom #main-content .nk-linkrow {
  border-radius: var(--nk-radius, 16px);
}

html.nk-glass #main-content .bx-def-color-bg-block,
html.nk-glass #main-content .nk-card,
html.nk-glass #main-content #bx-menu-main-bar-wrapper {
  background-color: rgba(var(--nk-panel-rgb, 39,39,42), var(--nk-panel-a, 1)) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.nk-header-h #main-content .pl-banner {
  height: var(--nk-header-h) !important;
}
html.nk-custom #main-content .pl-banner p.bx-base-pofile-cover-image img {
  object-position: var(--nk-header-pos, 50% 50%) !important;
  background-position: var(--nk-header-pos, 50% 50%) !important;
}

/* Avatar frames */
html.nk-av-thin #main-content .pl-av {
  box-shadow: 0 0 0 3px var(--pl-ring, var(--nk-fade, #0f1724)), 0 10px 28px rgba(0,0,0,.28);
}
html.nk-av-thick #main-content .pl-av {
  box-shadow: 0 0 0 8px var(--pl-ring, var(--nk-fade, #0f1724)), 0 0 0 10px var(--nk-accent, rgba(122,166,220,.55)), 0 16px 54px var(--nk-glow, rgba(91,143,208,.38));
}
html.nk-av-glow #main-content .pl-av {
  box-shadow: 0 0 0 5px var(--pl-ring, var(--nk-fade, #0f1724)), 0 0 0 7px var(--nk-accent, #60a5fa), 0 0 28px var(--nk-glow, rgba(96,165,250,.55));
}
html.nk-av-square #main-content .pl-av,
html.nk-av-square #main-content .pl-av .bx-base-pofile-cover-thumb,
html.nk-av-square #main-content .pl-av .bx-base-pofile-cover-thumb > a,
html.nk-av-square #main-content .pl-av .bx-base-pofile-unit-thumb,
html.nk-av-square #main-content .pl-av .pl-mark {
  border-radius: 18px;
}
html.nk-av-soft #main-content .pl-av,
html.nk-av-soft #main-content .pl-av .bx-base-pofile-cover-thumb,
html.nk-av-soft #main-content .pl-av .bx-base-pofile-cover-thumb > a,
html.nk-av-soft #main-content .pl-av .bx-base-pofile-unit-thumb,
html.nk-av-soft #main-content .pl-av .pl-mark {
  border-radius: 28%;
}
html.nk-av-none #main-content .pl-av {
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

/* Sidebar placement. None stacks the side column under the main column so nothing is lost. */
@media (min-width: 1024px) {
  html.nk-side-left #main-content .bx-layout-row {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
  }
  html.nk-side-left #main-content .bx-layout-bar-right-content,
  html.nk-side-left #main-content .bx-layout-bar-right-bar {
    float: none;
  }
  html.nk-side-none #main-content .bx-layout-row {
    display: flex;
    flex-direction: column;
  }
  html.nk-side-none #main-content .bx-layout-bar-right-content {
    width: 100% !important;
    max-width: 760px;
    margin: 0 auto;
  }
  html.nk-side-none #main-content .bx-layout-bar-right-bar {
    width: 100% !important;
    max-width: 760px;
    margin: 0 auto;
    float: none;
  }
}

/* Links, quote, gallery */
.nk-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.nk-linkrow {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem 1rem; border: 1px solid var(--nk-border, rgba(255,255,255,.12));
  background: var(--nk-field, rgba(255,255,255,.04)); color: var(--nk-text, inherit);
  text-decoration: none; transition: box-shadow .3s ease, border-color .3s ease;
}
.nk-linkrow:hover, .nk-linkrow:focus-visible {
  box-shadow: 0 0 0 1px var(--nk-glow), 0 10px 28px -12px var(--nk-glow);
  outline: none;
}
.nk-linkrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nk-quote { margin: 0; padding: 0; border: 0; }
.nk-quote p {
  margin: 0; font-size: 1.15rem; line-height: 1.5; font-style: italic; text-align: center;
  overflow-wrap: anywhere;
}
.nk-quote footer { margin: .8rem 0 0; text-align: center; font-size: .85rem; font-style: normal; color: var(--nk-muted, inherit); }
.nk-gal {
  display: flex; gap: .6rem; overflow-x: auto; padding: .15rem 0 .25rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.nk-gal a {
  flex: 0 0 auto; width: 148px; height: 148px; border-radius: var(--nk-radius, 16px);
  overflow: hidden; background: var(--nk-field, #1f1f23);
  transition: box-shadow .3s ease;
  scroll-snap-align: start;
}
.nk-gal a:hover, .nk-gal a:focus-visible { box-shadow: 0 0 0 2px var(--nk-glow), 0 12px 28px -12px var(--nk-glow); outline: none; }
.nk-gal img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .nk-gal a { width: 128px; height: 128px; }
  .nk-linkrow { justify-content: center; text-align: center; }
  .nk-quote p, .nk-quote footer { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nk-linkrow, .nk-gal a { transition: none; }
  html.nk-glass #main-content .bx-def-color-bg-block { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Custom cards in the side column, and per-box texture layers. */
#nk-sections-side,
#nk-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#main-content .nk-card[data-k],
#main-content #nk-song,
#main-content #nk-shop {
  position: relative;
}
@media (max-width: 767px) {
  #nk-sections-side,
  #nk-sections,
  #nk-song-wrap,
  #nk-shop-wrap {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .nk-card,
  #main-content #nk-song,
  #main-content #nk-shop {
    transition: none;
  }
}


/* Custom look must beat the default profile skin (html:not(.nk-x) + --dn-* tokens
   and fixed 18px radii). space-style.css is loaded last among kit CSS. */
html.nk-custom #main-content {
  --dn-text: var(--nk-text);
  --dn-mut: var(--nk-muted);
  --dn-link: var(--nk-accent);
  --dn-acc: var(--nk-accent);
  --dn-card: var(--nk-panel);
  --dn-line: var(--nk-border);
  --dn-line2: var(--nk-border);
  --pl-ring: var(--nk-fade, #0f1724);
  background: var(--nk-bg);
  background-color: var(--nk-bgc);
  color: var(--nk-text);
  font-family: var(--nk-font, inherit);
}
html.nk-custom #main-content .bx-layout-bar-right-bar .bx-db-container,
html.nk-custom #main-content .bx-layout-bar-right-content .bx-db-container,
html.nk-custom #main-content #bx-page-block-293 > .bx-db-container,
html.nk-custom #main-content #bx-page-block-2766 > .bx-db-container,
html.nk-custom #main-content #bx-page-block-1331 > .bx-db-container,
html.nk-custom #main-content .nk-card,
html.nk-custom #main-content #nk-song,
html.nk-custom #main-content #nk-shop,
html.nk-custom #main-content .bx-def-border-radius-block,
html.nk-custom #main-content .bx-def-color-bg-block {
  border-radius: var(--nk-radius, 16px);
  background-color: var(--nk-panel);
  color: var(--nk-text);
  border-color: var(--nk-border);
}
html.nk-custom #main-content .nk-card-title,
html.nk-custom #main-content .nk-tf-title,
html.nk-custom #main-content .nk-about-p,
html.nk-custom #main-content .nk-song-title,
html.nk-custom #main-content .pl-name,
html.nk-custom #main-content .pl-bio,
html.nk-custom #main-content .pl-addr,
html.nk-custom #main-content .pl-stats {
  color: var(--nk-text);
}
html.nk-custom #main-content a:not(.bx-btn):not(.pl-btn):not(.nk-song-play) {
  color: var(--nk-accent);
}
html.nk-custom #main-content :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--nk-font-head, var(--nk-font, inherit));
  color: var(--nk-text);
}
