/*
Theme Name: Manga Starter
Theme URI: https://yourdomain.com
Author: Admin
Description: A dark manga reading theme for WordPress with Comic Easel support.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: manga-starter
*/

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16162a;
    --bg-input: #1e1e36;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a80;
    --accent-yellow: #ffd700;
    --accent-purple: #8b5cf6;
    --accent-magenta: #c850c0;
    --accent-pink: #ff6b9d;
    --border-color: #2a2a45;
    --border-yellow: #ffd700;
    --gradient-header: linear-gradient(135deg, #1a0533 0%, #2d1b69 30%, #5b2c8e 60%, #c850c0 100%);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.2);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== HEADER BANNER ========== */
.manga-header {
    background: var(--gradient-header);
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 20px auto 0;
    border-radius: 8px;
    padding: 30px 40px;
    background-size: cover;
    background-position: center;
}

.manga-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 29, 0.85);
    z-index: 1;
}

.manga-header .header-content {
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

.manga-header .cover-image {
    display: none;
}

.manga-header .header-info {
    flex: 1;
}

.manga-header .manga-title {
    font-size: 50px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.manga-header .manga-genres {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.manga-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.manga-genres-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.genre-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-yellow);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== METADATA GRID ========== */
.manga-meta-container {
    max-width: 900px;
    margin: 20px auto 30px;
    background: #11111d;
    /* Very dark blue from image */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.manga-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
}

.manga-meta-grid .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.manga-meta-grid .meta-icon {
    font-size: 13px;
    color: var(--accent-yellow);
    width: 16px;
    /* Fixed width to align text nicely */
    text-align: center;
}

.manga-meta-grid .meta-label {
    color: var(--accent-yellow);
    font-weight: 700;
    white-space: nowrap;
}

.manga-meta-grid .meta-value {
    color: var(--text-primary);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== CHAPTERS SECTION ========== */
.chapters-section {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.chapters-section .section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* First/Last Chapter Buttons */
.chapter-nav-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.chapter-nav-buttons .nav-btn.outline-btn {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px !important;
    background: #11111d !important;
    border: 1px solid var(--accent-yellow) !important;
    border-radius: 8px !important;
    color: var(--accent-yellow) !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chapter-nav-buttons .nav-btn.outline-btn:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: var(--accent-yellow) !important;
    transform: translateY(-2px);
    color: var(--accent-yellow) !important;
}



.chapter-nav-buttons .nav-btn svg,
.chapter-nav-buttons .nav-btn .btn-icon {
    width: 18px;
    height: 18px;
}

/* Override any plugin-injected .nav-btn styling */
.chapter-nav-buttons .nav-btn {
    background: #11111d !important;
    border: 1px solid var(--accent-yellow) !important;
    border-radius: 8px !important;
    color: var(--accent-yellow) !important;
    text-decoration: none !important;
}

.chapter-nav-buttons .nav-btn:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: var(--accent-yellow) !important;
    color: var(--accent-yellow) !important;
}

/* Search Bar */
.chapter-search {
    position: relative;
    margin-bottom: 20px;
}

.chapter-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.chapter-search input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chapter-search input::placeholder {
    color: var(--text-muted);
}

.chapter-search input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    direction: ltr;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chapter-grid::-webkit-scrollbar {
    width: 6px;
}

.chapter-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.chapter-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 15px 20px;
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.chapter-item .chapter-name {
    flex: 1; /* Pushes the badge to the right */
    text-align: left;
}

.chapter-item:hover {
    background: #1a1a2e;
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--accent-yellow);
    transform: translateX(4px);
}

.chapter-item.hidden {
    display: none;
}

/* Badges */
.badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
}

.badge-hot {
    background: rgba(255, 69, 0, 0.18);
    color: #ff5722;
    border: 1px solid rgba(255, 69, 0, 0.4);
}

.badge-new {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* SVG icon inside badges */
.badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ========== SYNOPSIS SECTION ========== */
.synopsis-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.synopsis-box {
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.synopsis-box .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.synopsis-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.synopsis-content .synopsis-cover {
    width: 220px;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.synopsis-content .synopsis-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.synopsis-content .synopsis-text p {
    margin-bottom: 12px;
}

.synopsis-content .synopsis-text p:last-child {
    margin-bottom: 0;
}

/* ========== WHY READ SECTION ========== */
.why-read-section {
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.why-read-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.why-read-box {
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.why-read-box p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.why-read-box p:last-child {
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.feature-icon {
    display: block;
    font-size: 28px;
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.faq-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question i {
    color: var(--accent-yellow);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: -5px;
    padding-top: 15px;
}

.faq-item.active {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========== FOOTER ========== */
.site-footer {
    margin-top: 60px;
    padding: 0 20px 40px;
}

.footer-card {
    max-width: 900px;
    margin: 0 auto;
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--accent-yellow);
}

.footer-credit {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer-disclaimer {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

/* ========== CHAPTER READER (single-comic) ========== */
.reader-hero {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px auto 0;
}

.reader-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 29, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.reader-hero-overlay h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.chapter-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-yellow);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.breadcrumb-bar {
    background: #11111d;
    max-width: 900px;
    margin: 5px auto 0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.breadcrumb-bar a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-bar a:hover {
    color: var(--accent-yellow);
}

.breadcrumb-bar a.home-crumb,
.breadcrumb-bar a.home-crumb i {
    color: var(--accent-yellow);
}

.breadcrumb-bar span {
    color: #666;
}

.breadcrumb-bar .current-crumb {
    color: #fff;
}

.reader-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.reader-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto 20px;
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.reader-nav-bar .nav-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-height: 50px;
    color: var(--accent-yellow);
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.reader-nav-bar .nav-arrow:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-yellow);
}

.reader-nav-bar .nav-arrow.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: default;
}

.nav-chapter-select {
    flex: 1;
    min-width: 130px;
    position: relative;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-chapter-select select {
    width: 100%;
    min-width: 120px;
    padding: 14px 40px 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
    outline: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.nav-chapter-select select option {
    background: #11111d;
    color: var(--text-primary);
    padding: 10px;
}

.nav-chapter-select .select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-purple);
    font-size: 12px;
    pointer-events: none;
}

.reader-images {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.reader-images img {
    width: 100%;
    margin-bottom: 0;
    display: block;
}

/* ========== ABOUT MANGA BOX ========== */
.about-manga-box {
    max-width: 900px;
    margin: 30px auto;
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.about-manga-title {
    color: var(--accent-yellow);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-manga-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-manga-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.about-manga-col img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.about-manga-col p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.about-manga-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-manga-card {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
}

.about-manga-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.about-manga-card h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.about-manga-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.about-manga-card p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

/* ========== KEY ELEMENTS (SEO) ========== */
.key-elements-box {
    max-width: 900px;
    margin: 30px auto;
    background: #11111d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.key-elements-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
}

.key-elements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-elements-list li {
    position: relative;
    padding-left: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.key-elements-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
}

.key-elements-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========== RESPONSIVE — MOBILE FRIENDLY ========== */

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Ensure minimum tap target size (44px) for Google Mobile SEO */
a,
button,
.chapter-item,
.nav-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .site-wrapper {
        padding: 0 10px;
    }

    .manga-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .features-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .manga-header .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .manga-header .manga-title {
        font-size: 22px;
    }

    .manga-meta-container {
        margin: 15px 16px 25px;
        padding: 20px;
    }

    .manga-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
        gap: 15px 20px;
    }

    .chapter-nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    /* 2 columns on tablet */
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .synopsis-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .synopsis-cover {
        max-width: 180px;
        margin: 0 auto 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Stack features on mobile */
    }

    .why-read-box {
        padding: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-nav .sep {
        display: none;
    }

    .footer-nav a {
        min-height: 44px;
        padding: 0 16px;
        display: flex;
        align-items: center;
    }

    /* Reader nav bar - responsive */
    .reader-nav-bar {
        max-width: 100%;
        border-radius: 10px;
    }

    .reader-nav-bar .nav-arrow {
        width: 50px;
    }

    .nav-chapter-select select {
        font-size: 14px;
        padding: 12px 35px 12px 15px;
    }

    .reader-header h1 {
        font-size: 18px;
    }

    .key-elements-list {
        grid-template-columns: 1fr;
    }

    .about-manga-top {
        grid-template-columns: 1fr;
    }

    .about-manga-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .manga-header {
        padding: 15px 12px;
    }

    .manga-header .manga-title {
        font-size: 32px;
    }

    .manga-meta-grid {
        grid-template-columns: 1fr;
        /* 1 column on smallest mobile screens */
        gap: 12px;
    }

    .section-title,
    .chapters-section .section-title {
        font-size: 17px;
    }

    /* 2 columns on mobile — readable tap targets */
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .chapter-item {
        padding: 12px 8px;
        font-size: 12px;
        min-height: 44px;
    }

    .chapter-search input {
        font-size: 14px;
    }

    .why-read-section p {
        font-size: 14px;
    }

    /* Full width buttons on small screens */
    .nav-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
}

/* Prevent horizontal scroll on all devices */
* {
    box-sizing: border-box;
}

body,
.site-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}


/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapters-section,
.synopsis-section,
.why-read-section {
    animation: fadeInUp 0.6s ease forwards;
}

.synopsis-section {
    animation-delay: 0.1s;
}

.why-read-section {
    animation-delay: 0.2s;
}

/* WordPress specific overrides */
.wp-block-image img {
    max-width: 100%;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}