@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Dancing+Script:wght@400;600&display=swap');

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

body {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #f8e8e0 0%, #f0d5c8 50%, #e8c4b8 100%);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.opacityhide {
    opacity: 0;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(205, 133, 133, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.chapter-detail .main-header {
    position: relative;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    font-family: 'Dancing Script', cursive;
}

.tagline {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.6);
    margin: 0;
    margin-left: 52px;
    font-style: italic;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: rgba(139, 69, 19, 0.7);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: rgba(139, 69, 19, 0.9);
    background: rgba(255, 182, 193, 0.2);
}

.nav-link.active {
    color: rgba(139, 69, 19, 0.9);
    background: rgba(255, 182, 193, 0.3);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(205, 133, 133, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: rgba(139, 69, 19, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(205, 133, 133, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 182, 193, 0.2);
    color: rgba(139, 69, 19, 0.9);
    padding-left: 25px;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 8px;
    background: rgba(255, 245, 240, 0.8);
    color: rgba(139, 69, 19, 0.8);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: rgba(205, 133, 133, 0.6);
    background: rgba(255, 245, 240, 1);
    box-shadow: 0 0 0 3px rgba(205, 133, 133, 0.1);
}

.search-input::placeholder {
    color: rgba(139, 69, 19, 0.5);
}

/* Header Actions */
.header-actions {
    display: none;
    align-items: center;
    gap: 15px;
}

.account-icon {
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(139, 69, 19, 0.7);
    transition: all 0.3s ease;
}

.account-icon:hover {
    background: rgba(255, 182, 193, 0.2);
    color: rgba(139, 69, 19, 0.9);
}

.user-menu {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(139, 69, 19, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu:hover {
    background: rgba(255, 182, 193, 0.2);
    color: rgba(139, 69, 19, 0.9);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.4), rgba(255, 160, 122, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 69, 19, 0.8);
}

.username {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(139, 69, 19, 0.7);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 182, 193, 0.2);
    color: rgba(139, 69, 19, 0.9);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(205, 133, 133, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: 600px;
}

.mobile-nav-content {
    padding: 20px;
}

.mobile-search {
    margin-bottom: 20px;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 8px;
    background: rgba(255, 245, 240, 0.8);
    color: rgba(139, 69, 19, 0.8);
    font-size: 16px;
    outline: none;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: rgba(139, 69, 19, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 182, 193, 0.2);
    color: rgba(139, 69, 19, 0.9);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 245, 240, 0.5);
    border-radius: 8px;
    margin-top: 5px;
}

.mobile-dropdown.active {
    max-height: 300px;
}

.mobile-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: rgba(139, 69, 19, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(205, 133, 133, 0.1);
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: rgba(255, 182, 193, 0.2);
    color: rgba(139, 69, 19, 0.8);
    padding-left: 25px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section 1: Recommended Books Slider */
.recommended-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 30px;
    text-align: center;
}

.book-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.book-slider:hover .slider-container {
    animation-play-state: paused;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.book-item {
    flex: 0 0 200px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: translateY(-10px);
}

.book-cover {
    width: 150px;
    height: 220px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 12px;
    margin: 0 auto 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 5px;
    line-height: 1.3;
}

.book-author {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 69, 19, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: rgba(255, 182, 193, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* Section 2: Two Column Layout */
.content-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Left Column: Stories */
.stories-column {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.column-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.story-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 245, 240, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(205, 133, 133, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}


.story-item:hover {
    background: rgba(255, 235, 225, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.story-cover {
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.story-cover img {
    width: 100%;
}

.story-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-title a {
    font-size: 18px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 5px;
    line-height: 1.3;
}

.story-author {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 8px;
}

.story-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 14px;
    height: 14px;
    color: #ffd700;
}

.star.empty {
    color: rgba(205, 133, 133, 0.3);
}

.rating-text {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
}

.latest-chapter {

    align-self: flex-start;
}

#viewMoreBtn {
    border: none;
    color: rgba(139, 69, 19, 0.7);
    cursor: pointer;
}

.collapsed {
    max-height: 300px;
    overflow: hidden;
}

.latest-chapter a {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.7);
    background: rgba(255, 182, 193, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.latest-chapter span {
    font-size: 12px;
}

.show-more-btn {
    background: linear-gradient(135deg, rgba(255, 160, 122, 0.8), rgba(255, 182, 193, 0.7));
    color: rgba(139, 69, 19, 0.9);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, rgba(255, 160, 122, 0.9), rgba(255, 182, 193, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Right Column */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Recent Reading Box */
.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(205, 133, 133, 0.1);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-info {
    flex: 1;
}

.recent-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 3px;
}

.recent-title a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 3px;
}

.grid4 {
    min-width: 500px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);

}

.recent-chapter {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.6);
}

.recent-chapter a {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.6);
}

/* Top Reads Box */
.tab-nav {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 245, 240, 0.6);
    border-radius: 10px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(255, 182, 193, 0.4);
    color: rgba(139, 69, 19, 0.9);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(205, 133, 133, 0.1);
}

.top-item:last-child {
    border-bottom: none;
}

.top-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.4), rgba(255, 160, 122, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
}

.top-info {
    flex: 1;
}

.top-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 2px;
}

.top-reads {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.6);
}

/* Footer */
.main-footer {
    background: rgba(139, 69, 19, 0.9);
    color: rgba(255, 245, 240, 0.9);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 245, 240, 0.95);
}

.genre-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.genre-chip {
    background: rgba(255, 245, 240, 0.1);
    color: rgba(255, 245, 240, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 245, 240, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-chip:hover {
    background: rgba(255, 182, 193, 0.3);
    color: rgba(255, 245, 240, 1);
    transform: translateY(-2px);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 245, 240, 0.7);
    border-top: 1px solid rgba(255, 245, 240, 0.2);
    padding-top: 20px;
}

/* Tooltip Styles */
.book-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    width: 320px;
    pointer-events: none;
}

.book-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tooltip-cover {
    width: 60px;
    height: 90px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tooltip-info {
    flex: 1;
}

.tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 5px;
    line-height: 1.3;
}

.tooltip-author {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 8px;
}

.tooltip-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.tooltip-stars {
    display: flex;
    gap: 2px;
}

.tooltip-star {
    width: 14px;
    height: 14px;
    color: #ffd700;
}

.tooltip-star.empty {
    color: rgba(205, 133, 133, 0.3);
}

.tooltip-rating-text {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
    font-weight: 500;
}

.tooltip-description {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.7);
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: justify;
}

