/* Home studio — ChatGPT-style generate UI (NSFW Nation colors) */

.home-view-root {
  --studio-footer-h: 3.35rem;
}

.home-view-root--studio {
  --home-feed-offset: calc(env(safe-area-inset-top, 0px) + var(--home-top-bar-height, 3.5rem));
  --home-catalog-top: 0px;
}

.home-view-root--studio .catalog-row,
.home-view-root--studio .catalog-row--swipey,
.home-view-root--studio [data-catalog-chrome-host] {
  display: none !important;
}

.home-view-root--studio .home-feed-scroll--grid {
  display: flex !important;
  flex-direction: column !important;
  top: var(--home-feed-offset) !important;
  bottom: var(--studio-footer-h) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

.home-view-root--studio .feed-page-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
}

#feed-list.home-studio-feed-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-width: none;
}

#feed-list.home-studio-feed-list ~ .feed-pagination {
  display: none !important;
}

/* Footer da imagem 2 — barra fixa fora do scroll, sempre visível */
.home-view-root > .site-footer,
.home-view-root--studio > .site-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 80 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  margin: 0 !important;
  border-top: 1px solid rgba(220, 20, 38, 0.45) !important;
  border-bottom: 0 !important;
  background: #050505 !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

@media (min-width: 901px) {
  .home-view-root > .site-footer,
  .home-view-root--studio > .site-footer {
    left: var(--home-sidebar-width, 15.5rem) !important;
  }
}

.home-view-root > .site-footer .site-footer__main,
.home-view-root--studio > .site-footer .site-footer__main {
  display: none !important;
}

.home-view-root > .site-footer .site-footer__bar,
.home-view-root--studio > .site-footer .site-footer__bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.55rem 1rem !important;
  min-height: var(--studio-footer-h, 3.35rem);
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 0 !important;
  background: transparent !important;
}

.home-view-root > .site-footer .site-footer__brand,
.home-view-root--studio > .site-footer .site-footer__brand {
  display: inline-flex !important;
  visibility: visible !important;
}

.home-view-root > .site-footer .site-footer__payment-logos,
.home-view-root--studio > .site-footer .site-footer__payment-logos,
.home-view-root > .site-footer .site-footer__r18,
.home-view-root--studio > .site-footer .site-footer__r18,
.home-view-root > .site-footer .site-footer__lang-button,
.home-view-root--studio > .site-footer .site-footer__lang-button {
  display: inline-flex !important;
  visibility: visible !important;
}

@media (min-width: 720px) {
  .home-view-root > .site-footer .site-footer__r18-text,
  .home-view-root--studio > .site-footer .site-footer__r18-text {
    display: inline !important;
  }
}

/* Espaço inferior do feed para não cobrir o footer */
.home-view-root .home-feed-scroll--grid {
  bottom: var(--studio-footer-h, 3.35rem) !important;
}

/* Aviso de bônus embaixo, acima do footer fixo (studio e criações) */
.home-view-root .offer-toast-row,
.home-view-root--studio .offer-toast-row,
.home-view-root--creations .offer-toast-row {
  top: auto !important;
  bottom: calc(var(--studio-footer-h, 3.35rem) + 0.75rem + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  z-index: 90 !important;
  width: min(calc(100vw - 1.5rem), 40rem);
}

@media (min-width: 901px) {
  .home-view-root .offer-toast-row,
  .home-view-root--studio .offer-toast-row,
  .home-view-root--creations .offer-toast-row {
    left: calc(50% + (var(--home-sidebar-width, 15.5rem) / 2)) !important;
    width: min(calc(100vw - var(--home-sidebar-width, 15.5rem) - 2rem), 40rem);
  }
}

.home-studio-root {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  gap: 0;
  overflow: hidden;
}

.home-studio {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.45rem 0.85rem 0.5rem;
  box-sizing: border-box;
}

.home-studio__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.15rem 0 0.35rem;
  z-index: 5;
  position: relative;
}

.home-studio__model-wrap {
  position: relative;
  z-index: 6;
  max-width: min(100%, 18rem);
}

.home-studio__model-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: min(100%, 18rem);
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border: 1px solid rgba(240, 238, 236, 0.16);
  border-radius: 999px;
  background: rgba(18, 16, 20, 0.72);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-studio__model-btn:hover,
