/* Home studio (SpicyBaddieAI) */

.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 fixo fora do scroll */
.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(249, 115, 22, 0.45) !important;
  border-bottom: 0 !important;
  background: #050505 !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

@media (min-width: 901px) {
    .home-view-root--studio > .site-footer {
    left: var(--studio-sidebar-offset, 0px) !important;
  }
}
.home-view-root--studio > .site-footer .site-footer__main {
  display: none !important;
}
.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--studio > .site-footer .site-footer__brand {
  display: inline-flex !important;
  visibility: visible !important;
}
.home-view-root--studio > .site-footer .site-footer__payment-logos,
.home-view-root--studio > .site-footer .site-footer__r18,
.home-view-root--studio > .site-footer .site-footer__lang-button {
  display: inline-flex !important;
  visibility: visible !important;
}

@media (min-width: 720px) {
  .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--studio .home-feed-scroll--grid {
  bottom: var(--studio-footer-h, 3.35rem) !important;
}

/* Aviso de bônus acima do footer fixo */
.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--studio .offer-toast-row,
  .home-view-root--creations .offer-toast-row {
    left: calc(50% + (var(--studio-sidebar-offset, 0px) / 2)) !important;
    width: min(calc(100vw - var(--studio-sidebar-offset, 0px) - 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(251, 146, 60, 0.55);
  background: rgba(26, 20, 16, 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(251, 146, 60, 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, 38, 0, 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: #f97316 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(249, 115, 22, 0.14);
  border-color: rgba(251, 146, 60, 0.28);
}

.home-studio__model-option.is-selected {
  background: rgba(249, 115, 22, 0.22);
  border-color: rgba(251, 146, 60, 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(251, 146, 60, 0.35);
  background: #1a1410;
  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: #fb923c;
  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(251, 146, 60, 0.45);
  background: #1a1410;
}

.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: #fb923c;
}

.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(249, 115, 22, 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(249, 115, 22, 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, 38, 0, 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(249, 115, 22, 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(251, 146, 60, 0.28);
  border-radius: 0.15rem;
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.92), rgba(12, 10, 12, 0.88));
  box-shadow: 4px 4px 0 rgba(90, 38, 0, 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(251, 146, 60, 0.55);
  color: #fff;
  background: rgba(249, 115, 22, 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: #f97316;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(90, 38, 0, 0.45);
}

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

.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(38dvh, 20rem);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.55) transparent;
}

.home-studio__panel .home-porn-tags::-webkit-scrollbar {
  width: 6px;
}

.home-studio__panel .home-porn-tags::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.55);
}

.home-studio__tools {
  display: grid;
  gap: 0.25rem;
  width: min(100%, 16rem);
  padding: 0.35rem;
  border: 1px solid rgba(251, 146, 60, 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(249, 115, 22, 0.16);
}

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

.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, 14, 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(251, 146, 60, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(251, 146, 60, 0.12),
    0 0.55rem 1.4rem rgba(90, 38, 0, 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(249, 115, 22, 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: #f97316 !important;
  color: #fff !important;
}

.home-studio__send.home-undress-generate:not(:disabled):hover {
  background: #fb923c !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(251, 146, 60, 0.5);
  background: rgba(249, 115, 22, 0.14);
  color: #fff;
}

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

.home-studio__chip-count {
  min-width: 1.15rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: #f97316;
  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: #fed7aa;
  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;
  }
}

/* Fundo: colunas de vídeos e imagens subindo e descendo */
body:has(.home-view-root--studio) .melon-ambient {
  display: none !important;
}

.home-studio-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  gap: 0.6rem;
  padding: 0 0.6rem;
  overflow: hidden;
  pointer-events: none;
}

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

.home-studio-bg__col {
  flex: 1 1 0;
  min-width: 0;
}

.home-studio-bg__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.home-studio-bg__tile {
  aspect-ratio: 3 / 4;
  margin-bottom: 0.6rem;
  overflow: hidden;
  border-radius: 0.2rem;
  background: #140f0c;
}

.home-studio-bg__tile img,
.home-studio-bg__tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-view-root--studio {
  background: #090605 !important;
}

.home-view-root--studio .feed-page-wrap,
.home-view-root--studio #feed-list {
  background: transparent !important;
}

.home-studio__brand-accent {
  color: #fb923c;
}

/* Busca de personagem */
.home-studio__bar {
  position: relative;
  align-items: center;
}

.home-studio__search-icon {
  flex: 0 0 auto;
  padding-left: 0.45rem;
  font-size: 1.35rem;
  color: #fb923c;
}

.home-studio__input[type="search"]::-webkit-search-cancel-button {
  filter: invert(1);
}

.home-studio__search-btn {
  appearance: none;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.home-studio__search-btn:hover {
  background: rgba(249, 115, 22, 0.28);
}

.home-studio__search-btn.is-busy .material-symbols-outlined {
  animation: home-studio-spin 0.8s linear infinite;
}

.home-studio-root:not(.has-studio-reference) .home-studio__send.home-undress-generate {
  opacity: 0.55;
}

@keyframes home-studio-spin {
  to { transform: rotate(360deg); }
}

.home-studio__suggest {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: calc(100% + 0.4rem);
  z-index: 12;
  display: grid;
  gap: 0.1rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 0.85rem;
  background: rgba(12, 10, 10, 0.98);
  box-shadow: 0 0.75rem 1.6rem rgba(0, 0, 0, 0.55);
}

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

.home-studio__suggest-item {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  text-transform: capitalize;
  cursor: pointer;
}

.home-studio__suggest-item:hover {
  background: rgba(249, 115, 22, 0.18);
}

.home-studio__suggest-count {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Resultados da busca de personagem */
.home-studio__panel--results {
  width: min(100%, 48rem);
}

.home-studio__panel-head h2 {
  text-transform: capitalize;
}

.home-studio__results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.45rem;
  max-height: min(48dvh, 26rem);
  overflow-y: auto;
  padding: 0.1rem;
  scrollbar-width: thin;
  scrollbar-color: #f97316 transparent;
}

.home-studio__result {
  appearance: none;
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.3rem;
  background: #140f0c;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-studio__result:hover {
  border-color: rgba(251, 146, 60, 0.6);
  transform: translateY(-1px);
}

.home-studio__result.is-selected {
  border-color: #fb923c;
}

.home-studio__result img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-studio__result-check {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  font-size: 1.3rem !important;
  color: #fb923c;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

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

.home-studio__results-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 0.5rem;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.home-studio__more {
  appearance: none;
  justify-self: center;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.home-studio__more:hover {
  background: rgba(249, 115, 22, 0.18);
}

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

/* Referência escolhida */
.home-studio__reference {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.45rem 0.35rem 0.35rem;
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 0.75rem;
  background: rgba(22, 16, 12, 0.92);
  animation: home-studio-fade 0.2s ease both;
}

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

.home-studio__reference-img {
  width: 2.8rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.home-studio__reference-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.home-studio__reference-kicker {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fb923c;
}

.home-studio__reference-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-studio__reference-change,
.home-studio__reference-remove {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 238, 236, 0.16);
  background: rgba(18, 16, 20, 0.85);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.home-studio__reference-change {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.home-studio__reference-remove {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.home-studio__reference-remove .material-symbols-outlined {
  font-size: 1rem;
}

@media (max-width: 720px) {
  .home-studio-bg {
    gap: 0.4rem;
    padding: 0 0.4rem;
  }

  .home-studio__search-icon {
    display: none;
  }

  .home-studio__results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Estúdio ocupa toda a área abaixo do header; rodapé e intro do feed ficam fora */
.home-view-root--studio .home-feed-scroll--grid {
  bottom: 0 !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

.home-view-root--studio .feed-page-wrap {
  height: 100% !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
}

.home-view-root--studio .feed-page-wrap > .site-footer,
.home-view-root--studio #feed-section-intro,
.home-view-root--studio #creations-notice,
.home-view-root--studio .feed-float-generate,
.home-view-root--studio .feed-pagination {
  display: none !important;
}

.home-view-root--studio #feed-list.home-studio-feed-list {
  height: 100% !important;
  max-height: none !important;
  animation: none !important;
}

.home-studio__stage {
  justify-content: safe center;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.home-studio__stage::-webkit-scrollbar {
  display: none;
}

.home-studio__brand {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: none !important;
}

.home-studio__brand-accent {
  -webkit-text-fill-color: #fb923c;
}
