/* Container */
.novel-detail-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-left: 4.4em;
    width: calc(100% - 4.4em);
}

.sub-novel-detail-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.adsbygoogle {
    display: block !important;
    max-height: 90px !important;
    overflow: hidden !important;
    border-radius: 4px;
}

/* Novel Header */
.novel-header {
    position: relative;
    min-height: 320px;
    padding: 25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.novel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-image-overlay-color);
    z-index: 0;
}

.novel-header-content {
    position: relative;
    z-index: 1;
    height: 100%;
}

.novel-main-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Novel Image */
.novel-image-container {
    position: relative;
    width: 200px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    flex-shrink: 0;
}

.novel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Novel Details */
.novel-details {
    flex: 1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding-top: 10px;
}

.novel-details.has-edit-btn {
    padding-right: 160px;
}

.novel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFA500;
    line-height: 1.2;
    max-width: fit-content;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.novel-avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFA500;
}

.novel-author {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
}

.novel-author a {
    text-decoration: none;
    color: #FF9F0A;
    transition: color 0.3s ease;
}

.novel-author a:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Status */
.novel-status {
    margin-bottom: 20px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.ongoing::before {
    background-color: #4CAF50;
}

.status-indicator.completed::before {
    background-color: #FF5722;
}

/* Modern Star Rating */
.novel-rating-section {
    margin-bottom: 20px;
    max-width: fit-content;
}

.novel-star-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars-background {
    position: relative;
    display: inline-flex;
    gap: 4px;
    font-size: 20px;
}

.rating-stars-background i {
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rating-stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    gap: 4px;
    overflow: hidden;
    width: var(--rating-percent);
    transition: width 0.5s ease;
}

.rating-stars-filled i {
    color: #FFA500;
}

.rating-score {
    font-size: 18px;
    font-weight: 600;
    color: #FFA500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: default;
    transition: all 0.3s ease;
}

.rating-score.disabled {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hover effect only when there's no rating */
.novel-rating-section:not(.has-rating):hover .rating-stars-background i {
    color: rgba(255, 255, 255, 0.5);
}

/* Novel Actions */
.novel-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Active States */
.favorite-btn.active {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border-color: #ff4757;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.favorite-btn.active:hover {
    background: linear-gradient(135deg, #ff3742, #ff2837);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

.favorite-btn.active i {
    color: white;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.favorite-btn.active .btn-text {
    display: none;
}

.favorite-btn.active::after {
    content: 'Favorited';
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bookmark-btn.active {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border-color: #FFA500;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.bookmark-btn.active:hover {
    background: linear-gradient(135deg, #FF8C00, #FF7F00);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

.bookmark-btn.active i {
    color: white;
}

.bookmark-btn.active .btn-text {
    display: none;
}

.bookmark-btn.active::after {
    content: 'Bookmarked';
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Novel Author Action Buttons Container */
.novel-author-action-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

/* Edit Novel Button */
.edit-novel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.edit-novel-btn:hover {
    background: linear-gradient(135deg, #FF8C00, #FF7F00);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.edit-novel-btn i {
    font-size: 14px;
}

/* Stats Novel Button */
.stat-novel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.stat-novel-btn:hover {
    background: linear-gradient(135deg, #E55A2B, #D4541F);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.stat-novel-btn i {
    font-size: 14px;
}

/* Novel Info */
.novel-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Warning */
.novel-warning {
    display: flex;
    align-items: center;
    background-color: #fff1f1;
    border-left: 4px solid #b32e2e;
    padding: 1.1rem;
    border-radius: 4px;
    font-size: 1rem;
    color: #b32e2e;
}

.novel-warning i {
    font-size: 1.1rem;
    padding-right: 0.5rem;
}

.warning-text {
    flex-grow: 1;
}

/* Metrics */
.novel-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.novel-metric {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

.novel-metric i {
    margin-right: 5px;
    color: #ff9800;
}

.novel-metric span {
    margin-left: 5px;
}

/* Fandom */
.novel-genre .fandom-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.novel-genre .fandom {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    background-color: #222;
    color: #f80;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 136, 0, 0.6);
}

.novel-genre a.fandom:hover {
    background-color: #f80;
    color: #000;
}

.novel-genre .fandom-original {
    border-radius: 40px;
}

.novel-genre .fandom-category, .novel-genre .fandom-original {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 136, 0, 0.8);
    color: #333;
}

.novel-genre .fandom-specific {
    background-color: #222;
    border-color: rgba(255, 136, 0, 0.4);
}

.novel-genre .fandom-separator {
    color: #f80;
    margin: 0 2px;
    font-weight: bold;
    cursor: default;
}

/* Translation Section */
.novel-translation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.novel-translation h3 {
    font-weight: 600;
    font-size: 1.2em;
    padding-bottom: 0;
}

.translation-container {
    display: flex;
    flex-direction: column;
}

.translation-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.translation-status i:first-child {
    color: #ff6b35;
    font-size: 1.1em;
}

.translation-indicator {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.95em;
}

.translation-from {
    color: #666;
    font-size: 0.9em;
}

.translation-arrow {
    color: #ff6b35;
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.translation-arrow.rotated {
    transform: rotate(180deg);
}

.translation-details {
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.translation-details.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
}

.translation-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.translation-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
}

.translation-label {
    font-weight: 600;
    color: #ff6b35;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.translation-value {
    color: #333;
    font-size: 0.95em;
    font-weight: 500;
    word-break: break-word;
}

.translation-value.not-provided {
    color: #999;
    font-style: italic;
}

/* rankings Section */
.novel-rankings{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.novel-rankings h3 {
    font-weight: 600;
    font-size: 1.2em;
    padding-bottom: 0;
}

.rankings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ranking-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    min-width: 120px;
}

.ranking-badge i {
    color: #6c757d;
    font-size: 0.875rem;
}

.ranking-badge.featured i {
    color: #ff9800;
}

.period-name {
    color: #495057;
    font-weight: 500;
    flex: 1;
}

.ranking-badge.featured .period-name {
    color: #333;
}

.rank-value {
    background: #ff9800;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    min-width: 28px;
    text-align: center;
}

.rank-na {
    color: #6c757d;
    font-size: 0.75rem;
    font-style: italic;
    padding: 0.25rem 0.5rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff5e6;
    color: #ff6b35;
    border: 1px solid #ff9800;
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    width: fit-content;
}

.category-label {
    font-weight: 600;
}

.category-value {
    color: #666;
}

/* Genres and Tags */
.novel-tags, .novel-genre {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.novel-tags h3, .novel-genre h3, .novel-summary h3 {
    font-weight: 600;
    font-size: 1.2em;
    padding-bottom: 0;
}

.tags-container, .genres-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag, .genre {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.genre {
    background-color: #ff9800;
    color: white;
}

.tag {
    background-color: #e2e2e280;
    color: #000000;
}

.genre:hover {
    background-color: #FF8500;
}

.tag:hover {
    background-color: #e2e2e2;
}

/* Summary */
.novel-summary {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.novel-summary p {
    font-size: 1em;
    line-height: 1.5;
    white-space: pre-wrap;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.novel-summary .summary-text {
    max-height: 9em;
}

.novel-summary.expanded .summary-text {
    max-height: none;
}

.novel-summary .toggle-summary {
    display: inline-block;
    margin-top: 10px;
    background: none;
    border: none;
    color: #ffa617;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* Dual Window System */
.dual-window {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.window-tabs {
    display: flex;
    background-color: #f0f0f0;
}

.tab-btn {
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.tab-btn.active {
    background-color: #ffffff;
    border-top: 3px solid #ff9800;
}

.window-content {
    padding: 1.2rem;
}

.content-section {
    display: none;
}

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

/* Chapters Section */
.chapters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffa617;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.chapters-header h2 {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.novel-detail-chapter-title {
    font-size: 1.5rem;
    color: #ffa617;
}

.new-chapter-btn {
    background-color: #ff9800;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.new-chapter-btn:hover {
    background-color: #f57c00;
}

.new-chapter-btn i {
    margin-right: 5px;
}

/* Chapter List */
.chapter-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.chapter-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

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

.chapter-item:hover {
    background-color: #f0f0f0;
}

.chapter-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chapter-item .chapter-link:has(.adult_content-indicator) {
    color: #994000;
    font-style: italic;
}

.chapter-item .chapter-link:has(.draft-indicator) {
    color: #b26a00;
    font-style: italic;
}

.chapter-item:has(.adult_content-indicator) {
    background-color: #fff8f4;
    border-left: 3px solid #ff6600;
    padding-left: 10px;
}

.chapter-item:has(.draft-indicator) {
    background-color: #fffaf5;
    border-left: 3px solid #ffa64d;
    padding-left: 10px;
}

.chapter-item:has(.adult_content-indicator):hover {
    background-color: #fff0e6;
}

.chapter-item:has(.draft-indicator):hover {
    background-color: #fff5eb;
}

.chapter-item:has(.adult_content-indicator) .chapter-date {
    color: #994000;
    font-style: italic;
}

.chapter-item:has(.draft-indicator) .chapter-date {
    color: #b26a00;
    font-style: italic;
}

.chapter-date {
    font-size: 0.9em;
    color: #666;
}

.adult_content-indicator {
    background-color: #FF4500;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.draft-indicator {
    background-color: #ffa617;
    color: #000;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 40px;
    text-transform: uppercase;
}

.final-chapter-indicator {
    background-color: #FFC107;
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
}

/* Reviews Section Title */
.novel-detail-review-title {
    font-size: 1.5rem;
    color: #ffa617;
    border-bottom: 2px solid #ffa617;
    padding-bottom: 0.5rem;
}

/* Review Form */
.novel-review-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#novel-review-form {
    margin-bottom: 1.5rem;
}

.user-novel-star-rating {
    font-size: 2em;
    color: #ddd;
    cursor: pointer;
    display: inline-block;
}

.user-novel-star-rating  .novel-star {
    transition: color 0.2s;
    display: inline-block;
}

.user-novel-star-rating  .novel-star.active {
    color: #ffd700;
}

.user-novel-star-rating  .novel-star.half-active {
    position: relative;
}

.user-novel-star-rating  .novel-star.half-active:before {
    content: '\2605';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffd700;
}

#novel-user-rating {
    font-size: 1.2em;
    font-weight: bold;
    margin-left: 3px;
}

#novel-review-comment-edit, .review-field {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #ffa500;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    margin-bottom: 5px;
    height: 150px;
}

#novel-review-comment-edit:focus, .review-field:focus {
    outline: none;
    border-color: #ff8c00;
}

#novel-review-comment-edit::placeholder {
    color: #999;
}

.novel-submit-review {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.novel-submit-review:hover {
    background-color: #f57c00;
}

#login_word {
    font-size: 1.1rem;
    border-bottom: 2px solid #ffa617;
    padding: 1rem 0;
}

/* Reviews List */
.novel-reviews-list {
    scrollbar-width: none;
}

.novel-review-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-bottom: 20px;
}

.novel-user-own-review {
    background-color: #f5f5f5;
    border-left: 4px solid #f57c00;
    padding: 15px 0.5rem;
}

.novel-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.novel-review-author {
    font-weight: bold;
    margin-right: 10px;
    text-decoration: none;
    color: #0B0B0C;
}

.novel-review-rating {
    color: #ffc107;
    display: flex;
}

.novel-review-rating .novel-stars {
    display: flex;
    margin-right: 5px;
}

.novel-review-rating .novel-rating-number {
    font-size: 1rem;
    color: #ffc107;
    line-height: 1;
}

.novel-review-rating .novel-stars i {
    font-size: 1rem;
}

.novel-review-date {
    font-size: 0.7em;
    color: #666;
    margin-left: auto;
}

.novel-review-comment {
    line-height: 1.4;
    padding: 0.75rem;
}

/* Review Actions */
.novel-review-actions {
    display: flex;
}

.novel-like-btn, .novel-dislike-btn, .novel-reply-btn, .novel-edit-review-btn, .novel-delete-review-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    transition: color 0.3s;
    font-size: 0.9em;
    padding: 0.75rem 0.75rem 0 0.75rem;
}

.novel-like-btn:hover, .novel-dislike-btn:hover, .novel-reply-btn:hover, .novel-edit-review-btn:hover, .novel-delete-review-btn:hover {
    color: #ff9800;
}

.novel-like-btn.active, .novel-dislike-btn.active {
    color: #ff9800;
}

.novel-like-btn i, .novel-dislike-btn i {
    margin-right: 5px;
}

/* Review Responses */
.novel-review-responses {
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.novel-response-item {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.novel-response-date {
    font-size: 0.8em;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

.novel-response-form {
    margin-top: 10px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 15px;
    padding-right: 10px;
}

.novel-response-form.active {
    display: block;
    opacity: 1;
}

.novel-response-content {
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    background-color: white;
    color: #333;
    outline: none;
}

.novel-response-content::placeholder {
    padding: 1px 3px;
}

.novel-submit-response {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.novel-submit-response:hover {
    background-color: #f57c00;
}

/* Response Edit Buttons */
.novel-edit-response-btn,
.novel-delete-response-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 0.8em;
    margin-left: 10px;
    padding: 2px 5px;
    transition: color 0.3s;
}

.novel-edit-response-btn:hover,
.novel-delete-response-btn:hover {
    color: #ff9800;
}

/* Form Styling */
.novel-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
}

.novel-form-group textarea:focus {
    outline: none;
}

.novel-form-group-btn {
    display: flex;
    gap: 10px;
}

.novel-btn-submit {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.novel-btn-submit:hover {
    background-color: #f57c00;
}

.novel-btn-cancel {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.novel-btn-cancel:hover {
    background-color: #5a6268;
}

/* Edit Form Containers */
.novel-edit-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin: 0.6rem 0;
}

/* User Info */
.novel-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.novel-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No Reviews Container */
.no-reviews-box {
    background-color: #fff;
    border: 1px solid #f0ad4e;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Title */
.no-reviews-title {
    color: #e67e22;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Message */
.no-reviews-message {
    color: #444;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

/* Messages */
.messages-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: max-content;
}

.message {
    padding: 10px 35px 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #fff;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

.message.success {
    background-color: #28a745;
}

.message.error {
    background-color: #dc3545;
}

.message.warning {
    background-color: #ffc107;
    color: #000;
}

.message.info {
    background-color: #17a2b8;
}

.close-message {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

/* cover Modal Styles */
.novel-detail-cover-trigger {
    position: relative;
    cursor: pointer;
}

.novel-detail-cover-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: cover-modalFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.novel-detail-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 85vw;
    max-height: 85vh;
    width: fit-content;
    height: fit-content;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: cover-modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.novel-detail-modal-header {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 10001;
    padding: 16px;
}

.novel-detail-close-btn {
    background: transparent;
    border: 1px solid #374151;
    color: black;
    backdrop-filter: blur(4px);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.novel-detail-close-btn:hover {
    backdrop-filter: blur(7px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.novel-detail-close-btn:active {
    transform: scale(0.95);
}

.novel-detail-modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.novel-detail-modal-body img {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.novel-detail-download-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.novel-detail-modal-content:hover .novel-detail-download-overlay {
    opacity: 1;
    pointer-events: auto;
}

.novel-detail-download-btn {
    background: transparent;
    border: 1px solid #374151;
    color: black;
    backdrop-filter: blur(4px);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.novel-detail-download-btn:hover {
    backdrop-filter: blur(7px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.novel-detail-download-btn:active {
    transform: translateY(0);
}

.novel-detail-download-btn i {
    font-size: 16px;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cover-modalSlideIn {
    from {
        transform: scale(0.95) translateY(10px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes cover-modalSlideIn {
    from {
        transform: scale(0.95) translateY(10px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes cover-modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .novel-detail-container {
        width: 100%;
        margin-left: 0;
    }
    
    .sub-novel-detail-container {
        padding: 0;
    }
}

/* Tablet */
@media (max-width: 768px) {

    .adsbygoogle {
        max-height: 80px !important;
    }

    /* Login and review text */
    #login_word,
    #No_reviews {
        font-size: 1rem;
    }

    .sub-novel-detail-container {
        gap: 15px;
    }
    
    /* Header section */
    .novel-header {
        min-height: 280px;
        padding: 15px;
        padding-top: 60px;
    }

    .novel-main-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    /* Image and cover */
    .novel-image-container {
        width: 150px;
        height: 200px;
        margin: 0 auto;
    }

    /* Title and author */
    .novel-title {
        font-size: 1.2rem;
        text-align: center;
        margin: 0 auto 15px;
    }

    .novel-author {
        font-size: 1em;
        text-align: center;
    }

    .author-user-info {
        justify-content: center;
        margin-bottom: 15px;
    }

    .novel-details {
        width: 100%;
        padding-top: 0;
        text-align: center;
    }

    .novel-details.has-edit-btn {
        padding-right: 0;
        padding-top: 0;
    }

    /* Status and rating */
    .novel-status {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    .status-indicator {
        font-size: 13px;
        padding: 6px 12px;
    }

    .novel-rating-section {
        display: flex;
        justify-content: center;
        max-width: inherit;
        margin-bottom: 15px;
    }

    .rating-stars-background {
        font-size: 18px;
        gap: 3px;
    }

    .rating-stars-filled {
        gap: 3px;
    }

    .rating-score {
        font-size: 16px;
    }

    /* Action buttons */
    .novel-actions {
        position: static;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .action-btn {
        position: static;
        width: auto;
        height: auto;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 25px;
        margin: 0;
    }

    .action-btn i {
        font-size: 14px;
    }

    .action-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: none;
    }

    #bookmark-btn {
        margin-right: 0;
    }

    .favourite-image-bookmarks-container {
        gap: 0.5rem;
    }

    /* Author action buttons */
    .novel-author-action-btn {
        top: -40px;
        right: 0;
        gap: 8px;
    }

    .edit-novel-btn,
    .stat-novel-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        gap: 6px;
    }

    .edit-novel-btn i,
    .stat-novel-btn i {
        font-size: 12px;
    }

    /* Content sections */
    .novel-info {
        padding: 1rem;
    }
    
    .translation-info-grid {
        grid-template-columns: 1fr;
    }

    .translation-details{
        margin-top: 10px;
    }

    .novel-warning {
        padding: 0.8rem;
    }

    .novel-warning i {
        padding-right: 0.7rem;
    }

    .novel-rankings h3 {
        font-size: 1.1em;
    }
    .ranking-badge {
        font-size: 0.8rem;
        min-width: 110px;
        padding: 0.4rem 0.8rem;
    }
    .ranking-badge i {
        font-size: 0.8rem;
    }
    .rank-value {
        font-size: 0.7rem;
        min-width: 24px;
    }
    .rank-na {
        font-size: 0.7rem;
        min-width: 24px;
    }
    .category-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    .rankings-grid {
        gap: 0.5rem;
    }

    .novel-summary .summary-text {
        max-height: 8.5em;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .window-content {
        padding: 1rem;
    }

    .chapters-header {
        margin-bottom: 0.9rem;
    }

    .chapters-header h2, .novel-detail-review-title{
        font-size: 1.35rem;
    }

    /* Reviews section */
    .reviews-section {
        padding: 15px;
    }

    .reviews-header {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .novel-review-comment {
        margin: 0;
    }

    .novel-star-rating {
        font-size: 2em;
    }

    .novel-review-actions {
        flex-wrap: wrap;
    }

    .novel-review-actions button {
        margin-bottom: 5px;
    }

    .novel-review-responses {
        padding-left: 15px;
    }

    .novel-response-item {
        padding: 8px;
    }
    
    #novel-review-comment-edit {
        height: 120px;
    }

    /* Modal */
    .novel-detail-modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 20px;
        border-radius: 16px;
    }
    
    .novel-detail-modal-header {
        padding: 12px;
    }
    
    .novel-detail-close-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .novel-detail-modal-body img {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 16px;
    }
    
    .novel-detail-download-overlay {
        bottom: 12px;
        right: 12px;
        padding: 10px 14px;
        border-radius: 8px;
    }
    
    .novel-detail-download-btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* Mobile */
@media (max-width: 483px) {

    .adsbygoogle {
        max-height: 60px !important;
        border-radius: 2px;
    }

    /* Header section */
    .novel-header {
        min-height: 260px;
        padding: 12px;
        padding-top: 50px;
    }

    /* Image and title */
    .novel-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .novel-author {
        font-size: 0.9rem;
    }

    /* User info and avatar */
    .user-info {
        gap: 8px;
    }

    .novel-avatar-container {
        width: 35px;
        height: 35px;
    }

    /* Status and rating */
    .status-indicator {
        font-size: 12px;
        padding: 5px 10px;
    }

    .rating-stars-background {
        font-size: 16px;
        gap: 2px;
    }

    .rating-stars-filled {
        gap: 2px;
    }

    .rating-score {
        font-size: 14px;
    }

    /* Action buttons */
    .novel-actions {
        gap: 8px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .action-btn i {
        font-size: 13px;
    }

    /* Author action buttons */
    .novel-author-action-btn {
        gap: 6px;
    }

    /* Reviews */
    .novel-review-header {
        justify-content: flex-start;
    }

    /* Modal */
    .novel-detail-modal-header {
        padding: 10px;
    }
    
    .novel-detail-close-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .novel-detail-modal-body img {
        max-height: 75vh;
    }
    
    .novel-detail-download-overlay {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .novel-detail-download-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }
    
    .novel-detail-download-btn i {
        font-size: 14px;
    }
}

/* Small mobile */
@media (max-width: 390px) {
    .novel-review-header {
        font-size: 0.8rem;
    }
}

/* Extra small mobile */
@media (max-width: 370px) {
    .edit-novel-btn,
    .stat-novel-btn {
        padding: 6px 10px;
        font-size: 0.8em;
        gap: 4px;
    }

    .edit-novel-btn i,
    .stat-novel-btn i {
        font-size: 11px;
    }

    /* Image and title */
    .novel-image-container {
        width: 130px;
        height: 180px;
    }

    .chapters-header h2, .novel-detail-review-title{
        font-size: 1.25rem;
    }
}