﻿.fixed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 기본: 모바일 */
    gap: 16px;
    padding: 0 16px;
    max-width: 1440px;
    margin: 0 auto;

}

@media (min-width: 768px) {
    .fixed-grid {
        grid-template-columns: repeat(6, 1fr); /* 태블릿 이상: PC용 */
    }
}

.card {
    background-color: transparent; /* 카드 배경 투명하게 */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.card-title {
    background-color: transparent; /* 제목 배경도 투명 */
    color: white;
    text-align: center;
    font-size: 0.975rem;
    font-weight: 600;
    margin-top: 6px;
}

.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 40px 0;
}

    .divider-with-text .line {
        flex: 1;
        height: 1px;
        background: #444;
        margin: 0 16px;
    }

    .divider-with-text .text {
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.crown-icon {
    font-size: 1.3rem;
  }



.card-image {
    position: relative;
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image:hover .play-overlay {
    opacity: 1;
}



.play-button {
    display: block; /* ✅ 세로 정렬 핵심 */
    margin-bottom: 8px; /* 버튼 간격 */
    background-color: #00cc66;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-button:hover {
    transform: scale(1.05);
}

.cardb {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    height: 100%; /* 컨테이너가 높이 제어 */
}

.cardb-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 12;
    overflow: hidden;
    border-radius: 12px;
}

.cardb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.cardb-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-top: 6px;
    height: 2.5em; /* 고정 높이 (1줄 또는 2줄 텍스트에 대응) */
    line-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal; /* 2줄 허용 */
    overflow: hidden;
}


.playb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cardb-image:hover .playb-overlay {
    opacity: 1;
}

.playb-button {
    display: block;
    width: 100px; /* 또는 원하는 너비 */
    margin: 5px auto; /* 수직 간격 + 가운데 정렬 */
    background-color: #00cc66;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}