.home-studio__model-btn.is-open {
  border-color: rgba(255, 31, 51, 0.55);
  background: rgba(26, 20, 24, 0.92);
}

.home-studio__model-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 8;
  width: min(92vw, 17.5rem);
  max-height: min(50dvh, 20rem);
  padding: 0.35rem;
  border: 1px solid rgba(255, 31, 51, 0.4);
  border-radius: 0.85rem;
  background: rgba(12, 10, 12, 0.98);
  box-shadow:
    0 0.75rem 1.6rem rgba(0, 0, 0, 0.55),
    3px 3px 0 rgba(90, 0, 10, 0.4);
  overflow: hidden;
  animation: home-studio-fade 0.16s ease both;
}

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

.home-studio__model-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: min(46dvh, 18.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.1rem;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #dc1426 transparent;
}

.home-studio__model-empty {
  padding: 0.85rem 0.7rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.home-studio__model-option {
  appearance: none;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) 1.1rem;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.home-studio__model-option:hover {
  background: rgba(220, 20, 38, 0.14);
  border-color: rgba(255, 31, 51, 0.28);
}

.home-studio__model-option.is-selected {
  background: rgba(220, 20, 38, 0.22);
  border-color: rgba(255, 31, 51, 0.55);
}

.home-studio__model-option-thumb {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.45rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 31, 51, 0.35);
  background: #1a1418;
  flex-shrink: 0;
}

.home-studio__model-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-studio__model-option-thumb .material-symbols-outlined {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-studio__model-option-name {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-studio__model-option-check {
  font-size: 1.05rem;
  color: #ff1f33;
  opacity: 0;
}

.home-studio__model-option.is-selected .home-studio__model-option-check {
  opacity: 1;
}

.home-studio__model-thumb {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 31, 51, 0.45);
  background: #1a1418;
}

.home-studio__model-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

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

.home-studio__model-copy {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
  text-align: left;
}

.home-studio__model-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.1;
}

.home-studio__model-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-studio__chevron {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease;
}

.home-studio__model-btn.is-open .home-studio__chevron {
  transform: rotate(180deg);
  color: #ff1f33;
}

.home-studio__type {
  max-width: none;
  margin: 0;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}

