body.is-dark a {
  color: #e4e4e4;
  transition: color 0.3s ease;
}
@media screen and (max-width: 1023px) {
  body.is-dark .navbar-menu {
    background-color: #1a1a1a;
  }
}
h2{
  margin-top: .1rem!important;
}
body.is-dark input::placeholder {
color: #e4e4e4;
}
body .has-text-info{
color: #ffe08a!important;
}

@media (max-width: 1025px) {
body .has-text-info,body .has-text-warning{
  color: #ffe08a!important;
  font-size: 1.3rem;
}
.language-toggle .fa-globe-asia{
  font-size: 1.3rem;
}
}
.navbar-item img {

}

/* Navigation icon colors */
.navbar-item .icon.has-text-primary {
color: hsl(171, 100%, 41%) !important;
}
.navbar-item .icon.has-text-info {
color: hsl(204, 86%, 53%) !important;
}
.navbar-item .icon.has-text-warning {
color: hsl(48, 100%, 67%) !important;
}
.navbar-item .icon.has-text-danger {
color: hsl(348, 100%, 61%) !important;
}
.navbar-item .icon.has-text-success {
color: hsl(141, 71%, 48%) !important;
}
.dark-mode-toggle {
cursor: pointer;
}
.hero-body {
padding: 2rem 1.5rem;
}
.card {
height: 100%;
display: flex;
flex-direction: column;
}
.card-content {
flex-grow: 1;
padding: 0.75rem;
display: flex;
flex-direction: column;
}
.novel-card {
transition: transform 0.3s;
position: relative;
overflow: hidden;
}
.novel-card .image {
height: 180px;
overflow: hidden;
}
.novel-card .image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.novel-card .title {
font-size: 1.1rem;
margin-bottom: 0.4rem;
line-height: 1.3;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.novel-card .subtitle {
font-size: 0.85rem;
line-height: 1.3;
margin-bottom: 0.5rem;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
color: #666;
}
.novel-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.novel-card .progress {
position: absolute;
top: 10px;
right: 10px;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.9);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 0.8rem;
z-index: 2;
}
.novel-card .status {
position: absolute;
top: 10px;
left: 10px;
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-size: 0.7rem;
z-index: 2;
}
.ongoing {
background-color: #23d160;
color: white;
}
.completed {
background-color: #ffdd57;
color: #363636;
}
.section-title {
margin-bottom: 1.5rem;
position: relative;
display: flex;
align-items: center;
}
.section-title::after {
content: '';
flex-grow: 1;
height: 1px;
background-color: #dbdbdb;
margin-left: 1rem;
margin-right: 0;
}

section:not(.genres-section):not(.announcement-section):not(.recent-updates-section) .section-title::after {
display: none;
}

body.is-dark .section-title::after {
background-color: #333;
}
.genre-card {
height: 100px;
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
background-position: center;
border-radius: 6px;
color: white;
font-weight: bold;
text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
transition: transform 0.3s;
}
.genre-card:hover {
transform: scale(1.05);
}
.announcement-card {
border-left: 4px solid #3273dc;
}
.footer {
background-color: #f5f5f5;
padding: 3rem 1.5rem;
}
.footer a {
color: #4a4a4a;
}
.footer a:hover {
color: #3273dc;
}
body.is-dark {
background-color: #1a1a1a;
color: #e4e4e4;
}
body.is-dark .navbar {
background-color: #1a1a1a !important;
border-bottom: 1px solid #2c2c2c;
}
body.is-dark .navbar-item, 
body.is-dark .navbar-link {
color: #f5f5f5 !important;
}
body.is-dark .navbar-item:hover,
body.is-dark .navbar-link:hover {
background-color: #2a2a2a !important;
color: #ffffff !important;
}
body.is-dark .navbar-dropdown {
background-color: #1a1a1a;
border-top: 1px solid #333;
}
body.is-dark .navbar-dropdown .navbar-item:hover {
background-color: #2a2a2a;
}
body.is-dark .footer {
background-color: #1a1a1a;
color: #f5f5f5;
border-top: 1px solid #2c2c2c;
}
body.is-dark .footer a {
color: #e4e4e4;
}
body.is-dark .footer a:hover {
color: #5c9ce6;
}
body.is-dark .footer .title {
color: #f5f5f5;
}
body.is-dark .footer .input {
background-color: #2a2a2a;
border-color: #2c2c2c;
color: #f5f5f5;
}
body.is-dark .footer .input:focus {
border-color: #375a7f;
box-shadow: 0 0 0 0.125em rgba(55, 90, 127, 0.25);
}
body.is-dark .search-wrapper .input {
background-color: #2a2a2a;
border-color: #2a2a2a;
color: #e4e4e4;
}
body.is-dark .search-wrapper .input:focus {
border-color: #375a7f;
background-color: #333;
box-shadow: 0 0 0 0.125em rgba(55, 90, 127, 0.25);
}
body.is-dark .search-wrapper .input:focus + .icon {
color: #375a7f;
}
body.is-dark .language-selector {
color: #e4e4e4;
}
body.is-dark .language-selector .icon {
color: #5c9ce6;
}

