/* 만화 뷰어 슬라이드 전체 컨테이너 */
.toon-slider-container {
    position: relative;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    padding: 15px 0;
}

.toonSwiper {
    width: 100%;
    max-width: 850px; /* 뷰어 최대 너비 제어 */
    margin: 0 auto;
}

.toonSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toon-img-wrap {
    position: relative;
    width: 100%;
    text-align: center;
}

.toon-img-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    max-height: 85vh; /* 화면 세로 길이를 넘지 않도록 제한 */
}

/* 페이지 표시 뱃지 (예: 1 / 10) */
.toon-page-num {
    position: absolute;
    bottom: 12px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Swiper 내비게이션 화살표 버튼 스타일 커스텀 */
.toonSwiper .swiper-button-next,
.toonSwiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s;
}

.toonSwiper .swiper-button-next:hover,
.toonSwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

.toonSwiper .swiper-button-next:after, 
.toonSwiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.toonSwiper .swiper-pagination-fraction {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 14px;
    border-radius: 12px;
    font-size: 13px;
}

/* 만화 갤러리 목록 스타일 */
.toon-gallery-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* 반응형 그리드 카드 레이아웃 */
    gap: 20px;
}

.toon-gallery-list .toon-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toon-gallery-list .toon-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* 썸네일 영역 */
.toon-thumb-box {
    width: 100%;
    height: 280px; /* 세로형 만화 썸네일에 적합한 고정 비율 (조절 가능) */
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toon-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 가득 차도록 설정 (비율 유지를 원하면 contain으로 변경) */
    transition: transform 0.3s ease;
}

.toon-gallery-list .toon-item:hover .toon-thumb-box img {
    transform: scale(1.03);
}

.toon-thumb-box .no-image {
    color: #999;
    font-size: 13px;
}

/* 정보 및 태그 영역 */
.toon-info-box {
    padding: 12px 14px;
}

.toon-subject {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toon-subject a {
    color: #333;
    text-decoration: none;
}

.toon-subject a:hover {
    color: #2b7de9;
}

/* 태그 디자인 (커플링명, 장르명) */
.toon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.toon-tags span {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: -0.5px;
}

.tag-coupling {
    background: #fff0f5;
    color: #d63384;
}

.tag-genre {
    background: #eef2ff;
    color: #4f46e5;
}