/* Shared desktop short-drama card. Keep all visual changes for this component here. */
/* Figma 51065:403480 — 5 列 × 230px，gap 24×12；角标对齐长视频 + 爆剧 */
@media (min-width: 769px) {
  .pc-short-drama-grid,
  .person-center-page .mobile-profile-grid.pc-short-drama-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .pc-short-drama-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
  }

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

  .pc-short-drama-card__cover {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
    /* Figma 51173:439141 竖版 91漫剧占位（勿再用横版播放页占位，避免与 img 叠出双品牌） */
    background: #3d3d3d url("/static/images/pc-short-drama-placeholder.png?v=20261013-91-drama-1") center / cover no-repeat;
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  /* Figma 样式4.2 悬停：金描边叠在封面上；默认透明 */
  .pc-short-drama-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1.5px transparent;
    pointer-events: none;
    transition: box-shadow 0.2s ease;
  }

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

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

  .pc-short-drama-card__shade {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
    pointer-events: none;
  }

  .pc-short-drama-card__badges {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* 与 pc-long-video-card__badge 对齐；爆剧为短剧独有 */
  .pc-short-drama-card__badge {
    padding: 2px 4px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
  }

  .pc-short-drama-card__badge--vip {
    background: linear-gradient(90deg, #fc6ea0 8%, #f04066 100%);
  }

  .pc-short-drama-card__badge--coin {
    background: linear-gradient(90deg, #aa7fff 0%, #7833f7 51%);
  }

  .pc-short-drama-card__badge--hot {
    background: linear-gradient(90deg, #fe571e 0%, #ffab65 100%);
  }

  .pc-short-drama-card__badge--featured {
    background: linear-gradient(90deg, #ff0000 0%, #ff6e6e 100%);
  }

  /* Figma「53集」：16.9474 / 24，高 25；白字 */
  .pc-short-drama-card__status {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    height: 25px;
    min-width: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16.9474px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
  }

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

  /* Figma 标题下方：230×25，左 meta 次要色 + 右收藏金星/数字 */
  .pc-short-drama-card__footer {
    display: flex;
    min-width: 0;
    height: 25px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    align-self: stretch;
  }

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

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

  /* Figma 收藏组 49.21×25：星 19.37 + gap 4.84；未藏白 / 已藏金 */
  .pc-short-drama-card__metric,
  .pc-short-drama-card__favorite {
    display: inline-flex;
    min-width: 0;
    height: 25px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
  }

  .pc-short-drama-card__favorite { cursor: pointer; }
  .pc-short-drama-card__metric { color: #fff; }
  .pc-short-drama-card__metric:not(.pc-short-drama-card__metric--like) img {
    filter: brightness(0) invert(1);
  }
  .pc-short-drama-card__metric.pc-short-drama-card__metric--favorite-active img { filter: none; }
  .pc-short-drama-card__metric--like { color: #ff4d67; }
  .pc-short-drama-card__metric img { width: 19px; height: 19px; object-fit: contain; }
  .pc-short-drama-card__metric b,
  .pc-short-drama-card__favorite b {
    display: inline-flex;
    height: 25px;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }
  .pc-short-drama-card__favorite[aria-pressed="true"] b,
  .pc-short-drama-card__metric.pc-short-drama-card__metric--favorite-active b {
    background: linear-gradient(135deg, #ffe580 0%, #facc15 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  .pc-short-drama-card__metric--like b {
    background: none;
    color: #ff4d67;
    -webkit-text-fill-color: #ff4d67;
  }
  /*
   * 星是 PNG（mobile-douyin-favorite-active.png），120 画布有效星约 57%，
   * 若按稿面盒宽 19px 会比 17px 数字明显偏小；放大到 28px → 视觉约 16px，对齐数字。
   */
  .pc-short-drama-card__favorite .favorite-motion--card {
    --favorite-motion-icon-size: 28px;
    --favorite-motion-inactive-filter: brightness(0) invert(1);
  }
  .pc-short-drama-card__favorite:focus-visible,
  .pc-short-drama-card__link:focus-visible { border-radius: 8px; outline: 2px solid #ffb800; outline-offset: 3px; }

  /*
   * Figma 短剧首页 51065:403551「样式=样式4.2」悬停：
   * 封面 scale(1.035) + 内侧金描边 #FFB800 ~1.4px + 外发光 rgba(246,136,4) r≈18；
   * 标题保持白 90%；无全幅暗罩 / 播放键。
   */
  .pc-short-drama-card:hover .pc-short-drama-card__cover,
  .pc-short-drama-card__link:focus-visible .pc-short-drama-card__cover {
    z-index: 1;
    transform: scale(1.035);
    filter: drop-shadow(0 0 18px rgba(246, 136, 4, 1));
  }

  .pc-short-drama-card:hover .pc-short-drama-card__cover::after,
  .pc-short-drama-card__link:focus-visible .pc-short-drama-card__cover::after {
    box-shadow: inset 0 0 0 1.5px #ffb800;
  }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
  .pc-short-drama-card__cover,
  .pc-short-drama-card__cover::after {
    transition: none;
  }
}
