/* Chrome estilo NSFW Nation (sidebar + header + rodapé fino) nas cores SpicyBaddie. Carregar por último. */

.home-primary-tab-row {
  display: none !important;
}

/* ---------- Header ---------- */
.home-top-hhp {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.75rem;
  min-height: 3.55rem;
  padding: 0.45rem 0.75rem;
  box-sizing: border-box;
}

.home-top-hhp__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.home-top-hhp__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.home-top-hhp__entrar,
#home-login-entry-button.home-top-hhp__entrar,
#home-login-entry-button.home-login-entry-button.home-top-hhp__entrar {
  min-height: 2.15rem !important;
  padding: 0.4rem 0.85rem !important;
  border: 1.5px solid #f97316 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

.home-top-hhp__entrar:hover,
#home-login-entry-button.home-top-hhp__entrar:hover {
  background: rgba(249, 115, 22, 0.14) !important;
  filter: none !important;
}

.home-top-hhp__cadastrar,
#home-signup-entry-button.home-top-hhp__cadastrar {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem !important;
  padding: 0.4rem 0.9rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f97316 !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(124, 45, 18, 0.55) !important;
}

.home-top-hhp__cadastrar:hover,
#home-signup-entry-button.home-top-hhp__cadastrar:hover {
  background: #fb923c !important;
}

.home-top-hhp__cadastrar:active,
#home-signup-entry-button.home-top-hhp__cadastrar:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(124, 45, 18, 0.55) !important;
}

body.user-logged-in .home-top-hhp__cadastrar,
body.user-logged-in .home-top-hhp__entrar,
body.user-logged-in #home-signup-entry-button.home-top-hhp__cadastrar,
body.user-logged-in #home-login-entry-button.home-top-hhp__entrar {
  display: none !important;
}

/* Header logado: tudo cabe numa linha sem sobrepor */
.home-top-hhp .home-header-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.home-top-hhp__actions {
  flex: 0 0 auto !important;
}

.home-top-hhp .home-header-account__email,
.home-top-hhp .home-header-account__id-row {
  max-width: 9.5rem;
}

.home-top-hhp .home-header-account {
  max-width: none;
  gap: 0.45rem;
  padding: 0.2rem 0.25rem 0.2rem 0.6rem;
  border: 1.5px solid rgba(249, 115, 22, 0.5);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), transparent 50%), #110c0a;
}

.home-top-hhp .home-header-account__logout {
  flex: 0 0 auto;
}

.home-top-hhp .home-header-account__meta {
  overflow: hidden;
}

.home-top-hhp .home-header-account__logout {
  border: 0;
  border-radius: 0;
  background: #f97316;
  color: #fff;
  box-shadow: 2px 2px 0 rgba(124, 45, 18, 0.55);
}

.home-top-hhp .home-header-account__logout:hover {
  background: #fb923c;
}

@media (max-width: 1500px) {
  body.user-logged-in .home-top-hhp .home-header-nav__label,
  body.user-logged-in .home-top-hhp .home-header-nav__chevron {
    display: none;
  }

  body.user-logged-in .home-top-hhp .home-header-nav__item {
    width: 2.15rem;
    min-width: 2.15rem;
    padding: 0 !important;
    justify-content: center;
  }

  body.user-logged-in .home-top-hhp .home-promo-banner__label {
    display: none;
  }

  body.user-logged-in .home-top-hhp .home-header-account__email,
  body.user-logged-in .home-top-hhp .home-header-account__id-row {
    max-width: 7.5rem;
  }
}

/* Pill "Programa de afiliados" + nav enxuta como no NSFW Nation */
.home-top-hhp .home-header-nav [data-install-app],
.home-top-hhp .home-header-nav [data-language-open] {
  display: none !important;
}

body:not(.user-logged-in) .home-top-hhp .home-header-nav [data-creations-open],
body:not(.user-logged-in) .home-top-hhp .home-header-nav [data-wallet-open] {
  display: none !important;
}

.home-top-hhp #menu-affiliate-cta,
.home-top-hhp #menu-affiliate-manage {
  padding: 0.4rem 0.8rem !important;
  border-radius: 999px !important;
  background: rgba(249, 115, 22, 0.24) !important;
  border: 1px solid rgba(249, 115, 22, 0.38) !important;
  color: #fff !important;
}

.home-top-hhp #menu-affiliate-cta:hover,
.home-top-hhp #menu-affiliate-manage:hover {
  background: rgba(249, 115, 22, 0.38) !important;
}

