/* Figma 短剧展示样式 51173:439478：168×224 封面 + 标题 + 标签·热播/收藏 */

.mobile-short-drama-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  overflow: visible;
  color: rgba(255, 255, 255, .9);
}

.mobile-short-drama-card__link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.mobile-short-drama-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 168 / 224;
  overflow: hidden;
  border-radius: 6px;
  /* Figma 51173:439141 竖版 两年半占位；底色 #3d3d3d（与 img 同源，避免叠旧快看底） */
  background: #3d3d3d url("/static/images/mobile-short-drama-placeholder.png?v=20261023-lnb-ph-2") center / cover no-repeat;
}

.mobile-short-drama-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-short-drama-card__image[data-image-reveal]:not([data-image-state]) {
  opacity: 0;
}

.mobile-short-drama-card__shade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6));
  pointer-events: none;
}

.mobile-short-drama-card__badges {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
}

/* 两年半 45787:272705：VIP / 热门 / 金币 / 爆剧 20px 渐变块；免费不显示 */
.mobile-short-drama-card__badge {
  display: inline-flex;
  box-sizing: border-box;
  flex: none;
  width: 24px;
  height: 18px;
  padding: 0 0 3px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
}

.mobile-short-drama-card__badge--vip,
.mobile-short-drama-card__badge--hot,
.mobile-short-drama-card__badge--coin,
.mobile-short-drama-card__badge--featured {
  width: auto;
  height: 20px;
  padding: 2px 8px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  line-height: 16px;
}

.mobile-short-drama-card__badge--vip,
.mobile-short-drama-card__badge--hot,
.mobile-short-drama-card__badge--featured {
  min-width: 38px;
}

.mobile-short-drama-card__badge--vip {
  background: linear-gradient(233deg, rgba(255, 164, 88, .6), rgba(254, 87, 30, .6));
}

.mobile-short-drama-card__badge--coin {
  min-width: 52px;
  padding: 2px 3px;
  background: linear-gradient(111deg, rgba(248, 243, 174, .6), rgba(221, 172, 68, .6));
}

.mobile-short-drama-card__badge--hot {
  padding: 2px 5px;
  background: linear-gradient(298deg, rgba(255, 233, 33, .8), rgba(255, 54, 1, .8));
}

/* 角标-爆剧 49307:198256 */
.mobile-short-drama-card__badge--featured {
  padding: 2px 5px;
  background: linear-gradient(298deg, rgba(255, 176, 32, .8) 0%, rgba(255, 92, 51, .8) 49.519%, rgba(255, 1, 5, .8) 100%);
}

/* Figma 封面信息右下：34×24、#000@0.7、圆角 6、10/16 */
.mobile-short-drama-card__status {
  position: absolute;
  right: 8px;
  bottom: 4px;
  z-index: 2;
  display: flex;
  min-width: 32px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
}

.mobile-short-drama-card__status--vip,
.mobile-short-drama-card__status--hot {
  min-width: 0;
  min-height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 9px;
}

.mobile-short-drama-card__status--coin {
  min-width: 0;
  min-height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(233, 181, 75, .92);
  color: #080808;
  font-size: 9px;
}

