/*
Theme Name: Novaflix
Theme URI: https://novaflix.com
Author: Khamosh Guftagu
Description: A professional novel reading theme for Novaflix.
Version: 1.0
Text Domain: novaflix
*/

/* General reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* then your existing CSS rules */
/* ========================= GLOBAL RESET ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ========================= TYPOGRAPHY ========================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    border-left: 5px solid #E50914;
    padding-left: 15px;
}

/* ========================= HEADER & NAVIGATION ========================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    border-bottom: 1px solid #222;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: background 0.3s;
}

.logo a {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
}

/* Navigation Menu */
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu li a {
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: #E50914;
}

/* Search Box */
.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    width: 200px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #E50914;
}

/* Hamburger Menu (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Off-canvas Menu */
@media (max-width: 768px) {
    header {
        padding: 0 15px;
        height: 60px;
    }

    .nav-container {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
        border-right: 1px solid #222;
    }

    .nav-container.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-menu li a {
        font-size: 16px;
        display: block;
        padding: 10px 0;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    /* Overlay when menu open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
}

/* ========================= HERO SLIDER ========================= */
.hero-swiper {
    width: 100%;
    height: 85vh;
    position: relative;
    background: #000;
    margin-bottom: 30px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #000 40%, transparent 100%),
                linear-gradient(to top, #000 0%, transparent 20%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 6%;
    gap: 40px;
}

.hero-details {
    flex: 1.2;
    text-align: left;
}

.hero-title {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 17px;
    color: #ddd;
    max-width: 500px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-poster {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.hero-poster img {
    width: 280px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #E50914;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(229,9,20,0.8);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #E50914;
    opacity: 1;
}

/* ========================= BUTTONS ========================= */
.btn-main {
    background: #E50914;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background: #ff0f1b;
    transform: scale(1.05);
}

.btn-main:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* ========================= GRID & CARDS ========================= */
.section {
    padding: 40px 6%;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    height: 270px;
    border-radius: 8px;
    overflow: hidden;
    background: #141414;
    transition: transform 0.3s ease, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(229,9,20,0.3);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: left;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-overlay .meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.card-overlay .btn-read {
    background: #E50914;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    align-self: flex-start;
    margin-top: 10px;
}

/* Badges */
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #E50914;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.card-badge.completed {
    background: #008000;
}

.card-badge.ongoing {
    background: #E50914;
}

.card-badge.coming-soon {
    background: #f39c12;
}

/* ========================= SINGLE NOVEL PAGE ========================= */
.novel-detail-page {
    background: #000;
    color: #fff;
}

.hero-section {
    position: relative;
    padding: 150px 0 80px 0;
    background-size: cover;
    background-position: center top;
}

.hero-section .container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.novel-poster {
    flex: 0 0 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 8px;
    overflow: hidden;
}

.novel-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.novel-info {
    flex: 1;
}

.series-tag {
    color: #E50914;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.novel-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
}

/* Meta tags and badges */
.novel-meta-tags {
    display: flex;
    gap: 10px;
    font-size: 13px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.status-badge.ongoing { background: #E50914; }
.status-badge.completed { background: #008000; }
.status-badge.coming-soon { background: #f39c12; }

.age-rating {
    border: 1px solid #555;
    padding: 2px 8px;
    border-radius: 3px;
    color: #ccc;
    font-weight: bold;
}

.genre-list {
    color: #aaa;
    font-size: 14px;
}

.genre-list span {
    color: #fff;
    font-weight: 500;
}

/* Rating stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
    margin-right: 8px;
}

.star {
    font-size: 22px;
    line-height: 1;
}

.star.filled { color: #ffb400; }
.star.half { color: #ffb400; } /* For simplicity, full star */
.star.empty { color: #444; }

.rating-value {
    font-weight: bold;
    color: #fff;
    font-size: 18px;
}

.meta-separator {
    color: #444;
    margin: 0 8px;
}

.release-year {
    color: #aaa;
    font-weight: bold;
    font-size: 16px;
}

.author-name {
    color: #E50914;
    font-weight: 500;
}

/* Short summary */
.short-summary {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    border-left: 3px solid #E50914;
    max-width: 600px;
}

.short-summary h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #E50914;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.short-summary p {
    margin: 0;
    font-size: 15px;
    color: #ddd;
    line-height: 1.5;
    font-style: italic;
}

/* Novel description */
.novel-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Action buttons */
.action-buttons {
    margin-top: 30px;
}

.btn-read-now {
    background-color: #E50914;
    color: #fff !important;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-read-now:hover {
    background-color: #ff0f1b;
    transform: scale(1.05);
}

.btn-read-now.disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* Chapter section */
.chapter-section {
    padding: 60px 0;
    background: #080808;
}

.section-title {
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: 900;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.chapter-link {
    text-decoration: none;
    color: inherit;
}

.chapter-box {
    background: #141414;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #222;
    transition: all 0.3s;
    position: relative;
}

.chapter-box:hover {
    border-color: #E50914;
    background: #1f1f1f;
    transform: translateY(-5px);
}

.chapter-number {
    color: #E50914;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.chapter-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.read-tag {
    font-size: 12px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    transition: color 0.3s;
}

.chapter-box:hover .read-tag {
    color: #E50914;
}

/* Related novels row */
.related-novels {
    padding: 60px 0;
    background: #000;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.related-card {
    height: 220px;
}

/* Tabs for novel info */
.tabs-container {
    margin: 30px 0;
}

.tab-headers {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.tab-header {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-header.active {
    color: #E50914;
    border-bottom-color: #E50914;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* ========================= SINGLE CHAPTER PAGE ========================= */
.chapter-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 110px 20px 60px;
    color: #fff;
}

/* Two-column layout */
.chapter-container {
    display: flex;
    gap: 30px;
}

.chapter-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #111;
    padding: 20px;
    border-radius: 8px;
}

.chapter-sidebar h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #E50914;
}

.chapter-sidebar ul {
    list-style: none;
}

.chapter-sidebar li {
    margin-bottom: 10px;
}

.chapter-sidebar a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.chapter-sidebar a:hover,
.chapter-sidebar a.active {
    color: #E50914;
}

.chapter-content-area {
    flex: 1;
    min-width: 0; /* prevent overflow */
}

/* Reading toolbar */
.reading-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #111;
    padding: 10px 15px;
    border-radius: 8px;
    align-items: center;
}

.font-size-controls {
    display: flex;
    gap: 10px;
}

.font-size-controls button {
    background: #222;
    border: 1px solid #333;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.font-size-controls button:hover {
    background: #E50914;
}

.theme-toggle {
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: #E50914;
}

/* Progress Bar */
.reading-progress-bar {
    height: 4px;
    background: #222;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E50914, #ff3c3c);
    width: 0;
    transition: width 0.4s ease;
    pointer-events: none;
}

/* Chapter Title */
.chapter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Meta */
.chapter-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 35px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Reading Content */
.chapter-content {
    font-family: 'Georgia', serif;
    font-size: 21px;
    line-height: 1.9;
    color: #f1f1f1;
    text-align: justify;
    transition: font-size 0.2s, background 0.2s, color 0.2s;
}

/* Sepia mode */
body.sepia-mode .chapter-content {
    background: #fbf1c7;
    color: #5f4b32;
    padding: 20px;
    border-radius: 8px;
}

body.sepia-mode {
    background: #fbf1c7;
}

body.sepia-mode .chapter-wrapper {
    background: #fbf1c7;
    color: #5f4b32;
}

body.sepia-mode .chapter-meta,
body.sepia-mode .chapter-title {
    color: #5f4b32;
}

/* Pagination */
.pagination-box {
    margin: 60px 0;
    padding: 30px;
    background: #111;
    border-radius: 16px;
    border: 1px solid #222;
    text-align: center;
}

.pg-btn {
    display: inline-block;
    min-width: 48px;
    padding: 12px 18px;
    margin: 6px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pg-btn:hover {
    transform: translateY(-3px);
}

/* Episode Navigation */
.episode-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #222;
}

.episode-nav a {
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.3s;
}

.episode-nav a:hover {
    background: #E50914;
    border-color: #E50914;
}

.episode-nav .next-episode {
    background: #E50914;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(229,9,20,0.4);
}

/* Mobile bottom nav */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .chapter-container {
        flex-direction: column;
    }

    .chapter-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: 20px;
    }

    .chapter-content {
        font-size: 19px;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #111;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #222;
        z-index: 999;
    }

    .mobile-bottom-nav a {
        background: #E50914;
        padding: 10px 20px;
        border-radius: 8px;
        color: #fff;
        font-size: 13px;
        text-decoration: none;
        flex: 1;
        margin: 0 5px;
        text-align: center;
    }

    .mobile-bottom-nav a.disabled {
        background: #333;
        pointer-events: none;
        opacity: 0.5;
    }

    body {
        padding-bottom: 70px; /* Space for fixed nav */
    }

    .chapter-wrapper {
        padding-bottom: 90px;
    }

    .episode-nav {
        display: none; /* Hide desktop nav on mobile */
    }
}

/* ========================= TAXONOMY & ARCHIVE PAGES ========================= */
.category-header {
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 5px solid #E50914;
}

.category-header p {
    color: #E50914;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.category-header h1 {
    border: none;
    padding: 0;
    font-size: 36px;
    text-transform: uppercase;
}

.category-header h1 span {
    color: #E50914;
}

.category-description {
    color: #aaa;
    margin-top: 10px;
    max-width: 600px;
}

/* Sorting/filtering */
.archive-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.archive-filters select {
    background: #141414;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    color: #fff;
    background: #141414;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #E50914;
    border-color: #E50914;
}

.pagination .current {
    background: #E50914;
    border-color: #E50914;
}

/* ========================= FOOTER ========================= */
footer {
    background: #0a0a0a;
    padding: 50px 5% 30px;
    border-top: 1px solid #222;
    color: #777;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #E50914;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #aaa;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #E50914;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ========================= ACCESSIBILITY ========================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #E50914;
    color: #fff;
    padding: 8px;
    z-index: 1001;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid #E50914;
    outline-offset: 2px;
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 768px) {
    .hero-swiper {
        height: 60vh !important;  /* Changed from auto to fixed height for better slider */
        padding: 0;
        margin-top: 0;
    }

    .hero-container {
        flex-direction: column-reverse !important;
        text-align: center !important;
        padding: 20px !important;
        gap: 15px !important;
    }

    .hero-poster {
        justify-content: center;
        width: 100%;
    }

    .hero-poster img {
        width: 180px !important;
        height: 260px !important;
        margin: 0 auto !important;
        box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3) !important;
        border-radius: 15px !important;
    }

    .hero-details {
        width: 100%;
    }

    .hero-title {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 14px !important;
        margin: 10px auto 20px !important;
        line-height: 1.5;
        opacity: 0.8;
    }

    .btn-main {
        width: 90% !important;
        padding: 15px !important;
        border-radius: 30px !important;
        font-size: 16px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .section {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .card {
        height: 240px;
        border-radius: 10px;
    }

    .hero-section .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .novel-title {
        font-size: 28px !important;
        text-align: center;
    }

    .novel-poster {
        flex: 0 0 200px;
        width: 200px;
    }

    .novel-meta {
        justify-content: center;
    }

    .novel-meta-tags {
        justify-content: center;
    }

    .short-summary {
        margin-left: auto;
        margin-right: auto;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .chapter-box {
        padding: 15px !important;
    }

    .episode-nav {
        flex-direction: column;
        gap: 10px;
    }

    .episode-nav a {
        width: 100%;
        text-align: center;
    }

    .row, .container, .wrapper {
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Hide desktop sidebar on mobile */
    .chapter-sidebar {
        display: none;
    }
}

/* Print styles */
@media print {
    header, footer, .hero-bg, .hero-overlay, .action-buttons, .chapter-section, .pagination-box, .episode-nav, .mobile-bottom-nav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        padding: 20px;
    }

    .chapter-wrapper {
        max-width: 100%;
        padding: 0;
    }

    .chapter-content {
        color: #000;
    }
}