/* Post / gossip list page */

.gossip-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gossip-list .gossip-feature {
  width: 100%;
}

.gossip-feature--plain {
  overflow: hidden;
  border-radius: 20px;
}

.gossip-feature__rank {
  position: absolute;
  right: 30px;
  top: 30px;
  z-index: 2;
}

.gossip-list .gossip-feature__hot {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 90px;
  height: 44px;
  z-index: 2;
  object-fit: contain;
}

/* PC: 列表两列，封面图上浮层（H5 保持原覆盖式样式） */
@media (min-width: 769px) {
  .gossip-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .gossip-list--grid .gossip-feature {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
  }

  .gossip-list--grid .gossip-feature__img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    background: #1a1a1a;
  }

  .gossip-list--grid .gossip-feature__overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .gossip-list--grid .gossip-feature__meta-row {
    padding-left: 24px;
    padding-right: 24px;
  }

  .gossip-list--grid .gossip-feature__meta {
    color: #fafafa;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  }

  .gossip-list--grid .gossip-feature__body {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
  }

  .gossip-list--grid .gossip-feature__title {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
  }

  .gossip-list--grid .gossip-feature__hot {
    top: 12px;
    right: 12px;
  }
}

.post-filters {
  gap: 24px;
}

.comics-list-page.post-more-page .gossip-section .ad-row {
  align-self: stretch;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.comics-list-page.post-more-page .gossip-section .ad-row .ad-banner {
  flex: 1;
  max-width: 628px;
  width: 628px;
  height: 59px;
}

.comics-list-page.post-more-page .gossip-section .ad-row .ad-banner > a {
  display: block;
  width: 100%;
  height: 100%;
}

.comics-list-page.post-more-page .gossip-section .ad-row .ad-banner__image {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
}

@media (max-width: 1280px) {
  .comics-list-page.post-more-page .gossip-section .ad-row {
    flex-direction: column;
  }

  .comics-list-page.post-more-page .gossip-section .ad-row .ad-banner {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .gossip-section:has(.gossip-list) {
    gap: 12px;
  }

  .gossip-list {
    gap: 12px;
  }

  .gossip-list .gossip-feature {
    width: 100%;
    height: 132px;
    border-radius: 12px;
  }

  .gossip-list .gossip-feature--plain {
    border-radius: 12px;
  }

  .gossip-list .gossip-feature__hot {
    top: 6px;
    right: 6px;
    width: 50px;
    height: 26px;
  }

  .gossip-list .gossip-feature__overlay {
    inset: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0 14px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
  }

  .gossip-list .gossip-feature__meta-row {
    order: 2;
    padding: 0;
    justify-content: center;
  }

  .gossip-list .gossip-feature__body {
    order: 1;
    padding: 0;
    background: transparent;
    align-items: center;
    gap: 0;
  }

  .gossip-list .gossip-feature__title {
    max-width: 315px;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .gossip-list .gossip-feature__meta {
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: #eee;
    text-shadow: none;
  }

  .post-filters {
    gap: 6px;
  }

  .comics-list-page.post-more-page .gossip-section .ad-row {
    flex-direction: column;
    gap: 12px;
  }

  .comics-list-page.post-more-page .gossip-section .ad-row .ad-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 628 / 59;
  }

  .comics-list-page.post-more-page .gossip-section .ad-row .ad-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
