/* Static homepage — Figma PC (1920 / content 1520) + H5 */

/* ========== Tokens ========== */
.home-static {
  --home-bg: #0f0f0f;
  --home-surface: rgba(255, 255, 255, 0.05);
  --home-border: rgba(255, 255, 255, 0.05);
  --home-border-strong: rgba(255, 255, 255, 0.1);
  --home-text: #fff;
  --home-muted: rgba(255, 255, 255, 0.55);
  --home-accent: #ecd227;
  --home-top: #ea1e61;
  --home-rank-1: #ffcd9a;
  --home-rank-2: #cce9ff;
  --home-rank-3: #ffbfa4;
  --home-placeholder: #464646;
  --home-font: "PingFang SC", "Noto Sans SC", sans-serif;
  width: 100%;
  box-sizing: border-box;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: var(--home-font);
}

.home-static *,
.home-static *::before,
.home-static *::after {
  box-sizing: border-box;
}

/* Tab panels: author display:flex/grid must not override [hidden] */
.home-static [data-home-panel][hidden] {
  display: none !important;
}

/* ========== Shell (single H5+PC tree) ========== */
/* PC 规则同 video-view / video-inner：padding + max-width 流体适配 */
.home-view {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.home-inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  gap: 36px;
}

.home-hero-bleed {
  width: 100%;
}

