/* Actress profile page */

.actress-detail-page .page-main.actress-profile {
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.actress-profile {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Breadcrumb */
.actress-detail-page .breadcrumb {
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  width: 100%;
}

.actress-detail-page .breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
}

.actress-detail-page .breadcrumb a:hover {
  color: var(--color-primary-500);
}

.actress-detail-page .breadcrumb__current {
  color: var(--text-secondary);
}

/* Profile header */
.actress-profile__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.actress-profile__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-neutral-200);
  flex-shrink: 0;
}

.actress-profile__name {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 22px;
}

.actress-profile__bio {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.actress-profile__divider {
  height: 1px;
  background: var(--color-black-alpha-10);
}

/* Toolbar */
.actress-profile__toolbar {
  align-self: stretch;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actress-profile__count {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-primary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
}

.actress-detail-page .actress-profile__toolbar .list-toolbar__sorts {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  flex-shrink: 0;
}

.actress-detail-page .actress-profile__toolbar .list-toolbar__sort {
  text-decoration: none;
  font-size: 18px;
  line-height: 24px;
}

.actress-detail-page .actress-profile__toolbar .list-toolbar__sort--active {
  color: var(--color-primary-500, #8859f9);
  font-weight: 500;
}

.actress-profile__sorts {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  flex-shrink: 0;
}

.actress-profile__sort {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

.actress-profile__sort:hover {
  color: var(--color-primary-500);
}

.actress-profile__sort--active {
  color: var(--color-primary-500);
  font-weight: 500;
}

.actress-profile__sort-arrows {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
  width: 6px;
  flex-shrink: 0;
}

.actress-profile__sort-arrow {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  flex-shrink: 0;
}

.actress-profile__sort-arrow--up {
  border-bottom: 5px solid var(--color-primary-500);
}

.actress-profile__sort-arrow--up.actress-profile__sort-arrow--active {
  opacity: 1;
}

.actress-profile__sort-arrow--down {
  border-top: 5px solid var(--color-primary-500);
}

.actress-profile__sort-arrow--down.actress-profile__sort-arrow--active {
  opacity: 1;
}

/* Works grid */
.actress-profile__works {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.actress-detail-page .actress-profile__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}

/* Video card */
.actress-detail-page .actress-profile__grid .video-card {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.actress-detail-page .actress-profile__grid .video-card__cover {
  align-self: stretch;
  width: 100%;
  height: 175px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.actress-detail-page .actress-profile__grid .video-card__placeholder {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  background: var(--color-neutral-200);
}

.actress-detail-page .actress-profile__grid .video-card__logo-wrap {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  opacity: 0.2;
  display: inline-flex;
  align-items: flex-end;
}

.actress-detail-page .actress-profile__grid .brand-logo {
  color: var(--color-primary-500);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 32px;
}

.actress-detail-page .actress-profile__grid .video-card__image {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  object-fit: cover;
}

.actress-detail-page .actress-profile__grid .media-card__body {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.actress-detail-page .actress-profile__grid .video-card__play {
  align-self: stretch;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.actress-detail-page .actress-profile__grid .media-card__title {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 20px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 28px;
}

.actress-detail-page .actress-profile__grid .media-card__body > .section-header {
  align-self: stretch;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actress-detail-page .actress-profile__grid .section-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actress-detail-page .actress-profile__grid .meta-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.actress-detail-page .actress-profile__grid .meta-stat__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actress-detail-page .actress-profile__grid .meta-stat__icon .icon {
  width: 22px;
  height: 22px;
}

.actress-detail-page .actress-profile__grid .meta-tag {
  display: flex;
  align-items: center;
}

.actress-detail-page .actress-profile__grid .meta-tag__text {
  color: var(--text-secondary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 22px;
}

/* Ad card in grid */
.actress-detail-page .actress-profile__grid .grid-ad-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.actress-detail-page .actress-profile__grid .grid-ad-card--video .grid-ad-card__cover {
  width: 100%;
  height: 175px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.actress-detail-page .actress-profile__grid .grid-ad-card--video .grid-ad-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actress-detail-page .actress-profile__grid .grid-ad-card--video .grid-ad-card__title {
  color: var(--text-primary);
  font-size: 20px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .actress-detail-page .actress-profile__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .actress-detail-page .page-main.actress-profile {
    gap: 18px;
    padding: 12px 16px;
  }

  .actress-profile {
    gap: 18px;
  }

  .actress-detail-page .breadcrumb {
    font-size: 12px;
    line-height: 18px;
  }

  .actress-profile__bio {
    font-size: 12px;
    line-height: 18px;
  }

  .actress-profile__toolbar {
    align-items: center;
    flex-direction: row;
  }

  .actress-profile__count {
    font-size: 12px;
    line-height: 18px;
  }

  .actress-detail-page .actress-profile__toolbar .list-toolbar__sorts {
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
    justify-content: flex-end;
  }

  .actress-detail-page .actress-profile__toolbar .list-toolbar__sort {
    gap: 4px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 18px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .actress-detail-page .actress-profile__toolbar .list-toolbar__sort--active {
    color: var(--color-primary-500, #8859f9);
    font-weight: 600;
  }

  .actress-profile__works {
    gap: 18px;
  }

  .actress-detail-page .actress-profile__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: flex-start;
    gap: 12px 0;
  }

  .actress-detail-page .actress-profile__grid .video-card,
  .actress-detail-page .actress-profile__grid .grid-ad-card {
    width: calc(50% - 3.5px);
    max-width: 168px;
    gap: 6px;
    border-radius: 9px;
    overflow: hidden;
  }

  .actress-detail-page .actress-profile__grid .video-card__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 168 / 96;
    border-radius: 6px;
  }

  .actress-detail-page .actress-profile__grid .video-card__placeholder,
  .actress-detail-page .actress-profile__grid .video-card__logo-wrap {
    left: 34.5px;
    top: 32px;
    transform: none;
  }

  .actress-detail-page .actress-profile__grid .video-card__image {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
  }

  .actress-detail-page .actress-profile__grid .media-card__body {
    gap: 2px;
    width: 100%;
  }

  .actress-detail-page .actress-profile__grid .video-card__play {
    justify-content: flex-start;
  }

  .actress-detail-page .actress-profile__grid .media-card__title {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    display: block;
    white-space: nowrap;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }

  .actress-detail-page .actress-profile__grid .section-header__left {
    gap: 6px;
  }

  .actress-detail-page .actress-profile__grid .meta-stat {
    gap: 2px;
  }

  .actress-detail-page .actress-profile__grid .meta-stat__icon,
  .actress-detail-page .actress-profile__grid .meta-stat__icon .icon {
    width: 16px;
    height: 16px;
  }

  .actress-detail-page .actress-profile__grid .meta-tag__text {
    font-size: 10px;
    line-height: 16px;
  }

  .actress-detail-page .actress-profile__grid .grid-ad-card--video {
    gap: 6px;
  }

  .actress-detail-page .actress-profile__grid .grid-ad-card--video .grid-ad-card__cover {
    width: 100%;
    height: auto;
    aspect-ratio: 168 / 96;
    border-radius: 6px;
  }

  .actress-detail-page .actress-profile__grid .grid-ad-card--video .grid-ad-card__title {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }
}