.home-studio__type .home-porn-type__btn {
  min-height: 2.15rem;
  min-width: 5.2rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.home-studio__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 1rem;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.home-studio__hero {
  position: relative;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 1.05rem 1.25rem 1.1rem;
  border: 2px solid rgba(220, 20, 38, 0.72);
  background:
    linear-gradient(180deg, rgba(18, 12, 14, 0.94), rgba(8, 8, 10, 0.92)),
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(220, 20, 38, 0.22), transparent 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    6px 6px 0 rgba(90, 0, 10, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: home-studio-fade 0.45s ease both;
  isolation: isolate;
}

.home-studio__hero::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

.home-studio__hero > * {
  position: relative;
  z-index: 1;
}

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

.home-studio__composer {
  position: relative;
  display: grid;
  gap: 0.4rem;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-top: 0;
  z-index: 4;
}

.home-studio__brand {
  margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 0 1.4rem rgba(220, 20, 38, 0.35);
}

.home-studio__greeting {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.home-studio__lead {
  margin: 0;
  max-width: 26rem;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.home-studio__panel {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid rgba(255, 31, 51, 0.28);
  border-radius: 0.15rem;
  background: linear-gradient(180deg, rgba(26, 20, 24, 0.92), rgba(12, 10, 12, 0.88));
  box-shadow: 4px 4px 0 rgba(90, 0, 10, 0.35);
  animation: home-studio-fade 0.28s ease both;
}

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

.home-studio__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.home-studio__panel-head-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.home-studio__panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.home-studio__panel-head p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-studio__panel-close {
  appearance: none;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(240, 238, 236, 0.16);
  border-radius: 999px;
  background: rgba(18, 16, 20, 0.85);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.home-studio__panel-close:hover {
  border-color: rgba(255, 31, 51, 0.55);
  color: #fff;
  background: rgba(220, 20, 38, 0.2);
}

.home-studio__panel-close .material-symbols-outlined {
  font-size: 1.15rem;
}

.home-studio__panel-done {
  appearance: none;
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 0.15rem;
  background: #dc1426;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(90, 0, 10, 0.45);
}

.home-studio__panel-done:hover {
  background: #ff1f33;
}

.home-studio__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.45rem;
  scroll-snap-type: x mandatory;
  margin: 0;
}

.home-studio__panel .home-porn-tags {
  max-height: min(42dvh, 22rem);
}

.home-studio__tools {
  display: grid;
  gap: 0.25rem;
  width: min(100%, 16rem);
  padding: 0.35rem;
  border: 1px solid rgba(255, 31, 51, 0.35);
  border-radius: 0.85rem;
  background: rgba(18, 16, 20, 0.96);
  box-shadow: 0 0.75rem 1.6rem rgba(0, 0, 0, 0.45);
}

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

.home-studio__tool {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.home-studio__tool:hover {
  background: rgba(220, 20, 38, 0.16);
}

.home-studio__tool .material-symbols-outlined {
  font-size: 1.15rem;
  color: #ff1f33;
}

.home-studio__bar {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.45rem 0.45rem 0.4rem;
  border: 1px solid rgba(240, 238, 236, 0.18);
  border-radius: 1.65rem;
  background: rgba(22, 18, 22, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0.55rem 1.4rem rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-studio__bar:focus-within {
  border-color: rgba(255, 31, 51, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 31, 51, 0.12),
    0 0.55rem 1.4rem rgba(90, 0, 10, 0.22);
}

.home-studio__plus {
  appearance: none;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.home-studio__plus:hover,
.home-studio__plus.is-open {
  background: rgba(220, 20, 38, 0.18);
  color: #fff;
}

.home-studio__plus.is-open {
  transform: rotate(45deg);
}

.home-studio__plus .material-symbols-outlined {
  font-size: 1.35rem;
}

.home-studio__input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
}

.home-studio__input {
  display: block;
  width: 100%;
  min-height: 2.35rem;
  max-height: 8.5rem;
  margin: 0;
  padding: 0.55rem 0.15rem;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-y: auto;
}

.home-studio__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.home-studio__send.home-undress-generate,
.home-studio-root .home-studio__send.home-undress-generate {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  min-width: 2.55rem;
  min-height: 2.55rem !important;
  height: 2.55rem;
  margin: 0 !important;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 0;
  gap: 0.35rem;
  align-self: auto;
  box-shadow: none;
  background: #dc1426 !important;
  color: #fff !important;
}

.home-studio__send.home-undress-generate:not(:disabled):hover {
  background: #ff1f33 !important;
  transform: none;
  box-shadow: none;
}

.home-studio__send .material-symbols-outlined {
  font-size: 1.25rem;
}

.home-studio__send-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.home-studio__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.home-studio__chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(240, 238, 236, 0.16);
  border-radius: 999px;
  background: rgba(18, 16, 20, 0.7);
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.home-studio__chip:hover {
  border-color: rgba(255, 31, 51, 0.5);
  background: rgba(220, 20, 38, 0.14);
  color: #fff;
}

.home-studio__chip .material-symbols-outlined {
  font-size: 1rem;
  color: #ff1f33;
}

.home-studio__chip-count {
  min-width: 1.15rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: #dc1426;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

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

.home-studio__feedback {
  margin: 0;
  text-align: center;
}

.home-studio__sfw-notice {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 650;
  color: #ffb4b8;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.55);
}

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

.home-studio__disclaimer,
.home-studio__fallback {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.88);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.6);
}

.home-studio__fallback {
  padding: 2rem 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes home-studio-fade {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .home-studio {
    padding: 0.4rem 0.65rem 0.75rem;
    max-width: none;
  }

  .home-studio__type {
    width: 100%;
  }

  .home-studio__type .home-porn-type__btn {
    min-width: 0;
  }

  .home-studio__send-label {
    display: none;
  }

  .home-studio__send.home-undress-generate,
  .home-studio-root .home-studio__send.home-undress-generate {
    width: 2.55rem !important;
    padding: 0;
  }
}

@media (min-width: 960px) {
  .home-studio__model-menu {
    width: 18.5rem;
    max-height: min(52dvh, 22rem);
  }

  .home-studio__model-list {
    max-height: min(48dvh, 20.5rem);
  }

  .home-studio__panel .home-movies-card {
    width: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-studio__hero,
  .home-studio__panel {
    animation: none;
  }
}
