/* ========================================
   MODERN MANGA THEME - Completely New Layout
   Wide, Bold, Beautiful
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    --gradient-card: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);

    /* Colors */
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-text: #1a202c;
    --color-text-light: #718096;
    --color-bg: #f7fafc;
    --color-white: #ffffff;

    /* Shadows */
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-hero: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === CONTAINERS === */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HERO HEADER === */
.hero-header {
    position: relative;
    background: var(--gradient-hero);
    padding: 32px 0;
    margin-bottom: 48px;
    box-shadow: var(--shadow-hero);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,40 600,20 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') bottom repeat-x;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.hero-logo {
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero-logo img {
    max-height: 60px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SEARCH BOX === */
.hero-search {
    width: 100%;
    max-width: 600px;
}

.search-box {
    display: flex;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.search-input-modern {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
}

.search-btn-modern {
    padding: 12px 32px;
    background: var(--gradient-hero);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* === HERO NAV === */
.hero-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === MAIN CONTENT === */
.main-modern {
    min-height: 60vh;
    padding-bottom: 60px;
}

/* === PAGE HEADER === */
.page-header-modern {
    text-align: center;
    margin-bottom: 48px;
}

.page-title-gradient {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* === MANGA GRID MODERN === */
.manga-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.manga-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.manga-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}

.manga-cover-modern {
    position: relative;
    padding-top: 140%;
    background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%);
    overflow: hidden;
}

.manga-cover-modern img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.manga-card-modern:hover .manga-cover-modern img {
    transform: scale(1.15);
}

/* === MANGA OVERLAY === */
.manga-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-overlay);
    padding: 24px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.manga-card-modern:hover .manga-overlay {
    transform: translateY(0);
}

.manga-overlay-content {
    color: white;
}

.manga-title-modern {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manga-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    opacity: 0.7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 700;
    font-size: 14px;
}

/* === PAGINATION MODERN === */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 60px 0;
}

.pagination-btn {
    padding: 14px 28px;
    background: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    background: var(--gradient-hero);
    color: white;
}

.pagination-arrow {
    font-size: 18px;
    font-weight: 900;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: var(--gradient-hero);
    color: white;
    transform: translateY(-3px);
}

.pagination-number.active {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* === ALERTS === */
.alert-modern {
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.alert-icon {
    font-size: 24px;
    font-weight: 900;
}

.alert-success-modern {
    background: linear-gradient(135deg, #d4f4dd 0%, #c3f0d3 100%);
    color: #1e7e34;
    border-left: 5px solid #28a745;
}

.alert-error-modern {
    background: linear-gradient(135deg, #ffd6d6 0%, #ffc2c2 100%);
    color: #c82333;
    border-left: 5px solid #dc3545;
}

/* === FOOTER === */
.footer-modern {
    position: relative;
    background: var(--gradient-hero);
    color: white;
    padding: 48px 0;
    margin-top: 80px;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,40 600,20 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') top repeat-x;
    opacity: 0.3;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-about {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-copy {
    font-size: 14px;
    opacity: 0.7;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-light);
    font-size: 18px;
}

/* === SEO CONTENT === */
.seo-content-modern {
    margin-top: 60px;
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .manga-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-header {
        padding: 24px 0;
        margin-bottom: 32px;
    }

    .hero-logo {
        font-size: 24px;
    }

    .hero-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-item {
        font-size: 14px;
        padding: 6px 16px;
    }

    .page-title-gradient {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .manga-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .pagination-modern {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pagination-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .pagination-number {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container-wide {
        padding: 0 16px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }

    .search-input-modern,
    .search-btn-modern {
        border-radius: 16px;
    }

    .manga-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .manga-title-modern {
        font-size: 15px;
    }

    .pagination-numbers {
        gap: 6px;
    }

    .pagination-number {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* === ADMIN STYLES === */
.admin-header {
    background: var(--gradient-hero);
    color: white;
    padding: 16px 0;
    margin-bottom: 32px;
    box-shadow: var(--shadow-hero);
}

.admin-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
    background: var(--gradient-card);
    font-weight: 700;
    color: var(--color-primary);
}

.admin-table tr:hover {
    background: rgba(102, 126, 234, 0.02);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-hero);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   MANGA DETAIL PAGE
   ======================================== */

.manga-detail-modern {
    margin-bottom: 60px;
}

.manga-hero-section {
    position: relative;
    background: var(--gradient-hero);
    padding: 60px 0;
    margin: -48px -24px 80px;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.manga-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.2;
}

.manga-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

.manga-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.manga-poster-large {
    flex-shrink: 0;
    width: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.manga-poster-large img {
    width: 100%;
    display: block;
}

.manga-info-large {
    flex: 1;
    color: white;
}

.manga-title-large {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.manga-genres-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.genre-pill {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.genre-pill:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.manga-stats-large {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.manga-actions-modern {
    display: flex;
    gap: 16px;
}

.btn-read-now,
.btn-read-latest {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-read-now {
    background: white;
    color: var(--color-primary);
}

.btn-read-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-read-latest {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-read-latest:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.manga-description-modern,
.chapter-section-modern {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
}

.section-title-modern {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chapter-count-badge {
    background: var(--gradient-hero);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 16px;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
}

.chapter-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.chapter-card-modern {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.chapter-card-modern:hover {
    border-color: var(--color-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.chapter-number {
    font-size: 14px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.chapter-title-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.chapter-date-text {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ========================================
   READER PAGE
   ======================================== */

.reader-modern {
    background: #1a1a1a;
    margin: -48px -24px 0;
    padding: 24px 0;
    min-height: 100vh;
}

.reader-header-modern {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin: 0 24px 24px;
    box-shadow: var(--shadow-card);
}

.reader-info {
    margin-bottom: 16px;
}

.reader-manga-title {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.reader-chapter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
}

.chapter-selector-modern {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.reader-navigation-top,
.reader-navigation-bottom {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-radius: 16px;
    margin: 0 24px 24px;
    box-shadow: var(--shadow-card);
}

.reader-navigation-bottom {
    margin-top: 24px;
}

.nav-btn-modern {
    flex: 1;
    padding: 16px 24px;
    background: var(--gradient-hero);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-btn-modern.nav-home {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.nav-btn-modern.nav-disabled {
    background: #e0e7ff;
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
}

.nav-btn-modern.nav-disabled:hover {
    transform: none;
}

.nav-arrow {
    font-size: 20px;
    font-weight: 900;
}

.reader-images-modern {
    max-width: 1000px;
    margin: 0 auto;
}

.reader-page {
    width: 100%;
    margin-bottom: 4px;
    display: block;
}

.reader-empty {
    text-align: center;
    padding: 80px 20px;
    color: white;
    font-size: 18px;
}

/* ========================================
   SEARCH PAGE
   ======================================== */

.search-results-modern {
    margin-bottom: 60px;
}

.search-header-modern {
    text-align: center;
    margin-bottom: 40px;
}

.search-title-gradient {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.search-count {
    font-size: 18px;
    color: var(--color-text-light);
    font-weight: 600;
}

.search-box-page {
    max-width: 800px;
    margin: 0 auto 60px;
}

.search-form-large {
    display: flex;
    gap: 16px;
    background: white;
    padding: 12px;
    border-radius: 50px;
    box-shadow: var(--shadow-card);
}

.search-input-large {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    border-radius: 50px;
    outline: none;
}

.search-submit-large {
    padding: 16px 40px;
    background: var(--gradient-hero);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-submit-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-empty {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.search-empty h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 12px;
}

.search-empty p {
    font-size: 16px;
    color: var(--color-text-light);
}

/* ========================================
   GENRE PAGES
   ======================================== */

.genre-page-modern,
.genres-list-modern {
    margin-bottom: 60px;
}

.genre-header-modern {
    text-align: center;
    margin-bottom: 48px;
}

.genre-title-gradient {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.genre-description {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 20px;
}

.genre-stats-bar {
    display: inline-block;
    padding: 8px 24px;
    background: var(--gradient-card);
    border-radius: 50px;
    font-weight: 700;
    color: var(--color-primary);
}

.genre-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-light);
    font-size: 18px;
}

.genres-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.genre-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.genre-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.genre-card-inner {
    padding: 32px;
    position: relative;
}

.genre-card-title {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.genre-card-desc {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.genre-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 32px;
    font-size: 32px;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.genre-card-modern:hover .genre-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   RESPONSIVE FOR NEW PAGES
   ======================================== */

@media (max-width: 768px) {
    .manga-hero-section {
        padding: 40px 0;
        margin: -32px -16px 40px;
    }

    .manga-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .manga-poster-large {
        width: 200px;
    }

    .manga-title-large {
        font-size: 32px;
    }

    .manga-stats-large {
        justify-content: center;
    }

    .manga-actions-modern {
        flex-direction: column;
        width: 100%;
    }

    .btn-read-now,
    .btn-read-latest {
        width: 100%;
        text-align: center;
    }

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

    .reader-navigation-top,
    .reader-navigation-bottom {
        flex-direction: column;
    }

    .genres-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* Fix for chapter selector visibility */
.chapter-selector-modern {
    background: white;
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.chapter-selector-modern option {
    background: white;
    color: var(--color-text);
    padding: 8px;
}