/* 西瓜模板补丁：懒加载封面、账号菜单、7251 播放器挂载。不改源 CSS 桶。 */
html.xigua-page,
html.detail-7317-page,
html.video-7251-page {
  min-height: 100%;
}

/* 正式站根滚动条常驻 10px，固定页头 / 悬浮按钮按扣除滚动条后的宽度定位；源 CSS 桶只在 shell 内生效。 */
:root { scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { min-height: 28px; background-color: #787878; background-clip: padding-box; border-radius: 5px; }
::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-thumb:hover { background-color: #999; }
::-webkit-scrollbar-track:hover { background-color: rgba(0, 0, 0, .05); box-shadow: inset 1px 0 0 rgba(0, 0, 0, .1); }

/* 频道页不在 detail shell 内时，补齐正式站高分角标色。 */
.hg-drama-card__badge--high-score,
.work-card__badge--score {
  background: #f51fb1;
}

/* 压过源 CSS「img:not([width]):not([height]){object-fit:contain}」，避免竖图封面左右黑边。 */
.work-card__poster > img,
.work-card__poster img.lazy,
.hg-drama-card__cover > img,
.hg-drama-card__cover img.lazy,
.hg-hero__bg-img,
.hg-hero__thumb img,
.hg-home-rank__thumb img,
.hg-web-detail__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

.hg-header__user {
  position: relative;
}

.site-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #2b2b2b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 148px;
  padding: 8px 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  z-index: 40;
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: #fff;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.user-menu a:hover,
.user-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.vd-player-mount {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.vd-player-mount video,
.xigua-play-stage .pc-drama-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.xigua-play-stage .pc-drama-player,
.xigua-play-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 播放加载菊花：源站 xgplayer-enter-spinner 同参（70px、12 瓣、1s 轮转淡出）；层级低于片头广告(11) */
.pc-drama-player__loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  pointer-events: none;
}

.pc-drama-player.is-loading .pc-drama-player__loading { display: block; }
.pc-drama-player.is-loading .pc-drama-player__toggle,
.pc-drama-player.is-auto-nexting .pc-drama-player__toggle { opacity: 0; pointer-events: none; }

.pc-drama-player__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
}

.pc-drama-player__spinner i {
  position: absolute;
  top: 45%;
  left: 45%;
  width: 6%;
  height: 13%;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: pc-drama-spinner-fade 1s linear infinite;
}

.pc-drama-player__spinner i:nth-child(1) { transform: rotate(0deg) translateY(-140%); animation-delay: 0s; }
.pc-drama-player__spinner i:nth-child(2) { transform: rotate(30deg) translateY(-140%); animation-delay: -0.9163s; }
.pc-drama-player__spinner i:nth-child(3) { transform: rotate(60deg) translateY(-140%); animation-delay: -0.833s; }
.pc-drama-player__spinner i:nth-child(4) { transform: rotate(90deg) translateY(-140%); animation-delay: -0.7497s; }
.pc-drama-player__spinner i:nth-child(5) { transform: rotate(120deg) translateY(-140%); animation-delay: -0.6664s; }
.pc-drama-player__spinner i:nth-child(6) { transform: rotate(150deg) translateY(-140%); animation-delay: -0.5831s; }
.pc-drama-player__spinner i:nth-child(7) { transform: rotate(180deg) translateY(-140%); animation-delay: -0.4998s; }
.pc-drama-player__spinner i:nth-child(8) { transform: rotate(210deg) translateY(-140%); animation-delay: -0.4165s; }
.pc-drama-player__spinner i:nth-child(9) { transform: rotate(240deg) translateY(-140%); animation-delay: -0.3332s; }
.pc-drama-player__spinner i:nth-child(10) { transform: rotate(270deg) translateY(-140%); animation-delay: -0.2499s; }
.pc-drama-player__spinner i:nth-child(11) { transform: rotate(300deg) translateY(-140%); animation-delay: -0.1666s; }
.pc-drama-player__spinner i:nth-child(12) { transform: rotate(330deg) translateY(-140%); animation-delay: -0.0833s; }

@keyframes pc-drama-spinner-fade {
  from { opacity: 1; }
  to { opacity: 0.25; }
}

.hg-auth-form__error {
  min-height: 18px;
  margin: 0 0 8px;
  color: #ff5d5d;
  font-size: 12px;
}

.hg-share-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 13px;
}

.hg-header__login[hidden],
.hg-header__user[hidden],
.user-menu[hidden],
.cyber-user__menu[hidden],
.hg-header__search-btn-icon[hidden],
.hg-auth-modal[hidden],
.hg-auth-modal:not(.is-open) {
  display: none !important;
}

.hg-auth-modal.is-open {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 12000;
  align-items: center;
  justify-content: center;
}

/* 7251 播放页复用会员弹层 DOM，但未挂 pc-content / mobile-short-drama CSS；
   缺样式时 position:static，弹层沉到页底，VIP 集点击像无反应。 */
.video-7251-page .short-drama-vip-dialog[hidden],
.video-7251-page .short-drama-unlock-dialog__condition[hidden] {
  display: none !important;
}

.video-7251-page .short-drama-vip-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}