.home-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: stretch;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .home-view {
    gap: 18px;
    padding: 12px 16px 32px;
    align-items: stretch;
  }

  .home-inner {
    gap: 18px;
  }

  .home-main {
    gap: 18px;
  }

  .home-only-pc {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .home-only-h5 {
    display: none !important;
  }

  .home-view {
    padding: 0 200px 60px;
  }

  /* PC 轮播通栏：突破 home-view 左右 padding，占满视口宽 */
  .home-hero-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 36px;
  }

  .home-inner {
    max-width: 1520px;
    width: 100%;
    gap: 0;
  }

  .home-main {
    gap: 36px;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .home-view {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ========== Shared utilities ========== */
/* TOP badge — whole icon */
.home-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: block;
  width: 66px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
}

.home-badge--top {
  width: 66px;
  height: 40px;
}

/* H5 badge offsets — applied in max-width:768 media below */

.home-block__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 6px 14px;
  background: var(--home-surface);
  border-radius: 999px;
  border: 1px solid var(--home-border);
  color: var(--home-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.home-block__more-arrow {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.home-block__more-arrow::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
  transform: rotate(-45deg);
}

/* Rank (shared H5 + PC sidebar) */
.home-rank {
  position: relative;
  padding: 24px 16px;
  background: var(--home-surface) url("/static/images/rmbd_top_bg.png") no-repeat center top / 100% auto;
  border-radius: 18px;
  border: 1px solid var(--home-border-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.home-rank__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.home-rank__brand {
  width: 122px;
  height: 30px;
  flex-shrink: 0;
  background: url("/static/images/rmbd.svg") center / contain no-repeat;
}

.home-rank__more {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.home-rank__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.home-rank__link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.home-rank__num {
  width: 24px;
  flex-shrink: 0;
  text-align: center;
  color: var(--home-muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.home-rank__num--1 { color: var(--home-rank-1); }
.home-rank__num--2 { color: var(--home-rank-2); }
.home-rank__num--3 { color: var(--home-rank-3); }

.home-rank__text {
  flex: 1;
  min-width: 0;
  color: var(--home-text);
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-rank__views {
  flex-shrink: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 18px;
}

@media (max-width: 768px) {
  /* ==========================================================================
     H5 — scoped under .home-view
     ========================================================================== */

  /* H5 — TOP badge icon */
  .home-view .home-badge,
  .home-view .home-badge--top {
    left: 6px;
    top: 6px;
    width: 26px;
    height: 14px;
    padding: 0;
    min-width: 0;
  }

  /* 吃瓜大图 TOP：H5 37×22 */
  .home-view .home-gossip__top .home-post-feature .home-badge--top {
    width: 37px;
    height: 22px;
  }

  .home-view .layout-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .home-view .home-rank {
    padding: 24px 16px;
  }

  .home-view .home-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-view .home-chips::-webkit-scrollbar {
    display: none;
  }

  .home-view .home-chip {
    flex: 0 0 auto;
    padding: 6px 12px;
    background: var(--home-surface);
    border-radius: 12px;
    border: 1px solid var(--home-border);
    color: var(--home-muted);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
  }

  .home-view .home-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .home-view .home-block__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .home-view .home-block__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .home-view .home-block__title-row--marker {
    justify-content: flex-start;
    gap: 6px;
  }

  .home-view .home-block__marker {
    width: 4px;
    height: 14px;
    background: var(--home-accent);
    border-radius: 3px;
    flex-shrink: 0;
  }

  .home-view .home-block__title {
    margin: 0;
    color: var(--home-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .home-view .home-block__more {
    padding: 4px 4px 4px 10px;
    font-size: 10px;
    line-height: 16px;
  }

  .home-view .home-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .home-view .home-tab {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: var(--home-surface);
    color: var(--home-muted);
    font-size: 12px;
    line-height: 18px;
    font-family: var(--home-font);
    cursor: pointer;
  }

  .home-view .home-tab--active {
    background: rgba(255, 225, 32, 0.1);
    color: var(--home-accent);
  }

  .home-view .home-feature {
    position: relative;
    display: block;
    width: 100%;
    height: 176px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--home-text);
  }

  .home-view .home-feature__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--home-placeholder);
  }

  .home-view .home-feature__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .home-view .home-feature__meta {
    padding: 0 6px;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  }

  .home-view .home-feature__title {
    padding: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
  }

  /* Legacy wrap grids only — video/portrait use CSS grid in H5 overrides below */
  .home-view .home-grid:not(.home-grid--video):not(.home-grid--portrait) {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
  }

  .home-view .home-grid--2,
  .home-view .home-grid--3 {
    justify-content: space-between;
  }

  .home-view .home-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
  }

  .home-view .home-card__main {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
  }

  .home-view .home-grid:not(.home-grid--video):not(.home-grid--portrait) .home-card--post,
  .home-view .home-grid:not(.home-grid--video):not(.home-grid--portrait) .home-card--video {
    width: calc(50% - 4px);
  }

  .home-view .home-grid:not(.home-grid--video):not(.home-grid--portrait) .home-card--portrait {
    width: calc(33.333% - 5px);
    gap: 4px;
  }

  .home-view .home-card__cover {
    position: relative;
    overflow: hidden;
    background: var(--home-placeholder);
  }

  .home-view .home-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-view .home-card__cover--post {
    height: 83px;
    border-radius: 9px;
  }

  .home-view .home-card__cover--video {
    height: 96px;
    border-radius: 6px;
  }

  .home-view .home-card__cover--portrait {
    height: 148px;
    border-radius: 6px;
  }

  .home-view .home-card--video,
  .home-view .home-card--portrait {
    border-radius: 9px;
  }

  .home-view .home-card__ep {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
  }

  .home-view .home-card__play {
    position: absolute;
    z-index: 1;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 999px;
    line-height: 0;
    pointer-events: none;
    box-sizing: border-box;
  }

  .home-view .home-card__play img {
    position: static;
    inset: auto;
    display: block;
    width: 12px;
    height: 12px;
    object-fit: contain;
  }

  .home-view .home-card__title {
    color: var(--home-text);
    font-size: 12px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 6px;
  }

  .home-view .home-card--portrait .home-card__title,
  .home-view .home-card--video .home-card__title {
    -webkit-line-clamp: 1;
    display: -webkit-box;
  }

  .home-view .home-card__tags {
    display: flex;
    gap: 6px;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 18px;
  }

  .home-view .home-card--post .home-card__tags {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-view .home-apps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-view .home-apps::-webkit-scrollbar {
    display: none;
  }

  .home-view .home-apps__item {
    width: 56px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--home-text);
  }

  .home-view .home-apps__icon {
    width: 56px;
    height: 56px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--home-placeholder);
    border: 1px solid var(--home-border-strong);
  }

  .home-view .home-apps__name {
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    width: 100%;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-view .home-actress {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-view .home-actress::-webkit-scrollbar {
    display: none;
  }

  .home-view .home-actress__item {
    flex: 0 0 auto;
    width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
  }

  .home-view .home-actress__img {
    width: 74px;
    height: 99px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--home-placeholder);
  }

  .home-view .home-actress__name {
    width: 100%;
    text-align: center;
    color: var(--home-text);
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-view .home-actress__heat {
    width: 100%;
    text-align: center;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 18px;
  }

  .home-view .home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
  }

  .home-view .home-links__item {
    width: calc((100% - 22px) / 3);
    max-width: 107px;
    flex: 0 0 calc((100% - 22px) / 3);
    box-sizing: border-box;
    padding: 9px 6px;
    background: var(--home-surface);
    border-radius: 6px;
    border: 1px solid var(--home-border);
    color: var(--home-text);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
  }

}

/* ==========================================================================
   PC — .home-view / .home-main (shell padding set above at min-width:769)
   ========================================================================== */

/* Section head (shared base) */
.home-sec-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.home-sec-head__left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.home-sec-title {
  margin: 0;
  color: var(--home-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
}

.home-sec-divider {
  width: 2px;
  height: 12px;
  background: var(--home-border-strong);
  flex-shrink: 0;
  border-radius: 1px;
}

.home-sec-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.home-sec-tab {
  position: relative;
  padding: 0;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  font-family: var(--home-font);
  cursor: pointer;
}

.home-sec-tab--active {
  color: var(--home-text);
}

.home-sec-tab--active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--home-accent);
  box-shadow: 0 0 8px 2px rgba(245, 225, 0, 0.55);
}


/* Gossip PC — Figma: main 1192 + rank, head inside main */
.home-gossip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.home-gossip__main {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
  border-radius: 12px;
}

.home-gossip__main > .home-sec-head {
  align-self: stretch;
}

.home-gossip__top {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 21px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.home-post-feature {
  position: relative;
  display: block;
  flex: 1 1 49%;
  min-width: 0;
  width: auto;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  color: var(--home-text);
  background: var(--home-placeholder);
}

.home-post-feature::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 51.282051%; /* 300 / 585 */
}

.home-post-feature img,
.home-post-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--home-placeholder);
}

.home-post-feature__cover-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-post-feature__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.home-post-feature__meta {
  padding: 0 24px;
  font-size: 16px;
  line-height: 22px;
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-post-feature__meta .home-post-meta__tag,
.home-post-overlay__meta .home-post-meta__tag {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-shadow: inherit;
  text-decoration: none;
}

.home-post-feature__meta .home-post-meta__tag:hover,
.home-post-overlay__meta .home-post-meta__tag:hover {
  color: var(--home-accent, #ecd227);
  border: 0;
  background: transparent;
}

.home-post-feature__title {
  display: block;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: inherit;
  font-size: 18px;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.home-post-feature .home-badge--top {
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 66px;
  height: 40px;
}

.home-gossip__top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 49%;
  min-width: 0;
  gap: 20px;
}

.home-post-overlay {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  color: var(--home-text);
  background: var(--home-placeholder);
  flex: none;
}

.home-post-overlay::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 49.469965%; /* 140 / 283 */
}

.home-post-overlay__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--home-placeholder);
}

.home-post-overlay__cover-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-post-overlay__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-post-overlay__meta {
  padding: 0 6px;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-post-overlay__title {
  display: block;
  padding: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: inherit;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.home-post-overlay .home-badge--top {
  z-index: 2;
}

.home-gossip__bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

.home-gossip__bottom-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.home-gossip__bottom-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.home-gossip__bottom-cover {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 49.469965%; /* 140 / 283 */
  border-radius: 12px;
  overflow: hidden;
  background: var(--home-placeholder);
}

.home-gossip__bottom-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-gossip__bottom-title {
  color: var(--home-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-gossip__bottom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 22px;
}

.home-gossip__rank {
  flex: 0 0 min(304px, 20%);
  min-width: 240px;
  max-width: 304px;
  width: auto;
  align-self: stretch;
  padding: 24px 12px;
  border-radius: 18px;
  border: 1px solid var(--home-border-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  position: relative;
}

.home-gossip__rank .home-rank__more {
  font-size: 16px;
  line-height: 22px;
}

.home-gossip__rank .home-rank__head,
.home-gossip__rank .home-rank__list {
  position: relative;
  z-index: 1;
}

.home-gossip__rank .home-rank__list {
  flex: 1 1 0;
  justify-content: space-between;
  gap: 0;
}

.home-gossip__rank .home-rank__text {
  font-size: 18px;
  line-height: 24px;
}

.home-gossip__rank .home-rank__views {
  font-size: 14px;
  line-height: 20px;
}

.home-gossip__rank::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 304px;
  max-width: 100%;
  height: 223px;
  opacity: 0.3;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(164, 125, 69, 0.5), transparent 45%),
    radial-gradient(circle at 55% 0%, rgba(164, 125, 69, 0.45), transparent 40%),
    radial-gradient(circle at 90% 55%, rgba(164, 125, 69, 0.4), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
}


@media (min-width: 769px) {
  /* —— Section head / more (Figma) —— */
  .home-view .home-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .home-view .home-block--gossip {
    gap: 0;
  }

  .home-view .home-block__more {
    flex-shrink: 0;
    padding: 4px 4px 4px 10px;
    font-size: 12px;
    line-height: 18px;
  }

  /* —— Chips: gap 18, pill 12×24, font 18/24 —— */
  .home-view .home-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-view .home-chips::-webkit-scrollbar {
    display: none;
  }

  .home-view .home-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 12px 24px;
    background: var(--home-surface);
    border-radius: 12px;
    border: 1px solid var(--home-border);
    color: var(--home-muted);
    font-size: 18px;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
  }

  .home-view .home-chip:hover {
    color: var(--home-text);
    border-color: var(--home-border-strong);
  }

  /* —— Gossip: main + rank 流体布局 —— */
  .home-gossip {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    width: 100%;
  }

  .home-gossip__main {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
    border-radius: 12px;
  }

  .home-gossip__top {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 21px;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .home-post-feature {
    flex: 1 1 49%;
    min-width: 0;
    width: auto;
    height: auto;
    border-radius: 18px;
  }

  .home-gossip__top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 49%;
    min-width: 0;
    gap: 20px;
  }

  .home-post-overlay {
    width: 100%;
    min-width: 0;
    height: auto;
    flex: none;
    border-radius: 12px;
  }

  .home-gossip__bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
  }

  .home-gossip__bottom-card {
    width: 100%;
    flex: none;
    gap: 6px;
  }

  .home-gossip__bottom-cover {
    width: 100%;
    height: 0;
    padding-bottom: 49.469965%; /* 140 / 283 */
    border-radius: 12px;
  }

  .home-gossip__bottom-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
  }

  .home-gossip__bottom-tags {
    gap: 6px;
    font-size: 16px;
    line-height: 22px;
  }

  .home-gossip__rank {
    flex: 0 0 min(304px, 20%);
    min-width: 240px;
    width: auto;
    max-width: 304px;
    align-self: stretch;
    padding: 24px 12px;
    border-radius: 18px;
    border: 1px solid var(--home-border-strong);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    position: relative;
    background: var(--home-surface);
  }

  .home-gossip__rank .home-rank__more {
    font-size: 16px;
    line-height: 22px;
  }

  .home-gossip__rank .home-rank__list {
    flex: 1 1 0;
    justify-content: space-between;
    gap: 0;
  }

  .home-gossip__rank .home-rank__text {
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    justify-content: center;
  }

  .home-gossip__rank .home-rank__views {
    font-size: 14px;
    line-height: 20px;
  }

  .home-gossip__rank .home-rank__link {
    gap: 6px;
  }

  .home-gossip__rank .home-rank__num {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
  }

  /* —— Apps: 80×80, scroll when overflow, name 12/18, gap 4 —— */
  .home-view .home-apps {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-view .home-apps::-webkit-scrollbar {
    display: none;
  }

  .home-view .home-apps__item {
    width: 80px;
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--home-text);
  }

  .home-view .home-apps__icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--home-placeholder);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .home-view .home-apps__name {
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    width: 100%;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* —— Video: 4 列 grid，同 video.css —— */
  .home-grid--video {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
  }

  .home-grid--video .home-card,
  .home-grid--video .home-card--video {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }

  .home-grid--video .home-card__cover,
  .home-grid--video .home-card__cover--video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.712329%; /* 207 / 365 */
    border-radius: 18px;
    overflow: hidden;
    background: var(--home-placeholder);
  }

  .home-grid--video .home-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-grid--video .home-card__play {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 999px;
    line-height: 0;
    pointer-events: none;
    box-sizing: border-box;
  }

  .home-grid--video .home-card__play img {
    position: static;
    inset: auto;
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .home-grid--video .home-card__title {
    color: var(--home-text);
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 12px;
  }

  .home-grid--video .home-card__tags {
    display: flex;
    gap: 6px;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 22px;
  }
  .home-grid--video .home-badge--top {
    left: 12px;
    top: 12px;
  }

  /* —— Actress: 9 列 grid —— */
  .home-view .home-actress {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .home-view .home-actress__item {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
  }

  .home-view .home-actress__img {
    width: 100%;
    aspect-ratio: 160 / 214;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    background: var(--home-placeholder);
  }

  .home-view .home-actress__name {
    width: 100%;
    text-align: center;
    color: var(--home-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 6px;
  }

  .home-view .home-actress__heat {
    width: 100%;
    text-align: center;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 22px;
  }

  /* —— Portrait (短剧/漫画): 一行 6 个，自动换行 —— */
  .home-grid--portrait {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 23px;
    row-gap: 18px;
    width: 100%;
  }

  .home-grid--portrait .home-card,
  .home-grid--portrait .home-card--portrait {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }

  .home-grid--portrait .home-card__cover,
  .home-grid--portrait .home-card__cover--portrait {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 133.333333%; /* 312 / 234 */
    border-radius: 12px;
    overflow: hidden;
    background: var(--home-placeholder);
  }

  .home-grid--portrait .home-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-grid--portrait .home-card__ep {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
  }

  .home-novel-pc .home-card__ep {
    position: absolute;
    z-index: 1;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
  }

  .home-grid--portrait .home-card__title {
    font-size: 20px;
    line-height: 28px;
    max-height: 56px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    color: #fff;
    margin-top: 12px;
  }

  .home-grid--portrait .home-card__tags {
    gap: 6px;
    font-size: 16px;
    line-height: 22px;
  }
  /* —— Novel: feature 311 + gap44 + list 3×3 —— */
  .home-novel-pc {
    display: flex;
    flex-direction: row;
    gap: 44px;
    width: 100%;
    align-items: flex-start;
    overflow: visible;
    min-width: 0;
  }

  .home-novel-pc__feature {
    flex: 0 0 311px;
    width: 311px;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }

  .home-novel-pc__feature-img {
    position: relative;
    width: 100%;
    height: 414px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--home-placeholder);
  }

  .home-novel-pc__feature-img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-novel-pc__list {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 23px;
    overflow: visible;
  }

  .home-novel-pc__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 46px;
    width: 100%;
    min-width: 0;
  }

  .home-novel-pc__card {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    overflow: visible;
  }

  .home-novel-pc__card-img {
    position: relative;
    width: 131px;
    height: 174px;
    flex: 0 0 131px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--home-placeholder);
  }

  .home-novel-pc__card-img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-novel-pc__card-body {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  /* —— Friend / related —— */
  .home-friend-text {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
  }

  .home-friend-text__link {
    color: var(--home-muted);
    font-size: 16px;
    line-height: 22px;
  }

  .home-related__grid {
    gap: 12px;
  }

  .home-related__item {
    width: 146px;
    padding: 9px 8px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 22px;
    color: var(--home-muted);
  }
}

/* Shared: novel typography / friend+related */
.home-novel-pc__feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.home-novel-pc__feature-title {
  color: var(--home-text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.home-novel-pc__feature-meta,
.home-novel-pc__feature-desc {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  width: 100%;
}

.home-novel-pc__feature-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-novel-pc__feature-img img,
.home-novel-pc__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-novel-pc__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}

.home-novel-pc__card-title {
  color: var(--home-text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.home-novel-pc__card-meta,
.home-novel-pc__card-desc {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  width: 100%;
}

.home-novel-pc__card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 中等 PC 宽：压缩小说列表，避免 list 被挤出 / 裁切 */
@media (min-width: 769px) and (max-width: 1280px) {
  .home-novel-pc {
    gap: 24px;
  }

  .home-novel-pc__feature {
    flex: 0 0 220px;
    width: 220px;
  }

  .home-novel-pc__feature-img {
    height: 293px;
  }

  .home-novel-pc__row {
    gap: 16px 16px;
  }

  .home-novel-pc__card {
    gap: 10px;
  }

  .home-novel-pc__card-img {
    width: 88px;
    height: 117px;
    flex: 0 0 88px;
  }

  .home-novel-pc__card-title {
    font-size: 15px;
    line-height: 22px;
  }

  .home-novel-pc__card-meta,
  .home-novel-pc__card-desc {
    font-size: 12px;
    line-height: 18px;
  }
}

.home-friend-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-friend-text {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  align-items: center;
}

.home-friend-text__link {
  color: var(--home-muted);
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
  white-space: nowrap;
}

.home-friend-text__link:hover {
  color: var(--home-text);
}

.home-related {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--home-border-strong);
}

.home-related__title {
  margin: 0;
  color: var(--home-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.home-related__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.home-related__item {
  width: 146px;
  box-sizing: border-box;
  padding: 9px 8px;
  background: var(--home-surface);
  border-radius: 6px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-related__item:hover {
  color: var(--home-text);
}


/* ==========================================================================
   H5 overrides for shared (PC-origin) components
   ========================================================================== */
@media (max-width: 768px) {
  /* Section head → title|more row, tabs row */
  .home-view .home-sec-head {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
  }

  .home-view .home-sec-head__left {
    display: contents;
  }

  .home-view .home-sec-title {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
  }

  .home-view .home-sec-divider {
    display: none;
  }

  .home-view .home-sec-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-view .home-sec-tab {
    flex: 0 0 auto;
    height: auto;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--home-surface);
    font-size: 12px;
    line-height: 18px;
    color: var(--home-muted);
  }

  .home-view .home-sec-tab--active {
    background: rgba(255, 225, 32, 0.1);
    color: var(--home-accent);
  }

  .home-view .home-sec-tab--active::after {
    display: none;
  }

  .home-view .home-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .home-view .home-block__more {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 12px;
    line-height: 18px;
  }

  /* Gossip: stack main + rank */
  .home-view .home-gossip {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .home-view .home-gossip__main {
    width: 100%;
    max-width: 100%;
    flex: none;
    gap: 12px;
    border-radius: 0;
    overflow: visible;
  }

  .home-view .home-gossip__top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    overflow: visible;
  }

  .home-view .home-post-feature {
    width: 100%;
    max-width: 100%;
    flex: none;
    height: auto;
    border-radius: 12px;
  }

  .home-view .home-post-feature::before {
    padding-bottom: 47%;
  }

  .home-view .home-post-feature__img {
    border-radius: 12px;
  }

  .home-view .home-post-feature__body {
    padding: 0;
  }

  .home-view .home-post-feature__meta {
    padding: 0 6px;
    font-size: 12px;
    line-height: 18px;
  }

  .home-view .home-post-feature__title {
    padding: 6px;
    font-size: 14px;
    line-height: 20px;
  }

  .home-view .home-gossip__top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 11px;
    width: 100%;
    flex: none;
    min-width: 0;
  }

  /* H5: overlay cards → cover + title/tags below (match bottom cards) */
  .home-view .home-post-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex: none;
    min-width: 0;
    border-radius: 9px;
    gap: 6px;
    overflow: visible;
    background: transparent;
  }

  .home-view .home-post-overlay::before {
    display: none;
  }

  .home-view .home-post-overlay__img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 283 / 140;
    flex: 0 0 auto;
    border-radius: 9px;
    object-fit: cover;
    display: block;
    background: var(--home-placeholder);
  }

  /* 热区仅覆盖封面，避免挡住下方标题/标签 */
  .home-view .home-post-overlay__cover-link {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 283 / 140;
    z-index: 1;
  }

  .home-view .home-post-overlay__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 4px;
    display: flex;
    flex-direction: column;
  }

  .home-view .home-post-overlay__meta {
    position: static;
    order: 2;
    padding: 0;
    font-size: 11px;
    line-height: 16px;
    color: var(--home-muted);
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-view .home-post-overlay__meta .home-post-meta__time {
    display: none;
  }

  .home-view .home-post-overlay__title {
    position: static;
    order: 1;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 12px;
    line-height: 18px;
    color: var(--home-text);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-view .home-post-overlay .home-badge {
    left: 6px;
    top: 6px;
    z-index: 2;
  }

  .home-view .home-gossip__bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 11px;
    width: 100%;
  }

  .home-view .home-gossip__bottom-card {
    width: 100%;
    max-width: 100%;
    flex: none;
    min-width: 0;
    gap: 6px;
  }

  .home-view .home-gossip__bottom-cover {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 49.469965%; /* 140 / 283 */
    border-radius: 8px;
    overflow: hidden;
    background: var(--home-placeholder);
    flex: 0 0 auto;
  }

  .home-view .home-gossip__bottom-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-view .home-gossip__bottom-title {
    font-size: 13px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  .home-view .home-gossip__bottom-tags {
    font-size: 11px;
    line-height: 16px;
  }

  .home-view .home-gossip__rank {
    width: 100%;
    max-width: 100%;
    flex: none;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    border-radius: 12px;
  }

  .home-view .home-gossip__rank::before {
    width: 100%;
    height: 120px;
  }

  .home-view .home-gossip__rank .home-rank__text {
    font-size: 14px;
    line-height: 20px;
  }

  .home-view .home-gossip__rank .home-rank__views {
    font-size: 12px;
    line-height: 16px;
  }

  /* Video / portrait grids — force grid (legacy H5 sets .home-grid { display:flex }) */
  .home-view .home-grid--video {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 11px;
    width: 100%;
  }

  .home-view .home-grid--video .home-card,
  .home-view .home-grid--video .home-card--video {
    width: 100%;
    max-width: none;
    gap: 6px;
  }

  .home-view .home-grid--video .home-card__cover,
  .home-view .home-grid--video .home-card__cover--video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16 / 9 */
    border-radius: 10px;
  }

  .home-view .home-grid--video .home-card__title {
    font-size: 13px;
    line-height: 18px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 6px;
  }

  .home-view .home-grid--video .home-card__tags {
    font-size: 11px;
    line-height: 16px;
  }

  .home-view .home-grid--video .home-badge--top {
    left: 6px;
    top: 6px;
  }

  .home-view .home-grid--portrait {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    width: 100%;
  }

  .home-view .home-grid--portrait .home-card,
  .home-view .home-grid--portrait .home-card--portrait {
    width: 100%;
    max-width: none;
    gap: 4px;
  }

  .home-view .home-grid--portrait .home-card__cover,
  .home-view .home-grid--portrait .home-card__cover--portrait {
    width: 100%;
    height: 0;
    padding-bottom: 133.944954%; /* 146 / 109 */
    border-radius: 8px;
  }

  .home-view .home-grid--portrait .home-card__title {
    font-size: 12px;
    line-height: 16px;
  }

  .home-view .home-grid--portrait .home-card__tags {
    font-size: 10px;
    line-height: 14px;
  }

  /* Apps / actress scroll */
  .home-view .home-apps {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-view .home-apps::-webkit-scrollbar {
    display: none;
  }

  .home-view .home-apps__item {
    width: 56px;
  }

  .home-view .home-apps__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .home-view .home-apps__name {
    font-size: 11px;
    line-height: 16px;
    width: 100%;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-view .home-actress {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-view .home-actress::-webkit-scrollbar {
    display: none;
  }

  .home-view .home-actress__item {
    width: 72px;
  }

  .home-view .home-actress__img {
    width: 72px;
    height: 96px;
    border-radius: 8px;
  }

  .home-view .home-actress__name {
    font-size: 12px;
    line-height: 16px;
  }

  .home-view .home-actress__heat {
    font-size: 11px;
    line-height: 14px;
  }

  /* Friend links as H5 pills */
  .home-view .home-friend-head {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .home-view .home-friend-head .home-sec-title {
    font-size: 18px;
    line-height: 24px;
  }

  .home-view .home-friend-text {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-view .home-friend-text__link,
  .home-view .home-links__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    flex: none;
    min-height: 36px;
    padding: 8px 6px;
    border-radius: 8px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    color: var(--home-text);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
  }

  .home-view .home-related {
    gap: 12px;
    padding-top: 12px;
  }

  .home-view .home-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-view .home-related__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 36px;
    padding: 8px 6px;
    border-radius: 8px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    color: var(--home-text);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
  }

  .home-view .home-block > .home-sec-title {
    font-size: 18px;
    line-height: 24px;
  }
}
