/* Main Container */
.home-page-container {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  gap: 5rem;
}

.ad-container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--premium-bg);
  min-height: 40px; 
  width: 100%;
  padding: 2rem 0;
  border-radius: 10px;
  text-align: center; 
}

/* Update Block Container */
.update-block {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* Section Title */
.section-title {
  position: absolute;
  top: 73px;
  left: 60px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  padding-bottom: 0.5rem;
  z-index: 3;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  border-radius: 2px;
}

/* Title Showcase */
.title-showcase {
  width: 100%;
  height: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.title-showcase::-webkit-scrollbar {
  display: none;
}

/* Novel Slide */
.novel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  margin-right: -2px;
  display: flex;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Slide Overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--popular-title-gradient-bg);
  z-index: 1;
}

/* Popular Series Container */
.popular-series {
  padding: 80px 60px 40px 60px;
  color: white;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* Slide Content */
.slide-content {
  display: flex;
  flex-direction: column;
}

/* Novel Content Layout */
.novel-content {
  display: flex;
  gap: 30px;
  margin-top: 3.5rem;
  flex: 1;
  align-items: flex-start;
  position: relative;
}

/* Novel Image Container */
.novel-image-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.popular_title_image {
  position: relative;
  width: 200px;
  height: 270px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

/* Tags */
.tags {
  max-width: fit-content;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3em;
  align-self: center;
  margin-bottom: 100px;
  text-align: center;
}

.tags.small_devices {
  display: none;
}

.tag {
  background-color: var(--tag-bg-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-duration) var(--transition-ease);
}

.tag:hover {
  background-color: var(--tag-hover-color);
}

.more-genres {
  display: inline;
  color: var(--more-genres-color);
  padding: 3px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 5px;
  cursor: pointer;
  transition: text-decoration var(--transition-duration) var(--transition-ease);
}

.more-genres-small {
  display: none;
}

/* Title Info */
.title-info-v1 {
  flex: 1;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.title-info-v1 h3 {
  margin-bottom: 5px;
  font-size: 1.5em;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  line-height: 1.4em;
}

.title-info-v1 a {
  color: var(--text-color);
  text-decoration: none;
}

/* User Info */
.user-info {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.avatar-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

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

.authors {
  align-self: center;
  font-style: italic;
}

.authors a {
  text-decoration: none;
  color: var(--author-link-color);
}

.authors a:hover {
  text-decoration: underline;
}

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

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

.novel-metric i {
  margin-right: 5px;
  color: var(--novel-metric-icon);
}

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

/* Description */
.description-container {
  position: relative;
  max-width: 70%;
}

.description {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 7.5em;
  line-height: 1.5em;
}

.see-more {
  position: absolute;
  background-color: var(--see-more-bg);
  padding: 2px 5px;
  color: var(--primary-color) !important;
  text-decoration: none;
  font-size: 0.9em;
  border-radius: 3px;
  margin-top: 0.2rem;
}

.see-more:hover {
  text-decoration: underline;
}

/* Navigation Buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: var(--text-dark-light-color);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 2;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: background-color var(--transition-duration) var(--transition-ease), box-shadow var(--transition-duration) var(--transition-ease);
  height: 50%;
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

.nav-button:hover {
  background-color: var(--primary-hover-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.nav-button:active {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Second Home Section Container */
.second-home-section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 0 3rem;
}

/* Section Headers */
.latest-update-header,
.popular-ranking-section,
.Survey-section-title,
.genre_header,
.ad-section-header
 {
  position: absolute;
  background-color: var(--primary-color);
  color: var(--text-dark-light-color);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: var(--box-shadow);
  top: -10px;
  left: 20px;
  transform: translateY(-50%);
}

.latest-update-header::after,
.popular-ranking-section::after,
.Survey-section-title::after,
.genre_header::after,
.ad-section-header::after{
  content: '';
  position: absolute;
  bottom: -18px;
  left: 10px;
  border: 10px solid transparent;
  border-top-color: var(--primary-color);
}

.latest-update-header i,
.popular-ranking-section i,
.Survey-section-title i,
.genre_header i,
.ad-section-header i {
  margin-right: 8px;
  font-size: 18px;
}

/* Latest Updates Section */
.update_novel_forum {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.series_update {
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  position: relative;
  background: var(--premium-bg);
}

.latest-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 20px;
  width: 100%;
  grid-auto-flow: column;
}

.update-column {
  display: contents;
}

/* Novel Update Card */
.novel-update-card-v2 {
  display: flex;
  background-color: var(--update-card-bg);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-duration) var(--transition-ease);
  width: 100%;
  min-height: 150px;
}

.novel-image-v2 {
  width: 100px;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  object-fit: cover;
}

.novel-image-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.novel-info {
  padding: 0.5rem 1rem;
  flex-grow: 1;
  width: calc(100% - 100px);
  max-width: 100%;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.title_and_new_span {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.title_and_new_span span {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0 0.3rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  color: white;
  flex-shrink: 0;
}

.title_and_new_span .end-tag {
  background-color: #e53935;
  border-color: #e53935;
}

.novel-title {
  color: var(--text-color);
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.novel-title a {
  color: var(--text-color);
  text-decoration: none;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.chapter-item a {
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.chapter-item .chapter-number {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.chapter-item .chapter-arrows {
  color: var(--chapter-arrow-color);
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}

.chapter-item a:hover .chapter-title {
  text-decoration: underline;
}

.chapter-date {
  color: var(--text-secondary-color);
  font-size: 0.8em;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.see_more_container {
  bottom: -12px;
  right: -40px;
  position: absolute;
}

.latest-update-header-v2 {
  background-color: var(--primary-color);
  color: var(--text-dark-light-color);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-duration) var(--transition-ease);
}

.latest-update-header-v2 .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform var(--transition-duration) var(--transition-ease);
}

.latest-update-header-v2:hover {
  background-color: var(--primary-hover-color);
}

.latest-update-header-v2:hover .arrow {
  transform: translateX(3px);
}

/* Popular Titles Section */
.popular-time-limited-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.popular-titles-container {
  position: relative;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--premium-bg);
}

/* Tab Navigation */
.popular-tab-navigation {
  display: flex;
  text-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 140, 0, 0.1);
  padding: 0.5rem;
  border-radius: 12px 12px 0 0;
  backdrop-filter: blur(10px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.popular-tab-navigation::-webkit-scrollbar {
  height: 3px;
}

.popular-tab-navigation::-webkit-scrollbar-track {
  background: var(--library-scrollbar-track);
  border-radius: 10px;
}

.popular-tab-navigation::-webkit-scrollbar-thumb {
  background-color: var(--primary-hover-color);
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.popular-tab-navigation::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover-bg);
}

.popular-tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 8px 8px 0 0;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  min-width: max-content;
}

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

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

.popular-tab-btn:hover {
  color: #ff8c00;
}

.popular-tab-btn.active {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.popular-tab-btn i {
  font-size: 1.1rem;
}

/* Tab Content */
.popular-tab-content {
  position: relative;
  min-height: 400px;
}

.popular-tab-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.popular-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Time Period Navigation (Mobile Only) */
.time-period-navigation {
  display: none;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 140, 0, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.time-period-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #ccc;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  white-space: nowrap;
}

.time-period-btn.active {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.time-period-btn i {
  font-size: 1rem;
}

/* Time Sections Container */
.popular-time-sections {
  display: flex;
  gap: 2rem;
  width: 100%;
}

/* Individual Time Section */
.popular-time-section {
  flex: 1;
  position: relative;
  backdrop-filter: blur(10px);
  min-width: 0; /* Added to prevent flex items from overflowing */
}

/* Time Section Headers */
.popular-time-header {
  color: #fff;
  text-wrap: nowrap;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
}

/* Daily Section Styling */
.daily-section-header {
  border-left: 4px solid #ff4500;
  background: rgba(255, 69, 0, 0.05);
}

.daily-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), transparent);
  border-radius: 12px;
  pointer-events: none;
}

.daily-section-header i {
  color: #ff4500;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* Weekly Section Styling */
.weekly-section-header {
  border-left: 4px solid #ff8c00;
  background: rgba(255, 140, 0, 0.05);
}

.weekly-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), transparent);
  border-radius: 12px;
  pointer-events: none;
}

.weekly-section-header i {
  color: #ff8c00;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

/* Monthly Section Styling */
.monthly-section-header {
  border-left: 4px solid #ffa500;
  background: rgba(255, 165, 0, 0.05);
}

.monthly-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), transparent);
  border-radius: 12px;
  pointer-events: none;
}

