@charset "utf-8";

/* ==========================================================
   찬양 최신글
========================================================== */

.praise-latest,
.praise-latest * {
    box-sizing: border-box;
}

.praise-latest {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 30px;
    overflow: visible;
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        Arial,
        sans-serif;
}

/* 분홍색 상단 배경 */
.praise-latest__header {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 320px;
    padding: 38px 56px;
    border-radius: 28px 28px 0 28px;
    background: #efc7bc;
}

.praise-latest__heading {
    display: inline-block;
}

.praise-latest__label {
    display: block;
    margin-bottom: 3px;
    color: rgba(35, 35, 35, 0.43);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.praise-latest__title-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.praise-latest__title {
    margin: 0;
    color: #202020;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.07em;
}

.praise-latest__line {
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.65);
}

/* 회색 카드 */
.praise-latest__card {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: center;
    gap: 31px;

    /*
     * 분홍 배경의 왼쪽에서는 30px 들어가고,
     * 오른쪽으로는 20px 정도 돌출됩니다.
     */
    width: calc(100% - 10px);
    min-height: 260px;
    margin: -195px 0 0 30px;
    padding: 38px 30px;

    overflow: hidden;
    border-radius: 27px;
    background: #f4f4f6;
}

/* 영상 썸네일 */
.praise-latest__thumbnail {
    position: relative;
    display: block;
    width: 100%;
    height: 190px;
    min-width: 0;
    overflow: hidden;
    border-radius: 17px;
    background: #222;
    text-decoration: none;
}

.praise-latest__thumbnail img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.praise-latest__thumbnail:hover img {
    transform: scale(1.04);
    filter: brightness(0.88);
}

/* 썸네일이 없을 때 */
.praise-latest__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #242424,
            #3d3d3d
        );
}

.praise-latest__no-image span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 재생 버튼 */
.praise-latest__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.praise-latest__thumbnail:hover .praise-latest__play {
    background: rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%) scale(1.06);
}

.praise-latest__play-icon {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

/* 게시물 정보 */
.praise-latest__content {
    min-width: 0;
}

.praise-latest__subject {
    margin: 0 0 27px;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.065em;
    word-break: keep-all;
}

.praise-latest__subject a {
    display: -webkit-box;
    overflow: hidden;
    color: #ef7200;
    text-decoration: none;
    word-break: keep-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.praise-latest__subject a:hover {
    color: #c75e00;
}

.praise-latest__date {
    display: block;
    margin-bottom: 9px;
    color: #484848;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.praise-latest__team {
    margin: 0;
    color: #383838;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.04em;
}

/* 게시물 없음 */
.praise-latest__empty {
    position: relative;
    z-index: 2;
    width: calc(100% - 10px);
    min-height: 200px;
    margin: -165px 0 0 30px;
    padding: 70px 25px;
    border-radius: 27px;
    color: #777;
    font-size: 15px;
    text-align: center;
    background: #f4f4f6;
}

/* ==========================================================
   520px 이하
========================================================== */

@media screen and (max-width: 520px) {
    .praise-latest {
        max-width: none;
        padding: 0 15px 25px;
    }

    .praise-latest__header {
        min-height: 215px;
        padding: 35px 28px;
        border-radius: 22px 22px 0 22px;
    }

    .praise-latest__label {
        font-size: 12px;
    }

    .praise-latest__title-row {
        gap: 15px;
    }

    .praise-latest__title {
        font-size: 29px;
    }

    .praise-latest__line {
        width: 30px;
    }

    .praise-latest__card {
        display: block;
        width: calc(100% - 5px);
        min-height: auto;
        margin: -105px 0 0 20px;
        padding: 22px;
        border-radius: 22px;
    }

    .praise-latest__thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .praise-latest__content {
        padding: 22px 3px 3px;
    }

    .praise-latest__subject {
        margin-bottom: 17px;
        font-size: 23px;
    }

    .praise-latest__date {
        margin-bottom: 7px;
        font-size: 15px;
    }

    .praise-latest__team {
        font-size: 14px;
    }

    .praise-latest__play {
        width: 54px;
        height: 54px;
        border-width: 4px;
    }
}