body.is-dark .novel-detail-section .box {
background-color: #1e1e1e;
color: #f5f5f5;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
body.is-dark .novel-info-box {
background: #1e1e1e;
color: #f5f5f5;
}
body.is-dark .novel-info-box .title {
color: #7cb3ff;
}
body.is-dark .novel-info-box .subtitle {
color: #b5b5b5;
}
body.is-dark .novel-meta span {
color: #fff;
}
body.is-dark .novel-description-box {
background: #2a2a2a;
border-left: 4px solid #375a7f;
color: #f5f5f5;
}
body.is-dark .novel-actions .button {
background-color: #2a2a2a;
color: #f5f5f5;
border-color: #444;
}
body.is-dark .novel-actions .button:hover {
background-color: #333;
border-color: #5c9ce6;
color: #5c9ce6;
}
body.is-dark .novel-actions .button.is-primary {
background-color: #375a7f;
border-color: transparent;
color: #f5f5f5;
}
body.is-dark .novel-actions .button.is-primary:hover {
background-color: #2c4c6e;
}
body.is-dark .novel-tags .tag {
background-color: #2a2a2a;
color: #b5b5b5;
}
body.is-dark .novel-tags .tag:hover {
background-color: #333;
color: #5c9ce6;
}
body.is-dark .chapter-list-box {
background: #1e1e1e;
box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.is-dark .chapter-list .chapter-item {
background: #2a2a2a;
border-bottom: 1px solid #333;
}
body.is-dark .chapter-list .chapter-item:hover {
background: #333;
}
body.is-dark .chapter-list .chapter-item a {
color: #7cb3ff;
}
body.is-dark .chapter-list .chapter-item a:hover {
color: #5c9ce6;
}
body.is-dark .tabs li.is-active a {
border-bottom-color: #375a7f;
color: #5c9ce6;
}
body.is-dark .tabs a {
color: #b5b5b5;
}
body.is-dark .tabs a:hover {
color: #5c9ce6;
border-bottom-color: #5c9ce6;
}
/* Recommended novel cards dark mode styles */
body.is-dark .recommendations-grid .card {
background-color: #1e1e1e;
color: #f5f5f5;
box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.is-dark .recommendations-grid .card-content {
background-color: #1e1e1e;
}
body.is-dark .recommendations-grid .title {
color: #f5f5f5;
}
body.is-dark .recommendations-grid .subtitle {
color: #d4d4d4;
}
body.is-dark .recommendations-grid .card:hover {
box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.navbar-item .icon.has-text-primary {
color: hsl(171, 100%, 41%) !important;
}
.navbar-item .icon.has-text-info {
color: hsl(204, 86%, 53%) !important;
}
.navbar-item .icon.has-text-warning {
color: hsl(48, 100%, 67%) !important;
}
.navbar-item .icon.has-text-danger {
color: hsl(348, 100%, 61%) !important;
}
.navbar-item .icon.has-text-success {
color: hsl(141, 71%, 48%) !important;
}

/* Tối ưu hóa thanh điều hướng */
.navbar {
box-shadow: none;
border-bottom: 1px solid #f5f5f5;
}

.navbar-item {
transition: all 0.3s ease;
color: #4a4a4a;
font-weight: bold !important;
}

.navbar-item:hover {
color: #3273dc;
background-color: transparent !important;
}

.navbar-item .icon {
margin-right: 0.5rem;
}

.search-wrapper {
position: relative;
margin: 0 1rem;
}

.search-wrapper .control {
width: 100%;
}

.search-wrapper .input {
width: 100%;
height: 2.5em;
padding: 0.5em 1em 0.5em 2.5em;
border: 1px solid #dbdbdb;
border-radius: 50px;
background-color: #f5f5f5;
transition: all 0.3s ease;
font-size: 0.95rem;
}

.search-wrapper .input:focus {
border-color: #3273dc;
background-color: white;
box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.15);
}

.search-wrapper .icon {
position: absolute;
left: 1em;
top: 50%;
transform: translateY(-50%);
color: #7a7a7a;
width: 1em;
height: 1em;
pointer-events: none;
transition: color 0.3s ease;
}

.search-wrapper .input:focus + .icon {
color: #3273dc;
}

.language-selector {
display: flex;
align-items: center;
padding: 0.5rem;
color: #4a4a4a;
transition: all 0.3s ease;
}

.language-selector .icon {
color: #3273dc;
margin-right: 0.5rem;
font-size: 1rem;
}

.language-selector:hover {
background-color: #f5f5f5;
}

body.is-dark .language-selector {
color: #e4e4e4;
}

body.is-dark .navbar-dropdown {
background-color: #1a1a1a;
border-top: 1px solid #333;
}

body.is-dark .navbar-dropdown .navbar-item:hover {
background-color: #2a2a2a;
}

body.is-dark .card {
background-color: #1e1e1e;
color: #f5f5f5;
}

body.is-dark .title,
body.is-dark .subtitle {
color: #f5f5f5;
}

body.is-dark .button.is-light {
background-color: #333;
color: #f5f5f5;
}

body.is-dark .button.is-primary {
background-color: #375a7f;
}

body.is-dark .button.is-primary.is-outlined {
background-color: transparent;
border-color: #375a7f;
color: #f5f5f5;
}

body.is-dark .section-title::after {
background-color: #333;
}

body.is-dark input.input {
background-color: #2a2a2a;
color: #f5f5f5;
border-color: #444;
}

body.is-dark .footer {
background-color: #1a1a1a;
color: #f5f5f5;
}

.card.novel-card {
margin: 0; 
border-radius: 6px;
overflow: hidden;
height: 340px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
a {
transition: color 0.3s ease;
}

a:hover {
color: #2160c4;
}

.card-footer-item {
color: #4a4a4a;
font-weight: 500;
}

.card-footer-item:hover {
color: #3273dc;
background-color: rgba(50, 115, 220, 0.05);
}

body.is-dark .navbar-link:hover,
body.is-dark .navbar-link.is-active {
background-color: #2c2c2c !important;
color: #ffffff !important;
}

body.is-dark .navbar-item.has-dropdown:hover .navbar-link,
body.is-dark .navbar-item.has-dropdown.is-active .navbar-link {
background-color: #2c2c2c !important;
color: #ffffff !important;
}

body.is-dark .navbar-dropdown {
background-color: #1a1a1a;
border: 1px solid #2c2c2c;
}

body.is-dark .navbar-dropdown .navbar-item {
color: #e4e4e4 !important;
}

body.is-dark .navbar-dropdown .navbar-item:hover {
background-color: #2c2c2c !important;
color: #ffffff !important;
}

.section:first-of-type {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.section:first-of-type .columns {
margin-top: 0;
}

.column.is-6-desktop .novel-card {
height: 340px;
}
.column.is-6-desktop .novel-card .title {
font-size: 1.2rem;
-webkit-line-clamp: 1;
}
.column.is-6-desktop .novel-card .subtitle {
-webkit-line-clamp: 2;
}

body.is-dark .novel-card .subtitle {
color: #b5b5b5;
}
body.is-dark .card-footer {
border-top: 1px solid #2c2c2c;
}

.card-content .title:not(.is-spaced)+.subtitle {
margin-top: 0 !important;
}

.section .container .tabs {
margin-bottom: 0;
}
.tabs li a {
cursor: pointer;
padding: 0.5em 1em;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
}
.tabs li.is-active a {
border-bottom-color: #3273dc;
color: #3273dc;
}
.tab-content .tab-pane {
display: none;
}
.tab-content .tab-pane.is-active {
display: block;
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

body.is-dark .tabs li.is-active a {
border-bottom-color: #375a7f;
color: #5c9ce6;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding: 0;
}

.section-title {
margin: 0 !important;
flex: 1;
padding: 0;
display: flex;
align-items: center;
}

/* Only show line for specific sections */
.genres-section .section-title::after,
.announcement-section .section-title::after,
.recent-updates-section .section-title::after {
content: '';
flex-grow: 1;
height: 1px;
background-color: #dbdbdb;
margin-left: 1rem;
margin-right: 0;
}

body.is-dark .genres-section .section-title::after,
body.is-dark .announcement-section .section-title::after,
body.is-dark .recent-updates-section .section-title::after {
background-color: #333;
}

.section-controls {
display: flex;
align-items: center;
z-index: 1;
padding: 0;
margin-left: 0;
}

.novel-detail-section .box {
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 16px rgba(0,0,0,0.04);
margin-bottom: 2.5rem;
padding: 2.5rem 2rem;
transition: box-shadow 0.3s, transform 0.3s;
animation: fadeInUp 0.7s;
padding-top: 1rem;
}
.novel-info-row {
margin-bottom: 2.5rem;
}
.novel-info-box {
display: flex;
flex-direction: column;
height: 100%;
}
.novel-cover-wrapper {
box-shadow: 0 4px 16px rgba(50,115,220,0.08);
border-radius: 10px;
overflow: hidden;
padding: 0.5rem;
animation: fadeIn 1s;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.novel-cover {
width: 100%;
height: 100%;
max-width: unset;
max-height: unset;
border-radius: 8px;
object-fit: cover;
display: block;
box-shadow: none;
background: #fff;
}

/* Default Novel Cover Styles */
.default-novel-cover {
  width: 220px;
  height: 308px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(1000px) rotateY(-5deg);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.2);
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  flex-shrink: 0;
}

.cover-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    var(--cover-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.1) 2px,
      rgba(255,255,255,0.1) 4px
    );
  background-size: 200% 200%, 8px 8px;
  animation: gradientShift 3s ease infinite;
}

/* Book spine effect */
.default-novel-cover .book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.4) 0%, 
    rgba(0,0,0,0.2) 50%, 
    rgba(0,0,0,0.1) 100%);
  z-index: 3;
  border-radius: 2px 0 0 2px;
}

/* Book pages effect */
.default-novel-cover .book-pages {
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.8) 0%, 
    rgba(255,255,255,0.4) 50%, 
    rgba(255,255,255,0.2) 100%);
  z-index: 3;
  border-radius: 0 2px 2px 0;
}

