/* ============================================
   NOVELVERSE - MODERN PREMIUM UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Brand Colors - Soft Purple Theme */
    --primary-color: #8b5cf6;
    /* Violet 500 */
    --primary-hover: #7c3aed;
    /* Violet 600 */
    --primary-light: #f3e8ff;
    /* Violet 100 */
    --primary-soft: #ddd6fe;
    /* Violet 200 */

    /* Accent Colors */
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;

    /* Text Colors */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */
    --text-white: #ffffff;

    /* Backgrounds */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    /* Slate 100 */

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Layout */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* ============================================
   GLOBAL RESETS & UTILS
   ============================================ */

.novel-series-page.modern-layout {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

.novel-series-page.modern-layout * {
    box-sizing: border-box;
}

.novel-series-page h1,
.novel-series-page h2,
.novel-series-page h3,
.novel-series-page h4,
.novel-series-page h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.novel-info-container {
    position: relative;
    padding: 60px 0 80px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
    overflow: hidden;
}

/* Glassmorphism overlay for background */
.novel-info-container::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: rgba(255, 255, 255, 0.9); */
    backdrop-filter: blur(20px);
    z-index: 1;
}

/* Gradient overlay at bottom */
.novel-info-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-body), transparent);
    z-index: 2;
}

.novel-info-flex {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* --- Cover Image --- */
.novel-cover-wrap {
    flex: 0 0 260px;
    width: 260px;
    position: relative;
}

.novel-cover-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: block;
    transition: transform 0.3s ease;
}

.novel-cover-img:hover {
    transform: translateY(-5px);
}