.monthly-section-header i {
  color: #ffa500;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Titles Grid */
.popular-titles-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.popular-title-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Title Cover */
.popular-title-cover {
  min-width: 60px;
  width: 60px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Rank Badge - Positioned on top of cover */
.popular-rank-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  z-index: 3;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

.popular-rank-1 .popular-rank-badge {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.popular-rank-2 .popular-rank-badge {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.popular-rank-3 .popular-rank-badge {
  background: linear-gradient(135deg, #cd7f32, #b8860b);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}

.popular-rank-4 .popular-rank-badge,
.popular-rank-5 .popular-rank-badge {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.popular-cover-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Title Info */
.popular-title-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.popular-title-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
}

/* Title Link Styling */
.popular-title-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-author-name {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

/* Author Link Styling */
.popular-author-link {
  color: #ff8c00;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 25px);
  flex-shrink: 1;
}

.popular-author-link:hover {
  text-decoration: underline;
}

.popular-stats {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.popular-stats span {
  color: #aaa;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.popular-rating-none{
  font-style: italic;
  color: #333;
}

.popular-stats i {
  color: #ff8c00;
  font-size: 0.8rem;
}

/* Rating Stars Styling */
.popular-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #ffd700;
  font-size: 0.85rem;
}

.popular-rating i {
  color: #ffd700;
  font-size: 0.8rem;
}

.popular-rating-number {
  color: #fff;
  font-weight: 600;
  margin-left: 0.2rem;
}

/* No Rating Styling */
.popular-no-rating {
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.7;
}

/* No Activity Message Styling */
.no-activity-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  color: #888;
  background: rgba(255, 140, 0, 0.03);
  border: 1px dashed rgba(255, 140, 0, 0.2);
  border-radius: 12px;
  min-height: 120px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.no-activity-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.02), transparent);
  pointer-events: none;
  border-radius: 12px;
}

.no-activity-message:hover {
  background: rgba(255, 140, 0, 0.05);
  border-color: rgba(255, 140, 0, 0.3);
}

.no-activity-message i {
  font-size: 2.5rem;
  color: rgba(255, 140, 0, 0.4);
  margin-bottom: 0.8rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.no-activity-message:hover i {
  color: rgba(255, 140, 0, 0.6);
  opacity: 1;
}

.no-activity-message p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.no-activity-message:hover p {
  color: #ccc;
}

/* Vote Section */
.vote_section {
  position: relative;
  width: 100%;
  background: var(--premium-bg);
  padding: 1.5rem 1.5rem 0;
  border-radius: 12px;
}

.vote_discord {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  gap: 20px;
}

#voteForm {
  flex: 1;
  min-width: 300px;
  width: 100%;
}

.vote_container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.poll {
  margin: 1rem 0;
  padding: 0 1rem 1rem;
  border-radius: 8px;
}

.poll h3 {
  color: var(--countdown-color);
  font-size: 1.3rem;
  text-align: left;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--countdown-color);
  padding-bottom: 8px;
}

.poll_instruction {
  color: var(--poll-instruction-color);
  margin-bottom: 12px;
  font-size: 0.95em;
  font-style: italic;
}

.poll-option {
  display: flex;
  flex-direction: column;
  background: var(--sidebar-secondary-bg-color);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-duration) var(--transition-ease);
  position: relative;
  border: 2px solid transparent;
}

.poll-option:hover {
  background: var(--poll-hover-color);
  border-color: var(--primary-hover-color);
}

.poll-option.selected {
  border-color: var(--poll-border-color);
  background: var(--poll-hover-color);
}

.poll-option input {
  display: none;
}

.vote_perc_option {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cicle {
  display: block;
  height: 19px;
  width: 19px;
  margin-right: 10px;
  position: relative;
  border-radius: 50%;
  border: 2px solid var(--cicle-border-color);
  transition: border-color var(--transition-duration) var(--transition-ease);
  flex-shrink: 0;
}

.poll-option:hover .cicle {
  border-color: var(--primary-hover-color);
}

.poll-option.selected .cicle {
  border-color: var(--primary-hover-color);
}

.cicle::after {
  content: "";
  position: absolute;
  height: 11px;
  width: 11px;
  top: 2px;
  left: 2px;
  border-radius: inherit;
  background: var(--primary-hover-color);
  display: none;
  transition: transform var(--transition-duration) var(--transition-ease), opacity var(--transition-duration) var(--transition-ease);
  transform: scale(0);
  opacity: 0;
}

.poll-option:hover .cicle::after {
  display: block;
  transform: scale(1);
  opacity: 1;
}

.poll-option.selected .cicle::after {
  display: block;
  transform: scale(1);
  opacity: 1;
}

.option-text {
  flex: 1;
  color: var(--text-color);
  font-size: 1.1em;
  margin-right: 15px;
  word-break: break-word;
}

.vote-percentage,
.vote-count,
.progress-bar {
  display: none;
}

.vote-percentage.visible,
.vote-count.visible,
.progress-bar.visible {
  display: block;
}

.vote-percentage, 
.vote-count {
  color: var(--countdown-color);
  font-weight: bold;
  min-width: 50px;
  text-align: right;
  margin-left: 5px;
  flex-shrink: 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--progress-bar-bg);
  border-radius: 3px;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--progress-fill-color);
  border-radius: 3px;
  width: var(--vote-progrss);
  transition: width 0.5s ease;
}

.total-votes {
  color: var(--total-votes-color);
  font-size: 0.95em;
  font-style: italic;
}

/* Discord Section */
.discord_invite {
  background-color: var(--navbar-bg-color);
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--sidebar-secondary-bg-color);
  box-shadow: var(--discord-box-shadow);
  height: fit-content;
}

