/* VERSION 05 — scoped corrections requested after V4 review. */

.creator-board[data-layout="mentor"] .board-media-primary img {
  object-position: center 44%;
  transform: scale(1.045);
}

/* 03 — phone-native TikTok-style live-commerce screen. */
.creator-board[data-layout="live-screen"] .board-stage {
  background:
    radial-gradient(circle at 30% 34%, rgba(212, 175, 55, 0.2), transparent 34%),
    #08080a;
}

.creator-board[data-layout="live-screen"] .board-media-primary {
  inset: 1rem auto 1rem 1rem;
  width: auto;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 7px solid #050506;
  border-radius: 1.55rem;
  box-shadow: 0 0 0 2px var(--orange), 10px 10px 0 rgba(212, 175, 55, 0.26);
}

.creator-board[data-layout="live-screen"] .board-media-primary img {
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
}

.creator-board[data-layout="live-screen"] .board-media-primary figcaption {
  display: none;
}

.creator-board[data-layout="live-screen"] .live-interface {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: var(--body);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0, transparent 18%, transparent 58%, rgba(0, 0, 0, 0.64) 86%, rgba(0, 0, 0, 0.78) 100%);
}

.live-topbar {
  position: absolute;
  top: 0.48rem;
  left: 0.46rem;
  right: 0.46rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.3rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.live-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: 0.56rem;
}

.live-profile {
  min-width: 0;
  display: grid;
  line-height: 1.06;
}

.live-profile b {
  overflow: hidden;
  font-size: 0.46rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-profile small {
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.38rem;
}

.live-follow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 21px;
  border-radius: 0.35rem;
  background: #ff2c55;
  font-size: 0.7rem;
  font-weight: 800;
}

.live-viewers {
  padding: 0.28rem 0.36rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.43rem;
}

.live-close {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1;
}

.live-campaign {
  position: absolute;
  top: 3.05rem;
  left: 0.5rem;
  right: 0.5rem;
  display: grid;
  gap: 0.08rem;
  padding: 0.4rem 0.48rem;
  color: #23180c;
  background: rgba(255, 244, 220, 0.88);
  border-left: 4px solid var(--orange);
  backdrop-filter: blur(8px);
}

.live-campaign strong {
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.05em;
}

.live-campaign span {
  font-size: 0.4rem;
}

.live-product-pins {
  position: absolute;
  top: 5.9rem;
  left: 0.5rem;
  width: 43%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.38rem;
  align-items: center;
  padding: 0.36rem;
  color: #1b1510;
  background: rgba(255, 250, 240, 0.92);
  border-radius: 0.36rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
}

