.novel-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.novel-cover img {
    width: 220px;
    height: 310px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.novel-info h1 {
    font-size: 2.5rem;
    margin: 10px 0 20px 0;
}
.info-meta {
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.novel-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.novel-stats div {
    display: flex;
    flex-direction: column;
}
.novel-stats span {
    color: #aaa;
}
.novel-stats strong {
    font-size: 1.2rem;
}
.novel-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.action-btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}
.read-btn {
    background-color: #FF424D;
    color: white;
}
.read-btn.disabled { background-color: #555; color: #aaa; cursor: not-allowed; }
.admin-action-btn { background-color: #28a745; color: white; }
.bookmark-btn { background-color: transparent; border: 1px solid #555; color: #EAEAEA; }
.bookmark-btn.bookmarked { background-color: #007bff; border-color: #007bff; color: white; }



.tab-content.description-tab p {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
    line-height: 1.7;
    color: #ccc;
    white-space: pre-wrap; 
    word-wrap: break-word;
}



.tabs {
    border-bottom: 1px solid #2f2f2f;
    margin-bottom: 20px;
}
.tab-link {
    background: none;
    border: none;
    color: #aaa;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.tab-link.active {
    color: white;
    border-bottom-color: #FF424D;
}
.novel-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag { background-color: #2f2f2f; padding: 5px 12px; border-radius: 15px; font-size: 0.9rem; }



.novel-chapter-list { list-style: none; padding: 0; }
.novel-chapter-list li { margin-bottom: 10px; }
.novel-chapter-list a { display: flex; justify-content: space-between; align-items: center; padding: 15px; background-color: #2f2f2f; border-radius: 8px; text-decoration: none; color: #EAEAEA; transition: background-color 0.2s; }
.novel-chapter-list a:hover { background-color: #444; }
.chapter-info { display: flex; flex-direction: column; gap: 5px; }
.chapter-num { font-weight: bold; }
.chapter-title { color: #ccc; font-size: 0.9rem; }
.chapter-meta { display: flex; align-items: center; gap: 20px; color: #aaa; }
.chapter-likes { font-weight: 500; }

.rating-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex !important;
    flex-direction: row !important; 
    gap: 2px;
}
.stars:not(.disabled) { cursor: pointer; }
.stars.disabled { cursor: not-allowed; }
.star {
    font-size: 1.5rem;
    color: #444;
    transition: color 0.2s, transform 0.2s;
    padding: 0 2px;
}
.star.avg-highlight { color: #888; }
.star.user-highlight { color: #FFD700; }
.star.hover-highlight { color: #FFD700; }
.average-rating { color: #aaa; font-size: 0.9rem; display: inline-block; margin: 0; }
.rating-count { margin-left: 5px; color: #888; font-size: 0.85rem; display: inline; }
.rating-notice { font-size: 0.8rem; color: #888; margin-top: 5px; display: block; }

@media (max-width: 768px) {
    .novel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .novel-info {
        width: 100%;
    }
    .novel-stats, .novel-actions {
        justify-content: center;
    }
    .rating-section {
        align-items: center; 
    }
    .novel-info h1 {
        font-size: 2rem;
    }
    .novel-chapter-list a {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
	.novel-cover img { width: 70vw; height: auto; max-width: 360px; }
	.tab-link { padding: 10px 12px; }
	.action-btn { width: 100%; max-width: 420px; }
	.chapter-meta { gap: 12px; }
}

@media (max-width: 420px) {
	.novel-info h1 { font-size: 1.6rem; }
	.tab-link { font-size: 0.95rem; }
	.chapter-title { font-size: 0.85rem; }
}