/* NNovel.net - Premium Modern Dark Glassmorphism CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #090b10;
    --bg-card: rgba(18, 22, 32, 0.7);
    --bg-card-hover: rgba(26, 32, 48, 0.85);
    --bg-glass: rgba(15, 19, 28, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(127, 90, 240, 0.3);

    --primary: #7f5af0;
    --primary-glow: #9b72ff;
    --accent: #2cb67d;
    --cyan: #00f2fe;
    --pink: #ff2a85;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    
    --text-main: #fffffe;
    --text-muted: #94a1b2;
    --text-dim: #72757e;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(127, 90, 240, 0.25);
    --backdrop-blur: blur(16px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    padding-bottom: 75px; /* Mobile Dock spacing */
}

/* Background Animated Gradient Mesh */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh-circle-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    animation: floatAnim 15s ease-in-out infinite alternate;
}

.mesh-circle-2 {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    animation: floatAnim 20s ease-in-out infinite alternate-reverse;
}

@keyframes floatAnim {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Layout Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Glass Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
    transition: var(--transition);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 900;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 40%, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Links (Desktop) */
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Header Actions & Member Auth */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 9px 12px 9px 38px;
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.88rem;
    width: 200px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    width: 240px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(127, 90, 240, 0.3);
}

.btn-user-auth {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    white-space: nowrap;
}

.btn-user-auth:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 4px 12px 4px 6px;
    border-radius: var(--radius-full);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.btn-logout-sm {
    background: transparent;
    border: none;
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 4px;
}

/* Auth Modal Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--text-main);
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--cyan));
    border-radius: var(--radius-full);
}

/* Top 10 Featured Slider System */
.hero-slider-section {
    margin: 20px 0 30px;
}

.hero-banner {
    padding: 26px 30px;
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.18), rgba(0, 242, 254, 0.1));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 220px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-badge {
    background: rgba(127, 90, 240, 0.3);
    color: var(--cyan);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(0,242,254,0.2);
}

.hero-content h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 650px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.hero-cover-display {
    width: 140px;
    height: 190px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border: 2px solid var(--border-glow);
    flex-shrink: 0;
    z-index: 2;
}

/* Top 10 Thumbnails Strip Below Hero */
.hero-thumbs-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.hero-thumbs-strip::-webkit-scrollbar {
    height: 5px;
}

.hero-thumbs-strip::-webkit-scrollbar-thumb {
    background: rgba(127, 90, 240, 0.4);
    border-radius: 4px;
}

.hero-thumb-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 22, 32, 0.85);
    border: 1px solid var(--border-glass);
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    min-width: 170px;
    flex-shrink: 0;
}

.hero-thumb-card:hover, .hero-thumb-card.active {
    background: rgba(26, 32, 48, 0.95);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    transform: translateY(-3px);
}

.hero-thumb-img {
    width: 42px;
    height: 58px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.hero-thumb-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-thumb-rank {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--cyan);
}

.hero-thumb-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Genre Pills Selector Bar */
.genre-section {
    margin-bottom: 20px;
}

.genre-header {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.genre-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.genre-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.genre-pills::-webkit-scrollbar {
    height: 4px;
}

.genre-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.genre-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.genre-pill:hover, .genre-pill.active {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Sort Filter Tabs Bar */
.filter-section {
    margin-bottom: 25px;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tab:hover, .filter-tab.active {
    background: rgba(127, 90, 240, 0.2);
    border-color: var(--primary-glow);
    color: var(--text-main);
    box-shadow: var(--shadow-glow);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--cyan));
    border-radius: var(--radius-full);
}

/* Story Grid System */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Story Card */
.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.story-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.story-card:active {
    transform: scale(0.98);
}

.card-cover-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%; /* 1:1.4 aspect ratio */
    overflow: hidden;
    background: rgba(0,0,0,0.3);
}

.card-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .card-cover {
    transform: scale(1.06);
}

