.novel-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.novel-tab-bar::-webkit-scrollbar {
  display: none;
}

.novel-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.novel-tab:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.novel-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.novel-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.novel-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-dim);
}

.novel-tab.active .tab-count {
  background: var(--accent-primary);
  color: var(--bg-card);
}

.tab-content {
  min-height: 200px;
}

.journal-tab-content {
  animation: tab-fade-in 0.2s ease-out;
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .novel-tab {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }
}