.video-7251-page .short-drama-vip-dialog__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.7);
}

.video-7251-page .short-drama-vip-dialog__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.video-7251-page .short-drama-vip-dialog__panel {
  width: 400px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#0d0e0f, #0d0e0f) padding-box,
    linear-gradient(136deg, #ff5412 0%, rgba(255, 255, 255, 0) 51.442%, #ffd301 100%) border-box;
  box-shadow: inset 0 2px 8px rgba(255, 217, 177, 0.4);
  color: #fff;
}

.video-7251-page .short-drama-vip-dialog__panel:focus {
  outline: none;
}

.video-7251-page .short-drama-vip-dialog__content {
  display: flex;
  box-sizing: border-box;
  min-height: 174px;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px 0;
  text-align: center;
}

.video-7251-page .short-drama-vip-dialog__title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

.video-7251-page .short-drama-vip-dialog__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
}

.video-7251-page .short-drama-unlock-dialog__condition {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.video-7251-page .short-drama-unlock-dialog__condition p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.video-7251-page .short-drama-unlock-dialog__condition strong {
  color: #ff5412;
  font-weight: 400;
}

.video-7251-page .short-drama-vip-dialog__footer {
  display: flex;
  box-sizing: border-box;
  height: 92px;
  gap: 12px;
  padding: 24px;
}

.video-7251-page .short-drama-vip-dialog__button {
  display: inline-flex;
  height: 44px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
}

.video-7251-page .short-drama-vip-dialog__button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #656565;
}

.video-7251-page .short-drama-vip-dialog__button--secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.video-7251-page .short-drama-vip-dialog__button--primary {
  background: #ff5412;
  color: #000;
  -webkit-text-fill-color: #000;
}

.video-7251-page .short-drama-vip-dialog__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.video-7251-page .short-drama-vip-dialog__close img {
  display: block;
  width: 36px;
  height: 36px;
}

/* 点赞/收藏沿用 is-active，配色对齐原站 is-liked / is-favorited。 */
.video-7251-shell .hg-web-play__like-icon,
.video-7251-shell .hg-web-play__collect-icon {
  display: block;
  flex: none;
}

.video-7251-shell .hg-web-play__action.is-active[data-short-drama-like] {
  color: #fb3643;
  border-color: #fb3643;
}

.video-7251-shell .hg-web-play__action.is-active[data-short-drama-like] .hg-web-play__like-icon,
.video-7251-shell .hg-web-play__action.is-active[data-short-drama-favorite],
.video-7251-shell .hg-web-play__action.is-active[data-short-drama-favorite] .hg-web-play__collect-icon {
  color: #fb3643;
}

/* 头像悬停弹层 + 用户中心。尺寸对齐 xiguaai.net，头像底色按截图灰圆。 */
.hg-header,
.header.hg-header,
.hg-header__inner {
  overflow: visible;
}

.hg-header {
  z-index: 40;
}

.hg-avatar,
.detail-7317-shell .hg-avatar,
.detail-7251-shell .hg-avatar,
.video-7251-shell .hg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #8c8c8c;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.detail-7317-shell .hg-header .cyber-user__avatar,
.detail-7251-shell .hg-header .cyber-user__avatar,
.video-7251-shell .hg-header .cyber-user__avatar {
  background: #8c8c8c;
}

.hg-header .cyber-user {
  position: relative;
  flex-shrink: 0;
}

.hg-header .cyber-user__avatar {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 25px;
  overflow: hidden;
  display: block;
  background: #8c8c8c;
  cursor: pointer;
}