/* Heart Bookmark Button on Card */
.card-bookmark-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(9, 11, 16, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 6;
    transition: var(--transition);
}

.card-bookmark-btn.active, .card-bookmark-btn:hover {
    color: var(--pink);
    border-color: var(--pink);
    box-shadow: 0 0 10px var(--pink);
}

/* Leaderboard Ranking Badges */
.card-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(9, 11, 16, 0.88);
    border: 2px solid var(--border-glass);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.card-rank.rank-1 {
    background: var(--gold);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 12px var(--gold);
}

.card-rank.rank-2 {
    background: var(--silver);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 10px var(--silver);
}

.card-rank.rank-3 {
    background: var(--bronze);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px var(--bronze);
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(9, 11, 16, 0.85);
    backdrop-filter: blur(8px);
    color: var(--cyan);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-badge.novel {
    color: #ff9f43;
}

.card-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-main);
}

.card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Comments Section Styling */
.comments-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.comment-input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.88rem;
    resize: vertical;
    min-height: 50px;
    outline: none;
}

.comment-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-send-comment {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send-comment:hover {
    background: var(--primary-glow);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--cyan);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Pagination Bar System */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 35px 0 50px;
    flex-wrap: wrap;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 8px;
}

/* Modal View */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--pink);
}

.story-detail-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
}

.detail-cover {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.detail-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-meta-list {
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

/* Chapter List Grid */
.chapters-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 5px;
}

.chapter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.chapter-btn:hover {
    background: var(--primary);
    border-color: var(--primary-glow);
}

/* Fullscreen Reader Overlay */
.reader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 300;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reader-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.reader-header {
    background: rgba(12, 15, 22, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 10;
}

.reader-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.reader-title {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reader-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reader-select {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid var(--border-glass);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    max-width: 140px;
}

.reader-content-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.reader-img {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.novel-reader-box {
    max-width: 800px;
    width: 100%;
    padding: 24px 20px;
    color: #e2e8f0;
    font-size: 1.12rem;
    line-height: 1.85;
    background: #090b10;
}

.novel-reader-box p {
    margin-bottom: 1.2em;
}

/* Mobile Bottom Navigation Dock (App Dock) */
.mobile-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(12, 15, 22, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    z-index: 150;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
}

.dock-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dock-item.active, .dock-item:active {
    color: var(--cyan);
}

.dock-item.active svg {
    color: var(--primary-glow);
    filter: drop-shadow(0 0 6px var(--primary));
}

/* Mobile Responsive Optimization Breakpoints */
@media (max-width: 900px) {
    .nav-tabs { display: none; }
    .mobile-dock { display: flex; }
    .hero-banner { padding: 20px; margin: 15px 0 10px; flex-direction: column; align-items: flex-start; text-align: left; }
    .hero-cover-display { display: none; }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-desc { font-size: 0.88rem; }
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .container { padding: 0 12px; }
    .site-header { padding: 8px 0; }
    .logo-text { font-size: 1.2rem; }
    .search-input { width: 120px; padding-left: 30px; font-size: 0.78rem; }
    .search-icon { left: 8px; width: 14px; height: 14px; }
    .search-input:focus { width: 150px; }
    
    /* Mobile Modal Sheet */
    .modal-backdrop { padding: 0; align-items: flex-end; }
    .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 85vh;
        padding: 20px 16px;
    }
    .story-detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .detail-cover {
        max-width: 140px;
        margin: 0 auto;
    }
    .detail-info h2 {
        font-size: 1.25rem;
        text-align: center;
    }
    .detail-meta-list {
        justify-content: center;
        font-size: 0.8rem;
    }
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reader-header { padding: 8px 12px; }
    .reader-title { font-size: 0.85rem; }
    .reader-select { width: 100px; padding: 5px 8px; font-size: 0.78rem; }
    .novel-reader-box { padding: 16px 14px; font-size: 1.05rem; }
}
