/* 流行りの診断(/trend/)。仕様: 仕様書/流行り.md、見た目はモック(Artifact「流行りの診断 モック」) */

/* 説明の枠はタグのページと同じ .tag_desc。更新日と集計期間は、一覧の右上に小さく */
.trend_updated {
    margin: 0 0 6px;
    font-size: 11px;
    color: #555;
    text-align: right;
}

.trend_section {
    margin-top: 20px;
}

.trend_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
}

.trend_card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    overflow: hidden;
    color: #111;
    text-decoration: none;
}

.trend_card__thumb {
    background: #f5f5f5;
}

.trend_card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 280 / 146;
    object-fit: cover;
}

.trend_card__body {
    display: grid;
    gap: 5px;
    padding: 8px 9px 10px;
}

/* 印はサムネイルに重ねず、タイトルの上に置く */
.trend_badge {
    justify-self: start;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 99px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
}

.trend_badge--surge {
    background: #c4fa00;
}

.trend_badge--new {
    background: #212121;
    border-color: #212121;
    color: #fff;
}

.trend_card__title {
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend_card__meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    color: #666;
}

.trend_card__author {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trend_card__count {
    white-space: nowrap;
}

.trend_empty {
    margin: 24px 0;
    padding: 30px 10px;
    text-align: center;
    color: #555;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.trend_empty a {
    color: #111;
}

@media (hover: hover) {
    .trend_card:hover .trend_card__title {
        text-decoration: underline;
    }
}