.mobile-short-drama-card__title {
  display: -webkit-box;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.mobile-short-drama-card__footer {
  display: flex;
  min-width: 0;
  height: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.mobile-short-drama-card__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.mobile-short-drama-card__meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Figma 收藏：Iconly/Bold/Star 16×16 + 数字 12/16，行高 16，间距 4 */
.mobile-short-drama-card__favorite {
  display: flex;
  min-width: 38px;
  height: 40px;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  margin: -12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* 已收藏 #FF5412。星按 aria-pressed，不看 data-favorite-state。 */
.mobile-short-drama-card__favorite[aria-pressed="true"] b {
  color: #FF5412;
  -webkit-text-fill-color: #FF5412;
}

.mobile-short-drama-card__favorite[aria-pressed="true"] .favorite-motion__star img,
.mobile-short-drama-card__favorite[aria-pressed="true"] .favorite-motion[data-favorite-state="active"] .favorite-motion__star img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(86%) saturate(2878%) hue-rotate(353deg) brightness(101%) contrast(107%);
}

.mobile-short-drama-card__favorite .favorite-motion.is-collecting .favorite-motion__star img,
.mobile-short-drama-card__favorite .favorite-motion.is-uncollecting .favorite-motion__star img {
  animation-name: favorite-star-color-primary;
}

.mobile-short-drama-card__favorite .favorite-motion__sparkle i {
  background: #FF5412;
}

@keyframes favorite-star-color-primary {
  0%,
  21.429% { filter: var(--favorite-motion-inactive-filter, brightness(0) invert(1)); }
  21.43%,
  100% { filter: brightness(0) saturate(100%) invert(32%) sepia(86%) saturate(2878%) hue-rotate(353deg) brightness(101%) contrast(107%); }
}

.mobile-short-drama-card__favorite:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(255, 211, 1, .72);
}

.mobile-short-drama-card__favorite .favorite-motion,
.mobile-short-drama-card__favorite .favorite-motion--card {
  --favorite-motion-icon-size: 16px;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.mobile-short-drama-card__favorite .favorite-motion__star {
  width: 16px;
  height: 16px;
}

.mobile-short-drama-card__favorite b { font-weight: 400; }

/* 点赞指标：图标/数字与收藏同尺寸（16×16 + 12/16），色值对齐 PC 心形粉 */
.mobile-short-drama-card__favorite--like {
  color: #f52c56;
  cursor: default;
  pointer-events: none;
}

.mobile-short-drama-card__like-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.mobile-short-drama-card__favorite--like b {
  background: none;
  color: #f52c56;
  -webkit-text-fill-color: #f52c56;
}

/* H5「我的」短剧卡 45149:336049：111×148，无免费角标，选中描边+主色标题 */
.mobile-short-drama-card--profile {
  gap: 4px;
}

.mobile-short-drama-card--profile .mobile-short-drama-card__cover {
  aspect-ratio: 111 / 148;
  border: 1px solid transparent;
}

.mobile-short-drama-card--profile .mobile-short-drama-card__play {
  position: absolute;
  z-index: 2;
  bottom: 5px;
  left: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.mobile-short-drama-card--profile .mobile-short-drama-card__status {
  right: 8px;
  bottom: 5px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 10px;
  line-height: 16px;
}

.mobile-short-drama-card--profile .mobile-short-drama-card__badge {
  width: auto;
  height: 11px;
  min-width: 0;
  padding: 0.5px 1px;
  border-radius: 0 0 2px 0;
  font-size: 8px;
  font-weight: 400;
  line-height: 10px;
}

.mobile-short-drama-card--profile .mobile-short-drama-card__badge--vip {
  min-width: 16px;
  background: linear-gradient(239.95deg, rgba(255, 164, 88, .6) 2.8%, rgba(254, 87, 30, .6) 82.95%);
}

.mobile-short-drama-card--profile .mobile-short-drama-card__badge--coin {
  min-width: 27px;
  color: #000;
  background: linear-gradient(148.57deg, rgba(248, 243, 174, .6) 0%, rgba(221, 172, 68, .6) 100%);
}

.mobile-short-drama-card--profile .mobile-short-drama-card__badge--featured,
.mobile-short-drama-card--profile .mobile-short-drama-card__badge--hot {
  min-width: 18px;
}

.mobile-short-drama-card--profile .mobile-short-drama-card__title {
  min-height: 18px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.mobile-short-drama-card--profile:focus-within .mobile-short-drama-card__cover,
.mobile-short-drama-card--profile.is-selected .mobile-short-drama-card__cover,
.mobile-short-drama-card--profile:active .mobile-short-drama-card__cover {
  border-color: #ff5412;
}

.mobile-short-drama-card--profile:focus-within .mobile-short-drama-card__title,
.mobile-short-drama-card--profile.is-selected .mobile-short-drama-card__title,
.mobile-short-drama-card--profile:active .mobile-short-drama-card__title {
  background-image: linear-gradient(144.25deg, #ff9d70 0%, #ff5412 51.923%, #ff883e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mobile-profile-grid--drama .mobile-short-drama-card--profile .mobile-short-drama-card__meta {
  display: none;
}

.mobile-short-drama-card--profile .mobile-short-drama-card__favorite {
  display: none;
}
