/* One Arena contest card in the middle of the home feed — same height as neighbor cards. */

/* Cell stretches with the grid row; kicker overlays and does not add height. */
html body .cotinder-index-feed .index__posts > .index__post.cotinder-feed-contest,
html body.page-index .tabs__content.tabs__content_active .cotinder-index-feed[data-cotinder-feed-tab] .index__posts > .index__post.cotinder-feed-contest:not(.index__post_full):not(.index__post_be-part):not(.index__post_curator-advice):not(.cotinder-city-ads):not(.cotinder-onboarding) {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest > .cotinder-feed-contest__kicker {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #c45a12;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest > .card.arena-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
}

/* Cover like feed photo block — capped so card stays neighbor-tall */
html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__preview {
    position: relative;
    display: block;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__platform-hit,
html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__season-tag,
html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__pet-stack {
    z-index: 2;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__head {
    flex: 0 0 auto;
    margin-top: 8px;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__type {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    opacity: 0.8;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__title {
    margin: 2px 0 0;
    font-size: 16px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__desc {
    flex: 0 0 auto;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__pets,
html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__dates {
    display: none;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__meta {
    flex: 0 0 auto;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__actions {
    flex: 0 0 auto;
    margin-top: auto !important;
    padding-top: 8px;
}

html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__btn {
    margin-top: 0 !important;
    width: 100%;
}

/* PC — same floor as feed user-slide (custom.css min-height 428) */
@media (min-width: 1200px) {
    html body .cotinder-index-feed .index__posts > .index__post.cotinder-feed-contest {
        min-height: 428px !important;
    }

    html body .cotinder-index-feed .index__posts > .cotinder-feed-contest > .card.arena-card {
        min-height: 428px !important;
    }
}

/* Phone — like feed user-slide: floor 446, height by content (photo + text) */
@media (max-width: 767px) {
    html body .cotinder-index-feed .index__posts > .index__post.cotinder-feed-contest {
        height: auto !important;
        min-height: 446px !important;
        max-height: none !important;
    }

    html body .cotinder-index-feed .index__posts > .cotinder-feed-contest > .card.arena-card {
        height: auto !important;
        min-height: 446px !important;
        max-height: none !important;
        padding: 5px !important;
    }

    html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__preview {
        flex: 0 0 auto !important;
        aspect-ratio: 1 / 1;
        height: auto !important;
        min-height: 0 !important;
    }

    html body .cotinder-index-feed .index__posts > .cotinder-feed-contest .arena-card__cover {
        position: absolute;
        inset: 0;
    }
}

/* Tablet: stretch with unlocked feed row */
@media (min-width: 768px) and (max-width: 1199px) {
    html body .cotinder-index-feed .index__posts > .index__post.cotinder-feed-contest {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: stretch !important;
    }

    html body .cotinder-index-feed .index__posts > .cotinder-feed-contest > .card.arena-card {
        height: 100% !important;
        min-height: 100% !important;
    }
}