.discord_section_title {
  display: flex;
  align-items: center;
  background-color: var(--primary-hover-color);
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--discord-border-color);
}

.discord_section_title::before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 245 240'%3E%3Cpath fill='%23FFFFFF' d='M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z'/%3E%3Cpath fill='%23FFFFFF' d='M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  width: 30px;
  height: 23px;
  margin-right: 10px;
  display: inline-block;
}

.discord_section_title h2 {
  color: var(--text-dark-light-color);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  font-family: 'Discord Font', sans-serif;
}

.discord_holder {
  padding: 20px;
}

.server_preview {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.server_icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--server-icon-border);
}

.server_info {
  flex: 1;
  min-width: 200px;
}

.server_name {
  color: var(--server-name-color);
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}

.server_summary {
  color: var(--text-secondary-color);
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.4;
}

.server_stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.online {
  background-color: #43b581;
}

.members {
  background-color: #999;
}

.join_action {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.join_button {
  background-color: var(--join-button-bg);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.join_button:hover {
  background-color: var(--join-button-hover);
}

/* Genre Section Styles */
.genre_novel_forum {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 2.5rem 0;
  border-radius: 12px;
  background: var(--premium-bg);
  position: relative;
}

.genre_list_series {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.genre_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  width: 100%;
  text-wrap: nowrap;
}

.genre_item {
  background: var(--genre-item-bg);
  border: 1px solid var(--genre-item-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  cursor: pointer;
}

.genre_item:hover {
  transform: translateY(-4px);
  border-color: var(--genre-item-hover-border);
  box-shadow: var(--genre-item-hover-shadow);
  background: var(--genre-item-hover-bg);
}

.genre_item_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.genre_name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.genre_arrow {
  font-size: 1.2rem;
  color: var(--chapter-arrow-color);
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.genre_item:hover .genre_arrow {
  transform: translateX(5px);
  opacity: 1;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .latest-updates-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
  }
}

@media (max-width: 1024px) {
  /* Main container */
  .home-page-container {
    padding-bottom: 0;
    min-height: auto;
    width: 100%;
    margin: 0;
  }
  
  .second-home-section-container {
    padding: 0;
  }
  
  /* Popular titles section */
  .title-info-v1 .description-container {
    max-width: 100%;
  }
  
  .title-info-v1 .description {
    -webkit-line-clamp: 3;
  }

  /* Latest updates section */
  .update-column {
    max-width: calc(50% - var(--column-gap, 20px));
  }
  
  .see_more_container {
    right: 0;
  }
  
  /* Readers survey section */
  .vote_discord {
    flex-direction: column;
  }
  
  .poll {
    border-bottom: 2px solid #FF8C00;
  }
  
  .vote_section {
    padding: 1.5rem;
  }

  /* Genres section */
  .genre_item {
    padding: 1rem;
  }
}

@media (max-width: 769px) {
  /* Main container */
  .home-page-container {
    gap: 4rem;
  }

  .second-home-section-container {
    gap: 4rem;
  }
  
  /* Popular titles section */
  .slide-content {
    padding: 1rem;
    height: 100%;
  }
  
  .popular-series {
    padding: 0;
  }
  
  .novel-content {
    margin-top: 6.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
    left: 1rem;
  }

  .novel-slide {
    gap: 1rem;
  }

  .novel-image-container {
    max-width: 150px;
    gap: 0.6rem;
  }

  .popular_title_image {
    width: 150px;
    height: 210px;
  }
  
  .title-info-v1 h3 {
    font-size: 1.3em;
    max-height: 2.6em;
  }
  
  .title-info-v1 .description-container {
    max-width: 100%;
  }

  .title-info-v1 .description {
    -webkit-line-clamp: 5;
  }

  .profile-avatar {
    width: 30px;
    height: 30px;
  }
  
  .stats {
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
  }
  
  .novel-metric {
    font-size: 0.8em;
    padding: 2px 5px;
    margin-right: 10px;
    margin-bottom: 5px;
    flex-grow: 1;
    justify-content: center;
    min-width: 0;
  }

  .description {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tags {
    display: none;
  }

  .tags.small_devices {
    margin: 0;
    max-width: 150px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }
  
  .tag {
    padding: 3px 10px;
    font-size: 0.8em;
  }
  
  .tag-large-screen,
  .more-genres-large {
    display: none;
  }
  
  .more-genres {
    font-size: 0.8rem; 
    padding-left: 0;
  }
  
  .more-genres-small {
    display: inline-block;
  }
  
  .nav-button {
    display: none;
  }
  
  .search-bar-background {
    height: 5em;
    width: 14.5em;
    font-size: 0.9em;
    padding: 0.5em;
  }
  
  /* Latest updates section */
  .series_update {
    padding: 2.5rem 1rem;
  }

  .latest-updates-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(12, auto);
  }
  
  .update-column {
    max-width: 100%;
  }

  .update-block,
  .update_novel_forum,
  .genre_novel_forum {
    width: 100%;
  }
  
  .update_novel_forum,
  .genre_novel_forum {
    padding: 1rem 0;
    justify-content: flex-start;
    min-height: auto;
  }
  
  /* Top titles section */
  .time-period-navigation {
    display: flex;
  }
  
  .popular-time-sections {
    flex-direction: column;
    gap: 0;
  }
  
  .popular-time-section {
    display: none;
  }
  
  .popular-time-section.active {
    display: block;
  }
  
  .popular-time-header {
    display: none;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .popular-titles-container {
    padding: 1rem;
  }
  
  .popular-tab-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .time-period-btn {
    font-size: 0.85rem;
  }
  
  .popular-titles-container {
    padding: 2rem 1rem;
  }

  .popular-tab-navigation {
    padding: 0;
    margin-bottom: 1rem;
  }

  .titles-time-limited-container {
    padding: 2.1rem 0.5rem 1rem;
  }

  .no-activity-message {
    padding: 1.5rem 1rem;
    min-height: 100px;
  }
  
  .no-activity-message i {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }
  
  .no-activity-message p {
    font-size: 0.9rem;
  }
  
  /* Readers survey section */
  .vote_section {
    width: 100%;
    padding: 1rem 0.5rem;
  }
  
  #voteForm {
    width: 100%;
  }

  .clock_down {
    margin-top: 1rem;
  }

  .poll {
    margin-bottom: 0;
    padding: 5px 5px 25px;
  }

  .poll h3 {
    text-align: center;
    font-size: 1.2rem;
  }

  .poll_instruction {
    font-size: 0.85em;
  }

  .option-text {
    font-size: 1em;
  }

  .vote-percentage {
    font-size: 0.9em;
  }

  .total-votes {
    font-size: 0.85em;
  }

  .vote_discord {
    flex-direction: column;
    align-items: center;
  }

  .server_preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .server_info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .server_stats {
    justify-content: center;
  }
  
  .join_action {
    justify-content: center;
  }
  
  /* Genres section */
  .genre_list_series {
    padding: 1rem 0.5rem;
  }
  
  .genre_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .genre_item {
    background-color: transparent;
    color: var(--text-color);
    padding: 0.5rem 0.25rem;
    border-radius: 0;
    text-align: center;
    font-weight: normal;
    font-size: 0.8rem;
    border: var(--tag-border-color-settings);
    transition: none;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .genre_item::before {
    display: none;
  }
  
  .genre_item:hover,
  .genre_item:focus {
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--primary-color);
    transform: none;
    border-color: rgba(255, 165, 0, 0.3);
    box-shadow: none;
  }

  .genre_item_inner {
    display: inherit;
    align-items: inherit;
    justify-content: inherit;
    position: inherit;
  }

  .genre_name {
    font-size: 0.8rem;
    font-weight: inherit;
    letter-spacing: inherit;
  }

  .genre_arrow {
    display: none;
  }

  .quick-links {
    margin-top: 1rem;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 380px) {
  /* Main container */
  .home-page-container {
    gap: 3rem;
  }

  .second-home-section-container {
    gap: 3rem;
  }

  .section-title {
    font-size: 1.3rem;
    letter-spacing: 0.8px;
  }

  /* Popular titles section */
  .update-block {
    height: 450px;
  }

  .novel-image-container {
    max-width: 120px;
  }

  .popular_title_image {
    width: 120px;
    height: 168px;
  }
  
  .title-info-v1 h3 {
    font-size: 1.1em;
    line-height: 1.2em;
    max-height: 2.4em;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
  }
  
  .profile-avatar {
    width: 25px;
    height: 25px;
  }
  
  .stats {
    gap: 4px;
  }
  
  .novel-metric {
    font-size: 0.7em;
    padding: 1px 4px;
    margin-right: 8px;
    margin-bottom: 4px;
  }

  .tags {
    display: none;
  }

  .tag {
    padding: 2px 8px;
    font-size: 0.7em;
  }
  
  .more-genres {
    font-size: 0.7rem;
  }
  
  .search-bar-background {
    height: 4em;
    width: 12em;
    font-size: 0.8em;
    padding: 0.4em;
  }
  
  /* Latest updates section */
  .update_novel_forum,
  .genre_novel_forum {
    padding: 0.8rem 0;
  }
  
  .latest-update-header-v2 {
    right: 0.8rem;
  }

  /* Readers survey section */
  .poll h3 {
    font-size: 1.1rem;
  }
  
  /* Genres section */
  .genre_list_series {
    padding: 1.5rem 0.4rem 0.8rem 0.4rem;
  }
  
  .genre_grid {
    gap: 0.4rem;
  }
  
  .genre_item {
    padding: 0.4rem 0.2rem;
    font-size: 0.7rem;
    transition: none;
    transform: none;
  }

  .genre_item:hover,
  .genre_item:focus {
    transform: none;
    box-shadow: none;
  }
  
  .quick-links {
    margin-top: 0.8rem;
    padding: 0.8rem 0.4rem;
  }
}