.brand-plate--entry {
  position: relative;
}

.brand-plate__entry-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline-end: 32px;
  border-radius: inherit;
  color: #243640;
  text-decoration: none;
}

.brand-plate.is-dark .brand-plate__entry-link {
  color: #fff;
  background: linear-gradient(90deg, transparent 62%, rgb(0 22 37 / 26%));
}

.brand-plate__entry-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.brand-plate__entry-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 5px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.35;
  white-space: nowrap;
}

.brand-plate__entry-link:hover .brand-plate__entry-copy,
.brand-plate__entry-link:focus-visible .brand-plate__entry-copy {
  border-color: currentColor;
}
/* 公仔頁（.page-toys）先有膠囊底；其他類別維持底線樣式。 */
.page-toys .brand-plate__entry-link {
  padding-inline-end: 20px;
}
.page-toys .brand-plate.is-dark .brand-plate__entry-link {
  background: none;
}
.page-toys .brand-plate__entry-copy {
  padding: 5px 12px;
  border-bottom: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.page-toys .brand-plate__entry-link:hover .brand-plate__entry-copy,
.page-toys .brand-plate__entry-link:focus-visible .brand-plate__entry-copy {
  background: #fff;
  box-shadow: 0 0 0 1px rgb(109 163 181 / 70%);
}
.page-toys .brand-plate.is-dark .brand-plate__entry-copy {
  background: rgb(0 22 37 / 55%);
}
.page-toys .brand-plate.is-dark .brand-plate__entry-link:hover .brand-plate__entry-copy,
.page-toys .brand-plate.is-dark .brand-plate__entry-link:focus-visible .brand-plate__entry-copy {
  background: rgb(0 22 37 / 72%);
}

.brand-plate__entry-label--compact {
  display: none;
}

.brand-plate__entry-arrow {
  position: relative;
  width: 12px;
  height: 1px;
  background: currentColor;
}

.brand-plate__entry-arrow::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .lx-page .brand-plate--entry:not(.has-banner) {
    /* Centre the logo in the full banner. The label is an overlay. */
    min-height: 84px;
  }

  .brand-plate__entry-link {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 14px 6px;
  }

  .brand-plate__entry-copy {
    padding-block: 0 3px;
    font-size: 12px;
    line-height: 1;
  }

  .brand-plate__entry-label--full { display: none; }
  .brand-plate__entry-label--compact { display: inline; }

  .brand-plate.is-dark .brand-plate__entry-link {
    background: linear-gradient(180deg, transparent 56%, rgb(0 22 37 / 27%));
  }
  .page-toys .brand-plate__entry-link {
    padding: 0 6px 6px;
  }
  .page-toys .brand-plate.is-dark .brand-plate__entry-link {
    background: none;
  }
  .page-toys .brand-plate__entry-copy {
    padding: 3px 8px;
  }
}
