.novel_latest_wrap { margin-bottom: 30px; font-family: 'Pretendard', sans-serif; }
.nl_header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 15px; border-bottom: 2px solid #222; }
.nl_header .nl_title { margin: 0; font-size: 18px; font-weight: bold; }
.nl_header .nl_title a { color: #222; text-decoration: none; }
.nl_header .nl_more {font-size: 11px;
    color: #888;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 0 7px 0px 4px;
    line-height: 22px; }
.nl_header .nl_more:hover { color: #222; }

.nl_list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; list-style: none; padding: 0; margin: 0; }
.nl_item a { display: block; text-decoration: none; }

.nl_cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.4; 
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nl_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}
.no_img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #ccc; font-weight: bold; background: #fafafa; }

.badge_up {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff3366;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}

.nl_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nl_info { width: 100%; }
.nl_subj { font-size: 15px; font-weight: bold; color: #fff; line-height: 1.3; margin-bottom: 4px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl_author { font-size: 12px; color: #ccc; text-shadow: 0 1px 2px rgba(0,0,0,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nl_item:hover .nl_cover img { transform: scale(1.08); } 
.nl_item:hover .nl_overlay { opacity: 1; transform: translateY(0); }

/* 카테고리(장르) 뱃지 스타일 */
.nl_cate { 
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #ffca28; /* 눈에 잘 띄는 노란/골드 계열 */
    border: 1px solid rgba(255, 202, 40, 0.5);
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .nl_list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
    .nl_list { grid-template-columns: repeat(2, 1fr); }
}

/* 나폴레오님 용 
body.dm .nl_header { border-bottom-color: #4e546f; }
body.dm .nl_header .nl_title a { color: #eee; }
body.dm .nl_cover { border-color: #353945; }
body.dm .no_img { background: #242731; color: #555; }
*/
/* 다크모드 대응 */
html[data-theme="dark"] .nl_header { border-bottom-color: #4e546f; }
html[data-theme="dark"] .nl_header .nl_title a { color: #eee; }
html[data-theme="dark"] .nl_cover { border-color: #353945; }
html[data-theme="dark"] .no_img { background: #242731; color: #555; }