.cover-content {
  z-index: 2;
  text-align: center;
  padding: 2rem;
  color: white;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
  color: #ffffff;
}

.novel-title-on-cover {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  word-wrap: break-word;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  padding: 0 0.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.novel-title-on-cover.truncated {
  opacity: 0;
}

.cover-decoration {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  margin: 0 auto;
  border-radius: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Book spine title */
.book-spine-title {
  display: none;
}

/* Author name on cover */
.author-name-on-cover {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-top: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  font-style: italic;
}

/* Book corners */
.book-corners {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.corner {
  position: absolute;
  width: 0;
  height: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.corner.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.corner.top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.corner.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.corner.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* Bookmark */
.bookmark {
  position: absolute;
  top: 0px;
  right: 12px;
  z-index: 5;
}

.bookmark-ribbon {
  width: 8px;
  height: 25px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
}

.bookmark-ribbon::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #ff6b6b;
}

/* Unified red bookmark color for main cover */
.default-novel-cover .bookmark-ribbon {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.default-novel-cover .bookmark-ribbon::before {
  border-bottom-color: #ff6b6b;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  from { box-shadow: 0 0 5px rgba(255,255,255,0.5); }
  to { box-shadow: 0 0 20px rgba(255,255,255,0.8); }
}

/* Hover effects for book covers */
.default-novel-cover:hover {
  transform: perspective(1000px) rotateY(-8deg) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.default-novel-cover-small:hover {
  transform: perspective(800px) rotateY(-5deg) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}

/* Fix bookmark overflow on hover */
.default-novel-cover {
  overflow: visible;
}

.default-novel-cover .bookmark {
  overflow: visible;
}

.default-novel-cover-small {
  overflow: visible;
}

.default-novel-cover-small .bookmark-small {
  overflow: visible;
}

/* Book texture overlay */
.default-novel-cover .book-texture {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0,0,0,0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.default-novel-cover-small .book-texture {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* Dark mode styles for default cover */
body.is-dark .cover-background {
  background: 
    linear-gradient(135deg, #2c3e50 0%, #34495e 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.05) 2px,
      rgba(255,255,255,0.05) 4px
    );
  background-size: 200% 200%, 8px 8px;
}

body.is-dark .novel-title-on-cover {
  color: #ecf0f1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

body.is-dark .cover-decoration {
  background: linear-gradient(90deg, transparent, #ecf0f1, transparent);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .default-novel-cover {
    width: 180px;
    height: 252px;
  }
  
  .book-icon {
    font-size: 2.5rem;
  }
  
  .novel-title-on-cover {
    font-size: 1.2rem;
    -webkit-line-clamp: 2;
    padding: 0 0.3rem;
  }
  
  .cover-content {
    padding: 1.5rem;
  }
  
  .book-spine-title {
    max-width: 300px;
    font-size: 0.75rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .default-novel-cover {
    width: 90px !important;
    height: 120px !important;
    padding-bottom: 0 !important;
  }
  
  .book-icon {
    font-size: 1.2rem;
  }
  
  .novel-title-on-cover {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
    padding: 0 0.1rem;
    line-height: 1.1;
  }
  
  .cover-content {
    padding: 0.3rem;
  }
  
  .book-spine-title {
    max-width: 250px;
    font-size: 0.7rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    text-align: center;
  }
}

/* Small Default Novel Cover for Related Novels */
.default-novel-cover-small {
  width: 90px;
  height: 0;
  padding-bottom: 133.33%; 
  position: relative;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: perspective(800px) rotateY(-3deg);
  box-shadow: 
    0 5px 15px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.1);
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
}

.cover-background-small {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    var(--cover-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 1px,
      rgba(255,255,255,0.1) 1px,
      rgba(255,255,255,0.1) 2px
    );
  background-size: 200% 200%, 4px 4px;
  animation: gradientShift 3s ease infinite;
}

/* Small book spine */
.book-spine-small {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.4) 0%, 
    rgba(0,0,0,0.2) 50%, 
    rgba(0,0,0,0.1) 100%);
  z-index: 3;
  border-radius: 1px 0 0 1px;
}

/* Small book pages */
.book-pages-small {
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.8) 0%, 
    rgba(255,255,255,0.4) 50%, 
    rgba(255,255,255,0.2) 100%);
  z-index: 3;
  border-radius: 0 1px 1px 0;
}

/* Small bookmark */
.bookmark-small {
  position: absolute;
  top: -5px;
  right: 12px;
  z-index: 5;
}

.bookmark-ribbon-small {
  width: 4px;
  height: 15px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  position: relative;
}

.bookmark-ribbon-small::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-bottom: 4px solid #ff6b6b;
}

/* Unified red bookmark color for small covers */
.default-novel-cover-small .bookmark-ribbon-small {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.default-novel-cover-small .bookmark-ribbon-small::before {
  border-bottom-color: #ff6b6b;
}

/* Ensure small cover bookmark positioning matches index */
.default-novel-cover-small {
  overflow: visible;
  position: relative;
}

.default-novel-cover-small .bookmark-small {
  overflow: visible;
  position: absolute;
  top: -5px;
  right: 12px;
  z-index: 5;
}

/* Ensure bookmark stays within bounds during hover */
.default-novel-cover-small:hover .bookmark-small {
  top: -5px;
  right: 12px;
}

.cover-content-small {
  z-index: 2;
  text-align: center;
  padding: 0.5rem;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.book-icon-small {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
  color: rgba(255,255,255,0.95);
}

/* Different icon colors for variety - using CSS custom properties */
.default-novel-cover-small .book-icon-small {
  color: #ffffff;
}

/* Removed static nth-child color patterns - now using dynamic colors */

.novel-title-on-cover-small {
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  word-wrap: break-word;
  max-width: 100%;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dark mode styles for small default cover */
body.is-dark .cover-background-small {
  background: 
    linear-gradient(135deg, #2c3e50 0%, #34495e 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 1px,
      rgba(255,255,255,0.05) 1px,
      rgba(255,255,255,0.05) 2px
    );
  background-size: 200% 200%, 4px 4px;
}

/* Removed static nth-child dark mode patterns - now using dynamic colors */

body.is-dark .novel-title-on-cover-small {
  color: #ecf0f1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
.novel-cover-wrapper {
  margin: 0 auto 1rem auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
}
.novel-meta span {
margin-right: 1.5rem;
color: #888;
font-size: 1rem;
}
.novel-actions .button {
margin-right: 0.7rem;
margin-bottom: 0.5rem;
min-width: 110px;
font-weight: 500;
font-size: 1rem;
box-shadow: 0 2px 8px rgba(50,115,220,0.06);
animation: bounceIn 0.7s;
}
.novel-tags {
margin-top: 1rem;
}
.novel-tags .tag {
margin-right: 0.5rem;
margin-bottom: 0.5rem;
font-size: 0.95rem;
padding: 0.5em 1.1em;
border-radius: 20px;
background: #eaeaea;
color: #666;
transition: background 0.3s, color 0.3s, transform 0.2s;
}
.novel-tags .tag:hover {
background: #d0d0d0;
color: #333;
transform: scale(1.08);
}
body.is-dark .novel-tags .tag {
background-color: #3a3a3a;
color: #d4d4d4;
}
body.is-dark .novel-tags .tag:hover {
background-color: #4a4a4a;
color: #ffffff;
}
.novel-description-box {
line-height: 1.8;
color: #333;
font-size: 1.1rem;
background: #f8fafc;
border-left: 4px solid #3273dc;
animation: fadeIn 1s;
}
.chapter-list-box {
background: #f8fafc;
animation: fadeIn 1s;
}
.chapter-list .chapter-item {
padding: 1rem 0.5rem;
border-bottom: 1px solid #eaeaea;
font-size: 1.08rem;
transition: background 0.2s, transform 0.2s;
animation: fadeInUp 0.7s;
}
.chapter-list .chapter-item:last-child {
border-bottom: none;
}
.chapter-list .chapter-item:hover {
background: #f0f4fa;
transform: translateX(8px) scale(1.01);
}
.chapter-list .chapter-item.is-locked {
color: #bbb;
}
.chapter-list .chapter-item.is-locked .icon {
color: #bbb;
}
.animate-fade-in {
animation: fadeIn 1s;
}
.animate-fade-in-up {
animation: fadeInUp 0.7s;
padding: 0;
}
.animate-bounce-in {
animation: bounceIn 0.7s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(40px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
0% { opacity: 0; transform: scale(0.8); }
60% { opacity: 1; transform: scale(1.05); }
100% { opacity: 1; transform: scale(1); }
}
@media (max-width: 1300px) and (min-width: 769px) {
.section:first-of-type {
    padding-top: 0;
    padding-bottom: 0;
}
.novel-cover-wrapper {
  max-width: 220px !important;
}
.default-novel-cover {
  width: 220px !important;
  height: 308px !important;
}
}

@media (max-width: 1300px) {
.section:first-of-type {
    padding-top: 0;
    padding-bottom: 0;
}
.novel-info-box .title.is-2 {
  font-size: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
}
.author-name-on-cover {
  display: none !important;
}
.novel-title-on-cover {
  -webkit-line-clamp: 3 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}
.novel-info-row {
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 1rem;
}
.novel-cover-wrapper {
  width: 100% !important;
  max-width: 220px;
  margin: 0 auto 1rem auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.default-novel-cover {
  width: 220px;
  height: 308px;
}
.book-icon {
  font-size: 2.5rem;
}
.novel-title-on-cover {
  font-size: 1.2rem;
  -webkit-line-clamp: 2;
  padding: 0 0.3rem;
}
.cover-content {
  padding: 1.5rem;
}
.novel-info-box {
  width: 100% !important;
  height: auto !important;
  padding: 1rem !important;
  margin: 0 !important;
}
.novel-meta span {
  font-size: 0.95rem !important;
  margin-right: 1rem !important;
}
.novel-actions .button {
  min-width: 90px !important;
  font-size: 0.95rem !important;
  margin-right: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}
.novel-description-box, .chapter-list-box {
  padding: 1rem !important;
  font-size: 1rem !important;
}
.recommendations-grid {
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
}
.chapter-list .chapter-item {
  font-size: 1rem !important;
  padding: 0.7rem 0.3rem !important;
}
.column.is-9.is-flex {
  width: 100% !important;
}
}

@media (max-width: 768px) {
.section:first-of-type {
    padding-top: 0;
    padding-bottom: 0;
}
.novel-info-box .title.is-2 {
  font-size: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
}
.novel-cover-wrapper {
  max-width: 220px !important;
}
.novel-info-row {
  flex-direction: column !important;
  align-items: stretch !important;
  margin-bottom: 1rem;
}
.novel-cover-wrapper {
  width: 100% !important;
  max-width: 220px;
  margin: 0 auto 1rem auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.novel-info-box {
  width: 100% !important;
  height: auto !important;
  padding: 1rem !important;
  margin: 0 !important;
}
.novel-meta span {
  font-size: 0.95rem !important;
  margin-right: 1rem !important;
}
.novel-actions .button {
  min-width: 90px !important;
  font-size: 0.95rem !important;
  margin-right: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}
.novel-description-box, .chapter-list-box {
  padding: 1rem !important;
  font-size: 1rem !important;
}
.recommendations-grid {
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
}
.chapter-list .chapter-item {
  font-size: 1rem !important;
  padding: 0.7rem 0.3rem !important;
}
body.is-dark .navbar {
  background-color: #1a1a1a !important;
}
}
@media (max-width: 480px) {
.title, .subtitle, h1, h2, h3 {
  font-size: 1.3rem !important;
}
.novel-info-box, .novel-description-box, .chapter-list-box {
  padding: 0.7rem !important;
}
.novel-meta span {
  font-size: 0.9rem !important;
  margin-right: 0.7rem !important;
}
.novel-actions .button {
  min-width: 80px !important;
  font-size: 0.9rem !important;
  margin-right: 0.3rem !important;
  margin-bottom: 0.3rem !important;
}
.novel-cover {
  width: 90px;
  height: 120px;
}
}

/* Add novel-grid style */
.novel-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1.5rem;
}

@media screen and (max-width: 768px) {
.novel-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
}

@media screen and (max-width: 480px) {
.novel-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}
}

.cultivation-level {
position: absolute;
top: 10px;
right: 10px;
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-size: 0.7rem;
background-color: rgba(255, 255, 255, 0.9);
color: #333;
font-weight: bold;
z-index: 2;
}

.novel-cover-wrapper .cultivation-level {
padding: 0.3rem 0.6rem;
margin: 5px;
}

.tag.is-cultivation {
background-color: #eef8ff;
color: #3273dc;
}

.novel-stats {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
margin-top: 0.5rem;
font-size: 0.8rem;
color: #777;
}

.novel-stats span {
display: flex;
align-items: center;
}
@media screen and (min-width: 1024px) {
  .section {
      padding: 0;
  }
}
.novel-stats i {
margin-right: 0.3rem;
color: #3273dc;
}

.section-title.recommendations-title {
margin-bottom: 1.5rem !important;
}

.recommendations-grid, .novel-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 2rem;
}

@media (max-width: 768px) {
.recommendations-grid, .novel-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
}

@media (max-width: 480px) {
.recommendations-grid, .novel-list {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
}



.novel-card {
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 16px rgba(0,0,0,0.04);
padding: 1.5rem 1.2rem;
display: flex;
gap: 1.2rem;
align-items: flex-start;
transition: box-shadow 0.3s, transform 0.3s;
}
.novel-card:hover {
box-shadow: 0 8px 32px rgba(50,115,220,0.08);
transform: translateY(-2px) scale(1.01);
}
.novel-cover {
width: 90px;
height: 120px;
aspect-ratio: 3/4;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
background: #f0f4fa;
}
@media (max-width: 768px) {
.novel-cover {
  width: 80px;
  height: 110px;
}
}
.novel-info {
flex: 1;
display: flex;
flex-direction: column;
}
.novel-title {
font-size: 1.15rem;
font-weight: bold;
margin-bottom: 0.3rem;
color: #2160c4;
text-decoration: none;
transition: color 0.2s;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
line-height: 1.3;
max-height: 2.6em;
}
.novel-title:hover {
color: #375a7f;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  
}

.novel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-height: none;
  overflow: visible;
}


.novel-meta {
color: #888;
font-size: 0.95rem;
margin-bottom: 0.5rem;
}
.novel-desc {
color: #444;
font-size: 1rem;
margin-bottom: 0.5rem;
line-height: 1.5;

overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.novel-btn {
margin-top: 0.5rem;
align-self: flex-start;
}

/* Dark mode styles */
body.is-dark {
background-color: #1a1a1a;
color: #e4e4e4;
}

body.is-dark .novel-info-box {
background: #1e1e1e;
box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

body.is-dark .novel-info-box h1 {
color: #7cb3ff;
}

body.is-dark .novel-info-box .novel-meta {
color: #b5b5b5;
}

body.is-dark .chapter-list-box {
background: #1e1e1e;
box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

body.is-dark .chapter-list-box .title {
color: #f5f5f5;
}

body.is-dark .chapter-item {
background: #2a2a2a;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.is-dark .chapter-item:hover {
background: #333;
box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

body.is-dark .chapter-title-link {
color: #7cb3ff;
}

body.is-dark .chapter-title-link:hover {
color: #5c9ce6;
}

body.is-dark .chapter-index {
background: #375a7f;
color: #f5f5f5;
}

body.is-dark .pagination-link {
background-color: #2a2a2a;
border-color: #444;
color: #f5f5f5;
}

body.is-dark .pagination-link.is-current {
background-color: #375a7f;
border-color: #375a7f;
color: #f5f5f5;
}

body.is-dark .pagination-link:hover {
background-color: #333;
border-color: #5c9ce6;
color: #5c9ce6;
}

body.is-dark .pagination-previous,
body.is-dark .pagination-next {
background-color: #2a2a2a;
border-color: #444;
color: #f5f5f5;
}

body.is-dark .pagination-previous:hover,
body.is-dark .pagination-next:hover {
background-color: #333;
border-color: #5c9ce6;
color: #5c9ce6;
}

body.is-dark .pagination-ellipsis {
color: #b5b5b5;
}

body.is-dark .novel-list-section {
background-color: #1e1e1e !important;
}

body.is-dark .filter-section {
background-color: #23272e !important;
border-bottom: 1px solid #222 !important;
}

body.is-dark .novel-card {
background-color: #1e1e1e !important;
box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

body.is-dark .novel-card:hover {
box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

body.is-dark .novel-card .title {
color: #5c9ce6 !important;
}

body.is-dark .novel-card .subtitle {
color: #b5b5b5 !important;
}

body.is-dark .novel-card .tag.is-light {
background-color: #2a2a2a;
color: #e4e4e4;
}

body.is-dark .novel-card .button.is-link {
background-color: #375a7f;
}

body.is-dark .novel-card .button.is-link:hover {
background-color: #2c4b6b;
}

body.is-dark .novel-card .image {
background: #2a2a2a;
}

body.is-dark .novel-card .image img {
background: #2a2a2a;
}

body.is-dark .tabs a {
color: #e4e4e4;
}

body.is-dark .tabs a:hover {
color: #5c9ce6;
border-bottom-color: #5c9ce6;
}

body.is-dark .tabs li.is-active a {
color: #5c9ce6;
border-bottom-color: #5c9ce6;
}

body.is-dark .button.is-primary {
background-color: #375a7f;
}

body.is-dark .button.is-primary:hover {
background-color: #2c4b6b;
}

body.is-dark .button.is-light {
background-color: #2a2a2a;
color: #f5f5f5;
}

body.is-dark .button.is-light:hover {
background-color: #333;
color: #ffffff;
}

body.is-dark .tag:not(body) {
background-color: #2a2a2a;
color: #e4e4e4;
}

body.is-dark .tag:not(body).is-primary {
background-color: #375a7f;
color: #f5f5f5;
}

body.is-dark .tag:not(body).is-info {
background-color: #209cee;
color: #f5f5f5;
}

body.is-dark .tag:not(body).is-success {
background-color: #23d160;
color: #f5f5f5;
}

body.is-dark .tag:not(body).is-warning {
background-color: #ffdd57;
color: #1a1a1a;
}

body.is-dark .tag:not(body).is-danger {
background-color: #ff3860;
color: #f5f5f5;
}

body.is-dark .footer {
background-color: #1a1a1a;
color: #f5f5f5;
border-top: 1px solid #2c2c2c;
}

body.is-dark .footer a {
color: #e4e4e4;
}

body.is-dark .footer a:hover {
color: #5c9ce6;
}
a.navbar-item:focus{
    background-color: transparent!important;
  }
  @media screen and (min-width: 769px), print {
    .column.is-3, .column.is-3-tablet {
        flex: none;
        width: 20%;
    }
  }
  
  @media screen and (min-width: 769px) and (max-width: 1300px) {
    .column.is-3, .column.is-3-tablet {
        flex: none;
        width: 280px !important;
        max-width: 280px !important;
        min-width: 280px !important;
    }
  }



/* Dark mode mobile header icon styles */
body.is-dark .mobile-header .dark-mode-toggle {
color: #fbbf24 !important; /* Keep yellow color in dark mode */
}

body.is-dark .mobile-header .language-toggle .icon {
color: #5c9ce6 !important; /* Brighter blue for dark mode */
}

body.is-dark .mobile-tabbar {
background: #23272f !important;
border-top: 1px solid #222 !important;
}
body.is-dark .tab-item,
body.is-dark .tab-item i,
body.is-dark .tab-item span {
color: #b5b5b5 !important;
}
body.is-dark .tab-item:hover,
body.is-dark .tab-item:active {
color: #5c9ce6 !important;
}
/* Mobile language dropdown styles */
.mobile-lang-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2000;
  min-width: 120px;
}

.mobile-lang-item {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}

.mobile-lang-item.is-active {
  color: #2160c4 !important;
  font-weight: bold !important;
  background: #f0f4fa !important;
}

.mobile-lang-item:hover {
  background: #f0f4fa;
}

body.is-dark .mobile-lang-dropdown {
background: #23272f !important;
border: 1px solid #222 !important;
}
body.is-dark .mobile-lang-item {
color: #b5b5b5 !important;
}
body.is-dark .mobile-lang-item.is-active {
color: #5c9ce6 !important;
background: #1a1a1a !important;
font-weight: bold !important;
}
body.is-dark .mobile-lang-item:hover {
background: #1a1a1a !important;
color: #5c9ce6 !important;
}

.mobile-header .language-toggle .icon {
color: #3273dc !important;
}

body.is-dark .tab-item.is-active,
body.is-dark .tab-item.is-active i,
body.is-dark .tab-item.is-active span {
color: #5c9ce6 !important;
font-weight: bold;
}

/* Mobile navigation bar optimization */
@media screen and (max-width: 768px) {
.navbar-menu {
  position: absolute;
  width: 100%;
  background: inherit;
  box-shadow: 0 8px 16px rgba(10,10,10,.1);
}

.navbar-menu.is-active {
  display: block;
  padding: 0;
}

.navbar-item.has-dropdown {
  padding: 0;
}

.navbar-dropdown {
  display: none;
  position: static;
  padding: 0;
  border: none;
  box-shadow: none;
}

.navbar-item.has-dropdown.is-active .navbar-dropdown {
  display: block;
}

.navbar-item.has-dropdown:hover .navbar-dropdown {
  display: block;
}

.navbar-dropdown .navbar-item {
  padding-left: 1.5rem;
}

.search-wrapper {
  margin: 0.5rem;
  width: auto;
}

.search-wrapper .input {
  width: 100%;
}

/* Mobile language selector style */
.navbar-item.has-dropdown {
  display: block;
  width: 100%;
}

.navbar-link:not(.is-arrowless)::after {
  border-color: currentColor;
  right: 1.125em;
  z-index: 4;
}

.navbar-link {
  padding-right: 2.5em;
}
}

body.is-dark .navbar-menu {
background-color: #1a1a1a;
border-bottom: 1px solid #2c2c2c;
}

body.is-dark .navbar-dropdown {
background-color: #1a1a1a;
}

body.is-dark .navbar-item.has-dropdown:hover .navbar-link {
background-color: #2c2c2c;
}

.navbar-link.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover{
  background-color: transparent!important;
}

/* Active language highlighting for desktop navbar */
.navbar-dropdown .navbar-item.is-active {
  background-color: #f0f4fa !important;
  color: #2160c4 !important;
  font-weight: bold;
}

body.is-dark .navbar-dropdown .navbar-item.is-active {
  background-color: #1a1a1a !important;
  color: #5c9ce6 !important;
  font-weight: bold;
}


@media (max-width: 480px) {
  .default-novel-cover {
    width: 170px !important;
    height: 230px !important;
  }
}
@media (max-width: 765px) {
.footer{
  display: none;
}
}
.mobile-header {
display: flex;
align-items: center;
height: 56px;
background: #fff;
border-bottom: 1px solid #eee;
position: sticky;
top: 0;
z-index: 1000;
padding: 0 16px;
justify-content: space-between;
}
.mobile-header .back-btn {
background: none;
border: none;
font-size: 1.5rem;
margin-right: 0;
cursor: pointer;
flex: 0 0 auto;
padding: 0 8px 0 0;
display: flex;
align-items: center;
}
.mobile-header .mobile-title {
flex: 1 1 0;
font-size: 1.1rem;
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
margin: 0 8px;
}
.mobile-header .mobile-dark-mode-toggle {
font-size: 1.3rem;
cursor: pointer;
flex: 0 0 auto;
margin-left: 0;
display: flex;
align-items: center;
}
@media (max-width: 1024px) {
.navbar {
  display: none !important;
}
#mobileHeader {
  display: flex !important;
}
}
@media (min-width: 1025px) {
#mobileHeader {
  display: none !important;
}
}
body.is-dark .mobile-header {
background: #23272f;
border-bottom: 1px solid #222;
}
body.is-dark .mobile-header .mobile-title,
body.is-dark .mobile-header .back-btn,
body.is-dark .mobile-header .mobile-dark-mode-toggle {
color: #f5f5f5;
}
body.is-dark .mobile-header .mobile-dark-mode-toggle .fa-sun {
color: #ffe066;
}
body.is-dark .mobile-header .mobile-dark-mode-toggle .fa-moon {
  color: #f5f5f5;
}

/* Author name overlay styles */
.author-name-overlay {
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10;
  transition: all 0.3s ease;
}

.author-name-overlay:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.05);
}

/* Dark mode styles for author overlay */
body.is-dark .author-name-overlay {
  background: rgba(255,255,255,0.9);
  color: #333;
}

body.is-dark .author-name-overlay:hover {
  background: rgba(255,255,255,1);
}

/* Responsive styles for author overlay */
@media (max-width: 1300px) {
  .author-name-overlay {
    left: -100px;
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 768px) {
  .author-name-overlay {
    left: -80px;
    font-size: 12px;
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .author-name-overlay {
    left: -60px;
    font-size: 11px;
    padding: 4px 6px;
  }
}

/* Universal cover decoration element styles */
.cover-border-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.border-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: twinkle 2s infinite;
}

.border-sparkle-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.border-sparkle-2 {
  top: 20%;
  right: 15%;
  animation-delay: 0.5s;
}

.border-sparkle-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 1s;
}

.border-sparkle-4 {
  bottom: 15%;
  right: 10%;
  animation-delay: 1.5s;
}

.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
}

.sparkle {
  position: absolute;
  font-size: 12px;
  animation: float 3s ease-in-out infinite;
}

.sparkle-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 25%;
  right: 25%;
  animation-delay: 1s;
}

.sparkle-3 {
  bottom: 25%;
  left: 30%;
  animation-delay: 2s;
}

.sparkle-4 {
  bottom: 35%;
  right: 20%;
  animation-delay: 0.5s;
}

.glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.glow {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.glow-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.glow-2 {
  bottom: 20%;
  right: 15%;
  animation-delay: 2s;
}

.decorative-patterns {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.pattern {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  animation: rotate 8s linear infinite;
}

.pattern-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.pattern-2 {
  bottom: 15%;
  left: 10%;
  animation-delay: 2s;
}

.pattern-3 {
  top: 50%;
  right: 20%;
  animation-delay: 4s;
}

.cover-ornaments {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 4;
}

.ornament {
  position: absolute;
  color: #ffd700;
  font-size: 16px;
  animation: twinkle 3s infinite;
}

.ornament-left {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.ornament-right {
  top: 15%;
  right: 10%;
  animation-delay: 1.5s;
}

.status-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.ongoing {
  background: linear-gradient(45deg, #4caf50, #45a049);
}

.status-badge.completed {
  background: linear-gradient(45deg, #ff9800, #f57c00);
}

/* Small cover decoration elements */
.small-cover-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.small-sparkle {
  position: absolute;
  font-size: 8px;
  animation: twinkle 2s infinite;
}

.small-sparkle-1 {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.small-sparkle-2 {
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
}

.small-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

/* Animation definitions */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dark mode adaptations */
body.is-dark .border-sparkle {
  background: #ffd700;
}

body.is-dark .glow {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
}

body.is-dark .pattern {
  border-color: rgba(255, 215, 0, 0.3);
}

body.is-dark .ornament {
  color: #ffd700;
}

/* Mobile adaptations */
@media (max-width: 768px) {
  .border-sparkle {
    width: 3px;
    height: 3px;
  }
  
  .sparkle {
    font-size: 10px;
  }
  
  .glow {
    width: 40px;
    height: 40px;
  }
  
  .pattern {
    width: 15px;
    height: 15px;
  }
  
  .ornament {
    font-size: 14px;
  }
  
  .small-sparkle {
    font-size: 6px;
  }
  
  .small-glow {
    width: 20px;
    height: 20px;
  }
}