.live-product-thumb {
  position: relative;
  height: 42px;
  border-radius: 0.24rem;
  background: linear-gradient(145deg, #fff 0 38%, #e9c49b 39% 100%);
}

.live-product-thumb::before,
.live-product-thumb::after,
.live-product-thumb i {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 8px;
  border-radius: 4px 4px 2px 2px;
  background: #b98f60;
}

.live-product-thumb::before {
  left: 7px;
  height: 22px;
}

.live-product-thumb::after {
  left: 18px;
  height: 29px;
  background: #f5ede1;
  border: 1px solid #b98f60;
}

.live-product-thumb i {
  left: 28px;
  height: 17px;
  background: #d8a7a2;
}

.live-product-pins > span {
  min-width: 0;
  display: grid;
  line-height: 1.12;
}

.live-product-pins small {
  color: rgba(27, 21, 16, 0.52);
  font-size: 0.34rem;
}

.live-product-pins b {
  margin-top: 0.08rem;
  overflow: hidden;
  font-size: 0.45rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-product-pins em {
  margin-top: 0.16rem;
  color: #d12045;
  font-size: 0.34rem;
  font-style: normal;
  font-weight: 800;
}

.creator-board[data-layout="live-screen"] .live-comments {
  position: absolute;
  z-index: 2;
  left: 0.48rem;
  right: 2.35rem;
  top: auto;
  bottom: 3.15rem;
  width: auto;
  display: grid;
  gap: 0.22rem;
}

.creator-board[data-layout="live-screen"] .live-comments p {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.4rem;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(20, 20, 24, 0.5);
  border: 0;
  border-radius: 0.65rem;
  backdrop-filter: blur(7px);
  font-size: 0.4rem;
  line-height: 1.25;
}

.creator-board[data-layout="live-screen"] .live-comments b {
  display: inline;
  margin-right: 0.25rem;
  color: #62d4f5;
  font-size: inherit;
}

.live-actions {
  position: absolute;
  right: 0.48rem;
  bottom: 3.25rem;
  display: grid;
  gap: 0.34rem;
}

.live-actions span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(13, 13, 15, 0.48);
  font-size: 0.7rem;
}

.live-hearts {
  position: absolute;
  right: 2.75rem;
  bottom: 4.8rem;
  display: grid;
  gap: 0.2rem;
  color: #ff4870;
  font-size: 0.7rem;
  transform: rotate(-8deg);
}

.live-hearts i {
  font-style: normal;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.live-hearts i:nth-child(2) {
  color: #53d8f2;
  transform: translateX(-7px) scale(0.78);
}

.live-hearts i:nth-child(3) {
  color: #ffd0dd;
  transform: translateX(4px) scale(0.66);
}

.live-composer {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.48rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  align-items: center;
  gap: 0.32rem;
}

.live-composer > span {
  overflow: hidden;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(13, 13, 15, 0.34);
  font-size: 0.4rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-composer b {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  font-size: 0.57rem;
  font-weight: 600;
}

.creator-board[data-layout="live-screen"] .board-information {
  right: 0.85rem;
  bottom: 4.2rem;
  width: 41%;
  z-index: 10;
}

.creator-board[data-layout="live-screen"] .board-brand-mark {
  top: 0.75rem;
  right: 0.75rem;
}

/* 04 — restore V3 editorial composition; replace only portrait region. */
.creator-board[data-layout="editorial"] .board-media-primary {
  inset: 1rem auto 1rem 1rem;
  width: 58%;
  background: #0d0d0f;
}

.creator-board[data-layout="editorial"] .board-media-primary img {
  object-fit: fill;
  object-position: center;
  filter: none;
}

.creator-board[data-layout="editorial"] .board-media-secondary {
  top: 3.8rem;
  right: 1rem;
  width: 34%;
  aspect-ratio: 1;
  height: auto;
  box-shadow: 7px 7px 0 var(--orange);
}

.creator-board[data-layout="editorial"] .board-media-secondary img {
  object-fit: contain;
  filter: none;
}

.creator-board[data-layout="editorial"] .board-information {
  right: 1rem;
  bottom: 1.2rem;
  width: 38%;
}

.creator-board[data-layout="editorial"] .board-brand-mark {
  display: none;
}

.lang-ptbr .creator-board[data-layout="editorial"] .board-information {
  width: 42%;
  padding: 0.72rem;
}

.lang-ptbr .creator-board[data-layout="editorial"] .board-information > span {
  font-size: 0.45rem;
}

.lang-ptbr .creator-board[data-layout="editorial"] .board-information > p {
  font-size: 0.62rem;
}

.lang-ptbr .creator-board[data-layout="editorial"] .board-facts li {
  padding: 0.34rem 0.22rem;
  font-size: 0.4rem;
  letter-spacing: -0.02em;
}

@media (max-width: 560px) {
  .creator-board[data-layout="live-screen"] .board-media-primary {
    left: 0.65rem;
    top: 0.65rem;
    bottom: 0.65rem;
  }

  .creator-board[data-layout="live-screen"] .board-information {
    right: 0.65rem;
    bottom: 4rem;
    width: 44%;
  }

  .live-product-pins {
    top: 5.65rem;
    width: 46%;
  }

  .creator-board[data-layout="live-screen"] .live-comments p:nth-child(n + 4) {
    display: none;
  }

  .creator-board[data-layout="editorial"] .board-media-primary {
    width: 56%;
  }

  .creator-board[data-layout="editorial"] .board-media-secondary,
  .creator-board[data-layout="editorial"] .board-information {
    width: 38%;
  }

  .lang-ptbr .creator-board[data-layout="editorial"] .board-information {
    width: 42%;
  }
}
