.cricket-card {
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease-in-out;
}

.cricket-card:hover {
    border-color: #079d50;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

/* 精华标签 + 管理勾选框：勾选框固定在右上角，标签在其左侧 */
.thread-card-corner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.thread-card-corner .thread_checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.thread-mod-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.thread-mod-check__box {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #c5cdc7;
    border-radius: 0.25rem;
    background: #fff;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.thread-mod-check:hover .thread-mod-check__box {
    border-color: #079d50;
}

.thread-mod-check input:checked + .thread-mod-check__box {
    border-color: #079d50;
    background: #079d50;
    box-shadow: 0 0 0 2px rgba(7, 157, 80, 0.2);
}

.thread-mod-check input:checked + .thread-mod-check__box::after {
    content: "";
    display: block;
    width: 0.3125rem;
    height: 0.5625rem;
    margin: 0.125rem auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.thread-top-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background-color: #079d50;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.threadlist .thread-card.is-mod-selected {
    box-shadow: 0 0 0 2px rgba(7, 157, 80, 0.35);
}

.thread-digest-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.thread-digest-badge--1 {
    background-color: #079d50;
}

.thread-digest-badge--2 {
    background-color: #e84393;
}

.thread-digest-badge--3 {
    background-color: #d53d38;
}

.threadlist .thread-card {
    position: relative;
}

.threadlist .thread-card.is-share-open {
    z-index: 20;
}

.threadlist .thread-card .ssty-html-share-modal {
    z-index: 30;
}

/* 首页比赛列表横向滚动 */
.match-carousel-wrap {
    position: relative;
}

.match-carousel-track {
    scroll-behavior: smooth;
    scroll-snap-type: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.player-carousel-track {
    scroll-behavior: smooth;
    scroll-snap-type: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.match-carousel-track.is-dragging,
.player-carousel-track.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
}

.match-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 7px 2px rgba(7, 157, 80, 0.15);
    color: #079d50;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.match-carousel-prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.match-carousel-next {
    right: 0;
    transform: translate(50%, -50%);
}

.match-carousel-btn.is-disabled,
.match-carousel-btn:disabled {
    display: none;
}

.match-carousel-all {
    min-height: 120px;
}

@media (max-width: 767px) {
    .match-carousel-btn {
        display: none;
    }
}

/* 帖子卡片图片：最多 3 张缩略图横排 */
.thread-card-images .thread-card-image-thumb {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.thread-card-images .thread-card-image-row img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thread-card-images .thread-card-image-row img.is-broken {
    object-fit: contain;
    padding: 12px;
}

/* 投票主题标题标识 */
.poll-tag::before {
    content: 'POLL';
    color: transparent;
    background-image: url(/view/static/img/poll.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    margin-right: 5px;
}