.tooltip-chapters {
    border-top: 1px solid rgba(205, 133, 133, 0.2);
    padding-top: 15px;
}

.tooltip-chapters-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chapters-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 6px;
}

.chapter-item {
    font-size: 12px;
    color: rgba(139, 69, 19, 1);
    background: rgba(255, 245, 240, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(205, 133, 133, 1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.chapter-item:hover {
    background: rgba(255, 182, 193, 0.3);
    color: rgba(139, 69, 19, 0.8);
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-arrow::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid rgba(205, 133, 133, 0.3);
    top: -1px;
    left: -9px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(205, 133, 133, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 5px;
}

.search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(139, 69, 19, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(205, 133, 133, 0.1);
    cursor: pointer;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: rgba(255, 182, 193, 0.2);
    color: rgba(139, 69, 19, 0.9);
    padding-left: 20px;
}

.search-suggestion:first-child {
    border-radius: 12px 12px 0 0;
}

.search-suggestion:last-child {
    border-radius: 0 0 12px 12px;
}

.suggestion-icon {
    width: 16px;
    height: 16px;
    color: rgba(205, 133, 133, 0.6);
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
}

.suggestion-type {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.5);
    background: rgba(255, 182, 193, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .search-container {
        max-width: 300px;
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .search-container {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .header-container {
        height: 70px;
    }

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

    .tagline {
        font-size: 11px;
        margin-left: 44px;
    }

    .username {
        display: none;
    }

    .main-content {
        padding: 30px 15px;
    }

    .book-item {
        flex: 0 0 150px;
    }

    .book-cover {
        width: 120px;
        height: 180px;
    }

    .story-item {
        flex-direction: column;
        text-align: center;
    }

    .story-cover {
        width: 100px;
        height: 150px;
        margin: 0 auto;
    }

    .genre-chips {
        gap: 8px;
    }

    .genre-chip {
        font-size: 12px;
        padding: 6px 12px;
    }

    .book-tooltip {
        display: none;
    }
}

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

    .main-content {
        padding: 10px 10px;
    }

    .book-title {
        font-size: 16px;
    }

    .book-slider {
        padding: 20px;
    }

    .stories-column,
    .sidebar-box {
        padding: 20px;
    }
}


.breadcrumb {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: rgba(139, 69, 19, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: rgba(205, 133, 133, 0.8);
}

.breadcrumb span {
    color: rgba(139, 69, 19, 0.5);
    margin: 0 8px;
}

.breadcrumb .current {
    color: rgba(139, 69, 19, 0.9);
    font-weight: 600;
}

/* Book Detail Section */
.book-detail {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.book-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.book-cover-large {
    width: 300px;
    height: 450px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.book-cover-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 160, 122, 0.2) 0%, transparent 50%);
    border-radius: 15px;
}

.book-cover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

.book-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-title-large {
    font-size: 42px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 15px;
    line-height: 1.2;
}

.book-subtitle-large {
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 25px;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 16px;
    color: rgba(139, 69, 19, 0.8);
    font-weight: 600;
}

.meta-value a {
    font-size: 16px;
    color: rgba(139, 69, 19, 0.8);
    font-weight: 600;

}

.book-type {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(255, 160, 122, 0.2));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
    border: 1px solid rgba(205, 133, 133, 0.3);
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.stars-display {
    display: flex;
    gap: 3px;
}

.star {
    width: 24px;
    height: 24px;
    color: #ffd700;
}

.star.empty {
    color: rgba(205, 133, 133, 0.3);
}

.star.half-filled {
    background: linear-gradient(90deg, #ffd700 50%, rgba(205, 133, 133, 0.3) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: 18px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
}

.rating-count {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
}

/* Description */
.book-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(139, 69, 19, 0.7);
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 25px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    padding: 15px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* Chapters List */
.chapters-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chapters-list {
    display: grid;
    gap: 15px;
}

.chapter-item {
    background: rgba(255, 245, 240, 1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(205, 133, 133, 1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-item:hover {
    background: rgba(255, 182, 193, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.chapter-info {
    flex: 1;
}

.chapter-number {
    font-size: 14px;
    color: rgba(139, 69, 19, 1);
    margin-bottom: 5px;
}

.chapter-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 5px;
    font-family: 'Dancing Script', cursive;
}

.chapter-date {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.5);
}

.chapter-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-new {
    background: rgba(255, 182, 193, 0.4);
    color: rgba(139, 69, 19, 0.8);
}

.status-updated {
    background: rgba(255, 218, 185, 0.4);
    color: rgba(139, 69, 19, 0.8);
}

/* Related Books */
.related-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-book {
    background: rgba(255, 245, 240, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(205, 133, 133, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-book:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 235, 225, 0.8);
}

.related-book-image {
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 8px;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-book-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 8px;
    text-align: center;
}

.related-book-author {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
    text-align: center;
    margin-bottom: 10px;
}

.related-book-rating {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.related-star {
    width: 14px;
    height: 14px;
}

/* Two Column Layout */
.two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.left-column {
    display: flex;
    flex-direction: column;
}

.right-column {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Pagination Styles */
.pagination-container {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.pagination-info {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.7);
    text-align: center;
}

.pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    background: rgba(255, 245, 240, 0.8);
    border: 1px solid rgba(205, 133, 133, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 182, 193, 0.4);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    background: rgba(255, 245, 240, 0.8);
    border: 1px solid rgba(205, 133, 133, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}

.page-number:hover {
    background: rgba(255, 182, 193, 0.4);
    transform: translateY(-1px);
}

.page-number.active {
    background: rgba(255, 160, 122, 0.6);
    color: rgba(139, 69, 19, 0.9);
    font-weight: 600;
}

/* Clickable Stars */
.stars-display {
    display: flex;
    gap: 3px;
    cursor: pointer;
}

.star {
    width: 24px;
    height: 24px;
    color: #ffd700;
    transition: all 0.2s ease;
}

.star:hover {
    transform: scale(1.1);
}

.star.empty {
    color: rgba(205, 133, 133, 0.3);
}

.star.half-filled {
    background: linear-gradient(90deg, #ffd700 50%, rgba(205, 133, 133, 0.3) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar Related Books */
.related-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-section .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 10px 20px;
}

.related-books {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-book {
    background: rgba(255, 245, 240, 0.6);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(205, 133, 133, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    gap: 15px;
    align-items: center;
}

.related-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 235, 225, 0.8);
}

.related-book-image {
    width: 60px;
    height: 90px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.related-book-info {
    flex: 1;
}

.related-book-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 5px;
    line-height: 1.3;
}

.related-book-author {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 8px;
}

.related-book-rating {
    display: flex;
    gap: 2px;
}

.related-star {
    width: 12px;
    height: 12px;
}

.related-section h3 {
    color: rgba(139, 69, 19, 0.7);
    margin: 25px 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.related-section h3:first-of-type {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right-column {
        position: static;
    }

    .book-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover-large {
        width: 250px;
        height: 375px;
        margin: 0 auto;
    }

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

    .related-books {
        flex-direction: column;
    }

    .pagination-controls {
        gap: 5px;
    }

    .page-btn,
    .page-number {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    font-size: 16px;
    color: rgba(139, 69, 19, 0.7);
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    background: rgba(255, 245, 240, 0.8);
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.pagination-btn:hover {
    background: rgba(255, 182, 193, 0.4);
    color: rgba(139, 69, 19, 0.9);
    border-color: rgba(205, 133, 133, 0.5);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(160, 82, 45, 0.8));
    color: white;
    border-color: rgba(139, 69, 19, 0.6);
    font-weight: 600;
}

.pagination-btn:disabled {
    background: rgba(255, 245, 240, 0.4);
    color: rgba(139, 69, 19, 0.4);
    border-color: rgba(205, 133, 133, 0.2);
    cursor: not-allowed;
    transform: none;
}

.pagination-ellipsis {
    color: rgba(139, 69, 19, 0.5);
    font-size: 14px;
    padding: 0 5px;
}

.jump-to-page {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.jump-to-page label {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.7);
}

.jump-to-page input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 6px;
    background: rgba(255, 245, 240, 0.8);
    color: rgba(139, 69, 19, 0.8);
    font-size: 14px;
    text-align: center;
}

.jump-to-page button {
    padding: 8px 16px;
    background: rgba(255, 182, 193, 0.4);
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 6px;
    color: rgba(139, 69, 19, 0.8);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.jump-to-page button:hover {
    background: rgba(255, 182, 193, 0.6);
    border-color: rgba(205, 133, 133, 0.5);
}

.books {
    margin: 0;
    -moz-perspective: 300px;
    -moz-transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    flex-shrink: 0;
}

.book {
    display: inline-block;
    position: relative;
    transform: perspective(300px) rotateY(-3deg);
    -moz-perspective: 300px;
    -moz-transform: rotateY(-3deg);
    -webkit-transform: perspective(300) rotateY(-3deg);
    outline: 1px solid transparent;
    box-shadow: 5px 5px 20px #333;
    margin: 0;
}

.book-image-container {
    position: relative;
}

.book img {
    vertical-align: middle;
    border: 1px solid #f0d5c8;
    border-left: 5px solid #f0d5c8;
    height: 400px;
    width: 267px;
    position: relative;
    display: block;
}

.book-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(#f0d5c8, transparent);
    color: white;
    padding: 20px 15px 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.book-author-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #f0d5c8);
    color: white;
    padding: 20px 15px 15px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.book:before,
.book:after {
    position: absolute;
    top: 2%;
    height: 96%;
    content: ' ';
    z-index: -1;
}

.book:before {
    width: 100%;
    left: 7.5%;
    background-color: #f0d5c8;
}

.book:after {
    width: 5%;
    left: 100%;
    background-color: #EFEFEF;
    box-shadow: inset 0px 0px 5px #aaa;
    transform: perspective(300px) rotateY(20deg);
    -moz-transform: rotateY(20deg);
    -webkit-transform: perspective(300) rotateY(20deg);
}



.chapter-header {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}



.chapter-title {
    font-size: 36px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    line-height: 1.2;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-button {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.4), rgba(255, 160, 122, 0.3));
    border: 1px solid rgba(205, 133, 133, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.nav-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.6), rgba(255, 160, 122, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chapter-selector {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.chapter-dropdown {
    background: rgba(255, 245, 240, 0.8);
    border: 1px solid rgba(205, 133, 133, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.chapter-dropdown:hover {
    background: rgba(255, 235, 225, 0.9);
    border-color: rgba(205, 133, 133, 0.5);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

/* Chapter List Dropdown */
.chapter-list-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 15px;
    margin-top: 10px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow: hidden;
    z-index: 1000;
    display: none;
}

.chapter-list-dropdown.show {
    display: block;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(205, 133, 133, 0.2);
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 245, 240, 0.6);
    color: rgba(139, 69, 19, 0.8);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: rgba(205, 133, 133, 0.6);
    background: rgba(255, 245, 240, 0.9);
}

.search-input::placeholder {
    color: rgba(139, 69, 19, 0.5);
}

.chapter-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.chapter-list-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(205, 133, 133, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-list-item:hover {
    background: rgba(255, 182, 193, 0.2);
}

.chapter-list-item.current {
    background: rgba(255, 160, 122, 0.3);
    font-weight: 600;
}

.chapter-item-info {
    flex: 1;
}

.chapter-item-number {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 2px;
}

.chapter-item-title {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
}

.chapter-status-small {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.status-new-small {
    background: rgba(255, 182, 193, 0.4);
    color: rgba(139, 69, 19, 0.8);
}

/* Chapter Content */
.chapter-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    line-height: 1.8;
    font-family: 'Crimson Text', serif;
    font-size: 21px;
    color: #2B2B2B;
    margin-bottom: 30px;
}

.chapter-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.chapter-content p:first-child::first-letter {
    font-size: 72px;
    font-weight: 600;
    float: left;
    line-height: 60px;
    padding-right: 8px;
    margin-top: 4px;
    color: rgba(139, 69, 19, 0.7);
    font-family: 'Playfair Display', serif;
}

/* Bottom Navigation */
.bottom-nav {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-nav-button {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.4), rgba(255, 160, 122, 0.3));
    border: 1px solid rgba(205, 133, 133, 0.3);
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    color: rgba(139, 69, 19, 0.8);
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
}

.bottom-nav-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.6), rgba(255, 160, 122, 0.5));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bottom-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chapter-info-bottom {
    text-align: center;
}

.chapter-number-bottom {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 5px;
}

.chapter-title-bottom {
    font-size: 18px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .chapter-content {
        padding: 30px 25px;
        font-size: 16px;
    }

    .chapter-title {
        font-size: 20px;
    }

    .nav-controls {
        gap: 15px;
    }

    .chapter-dropdown {
        padding: 8px 5px;
    }

    .nav-button {
        font-size: 0;
    }

    .bottom-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }

    .bottom-nav-button {
        min-width: 200px;
    }

    .chapter-content p:first-child::first-letter {
        font-size: 48px;
        line-height: 40px;
    }
}

/* Scrollbar Styling */
.chapter-list::-webkit-scrollbar {
    width: 6px;
}

.chapter-list::-webkit-scrollbar-track {
    background: rgba(255, 245, 240, 0.3);
    border-radius: 3px;
}

.chapter-list::-webkit-scrollbar-thumb {
    background: rgba(205, 133, 133, 0.4);
    border-radius: 3px;
}

.chapter-list::-webkit-scrollbar-thumb:hover {
    background: rgba(205, 133, 133, 0.6);
}


/* Header */
.page-header {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(205, 133, 133, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 30px;
}

/* Search and Filter Bar */
.filter-bar {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 245, 240, 0.8);
    color: rgba(139, 69, 19, 0.8);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: rgba(205, 133, 133, 0.6);
    background: rgba(255, 245, 240, 1);
    box-shadow: 0 0 0 3px rgba(205, 133, 133, 0.1);
}

.search-input::placeholder {
    color: rgba(139, 69, 19, 0.5);
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid rgba(205, 133, 133, 0.3);
    border-radius: 12px;
    background: rgba(255, 245, 240, 0.8);
    color: rgba(139, 69, 19, 0.8);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: rgba(205, 133, 133, 0.6);
    background: rgba(255, 245, 240, 1);
}

/* Main Layout */
 

/* Left Column - Story List */
.stories-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stories-grid {
    display: grid;
    gap: 25px;
}

.story-card {
    background: rgba(255, 245, 240, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(205, 133, 133, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 235, 225, 0.8);
    border-color: rgba(205, 133, 133, 0.4);
}

.story-image {
    width: 120px;
    height: 180px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-title {
    font-size: 22px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.9);
    margin-bottom: 8px;
    line-height: 1.3;
}

.story-author {
    font-size: 16px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 12px;
}

.story-description {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.story-genre {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(255, 160, 122, 0.2));
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: rgba(139, 69, 19, 0.8);
    border: 1px solid rgba(205, 133, 133, 0.3);
}

.story-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.status-completed {
    background: rgba(144, 238, 144, 0.3);
    color: rgba(34, 139, 34, 0.8);
}

.status-ongoing {
    background: rgba(255, 218, 185, 0.4);
    color: rgba(139, 69, 19, 0.8);
}

.story-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
}

.story-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    color: #ffd700;
}

.star.empty {
    color: rgba(205, 133, 133, 0.3);
}

.latest-chapter {
    background: rgba(255, 182, 193, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    border-left: 4px solid rgba(205, 133, 133, 0.5);
}

.chapter-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 3px;
}

.chapter-date {
    font-size: 12px;
    color: rgba(139, 69, 19, 0.5);
}

/* Right Column - Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sidebar-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hot Books */
.hot-books {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-book {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 245, 240, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(205, 133, 133, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hot-book:hover {
    background: rgba(255, 235, 225, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hot-book-image {
    width: 60px;
    height: 90px;
    background: linear-gradient(145deg,
            rgba(255, 245, 240, 0.95) 0%,
            rgba(255, 235, 225, 0.9) 30%,
            rgba(252, 220, 205, 0.85) 70%,
            rgba(248, 205, 185, 0.8) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-book-info {
    flex: 1;
}

.hot-book-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.8);
    margin-bottom: 5px;
    line-height: 1.3;
}

.hot-book-author {
    font-size: 14px;
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 8px;
}

.hot-book-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hot-star {
    width: 14px;
    height: 14px;
}

/* Genre List */
.genre-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.genre-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 245, 240, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(205, 133, 133, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-item:hover {
    background: rgba(255, 235, 225, 0.8);
    transform: translateX(5px);
}

.genre-name {
    font-size: 16px;
    color: rgba(139, 69, 19, 0.8);
    font-weight: 500;
}

.genre-count {
    background: rgba(255, 182, 193, 0.4);
    color: rgba(139, 69, 19, 0.7);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
}

.page-btn {
    background: rgba(255, 245, 240, 0.8);
    border: 1px solid rgba(205, 133, 133, 0.3);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(139, 69, 19, 0.8);
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 182, 193, 0.4);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: rgba(255, 160, 122, 0.6);
    color: rgba(139, 69, 19, 0.9);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  

    .story-card {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }

    .story-image {
        width: 100px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .page-title {
        font-size: 36px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .story-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-image {
        width: 120px;
        height: 180px;
        margin: 0 auto;
    }

    .story-stats {
        justify-content: center;
    }

    .hot-book {
        flex-direction: column;
        text-align: center;
    }

    .hot-book-image {
        margin: 0 auto;
    }
}
.one-columns{
    grid-template-columns: 1fr;
}