/* MangaVerse Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #222233;
    --border-color: #2a2a3a;
    --text-primary: #e8e8f0;
    --text-secondary: #9090a0;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #7c3aed, #c026d3);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
    padding: 0 2%;
}

.header-content nav {
    margin-left: 0;
}

.header-right {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
}

.search-box input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 9px 16px 9px 40px;
    color: var(--text-primary);
    font-size: 13px;
    width: 260px;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.search-box input::placeholder { color: var(--text-secondary); }

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Main Content */
.main { padding-top: 64px; }

/* Hero Section */
.hero {
    position: relative;
    height: 480px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10,10,15,0.7) 50%, rgba(10,10,15,0.4) 100%);
}

.hero-content {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 4%;
    display: flex;
    gap: 40px;
    align-items: flex-end;
    height: 100%;
}

.hero-cover {
    width: 200px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.hero-cover img { width: 100%; height: 100%; object-fit: cover; }

.hero-info { flex: 1; padding-bottom: 10px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta .rating { color: var(--warning); }

.hero-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 12px; }

.btn-read {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-read:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-outline:hover { background: var(--bg-card); border-color: var(--accent); }

/* Sections */
.section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 2%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { color: var(--accent-light); }

.section-more {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.section-more:hover { gap: 8px; }

/* Comic Grid */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.comic-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.comic-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.comic-cover {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.comic-card:hover .comic-cover img { transform: scale(1.05); }

.comic-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-gradient);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.comic-tag.hot { background: linear-gradient(135deg, #ef4444, #f59e0b); }
.comic-tag.new { background: linear-gradient(135deg, #22c55e, #14b8a6); }

.comic-info { padding: 14px; }

.comic-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comic-chapter {
    font-size: 12px;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.comic-meta span { display: flex; align-items: center; gap: 4px; }

/* Categories */
.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.category-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.category-chip:hover, .category-chip.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 4%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Rankings */
.ranking-list { display: flex; flex-direction: column; gap: 12px; }

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.ranking-item:hover { background: var(--bg-card-hover); }

.ranking-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.ranking-number.top { background: var(--accent-gradient); color: white; }
.ranking-number.normal { background: var(--bg-primary); color: var(--text-secondary); }

.ranking-thumb {
    width: 48px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ranking-info { flex: 1; min-width: 0; }

.ranking-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-chapter { font-size: 12px; color: var(--accent-light); }
.ranking-views { font-size: 12px; color: var(--text-secondary); }

/* Comic Detail Page */
.comic-header {
    position: relative;
    padding: 40px 4%;
    overflow: hidden;
}

.comic-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.3);
}

.comic-header-content {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.comic-cover-lg {
    width: 240px;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    flex-shrink: 0;
}

.comic-cover-lg img { width: 100%; height: 100%; object-fit: cover; }

.comic-details { flex: 1; padding-top: 10px; }

.comic-genres { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

.comic-tags { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }

.comic-tag-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s;
}

.comic-tag-item:hover {
    background: rgba(124,58,237,0.2);
    border-color: rgba(124,58,237,0.4);
    color: var(--accent-light);
}

.genre-tag {
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.4);
    color: var(--accent-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.comic-name { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.comic-alt-name { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

.comic-stats { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }

.stat-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.stat-icon.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.stat-icon.green { background: rgba(34,197,94,0.15); color: #4ade80; }
.stat-icon.orange { background: rgba(245,158,11,0.15); color: #fbbf24; }
.stat-icon.purple { background: rgba(124,58,237,0.15); color: #a78bfa; }

.stat-text { display: flex; flex-direction: column; }
.stat-label { font-size: 11px; color: var(--text-secondary); }
.stat-value { font-size: 15px; font-weight: 700; }

.comic-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 24px;
}

.comic-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-action {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-action:hover { background: var(--bg-card-hover); border-color: var(--accent); }

/* Tabs */
.content-section {
    padding: 40px 0;
}

.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tab.active { background: var(--accent-gradient); color: white; }
.tab:hover:not(.active) { color: var(--text-primary); background: var(--bg-card-hover); }

/* Chapter List */
.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chapter-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.chapter-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.chapter-item-left { display: flex; flex-direction: column; gap: 4px; }
.chapter-name { font-size: 14px; font-weight: 600; }
.chapter-date { font-size: 12px; color: var(--text-secondary); }
.chapter-item-right { display: flex; align-items: center; gap: 12px; }
.chapter-views { font-size: 12px; color: var(--text-secondary); }

.chapter-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* Reader Page */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left { display: flex; align-items: center; gap: 16px; }

.btn-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-back:hover { background: var(--bg-card-hover); border-color: var(--accent); }

.comic-info-bar { display: flex; flex-direction: column; }
.comic-info-title { font-size: 15px; font-weight: 700; }
.comic-info-chapter { font-size: 12px; color: var(--text-secondary); }

.top-bar-right { display: flex; align-items: center; gap: 8px; }

.btn-tool {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-tool:hover { color: var(--text-primary); background: var(--bg-card); }

.reader-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 76px 20px 140px;
}

.page-wrapper {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.comic-page {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.comic-page img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-number {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 20px;
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 12px 20px;
}

.bottom-bar-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-section { display: flex; align-items: center; gap: 12px; }

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s;
}

.progress-text { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-nav { display: flex; gap: 8px; }

.btn-chapter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-chapter:hover { background: var(--bg-card-hover); border-color: var(--accent); }

.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 80px;
    background: rgba(26,26,37,0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 100;
    border-radius: 12px;
}

.nav-btn:hover { background: var(--accent); border-color: var(--accent); }
.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }

.scroll-top {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 100;
}

.scroll-top.visible { opacity: 1; }

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.search-results.active { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover { background: var(--bg-card-hover); }

.search-result-thumb {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-result-info { flex: 1; }
.search-result-title { font-size: 13px; font-weight: 600; }
.search-result-chapter { font-size: 11px; color: var(--accent-light); }

/* Comments */
.comment-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    resize: none;
    min-height: 80px;
    margin-bottom: 12px;
}

.comment-input:focus { border-color: var(--accent); }

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 2%;
    margin-top: 60px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.footer-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
    max-width: 1600px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 2%;
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumb a { color: var(--accent-light); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; margin: 0 4px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.3s;
}

.pagination a:hover { border-color: var(--accent); color: var(--text-primary); }
.pagination .current { background: var(--accent-gradient); color: white; border-color: transparent; }

/* Archive Grid */
.archive-header {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 4% 20px;
}

.archive-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.archive-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.ongoing { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-badge.completed { background: rgba(34,197,94,0.15); color: var(--success); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .search-box input { width: 160px; }

    .hero { height: auto; }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 4%;
    }
    .hero-cover { width: 160px; height: 220px; }
    .hero-title { font-size: 28px; }
    .hero-meta { justify-content: center; }
    .hero-buttons { justify-content: center; }

    .comic-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .comic-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .comic-cover-lg { width: 180px; height: 260px; }
    .comic-stats { justify-content: center; }
    .comic-actions { justify-content: center; }
    .comic-name { font-size: 26px; }
    .chapter-list { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }

    .nav-btn { display: none; }
    .reader-container { padding: 66px 8px 140px; }
    .page-wrapper { max-width: 100%; }
    .bottom-controls { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .search-box input { width: 130px; }
    .comic-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
}

/* One-shot Reader (inline on comic page) */
.oneshot-reader {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.oneshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.oneshot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.oneshot-pages {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.oneshot-pages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
}

.comic-page-oneshot {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.oneshot-page-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .oneshot-pages-container {
        padding: 12px 8px;
    }
    
    .oneshot-header {
        padding: 12px 16px;
    }
}

/* Grid 5 columns for homepage and archive */
.comic-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .comic-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .comic-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .comic-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Archive layout with sidebar */
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 24px;
}

.archive-main { min-width: 0; }

.archive-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--accent-light);
}

@media (max-width: 1024px) {
    .archive-layout {
        grid-template-columns: 1fr;
    }
    .archive-sidebar {
        position: static;
    }
}

/* Single Comic Layout with Sidebar */
.single-comic-layout {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2%;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.single-comic-main { min-width: 0; }

.single-comic-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .single-comic-layout {
        grid-template-columns: 1fr;
    }
    .single-comic-sidebar {
        position: static;
        margin-top: 0;
    }
}

/* Fix admin bar overlap */
.admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* Grid 4 columns for similar comics */
.comic-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .comic-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .comic-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Read button in chapter list */
.btn-read-chapter {
    background: var(--accent-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.chapter-item:hover .btn-read-chapter {
    opacity: 0.85;
}

/* Sidebar Hot List (compact) */
.sidebar-hot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.sidebar-hot-item:hover {
    background: var(--bg-card-hover);
}

.sidebar-hot-thumb {
    width: 44px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-hot-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* Sidebar Genres Widget */
.sidebar-genres-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.sidebar-genre-item {
    display: block;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.sidebar-genre-item::before {
    content: '› ';
    color: var(--accent-light);
    font-weight: 700;
    font-size: 16px;
}

.sidebar-genre-item:hover {
    color: var(--accent-light);
}

.sidebar-genres-all {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-card-hover);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-genres-all:hover {
    background: var(--accent);
    color: white;
}

/* Logo image */
.logo-img {
    height: 36px;
    width: auto;
}

/* Page Template */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 4%;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.page-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.page-body h2, .page-body h3, .page-body h4 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-body h2 { font-size: 24px; font-weight: 700; }
.page-body h3 { font-size: 20px; font-weight: 600; }
.page-body h4 { font-size: 17px; font-weight: 600; }

.page-body p {
    margin-bottom: 16px;
}

.page-body ul, .page-body ol {
    margin: 12px 0 20px 24px;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body a {
    color: var(--accent-light);
    text-decoration: underline;
}

.page-body a:hover {
    color: var(--accent);
}

.page-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.page-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    font-style: italic;
}

/* Burger Menu Button */
.burger-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 6px;
}

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--accent-light);
}

@media (max-width: 768px) {
    .burger-btn { display: flex; }
    .nav-links { display: none !important; }
    .search-box input { width: 140px; }
}

/* Footer brand links */
.footer-brand a:not(.logo) {
    color: var(--accent-light);
    text-decoration: underline;
}

.footer-brand a:not(.logo):hover {
    color: var(--accent);
}

/* Social icons in header */
.social-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.social-icon:hover {
    color: var(--accent-light) !important;
    border-color: var(--accent) !important;
}

@media (max-width: 768px) {
    .social-icon { display: none !important; }
}

/* Mobile social icons */
.mobile-social {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    margin-top: 16px;
}

.mobile-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
}

.mobile-social-icon:hover {
    color: var(--accent-light);
    border-color: var(--accent);
}