.home-top-hhp #menu-affiliate-cta .home-header-nav__icon,
.home-top-hhp #menu-affiliate-manage .home-header-nav__icon {
  color: #fb923c !important;
}

.home-view-root--studio .home-studio__disclaimer {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.3rem 0.7rem;
  background: rgba(8, 6, 5, 0.78);
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Rodapé fino do estúdio ---------- */
.studio-footer-bar {
  display: none;
}

.home-view-root--studio .studio-footer-bar,
.home-view-root--creations .studio-footer-bar,
body.wallet-statement-open .studio-footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  min-height: var(--studio-footer-h, 3.35rem);
  padding: 0.45rem 1rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(249, 115, 22, 0.4);
  background: #050505;
  box-sizing: border-box;
  transition: left 0.22s ease;
}

.studio-footer-bar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.studio-footer-bar__brand .site-brand-logo__mark {
  width: 2.2rem;
  height: 2.2rem;
}

.studio-footer-bar__right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.studio-footer-bar__payments {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.studio-footer-bar__payments img {
  display: block;
  height: 1rem;
  width: auto;
  opacity: 0.85;
}

.studio-footer-bar__r18 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.studio-footer-bar__r18-box {
  padding: 0.12rem 0.35rem;
  border: 1.5px solid #f97316;
  color: #fb923c;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.studio-footer-bar__r18-text {
  color: rgba(240, 238, 236, 0.55);
  font-size: 0.7rem;
  white-space: nowrap;
}

.studio-footer-bar__lang {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.studio-footer-bar__lang .material-symbols-outlined {
  font-size: 1rem;
  color: #fb923c;
}

.studio-footer-bar__lang:hover {
  border-color: rgba(249, 115, 22, 0.55);
}

.home-view-root--studio .home-feed-scroll--grid,
.home-view-root--creations .home-feed-scroll--grid {
  bottom: var(--studio-footer-h, 3.35rem) !important;
}

.home-view-root--creations .feed-page-wrap > .site-footer {
  display: none !important;
}

.home-view-root--studio .home-studio-bg {
  bottom: var(--studio-footer-h, 3.35rem);
}

@media (max-width: 900px) {
  .home-top-hhp__cadastrar,
  #home-signup-entry-button.home-top-hhp__cadastrar {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .studio-footer-bar__payments,
  .studio-footer-bar__r18-text {
    display: none;
  }
}

/* ---------- Contornos estilo quadrinho ---------- */
.home-top-bar,
.home-top-bar.home-header-extended-bg {
  border-bottom: 2px solid #ff3d8b !important;
}

.studio-footer-bar {
  border-top: 2px solid #ff3d8b !important;
}

@media (min-width: 901px) {
  .home-desktop-sidebar {
    border-right: 2px solid #ff3d8b !important;
  }
}

/* ---------- Sidebar desktop ---------- */
@media (min-width: 901px) {
  .home-view-root,
  .home-view-root.home-view-root--sidebar-expanded {
    --home-sidebar-width: 15.5rem;
    --studio-sidebar-offset: var(--home-sidebar-width);
  }

  .home-view-root.home-view-root--sidebar-collapsed {
    --home-sidebar-width: 4.75rem;
  }

  .home-top-bar,
  .home-top-bar.home-header-extended-bg {
    position: fixed !important;
    top: 0 !important;
    left: var(--home-sidebar-width, 15.5rem) !important;
    right: 0 !important;
    z-index: 60 !important;
    background: #070504 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transition: left 0.22s ease !important;
  }

  .home-top-brand-row.home-top-hhp {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.65rem 0.9rem !important;
    min-height: 3.55rem !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.4rem 1rem 0.4rem 0.85rem !important;
  }

  .home-top-hhp__menu,
  .home-top-brand-row .home-menu-button {
    display: none !important;
  }

  .home-top-hhp .home-brand-lockup {
    display: none !important;
  }

  .home-top-actions,
  .home-top-hhp__actions {
    margin-left: auto !important;
  }

  .home-desktop-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 70 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: var(--home-sidebar-width, 15.5rem) !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0.65rem 0.55rem 0.85rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #120d0b !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 0.25rem !important;
    transition: width 0.22s ease !important;
  }

  .home-desktop-sidebar__top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    flex: 0 0 auto !important;
    padding: 0.15rem 0 0.55rem !important;
  }

  .home-desktop-sidebar__brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 3.5rem !important;
    padding: 0.15rem 0.45rem !important;
    text-decoration: none !important;
  }

  .home-desktop-sidebar__brand .site-brand-logo__mark {
    display: block !important;
    width: 5.25rem !important;
    height: 5.25rem !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    transform: none !important;
    animation: none !important;
    transition: width 0.22s ease, height 0.22s ease !important;
  }

  .home-desktop-sidebar__brand .site-brand-logo__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .home-desktop-sidebar__item--toggle {
    align-self: flex-start !important;
    width: 2.55rem !important;
    min-width: 2.55rem !important;
    padding: 0.45rem !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__top {
    align-items: center !important;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__item--toggle {
    align-self: center !important;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__brand {
    justify-content: center !important;
    padding-inline: 0.1rem !important;
    min-height: 2.8rem !important;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__brand .site-brand-logo__mark {
    width: 2.85rem !important;
    height: 2.85rem !important;
  }

  .home-desktop-sidebar__brand .site-brand-logo {
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
  }

  .home-desktop-sidebar__brand .site-brand-logo__mark {
    width: 3rem !important;
    height: 3rem !important;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__brand .site-brand-logo__word {
    display: none !important;
  }

  .home-desktop-sidebar__spacer {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0.35rem !important;
  }

  .home-desktop-sidebar__rail {
    display: none !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    margin: 0.15rem 0 !important;
    padding: 0.35rem 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__rail {
    display: flex !important;
  }

  .home-desktop-sidebar__sections {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 1.05rem !important;
    min-height: 0 !important;
    margin: 0.35rem 0 0.55rem !important;
    padding: 0 0.35rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: none;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__sections {
    display: none !important;
  }

  .home-desktop-sidebar__section {
    display: grid !important;
    gap: 0.45rem !important;
  }

  .home-desktop-sidebar__section-title {
    position: relative !important;
    margin: 0 !important;
    padding-left: 0.55rem !important;
    color: #fff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
  }

  .home-desktop-sidebar__section-title::before {
    content: "" !important;
    position: absolute !important;
    top: 0.05rem !important;
    bottom: 0.05rem !important;
    left: 0 !important;
    width: 0.16rem !important;
    background: #f97316 !important;
  }

  .home-desktop-sidebar__links {
    display: grid !important;
    gap: 0.28rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .home-desktop-sidebar__link {
    display: block !important;
    color: rgba(240, 238, 236, 0.62) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
  }

  .home-desktop-sidebar__link:hover {
    color: #fb923c !important;
  }

  .home-desktop-sidebar__utils {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    gap: 0.2rem !important;
    padding-top: 0.45rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .home-desktop-sidebar__item {
    appearance: none;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.7rem !important;
    width: 100% !important;
    min-height: 2.55rem !important;
    padding: 0.55rem 0.7rem !important;
    border: 0 !important;
    border-radius: 0.65rem !important;
    background: transparent !important;
    color: rgba(240, 238, 236, 0.78) !important;
    font: inherit;
    font-size: 0.9rem !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }

  .home-desktop-sidebar__item:hover {
    color: #fff !important;
    background: rgba(249, 115, 22, 0.12) !important;
  }

  .home-desktop-sidebar__item:hover .home-desktop-sidebar__icon {
    color: #fb923c !important;
  }

  .home-desktop-sidebar__icon {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: 1.35rem !important;
    height: 1.35rem !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    color: inherit !important;
  }

  .home-desktop-sidebar__label {
    display: inline !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
  }

  .home-desktop-sidebar__item--rail .home-desktop-sidebar__label,
  .home-view-root--sidebar-collapsed .home-desktop-sidebar__label {
    display: none !important;
  }

  .home-view-root--sidebar-collapsed .home-desktop-sidebar__item {
    justify-content: center !important;
    padding-inline: 0.45rem !important;
    gap: 0 !important;
  }

  .home-view-root .home-feed-scroll,
  .home-view-root .home-feed-scroll--grid,
  .home-view-root .home-studio-bg,
  .home-view-root--studio .studio-footer-bar,
  .home-view-root--creations .studio-footer-bar,
  body.wallet-statement-open .home-view-root .studio-footer-bar {
    left: var(--home-sidebar-width, 15.5rem) !important;
    margin-left: 0 !important;
    transition: left 0.22s ease !important;
  }

  .home-view-root--studio .home-studio-bg {
    right: 0;
  }
}

@media (max-width: 900px) {
  .home-desktop-sidebar {
    display: none !important;
  }
}