.hg-header .cyber-user__avatar .hg-avatar {
  width: 100%;
  height: 100%;
  font-size: 21px;
}

.hg-header .cyber-user__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 254px;
  min-width: 0;
  padding: 0;
  z-index: 12010;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #3a3f49;
  border-radius: 10px;
  background: #151116;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hg-header .cyber-user.is-open::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 254px;
  height: 10px;
}

.hg-header .cyber-user__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 37px 28px 21px;
  border-bottom: 1px solid #3a3f49;
}

.hg-header .cyber-user__ava {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hg-header .cyber-user__ava .hg-avatar {
  width: 60px;
  height: 60px;
  font-size: 44px;
}

.hg-header .cyber-user__meta {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.hg-header .cyber-user__name {
  display: block;
  margin: 0;
  min-width: 0;
  color: #f4f4f7;
  font-size: 18px;
  line-height: 38px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-header .cyber-user__account {
  display: block;
  color: #8d95a5;
  font-size: 14px;
  line-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-header .cyber-user__items {
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding: 16px 28px 21px;
}

.hg-header .cyber-user__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d8dce4;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.hg-header .cyber-user__item img {
  display: block;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.hg-header .cyber-user__item:hover,
.hg-header .cyber-user__item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f7;
}

.hg-profile-follows {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1664px + 2 * var(--hg-page-gutter, 24px));
  margin: 0 auto;
  padding: 20px var(--hg-page-gutter, 24px) 48px;
}

@media (min-width: 1024px) {
  .hg-profile-follows {
    --hg-page-gutter: clamp(24px, calc((100vw - 1520px) / 2), 200px);
  }
}

.hg-profile-chrome__crumb {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 30px;
  font-size: 16px;
}

.hg-profile-chrome__crumb a {
  display: inline-flex;
  align-items: center;
  color: #a79292;
}

.hg-profile-chrome__crumb a:first-child::before {
  content: "";
  width: 32px;
  height: 32px;
  margin-right: 16px;
  flex: 0 0 auto;
  background: url("/static/images/xigua/icons/breadcrumb-home.svg") no-repeat center / contain;
}

.hg-profile-chrome__crumb .hg-breadcrumb__sep {
  width: 8px;
  height: 17px;
  font-size: 0;
  flex: 0 0 auto;
  background: url("/static/images/xigua/icons/breadcrumb-chevron-current.svg") no-repeat center / contain;
}

.hg-profile-chrome__crumb .hg-breadcrumb__current {
  color: #f4f4f7;
  font-weight: 400;
}

.hg-profile-chrome__title {
  margin: 0 0 22px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.hg-profile-chrome__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
}

.hg-profile-chrome__who {
  display: flex;
  align-items: flex-start;
  gap: 21px;
  min-width: 0;
}

.hg-profile-chrome__avatar,
.hg-profile-chrome__avatar .hg-avatar {
  flex-shrink: 0;
  width: 127px;
  height: 127px;
  border-radius: 50%;
  overflow: hidden;
}

.hg-profile-chrome__avatar .hg-avatar {
  font-size: 48px;
}

.hg-profile-chrome__meta {
  min-width: 0;
  padding-top: 4px;
}

.hg-profile-chrome__name {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-profile-chrome__id {
  margin: 9px 0 0;
  color: #88828a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.hg-profile-chrome__stats {
  margin: 20px 0 0;
  color: #88828a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.hg-profile-chrome__num {
  color: #fff;
}

.hg-profile-chrome__dot {
  color: #88828a;
}

.hg-profile-chrome__tabs {
  display: flex;
  align-items: flex-end;
  gap: 45px;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #363239;
  overflow-x: auto;
  scrollbar-width: none;
}

.hg-profile-chrome__tabs::-webkit-scrollbar {
  display: none;
}

.hg-profile-chrome__tab {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 120px;
  padding: 0 0 23px;
  color: #99939a;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.hg-profile-chrome__tab.is-active {
  color: #fff;
}

.hg-profile-chrome__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 5px;
  border-radius: 3px;
  background: #fb3643;
}

.hg-profile-follows .hg-profile-fav__works {
  margin-top: 24px;
}

.hg-profile-follows .hg-card-grid {
  margin-top: 0;
}

.hg-zhuigen {
  margin-top: 22px;
}

.hg-zhuigen__stat {
  margin: 14px 0 0;
  color: #918b93;
  font-size: 12px;
  line-height: 17px;
}

.hg-zhuigen__list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hg-zhuigen-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 220px;
  padding: 13px;
  border: 1px solid #3a2b30;
  border-radius: 12px;
  background: #140000;
}

.hg-zhuigen-card__cover {
  flex-shrink: 0;
  width: 146px;
  height: 194px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1214;
}

.hg-zhuigen-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hg-zhuigen-card__body {
  min-width: 0;
  flex: 1;
  align-self: flex-start;
  padding-top: 2px;
}

.hg-zhuigen-card__title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-zhuigen-card__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  margin-left: auto;
}

a.hg-zhuigen-card__play {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 230px;
  height: 68px;
  padding: 0 20px;
  border: 2px solid #fb3643;
  border-radius: 12px;
  background: #fb3643;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

a.hg-zhuigen-card__play img {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.hg-profile-follows .hg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 16px;
  text-align: center;
}

.hg-profile-follows .hg-empty__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.hg-profile-follows .hg-empty__desc {
  margin: 0;
  max-width: 420px;
  color: #858585;
  font-size: 13px;
  line-height: 20px;
}

.hg-profile-follows .hg-profile-settings {
  margin-top: 22px;
  border: 1px solid #3a2b30;
  border-radius: 12px;
  background: #140000;
  color: #f4f4f7;
}

.hg-profile-follows .hg-profile-settings input {
  color: #fff;
  background: #211818;
  border: 1px solid #524040;
}

.hg-fab {
  position: fixed;
  right: 32px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hg-fab__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  position: relative;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hg-fab__btn--backtop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.hg-fab__btn--backtop.is-show {
  opacity: 1;
  pointer-events: auto;
}

.hg-fab__btn .hg-fab__bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hg-fab__btn .hg-fab__icon {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hg-profile-follows {
    padding: 16px var(--hg-page-gutter, 12.5px) 32px;
  }

  .hg-profile-chrome__crumb {
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px;
  }

  .hg-profile-chrome__crumb a:first-child::before {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  .hg-profile-chrome__title {
    display: none;
  }

  .hg-profile-chrome__avatar,
  .hg-profile-chrome__avatar .hg-avatar {
    width: 71px;
    height: 71px;
  }

  .hg-profile-chrome__avatar .hg-avatar {
    font-size: 28px;
  }

  .hg-profile-chrome__name {
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
  }

  .hg-profile-chrome__tabs {
    gap: 19px;
    border-bottom-width: 1px;
  }

  .hg-profile-chrome__tab {
    min-width: 0;
    padding: 0 0 14px;
    font-size: 15px;
    line-height: 18px;
  }

  .hg-profile-chrome__tab.is-active::after {
    height: 2px;
    bottom: -1px;
  }

  .hg-zhuigen-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas: "cover body" "actions actions";
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .hg-zhuigen-card__cover {
    grid-area: cover;
    width: 60px;
    height: 80px;
  }

  .hg-zhuigen-card__body {
    grid-area: body;
  }

  .hg-zhuigen-card__actions {
    grid-area: actions;
    margin: 6px 0 0;
    width: 100%;
  }

  a.hg-zhuigen-card__play {
    flex: 1;
    min-width: 0;
    width: auto;
    height: auto;
    min-height: 36px;
    padding: 9px 8px;
    border-width: 0;
    font-size: 12px;
  }

  a.hg-zhuigen-card__play img {
    width: 14px;
    height: 14px;
  }
}

.hg-watch__heading { display: none; }
.hg-watch__list { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.hg-watch-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) auto;
  gap: 15px;
  min-height: 220px;
  padding: 19px 29px 19px 19px;
  background: #140000;
  border: 1px solid #3a2b30;
  border-radius: 16px;
}
.hg-watch-card__cover { display: block; width: 135px; height: 180px; border-radius: 14px; overflow: hidden; }
.hg-watch-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hg-watch-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.hg-watch-card__title { max-width: 100%; margin: 0; color: #fff; font-size: 27px; font-weight: 400; line-height: 38px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-watch-card__title a { color: inherit; text-decoration: none; }
.hg-watch-card__progress,
.hg-watch-card__time { margin: 0; font-size: 18px; font-weight: 700; line-height: 25px; }
.hg-watch-card__progress { color: #a79292; }
.hg-watch-card__time { color: #fb3643; }
.hg-watch-card__actions { display: flex; align-items: center; gap: 15px; }
.detail-7317-shell .hg-watch-card .hg-watch-card__continue,
.detail-7251-shell .hg-watch-card .hg-watch-card__continue,
.detail-7317-shell .hg-watch-card .hg-watch-card__delete,
.detail-7251-shell .hg-watch-card .hg-watch-card__delete,
.hg-watch-card .hg-watch-card__continue,
.hg-watch-card .hg-watch-card__delete {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 140px;
  height: 52px;
  padding: 0;
  border: 2px solid #fb3643;
  border-radius: 12px;
  background: #fb3643;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.detail-7317-shell .hg-watch-card .hg-watch-card__delete,
.detail-7251-shell .hg-watch-card .hg-watch-card__delete,
.hg-watch-card .hg-watch-card__delete {
  background: #211818;
  border-color: #524040;
  border-radius: 16px;
  color: #c7c1c7;
}
.hg-watch-card__continue img { display: block; width: 25px; height: 25px; }
.hg-watch-card__mobile-label { display: none; }
@media (max-width: 900px) {
  .hg-watch__heading { display: block; margin: 15px 0 0; color: #a79292; font-size: 12px; font-weight: 400; line-height: 20.5px; }
  .hg-watch__list { gap: 12px; margin-top: 15px; }
  .hg-watch-card {
    grid-template-columns: 101.5px minmax(0, 1fr);
    grid-template-rows: 1fr 38px;
    column-gap: 10px;
    row-gap: 12px;
    min-height: 157.5px;
    padding: 10px 11px 10px 10px;
    border-radius: 8px;
  }
  .hg-watch-card__cover { grid-row: 1 / 3; width: 101.5px; height: 135.5px; border-radius: 7.5px; }
  .hg-watch-card__body { gap: 6px; grid-column: 2; grid-row: 1; }
  .hg-watch-card__title { color: #f4f4f7; font-size: 17px; line-height: 24.5px; }
  .hg-watch-card__progress,
  .hg-watch-card__time { font-size: 12px; font-weight: 400; line-height: 18px; color: #91919c; }
  .hg-watch-card__time { color: #91919c; }
  .hg-watch-card__actions { grid-column: 2; grid-row: 2; gap: 12px; align-self: end; }
  .detail-7317-shell .hg-watch-card .hg-watch-card__continue,
  .detail-7251-shell .hg-watch-card .hg-watch-card__continue,
  .detail-7317-shell .hg-watch-card .hg-watch-card__delete,
  .detail-7251-shell .hg-watch-card .hg-watch-card__delete,
  .hg-watch-card .hg-watch-card__continue,
  .hg-watch-card .hg-watch-card__delete {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 38px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
  }
  .hg-watch-card__continue img,
  .hg-watch-card__pc-label { display: none; }
  .hg-watch-card__mobile-label { display: inline; }
}

.hg-settings-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 30px;
  margin-top: 42px;
}
.hg-settings-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 0;
  min-height: 213px;
  padding: 33px 30px 40px;
  border: 1px solid #3a2b30;
  border-radius: 16px;
  background: #140000;
}
.hg-settings-card h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.hg-settings-card p {
  margin: 18px 0 0;
  color: #a79292;
  font-size: 16px;
  line-height: 1.4;
}
.detail-7317-shell button.hg-settings-card__btn,
.detail-7251-shell button.hg-settings-card__btn,
button.hg-settings-card__btn {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 60px;
  margin-top: auto;
  padding: 0 16px;
  border: 2px solid #524040;
  border-radius: 16px;
  background: #211818;
  color: #c7c1c7;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
button.hg-settings-card__btn:hover { background: #2a1e1e; }
.hg-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 12010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.hg-settings-modal[hidden] { display: none !important; }
.hg-settings-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.hg-settings-modal__box {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 723px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 54px 50px 50px;
  border: 1px solid #4b464e;
  border-radius: 28px;
  background: #140000;
}
.detail-7317-shell button.hg-settings-modal__x,
.detail-7251-shell button.hg-settings-modal__x,
button.hg-settings-modal__x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f4f4f7;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.hg-settings-modal__eyebrow { margin: 0; color: #fb3643; font-size: 15px; line-height: 1.4; }
.hg-settings-modal__title { margin: 13px 0 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.4; }
[data-settings-modal="security"] .hg-settings-modal__eyebrow,
[data-settings-modal="notify"] .hg-settings-modal__eyebrow { font-size: 14px; }
[data-settings-modal="security"] .hg-settings-modal__title,
[data-settings-modal="notify"] .hg-settings-modal__title { margin-top: 15px; font-size: 16px; }
.hg-settings-modal__avatar {
  display: flex;
  width: 100px;
  height: 100px;
  margin: 38px 0 0;
  border-radius: 50%;
  overflow: hidden;
}
.hg-settings-modal__avatar .hg-avatar { width: 100%; height: 100%; font-size: 36px; }
.hg-settings-modal__field { display: block; margin-top: 20px; }
.hg-settings-modal__field span { display: block; margin-bottom: 17px; color: #e9e5e8; font-size: 18px; line-height: 1.4; }
[data-settings-modal="security"] .hg-settings-modal__field span { margin-bottom: 14px; font-size: 20px; }
.detail-7317-shell .hg-settings-modal__input,
.detail-7251-shell .hg-settings-modal__input,
.hg-settings-modal__input {
  box-sizing: border-box;
  width: 100%;
  height: 69px;
  padding: 0 28px;
  border: 2px solid #524040;
  border-radius: 16px;
  background: #211818;
  color: #fff;
  font-size: 18px;
  outline: none;
}
.hg-settings-modal__input::placeholder { color: #777179; }
.hg-settings-modal__input:focus { border-color: #fb3643; }
.hg-settings-modal__input[readonly] { cursor: default; }
.hg-settings-modal__note { margin: 20px 0 0; color: #8d8790; font-size: 20px; line-height: 1.4; }
[data-settings-modal="security"] .hg-settings-modal__note { font-size: 16px; }
.hg-settings-modal__note--sm { font-size: 12px; }
.detail-7317-shell button.hg-settings-modal__submit,
.detail-7251-shell button.hg-settings-modal__submit,
button.hg-settings-modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  margin-top: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fb3643;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
[data-settings-modal="security"] .hg-settings-modal__submit,
[data-settings-modal="notify"] .hg-settings-modal__submit { margin-top: 40px; font-size: 20px; }
.hg-settings-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 108px;
  margin-top: 26px;
  padding: 20px 32px 20px 30px;
  border: 2px solid #524040;
  border-radius: 16px;
  background: #211818;
}
.hg-settings-switch__copy p { margin: 0; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4; }
.hg-settings-switch__copy p + p { margin-top: 12px; color: #8d8790; font-size: 14px; font-weight: 400; }
.detail-7317-shell button.hg-settings-switch__btn,
.detail-7251-shell button.hg-settings-switch__btn,
button.hg-settings-switch__btn {
  position: relative;
  flex-shrink: 0;
  width: 82px;
  height: 41px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #524040;
  cursor: pointer;
}
button.hg-settings-switch__btn.is-on { background: #fb3643; }
.hg-settings-switch__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #140000;
  transition: transform 0.18s ease;
}
button.hg-settings-switch__btn.is-on .hg-settings-switch__knob { transform: translateX(41px); }
body.is-hg-settings-open { overflow: hidden; }
@media (max-width: 900px) {
  .hg-settings-hub { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .hg-settings-card { min-height: 160px; padding: 24px 16px 18px; border-radius: 8px; }
  .hg-settings-card h2 { font-size: 17px; }
  .hg-settings-card p { margin-top: 12px; font-size: 14px; }
  button.hg-settings-card__btn {
    width: auto;
    min-width: 85px;
    height: 36px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
  }
  .hg-settings-modal { align-items: flex-end; padding: 12px; }
  .hg-settings-modal__box { width: 100%; padding: 24px 16px 20px; border-radius: 16px; }
  .hg-settings-modal__input { height: 48px; padding: 0 16px; font-size: 15px; }
  button.hg-settings-modal__submit { height: 48px; margin-top: 20px; font-size: 16px; }
}

/* 简介「展开」：shell 里 display:inline-flex 会压过 [hidden]，不超过两行时必须真正隐藏 */
.hg-web-detail__expand[hidden] {
  display: none !important;
}
