/* ✅ 전체 내용이 헤더에 가려지지 않도록 조정 */
body {
    padding-top: 80px; /* 헤더 높이만큼 아래로 이동 */
}

/* ✅ 전체 컨테이너 */
.container {
    max-width: 100%;
    margin-bottom: 50px;
    padding-left: 40px;
    padding-right: 40px;
}

/* ✅ 컨테이너 헤더 (카테고리 제목 + 검색창) */
.container-header {
    display: flex;
    justify-content: space-between; /* 왼쪽 검색결과, 오른쪽 검색창 */
    align-items: center;
    margin-bottom: 20px;
    background-color: transparent;
    width: 100%;
}

/* ✅ 카테고리 제목 스타일 */
.category-title {
    display: flex;
    align-items: center;
}

/* ✅ 카테고리 링크 */
.category-link,
.sub-menu-link {
    font-size: 30px;
    color: #ffffff;
    text-align: left;
    padding: 0 15px;
}

/* ✅ 카테고리 구분선 ( | ) */
.separator {
    font-size: 30px;
    color: #ffffff;
}

/* ✅ 검색 영역 */
.search_section {
    position: relative;
    width: 25vw;
    min-width: 300px;
    padding: 0 15px;
}

/* ✅ 검색창 스타일 */
.inner-addon {
    position: relative;
    width: 100%;
}

.inner-addon .bi-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-45%);
    font-size: 18px;
    color: #888;
}

/* ✅ 검색 입력 필드 */
.inner-addon input {
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    padding-left: 45px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #333;
    border-radius: 20px;
    outline: none;
}

/* 🔹 검색 옵션 메뉴 애니메이션을 위한 투명 배경 */
.search_keyword_wrapper {
    position: absolute; /* ✅ input 기준으로 위치가 잡힘 */
    top: 100%; /* ✅ input 바로 아래에 위치 */
    right: 0px; /* ✅ input의 오른쪽 끝에 위치 */
    width: auto; /* 버튼 크기만큼만 차지 */
    display: flex;
    justify-content: space-between; /* 오른쪽 정렬 */
    overflow: hidden;
    padding: 0;
    width: 100%;
}

/* 🔹 투명 벽 (애니메이션 적용) */
.search_keyword {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 0px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-200%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 🔹 검색 옵션 메뉴 (표시될 때) */
.search_keyword.show {
    opacity: 1;
    transform: translateY(0);
}

/* 검색 옵션 버튼 */
.search_keyword .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    border-radius: 30px; /* 🔹 모서리를 더 둥글게 */
    font-size: 13px;
    white-space: nowrap;
    color: #3b3b3b;
    padding: 5px 0px;
}


.container-body-pc {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-top: 50px;
}

.left-section {
    flex: 2;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 0px 15px 0px 15px;
}

/* 🔹 필름 이미지 */
.film-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: cover;
}

.film-info {
    width: 100%;
    text-align: left;
}

/* 🔹 필름 번호 (FilmNo) */
.film-info .film-no {
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 0px;
    color: #888;
}

/* 🔹 필름 이름 (FilmName) */
.film-info .film-name {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 0px;
    color: #888;
}

/* 🔹 FpNo (BEST 추천번호) */
.film-info .film-fp {
    font-size: 20px;
    font-weight: 300;
    color: red;
    margin-bottom: 0px;
}

/* 🔹 설명 리스트 (Info1 ~ Info4) */
.film-description {
    list-style: none;
    padding: 0;
    font-size: 14px;
    font-weight: 300;
    color: #888;
}

.right-section {
    flex: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    height: 75vh;
    padding: 0px 15px;
}

/* ✅ Film Image */
.right-section .film-image {
    width: 100%; /* ✅ 부모 컨테이너를 완전히 채움 */
    display: flex;
    justify-content: center;
    align-items: center;

}

.right-section .film-image img {
    width: 100%; 
    height: auto;
    max-height: 100%; /* 화면 높이 기준으로 제한 */
    object-fit: cover;
    display: block;
}


.container-body-tb {
    display: none;
}

@media (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 30px;
    }

    .search_keyword .btn {
        font-size: 12px;
    }

    .category-link {
        padding: 0px 10px 0px 0px;
    }
    .sub-menu-link {
        padding: 0px 0px 0px 10px;
    }

    .container-body-pc {
        display: none;
    }

    .container-body-tb {
        display: flex;
        flex-direction: column;
    }

    .film-info {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 10px;
    }

    .film-title {
        display: flex;
        align-items: flex-end;
        gap: 10px;
    }

    .film-title .film-name {
        padding-bottom: 5px;
    }

    .film-info .film-fp {
        padding-bottom: 5px;
    }

    .film-image-large {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .film-image-large img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .film-description {
        margin-top: 10px;
    }
}


@media (max-width: 767px) {
    .container-header {
        flex-direction: column; /* 위아래로 나열 */
        align-items: flex-start; /* 왼쪽 정렬로 변경 */
        gap: 15px; /* 두 요소 사이 간격 */
    }

    .search_section {
        width: 100%; /* 전체 너비로 조정 */
        padding: 0px; /* 패딩 조정 */
        margin-bottom: 20px;
    }
}


@media (max-width: 500px) {
    .category-link {
        font-size: 25px;
    }
    .sub-menu-link {
        font-size: 25px;
    }

    .film-title .film-no {
        font-size: 40px;
    }

    .film-title .film-name {
        font-size: 13px;
    }

    .film-info .film-fp {
        font-size: 13px;
    }

}

@media (max-width: 365px) {
    body {
        overflow-x: auto;  /* 가로 스크롤 허용 */
    }

    .container {
        min-width: 365px; /* 컨테이너 최소 너비 지정 */
    }


}