.item-poster-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 8.8 / 15.2;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.item-poster-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.item-poster-card:active {
    transform: scale(0.985);
}

.item-poster-card--compact {
    aspect-ratio: 8.2 / 14.8;
}

.item-poster-media {
    position: absolute;
    inset: 0;
}

.item-poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-poster-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.06) 45%, rgba(15, 23, 42, 0.42) 100%);
    pointer-events: none;
}

.item-poster-price {
    position: absolute;
    left: 10px;
    bottom: 12px;
    z-index: 1;
    max-width: calc(100% - 20px);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.26);
}

.item-poster-card--compact .item-poster-price {
    left: 8px;
    bottom: 10px;
    padding: 5px 10px;
    font-size: 11px;
}

.item-poster-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.item-poster-card.is-sold-out .item-poster-image {
    filter: grayscale(0.92) saturate(0.6) brightness(0.88);
}

.item-poster-card.is-sold-out::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.08);
}

.topic-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4.15 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16);
}

.topic-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.48) 100%);
    pointer-events: none;
}

.topic-card-title {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
}

.goods-grid--home-recommend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.album-grid--topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.goods-scroll--poster {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.goods-scroll--poster::-webkit-scrollbar {
    display: none;
}

.goods-scroll--poster .item-poster-card {
    flex: 0 0 106px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 420px) {
    .item-poster-card {
        border-radius: 16px;
    }

    .goods-grid--home-recommend {
        gap: 10px;
    }

    .album-grid--topics {
        gap: 12px;
    }

    .recommend-grid {
        gap: 10px;
    }

    .item-poster-price {
        font-size: 12px;
    }
}

/* 20260320 tighter homepage polish */
.goods-grid--home-recommend .item-poster-card {
    aspect-ratio: 8.4 / 14.8;
}

.goods-grid--home-recommend .item-poster-price {
    left: 7px;
    bottom: 9px;
    padding: 5px 10px;
    font-size: 11px;
}

.goods-scroll--poster .item-poster-card {
    flex-basis: 104px;
}

.album-grid--topics .topic-card {
    aspect-ratio: 4.3 / 3;
}

@media (max-width: 420px) {
    .goods-grid--home-recommend .item-poster-card {
        aspect-ratio: 8.2 / 14.6;
    }
}
