:root {
    --primary-bg: #21293c;
    --secondary-bg: #2a354a;
    --text-color: #ffffff;
    --text-secondary: #a0aec0;
    --accent-color: #28c76f;
    /* Green accent */
    --input-bg: rgba(255, 255, 255, 0.1);
    --border-color: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
    max-width: 600px;
    /* Simulate mobile on desktop */
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Shadow for desktop view */
    overflow: hidden;
    /* Prevent scrolling */
}

/* Header Styles */
.site-header {
    background-color: var(--primary-bg);
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: var(--accent-color);
    text-decoration: none;
    font-style: italic;
}

.header-actions .header-link {
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    margin-left: 10px;
}

.search-bar-container {
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 12px;
}

.search-input {
    width: 100%;
    background-color: var(--input-bg);
    border: none;
    border-radius: 20px;
    padding: 8px 10px 8px 30px;
    color: var(--text-color);
    font-size: 12px;
    outline: none;
}

.search-input::placeholder {
    color: #666;
}

.category-btn {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 13px;
    white-space: nowrap;
}

.quick-nav {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.quick-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    position: relative;
}

.quick-nav a.active {
    color: var(--text-color);
    font-weight: bold;
}

.quick-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Main Content */
.main-content {
    padding: 10px 15px;
}

.banner-section {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    display: block;
    height: auto;
    opacity: 0;
    /* Hide banner as requested */
}

/* Comic Sections */
.comic-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.more-link {
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.comic-item {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.comic-cover {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 8px;
    background-color: #1a202c;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Hide image as requested */
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.badge.new {
    background-color: #ff4757;
}

.badge.up {
    background-color: #2ecc71;
}

.comic-title {
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: #e2e8f0;
}

.comic-tags {
    font-size: 11px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-footer {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.section-footer button {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.section-footer button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background-color: var(--primary-bg);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    gap: 4px;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: var(--accent-color);
}

/* Fake Loading Overlay */
#fake-loading {
    display: flex;
    /* Show on page load */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent, content visible but blocked */
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.loading-subtext {
    font-size: 12px;
    color: #aaa;
}

/* Age Verification Modal */
#age-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.age-modal-content {
    background: #1a1a2e;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    color: white;
}

.age-modal-content h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 22px;
}

.age-modal-content p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

#age-confirm-btn {
    background: linear-gradient(135deg, #28c76f, #1e9e5a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    margin-bottom: 10px;
}

#age-deny-btn {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
}