/* --- Action Buttons (Bookmark) --- */
.novel-actions-modern {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-bookmark-modern {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-bookmark-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-bookmark-modern.bookmarked {
    background: var(--text-main);
    box-shadow: none;
}

.follower-count {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.follower-count strong {
    color: var(--primary-color);
}

/* --- Details Column --- */
.novel-details-wrap {
    flex: 1;
    padding-top: 10px;
}

.novel-status-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.novel-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 5px;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.novel-native-name {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Meta Grid */
.novel-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 700;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

.meta-value a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.meta-value a:hover {
    color: var(--primary-color);
}

/* Synopsis */
.novel-summary {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 800px;
}

.synopsis-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 5px;
}

.synopsis-more:hover {
    text-decoration: underline;
}

/* Tags */
.novel-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: var(--bg-input);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #1e293b;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ============================================
   READING SECTION
   ============================================ */

.novel-reading-section {
    margin-top: -40px;
    /* Pull up to overlap hero fade */
    position: relative;
    z-index: 20;
    padding-bottom: 60px;
}

.read-title {
    display: none;
    /* Hide default title for cleaner look */
}

/* Read Buttons */
.read-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-read-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* First Chapter Button */
.btn-read-action.first-chapter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.btn-read-action.first-chapter:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* New Chapter Button */
.btn-read-action.new-chapter {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-read-action.new-chapter:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-read-action .sub-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 600;
}

.btn-read-action .main-label {
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* ============================================
   CHAPTER LIST
   ============================================ */

.novel-chapter-list-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 40px;
}

.chapter-list-header-bar {
    padding: 20px 25px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.chapter-list-header-bar::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    margin-right: 12px;
    border-radius: 2px;
}

.chapter-list-table-headings {
    display: flex;
    padding: 12px 25px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.chapter-list-rows {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 600px;
    overflow-y: auto;
}

/* Scrollbar for chapter list */
.chapter-list-rows::-webkit-scrollbar {
    width: 6px;
}

.chapter-list-rows::-webkit-scrollbar-track {
    background: transparent;
}

.chapter-list-rows::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 20px;
}

.chapter-row {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.chapter-row:last-child {
    border-bottom: none;
}

.chapter-row:hover {
    background-color: var(--primary-light);
}

.chapter-row-link {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.chapter-row:hover .chapter-row-link {
    color: var(--primary-hover);
}

.col-vol {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--text-main);
}

.col-title {
    flex: 1;
    font-weight: 500;
}

.col-date {
    flex: 0 0 120px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.novel-comments-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 50px;
}

.comments-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 32px;
}

/* Comment Card Layout */
.comment-body {
    background: #f8fafc;
    /* Soft light background */
    border: 1px solid #e2e8f0;
    /* Subtle border */
    border-radius: 16px;
    /* Softer corners */
    padding: 32px;
    padding-left: 100px;
    /* Space for avatar */
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-body:hover {
    background: #ffffff;
    border-color: var(--primary-soft);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Avatar - Absolutely Positioned */
.comment-author .avatar {
    position: absolute;
    top: 32px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #fff;
}

/* Author Name & Meta */
.comment-meta {
    margin-bottom: 15px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author .fn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    font-style: normal;
    line-height: 1.2;
}

.comment-author .fn a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-author .fn a:hover {
    color: var(--primary-color);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.comment-metadata a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

/* Comment Content */
.comment-content {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.comment-content p {
    margin: 0 0 12px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply Button */
.reply {
    text-align: right;
    margin-top: 20px;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

/* Nested Comments */
.children {
    list-style: none;
    padding-left: 0;
    margin-top: 32px;
    margin-left: 50px;
    border-left: 2px solid var(--border-color);
}

.children .comment {
    margin-bottom: 24px;
    padding-left: 30px;
}


.chapter-row:hover .chapter-row-link {
    color: var(--primary-hover);
}

.col-vol {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--text-main);
}

.col-title {
    flex: 1;
    font-weight: 500;
}

.col-date {
    flex: 0 0 120px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.novel-comments-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 50px;
}

.comments-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 32px;
}

/* Comment Card Layout */
.comment-body {
    background: #f8fafc;
    /* Soft light background */
    border: 1px solid #e2e8f0;
    /* Subtle border */
    border-radius: 16px;
    /* Softer corners */
    padding: 32px;
    padding-left: 100px;
    /* Space for avatar */
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-body:hover {
    background: #ffffff;
    border-color: var(--primary-soft);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Avatar - Absolutely Positioned */
.comment-author .avatar {
    position: absolute;
    top: 32px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #fff;
}

/* Author Name & Meta */
.comment-meta {
    margin-bottom: 15px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author .fn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    font-style: normal;
    line-height: 1.2;
}

.comment-author .fn a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-author .fn a:hover {
    color: var(--primary-color);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.comment-metadata a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

/* Comment Content */
.comment-content {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.comment-content p {
    margin: 0 0 12px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply Button */
.reply {
    text-align: right;
    margin-top: 20px;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

/* Nested Comments */
.children {
    list-style: none;
    padding-left: 0;
    margin-top: 32px;
    margin-left: 50px;
    border-left: 2px solid var(--border-color);
}

.children .comment {
    margin-bottom: 24px;
    padding-left: 30px;
}

.children .comment:last-child {
    margin-bottom: 0;
}

/* Comment Form */
.comment-respond {
    margin-top: 60px;
    background: #f8fafc;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.comment-reply-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
    color: var(--text-main);
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.comment-form-comment label {
    display: none;
}

.comment-form textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-submit {
    margin-top: 10px;
    text-align: right;
}

.form-submit .submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.form-submit .submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* ============================================
   RECOMMENDED SERIES
   ============================================ */

.novel-recommended-section {
    margin-top: 40px;
}

.recommended-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recommended-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

.recommended-item {
    background: transparent;
    transition: transform 0.3s ease;
}

.recommended-item:hover {
    transform: translateY(-5px);
}

.recommended-link {
    text-decoration: none;
}

.recommended-cover {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 2/3;
    margin-bottom: 12px;
}

.recommended-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommended-item:hover .recommended-cover img {
    transform: scale(1.1);
}

.rec-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.recommended-info {
    padding: 0 5px;
}

.rec-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-item:hover .rec-title {
    color: var(--primary-color);
}

.rec-chapter-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 768px) {

    /* Global Mobile Fixes */
    .novel-series-page.modern-layout {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }

    /* Container & Spacing */
    .novel-info-container {
        padding: 30px 0 50px;
    }

    /* Hero Section - Stacked */
    .novel-info-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        width: 100%;
        /* Ensure flex container fits */
    }

    .novel-cover-wrap {
        width: 160px;
        /* Slightly smaller for better fit */
        flex: 0 0 auto;
        margin: 0 auto;
        max-width: 100%;
    }

    .novel-details-wrap {
        width: 100%;
        padding: 0;
    }

    .novel-title {
        font-size: 1.75rem;
        margin-bottom: 10px;
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    .novel-native-name {
        margin-bottom: 20px;
        font-size: 1rem;
    }

    /* Meta Grid - 2 Columns */
    .novel-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        text-align: left;
        padding: 15px;
        margin-bottom: 20px;
    }

    .meta-item {
        align-items: flex-start;
    }

    /* Tags - Centered */
    .novel-tags-section {
        justify-content: center;
        margin-top: 10px;
    }

    /* Reading Section */
    .novel-reading-section {
        margin-top: -30px;
        padding-bottom: 40px;
    }

    /* Buttons - Full Width Stacked */
    .read-buttons-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .btn-read-action {
        padding: 16px;
        width: 100%;
        /* Ensure full width */
    }

    /* Chapter List - Compact List */
    .novel-chapter-list-modern {
        margin-bottom: 30px;
        border-radius: 12px;
        /* Slightly smaller radius for mobile */
    }

    .chapter-list-header-bar {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .chapter-list-table-headings {
        display: none;
    }

    .chapter-list-rows {
        max-height: 450px;
    }

    .chapter-row-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 5px;
    }

    .col-vol {
        flex: auto;
        width: 100%;
        font-size: 0.95rem;
        color: var(--primary-color);
        margin-bottom: 2px;
    }

    transition: transform 0.3s ease;
}

.recommended-item:hover {
    transform: translateY(-5px);
}

.recommended-link {
    text-decoration: none;
}

.recommended-cover {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 2/3;
    margin-bottom: 12px;
}

.recommended-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommended-item:hover .recommended-cover img {
    transform: scale(1.1);
}

.rec-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.recommended-info {
    padding: 0 5px;
}

.rec-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-item:hover .rec-title {
    color: var(--primary-color);
}

.rec-chapter-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 768px) {

    /* Global Mobile Fixes */
    .novel-series-page.modern-layout {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }

    /* Container & Spacing */
    .novel-info-container {
        padding: 30px 0 50px;
    }

    /* Hero Section - Stacked */
    .novel-info-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        width: 100%;
        /* Ensure flex container fits */
    }

    .novel-cover-wrap {
        width: 160px;
        /* Slightly smaller for better fit */
        flex: 0 0 auto;
        margin: 0 auto;
        max-width: 100%;
    }

    .novel-details-wrap {
        width: 100%;
        padding: 0;
    }

    .novel-title {
        font-size: 1.75rem;
        margin-bottom: 10px;
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    .novel-native-name {
        margin-bottom: 20px;
        font-size: 1rem;
    }

    /* Meta Grid - 2 Columns */
    .novel-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        text-align: left;
        padding: 15px;
        margin-bottom: 20px;
    }

    .meta-item {
        align-items: flex-start;
    }

    /* Tags - Centered */
    .novel-tags-section {
        justify-content: center;
        margin-top: 10px;
    }

    /* Reading Section */
    .novel-reading-section {
        margin-top: -30px;
        padding-bottom: 40px;
    }

    /* Buttons - Full Width Stacked */
    .read-buttons-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .btn-read-action {
        padding: 16px;
        width: 100%;
        /* Ensure full width */
    }

    /* Chapter List - Compact List */
    .novel-chapter-list-modern {
        margin-bottom: 30px;
        border-radius: 12px;
        /* Slightly smaller radius for mobile */
    }

    .chapter-list-header-bar {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .chapter-list-table-headings {
        display: none;
    }

    .chapter-list-rows {
        max-height: 450px;
    }

    .chapter-row-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 5px;
    }

    .col-vol {
        flex: auto;
        width: 100%;
        font-size: 0.95rem;
        color: var(--primary-color);
        margin-bottom: 2px;
    }

    transition: transform 0.3s ease;
}

.recommended-item:hover {
    transform: translateY(-5px);
}

.recommended-link {
    text-decoration: none;
}

.recommended-cover {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 2/3;
    margin-bottom: 12px;
}

.recommended-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommended-item:hover .recommended-cover img {
    transform: scale(1.1);
}

.rec-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.recommended-info {
    padding: 0 5px;
}

.rec-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-item:hover .rec-title {
    color: var(--primary-color);
}

.rec-chapter-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 768px) {

    /* Global Mobile Fixes */
    .novel-series-page.modern-layout {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }

    /* Container & Spacing */
    .novel-info-container {
        padding: 30px 0 50px;
    }

    /* Hero Section - Stacked */
    .novel-info-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        width: 100%;
        /* Ensure flex container fits */
    }

    .novel-cover-wrap {
        width: 160px;
        /* Slightly smaller for better fit */
        flex: 0 0 auto;
        margin: 0 auto;
        max-width: 100%;
    }

    .novel-details-wrap {
        width: 100%;
        padding: 0;
    }

    .novel-title {
        font-size: 1.75rem;
        margin-bottom: 10px;
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    .novel-native-name {
        margin-bottom: 20px;
        font-size: 1rem;
    }

    /* Meta Grid - 2 Columns */
    .novel-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        text-align: left;
        padding: 15px;
        margin-bottom: 20px;
    }

    .meta-item {
        align-items: flex-start;
    }

    /* Tags - Centered */
    .novel-tags-section {
        justify-content: center;
        margin-top: 10px;
    }

    /* Reading Section */
    .novel-reading-section {
        margin-top: -30px;
        padding-bottom: 40px;
    }

    /* Buttons - Full Width Stacked */
    .read-buttons-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .btn-read-action {
        padding: 16px;
        width: 100%;
        /* Ensure full width */
    }

    /* Chapter List - Compact List */
    .novel-chapter-list-modern {
        margin-bottom: 30px;
        border-radius: 12px;
        /* Slightly smaller radius for mobile */
    }

    .chapter-list-header-bar {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .chapter-list-table-headings {
        display: none;
    }

    .chapter-list-rows {
        max-height: 450px;
    }

    .chapter-row-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 5px;
    }

    .col-vol {
        flex: auto;
        width: 100%;
        font-size: 0.95rem;
        color: var(--primary-color);
        margin-bottom: 2px;
    }

    ``` transition: transform 0.3s ease;
}

.recommended-item:hover {
    transform: translateY(-5px);
}

.recommended-link {
    text-decoration: none;
}

.recommended-cover {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 2/3;
    margin-bottom: 12px;
}

.recommended-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommended-item:hover .recommended-cover img {
    transform: scale(1.1);
}

.rec-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.recommended-info {
    padding: 0 5px;
}

.rec-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-item:hover .rec-title {
    color: var(--primary-color);
}

.rec-chapter-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 768px) {

    /* Global Mobile Fixes */
    .novel-series-page.modern-layout {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }

    /* Container & Spacing */
    .novel-info-container {
        padding: 30px 0 50px;
    }

    /* Hero Section - Stacked */
    .novel-info-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        width: 100%;
        /* Ensure flex container fits */
    }

    .novel-cover-wrap {
        width: 160px;
        /* Slightly smaller for better fit */
        flex: 0 0 auto;
        margin: 0 auto;
        max-width: 100%;
    }

    .novel-details-wrap {
        width: 100%;
        padding: 0;
    }

    .novel-title {
        font-size: 1.75rem;
        margin-bottom: 10px;
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    .novel-native-name {
        margin-bottom: 20px;
        font-size: 1rem;
    }

    /* Meta Grid - 2 Columns */
    .novel-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        text-align: left;
        padding: 15px;
        margin-bottom: 20px;
    }

    .meta-item {
        align-items: flex-start;
    }

    /* Tags - Centered */
    .novel-tags-section {
        justify-content: center;
        margin-top: 10px;
    }

    /* Reading Section */
    .novel-reading-section {
        margin-top: -30px;
        padding-bottom: 40px;
    }

    /* Buttons - Full Width Stacked */
    .read-buttons-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .btn-read-action {
        padding: 16px;
        width: 100%;
        /* Ensure full width */
    }

    /* Chapter List - Compact List */
    .novel-chapter-list-modern {
        margin-bottom: 30px;
        border-radius: 12px;
        /* Slightly smaller radius for mobile */
    }

    .chapter-list-header-bar {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .chapter-list-table-headings {
        display: none;
    }

    .chapter-list-rows {
        max-height: 450px;
    }

    .chapter-row-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        gap: 5px;
    }

    .col-vol {
        flex: auto;
        width: 100%;
        font-size: 0.95rem;
        color: var(--primary-color);
        margin-bottom: 2px;
    }

    text-align: center !important;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.recommended-title::after {
    display: none !important;
}

.recommended-series-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 1rem !important;
}

.recommended-item {
    background: linear-gradient(145deg, #f8f9ff, #e8ecff) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(100, 150, 255, 0.2) !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.recommended-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2) !important;
}

.recommended-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.recommended-cover {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
    /* Let height control it */
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.recommended-cover img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    transition: transform 0.3s ease !important;
}

.rec-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
    border-radius: 12px !important;
}

.recommended-item:hover .rec-overlay {
    opacity: 1 !important;
}

.recommended-info {
    padding: 0 !important;
    text-align: center !important;
}

.rec-title {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1e293b !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 0.5rem !important;
    line-height: 1.4 !important;
    height: auto !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
}

.rec-chapter-line {
    justify-content: center !important;
    font-size: 0.85rem !important;
    color: #a855f7 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-bottom: 4px !important;
}

.rec-rating-stars {
    justify-content: center !important;
    color: #fbbf24 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.rec-score {
    color: #666 !important;
    font-size: 0.8rem !important;
}

/* Dark Mode Overrides */
.theme-dark .recommended-item {
    background: linear-gradient(145deg, #1e293b, #0f172a) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.theme-dark .rec-title {
    color: #e2e8f0 !important;
}

.theme-dark .recommended-title {
    background: linear-gradient(90deg, #818cf8 0%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
}

.theme-dark .rec-score {
    color: #aaa !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .recommended-series-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    .recommended-title {
        font-size: 1.3rem !important;
    }

    .recommended-cover img {
        height: 160px !important;
        /* Smaller height for mobile */
    }
}

```